/* ═══════════════════════════════════════════════════════════
   ViveBKK — main.css
   Palette: Warm Linen × Clay Terracotta × Deep Slate
   "Homely but sharp" — earthy hues, AAA-level contrast
═══════════════════════════════════════════════════════════ */

/* ── Tokens ─────────────────────────────────────────────── */
:root {
  /* Warm background scale */
  --bg:           #F7F3EE;   /* page background — warm linen    */
  --bg-card:      #FFFFFF;
  --bg-soft:      #EDE8E0;   /* subtle section fills             */
  --bg-muted:     #E4DDD3;   /* borders, dividers                */

  /* Accent — terracotta clay */
  --clay:         #C07A52;
  --clay-dark:    #A8623C;
  --clay-light:   #F5EAE1;

  /* Navigation blue — deep slate (kept for BTS/transit only)   */
  --slate:        #2D4A7A;
  --slate-light:  #E8EEF8;

  /* Text scale */
  --text:         #231E1A;   /* headings — near-black warm       */
  --text-body:    #4A3F38;   /* body text                        */
  --text-muted:   #8C7D74;   /* captions, labels                 */

  /* Semantic */
  --success:      #3E7D55;

  /* Geometry */
  --radius-sm:    6px;
  --radius-md:    10px;
  --radius-lg:    14px;

  /* Nav height (used for sticky offset) */
  --nav-h: 64px;
}

/* ── Reset & Base ────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', 'Helvetica Neue', sans-serif;
  color: var(--text-body);
  background: var(--bg);
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a   { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }
button { font-family: inherit; }

/* ── Nav ─────────────────────────────────────────────────── */
header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: #fff;
  border-bottom: 1px solid var(--bg-muted);
  box-shadow: 0 1px 4px rgba(35,30,26,.06);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  height: var(--nav-h);
  max-width: 1260px;
  margin: 0 auto;
}
.nav-logo         { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.nav-logo-icon    { width: 38px; height: 38px; background: var(--clay); border-radius: 9px; display: flex; align-items: center; justify-content: center; }
.nav-logo-icon svg{ width: 22px; height: 22px; fill: #fff; }
.logo-text        { font-size: 15px; font-weight: 700; letter-spacing: .3px; color: var(--text); }
.logo-sub         { font-size: 11px; color: var(--text-muted); }

.nav-links        { display: flex; gap: 4px; }
.nav-links a      { font-size: 13px; color: var(--text-body); padding: 6px 12px; border-radius: var(--radius-sm); transition: background .15s, color .15s; }
.nav-links a:hover{ background: var(--bg-soft); color: var(--text); }

.nav-right        { display: flex; align-items: center; gap: 10px; }
.btn-ghost        { background: none; border: 1px solid transparent; cursor: pointer; font-size: 13px; color: var(--text-muted); display: flex; align-items: center; gap: 5px; padding: 6px 11px; border-radius: var(--radius-sm); transition: background .15s, border-color .15s; }
.btn-ghost:hover  { background: var(--bg-soft); border-color: var(--bg-muted); }
.btn-admin        { color: var(--slate); }
.btn-admin:hover  { background: var(--slate-light); }
.btn-primary      { background: var(--clay); color: #fff; border: none; border-radius: var(--radius-sm); padding: 9px 18px; font-size: 13px; font-weight: 600; cursor: pointer; transition: background .15s; white-space: nowrap; }
.btn-primary:hover{ background: var(--clay-dark); }
.nav-divider      { width: 1px; height: 20px; background: var(--bg-muted); flex-shrink: 0; }

/* ── Hamburger (hidden desktop) ──────────────────────────── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: var(--radius-sm);
}
.nav-hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--text); border-radius: 2px;
  transition: transform .22s, opacity .22s;
}

/* Mobile nav drawer */
.nav-drawer {
  display: none;
  flex-direction: column;
  background: #fff;
  border-top: 1px solid var(--bg-muted);
  padding: 10px 16px 18px;
  gap: 2px;
}
.nav-drawer a {
  font-size: 15px; font-weight: 500; color: var(--text-body);
  padding: 10px 12px; border-radius: var(--radius-sm); display: block;
  transition: background .15s;
}
.nav-drawer a:hover { background: var(--bg-soft); }
.nav-drawer .btn-primary { margin-top: 8px; text-align: center; padding: 11px 18px; display: block; font-size: 14px; border-radius: var(--radius-sm); }
.nav-drawer.open { display: flex; }

/* ── Hero ────────────────────────────────────────────────── */
.hero {
  position: relative;
  width: 100%;
  height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #1a120b;
  background-image: url('https://images.unsplash.com/photo-1583417319070-4a69db38a482?w=1800&q=85&fit=crop&crop=center');
  background-size: cover;
  background-position: center center;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(155deg, rgba(26,18,11,.55) 0%, rgba(35,30,26,.80) 100%);
  z-index: 1;
}
/* hide old img-wrap/overlay divs — bg now on .hero itself */
.hero-img-wrap, .hero-bg-img, .hero-overlay { display: none; }

.hero-inner {
  position: relative; z-index: 2;
  text-align: center; width: 100%;
  max-width: 640px; padding: 0 20px;
}
.hero h1 { font-size: clamp(30px, 5vw, 52px); font-weight: 800; color: #fff; line-height: 1.12; margin-bottom: 12px; }
.hero p  { font-size: 16px; color: rgba(255,255,255,.78); margin-bottom: 30px; }

/* Search pill */
.search-card {
  display: flex; align-items: center;
  background: #fff; border-radius: 60px;
  padding: 6px 6px 6px 24px;
  box-shadow: 0 8px 40px rgba(0,0,0,.24);
  max-width: 560px; margin: 0 auto;
}
.sf       { flex: 1; text-align: left; min-width: 0; }
.sf label { display: block; font-size: 11px; font-weight: 700; color: var(--text); margin-bottom: 2px; letter-spacing: .04em; text-transform: uppercase; }
.sf input { font-size: 13px; color: var(--text-body); border: none; outline: none; width: 100%; background: transparent; font-family: inherit; }
.sf input::placeholder { color: #b8afa8; }
.sf-divider { width: 1px; height: 40px; background: var(--bg-muted); margin: 0 16px; flex-shrink: 0; }
.search-btn {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--clay); border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; transition: background .15s;
}
.search-btn:hover { background: var(--clay-dark); }

/* Popular tags */
.popular        { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: center; margin-top: 20px; }
.popular-label  { font-size: 12px; color: rgba(255,255,255,.6); }
.ptag {
  font-size: 12px; padding: 4px 14px; border-radius: 20px;
  background: rgba(255,255,255,.13); border: 1px solid rgba(255,255,255,.24);
  color: rgba(255,255,255,.90); cursor: pointer; transition: background .15s;
}
.ptag:hover { background: rgba(255,255,255,.24); }

/* ── Filter Strip ────────────────────────────────────────── */
.filter-strip {
  background: #fff;
  border-bottom: 1px solid var(--bg-muted);
  padding: 18px 0 14px;
  position: sticky;
  top: var(--nav-h);
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,.04);
}
.filter-inner   { display: flex; align-items: flex-start; gap: 20px; flex-wrap: wrap; max-width: 1260px; margin: 0 auto; padding: 0 40px; }
.fstrip-price   { flex: 0 0 420px; }
.fstrip-group   { position: relative; }
.fstrip-label   { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); margin-bottom: 2px; }
.price-range-display { font-size: 14px; font-weight: 700; color: var(--clay); margin-bottom: 4px; }

/* Dual range */
.dual-range-wrap { position: relative; padding-bottom: 20px; }
.range-track { position: relative; height: 4px; background: var(--bg-muted); border-radius: 2px; margin: 14px 0 4px; }
.range-fill  { position: absolute; height: 100%; background: var(--clay); border-radius: 2px; }
.range-input { position: absolute; width: 100%; top: 8px; height: 0; -webkit-appearance: none; background: transparent; pointer-events: none; }
.range-input::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 2px solid var(--clay); cursor: pointer; pointer-events: all; box-shadow: 0 1px 5px rgba(0,0,0,.18); }
.range-input::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 2px solid var(--clay); cursor: pointer; pointer-events: all; }
.range-labels { display: flex; justify-content: space-between; font-size: 10px; color: var(--text-muted); margin-top: 6px; }

/* Filter buttons */
.fstrip-btn {
  display: flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 500; color: var(--text);
  background: #fff; border: 1px solid var(--bg-muted); border-radius: var(--radius-md);
  padding: 8px 14px; cursor: pointer; transition: border-color .15s, color .15s; white-space: nowrap; margin-top: 22px;
}
.fstrip-btn:hover     { border-color: var(--clay); color: var(--clay); }
.fstrip-more          { color: var(--text-muted); }
.fstrip-divider       { width: 1px; height: 56px; background: var(--bg-muted); align-self: center; }

/* Dropdowns */
.dropdown-menu {
  position: absolute; top: calc(100% + 6px); left: 0; min-width: 200px;
  background: #fff; border: 1px solid var(--bg-muted); border-radius: var(--radius-md);
  box-shadow: 0 8px 24px rgba(0,0,0,.10); padding: 8px; display: none; z-index: 300;
}
.dropdown-menu.open { display: block; }
.dd-item { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 6px; cursor: pointer; font-size: 13px; color: var(--text); transition: background .12s; }
.dd-item:hover { background: var(--bg-soft); }
.dd-item input[type=radio] { accent-color: var(--clay); }
.dd-dot  { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }

/* ── Layout ──────────────────────────────────────────────── */
.container  { max-width: 1260px; margin: 0 auto; padding: 0 40px; }
.section    { padding: 40px 0 0; }
.sec-header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 20px; }
.sec-header h2 { font-size: 20px; font-weight: 700; color: var(--text); }
.result-count  { font-size: 13px; color: var(--text-muted); margin-top: 3px; }
.see-all       { font-size: 13px; color: var(--clay); display: flex; align-items: center; gap: 4px; white-space: nowrap; margin-top: 4px; font-weight: 500; }
.see-all:hover { color: var(--clay-dark); }
.sort-wrap     { display: flex; align-items: center; gap: 8px; }
.sort-label    { font-size: 13px; color: var(--text-muted); }
.sort-select   { font-size: 13px; border: 1px solid var(--bg-muted); border-radius: var(--radius-sm); padding: 6px 10px; background: #fff; cursor: pointer; color: var(--text); font-family: inherit; outline: none; }
.sort-select:focus { border-color: var(--clay); }

/* ── Property Grid ───────────────────────────────────────── */
.prop-grid { display: grid; grid-template-columns: repeat(5,1fr); gap: 16px; margin-bottom: 12px; }

.prop-card {
  border: 1px solid var(--bg-muted); border-radius: var(--radius-lg);
  overflow: hidden; background: #fff; transition: box-shadow .2s, transform .15s;
  cursor: pointer; display: block;
}
.prop-card:hover { box-shadow: 0 6px 24px rgba(35,30,26,.11); transform: translateY(-2px); }
.prop-img { position: relative; height: 160px; background: var(--bg-soft); overflow: hidden; }
.prop-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.prop-card:hover .prop-img img { transform: scale(1.04); }

.badge               { position: absolute; top: 8px; left: 8px; font-size: 10px; font-weight: 600; padding: 3px 8px; border-radius: 5px; }
.badge-verified      { background: #fff; color: var(--text); box-shadow: 0 1px 4px rgba(0,0,0,.14); }
.badge-exclusive     { background: var(--clay); color: #fff; }
.badge-exclusive + .badge-verified { top: 34px; }

.save-btn { position: absolute; top: 8px; right: 8px; width: 28px; height: 28px; border-radius: 50%; background: rgba(255,255,255,.88); border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 14px; transition: background .15s; color: var(--text-muted); }
.save-btn:hover { background: #fff; color: var(--clay); }

.prop-body      { padding: 10px 12px 12px; }
.prop-name      { font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prop-transit   { display: flex; align-items: center; gap: 5px; font-size: 11px; color: var(--text-muted); margin-bottom: 6px; }
.transit-dot    { width: 16px; height: 16px; border-radius: 3px; display: flex; align-items: center; justify-content: center; font-size: 8px; font-weight: 700; color: #fff; flex-shrink: 0; }
.prop-price     { font-size: 16px; font-weight: 700; color: var(--clay); margin-bottom: 6px; }
.prop-price span{ font-size: 11px; font-weight: 400; color: var(--text-muted); }
.prop-amenities { display: flex; align-items: center; gap: 10px; font-size: 11px; color: var(--text-muted); border-top: 1px solid var(--bg-soft); padding-top: 8px; margin-top: 6px; flex-wrap: wrap; }
.amen-item      { display: flex; align-items: center; gap: 3px; }
.prop-dist      { display: flex; align-items: center; gap: 5px; font-size: 11px; color: var(--text-muted); margin-top: 5px; }
.dist-dot       { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }

/* Skeleton */
.skeleton { background: linear-gradient(90deg,#ede8e0 25%,#e4ddd3 50%,#ede8e0 75%); background-size: 200% 100%; animation: shimmer 1.3s infinite; border-radius: 4px; }
@keyframes shimmer { 0%{background-position:200% 0} 100%{background-position:-200% 0} }

.btn-view-all {
  display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; color: var(--clay);
  background: #fff; border: 1.5px solid var(--clay); border-radius: var(--radius-md); padding: 10px 24px;
  cursor: pointer; transition: all .15s; font-family: inherit;
}
.btn-view-all:hover { background: var(--clay); color: #fff; }
.empty-state { text-align: center; padding: 48px 24px; color: var(--text-muted); grid-column: 1/-1; }

/* ── BTS Section ─────────────────────────────────────────── */
.bts-section {
  display: grid;
  grid-template-columns: 210px 1fr 220px;
  border: 1px solid var(--bg-muted);
  border-radius: 16px;
  overflow: hidden;
  margin: 16px 0 40px;
  background: var(--bg-soft);
  min-height: 320px;
}
.bts-left { padding: 32px 24px; display: flex; flex-direction: column; justify-content: center; gap: 10px; }
.bts-left h2 { font-size: 18px; font-weight: 700; line-height: 1.3; color: var(--text); }
.bts-left p  { font-size: 13px; color: var(--text-muted); line-height: 1.5; }
.btn-map {
  display: inline-block; background: var(--clay); color: #fff;
  border-radius: var(--radius-sm); padding: 9px 20px; font-size: 13px; font-weight: 500;
  margin-top: 8px; width: fit-content; transition: background .15s;
}
.btn-map:hover { background: var(--clay-dark); }

.bts-map-wrap { border-left: 1px solid var(--bg-muted); border-right: 1px solid var(--bg-muted); background: #eef1f7; overflow: hidden; position: relative; }
#btsLeafletMap { width: 100%; height: 100%; min-height: 320px; }

.bts-right-list { padding: 24px 20px; display: flex; flex-direction: column; gap: 0; justify-content: center; }
.bts-line-row { display: flex; align-items: center; gap: 10px; padding: 10px 8px; border-radius: var(--radius-sm); transition: background .12s; }
.bts-line-link { text-decoration: none; color: inherit; cursor: pointer; }
.bts-line-link:hover { background: rgba(192,122,82,.09); }
.bts-line-dot  { width: 12px; height: 12px; border-radius: 50%; flex-shrink: 0; }
.bts-line-info { display: flex; flex-direction: column; }
.bts-line-name { font-size: 13px; font-weight: 600; color: var(--text); }
.bts-line-count{ font-size: 11px; color: var(--text-muted); margin-top: 1px; }
.view-all-areas { font-size: 13px; color: var(--clay); margin-top: 12px; padding: 8px; display: inline-block; font-weight: 500; }
.view-all-areas:hover { color: var(--clay-dark); }

/* ── Experience Section ──────────────────────────────────── */
.exp-section { padding: 8px 0 40px; }
.exp-title   { font-size: 20px; font-weight: 700; color: var(--text); margin-bottom: 18px; }
.exp-grid    { display: grid; grid-template-columns: repeat(9,1fr); gap: 10px; }
.exp-card    { display: flex; flex-direction: column; align-items: center; gap: 7px; cursor: pointer; }
.exp-thumb   { width: 100%; aspect-ratio: 1; border-radius: 12px; overflow: hidden; transition: transform .2s, box-shadow .2s; }
.exp-card:hover .exp-thumb { transform: scale(1.04); box-shadow: 0 4px 16px rgba(35,30,26,.13); }
.exp-thumb img { width: 100%; height: 100%; object-fit: cover; }
.exp-label   { font-size: 11px; color: var(--text-body); text-align: center; font-weight: 500; }

/* ── Guides ──────────────────────────────────────────────── */
.guides-grid { display: grid; grid-template-columns: repeat(6,1fr); gap: 12px; margin-bottom: 48px; }
.guide-card  { border: 1px solid var(--bg-muted); border-radius: var(--radius-md); overflow: hidden; transition: box-shadow .2s, transform .15s; cursor: pointer; display: flex; flex-direction: column; background: #fff; }
.guide-card:hover { box-shadow: 0 4px 16px rgba(35,30,26,.10); transform: translateY(-2px); }
.guide-thumb { height: 90px; background: var(--bg-soft); flex-shrink: 0; overflow: hidden; }
.guide-thumb img { width: 100%; height: 100%; object-fit: cover; }
.guide-body  { padding: 10px 10px 12px; }
.guide-body strong { display: block; font-size: 12px; font-weight: 600; color: var(--text); margin-bottom: 4px; line-height: 1.35; }
.guide-body span   { font-size: 11px; color: var(--text-muted); line-height: 1.4; }

/* ── Trust Bar ───────────────────────────────────────────── */
.trust-bar {
  display: grid; grid-template-columns: repeat(4,1fr); gap: 20px;
  padding: 32px 0 40px; border-top: 1px solid var(--bg-muted);
}
.trust-item { display: flex; align-items: flex-start; gap: 12px; }
.trust-icon { width: 38px; height: 38px; background: var(--clay-light); border-radius: 9px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.trust-icon svg { width: 18px; height: 18px; stroke: var(--clay); }
.trust-text strong { display: block; font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 2px; }
.trust-text span   { font-size: 12px; color: var(--text-muted); }

/* ── Footer ──────────────────────────────────────────────── */
footer { border-top: 1px solid var(--bg-muted); padding: 20px 0; background: var(--text); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
footer span { font-size: 12px; color: rgba(255,255,255,.55); }
.footer-links { display: flex; gap: 20px; }
.footer-links a { font-size: 12px; color: rgba(255,255,255,.55); transition: color .15s; }
.footer-links a:hover { color: #fff; }

/* ── Img sizing ─────────────────────────────────────────── */
.prop-img img    { width: 100%; height: 100%; object-fit: cover; display: block; }
.guide-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.exp-thumb img   { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ═══════════════════════════════════════════════════════════
   TABLET — ≤ 1100px
═══════════════════════════════════════════════════════════ */
@media (max-width: 1100px) {
  .prop-grid    { grid-template-columns: repeat(4,1fr); }
  .guides-grid  { grid-template-columns: repeat(4,1fr); }
  .exp-grid     { grid-template-columns: repeat(5,1fr); }
  .fstrip-price { flex: 0 0 340px; }
  .bts-section  { grid-template-columns: 200px 1fr 220px; }
}

/* ═══════════════════════════════════════════════════════════
   TABLET (mid) — ≤ 900px
═══════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  /* Hide desktop nav links → show hamburger */
  .nav-links           { display: none; }
  .nav-right .btn-ghost,
  .nav-right .nav-divider,
  .nav-right .btn-admin { display: none; }
  .nav-hamburger       { display: flex; }

  .prop-grid    { grid-template-columns: repeat(3,1fr); }
  .bts-section  {
    grid-template-columns: 1fr 1fr;
  }
  .bts-map-wrap { grid-column: 1 / -1; order: 3; }
  .bts-right-list {
    border-top: none;
    border-left: 1px solid var(--bg-muted);
    grid-column: 2;
    grid-row: 1;
  }
  .bts-left { grid-column: 1; grid-row: 1; }
  .fstrip-price { flex: 0 0 100%; }
  .trust-bar    { grid-template-columns: repeat(2,1fr); }
}

/* ═══════════════════════════════════════════════════════════
   MOBILE — ≤ 680px
═══════════════════════════════════════════════════════════ */
@media (max-width: 680px) {
  :root { --nav-h: 60px; }

  .nav { padding: 0 16px; }
  .nav-right { display: none; }          /* fully hide; hamburger replaces */
  .nav-hamburger { display: flex; }

  /* Hero */
  .hero { height: auto; min-height: 480px; padding: 72px 0 48px; align-items: flex-start; }
  .hero-inner { text-align: left; padding: 0 20px; }
  .hero h1 { font-size: 30px; }
  .popular { justify-content: flex-start; }

  /* Search card — WHERE + WHEN stay side-by-side */
  .search-card {
    border-radius: 14px;
    padding: 12px 8px 8px 16px;
    flex-direction: row;          /* ← keep row on mobile */
    max-width: 100%;
  }
  .sf { padding: 0; }
  .sf label { font-size: 10px; }
  .sf input  { font-size: 13px; }
  .sf-divider { height: 36px; margin: 0 10px; }
  .search-btn { width: 40px; height: 40px; flex-shrink: 0; }

  /* Filter strip */
  .filter-strip { top: var(--nav-h); }
  .filter-inner { padding: 10px 16px; gap: 8px; flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; align-items: center; }
  .fstrip-price { flex: 0 0 200px; }
  .fstrip-price .fstrip-label { font-size: 10px; }
  .fstrip-divider { height: 40px; }
  .fstrip-btn { margin-top: 0; }

  /* Container */
  .container { padding: 0 16px; }

  /* Grids */
  .prop-grid    { grid-template-columns: repeat(2,1fr); gap: 12px; }
  .guides-grid  { grid-template-columns: repeat(2,1fr); }
  .trust-bar    { grid-template-columns: repeat(2,1fr); padding: 24px 0 32px; }
  .exp-grid     { grid-template-columns: repeat(3,1fr); }

  /* BTS section */
  .bts-section  { grid-template-columns: 1fr; }
  .bts-left     { padding: 24px 20px 16px; }
  .bts-map-wrap { grid-column: 1; order: unset; }
  .bts-right-list { border-left: none; border-top: 1px solid var(--bg-muted); grid-column: 1; grid-row: auto; flex-direction: row; flex-wrap: wrap; gap: 8px; padding: 16px 20px; }
  .bts-line-row { flex: 1 1 140px; }

  /* Footer */
  .footer-inner { flex-direction: column; text-align: center; }
}

/* ═══════════════════════════════════════════════════════════
   VERY SMALL — ≤ 400px
═══════════════════════════════════════════════════════════ */
@media (max-width: 400px) {
  /* On very small screens, stack search fields vertically */
  .search-card { flex-direction: column; border-radius: 14px; padding: 14px; gap: 0; }
  .sf-divider  { width: 100%; height: 1px; margin: 8px 0; }
  .search-btn  { width: 100%; border-radius: 8px; height: 40px; margin-top: 4px; }
  .prop-grid   { grid-template-columns: 1fr; }
  .guides-grid { grid-template-columns: 1fr; }
  .exp-grid    { grid-template-columns: repeat(3,1fr); }
}

/* ── Reduced motion ─────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
