/* kre.tn — "Bab" design system.
   One motif: the studded arch of a Sidi Bou Said door (hero, logo, dividers).
   Everything else stays quiet: photo-first cards, whitewash surfaces, one blue for action.
   Mobile first; RTL through logical properties. */

:root {
  --door: #0f4c9c;          /* Sidi Bou Said door blue */
  --door-deep: #0a3570;
  --door-soft: #e8f0fb;
  --action: #0f4c9c;
  --action-hover: #0a3570;
  --stud: rgb(6 16 38 / .78); /* door nail heads */
  --ink: #1a2238;           /* indigo ink, not black */
  --ink-2: #4f5a70;
  --ink-3: #7b8597;
  --line: #e3e7ee;
  --line-strong: #c9d0db;
  --wash: #f4f6f9;          /* cool whitewash */
  --bg: #ffffff;
  --surface: #ffffff;
  --bougain: #c8326b;       /* bougainvillea: saved / hearts only */
  --olive: #4e7a3e;         /* included in rent */
  --wa: #1fa855;
  --brand-ink: #0f4c9c;     /* door blue used as text/icon colour */
  --err-bg: #fdecef;
  --err-ink: #9a1b3f;
  --tiles: saturate(.45) contrast(.92) brightness(1.04);
  --r-card: 14px;
  --r-ctl: 12px;
  --r-panel: 20px;
  --lift: 0 6px 24px rgb(26 34 56 / .12), 0 1px 3px rgb(26 34 56 / .08);
  --top-h: 64px;
  --tab-h: 64px;
  --safe-b: env(safe-area-inset-bottom);
  --font: "Readex Pro", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;
  color-scheme: light;
}
/* Dark theme: chosen explicitly (data-theme="dark"). Light is the default; the media queries below only apply if the page has no data-theme. */
:root[data-theme="dark"] {
    --action: #3a78d2; --action-hover: #5a8fdc; --door-soft: #16233a; --brand-ink: #5a8fdc;
    --stud: rgb(2 8 22 / .8);
    --ink: #e8ecf4; --ink-2: #a3aec1; --ink-3: #7f8aa0;
    --line: #262f42; --line-strong: #39445b;
    --wash: #151c2b; --bg: #0d1220; --surface: #121929;
    --bougain: #e04f86; --olive: #7fb069;
    --err-bg: #3b1524; --err-ink: #ffb3c8;
    --tiles: invert(.92) hue-rotate(180deg) saturate(.35) brightness(.9);
    --lift: 0 8px 28px rgb(0 0 0 / .5);
    color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --action: #3a78d2; --action-hover: #5a8fdc; --door-soft: #16233a; --brand-ink: #5a8fdc;
    --stud: rgb(2 8 22 / .8);
    --ink: #e8ecf4; --ink-2: #a3aec1; --ink-3: #7f8aa0;
    --line: #262f42; --line-strong: #39445b;
    --wash: #151c2b; --bg: #0d1220; --surface: #121929;
    --bougain: #e04f86; --olive: #7fb069;
    --err-bg: #3b1524; --err-ink: #ffb3c8;
    --tiles: invert(.92) hue-rotate(180deg) saturate(.35) brightness(.9);
    --lift: 0 8px 28px rgb(0 0 0 / .5);
    color-scheme: dark;
  }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--top-h) + 16px); }
body {
  margin: 0; font: 400 16px/1.55 var(--font); color: var(--ink); background: var(--bg);
  padding-block-end: calc(var(--tab-h) + var(--safe-b));
  -webkit-font-smoothing: antialiased;
}
[dir="rtl"] body { line-height: 1.7; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-underline-offset: 3px; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; font-weight: 600; letter-spacing: -.01em; }
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3 { letter-spacing: 0; line-height: 1.4; }
h1 { font-size: 1.625rem; }
h2, .h2 { font-size: 1.3rem; }
h3 { font-size: 1rem; }
p { margin: 0 0 .75em; }
small { font-size: .8125rem; }
.wrap { max-width: 1280px; margin-inline: auto; padding-inline: 16px; }
@media (min-width: 744px) { .wrap { padding-inline: 32px; } }
@media (min-width: 1128px) { .wrap { padding-inline: 48px; } }
.narrow { max-width: 680px; }
.muted { color: var(--ink-2); }
.small { font-size: .875rem; }
.center { text-align: center; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; inset-inline-start: -999px; }
.skip:focus { inset-inline-start: 8px; top: 8px; z-index: 100; background: var(--bg); padding: 8px 12px; border-radius: 8px; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.ic { width: 24px; height: 24px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
[dir="rtl"] .flip { transform: scaleX(-1); }

/* ---------- Buttons & controls ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: var(--r-ctl); border: 1px solid transparent;
  font: 600 1rem/1 var(--font); text-decoration: none; cursor: pointer;
  background: none; color: var(--ink); white-space: nowrap;
  transition: background-color .15s, border-color .15s, transform .1s;
}
.btn:active { transform: scale(.98); }
.btn .ic { width: 20px; height: 20px; }
.btn-sm { min-height: 38px; padding: 0 14px; font-size: .9rem; border-radius: 10px; }
.btn-block { width: 100%; white-space: normal; text-align: center; line-height: 1.25; }
.btn-primary { background: var(--action); color: #fff; }
.btn-primary:hover { background: var(--action-hover); }
.btn-ghost { border-color: var(--line-strong); background: var(--surface); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-link { padding-inline: 4px; min-height: 40px; text-decoration: underline; font-weight: 600; }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { background: #178e46; }
.btn[disabled] { opacity: .55; cursor: wait; }
.pill { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--ink); color: var(--bg); font-size: .72rem; font-weight: 600; }
.icon-btn { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 999px; border: 0; background: none; color: var(--ink); cursor: pointer; }
.icon-btn:hover { background: var(--wash); }
.round-btn {
  display: inline-flex; align-items: center; gap: 6px; height: 36px; min-width: 36px; padding: 0 8px;
  border-radius: 999px; border: 0; background: rgb(255 255 255 / .94); color: #1a2238;
  box-shadow: 0 1px 4px rgb(0 0 0 / .18); cursor: pointer; text-decoration: none; justify-content: center;
}
.round-btn .ic { width: 18px; height: 18px; stroke-width: 2; }
.round-label { display: none; font-weight: 600; font-size: .875rem; text-decoration: underline; }

label { display: block; font-weight: 500; font-size: .875rem; margin-block-end: 14px; color: var(--ink); }
input, select, textarea {
  display: block; width: 100%; margin-block-start: 6px; min-height: 48px; padding: 10px 14px;
  font: 400 1rem var(--font); color: var(--ink); background: var(--surface);
  border: 1px solid var(--line-strong); border-radius: var(--r-ctl);
  transition: border-color .15s, box-shadow .15s;
}
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237b8597' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-size: 18px; background-position: right 12px center; padding-inline-end: 38px; }
[dir="rtl"] select { background-position: left 12px center; }
textarea { min-height: 96px; resize: vertical; line-height: 1.5; }
input:focus, select:focus, textarea:focus { border-color: var(--ink); outline: none; box-shadow: 0 0 0 3px var(--door-soft); }
input::placeholder, textarea::placeholder { color: var(--ink-3); }
input[type=checkbox], input[type=radio] { display: inline-block; width: 20px; height: 20px; min-height: 0; margin: 0; padding: 0; accent-color: var(--action); flex: none; }
label.check, label.radio { font-weight: 400; display: flex; gap: 12px; align-items: center; font-size: .95rem; }
.radios { display: flex; flex-wrap: wrap; gap: 4px 22px; }
.row2, .row3 { display: grid; gap: 0 12px; grid-template-columns: 1fr 1fr; }
.row3 { grid-template-columns: repeat(3, 1fr); }
fieldset { border: 0; padding: 0; margin: 0 0 20px; min-width: 0; }
legend { font-weight: 600; padding: 0; margin-block-end: 12px; }
.hint { color: var(--ink-2); font-size: .9rem; }
.form-error { background: var(--err-bg); color: var(--err-ink); border-radius: var(--r-ctl); padding: 12px 16px; font-weight: 500; }
.devnote { background: #fff4d1; color: #5c4400; padding: 10px 14px; border-radius: var(--r-ctl); }
.stack > * + * { margin-block-start: 8px; }
.inline { display: inline; }
.notice { display: inline-block; padding: 6px 12px; border-radius: 8px; background: #fff1d6; color: #7a4300; font-weight: 500; }

/* Segmented chips (radio groups) */
.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg label { margin: 0; font-weight: 400; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: block; padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line-strong); cursor: pointer; font-size: .92rem; transition: border-color .15s, background-color .15s; }
.seg span:hover { border-color: var(--ink); }
.seg input:checked + span { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.seg input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }

/* Toggle switches */
.switch { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 12px; margin: 0; font-weight: 400; font-size: 1rem; border-block-end: 1px solid var(--line); }
.switch:last-child { border-block-end: 0; }
.switch small { display: block; color: var(--ink-2); }
.switch input { appearance: none; width: 48px; height: 30px; border-radius: 999px; background: var(--line-strong); position: relative; cursor: pointer; transition: background-color .2s; border: 0; margin: 0; }
.switch input::after { content: ""; position: absolute; top: 3px; inset-inline-start: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgb(0 0 0 / .25); transition: transform .2s; }
.switch input:checked { background: var(--ink); }
.switch input:checked::after { transform: translateX(18px); }
[dir="rtl"] .switch input:checked::after { transform: translateX(-18px); }

.money-in { position: relative; display: block; }
.money-in span { position: absolute; inset-inline-end: 14px; top: 50%; transform: translateY(-30%); color: var(--ink-3); font-size: .9rem; pointer-events: none; }

/* ---------- Header ---------- */
.top { position: sticky; top: 0; z-index: 30; background: var(--bg); border-block-end: 1px solid var(--line); }
.top-in { display: flex; align-items: center; gap: 12px; height: var(--top-h); }
.logo { display: flex; align-items: center; gap: 8px; color: var(--brand-ink); text-decoration: none; flex: none; }
.logo-mark { width: 30px; height: 30px; }
.logo-word { font-weight: 700; font-size: 1.3rem; letter-spacing: -.03em; color: var(--ink); direction: ltr; margin: 0; }
.logo-word span { color: var(--brand-ink); }

.pill-search {
  flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 16px;
  border-radius: 999px; border: 1px solid var(--line); background: var(--surface);
  box-shadow: 0 2px 10px rgb(26 34 56 / .08);
}
.pill-search .ic { width: 20px; height: 20px; stroke-width: 2; color: var(--ink); }
.pill-search input { border: 0; margin: 0; min-height: 0; padding: 0; height: 100%; box-shadow: none; background: none; font-weight: 500; }
.pill-search input::placeholder { color: var(--ink-2); }
@media (max-width: 743px) {
  .top:has(.pill-search) .logo-word { display: none; }
}
@media (min-width: 744px) { .pill-search { max-width: 440px; margin-inline: auto; } .pill-search + .top-nav { margin-inline-start: 0; } }

.top-nav { display: flex; align-items: center; gap: 4px; margin-inline-start: auto; flex: none; }
.top-link { display: none; padding: 10px 14px; border-radius: 999px; font-weight: 500; font-size: .92rem; text-decoration: none; }
.top-link:hover { background: var(--wash); }
.menu { position: relative; }
.menu summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 6px; border-radius: 999px; }
.menu summary::-webkit-details-marker { display: none; }
.langs summary { height: 40px; padding: 0 10px; }
.langs summary:hover { background: var(--wash); }
.theme-btn { display: none; place-items: center; width: 40px; height: 40px; border-radius: 999px; border: 0; background: none; color: var(--ink); cursor: pointer; }
.theme-btn:hover { background: var(--wash); }
@media (min-width: 900px) { .theme-btn { display: grid; } .lang-code { display: inline; } }
.lang-code { display: none; }
.menu-theme { border-block-start: 1px solid var(--line); margin-block-start: 6px; padding-block-start: 6px; }
.menu-theme button { display: flex !important; align-items: center; gap: 10px; }
.menu-theme .ic { width: 18px; height: 18px; }
@media (min-width: 900px) { .menu-theme { display: none; } }
.theme-btn .ic { width: 20px; height: 20px; }
.theme-btn .moon, :root[data-theme="dark"] .theme-btn .sun { display: none; }
:root[data-theme="dark"] .theme-btn .moon { display: block; }
.langs .ic { width: 20px; height: 20px; }
.lang-code { font-size: .8rem; font-weight: 600; }
.account { display: none; }
.account summary { height: 44px; padding: 0 6px 0 12px; border: 1px solid var(--line-strong); }
.account summary:hover { box-shadow: 0 2px 8px rgb(26 34 56 / .12); }
.account summary .ic { width: 18px; height: 18px; stroke-width: 2; }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--ink-3); color: #fff; display: grid; place-items: center; }
.avatar.on { background: var(--door); }
.avatar svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.menu-pop { position: absolute; inset-inline-end: 0; top: calc(100% + 8px); z-index: 50; margin: 0; padding: 8px 0; list-style: none; min-width: 220px; background: var(--surface); border-radius: var(--r-ctl); box-shadow: var(--lift); border: 1px solid var(--line); }
.menu-pop a, .menu-pop button { display: block; width: 100%; padding: 12px 18px; text-decoration: none; color: var(--ink); font: 400 .95rem var(--font); background: none; border: 0; text-align: start; cursor: pointer; }
.menu-pop a:hover, .menu-pop button:hover { background: var(--wash); }
.menu-pop a[aria-current] { font-weight: 600; }
@media (min-width: 900px) {
  .top-link, .account { display: block; }
  .account summary { display: flex; }
}

/* ---------- Mobile tab bar ---------- */
.tabbar {
  position: fixed; inset-inline: 0; bottom: 0; z-index: 40; display: grid; grid-template-columns: repeat(5, 1fr);
  height: calc(var(--tab-h) + var(--safe-b)); padding-block-end: var(--safe-b);
  background: var(--bg); border-block-start: 1px solid var(--line);
}
.tabbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; font-size: .68rem; font-weight: 500; color: var(--ink-3); text-decoration: none; }
.tabbar a[aria-current] { color: var(--action); }
.tabbar a[aria-current] .ic { stroke-width: 2; }
@media (min-width: 900px) { .tabbar { display: none; } body { padding-block-end: 0; } }

/* ---------- Footer ---------- */
.foot { margin-block-start: 64px; background: var(--wash); }
.studs { height: 10px; background: radial-gradient(circle at 50% 50%, var(--door) 2.6px, transparent 3.2px) 8px 0 / 18px 10px repeat-x; opacity: .9; }
.foot-in { display: grid; gap: 20px; padding-block: 32px 40px; }
.foot-brand p { margin: 0 0 4px; }
.foot-links, .foot-langs { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; }
.foot-links a, .foot-langs a { text-decoration: none; color: var(--ink-2); }
.foot-links a:hover, .foot-langs a:hover { color: var(--ink); text-decoration: underline; }
.foot-langs a[aria-current] { color: var(--ink); font-weight: 600; }
.foot-safety { margin: 0; color: var(--ink-2); font-size: .9rem; padding-block-start: 16px; border-block-start: 1px solid var(--line); }
@media (min-width: 900px) { .foot-in { grid-template-columns: 1fr auto; align-items: start; } .foot-safety, .foot-langs { grid-column: 1 / -1; } }

/* ---------- Home: the door ---------- */
.hero { padding-block: 12px 8px; }
.hero-wrap { display: flex; flex-direction: column; align-items: center; }
.arch {
  --ry: 150px;
  position: relative; width: 100%; max-width: 760px; min-height: 360px;
  display: flex; align-items: flex-end; justify-content: center; text-align: center;
  padding: 120px 28px 76px;
  color: #fff; background-color: var(--door);
  /* faint planks of a wooden door */
  background-image: repeating-linear-gradient(90deg, rgb(255 255 255 / 0) 0 58px, rgb(0 0 0 / .07) 58px 60px);
  border-radius: 50% 50% 18px 18px / var(--ry) var(--ry) 18px 18px;
  animation: door-in .7s cubic-bezier(.2, .7, .2, 1) both;
}
/* the studded frame: nail heads following the arch */
.arch::before {
  content: ""; position: absolute; inset: 14px 14px 0; pointer-events: none;
  border: 5px dotted var(--stud); border-block-end: 0;
  border-radius: 50% 50% 0 0 / calc(var(--ry) - 14px) calc(var(--ry) - 14px) 0 0;
  animation: studs-in .9s .35s ease-out both;
}
/* the keystone rosette at the top of the arch */
.arch::after {
  content: ""; position: absolute; top: 44px; left: 50%; width: 30px; height: 30px; transform: translateX(-50%);
  background:
    radial-gradient(circle, var(--stud) 3.2px, transparent 3.8px) 50% 50% / 100% 100% no-repeat,
    radial-gradient(circle, var(--stud) 2.6px, transparent 3.2px) 50% 0 / 8px 8px no-repeat,
    radial-gradient(circle, var(--stud) 2.6px, transparent 3.2px) 50% 100% / 8px 8px no-repeat,
    radial-gradient(circle, var(--stud) 2.6px, transparent 3.2px) 0 50% / 8px 8px no-repeat,
    radial-gradient(circle, var(--stud) 2.6px, transparent 3.2px) 100% 50% / 8px 8px no-repeat;
  animation: studs-in .9s .5s ease-out both;
}
.arch-in { position: relative; width: 100%; max-width: 560px; }
.arch h1 { max-width: 15ch; margin-inline: auto; font-size: 1.95rem; font-weight: 650; letter-spacing: -.025em; margin-block-end: 12px; text-wrap: balance; }
[dir="rtl"] .arch h1 { letter-spacing: 0; }
.arch-lead { max-width: 36ch; margin: 0 auto; color: rgb(255 255 255 / .82); font-size: 1rem; text-wrap: pretty; }
@keyframes door-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes studs-in { from { opacity: 0; } to { opacity: 1; } }

/* the doorstep: search card sitting at the foot of the door */
.doorstep {
  position: relative; z-index: 2; width: calc(100% - 20px); max-width: 860px; margin-block-start: -48px;
  display: grid; gap: 0; padding: 8px; background: var(--surface); border-radius: var(--r-panel);
  box-shadow: var(--lift); border: 1px solid var(--line);
}
.ds-field { padding: 10px 14px; border-radius: 14px; }
.ds-field + .ds-field { border-block-start: 1px solid var(--line); border-radius: 0; }
.ds-field label { margin: 0; font-size: .78rem; font-weight: 600; }
.ds-field input, .ds-field select { border: 0; padding: 0; margin: 2px 0 0; min-height: 30px; box-shadow: none; background-color: transparent; font-size: 1rem; color: var(--ink); }
.ds-field select { color: var(--ink-2); padding-inline-end: 28px; background-position: right 0 center; }
[dir="rtl"] .ds-field select { background-position: left 0 center; }
.ds-field:focus-within { background: var(--wash); }
.ds-go { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; margin-block-start: 6px; border: 0; border-radius: 14px; background: var(--action); color: #fff; font: 600 1rem var(--font); cursor: pointer; }
.ds-go:hover { background: var(--action-hover); }
.ds-go .ic { width: 20px; height: 20px; stroke-width: 2.2; }
.hero-meta { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; margin: 18px 0 0; font-size: .92rem; }
.hero-meta a { font-weight: 600; }

@media (min-width: 744px) {
  .hero { padding-block-start: 28px; }
  .arch { --ry: 260px; min-height: 460px; padding: 0 64px 108px; }
  .arch::before { inset: 18px 18px 0; border-width: 6px; border-radius: 50% 50% 0 0 / calc(var(--ry) - 18px) calc(var(--ry) - 18px) 0 0; }
  .arch::after { top: 58px; }
  .arch h1 { font-size: 2.9rem; }
  .arch-lead { font-size: 1.1rem; }
  .doorstep { display: flex; align-items: center; padding: 8px; border-radius: 999px; margin-block-start: -40px; }
  .ds-field { flex: 1; padding: 8px 26px; border-radius: 999px; }
  .ds-where { flex: 1.5; }
  .ds-field + .ds-field { border-block-start: 0; border-inline-start: 1px solid var(--line); border-radius: 999px; }
  .ds-field:focus-within + .ds-field, .ds-field:focus-within { border-color: transparent; }
  .ds-go { margin: 0; min-height: 56px; padding: 0 26px; border-radius: 999px; }
}

/* ---------- Categories ---------- */
.cats { position: relative; min-width: 0; flex: 1; }
.cats ul { display: flex; gap: 28px; overflow-x: auto; list-style: none; margin: 0; padding: 14px 2px 0; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); }
[dir="rtl"] .cats ul { -webkit-mask-image: linear-gradient(-90deg, #000 85%, transparent); mask-image: linear-gradient(-90deg, #000 85%, transparent); }
.cats ul::-webkit-scrollbar { display: none; }
.cats a { display: flex; flex-direction: column; align-items: center; gap: 6px; padding-block-end: 10px; border-block-end: 2px solid transparent; color: var(--ink-2); text-decoration: none; font-size: .78rem; font-weight: 500; white-space: nowrap; transition: color .15s, border-color .15s; }
.cats a:hover { color: var(--ink); border-color: var(--line-strong); }
.cats a[aria-current] { color: var(--ink); border-color: var(--ink); font-weight: 600; }
.cats .ic { width: 26px; height: 26px; }

/* ---------- Sections ---------- */
.section { margin-block-start: 44px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.section-head a { font-weight: 600; font-size: .92rem; text-decoration: underline; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; list-style: none; }
.chip { display: inline-flex; gap: 6px; align-items: center; padding: 7px 14px; border-radius: 999px; background: var(--surface); color: var(--ink); text-decoration: none; border: 1px solid var(--line-strong); font: 400 .88rem var(--font); cursor: pointer; }
.chip:hover { border-color: var(--ink); }

/* Neighborhood tiles: a small door arch per place */
.hoods { list-style: none; padding: 0; margin: 0; display: grid; grid-auto-flow: column; grid-auto-columns: 46%; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.hoods::-webkit-scrollbar { display: none; }
.hoods li { scroll-snap-align: start; }
.hoods a { position: relative; display: flex; flex-direction: column; justify-content: flex-start; min-height: 120px; padding: 58px 16px 16px; border-radius: var(--r-card); background: var(--wash); text-decoration: none; overflow: hidden; transition: background-color .15s; }
.hoods a::before { content: ""; position: absolute; top: 16px; inset-inline-start: 16px; width: 22px; height: 30px; border-radius: 11px 11px 2px 2px; background: var(--door); }
.hoods a:hover { background: var(--door-soft); }
.hood-name { font-weight: 600; line-height: 1.3; }
.hood-n { font-size: .82rem; color: var(--ink-2); }
.hoods-sea a::before { background: #1f8a9a; }
@media (min-width: 744px) { .hoods { grid-auto-flow: row; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); overflow: visible; } }

.why { display: grid; gap: 0 32px; grid-template-columns: 1fr; }
.why > div { padding-block: 18px; border-block-start: 1px solid var(--line); }
.why h3 { margin-block-end: 4px; }
.why p { margin: 0; color: var(--ink-2); }
@media (min-width: 744px) { .why { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1128px) { .why { grid-template-columns: repeat(4, 1fr); } }

.host-cta { display: grid; gap: 16px; padding: 28px; border-radius: var(--r-panel); background: var(--wash); }
.host-cta h2 { margin-block-end: 6px; }
.host-cta p { margin: 0; color: var(--ink-2); }
@media (min-width: 744px) { .host-cta { grid-template-columns: 1fr auto; align-items: center; padding: 36px 40px; } }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 32px 20px; grid-template-columns: minmax(0, 1fr); margin-block-start: 16px; }
@media (min-width: 560px) { .grid { grid-template-columns: repeat(2, 1fr); gap: 36px 20px; } }
@media (min-width: 950px) { .grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1240px) { .grid { grid-template-columns: repeat(4, 1fr); gap: 40px 24px; } }
.card { position: relative; min-width: 0; }
.card-link { color: inherit; text-decoration: none; display: block; }
.card-img { position: relative; aspect-ratio: 20 / 19; border-radius: var(--r-card); overflow: hidden; background: var(--wash); }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.noimg { width: 100%; height: 100%; min-height: 100px; background: var(--wash) url("/static/img/icon.svg") center / 40px no-repeat; opacity: .55; }
.noimg.sm { display: inline-block; width: 96px; height: 72px; min-height: 0; border-radius: 10px; flex: none; }
.tag { position: absolute; top: 12px; inset-inline-start: 12px; padding: 4px 10px; border-radius: 999px; background: rgb(255 255 255 / .95); color: #1a2238; font-size: .75rem; font-weight: 600; box-shadow: 0 1px 3px rgb(0 0 0 / .15); }
.tag-owner::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-inline-end: 6px; border-radius: 50%; background: #4e7a3e; vertical-align: 1px; }
.card-body { padding-block-start: 12px; }
.card-area { font-size: .98rem; font-weight: 600; margin: 0; }
.card-title, .card-sub { margin: 0; color: var(--ink-2); font-size: .92rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card-price { margin: 6px 0 0; font-size: .95rem; color: var(--ink-2); }
.card-price b { color: var(--ink); font-weight: 600; }
.heart { position: absolute; top: 10px; inset-inline-end: 10px; width: 36px; height: 36px; display: grid; place-items: center; border: 0; background: none; cursor: pointer; padding: 0; }
.heart svg { width: 26px; height: 26px; fill: rgb(0 0 0 / .4); stroke: #fff; stroke-width: 2; transition: transform .2s; }
.heart:hover svg { transform: scale(1.08); }
.heart.on svg, .heart-btn.on .ic { fill: var(--bougain); stroke: #fff; }
.heart-btn.on .ic { stroke: var(--bougain); }
.heart.pop svg, .heart-btn.pop .ic { animation: pop .35s ease-out; }
@keyframes pop { 40% { transform: scale(1.3); } 100% { transform: scale(1); } }

/* ---------- Search page ---------- */
.subbar { position: sticky; top: var(--top-h); z-index: 20; background: var(--bg); border-block-end: 1px solid var(--line); }
.subbar-in { display: flex; align-items: center; gap: 16px; }
.btn-filter { flex: none; min-height: 44px; padding: 0 14px; font-size: .88rem; }
.btn-filter .ic { width: 18px; height: 18px; }
.btn-filter > span:not(.pill) { display: none; }
@media (min-width: 744px) { .btn-filter > span:not(.pill) { display: inline; } }
.fsheet > summary { list-style: none; }
.fsheet > summary::-webkit-details-marker { display: none; }
.fsheet-back, .fsheet-panel { display: none; }
.fsheet[open] .fsheet-back { display: block; position: fixed; inset: 0; z-index: 60; background: rgb(10 16 30 / .5); animation: fade .2s; }
.fsheet[open] .fsheet-panel {
  display: flex; flex-direction: column; position: fixed; z-index: 61; inset-inline: 0; bottom: 0; max-height: 92dvh;
  background: var(--surface); border-radius: var(--r-panel) var(--r-panel) 0 0; box-shadow: var(--lift); animation: sheet-up .28s cubic-bezier(.2, .8, .2, 1);
}
@media (min-width: 744px) {
  .fsheet[open] .fsheet-panel { inset: 6vh 0 auto; margin-inline: auto; width: min(680px, 92vw); max-height: 88vh; border-radius: var(--r-panel); animation: fade .2s; }
}
@keyframes sheet-up { from { transform: translateY(40px); opacity: .4; } to { transform: none; opacity: 1; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.fsheet-head { display: grid; grid-template-columns: 40px 1fr 40px; align-items: center; padding: 10px 14px; border-block-end: 1px solid var(--line); }
.fsheet-head h2 { margin: 0; text-align: center; font-size: 1rem; }
.fsheet-body { overflow-y: auto; padding: 8px 24px 16px; }
.fgroup { padding-block: 20px; margin: 0; border-block-end: 1px solid var(--line); }
.fgroup:last-child { border-block-end: 0; }
.fgroup legend { font-size: 1.1rem; float: left; width: 100%; margin-block-end: 14px; }
[dir="rtl"] .fgroup legend { float: right; }
.fgroup legend + * { clear: both; }
.fsheet-foot { display: flex; justify-content: space-between; align-items: center; padding: 14px 24px calc(14px + var(--safe-b)); border-block-start: 1px solid var(--line); }
.results-head { margin-block: 24px 4px; }
.results-head h1 { font-size: 1.3rem; margin: 0 0 2px; }
.results-head p { margin: 0; }
.empty { text-align: center; padding: 56px 16px; max-width: 420px; margin-inline: auto; }
.empty-art { width: 64px; height: 64px; color: var(--door); margin: 0 auto 16px; }
.pager { display: flex; justify-content: center; gap: 6px; margin-block: 40px 8px; flex-wrap: wrap; }
.pager a, .pager span { min-width: 40px; height: 40px; display: grid; place-items: center; border-radius: 999px; text-decoration: none; font-weight: 500; }
.pager a:hover { background: var(--wash); }
.pager span { background: var(--ink); color: var(--bg); }
.pager .ic { width: 18px; height: 18px; stroke-width: 2; }
.float-map {
  position: fixed; z-index: 25; left: 50%; transform: translateX(-50%); bottom: calc(var(--tab-h) + var(--safe-b) + 16px);
  display: flex; align-items: center; gap: 8px; height: 48px; padding: 0 20px; border-radius: 999px;
  background: var(--ink); color: var(--bg); text-decoration: none; font-weight: 600; font-size: .92rem; box-shadow: var(--lift);
  transition: transform .15s;
}
.float-map:hover { transform: translateX(-50%) scale(1.04); }
.float-map .ic { width: 18px; height: 18px; }
@media (min-width: 900px) { .float-map { bottom: 28px; } }
.suggest { position: absolute; z-index: 70; margin: 8px 0 0; padding: 8px; list-style: none; background: var(--surface); border-radius: var(--r-ctl); box-shadow: var(--lift); border: 1px solid var(--line); max-height: 340px; overflow: auto; min-width: 260px; }
.suggest li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; cursor: pointer; }
.suggest li::before { content: ""; flex: none; width: 36px; height: 36px; border-radius: 10px; background: var(--wash) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231a2238' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21s7-6.2 7-11.5A7 7 0 0 0 5 9.5C5 14.8 12 21 12 21z'/%3E%3Ccircle cx='12' cy='9.5' r='2.5'/%3E%3C/svg%3E") center / 20px no-repeat; }
.suggest li[aria-selected="true"], .suggest li:hover { background: var(--wash); }

/* ---------- Listing page ---------- */
.page-listing { padding-block-end: calc(76px + var(--safe-b)); }
.page-listing .tabbar { display: none; }
.gallery-wrap { position: relative; padding: 0; }
.gallery-tools { position: absolute; z-index: 3; inset-inline: 12px; top: 12px; display: flex; gap: 10px; }
.gallery-tools .spacer { flex: 1; }
.gallery { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; background: var(--wash); }
.gallery::-webkit-scrollbar { display: none; }
.gallery .ph { flex: 0 0 100%; scroll-snap-align: center; aspect-ratio: 4 / 3; display: block; }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.gallery-empty { aspect-ratio: 16 / 9; }
.gallery-count { position: absolute; bottom: 14px; inset-inline-end: 14px; padding: 4px 12px; border-radius: 8px; background: rgb(20 24 34 / .7); color: #fff; font-size: .78rem; font-weight: 500; }
.all-photos { position: absolute; bottom: 16px; inset-inline-end: 64px; display: none; }
@media (min-width: 900px) {
  .gallery-wrap { padding-inline: 48px; margin-block-start: 24px; max-width: 1280px; }
  .gallery-tools { position: static; justify-content: flex-end; margin-block-end: 12px; }
  .gallery-tools .round-btn { background: none; box-shadow: none; color: var(--ink); padding: 0 10px; }
  .gallery-tools .round-btn:hover { background: var(--wash); }
  .round-label { display: inline; }
  .back-btn, .gallery-count { display: none; }
  .gallery { display: grid; gap: 8px; overflow: hidden; border-radius: var(--r-panel); grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 220px 220px; background: none; }
  .gallery .ph { aspect-ratio: auto; position: relative; overflow: hidden; cursor: zoom-in; }
  .gallery .ph:first-child { grid-row: span 2; }
  .gallery .ph:nth-child(n+6) { display: none; }
  .gallery .ph img { transition: filter .2s; }
  .gallery .ph:hover img { filter: brightness(.9); }
  .gallery.n1 { grid-template-columns: 1fr; }
  .gallery.n2 { grid-template-columns: 1fr 1fr; }
  .gallery.n2 .ph { grid-row: span 2; }
  .gallery.n3 { grid-template-columns: 2fr 1fr; }
  .gallery.n4 .ph:nth-child(2) { grid-row: span 2; }
  .all-photos { display: inline-flex; inset-inline-end: 72px; bottom: 20px; }
}
.listing-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; margin-block-start: 20px; }
@media (min-width: 900px) { .listing-grid { grid-template-columns: minmax(0, 1fr) 372px; gap: 80px; margin-block-start: 32px; align-items: start; } }
.l-head h1 { font-size: 1.55rem; margin-block-end: 6px; text-wrap: balance; }
@media (min-width: 900px) { .l-head h1 { font-size: 1.9rem; } }
.l-sub { color: var(--ink-2); margin: 0 0 8px; }
.l-sub a { color: var(--ink); font-weight: 500; }
.sep { display: inline-block; width: 4px; height: 4px; border-radius: 50%; background: var(--ink-3); vertical-align: middle; margin-inline: 6px; }
.host { display: flex; align-items: center; gap: 16px; padding-block: 20px; margin-block-start: 16px; border-block: 1px solid var(--line); }
.host p { margin: 0; }
.host-t { font-weight: 600; }
.host-av { width: 48px; height: 48px; border-radius: 50%; background: var(--door); color: #fff; display: grid; place-items: center; flex: none; }
.host-agency { background: #8a5a1f; }
.host-tenant { background: #1f8a9a; }
.host-av .ic { stroke-width: 1.8; }
.highlights { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; padding-block: 24px; border-block-end: 1px solid var(--line); }
.highlights li { display: flex; align-items: center; gap: 16px; font-weight: 500; }
.highlights .ic { width: 28px; height: 28px; color: var(--brand-ink); }
.block { padding-block: 28px; border-block-end: 1px solid var(--line); }
.block h2 { font-size: 1.3rem; margin-block-end: 18px; }
.desc { white-space: pre-line; overflow-wrap: anywhere; }
.desc.clamp { display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
.btn-more { margin-block-start: 10px; padding: 0; border: 0; background: none; font: 600 1rem var(--font); color: var(--ink); text-decoration: underline; cursor: pointer; }
.total { display: grid; gap: 2px; padding: 16px 18px; margin-block-end: 20px; border-radius: var(--r-card); background: var(--door-soft); }
.total span { font-size: .88rem; color: var(--ink-2); }
.total b { font-size: 1.35rem; font-weight: 600; }
.total small { color: var(--ink-2); }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 24px; margin: 0; }
.facts div { min-width: 0; }
.facts dt { color: var(--ink-2); font-size: .85rem; }
.facts dd { margin: 2px 0 0; font-weight: 500; }
.facts dd.good { color: var(--olive); }
.amenities { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px 24px; grid-template-columns: 1fr; }
.amenities li { display: flex; align-items: center; gap: 16px; }
@media (min-width: 560px) { .amenities { grid-template-columns: 1fr 1fr; } }
.l-video { width: 100%; max-height: 70vh; border-radius: var(--r-card); background: #000; }
.minimap { height: 280px; border-radius: var(--r-card); background: var(--wash); display: grid; place-items: center; overflow: hidden; position: relative; z-index: 1; margin-block-start: 12px; }
.privacy-note { display: flex; gap: 8px; align-items: flex-start; margin-block-start: 12px; }
.privacy-note .ic { width: 18px; height: 18px; margin-block-start: 2px; }
.safety { margin-block-start: 28px; padding: 22px 24px; border: 0; border-radius: var(--r-panel); background: var(--wash); }
.safety h2 { font-size: 1.05rem; margin-block-end: 6px; }
.safety p { color: var(--ink-2); margin: 0; }
.report { margin-block-start: 12px; }
.report summary { cursor: pointer; font-weight: 600; text-decoration: underline; font-size: .9rem; }
.report-form { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-block-start: 10px; }
.report-form select { width: auto; flex: 1; margin: 0; min-height: 40px; }

.contact { padding-block: 28px; }
.contact-card { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 24px; border-radius: var(--r-panel); border: 1px solid var(--line); background: var(--surface); }
@media (min-width: 900px) { .contact { position: sticky; top: calc(var(--top-h) + 24px); padding: 0; } .contact-card { box-shadow: var(--lift); } }
.cc-price { margin: 0; font-size: 1rem; color: var(--ink-2); }
.cc-price b { font-size: 1.45rem; font-weight: 600; color: var(--ink); }
.cc-neg { margin: -8px 0 0; font-size: .85rem; color: var(--olive); font-weight: 500; }
.cc-safe { display: flex; gap: 8px; margin: 4px 0 0; color: var(--ink-2); }
.cc-safe .ic { width: 18px; height: 18px; flex: none; }
.contact-btns { display: grid; gap: 10px; }
.phone-out { display: block; text-align: center; font-size: 1.35rem; font-weight: 600; direction: ltr; padding: 8px; border-radius: var(--r-ctl); background: var(--wash); text-decoration: none; }
.msg-form { display: grid; gap: 10px; padding-block-start: 12px; border-block-start: 1px solid var(--line); }
.msg-form textarea { margin: 0; }
.quick { display: flex; flex-wrap: wrap; gap: 6px; }
.quick .chip { font-size: .8rem; padding: 6px 12px; }
.contact-bar {
  position: fixed; inset-inline: 0; bottom: 0; z-index: 40; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 12px 20px calc(12px + var(--safe-b)); background: var(--bg); border-block-start: 1px solid var(--line);
}
.contact-bar p { margin: 0; line-height: 1.3; }
.contact-bar b { font-size: 1.05rem; }
@media (min-width: 900px) { .contact-bar { display: none; } .page-listing { padding-block-end: 0; } }

/* Fullscreen photo viewer */
.viewer { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: #0b0e14; color: #fff; }
.viewer::backdrop { background: #0b0e14; }
.viewer-track { display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.viewer-track figure { flex: 0 0 100%; margin: 0; scroll-snap-align: center; display: grid; place-items: center; padding: 56px 0; }
.viewer-track img { max-height: 100%; width: auto; max-width: 100%; object-fit: contain; }
.viewer-close { position: absolute; top: 14px; inset-inline-start: 14px; z-index: 2; }
.viewer-count { position: absolute; top: 20px; left: 50%; transform: translateX(-50%); font-size: .9rem; }

/* ---------- Map page ---------- */
.page-map { padding-block-end: 0; overflow: hidden; }
.page-map .foot { display: none; }
.mapview { position: fixed; inset: var(--top-h) 0 calc(var(--tab-h) + var(--safe-b)) 0; }
@media (min-width: 900px) { .mapview { bottom: 0; } }
.map { position: absolute; inset: 0; z-index: 1; background: var(--wash); }
.map-filters { position: absolute; z-index: 5; inset-inline: 12px; top: 12px; display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
.map-filters > * { pointer-events: auto; }
.map-filters input[type=search] { margin: 0; border-radius: 999px; border: 0; box-shadow: var(--lift); padding-inline: 20px; }
.map-chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-block-end: 4px; }
.map-chips select, .map-chips input { width: auto; min-height: 38px; margin: 0; padding: 4px 34px 4px 14px; border-radius: 999px; font-size: .85rem; font-weight: 500; flex: none; border-color: var(--line); box-shadow: 0 2px 6px rgb(26 34 56 / .1); }
.map-chips select { max-width: 170px; }
.map-chips input { padding-inline-end: 14px; }
.chip-check { display: flex; align-items: center; gap: 8px; margin: 0; padding: 0 14px; min-height: 38px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: .85rem; font-weight: 500; white-space: nowrap; box-shadow: 0 2px 6px rgb(26 34 56 / .1); flex: none; cursor: pointer; }
.chip-check input { width: 16px; height: 16px; }
.map-btn { position: absolute; z-index: 5; min-height: 42px; padding: 0 18px; border-radius: 999px; border: 0; background: var(--surface); color: var(--ink); box-shadow: var(--lift); font: 600 .9rem var(--font); cursor: pointer; text-decoration: none; display: grid; place-items: center; }
.map-search-area { top: 112px; left: 50%; transform: translateX(-50%); background: var(--ink); color: var(--bg); animation: fade .2s; }
.map-list { inset-inline-start: 50%; transform: translateX(-50%); bottom: 156px; background: var(--ink); color: var(--bg); }
[dir="rtl"] .map-list { transform: translateX(50%); }
.sheet { position: absolute; z-index: 6; inset-inline: 0; bottom: 0; background: var(--surface); border-radius: var(--r-panel) var(--r-panel) 0 0; box-shadow: 0 -6px 24px rgb(0 0 0 / .14); display: flex; flex-direction: column; transition: height .28s cubic-bezier(.2, .8, .2, 1); height: 144px; }
.sheet[data-state="half"] { height: 52%; }
.sheet[data-state="full"] { height: calc(100% - 64px); }
.sheet-handle { border: 0; background: none; padding: 10px 0 8px; cursor: grab; touch-action: none; }
.sheet-handle span { display: block; width: 36px; height: 5px; border-radius: 3px; background: var(--line-strong); margin-inline: auto; }
.sheet-count { margin: 0 20px 8px; font-weight: 600; font-size: .92rem; text-align: center; }
.sheet-list { overflow-y: auto; padding: 0 16px 16px; display: grid; gap: 12px; grid-template-columns: 1fr; align-content: start; }
.sheet[data-state="peek"] .sheet-list { grid-auto-flow: column; grid-auto-columns: 86%; grid-template-columns: none; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none; }
.sheet[data-state="peek"] .mini { scroll-snap-align: start; }
.mini { display: flex; gap: 12px; padding: 8px; border-radius: var(--r-card); color: inherit; text-decoration: none; background: var(--surface); border: 1px solid var(--line); transition: border-color .15s; }
.mini.hl { border-color: var(--ink); }
.mini img, .mini .noimg { width: 92px; height: 72px; min-height: 0; border-radius: 10px; object-fit: cover; flex: none; }
.mini > div { min-width: 0; }
.mini p { margin: 0; font-size: .85rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini .price { font-size: .95rem; font-weight: 600; }
@media (min-width: 900px) {
  .sheet, .sheet[data-state] { inset-inline-start: auto; inset-inline-end: 0; top: 0; height: 100%; width: 420px; border-radius: 0; box-shadow: -1px 0 0 var(--line); }
  .sheet-handle { display: none; }
  .sheet .sheet-list, .sheet[data-state="peek"] .sheet-list { grid-auto-flow: row; grid-template-columns: 1fr; overflow-y: auto; overflow-x: hidden; }
  .sheet-count { margin-block-start: 16px; text-align: start; }
  .map-filters { inset-inline-end: 436px; }
  .map-list { display: none; }
  .map-search-area { left: calc(50% - 210px); }
  /* Centered over the visible map, which sits on the other side in RTL. */
  [dir="rtl"] .map-search-area { left: calc(50% + 210px); }
}
/* price pins */
.pin-wrap { width: auto !important; height: auto !important; background: none; border: 0; }
.pin { display: inline-block; transform: translate(-50%, -50%); padding: 5px 10px; border-radius: 999px; background: #fff; color: #1a2238; font: 600 13px/1.2 var(--font); white-space: nowrap; box-shadow: 0 1px 2px rgb(0 0 0 / .2), 0 0 0 1px rgb(0 0 0 / .06); transition: transform .12s; }
.pin:hover { transform: translate(-50%, -50%) scale(1.08); }
.pin.hl { background: #1a2238; color: #fff; transform: translate(-50%, -50%) scale(1.1); }
.cluster { display: grid; place-items: center; min-width: 38px; height: 38px; padding: 0 8px; transform: translate(-50%, -50%); border-radius: 999px; background: #0f4c9c; color: #fff; font: 600 13px var(--font); border: 3px solid #fff; box-shadow: 0 2px 8px rgb(0 0 0 / .25); }
.mapview .leaflet-bottom { bottom: 152px; }
@media (min-width: 900px) {
  .mapview .leaflet-bottom { bottom: 12px; }
  /* Physical sides: Leaflet forces direction: ltr on the map element, so logical insets would flip. */
  .map { left: 0; right: 420px; }
  [dir="rtl"] .map { left: 420px; right: 0; }
  .map-filters input[type=search] { max-width: 440px; }
}
.mapview .leaflet-control-layers, .mapview .leaflet-bar { border: 0 !important; border-radius: 12px !important; box-shadow: var(--lift) !important; overflow: hidden; }
.locate-btn { position: static !important; width: 44px; min-height: 44px !important; padding: 0 !important; font-size: 1.2rem; border-radius: 12px !important; }
.uni-pin { font-size: 18px; line-height: 1; }
[dir="rtl"] .leaflet-container { direction: ltr; }
.leaflet-container { font: inherit; }
.leaflet-tile-pane { filter: var(--tiles); }

/* ---------- Post wizard ---------- */
.page-head { padding-block: 24px 8px; }
.progress { margin-block: 16px 20px; display: grid; gap: 8px; }
.progress-bar { height: 4px; border-radius: 2px; background: var(--line); overflow: hidden; }
.progress-bar::after { content: ""; display: block; height: 100%; width: var(--p, 0%); background: var(--ink); transition: width .3s; }
.wizard > fieldset[data-step] { padding: 4px 0 8px; }
.wizard.js > fieldset[data-step]:not(.current) { display: none; }
.wizard.js > fieldset.current { animation: fade .25s; }
.wizard legend { font-size: 1.4rem; float: left; width: 100%; margin-block-end: 20px; font-weight: 600; }
[dir="rtl"] .wizard legend { float: right; }
.wizard legend + * { clear: both; }
.wizard fieldset.sub { padding: 18px 0 4px; border-block-start: 1px solid var(--line); }
.wizard fieldset.sub legend { font-size: 1rem; float: none; margin-block-end: 12px; }
.wizard-nav { display: flex; gap: 12px; justify-content: space-between; margin: 24px -16px 0; padding: 14px 16px; position: sticky; bottom: calc(var(--tab-h) + var(--safe-b)); background: var(--bg); border-block-start: 1px solid var(--line); }
.wizard-nav .btn { flex: 1; }
.wizard-nav #prev { flex: 0 1 auto; }
@media (min-width: 900px) { .wizard-nav { bottom: 0; margin-inline: 0; padding-inline: 0; } }
.checkgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.tick { margin: 0; font-weight: 400; }
.tick input { position: absolute; opacity: 0; }
.tick span { display: flex; align-items: center; min-height: 52px; padding: 8px 14px; border: 1px solid var(--line-strong); border-radius: var(--r-ctl); cursor: pointer; font-size: .92rem; transition: border-color .15s, box-shadow .15s; }
.tick span:hover { border-color: var(--ink); }
.tick input:checked + span { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); background: var(--wash); font-weight: 600; }
.tick input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }
.tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 560px) { .tiles { grid-template-columns: repeat(4, 1fr); } }
.tile { margin: 0; }
.tile input { position: absolute; opacity: 0; }
.tile span { display: flex; flex-direction: column; gap: 10px; min-height: 96px; padding: 14px; border: 1px solid var(--line-strong); border-radius: var(--r-ctl); cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.tile span:hover { border-color: var(--ink); }
.tile b { font-weight: 500; font-size: .92rem; line-height: 1.3; }
.tile .ic { width: 30px; height: 30px; }
.tile input:checked + span { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); background: var(--wash); }
.tile input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }
.wizard fieldset.sub.first { border-block-start: 0; padding-block-start: 0; }
.dropzone { display: grid; place-items: center; gap: 8px; min-height: 180px; border: 1.5px dashed var(--line-strong); border-radius: var(--r-panel); padding: 24px; text-align: center; cursor: pointer; font-weight: 600; background: var(--wash); }
.dropzone::before { content: ""; width: 40px; height: 40px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237b8597' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 7h4l2-3h6l2 3h4v13H3z'/%3E%3Ccircle cx='12' cy='13' r='4'/%3E%3C/svg%3E") center / contain no-repeat; }
.dropzone:hover { border-color: var(--ink); }
.wizard.js .dropzone input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 10px; padding: 0; list-style: none; margin-block-start: 14px; }
.thumbs li { position: relative; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: var(--wash); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.thumbs button { position: absolute; top: 6px; inset-inline-end: 6px; width: 28px; height: 28px; border-radius: 999px; border: 0; background: rgb(255 255 255 / .92); color: #1a2238; cursor: pointer; font-size: 1rem; line-height: 1; }
.thumbs li:first-child::after { content: "★"; position: absolute; bottom: 6px; inset-inline-start: 8px; padding: 2px 8px; border-radius: 999px; background: rgb(255 255 255 / .92); color: #1a2238; font-size: .75rem; }
.pin-promo { display: flex; gap: 14px; align-items: flex-start; background: var(--door-soft); border-radius: var(--r-card); padding: 16px; margin-block-end: 14px; }
.pin-promo::before { content: ""; flex: none; width: 26px; height: 34px; border-radius: 13px 13px 3px 3px; background: var(--door); }
.pin-promo p { margin: 0 0 4px; }
.pinmap { height: 320px; border-radius: var(--r-card); background: var(--wash); z-index: 1; position: relative; }
.pin-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-block-start: 10px; }

/* ---------- Auth ---------- */
.auth { padding-block: 40px; max-width: 460px; }
.auth h1 { font-size: 1.6rem; }
.auth .arch-mini { width: 56px; height: 72px; margin-block-end: 20px; }
.phone-in { display: flex; align-items: stretch; margin-block-start: 6px; direction: ltr; }
.phone-in > span { display: grid; place-items: center; padding: 0 14px; border: 1px solid var(--line-strong); border-inline-end: 0; border-radius: var(--r-ctl) 0 0 var(--r-ctl); background: var(--wash); font-weight: 500; }
.phone-in input { margin: 0; border-radius: 0 var(--r-ctl) var(--r-ctl) 0; }
.code-in { letter-spacing: .5em; font-size: 1.4rem; text-align: center; font-weight: 600; }

/* ---------- Account, inbox, chat ---------- */
.me > h2 { margin-block-start: 40px; }
.me > p:has(.btn) { display: flex; gap: 8px; flex-wrap: wrap; }
.auth .btn-primary { width: 100%; margin-block-end: 12px; }
.me-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-block: 24px 8px; }
.mylist, .inbox { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; }
.myitem { display: grid; gap: 12px; padding-block: 18px; border-block-end: 1px solid var(--line); }
.myitem-main { display: flex; gap: 14px; color: inherit; text-decoration: none; }
.myitem-main img { width: 104px; height: 80px; object-fit: cover; border-radius: 12px; flex: none; }
.myitem-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.myitem-actions form { margin: 0; }
.status-expired .myitem-main, .status-rented .myitem-main { opacity: .6; }
.inbox-item { display: flex; gap: 14px; align-items: center; padding: 14px 4px; border-block-end: 1px solid var(--line); color: inherit; text-decoration: none; }
.inbox-item:hover { background: var(--wash); }
.inbox-item.unread .inbox-text b::after { content: ""; display: inline-block; width: 8px; height: 8px; margin-inline-start: 8px; border-radius: 50%; background: var(--action); vertical-align: 2px; }
.inbox-item img { border-radius: 10px; width: 56px; height: 56px; object-fit: cover; }
.inbox-item .noimg.sm { width: 56px; height: 56px; }
.inbox-text { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.chat { display: flex; flex-direction: column; min-height: calc(100dvh - var(--top-h) - var(--tab-h)); padding-block-start: 16px; }
.safety-note { background: var(--wash); padding: 10px 14px; border-radius: var(--r-ctl); color: var(--ink-2); }
.msgs { list-style: none; margin: 0; flex: 1; display: flex; flex-direction: column; gap: 6px; padding: 16px 0; }
.msg { max-width: 80%; align-self: flex-start; background: var(--wash); padding: 10px 14px; border-radius: 18px; border-end-start-radius: 6px; }
.msg.mine { align-self: flex-end; background: var(--action); color: #fff; border-radius: 18px; border-end-end-radius: 6px; }
.msg p { margin: 0; white-space: pre-line; overflow-wrap: anywhere; }
.msg time { display: block; font-size: .7rem; opacity: .7; text-align: end; margin-block-start: 2px; }
.chat-form { position: sticky; bottom: calc(var(--tab-h) + var(--safe-b)); display: flex; gap: 8px; align-items: flex-end; padding-block: 10px; background: var(--bg); }
.chat-form textarea { margin: 0; min-height: 48px; flex: 1; border-radius: 24px; padding: 12px 18px; }
.chat-form .btn { border-radius: 999px; }
@media (min-width: 900px) { .chat-form { bottom: 0; } }

/* ---------- Header extras ---------- */
.post-mini { display: grid; }
@media (min-width: 900px) { .post-mini { display: none; } }
.bell { position: relative; }
.bell .ic { width: 22px; height: 22px; }
.bell-dot { position: absolute; top: 8px; inset-inline-end: 9px; width: 9px; height: 9px; border-radius: 50%; background: var(--bougain); border: 2px solid var(--bg); }
.icon-btn { text-decoration: none; }
.results-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.save-search .ic { width: 18px; height: 18px; }
.save-search .on-label, .save-search.on .off-label { display: none; }
.save-search.on .on-label { display: inline; }
.save-search.on { border-color: var(--ink); background: var(--wash); }
.save-search.on .ic { fill: currentColor; }

/* ---------- Roommates ---------- */
.coloc-head { padding-block: 24px 4px; }
.coloc-head h1 { margin-block-end: 4px; }
.tabs { display: flex; gap: 24px; margin-block-start: 16px; border-block-end: 1px solid var(--line); }
.tabs a { padding-block: 10px; text-decoration: none; color: var(--ink-2); font-weight: 500; border-block-end: 2px solid transparent; margin-block-end: -1px; }
.tabs a[aria-current] { color: var(--ink); border-color: var(--ink); font-weight: 600; }
.me-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-block: 20px 8px; flex-wrap: wrap; }
.me-chip { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; }
.me-chip .avatar { width: 36px; height: 36px; font-weight: 600; }
.women-note { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: var(--r-ctl); background: color-mix(in srgb, var(--bougain) 10%, transparent); color: var(--ink); font-size: .9rem; }
.women-note .ic { width: 20px; height: 20px; color: var(--bougain); }
.coloc-cta { display: grid; gap: 14px; margin-block: 20px; padding: 24px; border-radius: var(--r-panel); background: var(--door-soft); }
.coloc-cta h2 { margin-block-end: 4px; }
.coloc-cta p { margin: 0; color: var(--ink-2); }
@media (min-width: 744px) { .coloc-cta { grid-template-columns: 1fr auto; align-items: center; } }
.coloc-filters { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-block: 16px 8px; }
.coloc-filters > * { margin: 0; }
.coloc-filters .money-in input { margin: 0; }
@media (min-width: 744px) { .coloc-filters { grid-template-columns: 200px 1fr 180px auto; } }
.rgrid { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); margin-block-start: 16px; }
@media (min-width: 560px) { .rgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 950px) { .rgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.rcard-link { display: flex; gap: 14px; padding: 14px; border: 1px solid var(--line); border-radius: var(--r-card); text-decoration: none; color: inherit; background: var(--surface); height: 100%; transition: border-color .15s; }
.rcard-link:hover { border-color: var(--line-strong); }
.rc-photo { position: relative; flex: none; width: 88px; height: 88px; border-radius: 50%; background: var(--door-soft); display: grid; place-items: center; }
.rc-photo img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.rc-photo.g-f { background: color-mix(in srgb, var(--bougain) 14%, var(--surface)); }
.rc-initial { font-size: 2rem; font-weight: 600; color: var(--brand-ink); }
.g-f .rc-initial { color: var(--bougain); }
.match { position: absolute; bottom: -6px; left: 50%; transform: translateX(-50%); white-space: nowrap; padding: 2px 8px; border-radius: 999px; font-size: .7rem; font-weight: 600; background: var(--surface); border: 1px solid var(--line); }
.match.static { position: static; transform: none; display: inline-block; font-size: .8rem; padding: 4px 10px; }
.match-high { color: var(--olive); border-color: color-mix(in srgb, var(--olive) 40%, transparent); }
.match-good { color: var(--brand-ink); }
.match-low { color: var(--ink-3); }
.rc-body { min-width: 0; }
.rc-body h3 { margin: 2px 0; font-size: 1.02rem; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.rc-age { font-weight: 400; color: var(--ink-2); font-size: .9rem; }
.verified { width: 18px; height: 18px; color: var(--bougain); }
.rc-occ, .rc-line { margin: 0; font-size: .88rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rc-tags { list-style: none; padding: 0; margin: 8px 0 0; display: flex; flex-wrap: wrap; gap: 4px; }
.rc-tags li { font-size: .72rem; padding: 2px 8px; border-radius: 999px; background: var(--wash); color: var(--ink-2); }
.req { display: grid; gap: 8px; align-content: start; }
.req-note { margin: 0; padding: 10px 14px; border-radius: var(--r-ctl); background: var(--wash); font-style: italic; }
.req-actions { display: flex; gap: 8px; }
.req-actions form { flex: 1; }
.req-actions .btn { width: 100%; }
.rprofile { padding-block: 20px; }
.rp-head { display: flex; gap: 20px; align-items: center; margin-block: 12px 20px; }
.rp-head h1 { display: flex; align-items: center; gap: 8px; margin-block-end: 2px; }
.rp-head p { margin: 0 0 8px; }
.rp-photo { flex: none; width: 112px; height: 112px; border-radius: 50%; display: grid; place-items: center; background: var(--door-soft); overflow: hidden; }
.rp-photo.g-f { background: color-mix(in srgb, var(--bougain) 14%, var(--surface)); }
.rp-photo img { width: 100%; height: 100%; object-fit: cover; }
.rp-photo .rc-initial { font-size: 2.6rem; }
.rp-occ { margin: 0 0 8px; font-size: .92rem; }
.women-tag { margin: 6px 0 0; color: var(--bougain); font-weight: 500; }
.rp-action { display: grid; gap: 8px; padding: 20px; border-radius: var(--r-panel); border: 1px solid var(--line); background: var(--surface); }
.rp-action p { margin: 0; }
.interest-form { display: grid; gap: 8px; }
.interest-form label { margin: 0; }
.interest-form textarea { margin: 0; min-height: 64px; }
.traits { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.traits li { display: grid; grid-template-columns: 1fr auto auto; gap: 12px; align-items: center; padding-block-end: 12px; border-block-end: 1px solid var(--line); }
.traits li:last-child { border: 0; }
.same { font-size: .75rem; padding: 2px 8px; border-radius: 999px; }
.same.yes { color: var(--olive); background: color-mix(in srgb, var(--olive) 12%, transparent); }
.same.no { color: var(--ink-3); background: var(--wash); }
.coloc-safety { margin-block-start: 32px; }
.profile-form { margin-block-start: 8px; }
.pf-block { padding-block: 24px; border-block-start: 1px solid var(--line); }
.pf-block h2 { font-size: 1.15rem; margin-block-end: 16px; }
.fgroup-lite { margin-block-end: 18px; }
.fgroup-lite legend { font-size: .875rem; font-weight: 500; margin-block-end: 8px; }
.checkgrid.compact { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); }
.checkgrid.compact .tick span { min-height: 42px; }
.area-picks { display: flex; flex-wrap: wrap; gap: 8px; max-height: 220px; overflow-y: auto; padding: 2px; }
.area-picks .tick span { min-height: 38px; padding: 6px 12px; border-radius: 999px; }
.seg.scale { flex-wrap: nowrap; }
.seg.scale label { flex: 1; }
.seg.scale span { text-align: center; }
.scale-hint { display: flex; justify-content: space-between; margin-block-start: 6px; }
.pf-photo { display: flex; align-items: center; gap: 16px; margin-block-end: 18px; }
.pf-photo p { margin: 0; }
.avatar-pick { margin: 0; cursor: pointer; flex: none; }
.avatar-pick input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.avatar-preview { width: 88px; height: 88px; border-radius: 50%; display: grid; place-items: center; background: var(--wash); border: 1.5px dashed var(--line-strong); overflow: hidden; color: var(--ink-3); }
.avatar-preview img { width: 100%; height: 100%; object-fit: cover; }
.avatar-pick:focus-within .avatar-preview { outline: 2px solid var(--ink); outline-offset: 2px; }

/* ---------- Notifications ---------- */
.notifs, .saved-list { list-style: none; padding: 0; margin: 0; }
.notif { display: flex; gap: 12px; align-items: flex-start; padding: 14px 4px; border-block-end: 1px solid var(--line); text-decoration: none; color: inherit; }
.notif:hover { background: var(--wash); }
.notif-dot { flex: none; width: 8px; height: 8px; margin-block-start: 8px; border-radius: 50%; background: transparent; }
.notif.unread .notif-dot { background: var(--bougain); }
.notif-text { flex: 1; min-width: 0; }
.saved-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-block: 10px; border-block-end: 1px solid var(--line); }
.saved-list form { margin: 0; }
.mt { margin-block-start: 40px; }

/* ---------- Edit listing ---------- */
.thumbs.existing li { aspect-ratio: 1; }
.thumbs video { width: 100%; height: 100%; object-fit: cover; }
.thumbs .rm { position: absolute; inset-inline: 6px; bottom: 6px; margin: 0; display: flex; align-items: center; gap: 6px; padding: 4px 8px; border-radius: 999px; background: rgb(255 255 255 / .92); color: #1a2238; font-size: .75rem; font-weight: 500; }
.thumbs .rm input { width: 16px; height: 16px; }
.thumbs li:has(.rm input:checked) img, .thumbs li:has(.rm input:checked) video { opacity: .35; }
.thumbs.existing li:first-child::after { content: none; }
.video-pick { margin-block-start: 20px; }
.video-pick .hint { display: block; margin-block-start: 4px; font-weight: 400; }
.admin .myitem { grid-template-columns: 1fr; }

/* ---------- External (imported) listings ---------- */
.tag-external { background: rgb(255 255 255 / .95); color: #5b4a12; }
.tag-external::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-inline-end: 6px; border-radius: 50%; background: #c99a1e; vertical-align: 1px; }
.ext-banner { display: flex; gap: 14px; align-items: flex-start; margin-block: 16px 4px; padding: 14px 16px; border-radius: var(--r-card); background: #fff6dc; color: #4d3b00; }
.ext-banner .ic { width: 22px; height: 22px; flex: none; margin-block-start: 2px; }
.ext-banner p { margin: 0 0 4px; }
.ext-banner a { font-weight: 600; }
.ext-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; }
.quality { padding: 2px 8px; border-radius: 999px; font-weight: 600; font-size: .75rem; background: rgb(255 255 255 / .7); }
.q-high { color: #3d6b2f; } .q-mid { color: #8a5a00; } .q-low { color: #9a1b3f; }
:root[data-theme="dark"] .ext-banner { background: #3a3012; color: #f4e3b0; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .ext-banner { background: #3a3012; color: #f4e3b0; } }
.claim summary { cursor: pointer; font-weight: 600; text-decoration: underline; }
.claim form { margin-block-start: 8px; }

/* ---------- Market price ---------- */
.market { padding: 14px 16px; margin-block-end: 16px; border-radius: var(--r-card); border: 1px solid var(--line); }
.market p { margin: 0; }
.market-bar { height: 6px; border-radius: 3px; margin-block-end: 10px; position: relative;
  background: linear-gradient(90deg, var(--olive) 0 33%, var(--line) 33% 67%, #c97a2b 67% 100%); }
.market-bar span { position: absolute; top: -4px; width: 14px; height: 14px; border-radius: 50%; background: var(--surface); border: 3px solid var(--ink); transform: translateX(-50%); }
.market-below .market-bar span { left: 16%; }
.market-inline .market-bar span { left: 50%; }
.market-above .market-bar span { left: 84%; }
[dir="rtl"] .market-bar { transform: scaleX(-1); }
.market-below b, .cc-market.market-below { color: var(--olive); }
.market-above b, .cc-market.market-above { color: #b0641f; }
.cc-market { margin: -6px 0 0; font-size: .85rem; font-weight: 500; }
.reply-badge { margin: 2px 0 0; color: var(--olive); font-weight: 500; }
.price-table { margin-block-start: 48px; max-width: 560px; }
.price-table h2 { margin-block-end: 4px; }
.price-table table { width: 100%; border-collapse: collapse; margin-block-start: 12px; }
.price-table th, .price-table td { text-align: start; padding: 10px 8px; border-block-end: 1px solid var(--line); font-weight: 400; }
.price-table thead th { font-size: .85rem; color: var(--ink-2); }
.price-table tbody th { font-weight: 600; }

/* ---------- Visits & chat safety ---------- */
.visit-req > summary { list-style: none; }
.visit-req > summary::-webkit-details-marker { display: none; }
.visit-req .ic { width: 18px; height: 18px; }
.visit-form { display: grid; gap: 0; padding-block-start: 12px; }
.visit-form label { margin-block-end: 10px; }
.scam-warn { margin: -2px -4px 8px; padding: 8px 10px; border-radius: 10px; background: #fff1d6; color: #7a4300; font-size: .82rem; font-weight: 500; }
.msg.k-visit { background: var(--door-soft); color: var(--ink); border: 1px solid color-mix(in srgb, var(--action) 30%, transparent); }
.msg.mine.k-visit { background: var(--door-soft); color: var(--ink); }
.visit-t { font-weight: 600; font-size: .85rem; margin-block-end: 4px !important; color: var(--brand-ink); }
.slots { list-style: none; padding: 0; margin: 10px 0 4px; display: grid; gap: 6px; }
.slots form { margin: 0; }
.slot, .slot-btn { display: block; width: 100%; padding: 8px 12px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line-strong); font: 500 .9rem var(--font); color: var(--ink); text-align: start; }
.slot-btn { cursor: pointer; }
.slot-btn:hover { border-color: var(--ink); }
.slot-hint { margin: 4px 0 0 !important; opacity: .8; }
.visit-ok { margin-block-start: 6px !important; font-weight: 600; }
.msg.k-visit_ok { background: color-mix(in srgb, var(--olive) 14%, var(--surface)); color: var(--ink); }

/* ---------- Admin ---------- */
.reused-pair { display: grid; gap: 10px; }
@media (min-width: 744px) { .reused-pair { grid-template-columns: 1fr 1fr; } }

/* ---------- Lease form ---------- */
.notice-box { padding: 12px 16px; border-radius: var(--r-ctl); background: #fff4d1; color: #5c4400; font-size: .9rem; }

/* ---------- Hubs ---------- */
.hub { padding-block: 40px 8px; }
.hub-summer { background: linear-gradient(180deg, #e3f1f4, var(--bg)); }
.hub-students { background: linear-gradient(180deg, var(--door-soft), var(--bg)); }
.hub h1 { font-size: 2rem; max-width: 20ch; }
.hub .lead { max-width: 60ch; }
.hub-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-block-start: 16px; }
.hub-banners { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 744px) { .hub-banners { grid-template-columns: 1fr 1fr; } }
.hub-banner { display: grid; gap: 4px; padding: 22px 24px; border-radius: var(--r-panel); text-decoration: none; color: var(--ink); position: relative; overflow: hidden; min-height: 112px; align-content: end; }
.hub-banner b { font-size: 1.2rem; }
.hub-banner span { color: var(--ink-2); }
.hb-summer { background: #e3f1f4; }
.hb-students { background: var(--door-soft); }
.hub-banner::after { content: ""; position: absolute; top: 18px; inset-inline-end: 22px; width: 34px; height: 44px; border-radius: 17px 17px 3px 3px; background: var(--door); }
.hb-summer::after { background: #1f8a9a; }
:root[data-theme="dark"] .hb-summer, :root[data-theme="dark"] .hub-summer { background: #12303a; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .hb-summer, :root:not([data-theme="light"]) .hub-summer { background: #12303a; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
