/* Darvana — dark, simple, map-first. Colours come from the logo (coral #F75C5A, cream #FCF9F2). Works right-to-left (Kurdish, Arabic) and left-to-right (English). */
:root {
  /* dark theme; brand colours come from the logo (coral #F75C5A, from #EE2457 to #FA9470, cream #FCF9F2) */
  --bg: #121016;
  --surface: #1c1920;
  --surface-2: #26222b;
  --ink: #f6f1ef;
  --ink-2: #cbc2c4;
  --ink-3: #958b90;
  --line: #322d37;
  --brand: #f5475a;
  --brand-2: #e5304c;
  --brand-strong: #e5304c;
  --brand-light: #fa9470;
  --brand-soft: rgba(245, 71, 90, .16);
  --brand-grad: linear-gradient(135deg, #e8234f 0%, #f0414f 55%, #f6604f 100%);
  --accent: #fb8f6e;
  --on-accent: #2b120c;
  --accent-soft: rgba(251, 143, 110, .16);
  --on-ink: #121016;
  --wa: #25d366;
  --wa-dark: #4ade80;
  --free: #22b867;
  --verified: #7cb0ff;
  --danger: #ff6b6b;
  --star: #f5b83d;
  --ok-bg: rgba(52, 194, 122, .16); --ok-fg: #6ee0a4;
  --err-bg: rgba(255, 107, 107, .16); --err-fg: #ff9a9a;
  --warn-bg: rgba(245, 184, 61, .16); --warn-fg: #f6c868;
  --info-bg: rgba(124, 176, 255, .16); --info-fg: #9cc3ff;
  --r-sm: 10px;
  --r: 16px;
  --r-lg: 24px;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 6px 20px rgba(0, 0, 0, .28);
  --shadow-lg: 0 10px 40px rgba(0, 0, 0, .5);
  --font: "Plus Jakarta Sans", "Noto Sans Arabic", system-ui, -apple-system, "Segoe UI", sans-serif;
  --header: 64px;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.55; font-size: 15px; }
[dir="rtl"] body { line-height: 1.75; }
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { line-height: 1.25; margin: 0; letter-spacing: -.01em; }
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3 { letter-spacing: 0; line-height: 1.45; }
.icon { width: 18px; height: 18px; flex: none; display: inline-block; vertical-align: middle; }
.icon.lg { width: 22px; height: 22px; }
.icon.sm { width: 15px; height: 15px; }
[dir="rtl"] .flip { transform: scaleX(-1); }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--ink-3); }
.small { font-size: 13px; }
.hide { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.row { display: flex; align-items: center; gap: 10px; }
.row.wrapy { flex-wrap: wrap; }
.grow { flex: 1; }
.stack > * + * { margin-top: 12px; }

/* ---------- buttons, chips, inputs ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-weight: 600; cursor: pointer; white-space: nowrap; transition: transform .08s, background .15s, box-shadow .15s; }
.btn:active { transform: scale(.98); }
.btn:hover { box-shadow: var(--shadow); }
.btn.primary { background: var(--brand-grad); border-color: transparent; color: #fff; box-shadow: 0 4px 16px rgba(240, 65, 79, .35); }
.btn.primary:hover { background: var(--brand-2); }
.btn.accent { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn.wa { background: var(--wa); border-color: var(--wa); color: #fff; font-weight: 700; }
.btn.wa:hover { background: var(--wa-dark); border-color: var(--wa-dark); }
.btn.ghost { background: transparent; border-color: transparent; }
.btn.small { height: 36px; padding: 0 14px; font-size: 14px; }
.btn.block { width: 100%; }
.btn.danger { color: var(--danger); }
.btn[disabled] { opacity: .55; pointer-events: none; }
.iconbtn { width: 40px; height: 40px; border-radius: 50%; display: inline-grid; place-items: center; border: 1px solid var(--line); background: var(--surface); cursor: pointer; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-size: 14px; font-weight: 600; white-space: nowrap; cursor: pointer; }
.chip.on, .chip[aria-pressed="true"] { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 8px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 700; background: var(--surface); }
.badge.free { background: var(--free); color: #fff; }
.badge.verified { background: var(--info-bg); color: var(--info-fg); }
.badge.featured { background: var(--accent); color: var(--on-accent); }
.badge.soft { background: var(--surface-2); color: var(--ink-2); }
.badge.warn { background: var(--warn-bg); color: var(--warn-fg); }
.badge.bad { background: var(--err-bg); color: var(--err-fg); }
.badge.good { background: var(--ok-bg); color: var(--ok-fg); }
label.field { display: block; }
label.field > span, .label { display: block; font-size: 13px; font-weight: 700; color: var(--ink-2); margin-bottom: 6px; }
.input, select.input, textarea.input { width: 100%; height: 46px; padding: 0 14px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface); outline: none; transition: border .15s, box-shadow .15s; }
textarea.input { height: auto; min-height: 110px; padding: 12px 14px; resize: vertical; }
.input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.check { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface); cursor: pointer; font-weight: 600; font-size: 14px; }
.check input { width: 18px; height: 18px; accent-color: var(--brand); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (max-width: 640px) { .grid3 { grid-template-columns: 1fr 1fr; } }

/* ---------- header ---------- */
.top { position: sticky; top: 0; z-index: 1000; background: rgba(18, 16, 22, .88); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.top .wrap { height: var(--header); display: flex; align-items: center; gap: 14px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; color: var(--brand); }
.logo img { width: 34px; height: 34px; }
.logo small { display: block; font-size: 11px; font-weight: 600; color: var(--ink-3); margin-top: -4px; }
.nav { display: flex; gap: 4px; margin-inline-start: 10px; }
.nav a { padding: 8px 12px; border-radius: 999px; font-weight: 600; color: var(--ink-2); font-size: 14px; }
.nav a:hover, .nav a.on { background: var(--surface-2); color: var(--ink); }
.top .spacer { flex: 1; }
.lang { position: relative; }
.lang summary { list-style: none; cursor: pointer; }
.lang summary::-webkit-details-marker { display: none; }
.lang .menu { position: absolute; inset-inline-end: 0; top: 46px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-lg); padding: 6px; min-width: 160px; }
.lang .menu a { display: block; padding: 10px 12px; border-radius: 10px; font-weight: 600; }
.lang .menu a:hover, .lang .menu a.on { background: var(--surface-2); }
.savedlink { position: relative; }
.savedlink .count { position: absolute; top: -4px; inset-inline-end: -4px; background: var(--accent); color: var(--on-accent); font-size: 11px; font-weight: 800; min-width: 18px; height: 18px; border-radius: 9px; display: grid; place-items: center; padding: 0 4px; }
@media (max-width: 860px) { .nav, .top .owner-cta { display: none; } }

/* bottom tab bar on phones */
.tabbar { display: none; }
@media (max-width: 860px) {
  .tabbar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; bottom: 0; inset-inline: 0; z-index: 1000; background: var(--surface); border-top: 1px solid var(--line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
  .tabbar a { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 11px; font-weight: 700; color: var(--ink-3); }
  .tabbar a.on { color: var(--brand); }
  body { padding-bottom: 68px; }
}

/* ---------- home ---------- */
.hero { position: relative; overflow: hidden; background: linear-gradient(150deg, #c41a44 0%, #ec2f52 40%, #f65a58 75%, #f98a68 100%); color: #fff; }
.hero .mount { position: absolute; inset-inline: 0; bottom: 0; height: 140px; opacity: .14; }
.hero .wrap { position: relative; z-index: 1; padding-top: 48px; padding-bottom: 52px; }
.hero h1 { font-size: clamp(28px, 5vw, 46px); font-weight: 800; max-width: 760px; }
.hero p { font-size: 17px; opacity: .9; margin: 12px 0 26px; max-width: 620px; }
.searchbox { background: var(--surface); color: var(--ink); border-radius: var(--r-lg); padding: 10px; box-shadow: var(--shadow-lg); display: grid; grid-template-columns: 1.3fr 1fr 1fr auto; gap: 8px; max-width: 860px; }
.searchbox .cell { display: flex; flex-direction: column; padding: 6px 12px; border-radius: 14px; }
.searchbox .cell:hover { background: var(--surface-2); }
.searchbox .cell span { font-size: 12px; font-weight: 700; color: var(--ink-3); }
.searchbox select, .searchbox input { border: 0; background: transparent; padding: 2px 0; outline: none; font-weight: 600; width: 100%; }
.searchbox .btn { height: 56px; border-radius: 16px; padding: 0 26px; }
@media (max-width: 760px) { .searchbox { grid-template-columns: 1fr 1fr; } .searchbox .cell:first-child { grid-column: 1 / -1; } .searchbox .btn { grid-column: 1 / -1; height: 50px; } }
.section { padding: 26px 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.section-head h2 { font-size: 22px; font-weight: 800; }
.section-head p { margin: 4px 0 0; color: var(--ink-3); font-size: 14px; }
.section-head a { font-weight: 700; color: var(--brand); white-space: nowrap; font-size: 14px; }
.collections { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; }
.collections a { flex: none; display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); font-weight: 700; }
.collections a:hover { border-color: var(--brand); }
.collections .emo { font-size: 22px; }
.cities { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.city-tile { position: relative; display: flex; flex-direction: column; justify-content: end; height: 104px; padding: 12px 14px; border-radius: var(--r); color: #fff; overflow: hidden; background: var(--brand); }
.city-tile::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 20%, rgba(0, 0, 0, .45)), var(--tile, #e5304c); }
.city-tile > * { position: relative; }
.city-tile b { font-size: 17px; }
.city-tile small { opacity: .9; font-weight: 600; }
.rowscroll { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, 300px); gap: 14px; overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.rowscroll > * { scroll-snap-align: start; }
.owner-band { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px; display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; align-items: center; }
.owner-band h2 { font-size: 26px; font-weight: 800; }
.owner-band ul { margin: 12px 0 18px; padding: 0; list-style: none; display: grid; gap: 8px; }
.owner-band li { display: flex; gap: 10px; align-items: center; font-weight: 600; color: var(--ink-2); }
.owner-band li .icon { color: var(--brand); }
.owner-band .art { background: var(--brand-soft); border-radius: var(--r); padding: 22px; display: grid; gap: 10px; }
.stat-pill { background: var(--surface); border-radius: 12px; padding: 12px 14px; display: flex; justify-content: space-between; font-weight: 700; box-shadow: var(--shadow); }
.stat-pill b { color: var(--brand); }
@media (max-width: 760px) { .owner-band { grid-template-columns: 1fr; padding: 20px; } }

/* ---------- cards ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.card { position: relative; display: flex; flex-direction: column; background: var(--surface); border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); transition: box-shadow .15s, transform .15s; }
.card:hover { box-shadow: var(--shadow); }
.card .pic { position: relative; aspect-ratio: 4 / 3; background: var(--surface-2); overflow: hidden; }
.card .pic img { width: 100%; height: 100%; object-fit: cover; }
.card .pic .noimg { position: absolute; inset: 0; display: grid; place-items: center; color: var(--ink-3); }
.card .tags { position: absolute; top: 10px; inset-inline-start: 10px; display: flex; gap: 6px; flex-wrap: wrap; max-width: 75%; }
.card .heart { position: absolute; top: 8px; inset-inline-end: 8px; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; border: 0; background: rgba(255, 255, 255, .92); cursor: pointer; color: #221c22; }
.heart.on { color: var(--brand); }
.heart.on svg { fill: currentColor; }
.card .count { position: absolute; bottom: 8px; inset-inline-end: 8px; background: rgba(0, 0, 0, .55); color: #fff; font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 999px; display: flex; gap: 4px; align-items: center; }
.card .body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card h3 { font-size: 16px; font-weight: 700; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card .where { color: var(--ink-3); font-size: 13px; font-weight: 600; display: flex; gap: 4px; align-items: center; }
.card .facts { display: flex; flex-wrap: wrap; gap: 10px; color: var(--ink-2); font-size: 13px; font-weight: 600; }
.card .facts span { display: inline-flex; align-items: center; gap: 4px; }
.card .foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; padding-top: 6px; }
.price { font-weight: 800; font-size: 17px; }
.price small { font-weight: 600; color: var(--ink-3); font-size: 12px; }
.rating { display: inline-flex; align-items: center; gap: 3px; font-weight: 700; font-size: 13px; }
.rating .icon { color: var(--star); fill: var(--star); width: 15px; height: 15px; }
.card .dist { font-size: 12px; color: var(--ink-3); font-weight: 600; }
.empty { text-align: center; padding: 50px 16px; color: var(--ink-3); }
.empty .icon { width: 42px; height: 42px; color: var(--line); margin: 0 auto 12px; }
.empty h3 { color: var(--ink); margin-bottom: 6px; }

/* ---------- search page: list + map ---------- */
.searchbar { position: sticky; top: var(--header); z-index: 900; background: var(--bg); border-bottom: 1px solid var(--line); }
.searchbar .wrap { display: flex; gap: 8px; align-items: center; padding-top: 10px; padding-bottom: 10px; overflow-x: auto; scrollbar-width: none; }
.searchbar .wrap::-webkit-scrollbar { display: none; }
.searchbar .q { flex: 0 1 260px; min-width: 170px; display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); }
.searchbar .q input { border: 0; outline: 0; background: transparent; width: 100%; font-weight: 600; }
.searchbar select.chip { appearance: none; -webkit-appearance: none; padding-inline-end: 14px; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 44%); }
.split .list { padding: 18px 16px 40px; }
.split .mapcol { position: sticky; top: calc(var(--header) + 61px); height: calc(100vh - var(--header) - 61px); }
.split .map { height: 100%; }
.split .cards { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.resultbar { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 14px; }
.resultbar h1 { font-size: 20px; font-weight: 800; }
.maptoggle { display: none; }
@media (max-width: 900px) {
  .split { grid-template-columns: minmax(0, 1fr); }
  .split .mapcol { display: none; position: fixed; top: calc(var(--header) + 61px); inset-inline: 0; bottom: 0; height: auto; z-index: 800; }
  body.mapview .split .mapcol { display: block; }
  body.mapview .split .list { display: none; }
  .maptoggle { display: inline-flex; position: fixed; bottom: 84px; left: 50%; transform: translateX(-50%); z-index: 950; box-shadow: var(--shadow-lg); background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
}
.pager { display: flex; gap: 8px; justify-content: center; margin-top: 24px; }
.areabtn { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); z-index: 500; box-shadow: var(--shadow-lg); }

/* map pins */
.pin { background: var(--surface); color: var(--ink); border-radius: 999px; padding: 4px 10px; font-weight: 800; font-size: 12.5px; box-shadow: 0 2px 8px rgba(0, 0, 0, .25); border: 1px solid rgba(0, 0, 0, .08); white-space: nowrap; transform: translate(-50%, -50%); display: inline-flex; align-items: center; gap: 4px; }
.pin.free { background: var(--free); color: #fff; }
.pin.place { background: var(--pc, #e5304c); color: #fff; padding: 5px; }
.pin.place svg { width: 15px; height: 15px; }
.pin.on { background: var(--brand-strong); color: #fff; transform: translate(-50%, -50%) scale(1.12); }
.leaflet-div-icon.pinwrap { background: none; border: 0; }
.mapcard { position: absolute; bottom: 16px; inset-inline: 16px; z-index: 600; max-width: 420px; margin-inline: auto; }
.mapcard .card { flex-direction: row; box-shadow: var(--shadow-lg); }
.mapcard .card .pic { width: 130px; aspect-ratio: auto; flex: none; }
.mapcard .x { position: absolute; top: -12px; inset-inline-end: -8px; z-index: 2; }
.leaflet-container { font-family: var(--font); background: #1b1a1f; }
/* dark map: the normal OpenStreetMap tiles, turned dark (not in the admin, where satellite photos are used) */
.leaflet-tile-pane { filter: invert(1) hue-rotate(180deg) brightness(.92) contrast(.88) saturate(.55); }
.adm .leaflet-tile-pane { filter: none; }
.leaflet-bar a { background: var(--surface); color: var(--ink); border-color: var(--line); }
.leaflet-bar a:hover { background: var(--surface-2); }
.leaflet-control-attribution { background: rgba(18, 16, 22, .75) !important; color: var(--ink-3); }
.leaflet-control-attribution a { color: var(--ink-2); }
.marker-cluster div { font-family: var(--font); font-weight: 800; }
.marker-cluster-small, .marker-cluster-medium, .marker-cluster-large { background-color: rgba(245, 71, 90, .28); }
.marker-cluster-small div, .marker-cluster-medium div, .marker-cluster-large div { background-color: rgba(229, 48, 76, .95); color: #fff; }

/* drawer (filters, report, share) */
.drawer { position: fixed; inset: 0; z-index: 2000; display: none; }
.drawer.open { display: block; }
.drawer .shade { position: absolute; inset: 0; background: rgba(15, 20, 18, .45); }
.drawer .panel { position: absolute; inset-inline-end: 0; top: 0; bottom: 0; width: min(440px, 100%); background: var(--surface); display: flex; flex-direction: column; box-shadow: var(--shadow-lg); }
.drawer .panel header { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.drawer .panel header h3 { font-size: 18px; font-weight: 800; }
.drawer .panel .content { padding: 18px; overflow: auto; flex: 1; display: grid; gap: 20px; align-content: start; }
.drawer .panel footer { padding: 14px 18px; border-top: 1px solid var(--line); display: flex; gap: 10px; }
.modal .panel { inset: auto 0 0 0; width: auto; max-width: 520px; margin: 0 auto; border-radius: var(--r-lg) var(--r-lg) 0 0; max-height: 90vh; }
@media (min-width: 700px) { .modal .panel { inset: 50% auto auto 50%; transform: translate(-50%, -50%); border-radius: var(--r-lg); width: 520px; } }
.opts { display: flex; flex-wrap: wrap; gap: 8px; }
.opts input { display: none; }
.opts label { cursor: pointer; }
.opts input:checked + .chip { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.toast { position: fixed; bottom: 90px; left: 50%; transform: translateX(-50%); background: #2e2933; color: var(--ink); border: 1px solid var(--line); padding: 12px 18px; border-radius: 14px; font-weight: 600; z-index: 3000; box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: 12px; max-width: calc(100% - 32px); }
.toast a { color: var(--brand-light); font-weight: 800; }

/* ---------- listing page ---------- */
.gallery { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 210px 210px; gap: 8px; border-radius: var(--r-lg); overflow: hidden; margin-top: 18px; position: relative; }
.gallery > * { position: relative; background: var(--surface-2); cursor: zoom-in; overflow: hidden; }
.gallery > *:first-child { grid-row: 1 / 3; }
.gallery img, .gallery video { width: 100%; height: 100%; object-fit: cover; }
.gallery .play { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; background: rgba(0, 0, 0, .18); }
.gallery .play .icon { width: 44px; height: 44px; }
.gallery > .all { position: absolute; bottom: 12px; inset-inline-end: 12px; cursor: pointer; background: var(--surface); overflow: visible; }
.gallery.n1 { grid-template-columns: 1fr; grid-template-rows: 420px; }
.gallery.n2 { grid-template-columns: 1fr 1fr; grid-template-rows: 420px; }
.gallery.n2 > *:first-child, .gallery.n1 > *:first-child { grid-row: auto; }
.gallery.n3 { grid-template-columns: 2fr 1fr; }
.gallery.n4 > :nth-child(2) { grid-column: 2 / 4; }
@media (max-width: 760px) {
  .gallery, .gallery.n1, .gallery.n2, .gallery.n3, .gallery.n4 { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; grid-template: none; border-radius: 0; margin: 0 -16px; gap: 4px; }
  .gallery > * { flex: 0 0 88%; height: 300px; scroll-snap-align: center; }
  .gallery > *:only-child { flex-basis: 100%; }
  .gallery .all { display: none; }
}
.lgrid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 40px; margin-top: 26px; }
@media (max-width: 960px) { .lgrid { grid-template-columns: minmax(0, 1fr); gap: 0; } }
.ltitle h1 { font-size: clamp(24px, 3.4vw, 32px); font-weight: 800; }
.ltitle .where { color: var(--ink-2); font-weight: 600; margin-top: 6px; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.ltitle .badges { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 12px; }
.lsec { padding: 24px 0; border-bottom: 1px solid var(--line); }
.lsec h2 { font-size: 19px; font-weight: 800; margin-bottom: 14px; }
.facts-big { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.facts-big div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 12px; display: flex; gap: 10px; align-items: center; font-weight: 700; font-size: 14px; }
.facts-big .icon { color: var(--brand); }
.features { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px 18px; }
.features div { display: flex; gap: 10px; align-items: center; font-weight: 600; color: var(--ink-2); }
.features .icon { color: var(--brand); }
.desc { white-space: pre-line; color: var(--ink-2); font-size: 16px; }
.aiNote { font-size: 12.5px; color: var(--ink-3); margin-top: 8px; display: flex; gap: 6px; align-items: center; }
.prices { display: grid; gap: 8px; }
.prices div { display: flex; justify-content: space-between; align-items: baseline; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.prices div:last-child { border-bottom: 0; }
.prices b { font-size: 18px; }
.side { position: sticky; top: calc(var(--header) + 16px); align-self: start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; box-shadow: var(--shadow); display: grid; gap: 14px; }
.side .big { font-size: 26px; font-weight: 800; }
.side .free-line { display: flex; gap: 8px; align-items: center; padding: 10px 12px; border-radius: 12px; background: var(--ok-bg); color: var(--ok-fg); font-weight: 700; font-size: 14px; }
.side .unk-line { background: var(--surface-2); color: var(--ink-2); }
.side .row3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.side .row3 .btn { padding: 0 8px; font-size: 13px; }
@media (max-width: 960px) { .side { position: static; box-shadow: none; margin-top: 24px; } }
.contactbar { display: none; }
@media (max-width: 960px) {
  .contactbar { display: flex; position: fixed; inset-inline: 0; bottom: 0; z-index: 1100; gap: 10px; align-items: center; background: var(--surface); border-top: 1px solid var(--line); padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); }
  .contactbar .btn.wa { flex: 1; }
  body.listing-page { padding-bottom: 80px; }
  body.listing-page .tabbar { display: none; }
}
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; max-width: 420px; }
.cal .dname { font-size: 11px; font-weight: 700; color: var(--ink-3); text-align: center; }
.cal .d { aspect-ratio: 1; display: grid; place-items: center; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); font-size: 13px; font-weight: 700; }
.cal .d.booked { background: #2a262e; color: #6f666c; text-decoration: line-through; border-color: #37323b; }
.cal .d.we { border-color: var(--brand); }
.cal .d.blank { visibility: hidden; }
.cal .d.today { outline: 2px solid var(--ink); }
.legend { display: flex; gap: 14px; font-size: 12px; color: var(--ink-3); margin-top: 10px; flex-wrap: wrap; }
.legend i { display: inline-block; width: 12px; height: 12px; border-radius: 4px; vertical-align: middle; margin-inline-end: 4px; border: 1px solid var(--line); }
.minimap { height: 300px; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); }
.review { padding: 14px 0; border-bottom: 1px solid var(--line); }
.review:last-child { border: 0; }
.review .who { font-weight: 700; display: flex; gap: 8px; align-items: center; }
.stars { color: var(--star); letter-spacing: 1px; }
.tiktok-embed-wrap { max-width: 340px; aspect-ratio: 9 / 16; border-radius: var(--r); overflow: hidden; background: #000; }
.tiktok-embed-wrap iframe { width: 100%; height: 100%; border: 0; }
.lightbox { position: fixed; inset: 0; z-index: 3000; background: rgba(0, 0, 0, .94); display: none; align-items: center; justify-content: center; }
.lightbox.open { display: flex; }
.lightbox img, .lightbox video { max-width: 94vw; max-height: 86vh; object-fit: contain; }
.lightbox .x { position: absolute; top: 14px; inset-inline-end: 14px; }
.lightbox .nav-l, .lightbox .nav-r { position: absolute; top: 50%; transform: translateY(-50%); }
.lightbox .nav-l { left: 12px; } .lightbox .nav-r { right: 12px; }
.lightbox .counter { position: absolute; bottom: 18px; color: #fff; font-weight: 700; }

/* ---------- city page ---------- */
.cityhero { padding: 34px 0 10px; }
.cityhero h1 { font-size: clamp(28px, 4.5vw, 42px); font-weight: 800; }
.cityhero p { color: var(--ink-2); font-size: 16px; max-width: 680px; }
.citymap { height: 380px; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); }

/* ---------- forms pages (owner, review) ---------- */
.narrow { max-width: 560px; margin: 0 auto; padding: 32px 16px 60px; }
.panel-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; box-shadow: var(--shadow); }
.panel-card h1 { font-size: 24px; font-weight: 800; margin-bottom: 6px; }
.code-input { letter-spacing: 10px; text-align: center; font-size: 24px; font-weight: 800; height: 58px; }
.alert { padding: 12px 14px; border-radius: 12px; font-weight: 600; font-size: 14px; }
.alert.err { background: var(--err-bg); color: var(--err-fg); }
.alert.ok { background: var(--ok-bg); color: var(--ok-fg); }
.alert.info { background: var(--brand-soft); color: var(--brand); }
.starpick { display: flex; gap: 6px; direction: ltr; justify-content: center; }
.starpick button { border: 0; background: none; font-size: 38px; color: var(--line); cursor: pointer; padding: 0; line-height: 1; }
.starpick button.on { color: var(--star); }

/* owner dashboard */
.dash { padding: 26px 0 60px; }
.dash h1 { font-size: 26px; font-weight: 800; }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 18px 0 26px; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; }
.kpi b { display: block; font-size: 26px; font-weight: 800; color: var(--brand); }
.kpi span { color: var(--ink-3); font-weight: 600; font-size: 13px; }
@media (max-width: 700px) { .kpis { grid-template-columns: 1fr 1fr; } }
.olist { display: grid; gap: 14px; }
.oitem { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px; display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 16px; }
.oitem img, .oitem .ph { width: 120px; height: 96px; border-radius: 12px; object-fit: cover; background: var(--surface-2); }
.oitem h3 { font-size: 17px; font-weight: 700; }
.oitem .acts { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.avail { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; background: var(--surface-2); border-radius: 12px; padding: 10px 12px; margin-top: 10px; font-weight: 700; font-size: 14px; }
.avail .btn.on-yes { background: var(--free); color: #fff; border-color: var(--free); }
.avail .btn.on-no { background: var(--danger); color: #fff; border-color: var(--danger); }
@media (max-width: 560px) { .oitem { grid-template-columns: 1fr; } .oitem img, .oitem .ph { width: 100%; height: 160px; } }
.steps { display: flex; gap: 6px; margin: 4px 0 20px; }
.steps span { flex: 1; height: 5px; border-radius: 3px; background: var(--line); }
.steps span.on { background: var(--brand); }
.formsec { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; margin-bottom: 16px; display: grid; gap: 16px; }
.formsec h2 { font-size: 18px; font-weight: 800; display: flex; gap: 10px; align-items: center; }
.formsec h2 .n { width: 28px; height: 28px; border-radius: 50%; background: var(--brand-strong); color: #fff; display: grid; place-items: center; font-size: 14px; }
.mediagrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
.mediagrid .m { position: relative; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: var(--surface-2); }
.mediagrid .m img { width: 100%; height: 100%; object-fit: cover; }
.mediagrid .m .del { position: absolute; top: 6px; inset-inline-end: 6px; width: 30px; height: 30px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, .6); color: #fff; display: grid; place-items: center; cursor: pointer; }
.mediagrid .m .first { position: absolute; bottom: 6px; inset-inline-start: 6px; }
.mediagrid .m .vid { position: absolute; bottom: 6px; inset-inline-end: 6px; background: rgba(0, 0, 0, .6); color: #fff; border-radius: 8px; padding: 2px 6px; font-size: 12px; font-weight: 700; }
.mediagrid .m .bar { position: absolute; inset: auto 0 0 0; height: 5px; background: rgba(0, 0, 0, .2); }
.mediagrid .m .bar i { display: block; height: 100%; background: var(--brand); width: 0; transition: width .2s; }
.mediagrid .add { border: 2px dashed var(--line); display: grid; place-items: center; text-align: center; font-weight: 700; color: var(--ink-3); cursor: pointer; font-size: 13px; padding: 8px; }
.mediagrid .add:hover { border-color: var(--brand); color: var(--brand); }
.pickmap { height: 320px; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); }
.tiktokbox { border: 1px solid var(--line); background: linear-gradient(135deg, #0b0a0d 0%, #24212a 100%); color: #fff; border-radius: var(--r-lg); padding: 18px; display: grid; gap: 12px; margin-bottom: 16px; }
.tiktokbox .input { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .2); color: #fff; }
.tiktokbox .input::placeholder { color: rgba(255, 255, 255, .5); }
.savebar { position: sticky; bottom: 0; background: rgba(18, 16, 22, .95); backdrop-filter: blur(8px); border-top: 1px solid var(--line); padding: 12px 0; display: flex; gap: 10px; justify-content: flex-end; z-index: 50; }
@media (max-width: 860px) { .savebar { bottom: 62px; } }
.landing-hero { padding: 50px 0 30px; display: grid; grid-template-columns: 1.2fr 1fr; gap: 30px; align-items: center; }
.landing-hero h1 { font-size: clamp(30px, 4.5vw, 46px); font-weight: 800; }
.landing-hero p { font-size: 18px; color: var(--ink-2); }
.benefits { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.benefit { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; }
.benefit .icon { color: var(--brand); width: 26px; height: 26px; }
.benefit h3 { font-size: 16px; margin: 10px 0 6px; }
.benefit p { margin: 0; color: var(--ink-2); font-size: 14px; }
@media (max-width: 760px) { .landing-hero { grid-template-columns: 1fr; } }

/* ---------- footer ---------- */
.foot { margin-top: 40px; border-top: 1px solid var(--line); background: var(--surface); }
.foot .wrap { padding-top: 28px; padding-bottom: 28px; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 24px; }
.foot h4 { margin: 0 0 10px; font-size: 14px; }
.foot a { display: block; color: var(--ink-2); font-size: 14px; padding: 3px 0; }
.foot p { color: var(--ink-3); font-size: 14px; margin: 8px 0 0; }
.foot .copy { border-top: 1px solid var(--line); text-align: center; font-size: 13px; color: var(--ink-3); padding: 14px; }
@media (max-width: 760px) { .foot .wrap { grid-template-columns: 1fr 1fr; } .foot .wrap > :first-child { grid-column: 1 / -1; } }
.info { max-width: 760px; margin: 0 auto; padding: 36px 16px 60px; }
.info h1 { font-size: 30px; font-weight: 800; margin-bottom: 16px; }
.info h2 { font-size: 19px; margin: 24px 0 8px; }
.info p, .info li { color: var(--ink-2); }
.tiktokbox .btn { color: #18141a; background: #fff; border-color: #fff; }

.askprice { display: inline-flex; align-items: center; gap: 5px; color: var(--wa-dark); background: rgba(37, 211, 102, .14); font-weight: 800; font-size: 13px; padding: 5px 10px; border-radius: 999px; cursor: pointer; }
.askprice:hover { background: var(--wa); color: #fff; }

/* ---------- booking ---------- */
.center { text-align: center; }
.bookbox { display: grid; gap: 10px; }
.bk-dates { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); border-radius: var(--r-sm); overflow: hidden; }
.bk-d { display: grid; gap: 2px; text-align: start; padding: 10px 12px; background: var(--surface); border: 0; cursor: pointer; font: inherit; color: var(--ink); }
.bk-d + .bk-d { border-inline-start: 1px solid var(--line); }
.bk-d small, .bk-g small { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-3); }
.bk-d b { font-size: 14px; }
.bk-d:hover { background: var(--surface-2); }
.bk-g { display: flex; align-items: center; justify-content: space-between; border: 1px solid var(--line); border-radius: var(--r-sm); padding: 6px 6px 6px 12px; }
.stepper { display: flex; align-items: center; gap: 10px; }
.stepper b { min-width: 22px; text-align: center; font-size: 16px; }
.stepper .iconbtn { width: 36px; height: 36px; font-size: 20px; line-height: 1; border: 1px solid var(--line); }
.bk-quote { display: grid; gap: 6px; font-size: 14px; }
.bk-quote .r, .bk-sum .r { display: flex; justify-content: space-between; gap: 10px; }
.bk-quote .r.tot, .bk-sum .r.tot { border-top: 1px solid var(--line); padding-top: 8px; font-weight: 800; }
.bk-quote .r.now, .bk-sum .r.now { color: var(--brand); font-weight: 800; }
.bk-quote .r.disc, .bk-sum .r.disc { color: var(--free); }
.bk-err { background: var(--err-bg); color: var(--err-fg); padding: 10px 12px; border-radius: 10px; font-size: 14px; font-weight: 600; }
.bk-sum { display: grid; gap: 6px; background: var(--surface-2); border-radius: var(--r-sm); padding: 14px; font-size: 14px; }
.bk-sum .h { font-weight: 800; font-size: 15px; }
.bk-how { background: var(--brand-soft); border-radius: var(--r-sm); padding: 12px 14px; font-size: 14px; color: var(--ink-2); }
.bk-how ol { margin: 6px 0 0; padding-inline-start: 20px; display: grid; gap: 4px; }
.bk-coupon summary { cursor: pointer; font-size: 13px; font-weight: 700; color: var(--ink-2); margin-bottom: 8px; }
.bk-modal .panel { max-width: 760px; }
@media (min-width: 700px) { .bk-modal .panel { width: 760px; } }
.bkcal-nav { display: flex; justify-content: space-between; margin-bottom: -44px; position: relative; z-index: 1; pointer-events: none; }
.bkcal-nav .iconbtn { pointer-events: auto; }
.bkcal { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 699px) { .bkcal { grid-template-columns: 1fr; } .bkcal .m + .m { display: none; } }
.bkcal .m h4 { text-align: center; font-size: 15px; font-weight: 800; margin: 8px 0 12px; }
.bkcal .g { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.bkcal .dn { text-align: center; font-size: 11px; font-weight: 700; color: var(--ink-3); padding-bottom: 4px; }
.bkcal .day { aspect-ratio: 1 / 1.05; border: 0; background: none; border-radius: 10px; cursor: pointer; font: inherit; color: var(--ink); display: grid; place-content: center; gap: 0; line-height: 1.15; padding: 0; }
.bkcal .day b { font-size: 14px; font-weight: 700; }
.bkcal .day i { font-style: normal; font-size: 10px; color: var(--ink-3); }
.bkcal .day:hover:not(:disabled) { background: var(--surface-2); }
.bkcal .day:disabled { cursor: default; color: #57505a; }
.bkcal .day.busy b { text-decoration: line-through; }
.bkcal .day.busy i, .bkcal .day.past i { visibility: hidden; }
.bkcal .day.we:not(:disabled) b { color: var(--accent); }
.bkcal .day.inr { background: var(--brand-soft); border-radius: 0; }
.bkcal .day.sel { background: var(--brand-strong); color: #fff; }
.bkcal .day.sel b, .bkcal .day.sel i { color: #fff; }
.contactbar .btn.primary { flex: 1; }
.contactbar .wa-ic { background: var(--wa); color: #fff; }

/* booking page */
.bkpage { max-width: 720px; margin: 0 auto; padding: 24px 16px 60px; display: grid; gap: 16px; }
.bkcard { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; box-shadow: var(--shadow); display: grid; gap: 14px; }
.bkhead { display: flex; gap: 14px; align-items: center; }
.bkhead img { width: 84px; height: 64px; object-fit: cover; border-radius: 12px; background: var(--surface-2); }
.bkhead h1 { font-size: 20px; font-weight: 800; margin: 0; }
.bkstat { display: inline-flex; gap: 6px; align-items: center; font-weight: 800; font-size: 13px; padding: 6px 12px; border-radius: 999px; background: var(--surface-2); color: var(--ink-2); }
.bkstat.confirmed, .bkstat.completed { background: var(--ok-bg); color: var(--ok-fg); }
.bkstat.pending_payment, .bkstat.checking { background: var(--accent-soft); color: var(--accent); }
.bkstat.taken, .bkstat.cancelled, .bkstat.expired { background: var(--err-bg); color: var(--err-fg); }
.bkcode { font-size: 30px; font-weight: 800; letter-spacing: .06em; }
.bkgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; font-size: 14px; }
.bkgrid small { display: block; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-3); }
.bkgrid b { font-size: 15px; }
.bkdue { background: var(--brand-grad); color: #fff; border-radius: var(--r); padding: 16px; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.bkdue b { font-size: 24px; }
.acct { display: flex; justify-content: space-between; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: var(--r-sm); padding: 10px 12px; }
.acct .n { font-size: 17px; font-weight: 800; letter-spacing: .03em; }
.fibqr { width: 200px; height: 200px; image-rendering: pixelated; margin: 0 auto; display: block; }
.bigcode { font-size: 22px; font-weight: 800; letter-spacing: .08em; text-align: center; }
.coupon-box { border: 2px dashed var(--brand); border-radius: var(--r); padding: 14px; text-align: center; display: grid; gap: 6px; }
.coupon-box .c { font-size: 22px; font-weight: 800; letter-spacing: .08em; color: var(--brand); }
@media print { header.top, footer.foot, .noprint { display: none !important; } .bkcard { box-shadow: none; } }
.wrapy { flex-wrap: wrap; }
.bkdue b { white-space: nowrap; }
.nowrap { white-space: nowrap; }
