/* ==========================================================================
   DockSpace design system
   Mobile-first. Tokens on :root; components below. No framework dependency.
   ========================================================================== */

@font-face {
    font-family: "Plus Jakarta Sans";
    src: url("/fonts/plus-jakarta-sans-var.woff2") format("woff2");
    font-weight: 200 800;
    font-style: normal;
    font-display: swap;
}

:root {
    /* Color */
    --c-ink: #0B1B2B;
    --c-ink-2: #34465A;
    --c-muted: #5B6B7C;
    --c-line: #E3E8EE;
    --c-line-strong: #CBD5E0;
    --c-bg: #FFFFFF;
    --c-bg-soft: #F5F8FA;
    --c-bg-sunk: #EEF3F7;
    --c-navy: #0A2540;
    --c-navy-2: #0F3157;

    --c-brand: #0B6E99;
    --c-brand-600: #095A7E;
    --c-brand-700: #074766;
    --c-brand-50: #EAF5FA;
    --c-brand-100: #D3EAF4;
    --c-aqua: #7FD3EC;
    --c-sun: #FFB27A;
    --c-sun-ink: #9A3D0B;
    --c-star: #E8A317;

    --c-success: #0F7B4F;
    --c-success-bg: #E6F5EE;
    --c-warning: #8A4B00;
    --c-warning-bg: #FFF4E0;
    --c-danger: #B42318;
    --c-danger-bg: #FDECEA;
    --c-info-bg: #EAF5FA;

    /* Type */
    --font: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --fs-xs: .75rem;
    --fs-sm: .875rem;
    --fs-base: 1rem;
    --fs-lg: 1.125rem;
    --fs-xl: clamp(1.25rem, 1rem + .8vw, 1.5rem);
    --fs-2xl: clamp(1.5rem, 1.1rem + 1.4vw, 2rem);
    --fs-3xl: clamp(1.875rem, 1.2rem + 2.4vw, 2.75rem);
    --fs-hero: clamp(2.25rem, 1.3rem + 4vw, 4rem);

    /* Space & shape */
    --gutter: 16px;
    --container: 1240px;
    --r-sm: 8px;
    --r: 12px;
    --r-lg: 20px;
    --r-pill: 999px;
    --shadow-sm: 0 1px 2px rgba(11, 27, 43, .06);
    --shadow: 0 1px 2px rgba(11, 27, 43, .05), 0 6px 20px rgba(11, 27, 43, .07);
    --shadow-lg: 0 2px 6px rgba(11, 27, 43, .06), 0 18px 48px rgba(11, 27, 43, .14);
    --focus: 0 0 0 3px rgba(11, 110, 153, .35);
    --header-h: 64px;
    --ease: cubic-bezier(.2, .7, .2, 1);
}

@media (min-width: 768px) {
    :root { --gutter: 24px; --header-h: 72px; }
}

/* ===== Reset & base ===== */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
    font-family: var(--font);
    font-size: var(--fs-base);
    line-height: 1.6;
    color: var(--c-ink);
    background: var(--c-bg);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { line-height: 1.15; letter-spacing: -.02em; font-weight: 800; color: var(--c-ink); text-wrap: balance; }
h1 { font-size: var(--fs-3xl); }
h2 { font-size: var(--fs-2xl); }
h3 { font-size: var(--fs-lg); letter-spacing: -.01em; }
p { text-wrap: pretty; }
a { color: var(--c-brand); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--c-brand-700); }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 6px; }
::selection { background: var(--c-brand-100); }
table { border-collapse: collapse; width: 100%; }
hr { border: 0; border-top: 1px solid var(--c-line); margin: 24px 0; }
[hidden] { display: none !important; }

.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
    position: absolute; left: 12px; top: -48px; z-index: 2000; padding: 10px 16px;
    background: var(--c-ink); color: #fff; border-radius: var(--r-sm); font-weight: 700;
}
.skip-link:focus { top: 12px; color: #fff; }

/* ===== Layout ===== */
.site-main { flex: 1 0 auto; }
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container-sm { max-width: 760px; }
.container-md { max-width: 980px; }
.section { padding-block: clamp(48px, 6vw, 96px); }
.section-tight { padding-block: clamp(32px, 4vw, 56px); }
.section-soft { background: var(--c-bg-soft); }
.section-head { max-width: 680px; margin-bottom: clamp(24px, 3vw, 40px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head p { color: var(--c-muted); font-size: var(--fs-lg); margin-top: 10px; }
.section-head-row { display: flex; align-items: end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.eyebrow { display: inline-block; font-size: var(--fs-sm); font-weight: 700; color: var(--c-brand); letter-spacing: .04em; text-transform: uppercase; margin-bottom: 8px; }
.stack > * + * { margin-top: var(--stack, 16px); }
.cluster { display: flex; flex-wrap: wrap; gap: var(--gap, 12px); align-items: center; }
.grid { display: grid; gap: var(--gap, 20px); }
.grid-2, .grid-3, .grid-4 { display: grid; gap: var(--gap, 20px); grid-template-columns: 1fr; }
@media (min-width: 640px) {
    .grid-2, .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1000px) {
    .grid-3 { grid-template-columns: repeat(3, 1fr); }
    .grid-4 { grid-template-columns: repeat(4, 1fr); }
}
.text-muted { color: var(--c-muted); }
.text-sm { font-size: var(--fs-sm); }
.text-xs { font-size: var(--fs-xs); }
.text-center { text-align: center; }
.text-right { text-align: right; }
.nowrap { white-space: nowrap; }
.mt-0 { margin-top: 0 !important; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 40px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.w-full { width: 100%; }
.tabular { font-variant-numeric: tabular-nums; }

/* ===== Buttons ===== */
.btn {
    --btn-bg: var(--c-bg); --btn-fg: var(--c-ink); --btn-bd: var(--c-line-strong);
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 44px; padding: 10px 18px; border-radius: var(--r-sm);
    background: var(--btn-bg); color: var(--btn-fg); border: 1px solid var(--btn-bd);
    font-weight: 700; font-size: var(--fs-sm); line-height: 1.2; text-decoration: none; white-space: nowrap;
    transition: background .15s var(--ease), border-color .15s var(--ease), transform .15s var(--ease), box-shadow .15s var(--ease);
    -webkit-tap-highlight-color: transparent;
}
.btn:hover { background: var(--c-bg-soft); color: var(--btn-fg); }
.btn:active { transform: translateY(1px); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .55; pointer-events: none; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { --btn-bg: var(--c-brand); --btn-fg: #fff; --btn-bd: var(--c-brand); box-shadow: 0 1px 0 rgba(255,255,255,.15) inset, 0 1px 2px rgba(7,71,102,.3); }
.btn-primary:hover { background: var(--c-brand-600); border-color: var(--c-brand-600); color: #fff; }
.btn-dark { --btn-bg: var(--c-ink); --btn-fg: #fff; --btn-bd: var(--c-ink); }
.btn-dark:hover { background: #1c3047; color: #fff; }
.btn-ghost { --btn-bg: transparent; --btn-bd: transparent; }
.btn-ghost:hover { background: var(--c-bg-sunk); }
.btn-danger { --btn-bg: var(--c-bg); --btn-fg: var(--c-danger); --btn-bd: #F1B5AF; }
.btn-danger:hover { background: var(--c-danger-bg); color: var(--c-danger); }
.btn-danger-solid { --btn-bg: var(--c-danger); --btn-fg: #fff; --btn-bd: var(--c-danger); }
.btn-danger-solid:hover { background: #8f1c13; color: #fff; }
.btn-sm { min-height: 36px; padding: 6px 12px; font-size: var(--fs-xs); }
.btn-lg { min-height: 52px; padding: 14px 24px; font-size: var(--fs-base); border-radius: var(--r); }
.btn-block { width: 100%; }
.btn-icon { padding: 0; width: 44px; }
.link-btn { background: none; border: 0; padding: 0; color: var(--c-brand); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

/* ===== Header & navigation ===== */
.site-header {
    position: sticky; top: 0; z-index: 1000; height: var(--header-h);
    background: rgba(255, 255, 255, .92); backdrop-filter: saturate(1.6) blur(12px); -webkit-backdrop-filter: saturate(1.6) blur(12px);
    border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s;
}
.site-header.is-scrolled { border-color: var(--c-line); box-shadow: var(--shadow-sm); }
.nav { display: flex; align-items: center; height: 100%; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--c-ink); flex: none; }
.brand-mark { width: 34px; height: 34px; }
.brand-word { font-weight: 800; font-size: 1.3rem; letter-spacing: -.03em; }
.brand-word span { color: var(--c-brand); }
.brand:hover { color: var(--c-ink); }
.nav-panel { display: none; }
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; padding: 0; }
.nav-link {
    display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: var(--r-sm);
    font-weight: 600; font-size: var(--fs-sm); color: var(--c-ink-2); text-decoration: none;
}
.nav-link:hover, .nav-link[aria-current="page"] { color: var(--c-ink); background: var(--c-bg-sunk); }
.nav-actions { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.cart-link { position: relative; }
.cart-link svg { width: 22px; height: 22px; }
.cart-count {
    position: absolute; top: 2px; right: 0; min-width: 18px; height: 18px; padding: 0 5px; border-radius: var(--r-pill);
    background: var(--c-brand); color: #fff; font-size: 11px; font-weight: 800; line-height: 18px; text-align: center;
}
.nav-toggle {
    display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px;
    border: 1px solid var(--c-line); border-radius: var(--r-sm); background: var(--c-bg);
}
.nav-toggle svg { width: 22px; height: 22px; }
.nav-toggle .icon-close { display: none; }
.nav-open .nav-toggle .icon-close { display: block; }
.nav-open .nav-toggle .icon-menu { display: none; }

/* Mobile panel */
.nav-open .nav-panel {
    display: flex; flex-direction: column; gap: 4px; position: fixed; inset: var(--header-h) 0 0 0;
    padding: 16px var(--gutter) 32px; background: var(--c-bg); overflow-y: auto; z-index: 999;
    border-top: 1px solid var(--c-line); animation: panel-in .18s var(--ease);
}
.nav-open { overflow: hidden; }
.nav-open .nav-panel .nav-links { flex-direction: column; align-items: stretch; }
.nav-open .nav-panel .nav-link { font-size: var(--fs-lg); padding: 14px 12px; }
.nav-panel .nav-cta { margin-top: 12px; }
@keyframes panel-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* Account menu (details/summary, works without JS) */
.menu { position: relative; }
.menu > summary { list-style: none; }
.menu > summary::-webkit-details-marker { display: none; }
.avatar {
    display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
    background: var(--c-brand-100); color: var(--c-brand-700); font-weight: 800; font-size: var(--fs-sm);
}
.menu-trigger { display: inline-flex; align-items: center; gap: 8px; padding: 4px 8px 4px 4px; border-radius: var(--r-pill); border: 1px solid var(--c-line); background: var(--c-bg); cursor: pointer; }
.menu-trigger:hover { box-shadow: var(--shadow-sm); }
.menu-panel {
    position: absolute; right: 0; top: calc(100% + 8px); min-width: 230px; padding: 8px; z-index: 1100;
    background: var(--c-bg); border: 1px solid var(--c-line); border-radius: var(--r); box-shadow: var(--shadow-lg);
}
.menu-panel a, .menu-panel button {
    display: flex; width: 100%; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--r-sm);
    color: var(--c-ink); text-decoration: none; font-weight: 600; font-size: var(--fs-sm); background: none; border: 0; text-align: left;
}
.menu-panel a:hover, .menu-panel button:hover { background: var(--c-bg-soft); }
.menu-panel .menu-label { padding: 8px 12px 4px; font-size: var(--fs-xs); color: var(--c-muted); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.menu-panel hr { margin: 6px 0; }

@media (min-width: 960px) {
    .nav-toggle { display: none; }
    .nav-panel { display: flex; align-items: center; gap: 4px; margin-left: 24px; flex: 1; }
    .nav-panel .nav-cta { display: none; }
    .nav-actions { margin-left: auto; }
}
@media (max-width: 959.98px) {
    .nav-actions .hide-mobile { display: none; }
    .menu-panel { position: fixed; left: var(--gutter); right: var(--gutter); top: calc(var(--header-h) + 8px); }
}

/* ===== Footer ===== */
.site-footer { background: var(--c-navy); color: #C7D4E2; margin-top: auto; }
.site-footer a { color: #E6EEF6; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid { display: grid; gap: 32px; padding-block: 56px 32px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1.4fr repeat(3, 1fr); } }
.footer-brand p { margin-top: 14px; max-width: 320px; font-size: var(--fs-sm); color: #A9BBCE; }
.footer-col h2 { color: #fff; font-size: var(--fs-sm); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 14px; }
.footer-col ul { list-style: none; padding: 0; display: grid; gap: 10px; font-size: var(--fs-sm); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-block: 20px; display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; font-size: var(--fs-xs); color: #93A6BA; }
.footer-bottom nav { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-trust { display: flex; align-items: center; gap: 8px; font-size: var(--fs-xs); color: #A9BBCE; margin-top: 16px; }
.footer-trust svg { width: 16px; height: 16px; }

/* ===== Forms ===== */
.field { display: grid; gap: 6px; }
.field + .field { margin-top: 16px; }
.label { font-weight: 700; font-size: var(--fs-sm); color: var(--c-ink); }
.label .opt { font-weight: 500; color: var(--c-muted); }
.input {
    width: 100%; min-height: 46px; padding: 10px 14px; border: 1px solid var(--c-line-strong); border-radius: var(--r-sm);
    background: var(--c-bg); font-size: 16px; /* 16px prevents iOS zoom */ transition: border-color .15s, box-shadow .15s;
}
.input::placeholder { color: #8A99A8; }
.input:hover { border-color: #A9B6C4; }
.input:focus { outline: none; border-color: var(--c-brand); box-shadow: var(--focus); }
.input[aria-invalid="true"], .input.input-validation-error { border-color: var(--c-danger); }
textarea.input { min-height: 120px; resize: vertical; }
select.input { appearance: none; padding-right: 40px; background: var(--c-bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%235B6B7C' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 14px center; }
.input-sm { min-height: 38px; padding: 6px 10px; font-size: var(--fs-sm); }
.hint { font-size: var(--fs-xs); color: var(--c-muted); }
.field-validation-error, .field-error { font-size: var(--fs-xs); color: var(--c-danger); font-weight: 600; }
.validation-summary-errors, .alert { border-radius: var(--r); padding: 14px 16px; font-size: var(--fs-sm); }
.validation-summary-errors { background: var(--c-danger-bg); color: var(--c-danger); border: 1px solid #F6C9C4; margin-bottom: 16px; }
.validation-summary-errors ul { margin: 0; padding-left: 18px; }
.validation-summary-valid { display: none; }
.form-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
.form-grid .field + .field { margin-top: 0; }
@media (min-width: 640px) {
    .form-grid-2 { grid-template-columns: repeat(2, 1fr); }
    .form-grid-3 { grid-template-columns: repeat(3, 1fr); }
    .span-2 { grid-column: span 2; }
    .span-all { grid-column: 1 / -1; }
}
.check { display: flex; align-items: flex-start; gap: 10px; font-size: var(--fs-sm); font-weight: 600; cursor: pointer; }
.check input { width: 20px; height: 20px; margin-top: 1px; accent-color: var(--c-brand); flex: none; }
.check-card { padding: 12px 14px; border: 1px solid var(--c-line-strong); border-radius: var(--r-sm); align-items: center; }
.check-card:has(input:checked) { border-color: var(--c-brand); background: var(--c-brand-50); }
.form-section { border: 1px solid var(--c-line); border-radius: var(--r-lg); padding: clamp(18px, 3vw, 28px); background: var(--c-bg); }
.form-section + .form-section { margin-top: 20px; }
.form-section > legend, .form-section-title { font-size: var(--fs-lg); font-weight: 800; padding: 0 6px; margin-left: -6px; }
.form-section-desc { color: var(--c-muted); font-size: var(--fs-sm); margin: 4px 0 18px; }
.input-group { position: relative; }
.input-group .prefix { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--c-muted); font-weight: 600; pointer-events: none; }
.input-group .input { padding-left: 30px; }

/* ===== Alerts, badges, chips ===== */
.alert { border: 1px solid transparent; display: flex; gap: 10px; align-items: flex-start; }
.alert svg { width: 20px; height: 20px; flex: none; margin-top: 1px; }
.alert-success { background: var(--c-success-bg); color: var(--c-success); border-color: #BFE5D2; }
.alert-error { background: var(--c-danger-bg); color: var(--c-danger); border-color: #F6C9C4; }
.alert-warning { background: var(--c-warning-bg); color: var(--c-warning); border-color: #F6DDB0; }
.alert-info { background: var(--c-info-bg); color: var(--c-brand-700); border-color: var(--c-brand-100); }
.alert + * { margin-top: 16px; }
.badge {
    display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: var(--r-pill);
    font-size: var(--fs-xs); font-weight: 700; line-height: 1.5; background: var(--c-bg-sunk); color: var(--c-ink-2); white-space: nowrap;
}
.badge-success { background: var(--c-success-bg); color: var(--c-success); }
.badge-warning { background: var(--c-warning-bg); color: var(--c-warning); }
.badge-danger { background: var(--c-danger-bg); color: var(--c-danger); }
.badge-info { background: var(--c-brand-50); color: var(--c-brand-700); }
.badge-dark { background: var(--c-ink); color: #fff; }
.badge-sun { background: #FFF0E4; color: var(--c-sun-ink); }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: var(--r-pill); background: var(--c-bg-soft); border: 1px solid var(--c-line); font-size: var(--fs-xs); font-weight: 600; color: var(--c-ink-2); }
.chip svg { width: 14px; height: 14px; }
.rating { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; font-size: var(--fs-sm); }
.rating svg { width: 15px; height: 15px; color: var(--c-star); }
.rating .count { color: var(--c-muted); font-weight: 500; }
.stars { color: var(--c-star); letter-spacing: 1px; }

/* ===== Cards ===== */
.card { background: var(--c-bg); border: 1px solid var(--c-line); border-radius: var(--r-lg); }
.card-pad { padding: clamp(18px, 3vw, 28px); }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.card-head h2, .card-head h3 { font-size: var(--fs-lg); }

/* Listing card */
.listing-grid { display: grid; gap: 24px 20px; grid-template-columns: 1fr; }
@media (min-width: 600px) { .listing-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .listing-grid-3 { grid-template-columns: repeat(3, 1fr); } }
.listing-card { position: relative; display: flex; flex-direction: column; }
.listing-card-media {
    position: relative; display: block; aspect-ratio: 4 / 3; border-radius: var(--r-lg); overflow: hidden; background: var(--c-bg-sunk);
}
.listing-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.listing-card:hover .listing-card-media img { transform: scale(1.04); }
.listing-card-badges { position: absolute; left: 12px; top: 12px; display: flex; gap: 6px; }
.listing-card-badges .badge { background: rgba(255,255,255,.94); color: var(--c-ink); box-shadow: var(--shadow-sm); }
.listing-card-badges .badge-sun { background: var(--c-sun); color: #4A1D04; }
.fav-btn {
    position: absolute; right: 10px; top: 10px; z-index: 2; display: grid; place-items: center; width: 40px; height: 40px;
    border-radius: 50%; border: 0; background: rgba(255,255,255,.94); box-shadow: var(--shadow-sm); color: var(--c-ink);
}
.fav-btn svg { width: 20px; height: 20px; }
.fav-btn[aria-pressed="true"] { color: #E0324B; }
.fav-btn[aria-pressed="true"] svg { fill: currentColor; }
.fav-btn:hover { transform: scale(1.06); }
.listing-card-body { padding: 12px 2px 0; display: grid; gap: 4px; }
.listing-card-top { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.listing-card h3 { font-size: var(--fs-base); font-weight: 700; letter-spacing: -.01em; }
.listing-card h3 a { color: var(--c-ink); text-decoration: none; }
.listing-card h3 a::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: var(--r-lg); }
.listing-card .meta { color: var(--c-muted); font-size: var(--fs-sm); }
.listing-card .price { font-size: var(--fs-sm); color: var(--c-ink); margin-top: 2px; }
.listing-card .price strong { font-size: var(--fs-base); }
.listing-card-amenities { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }

/* ===== Hero ===== */
.hero {
    position: relative; overflow: hidden; color: #fff;
    background:
        radial-gradient(1200px 500px at 85% -10%, rgba(127, 211, 236, .35), transparent 60%),
        radial-gradient(800px 400px at 10% 110%, rgba(255, 178, 122, .22), transparent 60%),
        linear-gradient(160deg, #0A2540 0%, #0B4F7A 55%, #0B6E99 100%);
    padding-block: clamp(48px, 8vw, 112px) clamp(56px, 8vw, 120px);
}
.hero-waves { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: auto; color: var(--c-bg); pointer-events: none; }
.hero-inner { position: relative; z-index: 1; display: grid; gap: 40px; align-items: center; }
@media (min-width: 1000px) { .hero-inner { grid-template-columns: 1.1fr .9fr; } }
.hero h1 { color: #fff; font-size: var(--fs-hero); letter-spacing: -.035em; }
.hero h1 em { font-style: normal; color: var(--c-aqua); }
.hero-sub { margin-top: 16px; font-size: clamp(1.05rem, .95rem + .5vw, 1.25rem); color: #D5E6F2; max-width: 560px; }
.hero-proof { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-top: 28px; font-size: var(--fs-sm); color: #CFE2EF; }
.hero-proof span { display: inline-flex; align-items: center; gap: 8px; }
.hero-proof svg { width: 18px; height: 18px; color: var(--c-aqua); }
.hero-art { display: none; }
@media (min-width: 1000px) { .hero-art { display: block; border-radius: 28px; overflow: hidden; box-shadow: 0 30px 80px rgba(0,0,0,.35); transform: rotate(1.5deg); border: 6px solid rgba(255,255,255,.12); } }

/* Search bar (hero + search page) */
.searchbar {
    margin-top: 28px; display: grid; gap: 8px; padding: 8px; border-radius: var(--r-lg); background: #fff; color: var(--c-ink);
    box-shadow: 0 20px 50px rgba(5, 20, 40, .35); grid-template-columns: 1fr;
}
.searchbar .sb-field { display: grid; gap: 2px; padding: 8px 12px; border-radius: var(--r); }
.searchbar .sb-field:focus-within { background: var(--c-bg-soft); }
.searchbar label { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--c-ink-2); }
.searchbar input { border: 0; padding: 2px 0; background: transparent; font-size: 16px; min-width: 0; width: 100%; outline: none; }
.searchbar .btn { min-height: 52px; border-radius: var(--r); }
.searchbar-dates { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.searchbar-wrap { container: sb / inline-size; }
@container sb (min-width: 520px) {
    .searchbar { grid-template-columns: 1fr 1fr 1fr auto; align-items: end; }
    .searchbar > .sb-field:first-child { grid-column: 1 / -1; }
    .searchbar-dates { display: contents; }
}
@container sb (min-width: 880px) {
    .searchbar { grid-template-columns: 1.5fr 1fr 1fr .7fr auto; align-items: center; border-radius: var(--r-pill); padding: 8px 8px 8px 12px; gap: 0; }
    .searchbar > .sb-field:first-child { grid-column: auto; }
    .searchbar .sb-field { border-radius: var(--r-pill); padding: 8px 18px; }
    .searchbar .sb-field + .sb-field, .searchbar-dates .sb-field { border-left: 1px solid var(--c-line); border-radius: 0; }
    .searchbar .btn { border-radius: var(--r-pill); padding-inline: 26px; }
}

/* ===== Home sections ===== */
.stats-strip { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; text-align: center; }
@media (min-width: 760px) { .stats-strip { grid-template-columns: repeat(4, 1fr); } }
.stat-big { font-size: var(--fs-2xl); font-weight: 800; letter-spacing: -.03em; color: var(--c-brand-700); }
.stat-cap { font-size: var(--fs-sm); color: var(--c-muted); }
.feature { display: grid; gap: 10px; padding: 24px; border-radius: var(--r-lg); background: var(--c-bg); border: 1px solid var(--c-line); }
.feature-icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; background: var(--c-brand-50); color: var(--c-brand); }
.feature-icon svg { width: 24px; height: 24px; }
.feature p { color: var(--c-muted); font-size: var(--fs-sm); }
.steps { counter-reset: step; display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 800px) { .steps { grid-template-columns: repeat(3, 1fr); } .steps-4 { grid-template-columns: repeat(4, 1fr); } }
.step { position: relative; padding: 24px; border-radius: var(--r-lg); background: var(--c-bg); border: 1px solid var(--c-line); }
.step::before {
    counter-increment: step; content: counter(step); display: grid; place-items: center; width: 36px; height: 36px; margin-bottom: 14px;
    border-radius: 50%; background: var(--c-brand); color: #fff; font-weight: 800;
}
.step p { color: var(--c-muted); font-size: var(--fs-sm); margin-top: 6px; }
.water-tiles { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 760px) { .water-tiles { grid-template-columns: repeat(5, 1fr); } }
.water-tile {
    position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 120px; padding: 16px; border-radius: var(--r-lg);
    color: #fff; text-decoration: none; overflow: hidden; background: linear-gradient(160deg, var(--wt-a, #0B6E99), var(--wt-b, #0A2540));
    transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.water-tile:hover { transform: translateY(-2px); box-shadow: var(--shadow); color: #fff; }
.water-tile strong { font-size: var(--fs-lg); }
.water-tile span { font-size: var(--fs-xs); opacity: .85; }
.water-tile svg { position: absolute; right: -10px; top: -10px; width: 90px; height: 90px; opacity: .18; }
.location-list { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); list-style: none; padding: 0; }
.location-link { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 14px 16px; border: 1px solid var(--c-line); border-radius: var(--r); text-decoration: none; color: var(--c-ink); background: var(--c-bg); }
.location-link:hover { border-color: var(--c-brand); color: var(--c-ink); box-shadow: var(--shadow-sm); }
.location-link small { color: var(--c-muted); }
.quote-card { padding: 24px; border-radius: var(--r-lg); background: var(--c-bg); border: 1px solid var(--c-line); display: grid; gap: 14px; }
.quote-card blockquote { font-size: var(--fs-base); color: var(--c-ink-2); }
.quote-card figcaption { font-size: var(--fs-sm); font-weight: 700; }
.quote-card figcaption span { display: block; font-weight: 500; color: var(--c-muted); }
.cta-band { border-radius: 28px; padding: clamp(28px, 5vw, 56px); color: #fff; background: linear-gradient(130deg, #0A2540, #0B6E99); display: grid; gap: 24px; align-items: center; position: relative; overflow: hidden; }
@media (min-width: 860px) { .cta-band { grid-template-columns: 1.4fr auto; } }
.cta-band h2 { color: #fff; }
.cta-band p { color: #D5E6F2; margin-top: 10px; max-width: 560px; }
.cta-band .btn-primary { --btn-bg: #fff; --btn-fg: var(--c-navy); --btn-bd: #fff; }
.cta-band .btn-primary:hover { background: #EAF5FA; color: var(--c-navy); }

/* ===== Page header / breadcrumbs ===== */
.page-head { padding-block: clamp(28px, 4vw, 48px) 8px; }
.page-head p { color: var(--c-muted); margin-top: 8px; font-size: var(--fs-lg); max-width: 720px; }
.page-hero { background: linear-gradient(180deg, var(--c-brand-50), var(--c-bg)); padding-block: clamp(36px, 6vw, 72px) clamp(24px, 4vw, 40px); }
.page-hero p { color: var(--c-ink-2); font-size: var(--fs-lg); margin-top: 12px; max-width: 680px; }
.breadcrumbs { font-size: var(--fs-sm); color: var(--c-muted); margin-bottom: 12px; }
.breadcrumbs ol { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.breadcrumbs li + li::before { content: "/"; margin-right: 6px; color: var(--c-line-strong); }
.breadcrumbs a { color: var(--c-muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--c-brand); text-decoration: underline; }
.answer-box { border-left: 4px solid var(--c-brand); background: var(--c-brand-50); padding: 16px 18px; border-radius: 0 var(--r) var(--r) 0; color: var(--c-ink-2); }
.answer-box strong { color: var(--c-ink); }

/* ===== Tabs (sub navigation) ===== */
.tabs { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--c-line); margin-bottom: 24px; }
.tabs::-webkit-scrollbar { display: none; }
.tab { padding: 12px 14px; font-weight: 700; font-size: var(--fs-sm); color: var(--c-muted); text-decoration: none; border-bottom: 2px solid transparent; white-space: nowrap; margin-bottom: -1px; }
.tab:hover { color: var(--c-ink); }
.tab[aria-current="page"] { color: var(--c-brand); border-color: var(--c-brand); }

/* ===== Search page ===== */
.search-top { position: sticky; top: var(--header-h); z-index: 500; background: var(--c-bg); border-bottom: 1px solid var(--c-line); padding-block: 12px; }
.search-top-row { display: flex; gap: 8px; align-items: center; }
.search-q { flex: 1; min-width: 0; position: relative; }
.search-q svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--c-muted); }
.search-q .input { padding-left: 42px; border-radius: var(--r-pill); }
.filters-toggle .count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; border-radius: 50%; background: var(--c-brand); color: #fff; font-size: 11px; }
.filters { margin-top: 12px; padding: 16px; border: 1px solid var(--c-line); border-radius: var(--r-lg); background: var(--c-bg); }
.filters-grid { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; }
.filters-grid .span-all { grid-column: 1 / -1; }
@media (min-width: 900px) { .filters-grid { grid-template-columns: repeat(6, 1fr); } .filters-grid .span-2 { grid-column: span 2; } }
.amenity-checks { display: flex; flex-wrap: wrap; gap: 8px; }
.amenity-checks .check { padding: 8px 12px; border: 1px solid var(--c-line-strong); border-radius: var(--r-pill); font-size: var(--fs-xs); }
.amenity-checks .check input { width: 16px; height: 16px; }
.amenity-checks .check:has(input:checked) { border-color: var(--c-brand); background: var(--c-brand-50); color: var(--c-brand-700); }
.results-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding-block: 16px; }
.results-bar h1 { font-size: var(--fs-lg); letter-spacing: -.01em; }
.sort-select { width: auto; min-height: 40px; font-size: var(--fs-sm); }
.search-layout { display: grid; gap: 24px; grid-template-columns: 1fr; padding-bottom: 48px; }
.search-map-wrap { display: none; }
.show-map .search-map-wrap { display: block; }
.show-map .search-results { display: none; }
.search-map { height: calc(100vh - var(--header-h) - 160px); min-height: 420px; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--c-line); }
.map-toggle { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 600; box-shadow: var(--shadow-lg); border-radius: var(--r-pill); }
@media (min-width: 1100px) {
    .search-layout { grid-template-columns: minmax(0, 1fr) minmax(360px, 42%); }
    .search-map-wrap, .show-map .search-map-wrap { display: block; }
    .show-map .search-results { display: block; }
    .search-map { position: sticky; top: calc(var(--header-h) + 90px); height: calc(100vh - var(--header-h) - 110px); }
    .map-toggle { display: none; }
}
.map-popup { font-family: var(--font); min-width: 180px; }
.map-popup strong { display: block; font-size: var(--fs-sm); margin-bottom: 2px; }
.map-popup a { font-weight: 700; }
.price-marker { background: #fff; border: 1px solid var(--c-line-strong); border-radius: var(--r-pill); padding: 3px 9px; font: 800 12px/1.4 var(--font); color: var(--c-ink); box-shadow: var(--shadow); white-space: nowrap; }
.price-marker:hover, .price-marker.is-active { background: var(--c-ink); color: #fff; }
.pagination { display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; margin-top: 32px; }
.pagination a, .pagination span { min-width: 42px; height: 42px; display: inline-grid; place-items: center; padding: 0 12px; border-radius: var(--r-sm); border: 1px solid var(--c-line); text-decoration: none; color: var(--c-ink); font-weight: 700; font-size: var(--fs-sm); }
.pagination a:hover { border-color: var(--c-brand); }
.pagination [aria-current="page"] { background: var(--c-ink); color: #fff; border-color: var(--c-ink); }
.empty { text-align: center; padding: 48px 16px; border: 1px dashed var(--c-line-strong); border-radius: var(--r-lg); background: var(--c-bg-soft); }
.empty img, .empty svg { width: 160px; margin: 0 auto 16px; }
.empty h2, .empty h3 { font-size: var(--fs-xl); }
.empty p { color: var(--c-muted); margin: 8px auto 20px; max-width: 420px; }

/* ===== Listing detail ===== */
.detail-head { display: grid; gap: 12px; padding-top: 20px; }
.detail-head h1 { font-size: var(--fs-2xl); }
@media (min-width: 900px) { .detail-head h1 { font-size: var(--fs-3xl); } }
.detail-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; font-size: var(--fs-sm); color: var(--c-ink-2); }
.detail-actions { display: flex; gap: 8px; }
.detail-actions .fav-btn { position: static; width: auto; height: 36px; padding: 0 12px; border-radius: var(--r-sm); border: 1px solid var(--c-line-strong); box-shadow: none; display: inline-flex; gap: 6px; font-weight: 700; font-size: var(--fs-xs); }
.detail-actions .fav-btn svg { width: 18px; height: 18px; }
.detail-actions .fav-btn:hover { transform: none; background: var(--c-bg-soft); }
.gallery { margin-top: 20px; display: grid; gap: 8px; border-radius: var(--r-lg); overflow: hidden; }
.gallery a { display: block; position: relative; background: var(--c-bg-sunk); overflow: hidden; min-height: 0; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: filter .2s; }
.gallery a:hover img { filter: brightness(.92); }
@media (max-width: 759.98px) {
    .gallery { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; border-radius: 0; margin-inline: calc(var(--gutter) * -1); scrollbar-width: none; }
    .gallery::-webkit-scrollbar { display: none; }
    .gallery a { flex: 0 0 88%; aspect-ratio: 4 / 3; scroll-snap-align: center; }
    .gallery a:only-child { flex-basis: 100%; }
}
@media (min-width: 760px) {
    .gallery { grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 220px 220px; }
    .gallery a:first-child { grid-row: 1 / 3; }
    .gallery.count-1 { grid-template-columns: 1fr; grid-template-rows: 420px; }
    .gallery.count-1 a:first-child { grid-row: auto; }
    .gallery.count-2 { grid-template-columns: 2fr 1fr; }
    .gallery.count-2 a:last-child { grid-row: 1 / 3; }
    .gallery.count-3 { grid-template-columns: 2fr 1fr; }
}
.gallery-more { position: absolute; right: 12px; bottom: 12px; }
.detail-layout { display: grid; gap: 40px; margin-top: 32px; padding-bottom: 64px; grid-template-columns: 1fr; }
@media (min-width: 1000px) { .detail-layout { grid-template-columns: minmax(0, 1fr) 380px; gap: 56px; } }
.detail-section { padding-block: 28px; border-top: 1px solid var(--c-line); }
.detail-section:first-child { border-top: 0; padding-top: 0; }
.detail-section > h2 { font-size: var(--fs-xl); margin-bottom: 16px; }
.host-row { display: flex; align-items: center; gap: 14px; }
.host-row .avatar { width: 48px; height: 48px; font-size: var(--fs-lg); }
.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 640px) { .facts { grid-template-columns: repeat(4, 1fr); } }
.fact { padding: 14px; border-radius: var(--r); background: var(--c-bg-soft); }
.fact dt { font-size: var(--fs-xs); color: var(--c-muted); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.fact dd { margin: 4px 0 0; font-weight: 800; }
.amenity-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; list-style: none; padding: 0; }
.amenity-list li { display: flex; align-items: center; gap: 12px; font-weight: 600; }
.amenity-list svg { width: 22px; height: 22px; color: var(--c-brand); flex: none; }
.amenity-list .no { color: var(--c-muted); text-decoration: line-through; font-weight: 500; }
.amenity-list .no svg { color: var(--c-line-strong); }
.windows { display: grid; gap: 8px; list-style: none; padding: 0; }
.windows li { display: flex; justify-content: space-between; gap: 12px; padding: 12px 14px; border: 1px solid var(--c-line); border-radius: var(--r); font-size: var(--fs-sm); }
.windows .booked { background: var(--c-bg-soft); color: var(--c-muted); }
.detail-map { height: 320px; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--c-line); margin-top: 14px; z-index: 0; }
.review-summary { display: grid; gap: 20px; margin-bottom: 20px; }
@media (min-width: 640px) { .review-summary { grid-template-columns: 180px 1fr; align-items: center; } }
.review-score { font-size: 3rem; font-weight: 800; letter-spacing: -.04em; line-height: 1; }
.review-bars { display: grid; gap: 6px; }
.review-bar { display: grid; grid-template-columns: 28px 1fr 28px; gap: 10px; align-items: center; font-size: var(--fs-xs); color: var(--c-muted); }
.review-bar .track { height: 8px; border-radius: var(--r-pill); background: var(--c-bg-sunk); overflow: hidden; }
.review-bar .fill { height: 100%; background: var(--c-star); border-radius: inherit; }
.review { padding-block: 18px; border-top: 1px solid var(--c-line); }
.review-head { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.review-head .avatar { width: 40px; height: 40px; }
.review-head strong { display: block; font-size: var(--fs-sm); }
.review-head time { font-size: var(--fs-xs); color: var(--c-muted); }
.review p { color: var(--c-ink-2); }

/* Booking widget */
.booking-widget { position: sticky; top: calc(var(--header-h) + 24px); padding: 24px; border-radius: var(--r-lg); border: 1px solid var(--c-line); box-shadow: var(--shadow-lg); background: var(--c-bg); }
.booking-widget .price-line { display: flex; align-items: baseline; gap: 6px; }
.booking-widget .price-line strong { font-size: var(--fs-2xl); letter-spacing: -.03em; }
.date-pair { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--c-line-strong); border-radius: var(--r); overflow: hidden; margin-top: 16px; }
.date-pair label { display: grid; gap: 2px; padding: 8px 12px; cursor: pointer; }
.date-pair label + label { border-left: 1px solid var(--c-line-strong); }
.date-pair span { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.date-pair input { border: 0; padding: 0; font-size: 15px; background: transparent; outline: none; min-width: 0; width: 100%; }
.date-pair label:focus-within { background: var(--c-bg-soft); }
.quote { display: grid; gap: 8px; margin-top: 16px; font-size: var(--fs-sm); }
.quote-row { display: flex; justify-content: space-between; gap: 12px; }
.quote-total { border-top: 1px solid var(--c-line); padding-top: 10px; font-weight: 800; font-size: var(--fs-base); }
.quote-note { font-size: var(--fs-xs); color: var(--c-muted); text-align: center; }
.booking-actions { display: grid; gap: 8px; margin-top: 16px; }
.mobile-book-bar { display: none; }
@media (max-width: 999.98px) {
    .booking-widget { position: static; box-shadow: var(--shadow); }
    .mobile-book-bar {
        display: flex; align-items: center; justify-content: space-between; gap: 12px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 800;
        padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom)); background: var(--c-bg); border-top: 1px solid var(--c-line); box-shadow: 0 -6px 20px rgba(11,27,43,.08);
    }
    .has-book-bar .site-footer { padding-bottom: 76px; }
}

/* ===== Cart & checkout ===== */
.commerce-layout { display: grid; gap: 28px; grid-template-columns: 1fr; padding-bottom: 64px; }
@media (min-width: 960px) { .commerce-layout { grid-template-columns: minmax(0, 1fr) 380px; align-items: start; } }
.summary-card { position: sticky; top: calc(var(--header-h) + 20px); }
.cart-line { display: grid; grid-template-columns: 96px 1fr; gap: 16px; padding: 16px; border: 1px solid var(--c-line); border-radius: var(--r-lg); background: var(--c-bg); }
.cart-line + .cart-line { margin-top: 12px; }
.cart-line img { width: 96px; height: 80px; object-fit: cover; border-radius: var(--r); }
@media (min-width: 640px) { .cart-line { grid-template-columns: 140px 1fr auto; } .cart-line img { width: 140px; height: 105px; } }
.cart-line h3 { font-size: var(--fs-base); }
.cart-line h3 a { color: var(--c-ink); text-decoration: none; }
.cart-line-side { display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; gap: 8px; grid-column: 1 / -1; flex-direction: row; align-items: center; }
@media (min-width: 640px) { .cart-line-side { grid-column: auto; flex-direction: column; align-items: flex-end; } }
.cart-line.is-invalid { border-color: #F6C9C4; background: #FFFBFA; }
.secure-note { display: flex; gap: 10px; align-items: flex-start; font-size: var(--fs-xs); color: var(--c-muted); margin-top: 14px; }
.secure-note svg { width: 18px; height: 18px; color: var(--c-success); flex: none; }
.pay-options { display: grid; gap: 10px; }
.pay-option { display: flex; gap: 12px; align-items: center; padding: 14px 16px; border: 1px solid var(--c-line-strong); border-radius: var(--r); cursor: pointer; font-weight: 700; }
.pay-option:has(input:checked) { border-color: var(--c-brand); background: var(--c-brand-50); }
.pay-option input { accent-color: var(--c-brand); width: 18px; height: 18px; }
.card-fields { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; }
.card-fields .full { grid-column: 1 / -1; }
.card-brands { display: flex; gap: 6px; }
.card-brands span { font-size: 10px; font-weight: 800; padding: 3px 6px; border-radius: 4px; border: 1px solid var(--c-line); color: var(--c-ink-2); }
.test-cards { font-size: var(--fs-xs); background: var(--c-warning-bg); color: var(--c-warning); border-radius: var(--r); padding: 10px 12px; }
.order-success { text-align: center; padding-block: 40px 24px; }
.order-success .check-circle { width: 72px; height: 72px; margin: 0 auto 16px; border-radius: 50%; display: grid; place-items: center; background: var(--c-success-bg); color: var(--c-success); }
.order-success .check-circle svg { width: 36px; height: 36px; }
.receipt { display: grid; gap: 10px; font-size: var(--fs-sm); }
.receipt-row { display: flex; justify-content: space-between; gap: 16px; }
.receipt-row.total { font-weight: 800; font-size: var(--fs-base); border-top: 1px solid var(--c-line); padding-top: 10px; }
.spinner { width: 18px; height: 18px; border: 2px solid rgba(255,255,255,.5); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== Account / dashboards ===== */
.booking-item { display: grid; grid-template-columns: 88px 1fr; gap: 16px; padding: 16px; border: 1px solid var(--c-line); border-radius: var(--r-lg); }
.booking-item + .booking-item { margin-top: 12px; }
.booking-item img { width: 88px; height: 88px; object-fit: cover; border-radius: var(--r); }
@media (min-width: 720px) { .booking-item { grid-template-columns: 160px 1fr; } .booking-item img { width: 160px; height: 120px; } }
.booking-item h3 { font-size: var(--fs-base); }
.booking-item h3 a { color: var(--c-ink); text-decoration: none; }
.booking-item-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: var(--fs-sm); color: var(--c-ink-2); margin-top: 4px; }
.booking-item-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; align-items: center; }
.inline-form { display: grid; gap: 10px; margin-top: 12px; padding: 14px; border-radius: var(--r); background: var(--c-bg-soft); }
.star-input { display: inline-flex; flex-direction: row-reverse; gap: 2px; }
.star-input input { position: absolute; opacity: 0; pointer-events: none; }
.star-input label { font-size: 28px; line-height: 1; color: var(--c-line-strong); cursor: pointer; padding: 2px; }
.star-input label:hover, .star-input label:hover ~ label, .star-input input:checked ~ label { color: var(--c-star); }
.star-input input:focus-visible + label { box-shadow: var(--focus); border-radius: 4px; }
.kpis { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .kpis { grid-template-columns: repeat(4, 1fr); } }
.kpi { padding: 18px; border: 1px solid var(--c-line); border-radius: var(--r-lg); background: var(--c-bg); }
.kpi-label { font-size: var(--fs-xs); color: var(--c-muted); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.kpi-value { font-size: var(--fs-2xl); font-weight: 800; letter-spacing: -.03em; margin-top: 4px; font-variant-numeric: tabular-nums; }
.kpi-sub { font-size: var(--fs-xs); color: var(--c-muted); margin-top: 2px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--c-line); border-radius: var(--r-lg); background: var(--c-bg); }
.table { font-size: var(--fs-sm); }
.table th { text-align: left; font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .05em; color: var(--c-muted); font-weight: 700; padding: 12px 14px; background: var(--c-bg-soft); border-bottom: 1px solid var(--c-line); white-space: nowrap; }
.table td { padding: 12px 14px; border-bottom: 1px solid var(--c-line); vertical-align: middle; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: #FAFCFD; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.table tfoot td { font-weight: 800; background: var(--c-bg-soft); border-top: 1px solid var(--c-line); }
.table a { font-weight: 600; }
.thumb { width: 56px; height: 42px; object-fit: cover; border-radius: 6px; }
@media (max-width: 719.98px) {
    .table-stack thead { display: none; }
    .table-stack tr { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 12px; padding: 14px; border-bottom: 1px solid var(--c-line); }
    .table-stack td { padding: 0; border: 0; }
    .table-stack td[data-label]::before { content: attr(data-label); display: block; font-size: 11px; font-weight: 700; color: var(--c-muted); text-transform: uppercase; letter-spacing: .04em; }
    .table-stack td.cell-primary { grid-column: 1 / -1; font-weight: 700; }
    .table-stack .num { text-align: left; }
}
.photo-grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
.photo-tile { position: relative; border-radius: var(--r); overflow: hidden; aspect-ratio: 4 / 3; background: var(--c-bg-sunk); }
.photo-tile img { width: 100%; height: 100%; object-fit: cover; }
.photo-tile form { position: absolute; right: 6px; top: 6px; }
.photo-tile .btn { background: rgba(255,255,255,.95); }
.photo-tile .primary-tag { position: absolute; left: 6px; bottom: 6px; }
.dropzone { display: grid; place-items: center; gap: 6px; padding: 28px 16px; border: 2px dashed var(--c-line-strong); border-radius: var(--r-lg); text-align: center; background: var(--c-bg-soft); cursor: pointer; }
.dropzone:hover, .dropzone.is-over { border-color: var(--c-brand); background: var(--c-brand-50); }
.dropzone input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.dropzone svg { width: 32px; height: 32px; color: var(--c-brand); }
.form-map { height: 300px; border-radius: var(--r); overflow: hidden; border: 1px solid var(--c-line); margin-top: 12px; z-index: 0; }
.sticky-actions { position: sticky; bottom: 0; z-index: 50; margin-top: 24px; padding: 14px 0 calc(14px + env(safe-area-inset-bottom)); background: linear-gradient(180deg, rgba(255,255,255,0), #fff 30%); display: flex; gap: 10px; justify-content: flex-end; }

/* ===== Auth pages ===== */
.auth-wrap { display: grid; place-items: center; padding: clamp(32px, 6vw, 72px) var(--gutter); background: linear-gradient(180deg, var(--c-brand-50), var(--c-bg) 60%); flex: 1; }
.auth-card { width: 100%; max-width: 460px; padding: clamp(24px, 4vw, 36px); background: var(--c-bg); border: 1px solid var(--c-line); border-radius: var(--r-lg); box-shadow: var(--shadow); }
.auth-card h1 { font-size: var(--fs-2xl); }
.auth-card .sub { color: var(--c-muted); margin: 6px 0 24px; }
.auth-foot { text-align: center; margin-top: 20px; font-size: var(--fs-sm); color: var(--c-muted); }
.pw-wrap { position: relative; }
.pw-wrap .input { padding-right: 76px; }
.pw-toggle { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); background: none; border: 0; font-size: var(--fs-xs); font-weight: 800; color: var(--c-brand); padding: 8px 10px; }
.role-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.role-pick label { display: grid; gap: 4px; padding: 14px; border: 1px solid var(--c-line-strong); border-radius: var(--r); cursor: pointer; font-size: var(--fs-sm); }
.role-pick label strong { font-size: var(--fs-sm); }
.role-pick label span { color: var(--c-muted); font-size: var(--fs-xs); }
.role-pick input { position: absolute; opacity: 0; }
.role-pick label:has(input:checked) { border-color: var(--c-brand); background: var(--c-brand-50); box-shadow: inset 0 0 0 1px var(--c-brand); }
.role-pick label:has(input:focus-visible) { box-shadow: var(--focus); }

/* ===== FAQ / prose ===== */
.faq { display: grid; gap: 10px; }
.faq details { border: 1px solid var(--c-line); border-radius: var(--r); background: var(--c-bg); }
.faq summary { list-style: none; cursor: pointer; padding: 16px 48px 16px 18px; font-weight: 700; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 18px; top: 50%; width: 10px; height: 10px; border-right: 2px solid var(--c-muted); border-bottom: 2px solid var(--c-muted); transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details > div { padding: 0 18px 18px; color: var(--c-ink-2); }
.faq details > div p + p { margin-top: 10px; }
.prose { max-width: 720px; color: var(--c-ink-2); }
.prose h2 { font-size: var(--fs-xl); margin: 36px 0 12px; color: var(--c-ink); }
.prose h3 { margin: 24px 0 8px; color: var(--c-ink); }
.prose p, .prose ul, .prose ol { margin-bottom: 14px; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li + li { margin-top: 6px; }
.split { display: grid; gap: 32px; align-items: center; grid-template-columns: 1fr; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: 56px; } .split.reverse > :first-child { order: 2; } }
.split-art { border-radius: var(--r-lg); overflow: hidden; background: var(--c-brand-50); }

/* ===== Leaflet overrides ===== */
.leaflet-container { font-family: var(--font); }
.leaflet-popup-content-wrapper { border-radius: var(--r); box-shadow: var(--shadow-lg); }
.leaflet-div-icon.price-icon { background: none; border: 0; }

/* ===== Toast ===== */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0; z-index: 3000; padding: 12px 18px; border-radius: var(--r); background: var(--c-ink); color: #fff; font-weight: 600; font-size: var(--fs-sm); box-shadow: var(--shadow-lg); transition: all .25s var(--ease); pointer-events: none; }
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* ===== Error pages ===== */
.error-page { text-align: center; padding-block: clamp(56px, 10vw, 120px); }
.error-code { font-size: clamp(4rem, 12vw, 8rem); font-weight: 800; letter-spacing: -.06em; line-height: 1; background: linear-gradient(160deg, var(--c-brand), var(--c-navy)); -webkit-background-clip: text; background-clip: text; color: transparent; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

@media print {
    .site-header, .site-footer, .mobile-book-bar, .btn, .tabs, .no-print { display: none !important; }
    body { color: #000; }
    .card { box-shadow: none; break-inside: avoid; }
}

/* ===== Lightbox ===== */
.lightbox { border: 0; padding: 0; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; background: rgba(5, 14, 24, .94); color: #fff; }
.lightbox::backdrop { background: rgba(5, 14, 24, .7); }
.lightbox[open] { display: grid; place-items: center; }
.lightbox img { max-width: min(1100px, 92vw); max-height: 82vh; object-fit: contain; border-radius: var(--r); }
.lightbox .btn { position: fixed; --btn-bg: rgba(255,255,255,.12); --btn-fg: #fff; --btn-bd: transparent; font-size: 28px; width: 48px; height: 48px; padding: 0; border-radius: 50%; }
.lightbox .btn:hover { background: rgba(255,255,255,.22); color: #fff; }
.lightbox-close { top: 16px; right: 16px; }
.lightbox-prev { left: 16px; top: 50%; }
.lightbox-next { right: 16px; top: 50%; }
.lightbox-count { position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%); font-size: var(--fs-sm); opacity: .8; }

/* ===== Small utilities added with pages ===== */
.pt-0 { padding-top: 0 !important; }
.filters-details > summary { list-style: none; }
.filters-details > summary::-webkit-details-marker { display: none; }
.pre-line { white-space: pre-line; }

/* ===== Agreements: Schedule A cards, legal text, boats ===== */
.schedule-card { border: 1px solid var(--c-line); border-radius: var(--r); padding: 14px 16px; margin-top: 12px; }
.schedule-card h3 { font-size: var(--fs-base); margin-bottom: 8px; }
.schedule-grid { display: grid; grid-template-columns: 1fr; gap: 6px 20px; margin: 0; }
.schedule-grid > div { display: grid; grid-template-columns: minmax(0, 9.5rem) minmax(0, 1fr); gap: 12px; font-size: var(--fs-sm); }
.schedule-grid dt { color: var(--c-muted); font-weight: 600; }
.schedule-grid dd { margin: 0; overflow-wrap: anywhere; }
@media (min-width: 720px) { .schedule-card .schedule-grid { grid-template-columns: 1fr 1fr; } }
.legal-panel > summary { cursor: pointer; font-weight: 600; }
.legal-body { max-height: 420px; overflow-y: auto; border: 1px solid var(--c-line); border-radius: var(--r); padding: 12px 16px; margin-top: 8px; font-size: var(--fs-sm); }
.legal-note { background: var(--c-warning-bg); border-radius: 8px; padding: 8px 12px; font-size: var(--fs-sm); }
.legal-doc h2 { font-size: var(--fs-lg); margin-top: 1.5em; }
.legal-doc h3 { font-size: var(--fs-base); }
.agreement-page code { font-size: 12px; word-break: break-all; }
.boat-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.boat-item { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; border: 1px solid var(--c-line); border-radius: var(--r); padding: 12px 14px; }
.rental-terms .schedule-grid > div { grid-template-columns: minmax(0, 8.5rem) minmax(0, 1fr); }
.agreement-schedule h2 { font-size: var(--fs-lg); margin: 12px 0 8px; }
.agreement-schedule h3 { font-size: var(--fs-base); margin-top: 12px; }
.agreement-schedule th { width: 38%; color: var(--c-muted); font-weight: 600; text-align: left; vertical-align: top; }
.agreement-schedule td { overflow-wrap: anywhere; }
