/* Affittaloo design system: shared by every page. */
:root {
  --paper: #fff;
  --ink: #1F2328;
  --ink-2: #454B52;
  --muted: #6A7178;
  --mist: #F6F7F7;
  --canvas: #FFFFFF;
  --line: #E5E7E8;
  --deep: #1F2328;
  --deep-2: #3A4048;
  --sea: #00A99A;
  --sea-deep: #00776D;
  --sea-tint: #E4F6F4;
  --sun: #E4F6F4;
  --sun-deep: #CDEDEA;
  --bad: #B42318;
  --ok: #1D7A46;
  --warn: #8A5A00;
  --r-sm: 8px;
  --r: 12px;
  --r-lg: 20px;
  --shadow: 0 6px 20px rgba(31, 36, 39, .12);
  --shadow-lg: 0 18px 50px rgba(31, 36, 39, .18);
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Outfit", "Plus Jakarta Sans", system-ui, sans-serif;
  --header-h: 80px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--canvas); color: var(--ink); font: 400 16px/1.5 var(--font); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; -webkit-tap-highlight-color: transparent; background: none; border: 0; padding: 0; }
:focus-visible { outline: 2px solid var(--sea); outline-offset: 2px; }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; letter-spacing: -.015em; font-family: var(--display); }
h1 { font-size: clamp(24px, 3.4vw, 32px); font-weight: 700; }
h2 { font-size: 22px; font-weight: 700; }
h3 { font-size: 17px; font-weight: 600; }
p { margin: 0; }
.wrap { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.wrap.narrow { max-width: 1120px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.tiny { font-size: 13px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }

/* ---------------------------------------------------------------- Buttons and fields */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px; border-radius: var(--r-sm); border: 1px solid var(--ink); background: var(--paper); font-weight: 600; font-size: 15px; transition: background .15s, border-color .15s, color .15s; white-space: nowrap; }
.btn:hover { background: var(--mist); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-primary { background: var(--sea); border-color: var(--sea); color: #fff; }
.btn-primary:hover { background: var(--sea-deep); border-color: var(--sea-deep); }
.btn-dark { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn-dark:hover { background: #000; }
.btn-quiet { border-color: transparent; text-decoration: underline; text-underline-offset: 3px; padding: 0 8px; }
.btn-quiet:hover { background: var(--mist); }
.btn-danger { border-color: var(--bad); color: var(--bad); }
.btn-danger:hover { background: #FDECEA; }
.btn-lg { min-height: 52px; font-size: 16px; border-radius: var(--r); padding: 0 24px; }
.btn-sm { min-height: 36px; padding: 0 14px; font-size: 14px; }
.btn-block { width: 100%; }

.field { display: block; }
.field > span { display: block; font-size: 14px; font-weight: 600; margin: 0 0 6px; }
.input, .field input, .field select, .field textarea { width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid #B9C2C5; border-radius: var(--r-sm); background: var(--paper); font-size: 16px; }
.field textarea { min-height: 110px; resize: vertical; line-height: 1.45; }
.input:focus, .field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.field .hint { font-size: 13px; color: var(--muted); margin-top: 6px; }
.field.invalid input, .field.invalid select { border-color: var(--bad); box-shadow: 0 0 0 1px var(--bad); }
.form-grid { display: grid; gap: 16px; grid-template-columns: 1fr 1fr; }
.form-grid .full { grid-column: 1 / -1; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--sea); flex: none; }
.error-text { color: var(--bad); font-size: 14px; font-weight: 600; }
.error-text:empty { display: none; }

/* ---------------------------------------------------------------- Header */
.site-header { position: sticky; top: 0; z-index: 1000; background: var(--deep); color: #fff; }
.site-header .bar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 8px; font: 800 23px/1 var(--display); letter-spacing: -.04em; color: #fff; justify-self: start; }
.brand span b { color: var(--sun); font-weight: 800; }
.brand svg { color: var(--sun); }
.brand svg { width: 30px; height: 30px; }
.nav-right { justify-self: end; display: flex; align-items: center; gap: 6px; }
.nav-link { padding: 10px 14px; border-radius: 999px; font-size: 15px; font-weight: 600; }
.nav-link { color: #fff; }
.nav-link:hover { background: rgba(255,255,255,.1); }
.menu-btn { position: relative; display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 6px 0 14px; border: 1px solid rgba(255,255,255,.25); border-radius: 999px; color: #fff; background: rgba(255,255,255,.06); transition: background .15s; }
.menu-btn:hover { background: rgba(255,255,255,.14); }
.menu-btn .dot { position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--sun); color: var(--deep) !important; color: #fff; font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; }
.menu { color: var(--ink); position: absolute; right: 24px; top: calc(var(--header-h) - 8px); width: 250px; background: var(--paper); border-radius: var(--r); box-shadow: var(--shadow-lg); padding: 8px 0; z-index: 1100; }
.menu a, .menu button { display: flex; justify-content: space-between; width: 100%; text-align: left; padding: 11px 18px; font-size: 15px; }
.menu a:hover, .menu button:hover { background: var(--mist); }
.menu hr { border: 0; border-top: 1px solid var(--line); margin: 8px 0; }
.menu .strong { font-weight: 600; }

/* Search pill */
.search-pill { display: flex; align-items: center; height: 48px; border-radius: 14px; background: var(--paper); color: var(--ink); transition: box-shadow .15s; }
.search-pill:hover { box-shadow: 0 0 0 3px rgba(228,246,244,.45); }
.search-pill button.seg { height: 100%; padding: 0 18px; font-size: 14px; font-weight: 600; white-space: nowrap; max-width: 220px; overflow: hidden; text-overflow: ellipsis; }
.search-pill button.seg.dim { color: var(--muted); font-weight: 500; }
.search-pill .sep { width: 1px; height: 24px; background: var(--line); }
.search-pill .go { width: 36px; height: 36px; margin: 0 6px 0 4px; border-radius: 10px; background: var(--sun); color: var(--deep); display: grid; place-items: center; flex: none; }
.search-pill .go svg { width: 16px; height: 16px; }

/* Search panel */
.search-panel { color: var(--ink); position: absolute; left: 50%; top: calc(var(--header-h) + 8px); transform: translateX(-50%); width: min(860px, calc(100vw - 24px)); background: var(--paper); border-radius: 20px; box-shadow: var(--shadow-lg); padding: 20px; z-index: 1100; }
.sp-row { display: grid; grid-template-columns: 1.3fr 1fr auto; gap: 12px; align-items: end; margin-bottom: 16px; }
.sp-box { border: 1px solid var(--line); border-radius: var(--r); padding: 8px 14px; }
.sp-box label { display: block; font-size: 12px; font-weight: 700; }
.sp-box input { border: 0; padding: 2px 0; width: 100%; font-size: 15px; outline: none; background: transparent; }
.stepper { display: flex; align-items: center; gap: 14px; }
.stepper button { width: 32px; height: 32px; border-radius: 50%; border: 1px solid #B9C2C5; display: grid; place-items: center; font-size: 18px; line-height: 1; }
.stepper button:disabled { opacity: .3; cursor: not-allowed; }
.stepper output { min-width: 20px; text-align: center; font-weight: 600; }
.sp-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 12px; padding-top: 14px; border-top: 1px solid var(--line); }
.backdrop { position: fixed; inset: 0; background: rgba(31,35,40,.45); z-index: 1050; }

/* ---------------------------------------------------------------- Range calendar */
.cal { display: grid; grid-template-columns: repeat(var(--months, 2), 1fr); gap: 32px; position: relative; }
.cal-month h4 { text-align: center; font-size: 16px; font-weight: 600; margin: 6px 0 14px; text-transform: capitalize; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); row-gap: 2px; }
.cal-grid .dow { text-align: center; font-size: 12px; font-weight: 600; color: var(--muted); padding-bottom: 8px; }
.cal-day { position: relative; height: 44px; display: grid; place-items: center; font-size: 14px; font-weight: 600; }
.cal-day button { width: 42px; height: 42px; border-radius: 50%; position: relative; z-index: 1; }
.cal-day button:hover:not(:disabled) { box-shadow: inset 0 0 0 1.5px var(--ink); }
.cal-day button:disabled { color: #B9C2C5; text-decoration: line-through; cursor: default; font-weight: 400; }
.cal-day.in-range { background: var(--mist); }
.cal-day.start { background: linear-gradient(90deg, transparent 50%, var(--mist) 50%); }
.cal-day.end { background: linear-gradient(90deg, var(--mist) 50%, transparent 50%); }
.cal-day.start.end { background: none; }
.cal-day.in-range { background: #FCEFD3; }
.cal-day.start { background: linear-gradient(90deg, transparent 50%, #FCEFD3 50%); }
.cal-day.end { background: linear-gradient(90deg, #FCEFD3 50%, transparent 50%); }
.cal-day.start.end { background: none; }
.cal-day.start button, .cal-day.end button { background: var(--deep); color: #fff; }
.cal-day.today button { text-decoration: underline; text-underline-offset: 4px; }
.cal-nav { position: absolute; top: 0; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; }
.cal-nav:hover:not(:disabled) { background: var(--mist); }
.cal-nav:disabled { opacity: .25; cursor: default; }
.cal-nav.prev { left: 0; }
.cal-nav.next { right: 0; }
.cal-nav svg { width: 14px; height: 14px; }

/* ---------------------------------------------------------------- Listing card */
.cards { display: grid; gap: 40px 24px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.card { display: flex; flex-direction: column; color: inherit; background: var(--paper); border-radius: 18px; overflow: hidden; box-shadow: 0 1px 0 var(--line), 0 0 0 1px var(--line); transition: box-shadow .2s, transform .2s; }
.card:hover { box-shadow: 0 0 0 1px var(--line), 0 14px 30px rgba(31,35,40,.12); transform: translateY(-2px); }
.card .photo { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--mist); }
.card .photo img { width: 100%; height: 100%; object-fit: cover; }
.card .badge { position: absolute; top: 12px; left: 12px; background: var(--sun); color: var(--deep); font-size: 13px; font-weight: 700; padding: 5px 10px; border-radius: 999px; box-shadow: 0 1px 4px rgba(0,0,0,.15); }
.card .info { padding: 14px 16px 0; display: grid; gap: 2px; font-size: 15px; flex: 1; align-content: start; }
.card .city { font-size: 12px; font-weight: 700; color: var(--sea); letter-spacing: .02em; }
.card .title { font: 600 17px/1.25 var(--display); letter-spacing: -.01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card .row1 { display: flex; justify-content: space-between; gap: 8px; }
.card .row1 b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card .rate { white-space: nowrap; display: inline-flex; align-items: center; gap: 4px; }
.card .rate svg { width: 12px; height: 12px; }
.card .sub { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card .stub { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 12px; padding: 12px 16px 14px; border-top: 2px dashed var(--line); font-size: 14px; }
.card .stub::before, .card .stub::after { content: ""; position: absolute; top: -9px; width: 16px; height: 16px; border-radius: 50%; background: var(--canvas); box-shadow: inset 0 0 0 1px var(--line); }
.card .stub::before { left: -9px; }
.card .stub::after { right: -9px; }
.card .stub b { font: 700 18px/1 var(--display); color: var(--ink); }
.card .stub .muted { font-size: 13px; }
.carousel { position: absolute; inset: 0; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.carousel::-webkit-scrollbar { display: none; }
.carousel img { flex: 0 0 100%; scroll-snap-align: start; }
.car-btn { position: absolute; top: 50%; transform: translateY(-50%); width: 30px; height: 30px; border-radius: 50%; background: rgba(255,255,255,.92); display: grid; place-items: center; opacity: 0; transition: opacity .15s; box-shadow: 0 1px 4px rgba(0,0,0,.2); }
.car-btn svg { width: 12px; height: 12px; }
.card:hover .car-btn, .car-btn:focus-visible { opacity: 1; }
.car-btn.prev { left: 10px; }
.car-btn.next { right: 10px; }
.dots { position: absolute; bottom: 10px; left: 0; right: 0; display: flex; justify-content: center; gap: 5px; pointer-events: none; }
.dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.6); }
.dots i.on { background: #fff; }
.card.highlight { box-shadow: 0 0 0 3px var(--sun); }

/* ---------------------------------------------------------------- Misc components */
.avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex: none; background: var(--ink-2); color: #fff; display: inline-grid; place-items: center; font-weight: 700; font-size: 16px; overflow: hidden; }
.avatar.lg { width: 64px; height: 64px; font-size: 24px; }
.avatar.xl { width: 104px; height: 104px; font-size: 40px; }
.avatar.sm { width: 32px; height: 32px; font-size: 13px; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 13px; font-weight: 600; background: var(--mist); }
.pill.ok { background: #E3F4EA; color: var(--ok); }
.pill.warn { background: #FFF3D6; color: var(--warn); }
.pill.bad { background: #FDECEA; color: var(--bad); }
.pill.sea { background: var(--sea-tint); color: var(--sea-deep); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chip span { display: inline-flex; min-height: 40px; align-items: center; padding: 0 16px; border: 1px solid #B9C2C5; border-radius: 999px; font-size: 14px; font-weight: 500; }
.chip input:checked + span { border-color: var(--ink); background: var(--ink); color: #fff; }
.chip input:focus-visible + span { outline: 2px solid var(--sea); outline-offset: 2px; }
.panel { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; background: var(--paper); }
.empty { text-align: center; padding: 56px 20px; border: 1px dashed #C9D0D2; border-radius: var(--r); }
.empty h3 { margin-bottom: 6px; }
.empty p { color: var(--muted); margin-bottom: 18px; }
.skeleton { background: linear-gradient(100deg, #EEF1F1 30%, #F7F8F8 50%, #EEF1F1 70%); background-size: 200% 100%; animation: shimmer 1.3s linear infinite; border-radius: var(--r); }
@keyframes shimmer { to { background-position: -200% 0; } }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 14px 20px; border-radius: var(--r); box-shadow: var(--shadow-lg); z-index: 3000; font-weight: 500; max-width: calc(100vw - 32px); }
.toast.bad { background: var(--bad); }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.tabs button { padding: 14px 4px; margin-right: 22px; font-weight: 600; font-size: 15px; color: var(--muted); border-bottom: 2px solid transparent; white-space: nowrap; }
.tabs button[aria-selected="true"] { color: var(--ink); border-bottom: 3px solid var(--sun); }
.tabs .count { display: inline-block; min-width: 20px; margin-left: 6px; padding: 0 6px; border-radius: 10px; background: var(--sea); color: #fff; font-size: 12px; line-height: 20px; }
dialog.modal { border: 0; border-radius: var(--r-lg); padding: 0; width: min(560px, calc(100vw - 24px)); max-height: calc(100vh - 48px); box-shadow: var(--shadow-lg); }
dialog.modal::backdrop { background: rgba(0,0,0,.45); }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.modal-body { padding: 22px; overflow: auto; }
.modal-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 14px 22px; border-top: 1px solid var(--line); }
.icon-btn { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; }
.icon-btn:hover { background: var(--mist); }
.icon-btn svg { width: 16px; height: 16px; }
.stat-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.stat { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px; background: var(--paper); }
.stat small { display: block; color: var(--muted); font-size: 14px; }
.stat b { display: block; font-family: var(--display); font-size: 28px; font-weight: 700; margin: 4px 0 2px; letter-spacing: -.02em; }
.stat i { font-style: normal; font-size: 13px; color: var(--muted); }
.stat.alert { border-color: var(--sun); background: #F5FBFA; }
.list-row { display: flex; gap: 16px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
.list-row:last-child { border-bottom: 0; }
.list-row .grow { flex: 1; min-width: 0; }
.list-row .actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }

.saving { display: block; margin-top: 14px; padding: 10px 12px; border-radius: 12px; background: #E8F5EE; color: #155E39; font-size: 14px; line-height: 1.35; }
.saving b { font-size: 16px; white-space: nowrap; }
.saving::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: #1D7A46; vertical-align: 1px; }

/* ---------------------------------------------------------------- Console (host and admin areas) */
.console { display: grid; grid-template-columns: 260px minmax(0, 1fr); min-height: calc(100vh - var(--header-h)); }
.side { position: sticky; top: var(--header-h); height: calc(100vh - var(--header-h)); overflow-y: auto; background: var(--paper); border-right: 1px solid var(--line); padding: 22px 14px; display: flex; flex-direction: column; gap: 18px; }
.side-who { display: flex; gap: 12px; align-items: center; padding: 6px 8px 16px; border-bottom: 1px solid var(--line); }
.side-who b { display: block; font: 700 16px/1.2 var(--display); }
.side-who small { font-size: 12px; font-weight: 700; color: var(--sea); }
.side-nav { display: grid; gap: 4px; }
.side-nav button, .side-nav a { display: flex; align-items: center; gap: 12px; width: 100%; padding: 11px 12px; border-radius: 12px; font-weight: 600; font-size: 15px; color: var(--ink-2); text-align: left; }
.side-nav button:hover, .side-nav a:hover { background: var(--mist); color: var(--ink); }
.side-nav button[aria-selected="true"] { background: var(--deep); color: #fff; }
.side-nav svg { width: 20px; height: 20px; flex: none; }
.side-nav .count { margin-left: auto; min-width: 22px; padding: 0 7px; border-radius: 11px; background: var(--sun); color: var(--deep); font-size: 12px; font-weight: 800; line-height: 22px; text-align: center; }
.side-foot { margin-top: auto; padding: 14px; border-radius: 14px; background: var(--sea-tint); font-size: 13px; color: var(--ink-2); }
.side-foot b { display: block; color: var(--ink); font-size: 14px; margin-bottom: 4px; }
.console-main { padding: 30px 40px 56px; min-width: 0; max-width: 1180px; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.page-head h1 { font-size: clamp(26px, 3vw, 34px); }
.page-head p { color: var(--muted); margin-top: 4px; }
.stat { position: relative; padding: 20px 20px 18px; }
.stat .ic { position: absolute; right: 16px; top: 16px; width: 38px; height: 38px; border-radius: 12px; background: var(--sea-tint); color: var(--sea-deep); display: grid; place-items: center; }
.stat .ic svg { width: 20px; height: 20px; }
.stat.alert .ic { background: var(--sun); color: var(--deep); }
.view .list-row { flex-wrap: wrap; }
.view .list-row .grow { flex: 1 1 320px; }
.view .list-row .review { flex-basis: 100%; }
.stat small { padding-right: 46px; }
.view .list-row, .view .listing { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; margin-bottom: 10px; }
@media (max-width: 960px) {
  .console { grid-template-columns: 1fr; }
  .side { position: sticky; top: var(--header-h); z-index: 50; height: auto; flex-direction: row; padding: 8px 12px; border-right: 0; border-bottom: 1px solid var(--line); overflow-x: auto; }
  .side-who, .side-foot { display: none; }
  .side-nav { display: flex; gap: 6px; }
  .side-nav button, .side-nav a { white-space: nowrap; padding: 9px 12px; }
  .console-main { padding: 22px 16px 48px; }
}

/* Map price markers (Leaflet divIcon) */
.price-pin { background: var(--deep); color: #fff; font: 700 14px/1 var(--font); padding: 7px 10px; border-radius: 999px; box-shadow: 0 2px 6px rgba(0,0,0,.28); white-space: nowrap; transform: translate(-50%, -50%); display: inline-block; transition: transform .12s; }
.price-pin.on { background: var(--sun); color: var(--deep); transform: translate(-50%, -50%) scale(1.1); }
.leaflet-div-icon.pin-wrap { background: none; border: 0; }
.home-pin { width: 44px; height: 44px; border-radius: 50%; background: var(--sea); display: grid; place-items: center; box-shadow: 0 0 0 8px rgba(0,169,154,.22); transform: translate(-50%, -50%); }
.home-pin svg { width: 22px; height: 22px; color: #fff; }
.poi-pin { width: 30px; height: 30px; border-radius: 50%; background: var(--paper); border: 2px solid var(--ink); display: grid; place-items: center; transform: translate(-50%, -50%); box-shadow: 0 1px 4px rgba(0,0,0,.25); }
.poi-pin svg { width: 15px; height: 15px; }
.leaflet-popup-content-wrapper { border-radius: var(--r) !important; }
.leaflet-container { font-family: var(--font) !important; }

/* ---------------------------------------------------------------- Footer */
.site-footer { margin-top: 72px; background: var(--deep); padding: 44px 0 calc(28px + env(safe-area-inset-bottom)); font-size: 14px; color: #D5D9DC; }
.site-footer .cols { display: grid; gap: 28px; grid-template-columns: repeat(4, 1fr); }
.site-footer h4 { font-size: 15px; font-weight: 700; color: #fff; margin-bottom: 10px; }
.site-footer a { display: block; padding: 4px 0; }
.site-footer a:hover { text-decoration: underline; }
.site-footer .legal { margin-top: 28px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.14); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }

/* ---------------------------------------------------------------- Responsive */
@media (max-width: 960px) {
  :root { --header-h: 72px; }
  .site-header .bar { grid-template-columns: auto 1fr auto; }
  .brand span { display: none; }
  .search-pill { justify-self: stretch; }
  .search-pill button.seg { flex: 1; padding: 0 10px; max-width: none; }
  .nav-link.host-link { display: none; }
  .sp-row { grid-template-columns: 1fr; }
  .cal { --months: 1 !important; }
  .cal-month + .cal-month { display: none; }
  .site-footer .cols { grid-template-columns: 1fr; }
  .menu { right: 12px; }
}
@media (max-width: 600px) {
  .wrap { padding: 0 16px; }
  .search-pill .seg.in, .search-pill .seg.out, .search-pill .seg.who, .search-pill .sep { display: none; }
  .form-grid { grid-template-columns: 1fr; }
  .search-panel { top: calc(var(--header-h) + 4px); border-radius: var(--r-lg); padding: 16px; max-height: calc(100vh - var(--header-h) - 12px); overflow: auto; }
  .cal-day { height: 40px; }
  .cal-day button { width: 38px; height: 38px; }
  .list-row { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

/* Range calendar: arrival / departure selector */
.cal-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; max-width: 360px; margin: 0 auto 14px; }
.cal-tabs button { text-align: left; padding: 8px 14px; border: 1.5px solid var(--line, #d7e0dc); border-radius: 12px; background: transparent; }
.cal-tabs button small { display: block; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; opacity: .65; }
.cal-tabs button b { font-size: 15px; }
.cal-tabs button.on { border-color: var(--sea, #00A99A); box-shadow: 0 0 0 2px color-mix(in srgb, var(--sea, #00A99A) 25%, transparent); }

/* Admin detail modal */
.admin-detail { display: grid; gap: 22px; }
.admin-detail .detail h3 { font-size: 18px; margin: 0 0 10px; }
.admin-detail .detail h4 { font-size: 13px; letter-spacing: .06em; text-transform: uppercase; opacity: .7; margin: 16px 0 8px; }
.admin-detail .who { display: flex; gap: 12px; align-items: center; margin-bottom: 10px; }
.kv { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px 18px; margin: 0; }
.kv dt { font-size: 12px; opacity: .65; } .kv dd { margin: 2px 0 0; font-weight: 600; overflow-wrap: anywhere; }
.docgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.docimg { margin: 0; } .docimg img { width: 100%; max-height: 280px; object-fit: contain; border-radius: 12px; background: #eef2f0; border: 1px solid var(--line, #d7e0dc); }
.docimg figcaption { font-size: 12px; opacity: .7; margin-top: 4px; } .docimg em { display: block; padding: 24px; font-size: 13px; opacity: .7; }
.menu-btn .admin-badge { position: absolute; bottom: -4px; right: -4px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: #d64545; color: #fff; font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; }
.menu-btn .admin-badge[hidden] { display: none; }

/* Host payout setup */
.pay-setup { margin-top: 24px; padding: 22px; border: 1px solid var(--line, #d7e0dc); border-radius: 16px; background: #fff; }
.pay-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pay-head h3 { margin: 0; }
.pay-steps { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 22px; }
.pstep { display: grid; grid-template-columns: 34px 1fr; gap: 14px; }
.pstep .n { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--deep, #1F2328); color: #fff; font-weight: 700; }
.pstep h4 { margin: 4px 0 4px; font-size: 17px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span { display: inline-block; padding: 8px 14px; border: 1.5px solid var(--line, #d7e0dc); border-radius: 999px; font-weight: 600; font-size: 14px; cursor: pointer; }
.chip input:checked + span { background: var(--deep, #1F2328); border-color: var(--deep, #1F2328); color: #fff; }
.chip input:focus-visible + span { outline: 2px solid var(--sea, #00A99A); outline-offset: 2px; }
.docs { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.doc { position: relative; aspect-ratio: 16 / 10; border: 1.5px dashed #9AA6AA; border-radius: 14px; display: grid; place-items: center; text-align: center; padding: 12px; cursor: pointer; overflow: hidden; background: var(--mist, #eef2f0); }
.doc input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.doc img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.doc .lbl { position: relative; z-index: 1; font-weight: 600; font-size: 14px; }
.doc.has { border-style: solid; border-color: var(--sea, #00A99A); }
.doc.has .lbl { background: rgba(255,255,255,.92); padding: 4px 10px; border-radius: 999px; align-self: end; margin-bottom: 4px; }
.pay-form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 10px; }
.pay-form .wide { grid-column: 1 / -1; }
.pay-submit { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.hint { display: block; min-height: 16px; margin-top: 4px; font-size: 12px; font-weight: 600; }
.hint.ok { color: #1D7A46; } .hint.bad { color: #b3261e; }
.ok-box { background: #e8f4ec; }
@media (max-width: 720px) { .docs, .pay-form { grid-template-columns: 1fr; } }

/* ================================================================ Premium layer (golden hour on the coast) */
:root {
  --ease: cubic-bezier(.2, .7, .2, 1);
  --lift: 0 1px 2px rgba(31,35,40,.06), 0 10px 24px -10px rgba(31,35,40,.16), 0 28px 48px -28px rgba(31,35,40,.2);
  --safe-b: env(safe-area-inset-bottom, 0px);
}
body { background: linear-gradient(180deg, var(--canvas) 0, #F6F7F7 100%) fixed; }
h1, h2 { text-wrap: balance; }
h2 { font-size: clamp(24px, 3vw, 30px); letter-spacing: -.025em; }

/* Buttons: tactile, calm */
.btn { border-radius: 12px; transition: background .18s var(--ease), box-shadow .18s var(--ease), transform .12s var(--ease); }
.btn:active:not(:disabled) { transform: scale(.98); }
.btn-primary { background: linear-gradient(180deg, #00B8A8, var(--sea-deep)); border-color: var(--sea-deep); box-shadow: 0 6px 16px -6px rgba(0,169,154,.55); }
.btn-primary:hover { box-shadow: 0 10px 22px -8px rgba(0,169,154,.6); }

/* Header: deep sea with a hairline of sun */
body .site-header { background: linear-gradient(180deg, #1F2328, #2A2F35); box-shadow: 0 1px 0 rgba(228,246,244,.22), 0 8px 24px -16px rgba(0,0,0,.5); }
.search-pill { border-radius: 999px; box-shadow: 0 6px 18px -8px rgba(0,0,0,.5); }
.search-pill .go { border-radius: 50%; }

/* Hero: sunlight from the top right, water lines underneath */
body .hero { background: radial-gradient(700px 360px at 100% 0, rgba(228,246,244,.16), transparent 60%), linear-gradient(135deg, #1F2328 0%, #00A99A 70%, #00A99A 130%); overflow: hidden; }
body .hero::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .07; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='60'%3E%3Cpath d='M0 30Q40 0 80 30T160 30' fill='none' stroke='%23fff' stroke-width='1'/%3E%3C/svg%3E") 0 0 / 160px 60px; -webkit-mask-image: linear-gradient(180deg, transparent 10%, #000 90%); mask-image: linear-gradient(180deg, transparent 10%, #000 90%); }
body .hero .wrap { position: relative; z-index: 1; }
body .hero h1 { letter-spacing: -.05em; text-shadow: 0 2px 30px rgba(0,0,0,.25); }
body .hero p.lead { color: #D5D9DC; }
body .dock { border-radius: 999px; padding: 8px; background: rgba(255,255,255,.97); box-shadow: 0 34px 60px -24px rgba(0,0,0,.55), 0 0 0 1px rgba(255,255,255,.7); }
body .dock .fld + .fld, body .dock .fld.where + .fld { box-shadow: none; }
body .dock .fld { border-radius: 22px; padding: 10px 22px; transition: background .15s; }
body .dock .go { border-radius: 999px; background: linear-gradient(180deg, #EAF8F6, var(--sun-deep)); box-shadow: 0 8px 18px -8px rgba(205,237,234,.8); transition: transform .15s var(--ease), box-shadow .15s; }
body .dock .go:hover { transform: translateY(-1px); box-shadow: 0 12px 22px -8px rgba(205,237,234,.9); }

/* Listing cards: the ticket stub stays, everything else gets quieter and deeper */
.card { border-radius: 22px; box-shadow: 0 0 0 1px rgba(31,35,40,.07), var(--lift); transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.card:hover { transform: translateY(-4px); box-shadow: 0 0 0 1px rgba(31,35,40,.08), 0 2px 4px rgba(31,35,40,.05), 0 24px 40px -18px rgba(31,35,40,.3); }
.card .photo { aspect-ratio: 5 / 4; }
.card .photo::after { content: ""; position: absolute; inset: auto 0 0 0; height: 38%; background: linear-gradient(180deg, transparent, rgba(22,25,29,.38)); pointer-events: none; }
.card .photo img { transition: transform .8s var(--ease); }
.card:hover .photo img { transform: scale(1.05); }
.card .badge { background: rgba(255,255,255,.94); color: var(--deep); backdrop-filter: blur(6px); box-shadow: 0 2px 10px rgba(0,0,0,.18); z-index: 2; }
.card .badge::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--sun-deep); margin-right: 6px; }
.card .info { padding: 16px 18px 0; }
.card .city { color: var(--sea); }
.card .stub { padding: 13px 18px 16px; }
.card .stub b { font-size: 20px; letter-spacing: -.02em; }
.card .stub::before, .card .stub::after { background: #FFFFFF; }

/* Panels and tiles */
.clear { border-radius: 28px; box-shadow: 0 0 0 1px rgba(31,35,40,.07), var(--lift); }
.tiles > * { border-radius: 22px; }
.search-panel { border-radius: 28px; box-shadow: 0 40px 80px -30px rgba(10,32,38,.55), 0 0 0 1px rgba(31,35,40,.06); }
.cal-day button { transition: background .12s, color .12s, transform .12s var(--ease); }
.cal-day button:active:not(:disabled) { transform: scale(.92); }
.site-footer { background: linear-gradient(180deg, #1F2328, #16191D); }

/* Mobile tab bar (injected by app.js on guest and host pages) */
.tabbar { display: none; }
@media (max-width: 760px) {
  body.has-tabbar { padding-bottom: calc(68px + var(--safe-b)); }
  .tabbar { display: grid; grid-template-columns: repeat(4, 1fr); position: fixed; left: 10px; right: 10px; bottom: calc(10px + var(--safe-b)); z-index: 950; background: rgba(31,35,40,.94); backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4); border-radius: 22px; padding: 6px; box-shadow: 0 18px 40px -12px rgba(0,0,0,.5), 0 0 0 1px rgba(255,255,255,.08); }
  .tabbar a { position: relative; display: grid; justify-items: center; gap: 2px; padding: 8px 0 7px; border-radius: 16px; color: #B8BEC4; font: 600 11px/1.1 var(--font); transition: background .15s, color .15s; -webkit-tap-highlight-color: transparent; }
  .tabbar a svg { width: 22px; height: 22px; }
  .tabbar a[aria-current="page"] { color: var(--deep); background: var(--sun); }
  .tabbar .dot { position: absolute; top: 6px; right: calc(50% - 18px); width: 9px; height: 9px; border-radius: 50%; background: var(--sun); box-shadow: 0 0 0 2px rgba(31,35,40,.94); }
  .tabbar a[aria-current="page"] .dot { background: var(--bad); box-shadow: 0 0 0 2px var(--sun); }
}

/* Mobile polish */
@media (max-width: 600px) {
  body .hero { padding: 26px 0 76px; }
  body .hero h1 { font-size: clamp(38px, 11.5vw, 46px); line-height: .98; }
  body .hero p.lead { font-size: 16px; }
  body .dock { border-radius: 26px; gap: 2px; }
  body .dock .fld { border-radius: 18px; padding: 10px 16px; min-height: 58px; }
  body .dock .go { min-height: 54px; font-size: 17px; }
  .facts { gap: 8px 16px; font-size: 13px; }
  .btn { min-height: 48px; }
  .card { border-radius: 24px; }
  .card .photo { aspect-ratio: 4 / 3; }
  .clear { padding: 22px 20px; border-radius: 24px; }
  .tiles { display: flex !important; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-left: 16px; margin: 0 -16px; padding: 4px 16px 14px; scrollbar-width: none; }
  .tiles::-webkit-scrollbar { display: none; }
  .tiles > * { flex: 0 0 72%; aspect-ratio: 5 / 4; height: auto !important; scroll-snap-align: start; }
  /* Search opens as a full sheet instead of a floating box */
  .search-panel { position: fixed; inset: 0; top: 0; left: 0; transform: none; width: 100%; max-height: none; height: 100dvh; border-radius: 0; padding: calc(16px + env(safe-area-inset-top, 0px)) 16px 0; overflow: auto; }
  .search-panel .sp-foot { position: sticky; bottom: 0; background: var(--paper); padding: 12px 0 calc(12px + var(--safe-b)); border-top: 1px solid var(--line); margin-top: 8px; }
  .cal-day { height: 44px; }
  .cal-day button { width: 42px; height: 42px; font-size: 15px; }
  .mobile-bar { border-radius: 22px 22px 0 0; box-shadow: 0 -12px 30px -14px rgba(31,35,40,.3); }
}
@media (hover: none) { .card:hover { transform: none; } .card:hover .photo img { transform: none; } }
@media (max-width: 600px) {
  .search-panel .sp-foot { display: grid; gap: 10px; }
  .search-panel .sp-foot > span:last-child { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .search-panel .sp-foot .btn { width: 100%; }
}

/* ================================================================ Console premium (host and admin) */
body:has(.console) { background: #F4F5F5; }
.console { grid-template-columns: 276px minmax(0, 1fr); }
.side { background: radial-gradient(260px 200px at 0 0, rgba(0,169,154,.5), transparent 70%), linear-gradient(180deg, #1F2328, #16191D); border-right: 0; color: #fff; padding: 22px 14px; gap: 14px; scrollbar-width: thin; }
.side-who { padding: 10px; margin: 0 0 4px; border: 1px solid rgba(255,255,255,.09); border-radius: 18px; background: rgba(255,255,255,.05); }
.side-who b { color: #fff; }
.side-who small { color: var(--sun); }
.side-nav { gap: 2px; }
.side-nav button, .side-nav a { position: relative; color: #B8BEC4; padding: 11px 14px; border-radius: 14px; transition: background .15s, color .15s; }
.side-nav button:hover, .side-nav a:hover { background: rgba(255,255,255,.07); color: #fff; }
.side-nav button[aria-selected="true"] { color: #fff; background: linear-gradient(90deg, rgba(228,246,244,.22), rgba(228,246,244,.03)); }
.side-nav button[aria-selected="true"]::before { content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 3px; border-radius: 3px; background: var(--sun); }
.side-nav button[aria-selected="true"] svg { color: var(--sun); }
.side-nav .count { background: var(--sun); color: var(--deep); box-shadow: 0 0 0 3px rgba(228,246,244,.18); }
.side-foot { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.09); color: #B8BEC4; border-radius: 18px; }
.side-foot b { color: #fff; }
.console-main { padding: 28px 40px 72px; max-width: 1260px; }

.page-head { position: relative; overflow: hidden; align-items: center; padding: 30px 34px; margin-bottom: 26px; border-radius: 28px; color: #fff; background: radial-gradient(420px 220px at 100% 0, rgba(228,246,244,.22), transparent 62%), linear-gradient(120deg, #1F2328 10%, #00A99A 140%); box-shadow: 0 30px 50px -30px rgba(31,35,40,.7); }
.page-head::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .08; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='60'%3E%3Cpath d='M0 30Q40 0 80 30T160 30' fill='none' stroke='%23fff' stroke-width='1'/%3E%3C/svg%3E") 0 0 / 160px 60px; }
.page-head > * { position: relative; z-index: 1; }
.page-head h1 { color: #fff; font-size: clamp(28px, 3.2vw, 38px); letter-spacing: -.035em; }
.page-head p { color: #D5D9DC; }
.page-head .btn { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.28); color: #fff; }
.page-head .btn:hover { background: rgba(255,255,255,.18); }
.page-head .btn-primary { background: var(--sun); border-color: var(--sun); color: var(--deep); box-shadow: none; }

.console .stat-grid { gap: 14px; grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); }
.console .stat { padding: 22px 20px 18px; border: 0; border-radius: 24px; background: linear-gradient(180deg, #fff, #F7FAF9); box-shadow: 0 0 0 1px rgba(31,35,40,.07), var(--lift); overflow: hidden; transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.console .stat::after { content: ""; position: absolute; left: 20px; right: 20px; bottom: 0; height: 3px; border-radius: 3px 3px 0 0; background: linear-gradient(90deg, var(--sea), transparent); opacity: .55; }
.console .stat:hover { transform: translateY(-2px); }
.console .stat b { font: 800 clamp(28px, 2.6vw, 36px)/1.05 var(--display); letter-spacing: -.035em; margin: 8px 0 4px; }
.console .stat small { color: var(--ink-2); font-weight: 600; }
.console .stat .ic { border-radius: 14px; background: linear-gradient(180deg, #EAF8F6, #CDEDEA); }
.console .stat.alert { background: linear-gradient(160deg, #F2FAF9, #E4F6F4); box-shadow: 0 0 0 1px rgba(205,237,234,.55), 0 18px 34px -18px rgba(205,237,234,.7); }
.console .stat.alert::after { background: linear-gradient(90deg, var(--sun-deep), transparent); }

.console .panel { border: 0; border-radius: 26px; padding: 26px 28px; box-shadow: 0 0 0 1px rgba(31,35,40,.07), var(--lift); }
.console .panel h2 { font-size: 20px; letter-spacing: -.02em; }
.bars .bar > div { border-radius: 10px 10px 4px 4px; background: linear-gradient(180deg, var(--sea), #1F2328); }
.view .list-row, .view .listing { border: 0; border-radius: 20px; padding: 18px 20px; box-shadow: 0 0 0 1px rgba(31,35,40,.07), 0 6px 18px -12px rgba(31,35,40,.2); transition: box-shadow .2s, transform .2s var(--ease); }
.view .list-row:hover, .view .listing:hover { box-shadow: 0 0 0 1px rgba(0,169,154,.25), 0 14px 28px -14px rgba(31,35,40,.28); }
.view table { width: 100%; border-collapse: separate; border-spacing: 0; background: #fff; border-radius: 20px; overflow: hidden; box-shadow: 0 0 0 1px rgba(31,35,40,.07), var(--lift); }
.view th { text-align: left; font: 700 12px/1 var(--font); color: var(--muted); padding: 14px 16px; background: #F5F8F7; border-bottom: 1px solid var(--line); }
.view td { padding: 14px 16px; border-bottom: 1px solid #F4F5F5; }
.view tr:last-child td { border-bottom: 0; }
.view tbody tr:hover td { background: #F8FBFA; }
.pill { padding: 4px 11px; letter-spacing: .005em; }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .7; }
.view input:not([type=checkbox]):not([type=radio]), .view select, .view textarea { border-radius: 12px; }

/* Action queue (admin) and first steps (host) */
.todo { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; }
.todo-item { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 20px; text-align: left; background: #F5F8F7; box-shadow: inset 0 0 0 1px rgba(31,35,40,.06); transition: transform .2s var(--ease), box-shadow .2s; }
.todo-item:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 1px rgba(0,169,154,.3), 0 14px 24px -16px rgba(31,35,40,.4); }
.todo-item b { flex: none; display: grid; place-items: center; min-width: 46px; height: 46px; padding: 0 8px; border-radius: 15px; background: #fff; font: 800 22px/1 var(--display); color: var(--ink-2); box-shadow: 0 0 0 1px rgba(31,35,40,.08); }
.todo-item.hot { background: linear-gradient(160deg, #F2FAF9, #E4F6F4); box-shadow: inset 0 0 0 1px rgba(205,237,234,.6); }
.todo-item.hot b { background: var(--sun); color: var(--deep); box-shadow: none; }
.todo-item span { font-weight: 700; }
.todo-item small { display: block; font-weight: 500; color: var(--muted); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; }
.steps button { display: flex; gap: 14px; align-items: flex-start; width: 100%; text-align: left; padding: 16px 18px; border-radius: 20px; background: #F5F8F7; box-shadow: inset 0 0 0 1px rgba(31,35,40,.06); transition: transform .2s var(--ease), box-shadow .2s; }
.steps button:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 1px rgba(0,169,154,.3); }
.steps i { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; font-style: normal; font-weight: 800; color: #fff; background: #fff; box-shadow: inset 0 0 0 2px var(--line); }
.steps .done i { background: var(--ok); box-shadow: none; }
.steps b { display: block; } .steps small { display: block; color: var(--muted); font-weight: 500; }
.steps .done b { color: var(--ink-2); }

/* Console on small screens: a pill rail on top, content full width */
@media (max-width: 960px) {
  .console { grid-template-columns: 1fr; }
  .side { background: rgba(22,25,29,.96); backdrop-filter: blur(12px); padding: 10px 12px; gap: 8px; box-shadow: 0 10px 24px -16px rgba(0,0,0,.6); }
  .side-who, .side-foot { display: none; }
  .side-nav { display: flex; gap: 6px; }
  .side-nav button, .side-nav a { width: auto; flex: none; padding: 9px 14px; border-radius: 999px; font-size: 14px; background: rgba(255,255,255,.06); white-space: nowrap; }
  .side-nav button[aria-selected="true"] { background: var(--sun); color: var(--deep); }
  .side-nav button[aria-selected="true"]::before { display: none; }
  .side-nav button[aria-selected="true"] svg { color: var(--deep); }
  .side-nav svg { width: 18px; height: 18px; }
  .console-main { padding: 18px 16px 48px; }
  .page-head { padding: 22px 20px; border-radius: 24px; margin-bottom: 18px; }
  .console .panel { padding: 20px 18px; border-radius: 22px; }
  .console .stat-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .console .stat { padding: 18px 16px 16px; border-radius: 20px; }
  .console .stat .ic { right: 12px; top: 12px; width: 32px; height: 32px; border-radius: 11px; }
  .view table { display: block; overflow-x: auto; }
}
@media (max-width: 340px) { .console .stat-grid { grid-template-columns: 1fr; } }

/* ================================================================ Brand: "I Gemelli" — stessa casa, ma paghi meno
   One idea everywhere: a solid shape and its outlined twin, offset. Flat offset shadows, no blur.
   Lime is only ever a background behind dark text; violet carries actions; night carries text. */
:root {
  --brand: #00A99A; --brand-deep: #00776D; --brand-tint: #E4F6F4;
  --lime: #E4F6F4; --night: #1F2328; --cut: #E5484D;
  --line: #E5E7E8; --canvas: #FFFFFF;
  --twin: 6px 6px 0 0 var(--brand);
  --twin-sm: 3px 3px 0 0 var(--night);
}
body { background: var(--canvas); }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 6px; }
.brand svg { width: 42px; height: 30px; color: var(--lime); }
.brand span b { color: var(--lime); }

/* Buttons: the twin offset is the press affordance */
.btn { border-radius: 14px; border-width: 1.5px; font-weight: 700; }
.btn-primary, .btn-dark { box-shadow: var(--twin-sm); transition: transform .12s var(--ease), box-shadow .12s var(--ease), background .15s; }
.btn-primary { background: var(--brand); border-color: var(--night); color: #fff; }
.btn-primary:hover { background: var(--brand-deep); box-shadow: 4px 4px 0 0 var(--night); transform: translate(-1px, -1px); }
.btn-dark { background: var(--night); border-color: var(--night); box-shadow: 3px 3px 0 0 var(--brand); }
.btn-dark:hover { background: #000; transform: translate(-1px, -1px); box-shadow: 4px 4px 0 0 var(--brand); }
.btn-primary:active:not(:disabled), .btn-dark:active:not(:disabled) { transform: translate(2px, 2px); box-shadow: 1px 1px 0 0 var(--night); }

/* Header */
body .site-header { background: var(--night); box-shadow: 0 1px 0 rgba(255,255,255,.08); }
.search-pill { border-radius: 16px; box-shadow: 4px 4px 0 0 var(--brand); }
.search-pill .go { border-radius: 12px; background: var(--lime); color: var(--night); }

/* Hero: the twin houses, big, on night */
body .hero { background: var(--night); }
body .hero::after { display: none; }
body .hero::before { opacity: 1; -webkit-mask-image: none; mask-image: none; inset: 0 -60px 0 auto; width: min(620px, 55vw);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 320'%3E%3Cpath d='M245 40 120 140v175h250V140Z' fill='none' stroke='%23E4F6F4' stroke-width='5' stroke-linejoin='round'/%3E%3Cpath d='M175 70 50 170v175h250V170Z' fill='%2300A99A'/%3E%3C/svg%3E") right bottom / contain no-repeat; }
body .hero { padding-bottom: 64px; }
body .hero h1 { text-shadow: none; letter-spacing: -.045em; }
.hero h1 .twin { color: var(--lime); text-shadow: 4px 4px 0 var(--brand); }
body .hero p.lead { color: #DDE1E4; font-size: clamp(17px, 2vw, 20px); }
.facts { color: #DDE1E4; }
.facts span::before { background: var(--lime); border-radius: 2px; }
body .dock { border-radius: 22px; background: #fff; box-shadow: 8px 8px 0 0 var(--brand); }
body .dock .fld { border-radius: 14px; }
body .dock .fld:hover, body .dock .fld:focus-within { background: var(--brand-tint); }
body .dock label, body .dock .lbl { color: var(--night); font-size: 13px; }
body .dock .go { border-radius: 14px; background: var(--lime); color: var(--night); box-shadow: 3px 3px 0 0 var(--night); border: 1.5px solid var(--night); }
body .dock .go:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 0 var(--night); background: #EAF8F6; }

/* Cards: flat, outlined; the twin outline appears on hover/focus */
.card { border-radius: 22px; box-shadow: 0 0 0 1.5px var(--line); transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
.card:hover, .card:focus-visible { transform: translate(-2px, -2px); box-shadow: 0 0 0 1.5px var(--night), 7px 7px 0 0 var(--brand); outline: none; }
.card .photo::after { display: none; }
.card .badge { background: var(--lime); color: var(--night); border-radius: 10px; backdrop-filter: none; box-shadow: var(--twin-sm); }
.card .badge::before { display: none; }
.card .city { color: var(--brand); }
.card .stub { border-top-color: var(--line); align-items: flex-end; }
.card .stub::before, .card .stub::after { background: var(--canvas); box-shadow: inset 0 0 0 1.5px var(--line); }
.price2 { display: grid; gap: 2px; min-width: 0; }
.price2 .twin-row { display: flex; align-items: baseline; gap: 12px; }
.price2 .there, .price2 .here { display: grid; line-height: 1.05; }
.price2 small { font-size: 11px; font-weight: 700; color: var(--muted); }
.price2 s { font: 600 15px/1.2 var(--display); color: var(--muted); text-decoration: line-through 2px var(--cut); }
.price2 b { font: 800 21px/1.2 var(--display); color: var(--night); letter-spacing: -.02em; }
.price2 > .muted { font-size: 13px; }
.save-tag { font-style: normal; font-weight: 800; color: var(--night); background: var(--lime); padding: 1px 7px; border-radius: 6px; }

/* Sections */
.clear, .host-band { border-radius: 26px; box-shadow: 0 0 0 1.5px var(--night), 8px 8px 0 0 var(--brand); background: #fff; }
.bar.us { background: var(--brand); }
.bar.them { background: #D5D9DC; }
.clear-out strong { color: var(--night); background: var(--lime); padding: 0 8px; border-radius: 8px; }
.saving { background: #F2FAF9; color: var(--night); border: 1.5px solid var(--night); }
.saving::before { background: var(--brand); }
.pill.sea { background: var(--brand-tint); color: var(--brand-deep); }
.tiles > * { box-shadow: 0 0 0 1.5px var(--line); }
.search-panel { border-radius: 24px; box-shadow: 0 0 0 1.5px var(--night), 10px 10px 0 0 var(--brand); }
.cal-day.start button, .cal-day.end button { background: var(--brand); color: #fff; }
.site-footer { background: var(--night); }

/* Console (host / admin) */
.side { background: var(--night); }
.page-head { background: var(--night); box-shadow: 8px 8px 0 0 var(--brand); }
.page-head::after { opacity: 1; inset: auto -20px -40px auto; width: 240px; height: 190px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 320'%3E%3Cpath d='M245 40 120 140v175h250V140Z' fill='none' stroke='%23E4F6F4' stroke-width='6' stroke-linejoin='round'/%3E%3Cpath d='M175 70 50 170v175h250V170Z' fill='%2300A99A'/%3E%3C/svg%3E") center / contain no-repeat; }
.page-head .btn { box-shadow: none; }
.page-head .btn-primary { background: var(--lime); border-color: var(--lime); color: var(--night); }
.console .stat, .console .panel, .view .list-row, .view .listing, .view table { box-shadow: 0 0 0 1.5px var(--line); background: #fff; }
.console .stat::after { display: none; }
.console .stat:hover { transform: translate(-2px, -2px); box-shadow: 0 0 0 1.5px var(--night), 5px 5px 0 0 var(--brand); }
.console .stat.alert { background: #F2FAF9; box-shadow: 0 0 0 1.5px var(--night), 5px 5px 0 0 var(--night); }
.console .stat .ic { background: var(--brand-tint); color: var(--brand-deep); }
.console .stat.alert .ic { background: var(--lime); color: var(--night); }
.view .list-row:hover, .view .listing:hover { box-shadow: 0 0 0 1.5px var(--night); }
.todo-item, .steps button { background: #fff; box-shadow: inset 0 0 0 1.5px var(--line); }
.todo-item:hover, .steps button:hover { box-shadow: inset 0 0 0 1.5px var(--night), 4px 4px 0 0 var(--brand); }
.todo-item.hot { background: #F2FAF9; box-shadow: inset 0 0 0 1.5px var(--night); }
.todo-item.hot b { background: var(--lime); color: var(--night); box-shadow: inset 0 0 0 1.5px var(--night); }
.steps .done i { background: var(--brand); }
.bars .bar > div { background: var(--brand); border-radius: 8px 8px 3px 3px; }
.tabbar a[aria-current="page"] { background: var(--lime); color: var(--night); }

@media (max-width: 600px) {
  body .hero::before { width: 70vw; opacity: .35; inset: auto -40px 0 auto; height: 60%; }
  body .dock { box-shadow: 5px 5px 0 0 var(--brand); }
  .hero h1 .twin { text-shadow: 3px 3px 0 var(--brand); }
  .price2 b { font-size: 20px; }
}
@media (prefers-reduced-motion: reduce) { .card:hover, .btn:hover { transform: none; } }

/* Total saved (trips) */
.saved-total { display: flex; align-items: center; gap: 16px; margin-top: 16px; padding: 18px 22px; border-radius: 20px; background: #F2FAF9; box-shadow: 0 0 0 1.5px var(--night), 6px 6px 0 0 var(--brand); }
.saved-total b { font: 800 clamp(28px, 5vw, 38px)/1 var(--display); letter-spacing: -.03em; color: var(--night); }
.saved-total span { font-weight: 700; }
.saved-total small { display: block; font-weight: 500; color: var(--ink-2); }

/* Checkout receipt */
.receipt { position: relative; margin-top: 18px; padding: 18px 18px 30px !important; background: #fff; border-radius: 14px 14px 0 0; box-shadow: inset 0 0 0 1.5px var(--night); font-variant-numeric: tabular-nums;
  -webkit-mask: linear-gradient(#000 0 0) top / 100% calc(100% - 8px) no-repeat, radial-gradient(circle 6px at 50% 100%, transparent 97%, #000 100%) bottom / 16px 8px repeat-x;
  mask: linear-gradient(#000 0 0) top / 100% calc(100% - 8px) no-repeat, radial-gradient(circle 6px at 50% 100%, transparent 97%, #000 100%) bottom / 16px 8px repeat-x; }
#s-saving { display: grid !important; gap: 8px; }
.p-acts { display: inline-flex; gap: 4px; }
.receipt-h { font: 800 13px/1 var(--display); letter-spacing: .02em; color: var(--brand); padding-bottom: 10px; border-bottom: 1.5px dashed var(--line); }
.receipt .total { border-top: 1.5px dashed var(--night) !important; }
.receipt .cmp { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; color: var(--ink-2); margin-top: 4px; }
.receipt .cmp s { text-decoration: line-through 2px var(--cut); white-space: nowrap; }
.receipt .cmp.save { align-items: center; margin-top: 8px; padding: 10px 12px; border-radius: 12px; background: var(--lime); color: var(--night); font-weight: 700; }
.receipt .cmp.save b { font: 800 20px/1 var(--display); }

/* Favourites */
.card .fav { position: absolute; top: 10px; right: 10px; z-index: 3; width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: #fff; box-shadow: 0 0 0 1.5px var(--night), 2px 2px 0 0 var(--night); transition: transform .12s var(--ease); }
.card .fav:active { transform: scale(.92); }
.fav svg { width: 22px; height: 22px; fill: none; stroke: var(--night); stroke-width: 2; stroke-linejoin: round; }
.fav[aria-pressed="true"] svg { fill: var(--brand); stroke: var(--brand); }
.card .fav[aria-pressed="true"] { background: var(--lime); }
.fav-inline { display: inline-flex; gap: 6px; }
.fav-inline svg { width: 18px; height: 18px; }

/* Main search action in the brand colour (light orchid stays for highlights only) */
body .dock .go { background: var(--brand); color: #fff; border-color: var(--night); }
body .dock .go:hover { background: var(--brand-deep); }
.search-pill .go { background: var(--brand); color: #fff; }

/* ================================================================ FINAL: one main colour, everything else neutral
   Classic and calm: white surfaces, near-black text, soft shadows. The brand colour marks actions, selection and savings. */
:root {
  --brand: #00A99A; --brand-deep: #00776D; --brand-tint: #E4F6F4;
  --ink: #1F1B24; --ink-2: #48434F; --muted: #6E6875; --line: #E7E4EA; --mist: #F5F4F7; --canvas: #FFFFFF; --paper: #FFFFFF;
  --night: #1F1B24; --deep: #1F1B24; --sea: #00A99A; --sea-deep: #00776D; --sea-tint: #E4F6F4;
  --sun: #E4F6F4; --sun-deep: #CDEDEA; --lime: #E4F6F4;
  --soft: 0 1px 2px rgba(31,27,36,.06), 0 6px 20px rgba(31,27,36,.08);
  --soft-lg: 0 2px 6px rgba(31,27,36,.06), 0 16px 40px rgba(31,27,36,.12);
}
body { background: #fff; color: var(--ink); }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }

/* Header: white */
body .site-header { background: rgba(255,255,255,.96); color: var(--ink); box-shadow: 0 1px 0 var(--line); backdrop-filter: blur(10px); }
.brand { color: var(--ink); }
.brand svg { color: var(--brand); }
.brand span b { color: var(--brand); }
.nav-link, .nav-link.host-link { color: var(--ink); }
.nav-link:hover { background: var(--mist); }
.menu-btn { background: #fff; border-color: var(--line); color: var(--ink); box-shadow: none; }
.menu-btn:hover { box-shadow: var(--soft); }
.menu-btn .dot, .menu-btn .admin-badge { background: var(--brand); color: #fff; }
.search-pill { border: 1px solid var(--line); box-shadow: var(--soft); border-radius: 999px; }
.search-pill:hover { box-shadow: var(--soft-lg); }
.search-pill .go { background: var(--brand); color: #fff; border-radius: 50%; }

/* Buttons: solid colour, soft depth, no offset shapes */
.btn { border-radius: 12px; border-width: 1px; }
.btn-primary, .btn-dark, .btn-primary:hover, .btn-dark:hover { box-shadow: none; transform: none; }
.btn-primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-deep); border-color: var(--brand-deep); }
.btn-dark { background: var(--ink); border-color: var(--ink); }
.btn-primary:active:not(:disabled), .btn-dark:active:not(:disabled) { transform: scale(.98); box-shadow: none; }

/* Hero: light, the twin houses as a quiet illustration */
body .hero { background: linear-gradient(180deg, #F2FAF9, #fff); color: var(--ink); padding: 48px 0 56px; }
body .hero::before { opacity: .9;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 320'%3E%3Cpath d='M245 40 120 140v175h250V140Z' fill='none' stroke='%2300A99A' stroke-opacity='.35' stroke-width='4' stroke-linejoin='round'/%3E%3Cpath d='M175 70 50 170v175h250V170Z' fill='%2300A99A' fill-opacity='.12'/%3E%3C/svg%3E") right bottom / contain no-repeat; }
body .hero h1 { color: var(--ink); text-shadow: none; }
.hero h1 .twin { color: var(--brand); text-shadow: none; }
body .hero p.lead { color: var(--ink-2); }
body .facts { color: var(--ink-2); }
.facts span::before { background: var(--brand); border-radius: 50%; }
body .dock { background: #fff; border: 1px solid var(--line); box-shadow: var(--soft-lg); border-radius: 20px; }
body .dock .fld:hover, body .dock .fld:focus-within { background: var(--mist); }
body .dock label, body .dock .lbl { color: var(--ink); }
body .dock .go, body .dock .go:hover { background: var(--brand); color: #fff; border: 0; box-shadow: none; transform: none; }
body .dock .go:hover { background: var(--brand-deep); }

/* Cards */
.card, .tiles > * { box-shadow: none; border-radius: 20px; }
.card { border: 1px solid var(--line); }
.card:hover, .card:focus-visible { transform: translateY(-2px); box-shadow: var(--soft-lg); border-color: var(--line); outline: none; }
.card:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
.card .badge { background: #fff; color: var(--ink); box-shadow: var(--soft); }
.card .city { color: var(--brand-deep); }
.card .stub::before, .card .stub::after { background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.price2 s { text-decoration-color: var(--muted); text-decoration-thickness: 1.5px; }
.save-tag { background: var(--brand-tint); color: var(--brand-deep); }
.card .fav { border-radius: 50%; box-shadow: var(--soft); }
.card .fav[aria-pressed="true"] { background: #fff; }

/* Sections */
.clear, .host-band { box-shadow: none; border: 1px solid var(--line); background: #fff; }
.host-band { background: var(--mist); }
.clear-out strong { background: var(--brand-tint); color: var(--brand-deep); }
.bar.them { background: #D9D5DE; }
.saving { background: var(--brand-tint); color: var(--ink); border: 0; }
.saved-total { background: var(--brand-tint); box-shadow: none; }
.saved-total b { color: var(--brand-deep); }
.search-panel { box-shadow: var(--soft-lg); border: 1px solid var(--line); }
.receipt { box-shadow: inset 0 0 0 1px var(--line); }
.receipt .total { border-top-color: var(--line) !important; }
.receipt .cmp.save { background: var(--brand-tint); color: var(--brand-deep); }
.receipt-h { color: var(--brand-deep); }
.site-footer { background: var(--mist); color: var(--ink); border-top: 1px solid var(--line); }
.site-footer a, .site-footer p, .site-footer .legal { color: var(--ink-2); }
.site-footer h4 { color: var(--ink); }

/* Mobile tab bar: white, brand marks the current page */
@media (max-width: 760px) {
  .tabbar { background: rgba(255,255,255,.97); box-shadow: var(--soft-lg), 0 0 0 1px var(--line); }
  .tabbar a { color: var(--muted); }
  .tabbar a[aria-current="page"] { background: var(--brand-tint); color: var(--brand-deep); }
  .tabbar .dot { background: var(--brand); box-shadow: 0 0 0 2px #fff; }
}

/* Console: light sidebar, plain page titles */
body:has(.console) { background: var(--mist); }
.side { background: #fff; color: var(--ink); border-right: 1px solid var(--line); }
.side-who { background: var(--mist); border-color: transparent; }
.side-who b { color: var(--ink); }
.side-who small { color: var(--brand-deep); }
.side-nav button, .side-nav a { color: var(--ink-2); }
.side-nav button:hover, .side-nav a:hover { background: var(--mist); color: var(--ink); }
.side-nav button[aria-selected="true"] { background: var(--brand-tint); color: var(--brand-deep); }
.side-nav button[aria-selected="true"]::before { background: var(--brand); }
.side-nav button[aria-selected="true"] svg { color: var(--brand); }
.side-nav .count { background: var(--brand); color: #fff; box-shadow: none; }
.side-foot { background: var(--mist); border-color: transparent; color: var(--ink-2); }
.side-foot b { color: var(--ink); }
.page-head { background: none; color: var(--ink); box-shadow: none; padding: 4px 0 0; border-radius: 0; }
.page-head::after { display: none; }
.page-head h1 { color: var(--ink); }
.page-head p { color: var(--muted); }
.page-head .btn { background: #fff; border-color: var(--line); color: var(--ink); }
.page-head .btn-primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.console .stat, .console .panel, .view .list-row, .view .listing, .view table { box-shadow: none; border: 1px solid var(--line); }
.console .stat:hover { transform: none; box-shadow: var(--soft); }
.console .stat.alert { background: var(--brand-tint); border-color: #A8DED8; box-shadow: none; }
.console .stat .ic, .console .stat.alert .ic { background: var(--brand-tint); color: var(--brand-deep); }
.console .stat.alert .ic { background: #fff; }
.view .list-row:hover, .view .listing:hover { box-shadow: var(--soft); }
.todo-item, .steps button { box-shadow: inset 0 0 0 1px var(--line); }
.todo-item:hover, .steps button:hover { box-shadow: inset 0 0 0 1px var(--line), var(--soft); }
.todo-item.hot { background: var(--brand-tint); box-shadow: none; }
.todo-item.hot b { background: var(--brand); color: #fff; box-shadow: none; }
@media (max-width: 960px) {
  .side { background: rgba(255,255,255,.97); border-bottom: 1px solid var(--line); box-shadow: none; }
  .side-nav button, .side-nav a { background: var(--mist); }
  .side-nav button[aria-selected="true"] { background: var(--brand); color: #fff; }
  .side-nav button[aria-selected="true"] svg { color: #fff; }
}
@media (max-width: 600px) {
  body .hero { padding: 28px 0 40px; }
  body .hero::before { opacity: .6; }
  body .dock { box-shadow: var(--soft); }
}
body .facts span::before { background: var(--brand); }

/* ================================================================ Brand v3: Turchese verde #00A99A, home "Altrove / Su Affittaloo"
   Fills use --brand with white bold text; small green text uses --brand-deep (#00776D) for AA contrast on white. */
:root { --brand: #00A99A; --brand-deep: #00776D; --brand-hover: #00958A; --brand-tint: #E4F6F4; --sea: #00A99A; --sea-deep: #00776D; --sea-tint: #E4F6F4; }
.btn-primary:hover, body .dock .go:hover { background: var(--brand-hover); border-color: var(--brand-hover); }
.hero h1 .twin { color: var(--brand); }

/* Hero: text + search on the left, the twin boxes on the right */
body .hero { background: #fff; padding: 36px 0 40px; }
body .hero::before { display: none; }
.hero:not(.compact) .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 56px; align-items: center; }
.hero:not(.compact) .wrap > :not(.twins) { grid-column: 1; }
.hero:not(.compact) .twins { grid-column: 2; grid-row: 1 / span 4; }
body .hero h1 { font-size: clamp(40px, 5.4vw, 72px); }
body .hero p.lead { color: var(--ink-2); max-width: 28em; }
.hero:not(.compact) .dock { grid-template-columns: 1fr 1fr; grid-template-areas: "where where" "in out" "guests guests" "go go"; gap: 10px; padding: 0; margin-top: 28px; max-width: 540px; background: none; border: 0; box-shadow: none; border-radius: 0; }
.hero:not(.compact) .dock .fld { border: 1.5px solid var(--line); border-radius: 16px; background: #fff; box-shadow: none !important; padding: 12px 18px; }
.hero:not(.compact) .dock .fld:hover, .hero:not(.compact) .dock .fld:focus-within { border-color: var(--ink); background: #fff; }
.hero:not(.compact) .dock .fld.where { grid-area: where; padding-right: 44px; }
.hero:not(.compact) .dock #d-in { grid-area: in; }
.hero:not(.compact) .dock #d-out { grid-area: out; }
.hero:not(.compact) .dock .fld:nth-of-type(4) { grid-area: guests; }
.hero:not(.compact) .dock .go { grid-area: go; justify-content: center; min-height: 56px; border-radius: 16px; font-size: 17px; }
body .dock .go { background: var(--brand); color: #fff; }
body .facts { color: var(--ink-2); gap: 8px 22px; }

.twins { position: relative; height: 500px; }
.tw-card { position: absolute; width: min(340px, 60%); background: #fff; border-radius: 24px; padding: 12px; box-shadow: 0 2px 6px rgba(31,35,40,.06), 0 24px 60px rgba(31,35,40,.16); }
.tw-ph { aspect-ratio: 1 / .8; border-radius: 16px; background: var(--mist) center / cover no-repeat; background-image: linear-gradient(180deg, #F6C9A4 0%, #F3A98A 40%, #7FB3C9 40.5%, #3F7F9C 100%); }
.tw-old { left: 0; top: 0; transform: rotate(-4deg); }
.tw-new { right: 0; top: 100px; transform: rotate(3deg); }
.tw-tag { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 14px 8px 4px; }
.tw-tag small { display: block; color: var(--muted); font-weight: 600; font-size: 13px; }
.tw-tag b { font: 800 30px/1.1 var(--display); letter-spacing: -.03em; }
.tw-old b { color: var(--muted); text-decoration: line-through 3px; }
.tw-save { background: var(--brand); color: #fff; font-weight: 800; font-size: 14px; padding: 6px 12px; border-radius: 999px; white-space: nowrap; }
.tw-eq { position: absolute; left: 50%; top: 46%; transform: translate(-50%, -50%); z-index: 2; width: 60px; height: 60px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font: 800 26px/1 var(--font); }
.hero.compact .twins { display: none; }

/* Listings right after the hero; the price explainer and host band follow */
body > main.wrap:has(> #layout) { display: flex; flex-direction: column; }
main.wrap > .places { order: 1; } main.wrap > .results-head { order: 2; } main.wrap > #layout { order: 3; } main.wrap > .map-toggle { order: 4; }
main.wrap > .clear { order: 5; margin-top: 56px; } main.wrap > .host-band { order: 6; }

@media (max-width: 960px) {
  .hero:not(.compact) .wrap { grid-template-columns: 1fr; }
  .hero:not(.compact) .twins { grid-column: 1; grid-row: auto; height: 300px; margin-top: 28px; }
  .hero:not(.compact) .dock { max-width: none; }
  .tw-card { width: 52%; padding: 8px; border-radius: 18px; }
  .tw-ph { border-radius: 12px; }
  .tw-new { top: 50px; }
  .tw-tag { padding: 10px 4px 2px; flex-wrap: wrap; }
  .tw-tag b { font-size: 22px; }
  .tw-save { font-size: 12px; padding: 4px 9px; }
  .tw-eq { width: 44px; height: 44px; font-size: 20px; }
}
@media (max-width: 600px) {
  body .hero { padding: 24px 0 28px; }
  .hero:not(.compact) .twins { height: 250px; }
  .tw-tag small { font-size: 11px; }
  .tw-tag b { font-size: 19px; }
}
/* Bigger, unmistakable saving in the hero boxes */
.tw-old b { color: #8A9096; text-decoration: line-through 4px #C9CED3; }
.tw-tag b { font-size: 36px; }
.tw-pct { background: var(--brand-tint); color: var(--brand-deep); font-weight: 800; font-size: 15px; padding: 6px 12px; border-radius: 999px; }
.tw-save { display: flex; justify-content: space-between; align-items: center; margin: 12px 0 0; padding: 14px 16px; border-radius: 14px; background: var(--brand); color: #fff; font-weight: 700; font-size: 16px; }
.tw-save b { font: 800 30px/1 var(--display); letter-spacing: -.02em; }
.tw-new { top: 80px; }
.hero:not(.compact) .dock .fld:has(#d-guests) { grid-area: guests; }
.hero:not(.compact) .dock .fld:nth-of-type(4) { grid-area: auto; }
@media (max-width: 960px) {
  .hero:not(.compact) .twins { height: 330px; }
  .tw-tag b { font-size: 24px; }
  .tw-pct { font-size: 12px; padding: 3px 8px; }
  .tw-save { margin-top: 8px; padding: 9px 10px; font-size: 13px; border-radius: 10px; }
  .tw-save b { font-size: 20px; }
  .tw-new { top: 40px; }
}
@media (max-width: 600px) {
  .hero:not(.compact) .twins { height: 300px; }
  .tw-tag small { font-size: 10px; }
  .tw-tag b { font-size: 20px; }
}

/* Maps: minimal chrome on the clean vector basemap */
.leaflet-container { background: #F2F3F3; font-family: var(--font); }
.leaflet-control-zoom { border: 0 !important; box-shadow: 0 4px 14px rgba(31,35,40,.14) !important; border-radius: 12px !important; overflow: hidden; }
.leaflet-control-zoom a { width: 38px !important; height: 38px !important; line-height: 38px !important; color: var(--ink) !important; border: 0 !important; }
.leaflet-control-zoom a + a { border-top: 1px solid var(--line) !important; }
.leaflet-control-attribution { background: rgba(255,255,255,.8) !important; font-size: 10px !important; border-radius: 8px 0 0 0; }
.leaflet-tooltip { border: 0; border-radius: 10px; box-shadow: 0 6px 18px rgba(31,35,40,.18); font-weight: 600; padding: 6px 10px; }
.home-pin { background: var(--brand) !important; color: #fff !important; box-shadow: 0 0 0 4px #fff, 0 6px 16px rgba(0,0,0,.25) !important; }
/* "+24% commissioni" sits on the Altrove box: it explains the higher price, so it stays neutral */
.tw-old .tw-pct { background: #F1F2F3; color: #5B6168; }
.tw-old .tw-tag { flex-wrap: wrap; }
.tw-old .tw-tag { flex-direction: column; align-items: flex-start; gap: 6px; }

/* ================================================================ Minimal preview cards */
.card.card-min { border: 0; box-shadow: none; background: transparent; border-radius: 0; overflow: visible; }
.card.card-min:hover { transform: none; box-shadow: none; }
.card.card-min .photo { border-radius: 20px; overflow: hidden; aspect-ratio: 1 / .95; }
.card.card-min:hover .photo img { transform: scale(1.04); }
.card.card-min:focus-visible { outline: 3px solid var(--brand); outline-offset: 4px; border-radius: 20px; }
.cm-body { padding: 12px 2px 0; display: grid; gap: 2px; }
.cm-row { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.cm-row .title { font: 600 16px/1.3 var(--font); letter-spacing: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cm-row .rate { flex: none; font-size: 14px; display: inline-flex; align-items: center; gap: 4px; }
.cm-row .rate svg { width: 12px; height: 12px; }
.cm-row .rate.new { color: var(--muted); }
.cm-city { color: var(--muted); font-size: 15px; }
.cm-price { display: flex; align-items: baseline; gap: 6px; margin-top: 4px; font-size: 15px; }
.cm-price b { font-weight: 700; }
.cm-price span { color: var(--muted); }
.cm-price .save-tag { margin-left: 4px; font-size: 13px; padding: 1px 7px; }
.cm-row .title { flex: 1; min-width: 0; display: block; } .card.card-min { min-width: 0; }
.cm-body { min-width: 0; grid-template-columns: minmax(0, 1fr); } .cm-row { min-width: 0; }

/* Calendar: taken nights struck through in red on a soft hatched background */
.cal-day.busy button:disabled { color: #C4362C; text-decoration: line-through 2px #C4362C; background: repeating-linear-gradient(-45deg, #FDEDEB 0 4px, #fff 4px 8px); opacity: 1; }
.cal-legend { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 13px; color: var(--muted); }
.cal-legend .k-busy { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; font-size: 12px; color: #C4362C; text-decoration: line-through 2px #C4362C; background: repeating-linear-gradient(-45deg, #FDEDEB 0 3px, #fff 3px 6px); }

/* Loyalty perks */
.perk-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.perk-chip { display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 999px; background: var(--brand-tint); color: var(--brand-deep); font-size: 12px; font-weight: 800; }
.pk { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; font-size: 15px; color: var(--brand-deep); font-weight: 600; }
.lvl-badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; background: var(--brand-tint); color: var(--brand-deep); font-size: 12px; font-weight: 800; }
.lvl-badge.l2 { background: var(--brand); color: #fff; }
