/* ============ Tokens ============ */
:root {
  --bg: #F4F2EC;
  --surface: #FFFFFF;
  --surface-2: #F8F7F3;
  --text: #16211D;
  --muted: #6B7570;
  --line: #E6E3DA;
  --primary: #0F5C4A;
  --primary-2: #13755E;
  --primary-soft: #E3F0EB;
  --on-primary: #FFFFFF;
  --accent: #B8862F;
  --accent-soft: #F7EED9;
  --danger: #C2412D;
  --danger-soft: #FBE7E3;
  --warn: #B87A0E;
  --warn-soft: #FBF0D9;
  --ok: #1E8A5A;
  --wa: #1FA855;
  --outside: #E7E3D8;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 6px 24px rgba(17, 33, 28, .08);
  --shadow-lg: 0 18px 50px rgba(17, 33, 28, .18);
  --app-w: 480px;
  --tab-h: 68px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0E1513; --surface: #151E1B; --surface-2: #1B2622; --text: #EEF2EF; --muted: #93A09A;
    --line: #26332E; --primary: #3DBB93; --primary-2: #52CCA5; --primary-soft: #17352C; --on-primary: #06231B;
    --accent: #D9B25E; --accent-soft: #2E2717; --danger: #F07A66; --danger-soft: #3A1E19;
    --warn: #E8B04A; --warn-soft: #33280F; --outside: #070B0A;
    --shadow: 0 6px 24px rgba(0, 0, 0, .35); --shadow-lg: 0 18px 50px rgba(0, 0, 0, .55);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0E1513; --surface: #151E1B; --surface-2: #1B2622; --text: #EEF2EF; --muted: #93A09A;
  --line: #26332E; --primary: #3DBB93; --primary-2: #52CCA5; --primary-soft: #17352C; --on-primary: #06231B;
  --accent: #D9B25E; --accent-soft: #2E2717; --danger: #F07A66; --danger-soft: #3A1E19;
  --warn: #E8B04A; --warn-soft: #33280F; --outside: #070B0A;
  --shadow: 0 6px 24px rgba(0, 0, 0, .35); --shadow-lg: 0 18px 50px rgba(0, 0, 0, .55);
  color-scheme: dark;
}

/* ============ Base ============ */
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; }
body {
  font-family: 'IBM Plex Sans Arabic', system-ui, -apple-system, 'Segoe UI', Tahoma, sans-serif;
  background: var(--outside);
  background-image: radial-gradient(circle at 1px 1px, color-mix(in srgb, var(--text) 8%, transparent) 1px, transparent 0);
  background-size: 22px 22px;
  color: var(--text);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
a { color: inherit; text-decoration: none; }
img, video { display: block; max-width: 100%; }
h1, h2, h3, h4, p { margin: 0; }
.ic { width: 20px; height: 20px; flex-shrink: 0; }
.ic.sm { width: 16px; height: 16px; }
.ic.lg { width: 24px; height: 24px; }
.num { font-variant-numeric: tabular-nums; direction: ltr; unicode-bidi: isolate; display: inline-block; }
.muted { color: var(--muted); }
.hidden { display: none !important; }

/* ============ App shell ============ */
.app {
  max-width: var(--app-w);
  margin: 0 auto;
  min-height: 100dvh;
  background: var(--bg);
  position: relative;
  box-shadow: 0 0 0 1px var(--line), var(--shadow-lg);
}
.view { padding-bottom: calc(var(--tab-h) + var(--safe-b) + 24px); min-height: 100dvh; }
.view.no-tabs { padding-bottom: calc(96px + var(--safe-b)); }

.tabbar {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: min(100%, var(--app-w));
  height: calc(var(--tab-h) + var(--safe-b)); padding-bottom: var(--safe-b);
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(16px); -webkit-backdrop-filter: saturate(1.4) blur(16px);
  border-top: 1px solid var(--line);
  z-index: 40;
}
.tabbar.hide { display: none; }
.tab {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  font-size: 11.5px; font-weight: 500; color: var(--muted); position: relative;
}
.tab .ic { width: 22px; height: 22px; transition: transform .2s; }
.tab.active { color: var(--primary); }
.tab.active .ic { transform: translateY(-1px); }
.tab.active::before {
  content: ''; position: absolute; top: 0; width: 28px; height: 3px; border-radius: 0 0 3px 3px; background: var(--primary);
}
.tab .badge-dot {
  position: absolute; top: 10px; margin-inline-start: 22px; min-width: 16px; height: 16px; padding: 0 4px;
  background: var(--accent); color: #fff; font-size: 10px; border-radius: 99px; display: grid; place-items: center; line-height: 1;
}

/* Desktop-only chrome (hidden on phones) */
.topnav, .site-footer, .hero-art, .hero-kicker, .filters-side { display: none; }
.pad { padding: 0 16px; }
.contact-grid { display: grid; gap: 14px; }
.values { display: grid; gap: 10px; }
.value { display: flex; gap: 12px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; }
.value .v-ic { width: 42px; height: 42px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; flex-shrink: 0; }
.value b { display: block; font-size: 14.5px; }
.value small { color: var(--muted); font-size: 12.5px; }
.list.is-empty { display: block; }

/* ============ Common components ============ */
.brand-mark {
  width: 40px; height: 40px; border-radius: 12px; background: var(--primary); color: var(--on-primary);
  display: grid; place-items: center;
}
.brand-mark svg { width: 22px; height: 22px; fill: currentColor; }
.brand-mark.big { width: 72px; height: 72px; border-radius: 22px; }
.brand-mark.big svg { width: 38px; height: 38px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 18px; border-radius: 14px; font-weight: 600; font-size: 15px;
  background: var(--surface-2); color: var(--text); border: 1px solid var(--line);
  transition: transform .1s, filter .15s;
  white-space: nowrap;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--primary); color: var(--on-primary); border-color: transparent; }
.btn-wa { background: var(--wa); color: #fff; border-color: transparent; }
.btn-accent { background: var(--accent); color: #fff; border-color: transparent; }
.btn-danger { background: var(--danger-soft); color: var(--danger); border-color: transparent; }
.btn-ghost { background: transparent; border-color: transparent; }
.btn-sm { height: 36px; padding: 0 12px; font-size: 13.5px; border-radius: 10px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; pointer-events: none; }

.icon-btn {
  width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center;
  background: var(--surface); border: 1px solid var(--line); color: var(--text); position: relative;
}
.icon-btn.glass {
  background: rgba(255, 255, 255, .88); border: 0; color: #16211D; backdrop-filter: blur(8px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, .12);
}
.icon-btn .count {
  position: absolute; top: -4px; inset-inline-end: -4px; background: var(--accent); color: #fff;
  font-size: 10px; min-width: 18px; height: 18px; border-radius: 99px; display: grid; place-items: center; padding: 0 4px;
}
.icon-btn.active-fav { color: #E0475B; }
.icon-btn.active-fav svg { fill: #E0475B; }
.icon-btn.active-cmp, .btn.active-cmp { color: var(--primary); background: var(--primary-soft); }

.chip {
  display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: 99px;
  background: var(--surface); border: 1px solid var(--line); font-size: 13.5px; font-weight: 500; white-space: nowrap;
  transition: background .15s, color .15s;
}
.chip.active { background: var(--text); color: var(--bg); border-color: var(--text); }
.chip .cnt { font-size: 11.5px; opacity: .65; }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px 16px; margin: 0 -16px; }
.chips::-webkit-scrollbar { display: none; }

.badge {
  display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 9px; border-radius: 8px;
  font-size: 12px; font-weight: 600; background: var(--surface-2); color: var(--text); white-space: nowrap;
}
.badge.primary { background: var(--primary-soft); color: var(--primary); }
.badge.accent { background: var(--accent-soft); color: var(--accent); }
.badge.danger { background: var(--danger-soft); color: var(--danger); }
.badge.warn { background: var(--warn-soft); color: var(--warn); }
.badge.dark { background: rgba(10, 18, 15, .72); color: #fff; backdrop-filter: blur(6px); }
.badge.gold { background: linear-gradient(135deg, #E8C26A, #B8862F); color: #fff; }
.badge .ic { width: 13px; height: 13px; }

.section { padding: 0 16px; margin-top: 26px; }
.section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; gap: 8px; }
.section-head h2 { font-size: 18px; font-weight: 700; }
.section-head a, .section-head button { font-size: 13.5px; color: var(--primary); font-weight: 600; display: inline-flex; align-items: center; gap: 2px; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.panel + .panel { margin-top: 12px; }
.panel h3 { font-size: 16px; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.panel h3 .ic { color: var(--primary); }

.field { display: grid; gap: 6px; }
.field label { font-size: 13px; font-weight: 600; color: var(--muted); }
.input, .select, .textarea {
  width: 100%; height: 48px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface-2);
  padding: 0 14px; outline: none; transition: border-color .15s, box-shadow .15s; font-size: 15px;
}
.textarea { height: auto; min-height: 96px; padding: 12px 14px; resize: vertical; }
.select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: 18px 21px, 23px 21px; background-size: 5px 5px; background-repeat: no-repeat; padding-left: 36px; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-soft); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.stack { display: grid; gap: 14px; }

.empty { text-align: center; padding: 48px 24px; color: var(--muted); display: grid; justify-items: center; gap: 10px; }
.empty .em-ic { width: 72px; height: 72px; border-radius: 24px; background: var(--primary-soft); color: var(--primary); display: grid; place-items: center; }
.empty .em-ic .ic { width: 32px; height: 32px; }
.empty h3 { color: var(--text); font-size: 17px; }

/* Skeleton */
.skel { background: linear-gradient(90deg, var(--surface-2) 0%, var(--line) 50%, var(--surface-2) 100%); background-size: 200% 100%; animation: sk 1.2s infinite linear; border-radius: 12px; }
@keyframes sk { to { background-position: -200% 0; } }

/* ============ Home ============ */
.topbar { display: flex; align-items: center; gap: 12px; padding: 14px 16px 6px; }
.topbar .brand-name { font-weight: 700; font-size: 17px; line-height: 1.25; }
.topbar .brand-sub { font-size: 12.5px; color: var(--muted); }
.topbar .spacer { flex: 1; }

.hero {
  margin: 10px 16px 0; padding: 20px 18px 18px; border-radius: 24px; color: #fff; position: relative; overflow: hidden;
  background: linear-gradient(140deg, #0F5C4A 0%, #13755E 55%, #1B8C70 100%);
}
.hero::after {
  content: ''; position: absolute; inset: auto -40px -60px auto; width: 220px; height: 220px; border-radius: 50%;
  background: radial-gradient(circle, rgba(232, 194, 106, .45), transparent 70%);
}
.hero-grid {
  position: absolute; inset: 0; opacity: .12;
  background-image: linear-gradient(rgba(255,255,255,.6) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.6) 1px, transparent 1px);
  background-size: 28px 28px; mask-image: linear-gradient(200deg, #000 10%, transparent 70%);
}
.hero h1 { font-size: 23px; line-height: 1.35; position: relative; z-index: 1; }
.hero p { opacity: .85; font-size: 13.5px; margin-top: 4px; position: relative; z-index: 1; }
.searchbox {
  margin-top: 16px; display: flex; align-items: center; gap: 10px; background: #fff; color: #16211D;
  border-radius: 16px; height: 52px; padding: 0 8px 0 6px; position: relative; z-index: 1; box-shadow: 0 6px 20px rgba(0,0,0,.15);
}
.searchbox .ic { color: #6B7570; margin-inline-start: 8px; }
.searchbox input { flex: 1; border: 0; outline: none; background: transparent; height: 100%; font-size: 15px; color: #16211D; min-width: 0; }
.searchbox input::placeholder { color: #8b948f; }
.searchbox .go { width: 40px; height: 40px; border-radius: 12px; background: var(--accent); color: #fff; display: grid; place-items: center; }
:root[data-theme="dark"] .searchbox .go { background: #B8862F; }
.hero-stats { display: flex; gap: 18px; margin-top: 14px; position: relative; z-index: 1; font-size: 12.5px; }
.hero-stats b { font-size: 17px; display: block; line-height: 1.2; }

.cats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.cat {
  background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 12px 6px 10px;
  display: grid; justify-items: center; gap: 6px; font-size: 13px; font-weight: 600; transition: transform .1s;
}
.cat:active { transform: scale(.96); }
.cat .cat-ic { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; }
.cat .cat-ic .ic { width: 24px; height: 24px; }
.cat small { font-size: 11px; color: var(--muted); font-weight: 500; margin-top: -4px; }
.cat:nth-child(1) .cat-ic { background: #F3EAD5; color: #8A6420; }
.cat:nth-child(2) .cat-ic { background: #E1EEF7; color: #2D6A93; }
.cat:nth-child(3) .cat-ic { background: #E3F0EB; color: #0F5C4A; }
.cat:nth-child(4) .cat-ic { background: #F4E4EC; color: #94406A; }
:root[data-theme="dark"] .cat .cat-ic { background: var(--surface-2) !important; color: var(--accent) !important; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .cat .cat-ic { background: var(--surface-2) !important; color: var(--accent) !important; } }

.hscroll { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 2px 16px 6px; margin: 0 -16px; }
.hscroll::-webkit-scrollbar { display: none; }
.hscroll > * { scroll-snap-align: start; flex-shrink: 0; }

.city-card {
  width: 136px; height: 92px; border-radius: 16px; padding: 12px; color: #fff; display: flex; flex-direction: column; justify-content: flex-end;
  position: relative; overflow: hidden; font-weight: 700;
}
.city-card small { font-weight: 500; opacity: .85; font-size: 12px; }
.city-card::before { content: ''; position: absolute; inset: 0; background: var(--g); z-index: -1; }
.city-card svg.deco { position: absolute; top: 8px; inset-inline-end: 8px; width: 46px; height: 46px; opacity: .25; }

/* ============ Listing cards ============ */
.lcard { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; display: block; position: relative; transition: transform .12s; }
.lcard:active { transform: scale(.985); }
.lcard .media { position: relative; aspect-ratio: 16 / 10; background: var(--surface-2); overflow: hidden; }
.lcard .media img { width: 100%; height: 100%; object-fit: cover; }
.lcard .tl { position: absolute; top: 10px; inset-inline-start: 10px; display: flex; gap: 6px; flex-wrap: wrap; }
.lcard .bl { position: absolute; bottom: 10px; inset-inline-start: 10px; display: flex; gap: 6px; }
.lcard .fav { position: absolute; top: 10px; inset-inline-end: 10px; width: 36px; height: 36px; border-radius: 12px; }
.lcard .fav .ic { width: 18px; height: 18px; }
.lcard .body { padding: 12px 14px 14px; }
.lcard .price-line { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.lcard .price { font-size: 19px; font-weight: 700; color: var(--primary); }
.lcard .price small { font-size: 12.5px; font-weight: 600; }
.lcard .price-sub { font-size: 12.5px; color: var(--muted); }
.lcard h3 { font-size: 15px; font-weight: 600; margin-top: 2px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.lcard .loc { display: flex; align-items: center; gap: 4px; color: var(--muted); font-size: 13px; margin-top: 2px; }
.lcard .loc .ic { width: 15px; height: 15px; }
.lcard .specs { display: flex; gap: 14px; margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line); font-size: 13px; color: var(--text); flex-wrap: wrap; }
.lcard .specs span { display: inline-flex; align-items: center; gap: 5px; }
.lcard .specs .ic { width: 16px; height: 16px; color: var(--muted); }
.lcard.sold .media img, .lcard.sold .media .ph { filter: grayscale(.85) brightness(.9); }
.lcard .sold-ribbon { position: absolute; inset: 0; display: grid; place-items: center; }
.lcard .sold-ribbon span { background: rgba(194, 65, 45, .92); color: #fff; padding: 6px 22px; border-radius: 10px; font-weight: 700; transform: rotate(-8deg); font-size: 18px; letter-spacing: .5px; }

.lcard.wide { width: 290px; }
.lcard.wide .media { aspect-ratio: 4 / 3; }
.lcard.mini { width: 220px; }
.lcard.mini .media { aspect-ratio: 16 / 11; }
.lcard.mini .price { font-size: 16px; }
.lcard.mini .specs { display: none; }

.list { display: grid; gap: 14px; }
.list.grid2 { grid-template-columns: 1fr 1fr; gap: 10px; }
.list.grid2 .lcard .body { padding: 10px; }
.list.grid2 .lcard .price { font-size: 15.5px; }
.list.grid2 .lcard .price-sub, .list.grid2 .lcard .specs { display: none; }
.list.grid2 .lcard .fav { width: 32px; height: 32px; top: 8px; inset-inline-end: 8px; }
.list.grid2 .lcard .tl { top: 8px; inset-inline-start: 8px; }
.list.grid2 .lcard .tl .badge:not(:first-child) { display: none; }

/* Placeholder art */
.ph { width: 100%; height: 100%; display: grid; place-items: center; position: relative; overflow: hidden; }
.ph svg { width: 100%; height: 100%; }

/* ============ Search ============ */
.search-head {
  position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); padding: 12px 16px 10px; border-bottom: 1px solid transparent;
}
.search-head.scrolled { border-bottom-color: var(--line); }
.search-row { display: flex; gap: 8px; }
.search-input { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; height: 46px; padding: 0 12px; }
.search-input input { flex: 1; border: 0; outline: 0; background: transparent; min-width: 0; height: 100%; }
.search-input .ic { color: var(--muted); }
.search-input .clear { color: var(--muted); }
.search-head .chips { margin-top: 10px; }
.results-bar { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px 10px; font-size: 13.5px; color: var(--muted); gap: 8px; }
.results-bar b { color: var(--text); }
.sort-select { height: 34px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); padding: 0 10px; font-size: 13px; }
.view-toggle { display: flex; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 2px; }
.view-toggle button { width: 32px; height: 28px; border-radius: 8px; display: grid; place-items: center; color: var(--muted); }
.view-toggle button.on { background: var(--surface-2); color: var(--text); }
.view-toggle .ic { width: 16px; height: 16px; }
.active-filters { display: flex; gap: 6px; flex-wrap: wrap; padding: 0 16px 10px; }
.active-filters .chip { height: 30px; font-size: 12.5px; background: var(--primary-soft); color: var(--primary); border-color: transparent; padding: 0 10px; }
.active-filters .chip .ic { width: 14px; height: 14px; }

/* ============ Sheet ============ */
.sheet-backdrop { position: fixed; inset: 0; background: rgba(5, 12, 10, .45); z-index: 80; opacity: 0; transition: opacity .25s; }
.sheet-backdrop.open { opacity: 1; }
.sheet {
  position: fixed; left: 50%; bottom: 0; width: min(100%, var(--app-w)); max-height: 92dvh; z-index: 81;
  background: var(--bg); border-radius: 26px 26px 0 0; transform: translate(-50%, 100%); transition: transform .3s cubic-bezier(.2, .8, .2, 1);
  display: flex; flex-direction: column; box-shadow: var(--shadow-lg);
}
.sheet.open { transform: translate(-50%, 0); }
.sheet-grip { width: 42px; height: 5px; border-radius: 9px; background: var(--line); margin: 10px auto 0; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; padding: 8px 16px 10px; }
.sheet-head h3 { font-size: 18px; }
.sheet-body { overflow-y: auto; padding: 4px 16px 16px; flex: 1; }
.sheet-foot { padding: 12px 16px calc(12px + var(--safe-b)); border-top: 1px solid var(--line); display: flex; gap: 10px; background: var(--surface); }
.sheet .group { margin-bottom: 20px; }
.sheet .group > label { display: block; font-weight: 700; margin-bottom: 10px; font-size: 14.5px; }
.seg { display: flex; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 4px; gap: 4px; }
.seg button { flex: 1; height: 38px; border-radius: 10px; font-weight: 600; font-size: 14px; color: var(--muted); }
.seg button.on { background: var(--primary); color: var(--on-primary); }
.wrap-chips { display: flex; flex-wrap: wrap; gap: 8px; }

/* ============ Detail ============ */
.gallery { position: relative; height: 340px; background: #111; overflow: hidden; }
.gallery .track { display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.gallery .track::-webkit-scrollbar { display: none; }
.gallery .slide { flex: 0 0 100%; height: 100%; scroll-snap-align: center; scroll-snap-stop: always; }
.gallery .slide img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; }
.gallery .top { position: absolute; top: 0; inset-inline: 0; padding: 14px 14px 30px; display: flex; gap: 8px; background: linear-gradient(rgba(0,0,0,.35), transparent); }
.gallery .top .sp { flex: 1; }
.gallery .bottom { position: absolute; bottom: 36px; inset-inline: 14px; display: flex; justify-content: space-between; align-items: center; pointer-events: none; }
.gallery .bottom > * { pointer-events: auto; }
.dots { display: flex; gap: 5px; }
.dots i { width: 6px; height: 6px; border-radius: 9px; background: rgba(255,255,255,.55); transition: width .2s, background .2s; }
.dots i.on { width: 18px; background: #fff; }

.detail-body { background: var(--bg); border-radius: 26px 26px 0 0; margin-top: -24px; position: relative; padding: 18px 16px 0; }
.detail-body .badges { display: flex; gap: 6px; flex-wrap: wrap; }
.detail-body h1 { font-size: 21px; line-height: 1.4; margin-top: 10px; }
.detail-body .loc { display: flex; align-items: center; gap: 6px; color: var(--muted); margin-top: 4px; font-size: 14px; }
.detail-body .meta { display: flex; gap: 14px; color: var(--muted); font-size: 12.5px; margin-top: 6px; }
.detail-body .meta span { display: inline-flex; gap: 4px; align-items: center; }

.price-card {
  margin-top: 16px; border-radius: 20px; padding: 16px; position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--primary-soft), color-mix(in srgb, var(--accent-soft) 70%, var(--primary-soft)));
  border: 1px solid color-mix(in srgb, var(--primary) 15%, transparent);
}
.price-card .lbl { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.price-card .big { font-size: 28px; font-weight: 700; color: var(--primary); line-height: 1.25; }
.price-card .big small { font-size: 15px; }
.price-card .sub { display: flex; justify-content: space-between; margin-top: 10px; padding-top: 10px; border-top: 1px dashed color-mix(in srgb, var(--primary) 25%, transparent); font-size: 14px; gap: 8px; }
.price-card .sub b { font-weight: 700; }
.price-card .tags { display: flex; gap: 6px; margin-top: 10px; flex-wrap: wrap; }

.specs-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.spec { background: var(--surface-2); border-radius: 14px; padding: 10px; display: grid; gap: 2px; }
.spec .ic { color: var(--primary); width: 20px; height: 20px; margin-bottom: 2px; }
.spec small { color: var(--muted); font-size: 11.5px; }
.spec b { font-size: 14px; font-weight: 700; }

/* Neighbors compass */
.compass { display: grid; grid-template-columns: 1fr 110px 1fr; grid-template-rows: auto 110px auto; gap: 8px; align-items: center; justify-items: center; direction: ltr; }
.compass .plot {
  grid-column: 2; grid-row: 2; width: 110px; height: 110px; border-radius: 14px; position: relative;
  background: repeating-linear-gradient(45deg, var(--accent-soft), var(--accent-soft) 8px, color-mix(in srgb, var(--accent) 22%, var(--accent-soft)) 8px, color-mix(in srgb, var(--accent) 22%, var(--accent-soft)) 9px);
  border: 2px dashed var(--accent); display: grid; place-items: center; text-align: center; font-weight: 700; color: var(--accent); font-size: 13px; line-height: 1.3;
}
.compass .plot b { display: block; font-size: 16px; color: var(--text); }
.compass .nb { background: var(--surface-2); border-radius: 12px; padding: 8px 10px; font-size: 12.5px; text-align: center; direction: rtl; width: 100%; min-height: 48px; display: grid; align-content: center; }
.compass .nb small { display: block; color: var(--primary); font-weight: 700; font-size: 11px; }
.compass .n { grid-column: 1 / 4; grid-row: 1; max-width: 220px; }
.compass .s { grid-column: 1 / 4; grid-row: 3; max-width: 220px; }
.compass .e { grid-column: 3; grid-row: 2; }
.compass .w { grid-column: 1; grid-row: 2; }
.compass .needle { position: absolute; top: -10px; right: -10px; width: 26px; height: 26px; border-radius: 50%; background: var(--surface); border: 1px solid var(--line); display: grid; place-items: center; font-size: 10px; color: var(--danger); font-weight: 700; }

.features { display: flex; flex-wrap: wrap; gap: 8px; }
.feature { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 12px; background: var(--primary-soft); color: var(--primary); font-size: 13.5px; font-weight: 600; }
.feature .ic { width: 15px; height: 15px; }

.desc { white-space: pre-line; color: var(--text); font-size: 14.5px; }
.desc.clamp { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.link-btn { color: var(--primary); font-weight: 600; font-size: 14px; margin-top: 6px; }

.video-wrap { border-radius: 16px; overflow: hidden; background: #000; aspect-ratio: 16 / 9; }
.video-wrap video, .video-wrap iframe { width: 100%; height: 100%; border: 0; }
.map-wrap { border-radius: 16px; overflow: hidden; aspect-ratio: 16 / 10; background: var(--surface-2); border: 1px solid var(--line); }
.map-wrap iframe { width: 100%; height: 100%; border: 0; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 8px 14px; font-size: 14px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 600; }

.calc .out { margin-top: 14px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.calc .out div { background: var(--surface-2); border-radius: 12px; padding: 10px; }
.calc .out small { color: var(--muted); font-size: 12px; display: block; }
.calc .out b { font-size: 16px; }
.calc .out .main { grid-column: 1 / 3; background: var(--primary); color: var(--on-primary); }
.calc .out .main small { color: inherit; opacity: .8; }
.calc .out .main b { font-size: 22px; }
.range-row { display: grid; gap: 4px; margin-top: 10px; }
.range-row .top { display: flex; justify-content: space-between; font-size: 13.5px; }
input[type="range"] { width: 100%; accent-color: var(--primary); }

.action-bar {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: min(100%, var(--app-w)); z-index: 45;
  display: flex; gap: 8px; padding: 10px 14px calc(10px + var(--safe-b)); background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-top: 1px solid var(--line);
}
.action-bar .btn { height: 50px; }
.action-bar .btn-wa { flex: 1; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; background: #000; z-index: 100; display: flex; flex-direction: column; }
.lightbox .lb-top { display: flex; justify-content: space-between; align-items: center; padding: 14px; color: #fff; }
.lightbox .track { flex: 1; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.lightbox .track::-webkit-scrollbar { display: none; }
.lightbox .slide { flex: 0 0 100%; display: grid; place-items: center; scroll-snap-align: center; }
.lightbox .slide img { max-height: 100%; max-width: 100%; object-fit: contain; }
.lightbox .thumbs { display: flex; gap: 6px; padding: 10px 14px calc(14px + var(--safe-b)); overflow-x: auto; }
.lightbox .thumbs img { width: 56px; height: 56px; object-fit: cover; border-radius: 8px; opacity: .5; flex-shrink: 0; cursor: pointer; }
.lightbox .thumbs img.on { opacity: 1; outline: 2px solid #fff; }

/* Compare */
.cmp-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13.5px; }
.cmp-wrap { overflow-x: auto; margin: 0 -16px; padding: 0 16px; }
.cmp-table th, .cmp-table td { padding: 10px 8px; border-bottom: 1px solid var(--line); text-align: start; vertical-align: top; min-width: 120px; }
.cmp-table th { color: var(--muted); font-weight: 600; min-width: 92px; position: sticky; right: 0; background: var(--bg); z-index: 1; }
.cmp-table td.best { color: var(--ok); font-weight: 700; }
.cmp-head img, .cmp-head .ph { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; overflow: hidden; }
.cmp-head a { font-weight: 600; display: block; margin-top: 6px; line-height: 1.4; }

/* Contact */
.company-card { text-align: center; padding: 26px 16px 20px; display: grid; justify-items: center; gap: 8px; }
.contact-list { display: grid; gap: 10px; }
.contact-item { display: flex; align-items: center; gap: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; }
.contact-item .ci { width: 42px; height: 42px; border-radius: 12px; background: var(--primary-soft); color: var(--primary); display: grid; place-items: center; }
.contact-item div { flex: 1; min-width: 0; }
.contact-item small { color: var(--muted); display: block; font-size: 12px; }
.contact-item b { font-weight: 600; overflow-wrap: anywhere; }
.contact-item > .ic { color: var(--muted); }

/* Toast */
.toast {
  position: fixed; left: 50%; bottom: calc(var(--tab-h) + var(--safe-b) + 16px); transform: translate(-50%, 20px);
  background: var(--text); color: var(--bg); padding: 10px 18px; border-radius: 14px; font-size: 14px; font-weight: 500;
  opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 120; max-width: calc(min(100vw, var(--app-w)) - 32px); text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

.compare-fab {
  position: fixed; bottom: calc(var(--tab-h) + var(--safe-b) + 14px); left: 50%; transform: translateX(-50%);
  z-index: 39; height: 44px; padding: 0 18px; border-radius: 99px; background: var(--text); color: var(--bg);
  display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; box-shadow: var(--shadow-lg);
}

.page-head { display: flex; align-items: center; gap: 10px; padding: 14px 16px 6px; }
.page-head h1 { font-size: 21px; flex: 1; }
.fade-in { animation: fi .25s ease-out; }
@keyframes fi { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.load-more { margin: 16px auto 0; display: flex; }
.recent-strip .lcard.mini { width: 180px; }

@media (max-width: 360px) {
  .cats { gap: 6px; }
  .cat { font-size: 12px; }
  .specs-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ======================================================================
   DESKTOP WEB APP (≥1024px)
   ====================================================================== */
.section.dsec { padding: 0; }
.similar-sec { margin-bottom: 8px; }
.btn.active-fav { color: #E0475B; background: #FCE8EB; border-color: transparent; }
.btn.active-fav svg { fill: #E0475B; }

@media (min-width: 1024px) {
  body { background: var(--bg); background-image: none; font-size: 15.5px; }
  .m-only { display: none !important; }
  .app { max-width: none; box-shadow: none; min-height: 100dvh; display: flex; flex-direction: column; }
  .view, .view.no-tabs { padding-bottom: 24px; min-height: 0; flex: 1; }
  .tabbar { display: none !important; }
  .wrap { max-width: 1240px; margin: 0 auto; padding: 0 32px; width: 100%; }
  .wrap .section { padding: 0; margin-top: 48px; }
  .pad { padding: 0; }
  .section-head h2 { font-size: 22px; }
  .section-head { margin-bottom: 16px; }

  /* top nav */
  .topnav { display: block; position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--surface) 86%, transparent);
    backdrop-filter: saturate(1.4) blur(18px); -webkit-backdrop-filter: saturate(1.4) blur(18px); border-bottom: 1px solid var(--line); }
  .tn-inner { max-width: 1320px; margin: 0 auto; padding: 0 32px; height: 72px; display: flex; align-items: center; gap: 14px; }
  .tn-inner > * { flex-shrink: 0; }
  .tn-inner > .tn-search { flex: 1 1 260px; max-width: 320px; min-width: 0; }
  .tn-brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
  .tn-brand b { display: block; font-size: 17px; line-height: 1.25; }
  .tn-brand small { display: block; color: var(--muted); font-size: 12px; line-height: 1.3; }
  .tn-links { display: flex; gap: 2px; margin-inline-start: 12px; }
  .tn-links a { padding: 8px 14px; border-radius: 10px; font-weight: 600; font-size: 14.5px; color: var(--muted); transition: background .15s, color .15s; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
  .tn-links a:hover { color: var(--text); background: var(--surface-2); }
  .tn-links a.active { color: var(--primary); background: var(--primary-soft); }
  .tn-count { background: var(--accent); color: #fff; border-radius: 99px; font-size: 11px; min-width: 18px; height: 18px; display: inline-grid; place-items: center; padding: 0 5px; }
  .tn-sp { flex: 1; }
  .tn-search { display: flex; align-items: center; gap: 8px; height: 42px; padding: 0 12px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); transition: border-color .15s, box-shadow .15s; }
  .tn-search:focus-within { border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-soft); }
  .tn-search input { border: 0; outline: 0; background: transparent; flex: 1; min-width: 0; font-size: 14px; }
  .tn-search .ic { color: var(--muted); }
  .tn-cta { height: 42px; }
  .tn-login { height: 42px; background: var(--surface); }
  .tn-login:hover { border-color: var(--primary); color: var(--primary); }
  .tn-brand b { white-space: nowrap; }
  .tn-brand small { white-space: nowrap; letter-spacing: .2px; }
  @media (max-width: 1400px) { .tn-cta .num { display: none; } .tn-cta { padding: 0 12px; } }
  @media (max-width: 1340px) { .tn-search { display: none; } }
  @media (max-width: 1100px) { .tn-login span { display: none; } .tn-login { padding: 0 12px; } }

  /* footer */
  .site-footer { display: block; background: var(--surface); border-top: 1px solid var(--line); margin-top: 72px; }
  .ft-inner { max-width: 1240px; margin: 0 auto; padding: 48px 32px 32px; display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 40px; }
  .ft-inner h4 { font-size: 15px; margin-bottom: 14px; }
  .ft-inner > div > a:not(.tn-brand), .ft-inner > div > span { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 14px; padding: 5px 0; }
  .ft-inner > div > a:not(.tn-brand):hover { color: var(--primary); }
  .ft-brand p { color: var(--muted); font-size: 14px; margin-top: 16px; max-width: 360px; }
  .ft-bottom { max-width: 1240px; margin: 0 auto; padding: 18px 32px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; display: flex; justify-content: space-between; }
  .ft-bottom a:hover { color: var(--primary); }

  /* hero */
  .hero { margin: 28px 0 0; padding: 64px 64px 52px; border-radius: 32px; min-height: 420px; display: flex; flex-direction: column; justify-content: center; }
  .hero h1 { font-size: 46px; line-height: 1.25; max-width: 640px; }
  .hero p { font-size: 18px; margin-top: 10px; max-width: 560px; }
  .hero-kicker { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; position: relative; z-index: 1; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.22); padding: 5px 12px; border-radius: 99px; font-size: 13px; font-weight: 600; margin-bottom: 16px; }
  .hero-art { display: block; position: absolute; left: 48px; bottom: 0; width: 440px; height: 300px; z-index: 0; }
  .searchbox { max-width: 620px; height: 64px; border-radius: 18px; margin-top: 28px; padding: 0 8px 0 8px; }
  .searchbox input { font-size: 16px; }
  .searchbox .go { width: auto; height: 48px; padding: 0 22px; border-radius: 14px; gap: 6px; display: inline-flex; align-items: center; font-weight: 700; font-size: 15px; }
  .hero-stats { gap: 44px; margin-top: 28px; font-size: 14px; }
  .hero-stats b { font-size: 30px; }

  /* categories */
  .cats { grid-template-columns: repeat(4, 1fr); gap: 16px; }
  .cat { grid-template-columns: auto 1fr; grid-template-rows: auto auto; justify-items: start; align-items: center; column-gap: 14px; row-gap: 0; padding: 18px 20px; font-size: 17px; text-align: start; transition: transform .2s, box-shadow .2s, border-color .2s; }
  .cat .cat-ic { grid-row: 1 / 3; width: 56px; height: 56px; border-radius: 16px; }
  .cat .cat-ic .ic { width: 28px; height: 28px; }
  .cat small { margin-top: 0; font-size: 13px; }
  .cat:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: transparent; }

  /* horizontal rails become grids */
  .hscroll { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 20px; overflow: visible; margin: 0; padding: 0; scroll-snap-type: none; }
  .hscroll > * { width: auto !important; }
  .hscroll.cities-row { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; }
  .city-card { height: 120px; padding: 16px; font-size: 17px; transition: transform .2s, box-shadow .2s; }
  .city-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
  .recent-strip .hscroll { grid-template-columns: repeat(5, 1fr); gap: 14px; }
  .values { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .value { padding: 20px; }
  .value .v-ic { width: 52px; height: 52px; border-radius: 16px; }
  .value b { font-size: 16px; }
  .value small { font-size: 13.5px; }

  /* cards */
  .list, .list.grid2 { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; }
  .lcard { transition: transform .2s, box-shadow .2s, border-color .2s; }
  .lcard:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
  .lcard:active { transform: translateY(-2px); }
  .lcard .media img { transition: transform .6s cubic-bezier(.2,.8,.2,1); }
  .lcard:hover .media img { transform: scale(1.06); }
  .lcard .fav { transition: transform .15s; }
  .lcard .fav:hover { transform: scale(1.1); }

  /* search */
  .search-page .search-head { position: static; padding: 32px 0 8px; background: none; backdrop-filter: none; -webkit-backdrop-filter: none; border: 0; }
  .sp-title h1 { font-size: 30px; }
  .sp-title p { margin-bottom: 18px; }
  .search-page .search-row { max-width: 720px; }
  .search-page .search-input { height: 52px; border-radius: 14px; }
  .search-page .chips { margin: 14px 0 0; padding: 2px 0; flex-wrap: wrap; overflow: visible; }
  .search-layout { display: grid; grid-template-columns: 300px 1fr; gap: 32px; align-items: start; margin-top: 18px; }
  .filters-side { display: block; position: sticky; top: 92px; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 18px; max-height: calc(100dvh - 112px); overflow-y: auto; }
  .filters-side .group { margin-bottom: 18px; }
  .filters-side .group > label { display: block; font-weight: 700; margin-bottom: 8px; font-size: 14px; }
  .filters-side .chip { height: 32px; font-size: 13px; padding: 0 12px; }
  .filters-side .seg button { height: 34px; font-size: 13.5px; }
  .filters-side .input, .filters-side .select { height: 42px; font-size: 14px; }
  .fs-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
  .fs-head h3 { font-size: 17px; display: flex; gap: 8px; align-items: center; }
  .fs-head h3 .ic { color: var(--primary); }
  .fs-head .link-btn { margin: 0; }
  .results-bar, .active-filters { padding-inline: 0; }
  .results-bar { padding-top: 0; }
  .search-layout .list { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }

  /* detail */
  .d-toolbar { display: flex; align-items: center; gap: 10px; padding: 22px 0 16px; }
  .crumbs { font-size: 14px; color: var(--muted); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-inline-start: 8px; }
  .crumbs a:hover { color: var(--primary); }
  .crumbs span { opacity: .5; }
  .mosaic { display: grid; gap: 8px; height: 500px; border-radius: 24px; overflow: hidden; position: relative; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 1fr 1fr; background: var(--surface-2); }
  .mosaic .mz { padding: 0; overflow: hidden; background: var(--surface-2); cursor: zoom-in; min-height: 0; display: block; }
  .mosaic .mz img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s, filter .2s; }
  .mosaic .mz:hover img { transform: scale(1.04); filter: brightness(.92); }
  .mosaic .mz:first-child { grid-row: 1 / 3; }
  .mosaic.m1 { grid-template-columns: 1fr; }
  .mosaic.m0 { height: 340px; }
  .mosaic.m1 .mz { cursor: default; }
  .mosaic.m2 { grid-template-columns: 1fr 1fr; }
  .mosaic.m2 .mz { grid-row: 1 / 3; }
  .mosaic.m3 { grid-template-columns: 2fr 1fr; }
  .mosaic.m4 .mz:nth-child(4) { grid-column: 2 / 4; }
  .mz-btns { position: absolute; bottom: 16px; left: 16px; display: flex; gap: 8px; }
  .mz-btns .badge { height: 38px; padding: 0 14px; font-size: 13.5px; border-radius: 12px; cursor: pointer; }
  .mz-btns .badge .ic { width: 16px; height: 16px; }
  .dd-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 40px; margin-top: 28px; align-items: start; }
  .dd-head .badges { display: flex; gap: 6px; flex-wrap: wrap; }
  .dd-head h1 { font-size: 32px; line-height: 1.35; margin-top: 12px; }
  .dd-head .loc { display: flex; align-items: center; gap: 6px; color: var(--muted); margin-top: 6px; font-size: 15px; }
  .dd-head .meta { display: flex; gap: 16px; color: var(--muted); font-size: 13px; margin-top: 8px; }
  .dd-head .meta span { display: inline-flex; gap: 4px; align-items: center; }
  .dd-main .section.dsec { margin-top: 36px; padding-top: 32px; border-top: 1px solid var(--line); }
  .dd-main .specs-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
  .dd-main .spec { padding: 14px; background: var(--surface); border: 1px solid var(--line); }
  .dd-main .spec b { font-size: 15.5px; }
  .dd-main .compass { grid-template-columns: 1fr 140px 1fr; grid-template-rows: auto 140px auto; max-width: 560px; margin: 0 auto; }
  .dd-main .compass .plot { width: 140px; height: 140px; }
  .dd-main .desc { font-size: 15.5px; line-height: 1.9; }
  .dd-main .desc.clamp { -webkit-line-clamp: 6; }
  .dd-main .map-wrap { aspect-ratio: 16 / 8; }
  .dd-side .sticky { position: sticky; top: 92px; display: grid; gap: 14px; }
  .dd-side .price-card { margin-top: 0; padding: 20px; }
  .dd-side .price-card .big { font-size: 32px; }
  .contact-box { display: grid; gap: 10px; }
  .cb-agent { display: flex; gap: 12px; align-items: center; padding-bottom: 12px; margin-bottom: 2px; border-bottom: 1px solid var(--line); }
  .cb-agent b { display: block; }
  .cb-agent small { color: var(--muted); font-size: 13px; }
  .detail-desk .similar-sec { margin-top: 56px; }

  /* other pages */
  .page-head { padding: 32px 0 16px; }
  .page-head h1 { font-size: 30px; }
  .contact-page .company-card { padding: 48px 0 32px; }
  .contact-grid { grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
  .contact-item { transition: border-color .15s, transform .15s; }
  a.contact-item:hover { border-color: var(--primary); transform: translateY(-2px); }
  .cmp-table { font-size: 14.5px; }
  .cmp-table td { min-width: 220px; }

  /* modals instead of bottom sheets */
  .sheet { top: 50%; bottom: auto; width: min(560px, calc(100vw - 48px)); max-height: 86vh; border-radius: 24px; opacity: 0;
    transform: translate(-50%, -46%) scale(.98); transition: transform .25s cubic-bezier(.2,.8,.2,1), opacity .2s; }
  .sheet.open { transform: translate(-50%, -50%); opacity: 1; }
  .sheet-grip { display: none; }
  .sheet-head { padding-top: 16px; }
  .sheet-foot { border-radius: 0 0 24px 24px; }
  .toast, .compare-fab { bottom: 28px; }

  /* hover affordances */
  .btn:hover { filter: brightness(.97); }
  .btn-primary:hover, .btn-wa:hover { filter: brightness(1.08); }
  .icon-btn:hover { background: var(--surface-2); }
  .chip:hover:not(.active) { border-color: var(--muted); }
  .section-head a:hover { text-decoration: underline; }
}
