/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans KR", sans-serif;
  line-height: 1.7;
  color: #1a1a1a;
  background: #fff;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button, a { min-height: 44px; min-width: 44px; }

/* ===== Accessibility: visible keyboard focus (WCAG 2.4.7) ===== */
/* Two-tone ring stays visible on light content AND the dark fixed bottom bars */
:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 0;
  box-shadow: 0 0 0 4px #1a2b4a;
  border-radius: 4px;
}
a:focus-visible, button:focus-visible { box-shadow: 0 0 0 4px #1a2b4a, 0 0 0 6px #fff; }

/* Respect users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ===== Layout ===== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ===== Header ===== */
.header {
  background: #1a2b4a;
  color: #fff;
  padding: 16px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,.15);
}
.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.header-logo {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}
.header-logo span { color: #f0c040; }
.header-nav { display: flex; gap: 4px; flex-wrap: wrap; }
.header-nav a {
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  transition: background .2s;
  white-space: nowrap;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.header-nav a:hover, .header-nav a.active { background: rgba(255,255,255,.15); }

/* ===== Hero ===== */
.hero {
  background: linear-gradient(135deg, #1a2b4a 0%, #2d4a7a 100%);
  color: #fff;
  padding: 60px 0 50px;
  text-align: center;
}
.hero h1 {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 16px;
  letter-spacing: -1px;
}
.hero h1 em { color: #f0c040; font-style: normal; }
.hero p {
  font-size: 1.1rem;
  opacity: .85;
  max-width: 600px;
  margin: 0 auto 28px;
}
.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #f0c040;
  color: #1a2b4a;
  font-weight: 700;
  padding: 14px 32px;
  border-radius: 12px;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: transform .15s, box-shadow .15s;
}
.hero-cta:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(240,192,64,.4); }

/* ===== Category Nav ===== */
.category-nav {
  background: #f5f6f8;
  padding: 20px 0;
  border-bottom: 1px solid #e0e0e0;
}
.category-nav .container {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.category-nav::-webkit-scrollbar { display: none; }
.cat-btn {
  flex-shrink: 0;
  padding: 12px 20px;
  background: #fff;
  border: 1.5px solid #d0d0d0;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s;
  white-space: nowrap;
}
.cat-btn:hover, .cat-btn.active {
  background: #1a2b4a;
  color: #fff;
  border-color: #1a2b4a;
}

/* ===== Property Cards ===== */
.section { padding: 48px 0; }
.section-title {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}
.section-sub {
  color: #666;
  margin-bottom: 28px;
  font-size: 1rem;
}
.property-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
}
.card-link {
  display: block;
  text-decoration: none;
  color: inherit;
  border-radius: 16px;
  transition: transform .2s, box-shadow .2s;
}
.card-link:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(0,0,0,.1); }
.card-cta {
  display: inline-flex;
  align-items: center;
  margin: 4px 20px 20px;
  padding: 11px 18px;
  background: #1a2b4a;
  color: #fff;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  min-height: 44px;
  transition: background .2s;
}
.card-cta:hover { background: #24406e; }
.related-properties { background: #f7f9fc; }
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
  margin-top: 16px;
}
.related-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 18px;
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  min-height: 44px;
  transition: transform .2s, box-shadow .2s;
}
.related-card:hover { transform: translateY(-3px); box-shadow: 0 10px 26px rgba(0,0,0,.08); }
.related-name { font-weight: 800; color: #1a2b4a; font-size: 1.02rem; }
.related-loc { font-size: 0.85rem; color: #666; }
.category-notice {
  background: #f0f5ff;
  border: 1px solid #d3e0ff;
  border-radius: 14px;
  padding: 22px 24px;
  text-align: center;
}
.category-notice p { margin-bottom: 14px; font-size: 1rem; line-height: 1.7; color: #333; }
.notice-cta {
  display: inline-flex;
  align-items: center;
  padding: 13px 22px;
  background: #2563EB;
  color: #fff;
  border-radius: 10px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  min-height: 44px;
}
.notice-cta:hover { background: #1d4fd0; }
.property-card {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 16px;
  overflow: hidden;
}
.property-card:hover { }
.card-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.badge-selling { background: #e8f5e9; color: #2e7d32; }
.badge-upcoming { background: #1E40AF; color: #FFFFFF; }
.card-img {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, #1a2b4a, #2d4a7a);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  text-shadow: 0 1px 4px rgba(0,0,0,.3);
}
.card-body { padding: 20px; }
.card-body h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 6px;
  letter-spacing: -0.3px;
}
.card-location {
  color: #666;
  font-size: 0.9rem;
  margin-bottom: 12px;
}
.card-info {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}
.card-tag {
  padding: 4px 10px;
  background: #f0f2f5;
  border-radius: 6px;
  font-size: 0.8rem;
  color: #555;
}
.card-desc {
  font-size: 0.92rem;
  color: #444;
  line-height: 1.7;
  margin-bottom: 16px;
}
.card-cta {
  display: block;
  text-align: center;
  padding: 12px;
  background: #1a2b4a;
  color: #fff;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: background .2s;
}
.card-cta:hover { background: #2d4a7a; }

/* ===== Stats Bar ===== */
.stats-bar {
  background: #f5f6f8;
  padding: 32px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 20px;
  text-align: center;
}
.stat-num { font-size: 2rem; font-weight: 800; color: #1a2b4a; }
.stat-label { font-size: 0.9rem; color: #666; margin-top: 4px; }

/* ===== Expert Section ===== */
.expert-section {
  background: #1a2b4a;
  color: #fff;
  padding: 48px 0;
}
.expert-section h2 { font-size: 1.5rem; font-weight: 800; margin-bottom: 20px; }
.expert-section p { opacity: .85; line-height: 1.8; margin-bottom: 16px; }

/* ===== Footer ===== */
.footer {
  background: #111;
  color: #aaa;
  padding: 40px 0 32px;
  font-size: 0.85rem;
  line-height: 1.8;
}
.footer strong { color: #fff; }
.footer-links { margin-top: 16px; }
.footer-links a {
  color: #888;
  margin-right: 16px;
  transition: color .2s;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 4px;
}
.footer-links a:hover { color: #f0c040; }

/* ===== Bottom Fixed Bar (inline styles in HTML) ===== */
body { padding-bottom: 96px; }

/* ===== Detail Page ===== */
.detail-hero {
  background: linear-gradient(135deg, #1a2b4a 0%, #2d4a7a 50%, #3a5a8a 100%);
  color: #fff;
  padding: 48px 0 40px;
}
.detail-hero .badge {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 12px;
}
.detail-hero h1 {
  font-size: 1.8rem;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 10px;
  letter-spacing: -1px;
}
.detail-hero .location {
  font-size: 1.05rem;
  opacity: .8;
  margin-bottom: 20px;
}
.detail-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-top: 24px;
}
.detail-info-item {
  background: rgba(255,255,255,.1);
  border-radius: 12px;
  padding: 16px;
}
.detail-info-item .label {
  font-size: 0.8rem;
  opacity: .7;
  margin-bottom: 4px;
}
.detail-info-item .value {
  font-size: 1.1rem;
  font-weight: 700;
}
.detail-content {
  padding: 48px 0;
}
.detail-content h2 {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid #1a2b4a;
  letter-spacing: -0.5px;
}
.detail-content p {
  font-size: 1rem;
  line-height: 1.8;
  color: #333;
  margin-bottom: 20px;
}
.detail-content h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 28px 0 12px;
  color: #1a2b4a;
}
.detail-sidebar {
  background: #f5f6f8;
  border-radius: 16px;
  padding: 24px;
  margin-top: 32px;
}
.detail-sidebar h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 16px;
}
.related-list { list-style: none; }
.related-list li {
  padding: 12px 0;
  border-bottom: 1px solid #e0e0e0;
}
.related-list li:last-child { border-bottom: none; }
.related-list a {
  font-weight: 600;
  color: #1a2b4a;
  transition: color .2s;
}
.related-list a:hover { color: #2d4a7a; }

/* ===== Widget Section ===== */
.widget { background: #fff; border: 1px solid #e8e8e8; border-radius: 16px; padding: 28px; margin-bottom: 24px; }
.widget-title { font-size: 1.2rem; font-weight: 800; margin-bottom: 16px; color: #1a2b4a; display: flex; align-items: center; gap: 8px; }
.widget-icon { font-size: 1.4rem; }

/* Price Simulator */
.calc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 16px; }
.calc-field label { display: block; font-size: 0.85rem; color: #666; margin-bottom: 4px; font-weight: 600; }
.calc-field input, .calc-field select {
  width: 100%; padding: 12px; border: 1.5px solid #d0d0d0; border-radius: 10px;
  font-size: 1rem; min-height: 44px; font-family: inherit;
}
.calc-field input:focus, .calc-field select:focus { border-color: #1a2b4a; outline: none; }
.calc-btn {
  width: 100%; padding: 14px; background: #1a2b4a; color: #fff; border: none;
  border-radius: 10px; font-size: 1rem; font-weight: 700; cursor: pointer; min-height: 44px;
}
.calc-btn:hover { background: #2d4a7a; }
.calc-result {
  margin-top: 16px; padding: 20px; background: #f0f4ff; border-radius: 12px;
  text-align: center; display: none;
}
.calc-result .amount { font-size: 1.8rem; font-weight: 800; color: #1a2b4a; }
.calc-result .detail { font-size: 0.9rem; color: #666; margin-top: 8px; }

/* Comparison Table */
.compare-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.compare-table th { background: #1a2b4a; color: #fff; padding: 12px 10px; text-align: left; font-weight: 700; }
.compare-table td { padding: 12px 10px; border-bottom: 1px solid #e8e8e8; }
.compare-table tr:hover td { background: #f5f8ff; }
.compare-table .highlight { background: #f0f4ff; font-weight: 700; }
.compare-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* Timeline */
.timeline { position: relative; padding-left: 28px; }
.timeline::before { content: ''; position: absolute; left: 8px; top: 0; bottom: 0; width: 3px; background: #d0d8e4; border-radius: 2px; }
.timeline-item { position: relative; margin-bottom: 20px; }
.timeline-item::before {
  content: ''; position: absolute; left: -24px; top: 4px; width: 14px; height: 14px;
  background: #1a2b4a; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 2px #1a2b4a;
}
.timeline-item.active::before { background: #e53935; box-shadow: 0 0 0 2px #e53935; }
.timeline-date { font-size: 0.8rem; color: #e53935; font-weight: 700; margin-bottom: 2px; }
.timeline-text { font-size: 0.95rem; font-weight: 600; color: #1a2b4a; }
.timeline-sub { font-size: 0.85rem; color: #666; margin-top: 2px; }

/* Neighborhood */
.infra-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
.infra-item {
  padding: 16px 12px; background: #f5f6f8; border-radius: 12px; text-align: center;
  transition: transform .15s;
}
.infra-item:hover { transform: translateY(-2px); }
.infra-icon { font-size: 1.6rem; margin-bottom: 6px; }
.infra-name { font-size: 0.85rem; font-weight: 700; color: #1a2b4a; }
.infra-dist { font-size: 0.8rem; color: #666; margin-top: 2px; }

/* Expert Quote */
.expert-quote {
  background: linear-gradient(135deg, #1a2b4a, #2d4a7a); color: #fff;
  padding: 24px; border-radius: 16px; position: relative;
}
.expert-quote::before { content: '"'; font-size: 4rem; opacity: .2; position: absolute; top: -8px; left: 16px; font-family: Georgia; }
.expert-quote p { font-size: 1rem; line-height: 1.8; margin-bottom: 12px; position: relative; z-index: 1; }
.expert-quote .expert-name { font-size: 0.85rem; opacity: .7; text-align: right; }

/* FAQ Accordion */
.faq-item { border-bottom: 1px solid #e8e8e8; }
.faq-item:last-child { border-bottom: none; }
.faq-q {
  width: 100%; padding: 16px 0; background: none; border: none; cursor: pointer;
  font-size: 1rem; font-weight: 700; color: #1a2b4a; text-align: left;
  display: flex; justify-content: space-between; align-items: center; min-height: 44px;
  font-family: inherit;
}
.faq-q::after { content: '+'; font-size: 1.3rem; font-weight: 400; color: #999; transition: transform .2s; }
.faq-q.open::after { content: '−'; color: #e53935; }
.faq-a { padding: 0 0 16px; font-size: 0.95rem; line-height: 1.7; color: #555; display: none; }
.faq-a.show { display: block; }

/* Alert Box */
.alert-box { display: flex; gap: 10px; flex-wrap: wrap; }
.alert-box input {
  flex: 1; min-width: 200px; padding: 12px 16px; border: 1.5px solid #d0d0d0;
  border-radius: 10px; font-size: 1rem; min-height: 44px; font-family: inherit;
}
.alert-box input:focus { border-color: #1a2b4a; outline: none; }
.alert-box button {
  padding: 12px 24px; background: #e53935; color: #fff; border: none;
  border-radius: 10px; font-size: 1rem; font-weight: 700; cursor: pointer; min-height: 44px;
  white-space: nowrap;
}
.alert-box button:hover { background: #c62828; }
.alert-msg { margin-top: 12px; font-size: 0.9rem; color: #2e7d32; font-weight: 600; display: none; }

/* ===== Floor Plan Gallery ===== */
.floorplan-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 8px;
}
.floorplan-track::-webkit-scrollbar { display: none; }
.floorplan-card {
  flex: 0 0 220px;
  scroll-snap-align: start;
  background: #f5f6f8;
  border-radius: 14px;
  padding: 20px 16px;
  text-align: center;
  border: 2px solid transparent;
  transition: border-color .2s, transform .15s;
  cursor: pointer;
}
.floorplan-card:hover, .floorplan-card.active { border-color: #1a2b4a; transform: translateY(-2px); }
.floorplan-icon { font-size: 2.4rem; margin-bottom: 8px; }
.floorplan-type { font-size: 1rem; font-weight: 700; color: #1a2b4a; margin-bottom: 4px; }
.floorplan-size { font-size: 0.85rem; color: #666; }
.floorplan-rooms { font-size: 0.8rem; color: #999; margin-top: 2px; }
.floorplan-hint { font-size: 0.8rem; color: #999; margin-top: 10px; text-align: center; }

/* ===== Interactive Checklist ===== */
.checklist-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.check-item {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 16px; background: #f5f6f8; border-radius: 12px;
  cursor: pointer; transition: background .2s, transform .1s;
  user-select: none; -webkit-user-select: none;
  min-height: 44px;
}
.check-item:active { transform: scale(0.97); }
.check-item.checked { background: #e8f5e9; }
.check-item.checked .check-box { background: #2e7d32; border-color: #2e7d32; color: #fff; }
.check-item.checked .check-label { color: #2e7d32; text-decoration: line-through; }
.check-box {
  width: 28px; height: 28px; border-radius: 8px; border: 2px solid #ccc;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem; flex-shrink: 0; transition: all .2s;
}
.check-label { font-size: 0.9rem; font-weight: 600; color: #333; transition: color .2s; }
.checklist-progress {
  margin-top: 14px; padding: 12px 16px; background: #f0f4ff; border-radius: 10px;
  font-size: 0.9rem; font-weight: 600; color: #1a2b4a; text-align: center;
}
.progress-bar { height: 6px; background: #dde3ee; border-radius: 3px; margin-top: 8px; overflow: hidden; }
.progress-fill { height: 100%; background: #2e7d32; border-radius: 3px; transition: width .3s ease; }

/* ===== Compare Feature ===== */
.compare-toggle {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px; background: #f0f2f5; border: 1.5px solid #d0d0d0;
  border-radius: 8px; font-size: 0.8rem; font-weight: 600; color: #555;
  cursor: pointer; transition: all .2s; margin-top: 10px; min-height: 44px;
}
.compare-toggle:hover { border-color: #1a2b4a; color: #1a2b4a; }
.compare-toggle.active { background: #1a2b4a; color: #fff; border-color: #1a2b4a; }
.compare-tray {
  position: fixed; bottom: 100px; left: 50%; transform: translateX(-50%);
  background: #fff; border-radius: 16px; box-shadow: 0 8px 32px rgba(0,0,0,.2);
  padding: 16px 20px; z-index: 150; display: none; max-width: 600px; width: 90%;
}
.compare-tray.show { display: block; }
.compare-tray-header {
  display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px;
}
.compare-tray-title { font-size: 1rem; font-weight: 700; color: #1a2b4a; }
.compare-tray-close {
  width: 32px; height: 32px; border-radius: 50%; background: #f0f2f5; border: none;
  font-size: 1.1rem; cursor: pointer; display: flex; align-items: center; justify-content: center;
  min-height: 44px; min-width: 44px;
}
.compare-tray-items { display: flex; gap: 10px; margin-bottom: 12px; min-height: 60px; }
.compare-tray-slot {
  flex: 1; padding: 10px; background: #f5f6f8; border-radius: 10px; text-align: center;
  font-size: 0.8rem; color: #999; border: 2px dashed #d0d0d0; min-height: 60px;
  display: flex; align-items: center; justify-content: center; position: relative;
}
.compare-tray-slot.filled { border-style: solid; border-color: #1a2b4a; color: #1a2b4a; font-weight: 600; }
.compare-tray-slot .remove-item {
  position: absolute; top: -6px; right: -6px; width: 22px; height: 22px; border-radius: 50%;
  background: #e53935; color: #fff; border: none; font-size: 0.7rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.compare-tray-btn {
  width: 100%; padding: 12px; background: #1a2b4a; color: #fff; border: none;
  border-radius: 10px; font-size: 0.95rem; font-weight: 700; cursor: pointer;
  min-height: 44px; transition: background .2s;
}
.compare-tray-btn:hover { background: #2d4a7a; }
.compare-tray-btn:disabled { background: #ccc; cursor: not-allowed; }

/* Compare Modal */
.compare-modal {
  position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 300;
  display: none; align-items: center; justify-content: center; padding: 20px;
}
.compare-modal.show { display: flex; }
.compare-modal-content {
  background: #fff; border-radius: 16px; padding: 24px; max-width: 700px; width: 100%;
  max-height: 80vh; overflow-y: auto;
}
.compare-modal-close {
  float: right; width: 36px; height: 36px; border-radius: 50%; background: #f0f2f5;
  border: none; font-size: 1.2rem; cursor: pointer; min-height: 44px; min-width: 44px;
  display: flex; align-items: center; justify-content: center;
}

/* ===== Alert Teaser ===== */
.alert-teaser {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 24px; background: linear-gradient(135deg, #1a2b4a, #2d4a7a);
  border-radius: 14px; color: #fff; flex-wrap: wrap;
}
.alert-teaser-text { font-size: 1rem; font-weight: 600; line-height: 1.5; }
.alert-teaser-text small { display: block; font-size: 0.85rem; font-weight: 400; opacity: .8; margin-top: 4px; }
.alert-teaser-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px; background: #f0c040; color: #1a2b4a;
  border-radius: 10px; font-weight: 700; font-size: 0.95rem;
  transition: transform .15s, box-shadow .15s; white-space: nowrap; min-height: 44px;
}
.alert-teaser-btn:hover { transform: translateY(-2px); box-shadow: 0 4px 16px rgba(240,192,64,.4); }

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .hero { padding: 40px 0 36px; }
  .hero h1 { font-size: 1.5rem; }
  .property-grid { grid-template-columns: 1fr; }
  .header-nav { width: 100%; justify-content: center; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .calc-grid { grid-template-columns: 1fr; }
  .infra-grid { grid-template-columns: repeat(2, 1fr); }
  .compare-table { font-size: 0.8rem; }
  .checklist-grid { grid-template-columns: 1fr; }
  .floorplan-card { flex: 0 0 180px; }
  .compare-tray { bottom: 110px; }
  .alert-teaser { flex-direction: column; text-align: center; }
  .related-grid { grid-template-columns: 1fr; }
}

/* 모바일 가로 오버플로 방지 + 보조텍스트 가독성 (360~480px) */
@media (max-width: 480px) {
  /* 하단 고정바: 긴 이메일/CTA 텍스트가 좁은 화면을 넘지 않도록 축소·줄바꿈 허용 */
  div[style*="z-index:9999"] { height: auto !important; min-height: 48px; padding: 6px 10px; }
  div[style*="z-index:9999"] a { font-size: 13px !important; line-height: 1.35; text-align: center; white-space: normal; word-break: break-word; }
  body { padding-bottom: 120px; }
  .hero h1 { font-size: 1.35rem; }
  .section-title { font-size: 1.3rem; }
  .card-desc { font-size: 0.95rem; }      /* 14.7→15.2px 가독성 */
  .card-location, .related-loc { font-size: 0.88rem; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-num { font-size: 1.6rem; }
}
