/* Nest: stylesheet. Hand-written, no build step.
   Palette: indigo ink for text and structure, marigold used only for the one primary action
   on a screen, green only ever means "verified / available". */

:root {
  --ink: #1a1f4b;
  --brand: #2f3a9e;
  --brand-soft: #e9ebfa;
  --accent: #f5a623;
  --accent-ink: #2b1c00;
  --bg: #f6f6fb;
  --card: #ffffff;
  --line: #e3e4f0;
  --line-strong: #cfd1e4;
  --muted: #5c6285;
  --ok: #0c7a55;
  --ok-bg: #dcf3ea;
  --warn: #8f5600;
  --warn-bg: #fdecc9;
  --bad: #b3261e;
  --bad-bg: #fbe4e1;
  --radius: 14px;
  --r-sm: 8px;
  --r-lg: 22px;
  --shadow: 0 1px 2px rgba(26, 31, 75, .06), 0 14px 34px -14px rgba(26, 31, 75, .22);
  --font: "Figtree", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Bricolage Grotesque", "Figtree", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --header-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font: 400 1rem/1.6 var(--font);
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; }
a { color: var(--brand); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--accent); color: var(--accent-ink); }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.wrap.narrow { max-width: 760px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.i { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; vertical-align: -0.2em; }
.i.fill { fill: currentColor; stroke: none; }

/* Type */
h1, h2, h3 { font-family: var(--font-display); color: var(--ink); line-height: 1.12; letter-spacing: -0.02em; }
h1 { font-size: clamp(1.75rem, 3.4vw, 2.4rem); font-weight: 700; margin: .3em 0 .5em; }
h2 { font-size: 1.4rem; font-weight: 650; margin: 1.6em 0 .6em; }
h3 { font-size: 1.12rem; font-weight: 650; margin: 0 0 .3em; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 46ch; }

/* Header */
header.site { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .92); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
header.site .wrap { display: flex; align-items: center; gap: 28px; height: var(--header-h); }
.logo { display: inline-flex; align-items: center; gap: 9px; font: 800 1.5rem/1 var(--font-display); letter-spacing: -0.04em; color: var(--ink); text-decoration: none; }
.logo svg { width: 30px; height: 30px; }
.logo:hover { text-decoration: none; }
nav.main { display: flex; align-items: center; gap: 4px; flex: 1; }
nav.main a { color: var(--ink); text-decoration: none; font-weight: 550; font-size: .95rem; padding: 8px 12px; border-radius: 999px; }
nav.main a:hover { background: var(--brand-soft); }
nav.main a[aria-current="page"] { background: var(--brand-soft); }
.nav-end { margin-left: auto; display: flex; align-items: center; gap: 10px; }

.menu { position: relative; }
.menu > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px; padding: 5px 12px 5px 5px; border: 1px solid var(--line-strong); border-radius: 999px; background: #fff; font-weight: 600; font-size: .92rem; }
.menu > summary::-webkit-details-marker { display: none; }
.menu > summary:hover { border-color: var(--ink); }
.avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font: 700 .85rem/1 var(--font-display); }
.menu-panel { position: absolute; right: 0; top: calc(100% + 10px); width: 270px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 8px; max-height: calc(100vh - 100px); overflow-y: auto; }
.menu-panel .group { padding: 6px 0; border-top: 1px solid var(--line); }
.menu-panel .group:first-child { border-top: 0; }
.menu-panel .group-title { font-size: .78rem; font-weight: 700; color: var(--muted); padding: 6px 12px 2px; }
.menu-panel a, .menu-panel button.linklike { display: block; width: 100%; text-align: left; padding: 8px 12px; border-radius: 8px; color: var(--ink); text-decoration: none; font-weight: 500; font-size: .93rem; }
.menu-panel a:hover, .menu-panel button.linklike:hover { background: var(--brand-soft); }
.menu-panel form { margin: 0; }
.only-mobile { display: none; }
.menu-panel .only-mobile + .group { border-top: 0; }

@media (max-width: 820px) {
  nav.main { display: none; }
  .only-mobile { display: block; }
  .menu-panel .only-mobile + .group { border-top: 1px solid var(--line); }
  header.site .wrap { gap: 12px; }
  .menu > summary .who { display: none; }
  .menu > summary { padding: 5px; }
}

/* Buttons and forms */
button { font: inherit; cursor: pointer; }
.btn, button.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--ink); color: #fff; border: 1px solid var(--ink); border-radius: 999px;
  padding: 11px 22px; font-weight: 650; font-size: .97rem; line-height: 1.2; text-decoration: none;
  transition: background-color .15s, border-color .15s, transform .05s;
}
.btn:hover { background: #2a3070; border-color: #2a3070; text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn.go { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.go:hover { background: #ffb43a; border-color: #ffb43a; }
.btn.secondary { background: #fff; color: var(--ink); border-color: var(--line-strong); }
.btn.secondary:hover { border-color: var(--ink); background: #fff; }
.btn.danger { background: var(--bad); border-color: var(--bad); }
.btn.danger:hover { background: #8f1d17; border-color: #8f1d17; }
.btn.small { padding: 6px 14px; font-size: .86rem; }
.btn.block { display: flex; width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
button.linklike { background: none; border: 0; padding: 0; color: var(--brand); text-decoration: underline; text-underline-offset: 3px; font-weight: 500; }

label { display: block; font-size: .875rem; font-weight: 650; margin-bottom: 6px; color: var(--ink); }
input:not([type]), input[type=text], input[type=tel], input[type=number], input[type=email], input[type=password], input[type=url], input[type=search],
input[type=datetime-local], input[type=date], input[type=time], input[type=file], select, textarea {
  width: 100%; padding: 11px 13px; border: 1px solid var(--line-strong); border-radius: 10px;
  font: inherit; color: var(--ink); background: #fff; min-height: 46px;
  transition: border-color .15s, box-shadow .15s;
}
input:not([type=checkbox]):not([type=radio]):hover, select:hover, textarea:hover { border-color: #aeb1d0; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(47, 58, 158, .14); }
input::placeholder, textarea::placeholder { color: #9094b3; }
select { appearance: none; padding-right: 38px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%231a1f4b' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center; }
textarea { min-height: 110px; resize: vertical; }
input[type=file] { padding: 9px; }
.check { display: flex; align-items: flex-start; gap: 10px; margin: 0 0 10px; font-weight: 450; font-size: .93rem; line-height: 1.45; cursor: pointer; }
.check input { width: 20px; height: 20px; min-height: 0; margin: 1px 0 0; accent-color: var(--ink); flex: none; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips .check { display: inline-flex; align-items: center; margin: 0; padding: 8px 14px; border: 1px solid var(--line-strong); border-radius: 999px; background: #fff; font-weight: 550; font-size: .9rem; }
.chips .check:has(input:checked) { background: var(--ink); border-color: var(--ink); color: #fff; }
.chips .check input { position: absolute; opacity: 0; width: 0; height: 0; }
.chips .check:has(input:focus-visible) { outline: 3px solid var(--accent); outline-offset: 2px; }
.row > select { width: auto; min-width: 160px; }
.row > input:not([type=checkbox]):not([type=radio]):not([type=hidden]) { width: auto; flex: 1 1 220px; min-width: 150px; max-width: 420px; }
main .wrap > form.row { margin-bottom: 18px; }
.field { margin-bottom: 14px; }
input + label, select + label, textarea + label, .field-hint + label { margin-top: 14px; }
.field-hint { font-size: .82rem; color: var(--muted); margin-top: 5px; }

/* Layout helpers */
main { padding: 28px 0 72px; min-height: 60vh; }
main > .wrap > h1:first-child { margin-top: 0; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin-bottom: 16px; }
.card > h2:first-child, .card > h3:first-child { margin-top: 0; }
.grid { display: grid; gap: 16px; }
@media (min-width: 720px) {
  .grid.cols-2 { grid-template-columns: 1fr 1fr; }
  .grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
  .grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
}
.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.inline { display: inline; }
.stack > * + * { margin-top: 12px; }

/* Badges */
.badge { display: inline-flex; align-items: center; gap: 5px; font-size: .78rem; font-weight: 650; padding: 3px 10px; border-radius: 999px; background: var(--brand-soft); color: var(--ink); margin: 0 4px 4px 0; line-height: 1.5; }
.badge.ok { background: var(--ok-bg); color: var(--ok); }
.badge.warn { background: var(--warn-bg); color: var(--warn); }
.badge.bad { background: var(--bad-bg); color: var(--bad); }
.badge .i { width: 1em; height: 1em; }

.flash { display: flex; gap: 12px; padding: 13px 16px; border-radius: 12px; margin-bottom: 18px; font-weight: 500; }
.flash.ok { background: var(--ok-bg); color: #075a3f; }
.flash.err { background: var(--bad-bg); color: #7a1f19; }
.flash ul { margin: 0; padding-left: 18px; }
.flash.info { background: var(--brand-soft); color: var(--ink); }

/* Tables (admin and owner screens) */
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 11px 10px; border-bottom: 1px solid var(--line); vertical-align: top; font-size: .93rem; }
th { font-size: .8rem; font-weight: 700; color: var(--muted); border-bottom-color: var(--line-strong); white-space: nowrap; }
tbody tr:hover { background: #fafaff; }
.card table { margin: 0 -10px; width: calc(100% + 20px); }

.pager { display: flex; justify-content: space-between; margin-top: 18px; }
.pagination { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 18px 0; }
.pagination li a, .pagination li span { display: block; padding: 7px 14px; border: 1px solid var(--line-strong); border-radius: 999px; background: #fff; text-decoration: none; color: var(--ink); font-weight: 550; }
.pagination li.active span { background: var(--ink); color: #fff; border-color: var(--ink); }
.pagination li.disabled span { color: var(--muted); }

details > summary { cursor: pointer; font-weight: 600; }
details > summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* Footer */
footer.site { background: var(--ink); color: #c9cbe6; padding: 44px 0 36px; font-size: .92rem; }
footer.site a { color: #fff; }
footer.site .foot { display: grid; gap: 28px; grid-template-columns: 1.4fr 1fr 1fr; }
footer.site .logo { color: #fff; margin-bottom: 12px; }
footer.site h3 { color: #fff; font-size: .95rem; margin-bottom: 10px; }
footer.site ul { list-style: none; margin: 0; padding: 0; }
footer.site li { margin-bottom: 7px; }
footer.site .fine { grid-column: 1 / -1; border-top: 1px solid rgba(255, 255, 255, .14); padding-top: 18px; font-size: .84rem; color: #a3a6cd; }
@media (max-width: 720px) { footer.site .foot { grid-template-columns: 1fr 1fr; } footer.site .foot > :first-child { grid-column: 1 / -1; } }

/* ---------- Home ---------- */
.hero { display: grid; gap: 40px; align-items: center; padding-top: 8px; }
.hero h1 { font-size: clamp(2.3rem, 5.6vw, 4rem); font-weight: 800; letter-spacing: -0.035em; line-height: 1.02; margin: 0 0 .4em; max-width: 14ch; }
.hero .lead { margin-bottom: 0; }
.route { width: 100%; max-width: 520px; justify-self: center; }
.route text { font-family: var(--font); }
@media (min-width: 960px) { .hero { grid-template-columns: 1.1fr .9fr; padding-top: 28px; } }
@media (max-width: 959px) { .route { display: none; } }

.finder { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 18px; position: relative; z-index: 2; }
.hero + .finder { margin-top: 36px; }
.finder .field { margin: 0; }
.finder-note { margin: 12px 2px 0; }
.finder-row { display: grid; gap: 14px; grid-template-columns: 1fr; align-items: end; }
@media (min-width: 900px) { .finder-row { grid-template-columns: 2.2fr 1fr 1fr auto; } }
.finder .btn { height: 46px; padding-inline: 30px; }
.label-row { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.linkbtn { background: none; border: 0; padding: 0; font: 600 .82rem/1.4 var(--font); color: var(--brand); display: inline-flex; gap: 5px; align-items: center; margin-bottom: 6px; }
.linkbtn:hover { color: var(--ink); text-decoration: underline; }
.linkbtn[hidden] { display: none; }
#near-me-status:not(:empty) { display: block; margin-top: 10px; }
.finder details { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.finder details .filter-block { margin: 14px 0; }
.finder details .filter-title { font-size: .85rem; font-weight: 700; margin-bottom: 8px; }

.band { padding: 64px 0 0; }
.band h2 { margin: 0 0 26px; font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 750; }
.places { display: grid; gap: 28px 36px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.places h3 { display: flex; align-items: center; gap: 8px; font-size: 1rem; margin-bottom: 10px; }
.places ul { list-style: none; margin: 0; padding: 0; }
.places li a { display: flex; justify-content: space-between; gap: 8px; padding: 10px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); font-weight: 550; }
.places li a:hover { color: var(--brand); }
.places li a .i { color: var(--muted); }

.promises { display: grid; gap: 36px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.promise .ico { width: 46px; height: 46px; border-radius: 14px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; margin-bottom: 14px; }
.promise .ico .i { width: 24px; height: 24px; }
.promise h3 { font-size: 1.15rem; }
.promise p { color: var(--muted); max-width: 34ch; }

.owner-band { margin-top: 72px; background: var(--ink); color: #fff; border-radius: var(--r-lg); padding: 40px; display: grid; gap: 20px; align-items: center; }
.owner-band h2 { color: #fff; margin: 0 0 8px; font-size: clamp(1.4rem, 3vw, 1.9rem); }
.owner-band p { color: #c9cbe6; margin: 0; max-width: 52ch; }
@media (min-width: 760px) { .owner-band { grid-template-columns: 1fr auto; padding: 44px 52px; } }

/* ---------- Search results ---------- */
.results-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 10px 20px; margin: 8px 0 18px; }
.results-head h1 { margin: 0; font-size: clamp(1.5rem, 2.6vw, 2rem); }
.split { display: grid; gap: 24px; margin-top: 8px; }
@media (max-width: 999px) { .split .mapcol { order: -1; } }
.split.nomap { grid-template-columns: 1fr !important; }
.split.nomap .mapcol { display: none; }
@media (min-width: 1000px) { .split { grid-template-columns: minmax(0, 1fr) 440px; } .split .mapcol { position: sticky; top: calc(var(--header-h) + 16px); align-self: start; } }
#map { height: 280px; border-radius: var(--r-lg); border: 1px solid var(--line); background: #e8eaf6; }
@media (min-width: 1000px) { #map { height: calc(100vh - var(--header-h) - 48px); min-height: 420px; } }
.map-actions { margin: 10px 0 0; }

.stay { display: grid; gap: 16px; grid-template-columns: 1fr; padding: 18px 0; border-bottom: 1px solid var(--line); border-radius: 0; position: relative; transition: background-color .15s; }
.stay.on .stay-photo { outline: 3px solid var(--accent); outline-offset: 3px; }
@media (max-width: 639px) { .stay-photo { aspect-ratio: 16 / 9; } }
@media (min-width: 640px) { .stay { grid-template-columns: 230px 1fr auto; gap: 20px; } }
.stay-photo { display: block; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; background: var(--brand-soft); }
.stay-photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s; }
.stay:hover .stay-photo img { transform: scale(1.04); }
.stay h3 { font-size: 1.25rem; margin-bottom: 4px; }
.stay h3 a { color: var(--ink); text-decoration: none; }
.stay h3 a::after { content: ""; position: absolute; inset: 0; }
.stay .meta { color: var(--muted); font-size: .92rem; margin: 0 0 10px; }
.commute { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: .95rem; }
.commute .i { color: var(--brand); }
.stay .tags { margin: 8px 0 0; }
.stay .amen { color: var(--muted); font-size: .88rem; margin: 8px 0 0; }
.stay-price { text-align: left; align-self: start; }
@media (min-width: 640px) { .stay-price { text-align: right; min-width: 120px; } }
.price { font: 750 1.55rem/1.1 var(--font-display); letter-spacing: -0.02em; }
.price small, .price .per { font: 500 .85rem/1.3 var(--font); color: var(--muted); letter-spacing: 0; }
.stay-price .per { font: 500 .85rem/1.3 var(--font); color: var(--muted); margin-top: 2px; }
.stay-price .rooms { font-size: .85rem; color: var(--muted); margin-top: 6px; }
.ph { width: 100%; height: 100%; display: grid; place-items: center; color: rgba(26, 31, 75, .35); background:
  radial-gradient(circle at 20% 15%, rgba(255,255,255,.7), transparent 45%), var(--brand-soft); }
.ph .i { width: 44px; height: 44px; stroke-width: 1.4; }
.ph.pg { background-color: #e9ebfa; } .ph.hostel { background-color: #e5f1ee; } .ph.room { background-color: #f6eddc; } .ph.coliving { background-color: #f3e6ee; }
.thumb { width: 100%; height: 150px; border-radius: var(--radius); background: var(--brand-soft); object-fit: cover; }

.empty { text-align: center; padding: 44px 20px; border: 1px dashed var(--line-strong); border-radius: var(--radius); background: #fff; }
.empty h3 { font-size: 1.2rem; }
.empty p { color: var(--muted); max-width: 46ch; margin-inline: auto; }

/* Map price pins: the Leaflet marker is a zero-size anchor, the visible pill sits inside it. */
.pin-wrap { background: none !important; border: 0 !important; }
.pin { position: absolute; left: 0; top: 0; transform: translate(-50%, -50%); width: max-content; background: var(--ink); color: #fff; font: 700 .8rem/1 var(--font); padding: 7px 10px; border-radius: 999px; white-space: nowrap; border: 2px solid #fff; box-shadow: 0 2px 8px rgba(26, 31, 75, .35); transition: transform .12s; }
.pin.on { background: var(--accent); color: var(--accent-ink); transform: translate(-50%, -50%) scale(1.18); }
.pin-here { position: absolute; left: 0; top: 0; transform: translate(-50%, -50%); width: 16px; height: 16px; border-radius: 50%; background: var(--accent); border: 3px solid #fff; box-shadow: 0 0 0 7px rgba(245, 166, 35, .3); }
.leaflet-container { font-family: var(--font); }
.leaflet-popup-content-wrapper { border-radius: 12px; }
.leaflet-popup-content a { font-weight: 700; color: var(--ink); }

/* ---------- Listing page ---------- */
.crumbs { font-size: .9rem; margin-bottom: 14px; }
.crumbs a { color: var(--muted); text-decoration: none; font-weight: 550; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.title-row { display: flex; flex-wrap: wrap; gap: 14px 20px; justify-content: space-between; align-items: start; margin-bottom: 8px; }
.title-row h1 { margin: 0; font-size: clamp(1.8rem, 3.6vw, 2.6rem); font-weight: 750; }
.facts { display: flex; flex-wrap: wrap; gap: 6px 8px; margin: 0 0 20px; }
.mosaic { display: grid; gap: 8px; border-radius: var(--r-lg); overflow: hidden; grid-template-columns: repeat(4, 1fr); grid-template-rows: 190px 190px; margin-bottom: 8px; }
.mosaic a, .mosaic div { display: block; overflow: hidden; background: var(--brand-soft); }
.mosaic img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s; }
.mosaic a:hover img { transform: scale(1.04); }
.mosaic > :first-child { grid-column: span 2; grid-row: span 2; }
.mosaic .ph { display: grid; place-items: center; align-content: center; gap: 6px; }
.ph-note { font-size: .88rem; font-weight: 600; color: rgba(26, 31, 75, .55); }
.mosaic.one { grid-template-columns: 1fr; grid-template-rows: 380px; }
.mosaic.one > :first-child { grid-column: auto; grid-row: auto; }
.mosaic.none { grid-template-columns: 1fr; grid-template-rows: 180px; }
.mosaic.none > :first-child { grid-column: auto; grid-row: auto; }
.mosaic.two { grid-template-columns: 2fr 1fr; grid-template-rows: 380px; }
.mosaic.two > :first-child { grid-column: auto; grid-row: auto; }
@media (max-width: 720px) {
  .mosaic, .mosaic.two { grid-template-columns: repeat(2, 1fr); grid-template-rows: 220px 110px 110px; }
  .mosaic > :first-child { grid-column: span 2; grid-row: auto; }
  .mosaic.one, .mosaic.none { grid-template-columns: 1fr; grid-template-rows: 240px; }
  .gallery-extra { display: none; }
}
.detail { display: grid; gap: 40px; margin-top: 28px; }
@media (min-width: 1000px) { .detail { grid-template-columns: minmax(0, 1fr) 380px; } .detail aside { position: sticky; top: calc(var(--header-h) + 16px); align-self: start; } }
.section { padding: 30px 0; border-top: 1px solid var(--line); }
.section:first-child { border-top: 0; padding-top: 0; }
.section h2 { margin: 0 0 16px; font-size: 1.35rem; }
.rooms-list { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; overflow: hidden; }
.room { display: grid; gap: 8px 16px; grid-template-columns: 1fr auto; padding: 16px 18px; border-top: 1px solid var(--line); align-items: center; }
.room:first-child { border-top: 0; }
.room .name { font-weight: 650; }
.room .sub { color: var(--muted); font-size: .88rem; }
.room .rent { text-align: right; }
.room .rent .price { font-size: 1.3rem; }
.room .beds { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; font-size: .88rem; color: var(--muted); }
.room .beds strong { color: var(--ink); }
.amenities { display: grid; gap: 10px 18px; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); list-style: none; padding: 0; margin: 0; }
.amenities li { display: flex; align-items: center; gap: 10px; font-weight: 500; }
.amenities .i { color: var(--ok); }
.prose { max-width: 66ch; white-space: normal; }
.review { padding: 16px 0; border-top: 1px solid var(--line); }
.review:first-of-type { border-top: 0; padding-top: 0; }
.stars { color: var(--accent); letter-spacing: 2px; font-size: 1.05rem; }
.reply { margin: 10px 0 0 18px; padding: 4px 0 4px 14px; border-left: 3px solid var(--line-strong); color: var(--muted); font-size: .92rem; }

.book { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; box-shadow: var(--shadow); margin-bottom: 16px; }
.book .price { font-size: 1.9rem; }
.book h2 { margin: 0 0 4px; font-size: 1.15rem; }
.book hr { border: 0; border-top: 1px solid var(--line); margin: 18px 0; }
.lock { display: flex; gap: 12px; padding: 14px; border-radius: 12px; background: var(--brand-soft); font-size: .9rem; margin: 14px 0 0; }
.lock .i { color: var(--brand); margin-top: 2px; }
.contact-list { margin: 14px 0 0; }
.contact-list dt { font-size: .8rem; font-weight: 700; color: var(--muted); margin-top: 10px; }
.contact-list dd { margin: 2px 0 0; font-weight: 550; }
.stickybar { display: none; }
@media (max-width: 999px) {
  .stickybar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: #fff; border-top: 1px solid var(--line); padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); align-items: center; justify-content: space-between; gap: 12px; box-shadow: 0 -10px 30px -18px rgba(26, 31, 75, .35); }
  .stickybar .price { font-size: 1.3rem; }
  body.has-stickybar footer.site { padding-bottom: 96px; }
}
.report { margin-top: 12px; }

/* ---------- Sign in ---------- */
.auth { display: grid; min-height: calc(100vh - var(--header-h) - 200px); place-items: center; }
.auth-card { width: 100%; max-width: 440px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 34px 30px; box-shadow: var(--shadow); }
.auth-card h1 { font-size: 1.8rem; margin-top: 0; }
.auth-card .btn { width: 100%; }
.code-input { font: 700 1.9rem/1 var(--font-display) !important; letter-spacing: .5em; text-align: center; padding-left: 1.1em !important; }

/* ---------- Content pages ---------- */
.legal { max-width: 760px; }
.legal h2 { font-size: 1.25rem; margin-top: 1.8em; }
.legal li { margin-bottom: .4em; }
.card.plain { border: 0; background: transparent; padding: 0; }
.gallery { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; }
.gallery img { height: 200px; border-radius: var(--r-sm); flex: none; }
.result { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .result { grid-template-columns: 200px 1fr; } }
.result img { width: 100%; height: 150px; object-fit: cover; border-radius: 10px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
@media print {
  header.site, footer.site, .stickybar, .btn { display: none !important; }
  body { background: #fff; }
}

/* ---- Sign-in additions ---- */
.field-error { color: #b42318; font-size: .85rem; margin: 6px 0 0; }
.auth-alt { display: flex; gap: 10px; justify-content: center; align-items: center; flex-wrap: wrap; margin-top: 18px; font-size: .92rem; color: var(--muted, #6b7090); }
.auth-alt form { margin: 0; }
.auth-alt a { font-weight: 600; }
.auth-card .code-input { text-align: center; font-size: 1.6rem; letter-spacing: .35em; font-weight: 700; }

/* ---- Admin dashboard ---- */
a.stat { display: block; text-decoration: none; color: inherit; transition: transform .15s ease, box-shadow .15s ease; }
a.stat:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.stat-n { font-size: 2rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.stat-n.hot { color: #b42318; }
.stat-l { color: var(--muted, #6b7090); font-size: .88rem; margin-top: 4px; }
