/* ==========================================================================
   Havenspace — design system
   Brand: navy (#0B2A66) + light green (#7AD63F) from the logo
   ========================================================================== */

:root {
    --navy: #0B2A66;
    --navy-800: #0E3278;
    --navy-900: #061A44;
    --navy-50: #EEF2FA;
    --green: #7AD63F;
    --green-500: #6CCB31;
    --green-600: #58B523;
    --green-700: #3F8F17;
    --green-deep: #0B7A3E;
    --green-50: #F2FAEA;
    --green-100: #E1F4D0;

    --bg: #F8FAF5;
    --surface: #FFFFFF;
    --surface-2: #F3F6EE;
    --line: #E3E8DC;
    --line-strong: #CFD7C5;
    --text: #18223A;
    --muted: #5C677A;
    --subtle: #8A93A3;

    --amber: #B7791F;  --amber-bg: #FDF4E3;
    --red: #C2362B;    --red-bg: #FDECEA;
    --blue-bg: #EAF0FB;

    --radius-sm: 10px;
    --radius: 16px;
    --radius-lg: 24px;
    --pill: 999px;
    --shadow-sm: 0 1px 2px rgba(11, 42, 102, .06);
    --shadow: 0 6px 24px -8px rgba(11, 42, 102, .16);
    --shadow-lg: 0 24px 60px -20px rgba(11, 42, 102, .30);

    --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
    --font-body: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

    --container: 1240px;
    --header-h: 84px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--navy); text-decoration: none; }
a:hover { color: var(--green-deep); }
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--navy); line-height: 1.15; margin: 0 0 .5em; font-weight: 600; letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 4.5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.05rem; }
p { margin: 0 0 1em; }
code { background: var(--surface-2); padding: .1em .4em; border-radius: 6px; font-size: .9em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 24px 0; }

.icon { width: 1.15em; height: 1.15em; flex-shrink: 0; vertical-align: -.2em; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--navy); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 999; }
.skip-link:focus { left: 8px; color: #fff; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 860px; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; border-radius: 6px; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 12px 22px; border-radius: var(--pill); border: 1.5px solid transparent;
    font: 600 .975rem/1.2 var(--font-body); cursor: pointer; white-space: nowrap;
    transition: background .18s, border-color .18s, color .18s, transform .18s, box-shadow .18s;
}
.btn:active { transform: translateY(1px); }
.btn-sm { padding: 9px 16px; font-size: .9rem; }
.btn-lg { padding: 16px 30px; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--green); color: var(--navy-900); box-shadow: 0 6px 16px -6px rgba(88, 181, 35, .6); }
.btn-primary:hover { background: var(--green-600); color: var(--navy-900); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-800); color: #fff; }
.btn-outline { border-color: var(--line-strong); color: var(--navy); background: var(--surface); }
.btn-outline:hover { border-color: var(--navy); color: var(--navy); }
.btn-ghost { color: var(--navy); background: transparent; }
.btn-ghost:hover { background: var(--surface-2); }
.btn-danger { background: var(--red-bg); color: var(--red); }
.btn-danger:hover { background: var(--red); color: #fff; }
.btn-white { background: #fff; color: var(--navy); }
.btn-white:hover { background: var(--green-50); color: var(--navy); }
.btn[disabled] { opacity: .55; cursor: not-allowed; }

.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--green-deep); }
.link-arrow:hover { gap: 10px; }

/* ---------- Header ---------- */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255, 255, 255, .92); backdrop-filter: saturate(1.4) blur(12px);
    border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 24px; height: var(--header-h); max-width: 1440px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--navy); flex-shrink: 0; }
.brand:hover { color: var(--navy); }
.brand-mark { width: 60px; height: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text strong { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; letter-spacing: -.02em; }
.brand-text small { font-size: .68rem; letter-spacing: .28em; text-transform: uppercase; color: var(--muted); margin-top: 4px; font-weight: 600; }
.brand-light, .brand-light:hover { color: #fff; }
.brand-light .brand-text small { color: rgba(255,255,255,.65); }
.brand-light .brand-mark { background: #fff; border-radius: 12px; padding: 6px; width: 64px; }
.brand-center { justify-content: center; margin-bottom: 24px; }

.main-nav { display: flex; align-items: center; flex: 1; gap: 16px; }
.main-nav ul { list-style: none; display: flex; gap: 4px; margin: 0 auto; padding: 0; }
.main-nav ul a, .nav-link {
    display: block; padding: 9px 16px; border-radius: var(--pill);
    color: var(--text); font-weight: 500;
}
.main-nav ul a:hover, .nav-link:hover { background: var(--surface-2); color: var(--navy); }
.main-nav ul a.active, .nav-link.active { background: var(--green-50); color: var(--green-deep); font-weight: 600; }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-phone { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--navy); margin-right: 4px; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 0; padding: 8px; color: var(--navy); cursor: pointer; }
.nav-toggle .icon { width: 28px; height: 28px; }
.nav-toggle .icon-close { display: none; }

@media (max-width: 1240px) { .nav-phone span { display: none; } }
@media (max-width: 1100px) {
    .nav-toggle { display: block; }
    .main-nav {
        position: fixed; inset: var(--header-h) 0 0 0; background: var(--surface);
        flex-direction: column; align-items: stretch; padding: 20px 24px 40px; gap: 20px;
        overflow-y: auto; transform: translateX(100%); transition: transform .25s ease; visibility: hidden;
    }
    .nav-open .main-nav { transform: none; visibility: visible; }
    .nav-open .nav-toggle .icon-open { display: none; }
    .nav-open .nav-toggle .icon-close { display: block; }
    .main-nav ul { flex-direction: column; margin: 0; }
    .main-nav ul a { padding: 14px 16px; font-size: 1.1rem; }
    .nav-actions { flex-direction: column; align-items: stretch; border-top: 1px solid var(--line); padding-top: 20px; }
    .nav-actions .btn, .nav-actions .nav-link { width: 100%; justify-content: center; text-align: center; }
    .nav-phone { justify-content: center; padding: 10px; }
    .nav-phone span { display: inline; }
    body.nav-open { overflow: hidden; }
}
@media (max-width: 520px) {
    :root { --header-h: 72px; }
    .brand-mark { width: 48px; }
    .brand-text strong { font-size: 1.25rem; }
}

/* ---------- Toasts / alerts / badges ---------- */
.toast-stack { position: fixed; top: calc(var(--header-h) + 16px); right: 16px; z-index: 80; display: grid; gap: 10px; max-width: min(420px, calc(100vw - 32px)); }
.toast {
    display: flex; align-items: flex-start; gap: 10px; padding: 14px 16px; border-radius: 14px;
    background: var(--surface); box-shadow: var(--shadow-lg); border-left: 4px solid var(--navy);
    animation: toastIn .3s ease;
}
.toast .icon { margin-top: 2px; }
.toast-success { border-color: var(--green-600); } .toast-success .icon { color: var(--green-700); }
.toast-error { border-color: var(--red); } .toast-error .icon { color: var(--red); }
.toast-close { margin-left: auto; background: none; border: 0; font-size: 1.3rem; line-height: 1; cursor: pointer; color: var(--subtle); }
@keyframes toastIn { from { opacity: 0; transform: translateY(-8px); } }

.alert { padding: 12px 16px; border-radius: 12px; margin-bottom: 16px; font-size: .95rem; }
.alert-error { background: var(--red-bg); color: var(--red); }
.alert-success { background: var(--green-50); color: var(--green-deep); }
.alert-info { background: var(--blue-bg); color: var(--navy); }

.badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: var(--pill); font-size: .78rem; font-weight: 600; white-space: nowrap; }
.badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge-green { background: var(--green-50); color: var(--green-deep); }
.badge-amber { background: var(--amber-bg); color: var(--amber); }
.badge-red { background: var(--red-bg); color: var(--red); }
.badge-gray { background: #EFF1F4; color: #5C6470; }
.badge-navy { background: var(--navy-50); color: var(--navy); }

/* ---------- Hero ---------- */
.hero {
    position: relative; min-height: 640px; display: flex; flex-direction: column; justify-content: center;
    padding: 90px 0 150px; color: #fff; isolation: isolate; overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero::before {
    content: ''; position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(180deg, rgba(6, 26, 68, .55) 0%, rgba(6, 26, 68, .35) 45%, rgba(6, 26, 68, .7) 100%);
}
.hero-content { text-align: center; max-width: 900px; margin: 0 auto; }
.hero-eyebrow {
    display: inline-flex; align-items: center; gap: 8px; padding: 8px 20px; border-radius: var(--pill);
    background: rgba(255, 255, 255, .92); color: var(--navy); font-size: .78rem; font-weight: 700;
    letter-spacing: .22em; text-transform: uppercase; margin-bottom: 26px;
}
.hero-eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.hero h1 { text-wrap: balance; color: #fff; font-size: clamp(2.6rem, 6.5vw, 5rem); font-weight: 700; margin-bottom: 18px; text-shadow: 0 2px 24px rgba(0,0,0,.25); }
.hero h1 em { font-style: normal; color: var(--green); }
.hero-lead { font-size: clamp(1.05rem, 1.6vw, 1.3rem); color: rgba(255,255,255,.92); max-width: 720px; margin: 0 auto; }

.hero-search { position: relative; margin-top: -96px; z-index: 5; }
.hero-search-card { background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 28px; }
.hero-search-meta { text-align: center; margin: 14px 0 0; color: var(--muted); font-size: .92rem; }
.hero-search-meta a { font-weight: 600; text-decoration: underline; text-underline-offset: 3px; color: var(--green-deep); }

/* ---------- Search bar ---------- */
.search-bar { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1fr auto; gap: 12px; align-items: stretch; }
.sb-field { position: relative; display: flex; align-items: center; }
.search-bar .sb-field input, .search-bar .sb-field select {
    width: 100%; height: 58px; border: 1.5px solid var(--line); border-radius: var(--pill); background: var(--bg);
    padding: 0 20px; font: inherit; color: var(--text); appearance: none; -webkit-appearance: none;
}
.search-bar .sb-field select { padding-right: 44px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230B2A66' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; background-size: 18px; cursor: pointer; }
.sb-field select:disabled { color: var(--subtle); cursor: not-allowed; }
.sb-q .icon { position: absolute; left: 20px; color: var(--muted); width: 20px; height: 20px; pointer-events: none; }
.search-bar .sb-q input { padding-left: 52px; }
.search-bar .sb-field input:focus, .search-bar .sb-field select:focus { outline: none; border-color: var(--green-600); background-color: #fff; box-shadow: 0 0 0 4px var(--green-100); }
.sb-submit { height: 58px; padding: 0 32px; font-size: 1.02rem; }
.search-compact .sb-field input, .search-bar.search-compact .sb-field select, .search-compact .sb-submit { height: 50px; }
@media (max-width: 1000px) {
    .search-bar { grid-template-columns: 1fr 1fr; }
    .sb-q { grid-column: 1 / -1; }
    .sb-submit { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
    .search-bar { grid-template-columns: 1fr; }
    .hero-search-card { padding: 18px; }
}

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section-sm { padding: 64px 0; }
.section-alt { background: var(--surface); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 40px; flex-wrap: wrap; }
.section-head p { margin: 0; color: var(--muted); max-width: 560px; }
.section-head h2 { margin-bottom: 8px; }
.section-head.center { flex-direction: column; align-items: center; text-align: center; }
.eyebrow { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; color: var(--green-deep); margin-bottom: 10px; }

.grid { display: grid; gap: 28px; }
.grid-cards { grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } .section { padding: 64px 0; } }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.card-pad { padding: 28px; }

/* ---------- Property card ---------- */
.property-card { position: relative; overflow: hidden; display: flex; flex-direction: column; transition: transform .25s, box-shadow .25s; }
.property-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.pc-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--surface-2); }
.pc-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.property-card:hover .pc-media img { transform: scale(1.05); }
.pc-tag, .pc-featured {
    position: absolute; top: 14px; display: inline-flex; align-items: center; gap: 6px;
    padding: 6px 12px; border-radius: var(--pill); font-size: .78rem; font-weight: 700;
}
.pc-tag { left: 14px; background: rgba(255,255,255,.95); color: var(--navy); }
.pc-tag.tag-stay .icon { color: var(--navy); }
.pc-tag.tag-rental .icon { color: var(--green-700); }
.pc-featured { left: 14px; top: auto; bottom: 14px; background: var(--green); color: var(--navy-900); }
.pc-fav { position: absolute; top: 12px; right: 12px; z-index: 2; margin: 0; }
.fav-btn {
    width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255,255,255,.95); color: var(--navy);
    display: grid; place-items: center; cursor: pointer; box-shadow: var(--shadow-sm); transition: transform .15s;
}
.fav-btn:hover { transform: scale(1.08); color: var(--red); }
.fav-btn.is-saved { color: var(--red); }
.fav-btn.is-saved .icon { fill: currentColor; }
.pc-body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.pc-location { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: .86rem; margin-bottom: 6px; }
.pc-location .icon { color: var(--green-700); width: 16px; height: 16px; }
.pc-title { font-size: 1.2rem; margin-bottom: 12px; }
.pc-title a { color: var(--navy); }
.pc-specs { list-style: none; display: flex; gap: 16px; padding: 0; margin: 0 0 18px; color: var(--muted); font-size: .88rem; }
.pc-specs li { display: inline-flex; align-items: center; gap: 6px; }
.pc-specs .icon { width: 17px; height: 17px; color: var(--navy); }
.pc-foot { margin-top: auto; padding-top: 16px; border-top: 1px dashed var(--line); display: flex; align-items: center; justify-content: space-between; }
.pc-price { margin: 0; color: var(--muted); font-size: .9rem; }
.pc-price strong { font-family: var(--font-display); font-size: 1.45rem; color: var(--navy); font-weight: 700; }
.pc-link { width: 40px; height: 40px; border-radius: 50%; background: var(--green-50); color: var(--green-deep); display: grid; place-items: center; transition: background .2s; }
.pc-link:hover { background: var(--green); color: var(--navy-900); }

/* ---------- Home: categories, provinces, steps ---------- */
.type-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; }
.type-tile {
    display: flex; flex-direction: column; align-items: flex-start; gap: 14px; padding: 22px;
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); color: var(--navy);
    transition: border-color .2s, transform .2s, box-shadow .2s;
}
.type-tile:hover { border-color: var(--green-600); transform: translateY(-3px); box-shadow: var(--shadow); color: var(--navy); }
.type-tile .ti-icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--green-50); color: var(--green-deep); }
.type-tile .ti-icon .icon { width: 24px; height: 24px; }
.type-tile strong { font-size: 1.05rem; }
.type-tile span { color: var(--muted); font-size: .88rem; margin-top: -10px; }

.split-feature { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.feature-panel {
    position: relative; min-height: 380px; border-radius: var(--radius-lg); overflow: hidden; color: #fff;
    display: flex; flex-direction: column; justify-content: flex-end; padding: 36px; isolation: isolate;
}
.feature-panel img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .6s; }
.feature-panel:hover img { transform: scale(1.04); }
.feature-panel::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 20%, rgba(6,26,68,.88)); }
.feature-panel h3 { color: #fff; font-size: 1.9rem; }
.feature-panel p { color: rgba(255,255,255,.88); max-width: 420px; }
.feature-panel .btn { align-self: flex-start; }
@media (max-width: 860px) { .split-feature { grid-template-columns: 1fr; } }

.province-chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.province-chip {
    display: inline-flex; align-items: center; gap: 10px; padding: 10px 18px; border-radius: var(--pill);
    background: var(--surface); border: 1px solid var(--line); color: var(--navy); font-weight: 600;
}
.province-chip small { color: var(--muted); font-weight: 500; }
.province-chip:hover { border-color: var(--green-600); background: var(--green-50); color: var(--navy); }

.steps { counter-reset: step; }
.step { padding: 32px; position: relative; }
.step::before {
    counter-increment: step; content: counter(step, decimal-leading-zero);
    font-family: var(--font-display); font-size: 2.6rem; font-weight: 700; color: var(--green); display: block; margin-bottom: 12px; line-height: 1;
}
.step p { color: var(--muted); margin: 0; }

.why-grid .why-item { display: flex; gap: 16px; }
.why-icon { width: 52px; height: 52px; border-radius: 16px; background: var(--navy); color: var(--green); display: grid; place-items: center; flex-shrink: 0; }
.why-icon .icon { width: 24px; height: 24px; }
.why-item h4 { margin-bottom: 4px; font-family: var(--font-body); font-weight: 700; font-size: 1.05rem; }
.why-item p { margin: 0; color: var(--muted); font-size: .95rem; }

.stats-band { background: var(--navy); color: #fff; border-radius: var(--radius-lg); padding: 44px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stats-band strong { display: block; font-family: var(--font-display); font-size: 2.6rem; color: var(--green); line-height: 1.1; }
.stats-band span { color: rgba(255,255,255,.8); font-size: .95rem; }
@media (max-width: 760px) { .stats-band { grid-template-columns: repeat(2, 1fr); padding: 32px 20px; } }

.testimonial { padding: 32px; display: flex; flex-direction: column; gap: 18px; }
.stars { display: flex; gap: 2px; color: #F5B301; }
.stars .icon { fill: currentColor; width: 18px; height: 18px; }
.testimonial blockquote { margin: 0; font-size: 1.04rem; color: var(--text); }
.testimonial footer { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--green-100); color: var(--green-deep); display: grid; place-items: center; font-weight: 700; flex-shrink: 0; }
.testimonial footer strong { display: block; color: var(--navy); }
.testimonial footer span { color: var(--muted); font-size: .86rem; }

.cta-band {
    position: relative; overflow: hidden; border-radius: var(--radius-lg); padding: 64px; color: #fff;
    background: radial-gradient(circle at 85% 20%, rgba(122,214,63,.35), transparent 45%), linear-gradient(135deg, var(--navy) 0%, var(--navy-900) 100%);
    display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: center;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.85); margin: 0; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 860px) { .cta-band { grid-template-columns: 1fr; padding: 40px 28px; } .cta-actions { justify-content: flex-start; } }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { padding: 56px 0 40px; background: linear-gradient(180deg, var(--green-50), var(--bg)); border-bottom: 1px solid var(--line); }
.page-hero h1 { margin-bottom: 10px; }
.page-hero p { color: var(--muted); font-size: 1.1rem; max-width: 680px; margin: 0; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: .88rem; color: var(--muted); margin-bottom: 14px; }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--green-deep); }
.breadcrumbs .icon { width: 14px; height: 14px; }

/* ---------- Listings page ---------- */
.listings-layout { display: grid; grid-template-columns: 290px 1fr; gap: 32px; align-items: start; }
.filters { position: sticky; top: calc(var(--header-h) + 20px); padding: 24px; }
.filters h3 { font-family: var(--font-body); font-size: 1.05rem; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.filter-group { margin-bottom: 18px; }
.filter-group > span, .field > span { display: block; font-size: .85rem; font-weight: 600; margin-bottom: 6px; color: var(--navy); }
.seg { display: flex; background: var(--surface-2); padding: 4px; border-radius: var(--pill); }
.seg label { flex: 1; text-align: center; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: block; padding: 8px 6px; border-radius: var(--pill); font-size: .85rem; font-weight: 600; cursor: pointer; color: var(--muted); }
.seg input:checked + span { background: var(--surface); color: var(--navy); box-shadow: var(--shadow-sm); }
.seg input:focus-visible + span { outline: 2px solid var(--green); }
.range-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.results-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.results-bar h2 { font-size: 1.4rem; margin: 0; }
.results-bar .sort { display: flex; align-items: center; gap: 8px; }
.results-bar select { width: auto; }
.active-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: var(--pill); background: var(--green-50); color: var(--green-deep); font-size: .85rem; font-weight: 600; }
.chip:hover { background: var(--green-100); color: var(--green-deep); }
.chip .icon { width: 14px; height: 14px; }
.filters-toggle { display: none; }
@media (max-width: 960px) {
    .listings-layout { grid-template-columns: 1fr; }
    .filters { position: static; display: none; }
    .filters.open { display: block; }
    .filters-toggle { display: inline-flex; }
}

.pagination { display: flex; justify-content: center; gap: 6px; margin-top: 44px; flex-wrap: wrap; }
.pagination a, .pagination span { min-width: 42px; height: 42px; padding: 0 12px; display: grid; place-items: center; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); font-weight: 600; color: var(--navy); }
.pagination a:hover { border-color: var(--green-600); }
.pagination .current { background: var(--navy); color: #fff; border-color: var(--navy); }
.pagination .gap { border: 0; background: none; }

.empty-state { text-align: center; padding: 64px 24px; background: var(--surface); border: 1px dashed var(--line-strong); border-radius: var(--radius-lg); }
.empty-icon { width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 50%; background: var(--green-50); color: var(--green-deep); display: grid; place-items: center; }
.empty-icon .icon { width: 28px; height: 28px; }
.empty-state p { color: var(--muted); max-width: 420px; margin: 0 auto 20px; }

/* ---------- Property detail ---------- */
.property-head { padding: 36px 0 24px; }
.property-head-row { display: flex; justify-content: space-between; gap: 20px; align-items: flex-end; flex-wrap: wrap; }
.property-head h1 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); margin-bottom: 10px; }
.property-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--muted); align-items: center; }
.property-meta span { display: inline-flex; align-items: center; gap: 6px; }
.property-meta .icon { color: var(--green-700); }
.head-actions { display: flex; gap: 10px; align-items: center; }
.head-actions .fav-form { margin: 0; }
.head-actions .fav-btn { border: 1px solid var(--line); width: 46px; height: 46px; }

.gallery { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 220px 220px; gap: 10px; border-radius: var(--radius-lg); overflow: hidden; position: relative; }
.gallery button { padding: 0; border: 0; cursor: zoom-in; background: var(--surface-2); overflow: hidden; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s, filter .3s; }
.gallery button:hover img { transform: scale(1.04); filter: brightness(.92); }
.gallery button:first-child { grid-row: span 2; }
.gallery.count-1 { grid-template-columns: 1fr; grid-template-rows: 460px; }
.gallery.count-2 { grid-template-columns: 2fr 1fr; }
.gallery.count-2 button:nth-child(2) { grid-row: span 2; }
.gallery.count-3 { grid-template-columns: 2fr 1fr; }
.gallery-all { position: absolute; right: 16px; bottom: 16px; }
@media (max-width: 760px) {
    .gallery, .gallery.count-2, .gallery.count-3 { grid-template-columns: 1fr 1fr; grid-template-rows: 260px 120px; }
    .gallery button:first-child { grid-column: 1 / -1; grid-row: auto; }
    .gallery button:nth-child(n+4) { display: none; }
    .gallery.count-2 button:nth-child(2) { grid-row: auto; grid-column: 1 / -1; }
}

.property-layout { display: grid; grid-template-columns: 1fr 400px; gap: 48px; padding: 40px 0 96px; align-items: start; }
@media (max-width: 1000px) { .property-layout { grid-template-columns: 1fr; } }
.fact-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 36px; }
.fact { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.fact .icon { color: var(--green-700); width: 22px; height: 22px; margin-bottom: 8px; }
.fact strong { display: block; font-size: 1.15rem; color: var(--navy); }
.fact span { color: var(--muted); font-size: .85rem; }
@media (max-width: 640px) { .fact-row { grid-template-columns: repeat(2, 1fr); } }
.prose { font-size: 1.04rem; color: #2C364A; }
.prose p { margin-bottom: 1.1em; }
.detail-block { padding: 32px 0; border-top: 1px solid var(--line); }
.detail-block h2 { font-size: 1.6rem; }
.amenity-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 24px; }
.amenity-list li { display: flex; align-items: center; gap: 12px; }
.amenity-list .icon { width: 22px; height: 22px; color: var(--navy); }
.info-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 24px; }
.info-list li { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--line); gap: 12px; }
.info-list li span:first-child { color: var(--muted); }
.info-list li span:last-child { font-weight: 600; color: var(--navy); text-align: right; }
@media (max-width: 640px) { .amenity-list, .info-list { grid-template-columns: 1fr; } }
.map-embed { width: 100%; height: 340px; border: 0; border-radius: var(--radius); background: var(--surface-2); }

.booking-card { position: sticky; top: calc(var(--header-h) + 20px); padding: 28px; box-shadow: var(--shadow); }
.booking-price { display: flex; align-items: baseline; gap: 8px; margin-bottom: 20px; }
.booking-price strong { font-family: var(--font-display); font-size: 2.1rem; color: var(--navy); }
.booking-price span { color: var(--muted); }
.booking-summary { margin: 18px 0; padding: 16px 0 0; border-top: 1px solid var(--line); }
.booking-summary div { display: flex; justify-content: space-between; margin-bottom: 8px; color: var(--muted); font-size: .95rem; }
.booking-summary .total { color: var(--navy); font-weight: 700; font-size: 1.05rem; padding-top: 10px; border-top: 1px solid var(--line); margin-top: 10px; }
.booking-note { display: flex; gap: 10px; font-size: .86rem; color: var(--muted); margin: 16px 0 0; }
.booking-note .icon { color: var(--green-700); margin-top: 2px; }
.booking-contact { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); display: flex; align-items: center; gap: 12px; font-size: .92rem; }
.booking-contact .icon { width: 36px; height: 36px; padding: 8px; border-radius: 50%; background: var(--green-50); color: var(--green-deep); }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(6, 14, 32, .94); display: none; align-items: center; justify-content: center; padding: 60px 70px; }
.lightbox.open { display: flex; }
.lightbox img { max-height: 100%; max-width: 100%; border-radius: 12px; object-fit: contain; }
.lb-btn { position: absolute; background: rgba(255,255,255,.12); color: #fff; border: 0; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; }
.lb-btn:hover { background: rgba(255,255,255,.24); }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 12px; top: 50%; transform: translateY(-50%); }
.lb-count { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); color: rgba(255,255,255,.8); font-size: .9rem; }
@media (max-width: 640px) { .lightbox { padding: 60px 8px; } }

/* ---------- Forms ---------- */
.form { display: grid; gap: 16px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid .span-2 { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: block; }
.field small { font-weight: 400; }
input[type=text], input[type=email], input[type=password], input[type=tel], input[type=number], input[type=date], input[type=search], input[type=url], select, textarea {
    width: 100%; padding: 12px 16px; font: inherit; font-size: .97rem; color: var(--text);
    background: var(--surface); border: 1.5px solid var(--line); border-radius: 12px; transition: border-color .15s, box-shadow .15s;
}
input:not([type]) { width: 100%; padding: 12px 16px; font: inherit; color: var(--text); background: var(--surface); border: 1.5px solid var(--line); border-radius: 12px; }
textarea { min-height: 120px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--green-600); box-shadow: 0 0 0 4px var(--green-100); }
.field-error input, .field-error select, .field-error textarea { border-color: var(--red); }
.field-hint { font-size: .82rem; color: var(--muted); margin-top: 4px; display: block; }
.check { display: flex; align-items: center; gap: 10px; font-size: .95rem; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--green-600); }
.check-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.check-card { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border: 1.5px solid var(--line); border-radius: 12px; cursor: pointer; font-size: .92rem; background: var(--surface); }
.check-card:has(input:checked) { border-color: var(--green-600); background: var(--green-50); }
.check-card input { accent-color: var(--green-600); width: 16px; height: 16px; }
.check-card .icon { color: var(--navy); }

/* ---------- Auth ---------- */
.auth-page { background: linear-gradient(160deg, var(--green-50) 0%, var(--bg) 40%, var(--navy-50) 100%); }
.auth-wrap { min-height: calc(100vh - var(--header-h)); display: grid; place-items: center; padding: 48px 20px; }
.auth-page:not(:has(.site-header)) .auth-wrap { min-height: 100vh; }
.auth-card { width: 100%; max-width: 460px; background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 40px; }
.auth-card h1 { font-size: 2rem; text-align: center; }
.auth-card > .muted { text-align: center; }
.auth-switch { text-align: center; margin: 22px 0 0; color: var(--muted); }
.auth-switch a { font-weight: 600; color: var(--green-deep); }
@media (max-width: 480px) { .auth-card { padding: 28px 22px; } }

/* ---------- Account (guest dashboard) ---------- */
.dash-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; padding: 48px 0 32px; flex-wrap: wrap; }
.dash-head h1 { margin-bottom: 6px; }
.dash-head p { margin: 0; color: var(--muted); font-size: 1.1rem; }
.stat-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 32px; }
.stat-card { padding: 26px 28px; }
.stat-card .stat-label { display: flex; align-items: center; gap: 12px; color: var(--muted); font-weight: 500; }
.stat-card .stat-label .icon { width: 22px; height: 22px; color: var(--navy); }
.stat-card .stat-value { font-family: var(--font-display); font-size: 2.4rem; font-weight: 700; color: var(--navy); margin-top: 10px; line-height: 1; }
.stat-card.accent { background: var(--navy); border-color: var(--navy); }
.stat-card.accent .stat-label, .stat-card.accent .stat-label .icon { color: rgba(255,255,255,.8); }
.stat-card.accent .stat-value { color: var(--green); }
@media (max-width: 760px) { .stat-cards { grid-template-columns: 1fr; } }

.tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--line); margin-bottom: 28px; overflow-x: auto; }
.tabs a { padding: 12px 18px; font-weight: 600; color: var(--muted); border-bottom: 2.5px solid transparent; margin-bottom: -1px; white-space: nowrap; display: inline-flex; gap: 8px; align-items: center; }
.tabs a:hover { color: var(--navy); }
.tabs a.active { color: var(--navy); border-color: var(--green-600); }
.tabs .count { background: var(--surface-2); padding: 1px 8px; border-radius: var(--pill); font-size: .78rem; }

.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.panel-head { padding: 24px 28px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.panel-head h2, .panel-head h3 { margin: 0; }
.panel-head p { margin: 4px 0 0; color: var(--muted); }
.panel-body { padding: 28px; }

.booking-list { display: grid; }
.booking-item { display: grid; grid-template-columns: 120px 1fr auto; gap: 20px; padding: 20px 28px; border-bottom: 1px solid var(--line); align-items: center; }
.booking-item:last-child { border-bottom: 0; }
.booking-item img { width: 120px; height: 90px; object-fit: cover; border-radius: 12px; }
.booking-item h4 { font-family: var(--font-body); font-weight: 700; margin-bottom: 4px; }
.booking-item .bi-meta { display: flex; flex-wrap: wrap; gap: 4px 16px; color: var(--muted); font-size: .88rem; }
.booking-item .bi-meta span { display: inline-flex; align-items: center; gap: 6px; }
.booking-item .bi-side { text-align: right; display: grid; gap: 8px; justify-items: end; }
.booking-item .bi-total { font-weight: 700; color: var(--navy); }
.bi-note { margin-top: 8px; font-size: .88rem; background: var(--surface-2); padding: 8px 12px; border-radius: 10px; }
@media (max-width: 700px) {
    .booking-item { grid-template-columns: 80px 1fr; padding: 18px; }
    .booking-item img { width: 80px; height: 70px; }
    .booking-item .bi-side { grid-column: 1 / -1; justify-items: start; text-align: left; grid-auto-flow: column; justify-content: space-between; align-items: center; }
}

/* ---------- Content pages ---------- */
.faq-list { display: grid; gap: 12px; }
.faq-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.faq-item summary { padding: 20px 24px; cursor: pointer; font-weight: 600; color: var(--navy); list-style: none; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .icon { transition: transform .2s; color: var(--green-700); }
.faq-item[open] summary .icon { transform: rotate(180deg); }
.faq-item .faq-body { padding: 0 24px 22px; color: var(--muted); }
.faq-group h2 { font-size: 1.4rem; margin: 40px 0 16px; }
.faq-group:first-child h2 { margin-top: 0; }

.contact-layout { display: grid; grid-template-columns: 1fr 1.4fr; gap: 32px; align-items: start; }
@media (max-width: 900px) { .contact-layout { grid-template-columns: 1fr; } }
.contact-card { display: flex; gap: 16px; padding: 22px; }
.contact-card .why-icon { width: 46px; height: 46px; }
.contact-card h4 { margin: 0 0 2px; font-family: var(--font-body); font-weight: 700; }
.contact-card p, .contact-card a { margin: 0; color: var(--muted); }

.legal { max-width: 820px; }
.legal h2 { font-size: 1.4rem; margin-top: 36px; }
.legal p, .legal li { color: #39435A; }

.about-hero-img { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 3; }
.about-hero-img img { width: 100%; height: 100%; object-fit: cover; }
.value-card { padding: 28px; }
.value-card .why-icon { margin-bottom: 16px; }
.value-card p { color: var(--muted); margin: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: rgba(255,255,255,.75); padding: 72px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.site-footer h4 { color: #fff; font-family: var(--font-body); font-weight: 700; font-size: .95rem; letter-spacing: .04em; margin-bottom: 16px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.site-footer a { color: rgba(255,255,255,.75); }
.site-footer a:hover { color: var(--green); }
.footer-brand p { margin: 18px 0; max-width: 360px; }
.footer-contact { display: grid; gap: 8px; }
.footer-contact a, .footer-contact span { display: inline-flex; align-items: center; gap: 10px; }
.footer-contact .icon { color: var(--green); }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 24px; margin-top: 56px; border-top: 1px solid rgba(255,255,255,.1); font-size: .88rem; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Cookie banner ---------- */
.cookie-banner { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 90; display: flex; justify-content: center; }
.cookie-banner[hidden] { display: none; }
.cookie-inner {
    display: flex; align-items: center; gap: 18px; max-width: 1080px; width: 100%;
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 22px 28px;
    animation: toastIn .3s ease;
}
.cookie-inner p { margin: 2px 0 0; color: var(--muted); font-size: .94rem; }
.cookie-inner p a { color: var(--navy); text-decoration: underline; text-underline-offset: 3px; font-weight: 600; }
.cookie-inner strong { color: var(--navy); }
.cookie-inner .btn { margin-left: auto; }
.cookie-icon { width: 28px; height: 28px; color: var(--navy); }
@media (max-width: 680px) { .cookie-inner { flex-direction: column; align-items: flex-start; } .cookie-inner .btn { margin-left: 0; width: 100%; } .cookie-icon { display: none; } }

/* ---------- Tables (shared) ---------- */
.table-wrap { overflow-x: auto; }
table.table { width: 100%; border-collapse: collapse; font-size: .93rem; }
.table th { text-align: left; font-size: .76rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; padding: 12px 16px; background: var(--surface-2); white-space: nowrap; }
.table td { padding: 14px 16px; border-top: 1px solid var(--line); vertical-align: middle; }
.table tr:hover td { background: #FBFCF9; }
.table .thumb { width: 64px; height: 48px; object-fit: cover; border-radius: 8px; }
.table .cell-title { display: flex; align-items: center; gap: 12px; }
.table .cell-title strong { display: block; color: var(--navy); }
.table .cell-title small { color: var(--muted); }
.row-actions { display: flex; gap: 6px; justify-content: flex-end; flex-wrap: nowrap; }
.icon-btn { width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); display: inline-grid; place-items: center; color: var(--navy); cursor: pointer; }
.icon-btn:hover { border-color: var(--navy); color: var(--navy); }
.icon-btn.danger:hover { border-color: var(--red); color: var(--red); background: var(--red-bg); }
.inline-form { display: inline; margin: 0; }

/* ==========================================================================
   Admin panel
   ========================================================================== */
.admin-body { background: #F4F6F1; }
.admin-shell { display: grid; grid-template-columns: 260px 1fr; min-height: 100vh; }
.admin-sidebar { background: var(--navy-900); color: rgba(255,255,255,.75); padding: 24px 16px; position: sticky; top: 0; height: 100vh; overflow-y: auto; display: flex; flex-direction: column; }
.admin-sidebar .brand { padding: 0 8px 24px; }
.admin-sidebar .brand-text strong { font-size: 1.3rem; }
.admin-nav { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.admin-nav a { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 12px; color: rgba(255,255,255,.75); font-weight: 500; }
.admin-nav a:hover { background: rgba(255,255,255,.07); color: #fff; }
.admin-nav a.active { background: var(--green); color: var(--navy-900); font-weight: 700; }
.admin-nav .nav-count { margin-left: auto; background: rgba(255,255,255,.14); color: #fff; padding: 1px 8px; border-radius: var(--pill); font-size: .75rem; font-weight: 700; }
.admin-nav a.active .nav-count { background: var(--navy); }
.admin-nav-label { font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; color: rgba(255,255,255,.4); padding: 18px 14px 6px; }
.admin-sidebar-foot { margin-top: auto; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.1); display: grid; gap: 4px; }
.admin-main { min-width: 0; }
.admin-topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 32px; background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.admin-topbar h1 { font-size: 1.5rem; margin: 0; }
.admin-user { display: flex; align-items: center; gap: 10px; font-size: .92rem; }
.admin-content { padding: 32px; }
.admin-menu-btn { display: none; background: none; border: 0; color: var(--navy); cursor: pointer; padding: 4px; }
.admin-menu-btn .icon { width: 26px; height: 26px; }
.admin-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 28px; }
.admin-stats .stat-card { padding: 22px; border-radius: var(--radius); }
.admin-stats .stat-value { font-size: 2rem; }
.admin-stats .stat-sub { color: var(--muted); font-size: .84rem; margin-top: 6px; }
.admin-grid-2 { display: grid; grid-template-columns: 1.5fr 1fr; gap: 24px; }
.toolbar { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.toolbar form { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.toolbar input, .toolbar select { width: auto; min-width: 160px; padding: 10px 14px; }
.form-section { margin-bottom: 24px; }
.form-section .panel-body { display: grid; gap: 16px; }
.form-actions { display: flex; gap: 12px; justify-content: flex-end; position: sticky; bottom: 0; background: linear-gradient(transparent, #F4F6F1 30%); padding: 20px 0; }
.image-manager { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; }
.im-item { position: relative; border-radius: 12px; overflow: hidden; border: 2px solid var(--line); background: var(--surface-2); }
.im-item.is-cover { border-color: var(--green-600); }
.im-item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.im-actions { display: flex; justify-content: space-between; align-items: center; padding: 8px; background: var(--surface); gap: 6px; font-size: .8rem; }
.im-cover-label { position: absolute; top: 8px; left: 8px; background: var(--green); color: var(--navy-900); font-size: .72rem; font-weight: 700; padding: 3px 8px; border-radius: var(--pill); }
.dropzone { border: 2px dashed var(--line-strong); border-radius: var(--radius); padding: 28px; text-align: center; background: var(--surface-2); cursor: pointer; display: block; transition: border-color .2s, background .2s; }
.dropzone:hover, .dropzone.drag { border-color: var(--green-600); background: var(--green-50); }
.dropzone input { display: none; }
.dropzone .icon { width: 32px; height: 32px; color: var(--green-700); margin: 0 auto 8px; display: block; }
.upload-preview { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.upload-preview img { width: 90px; height: 68px; object-fit: cover; border-radius: 8px; }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; }
.message-body { white-space: pre-wrap; background: var(--surface-2); padding: 18px; border-radius: 12px; }
@media (max-width: 1200px) { .admin-stats { grid-template-columns: repeat(2, 1fr); } .admin-grid-2 { grid-template-columns: 1fr; } }
@media (max-width: 900px) {
    .admin-shell { grid-template-columns: 1fr; }
    .admin-sidebar { position: fixed; left: 0; top: 0; bottom: 0; width: 270px; z-index: 100; transform: translateX(-100%); transition: transform .25s; }
    .admin-open .admin-sidebar { transform: none; box-shadow: var(--shadow-lg); }
    .admin-menu-btn { display: block; }
    .admin-content { padding: 20px 16px; }
    .admin-topbar { padding: 14px 16px; }
    .detail-grid { grid-template-columns: 1fr; }
}
@media (max-width: 520px) { .admin-stats { grid-template-columns: 1fr; } .admin-user span { display: none; } }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
    .reveal { opacity: 1; transform: none; }
}

/* ---------- Fixes ---------- */
.form-grid > *, .field, .booking-card form { min-width: 0; }
input, select, textarea { min-width: 0; max-width: 100%; }
.gallery.count-4 button:nth-child(4) { grid-column: span 2; }
@media (max-width: 760px) { .gallery.count-4 button:nth-child(4) { grid-column: auto; } }
.gallery .gallery-all { padding: 9px 16px; background: #fff; border-radius: var(--pill); cursor: pointer; box-shadow: var(--shadow); }
.gallery .gallery-all:hover { background: var(--green-50); }

/* ==========================================================================
   Mobile: never wider than the screen
   ========================================================================== */
html, body { max-width: 100%; overflow-x: clip; }          /* safety net (clip keeps sticky working) */
body { overflow-wrap: break-word; }
img, video, iframe, table { max-width: 100%; }
.skip-link { left: 8px; transform: translateY(-200%); }
.skip-link:focus { transform: none; }

/* Card grids shrink below 290px on tiny phones */
.grid-cards { grid-template-columns: repeat(auto-fill, minmax(min(290px, 100%), 1fr)); }
.type-tiles { grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr)); }
.check-grid { grid-template-columns: repeat(auto-fill, minmax(min(200px, 100%), 1fr)); }
.image-manager { grid-template-columns: repeat(auto-fill, minmax(min(150px, 100%), 1fr)); }

/* Off-canvas menu: removed from layout when closed so it can't cause sideways scroll */
@media (max-width: 1100px) {
    .main-nav { display: none; transform: none; transition: none; }
    .nav-open .main-nav { display: flex; animation: navIn .2s ease; }
}
@keyframes navIn { from { opacity: 0; transform: translateY(-8px); } }

@media (max-width: 640px) {
    .container { padding: 0 16px; }
    .header-inner { gap: 12px; }
    .hero { min-height: 520px; padding: 64px 0 130px; }
    .hero-eyebrow { letter-spacing: .14em; font-size: .7rem; padding: 7px 14px; }
    .section-head { margin-bottom: 28px; }
    .card-pad, .panel-body, .booking-card, .auth-card { padding: 20px; }
    .panel-head { padding: 18px 20px; }
    .stat-card { padding: 20px; }
    .cta-band { padding: 32px 20px; }
    .cta-actions .btn { width: 100%; }
    .stats-band strong { font-size: 2rem; }
    .feature-panel { min-height: 320px; padding: 24px; }
    .property-head-row { align-items: flex-start; }
    .booking-item { padding: 16px; }
    .tabs a { padding: 12px 12px; }
    .results-bar { gap: 10px; }
    .footer-bottom { padding: 20px 16px; justify-content: center; text-align: center; }
    .cookie-banner { left: 8px; right: 8px; bottom: 8px; }
    .cookie-inner { padding: 18px; }
}

@media (max-width: 400px) {
    .brand { gap: 8px; }
    .brand-mark { width: 40px; }
    .brand-text strong { font-size: 1.1rem; }
    .brand-text small { font-size: .58rem; letter-spacing: .18em; }
    .pc-specs { gap: 10px; flex-wrap: wrap; }
    .form-grid { grid-template-columns: 1fr; }
    .booking-card .form-grid { grid-template-columns: 1fr; }
    .range-row { grid-template-columns: 1fr 1fr; }
    .fact { padding: 14px; }
}

/* Admin on phones */
@media (max-width: 640px) {
    .admin-topbar { flex-wrap: wrap; gap: 10px; }
    .admin-topbar h1 { font-size: 1.2rem; }
    .admin-topbar > div:last-child { flex-wrap: wrap; gap: 8px; }
    .admin-user { display: none; }
    .toolbar form, .toolbar input, .toolbar select { width: 100%; min-width: 0; }
    .form-actions { flex-wrap: wrap; }
    .form-actions .btn { flex: 1 1 auto; }
    .row-actions { flex-wrap: wrap; justify-content: flex-start; }
}

/* Mobile menu: the header's blur effect trapped the fixed menu inside the header bar,
   letting page content (hero image) cover the links. Use a solid header on mobile instead. */
@media (max-width: 1100px) {
    .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--surface); }
    .main-nav {
        position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0;
        height: calc(100dvh - var(--header-h)); z-index: 60;
        background: var(--surface); overflow-y: auto; overscroll-behavior: contain;
    }
}

/* ---------- Sign out lives in the mobile menu ---------- */
.nav-signout { display: none; }
.nav-signout form { margin: 0; }
.nav-signout button {
    display: flex; align-items: center; gap: 10px; width: 100%; padding: 14px 16px; border: 0; border-radius: var(--pill);
    background: none; font: 500 1.1rem var(--font-body); color: var(--red); cursor: pointer; text-align: left;
}
.nav-signout button:hover { background: var(--red-bg); }
@media (max-width: 1100px) {
    .nav-signout { display: block; }
    .desktop-only { display: none !important; }
}

/* ---------- Dashboard counters: three side by side on phones ---------- */
@media (max-width: 760px) {
    .stat-cards { grid-template-columns: repeat(3, 1fr); gap: 10px; }
    .stat-cards .stat-card { padding: 14px 12px; border-radius: var(--radius); }
    .stat-cards .stat-label { flex-direction: column; align-items: flex-start; gap: 6px; font-size: .78rem; line-height: 1.25; }
    .stat-cards .stat-label .icon { width: 18px; height: 18px; }
    .stat-cards .stat-value { font-size: 1.8rem; margin-top: 8px; }
    .admin-stats { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .admin-stats .stat-card { padding: 16px; }
    .admin-stats .stat-value { font-size: 1.6rem; }
}

/* ---------- Footer: link groups in three columns on phones ---------- */
@media (max-width: 900px) {
    .footer-grid { grid-template-columns: repeat(3, 1fr); gap: 32px 16px; }
    .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
    .site-footer { padding-top: 48px; }
    .footer-grid { grid-template-columns: repeat(3, 1fr); gap: 28px 12px; }
    .site-footer h4 { font-size: .82rem; margin-bottom: 12px; }
    .site-footer ul { gap: 8px; font-size: .84rem; line-height: 1.35; }
}

/* ---------- Smaller headings on phones ---------- */
@media (max-width: 640px) {
    h1 { font-size: 1.7rem; }
    h2 { font-size: 1.4rem; }
    h3 { font-size: 1.12rem; }
    .hero h1 { font-size: 2.2rem; }
    .hero-lead { font-size: 1rem; }
    .page-hero { padding: 36px 0 28px; }
    .page-hero p { font-size: 1rem; }
    .dash-head { padding: 28px 0 20px; }
    .dash-head h1 { font-size: 1.6rem; margin-bottom: 4px; }
    .dash-head p { font-size: .95rem; }
    .panel-head h2 { font-size: 1.2rem; }
    .panel-head h3 { font-size: 1.05rem; }
    .panel-head p { font-size: .88rem; }
    .property-head h1 { font-size: 1.55rem; }
    .detail-block h2, .faq-group h2, .legal h2 { font-size: 1.25rem; }
    .feature-panel h3 { font-size: 1.5rem; }
    .auth-card h1 { font-size: 1.6rem; }
    .results-bar h2 { font-size: 1.15rem; }
    .booking-price strong { font-size: 1.7rem; }
    .pc-title { font-size: 1.1rem; }
    .booking-item h4 { font-size: .98rem; }
}
.tabs { scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
@media (max-width: 640px) {
    .tabs { gap: 2px; margin-bottom: 20px; }
    .tabs a { padding: 10px 8px; font-size: .88rem; gap: 6px; }
    .tabs a .icon { width: 16px; height: 16px; }
    .tabs .count { padding: 0 6px; font-size: .72rem; }
}
@media (max-width: 640px) {
    .tabs { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; }
    .tabs a { justify-content: center; padding: 10px 4px; font-size: .84rem; }
    .tabs a .icon { display: none; }
}
@media (max-width: 640px) {
    .admin-content .tabs { display: flex; flex-wrap: wrap; overflow: visible; }
    .admin-content .tabs a { padding: 8px 8px; margin-bottom: 0; }
}

/* ---------- How it works: number + text side by side ---------- */
.steps .step::before { content: none; }
.steps .step { display: flex; gap: 18px; align-items: flex-start; padding: 26px; }
.step-num {
    flex-shrink: 0; width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center;
    background: var(--navy); color: var(--green); font-family: var(--font-display); font-size: 1.4rem; font-weight: 700;
}
.steps .step h3 { margin-bottom: 6px; }
@media (max-width: 960px) { .steps { grid-template-columns: 1fr; gap: 14px; } }
@media (max-width: 640px) {
    .steps .step { padding: 18px; gap: 14px; }
    .step-num { width: 46px; height: 46px; font-size: 1.15rem; border-radius: 14px; }
    .steps .step p { font-size: .92rem; }
}

/* ---------- Guest reviews: one at a time, fading ---------- */
.review-slider { max-width: 760px; margin: 0 auto; }
.review-track { display: grid; }
.review-slide {
    grid-area: 1 / 1; opacity: 0; visibility: hidden; transform: translateY(8px);
    transition: opacity .7s ease, transform .7s ease, visibility 0s linear .7s;
    text-align: center; align-items: center; padding: 40px 36px;
}
.review-slide.is-active { opacity: 1; visibility: visible; transform: none; transition: opacity .7s ease, transform .7s ease, visibility 0s; }
.review-slide blockquote { font-size: 1.2rem; line-height: 1.6; max-width: 600px; }
.review-slide footer { margin-top: 4px; text-align: left; }
.review-dots { display: flex; justify-content: center; gap: 10px; margin-top: 22px; }
.review-dots button { width: 10px; height: 10px; border-radius: 999px; border: 0; padding: 0; background: var(--line-strong); cursor: pointer; transition: width .3s, background .3s; }
.review-dots button.is-active { width: 28px; background: var(--green-600); }
@media (max-width: 640px) {
    .review-slide { padding: 26px 20px; }
    .review-slide blockquote { font-size: 1.02rem; }
}

/* ==========================================================================
   e-Transfer payment flow + notifications
   ========================================================================== */
.badge-blue { background: #E8F0FE; color: #1A56C4; }

/* Notification bell */
.nav-bell { position: relative; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; color: var(--navy); flex-shrink: 0; }
.nav-bell:hover { background: var(--surface-2); color: var(--navy); }
.nav-bell .icon { width: 22px; height: 22px; }
.bell-count {
    position: absolute; top: 2px; right: 0; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 999px;
    background: var(--red); color: #fff; font-size: .7rem; font-weight: 700; display: grid; place-items: center; border: 2px solid #fff;
}
@media (max-width: 1100px) { .site-header .nav-bell { margin-left: auto; } .site-header .nav-bell + .nav-toggle { margin-left: 0; } }

/* Notifications list */
.notif-list { display: grid; }
.notif-item { margin: 0; border-bottom: 1px solid var(--line); }
.notif-item:last-child { border-bottom: 0; }
.notif-item button, .notice-alert button {
    width: 100%; display: flex; align-items: flex-start; gap: 14px; padding: 18px 22px; border: 0; background: none;
    text-align: left; font: inherit; color: var(--text); cursor: pointer;
}
.notif-item button:hover { background: var(--surface-2); }
.notif-item.unread button { background: var(--green-50); }
.notif-icon { width: 38px; height: 38px; border-radius: 50%; background: var(--navy-50); color: var(--navy); display: grid; place-items: center; flex-shrink: 0; }
.notif-icon .icon { width: 18px; height: 18px; }
.notif-text { display: grid; gap: 2px; flex: 1; min-width: 0; }
.notif-text strong { color: var(--navy); }
.notif-text span { color: var(--muted); font-size: .92rem; }
.notif-text small { color: var(--subtle); font-size: .8rem; }
.notif-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--green-600); margin-top: 6px; flex-shrink: 0; }
.notice-alert { margin: 0 0 12px; }
.notice-alert button { align-items: center; background: var(--green-50); border: 1.5px solid var(--green-600); border-radius: var(--radius); }
.notice-alert button:hover { background: var(--green-100); }
.notice-alert strong { color: var(--navy); }
.notice-alert small { color: var(--muted); }
.notice-alert button > .icon:last-child { margin-left: auto; color: var(--green-deep); }

/* Booking progress timeline */
.timeline { list-style: none; padding: 0; margin: 0 0 24px; display: grid; grid-template-columns: repeat(4, 1fr); position: relative; }
.timeline::before { content: ""; position: absolute; top: 17px; left: 12.5%; right: 12.5%; height: 3px; background: var(--line); }
.timeline li { display: grid; justify-items: center; gap: 8px; text-align: center; position: relative; }
.tl-dot {
    width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: .9rem;
    background: var(--surface); border: 3px solid var(--line); color: var(--subtle); position: relative; z-index: 1;
}
.tl-dot .icon { width: 18px; height: 18px; }
.tl-label { font-size: .82rem; color: var(--muted); font-weight: 600; }
.timeline li.done .tl-dot { background: var(--green); border-color: var(--green); color: var(--navy-900); }
.timeline li.current .tl-dot { border-color: var(--navy); color: var(--navy); box-shadow: 0 0 0 4px var(--navy-50); }
.timeline li.done .tl-label, .timeline li.current .tl-label { color: var(--navy); }

/* Status notices */
.notice { display: flex; gap: 14px; padding: 18px 20px; border-radius: var(--radius); background: var(--surface-2); margin-bottom: 16px; }
.notice > .icon { width: 24px; height: 24px; flex-shrink: 0; margin-top: 2px; }
.notice strong { color: var(--navy); }
.notice p { margin: 4px 0 0; color: var(--muted); }
.notice .link-arrow { margin-top: 10px; }
.notice-amber { background: var(--amber-bg); }
.notice-amber > .icon { color: var(--amber); }
.notice-green { background: var(--green-50); border: 1.5px solid var(--green-600); }
.notice-green > .icon { color: var(--green-deep); }
.notice-red { background: var(--red-bg); }
.notice-red > .icon { color: var(--red); }
.notice-navy { background: var(--navy-50); }
.notice-navy > .icon { color: var(--navy); }

/* Pay to reserve card */
.pay-card { background: var(--surface); border: 2px solid var(--green-600); border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow); margin-bottom: 16px; }
.pay-head h2 { font-size: 2.2rem; margin: 4px 0; }
.pay-head h2 small { font-family: var(--font-body); font-size: .95rem; color: var(--muted); font-weight: 500; }
.pay-steps { list-style: none; counter-reset: pay; padding: 0; margin: 20px 0 0; display: grid; gap: 22px; }
.pay-steps > li { counter-increment: pay; padding-left: 44px; position: relative; }
.pay-steps > li::before {
    content: counter(pay); position: absolute; left: 0; top: -2px; width: 30px; height: 30px; border-radius: 50%;
    background: var(--navy); color: var(--green); display: grid; place-items: center; font-weight: 700;
}
.pay-steps > li > strong { display: block; color: var(--navy); margin-bottom: 10px; font-size: 1.05rem; }
.pay-field { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.pay-field > span { width: 84px; flex-shrink: 0; color: var(--muted); font-size: .88rem; }
.pay-field code { flex: 1; min-width: 0; background: var(--surface-2); padding: 8px 12px; border-radius: 10px; font-size: .95rem; color: var(--navy); font-weight: 600; overflow-wrap: anywhere; }
.pay-field .icon-btn { flex-shrink: 0; }
.pay-field .icon-btn.copied { border-color: var(--green-600); color: var(--green-deep); background: var(--green-50); }
.paid-toggle > summary { list-style: none; }
.paid-toggle > summary::-webkit-details-marker { display: none; }
.paid-toggle[open] > summary { display: none; }

/* Admin: action panels + proof preview */
.action-panel.highlight { border: 2px solid var(--green-600); box-shadow: var(--shadow); }
.proof-img { max-height: 360px; width: auto; max-width: 100%; border-radius: 12px; border: 1px solid var(--line); margin-bottom: 12px; }
details > summary.btn { list-style: none; }
details > summary.btn::-webkit-details-marker { display: none; }

@media (max-width: 640px) {
    .pay-card { padding: 20px; }
    .pay-head h2 { font-size: 1.7rem; }
    .pay-steps > li { padding-left: 38px; }
    .pay-field { flex-wrap: wrap; }
    .pay-field > span { width: 100%; }
    .tl-label { font-size: .72rem; }
    .notif-item button { padding: 16px; }
}

/* Booking list actions wrap on phones; stacked name/meta in title cells */
.cell-title small { display: block; }
@media (max-width: 700px) {
    .booking-item .bi-side { grid-auto-flow: row; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; justify-content: flex-start; }
    .booking-item .bi-side .btn { margin-left: auto; }
}

/* ---------- Pay card v2: banner header, copy buttons inside the value box ---------- */
.pay-card { padding: 0; overflow: hidden; }
.pay-head { background: var(--green-50); border-bottom: 1px solid var(--green-100); padding: 22px 24px; }
.pay-badge {
    display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px;
    background: var(--green); color: var(--navy-900); font-size: .8rem; font-weight: 700;
}
.pay-badge .icon { width: 16px; height: 16px; }
.pay-amount { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.pay-amount strong { font-family: var(--font-display); font-size: 2.3rem; line-height: 1.1; color: var(--navy); }
.pay-amount span { color: var(--muted); font-weight: 600; }
.pay-due { display: flex; align-items: center; gap: 8px; margin: 10px 0 0; color: var(--muted); font-size: .92rem; }
.pay-due .icon { width: 16px; height: 16px; color: var(--amber); flex-shrink: 0; }
.pay-due strong { color: var(--navy); }

.pay-steps { padding: 22px 24px 24px; margin: 0; }
.pay-steps > li { padding-left: 0; }
.pay-steps > li::before { position: static; display: inline-grid; width: 28px; height: 28px; margin-right: 10px; vertical-align: middle; font-size: .9rem; }
.pay-steps > li > strong { display: inline; vertical-align: middle; }
.pay-steps > li > :nth-child(2) { margin-top: 14px; }

.pay-field { display: block; padding: 0; border: 0; margin-bottom: 12px; }
.pay-label { display: block; color: var(--muted); font-size: .82rem; font-weight: 600; margin-bottom: 6px; width: auto; }
.pay-value {
    display: flex; align-items: center; gap: 8px; min-height: 52px; padding: 6px 6px 6px 14px;
    background: var(--surface-2); border: 1.5px solid var(--line); border-radius: 12px;
}
.pay-value code { flex: 1; min-width: 0; background: none; padding: 0; font-size: 1rem; font-weight: 700; color: var(--navy); overflow-wrap: anywhere; }
.copy-btn {
    display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0; height: 38px; padding: 0 12px;
    border: 1px solid var(--line-strong); border-radius: 9px; background: var(--surface); color: var(--navy);
    font: 600 .85rem var(--font-body); cursor: pointer; transition: background .15s, border-color .15s, color .15s;
}
.copy-btn .icon { width: 16px; height: 16px; }
.copy-btn:hover { border-color: var(--navy); }
.copy-btn.copied { background: var(--green); border-color: var(--green); color: var(--navy-900); }
.pay-note { margin: 4px 0 0; }
.paid-toggle { margin-top: 14px; }

@media (max-width: 640px) {
    .pay-head { padding: 18px; }
    .pay-amount strong { font-size: 1.9rem; }
    .pay-steps { padding: 18px; }
    .pay-steps > li { padding-left: 0; }
    .pay-field { flex-wrap: nowrap; }
    .pay-field > span { width: auto; }
}
.pay-due { align-items: flex-start; }
.pay-due .icon { margin-top: 3px; }
.pay-value code { font-family: var(--font-body); font-size: 1rem; letter-spacing: .01em; overflow-wrap: break-word; word-break: normal; }
@media (max-width: 400px) { .pay-value code { font-size: .92rem; } .copy-btn { padding: 0 10px; } }
