/* ==========================================================================
   Apartments Nature – public website styles
   ========================================================================== */

:root {
    --bg: #fbf9f5;
    --surface: #ffffff;
    --tint: #f3efe7;
    --ink: #1c2a26;
    --ink-soft: #3b4a45;
    --muted: #64736d;
    --line: #e6e0d5;
    --brand: #1f5e4f;
    --brand-dark: #164537;
    --brand-soft: #e7f0ec;
    --accent: #c9773a;
    --star: #e2a426;
    --success: #1f7a4f;

    --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --font-display: "Fraunces", Georgia, "Times New Roman", serif;

    --radius-sm: 10px;
    --radius: 16px;
    --radius-lg: 24px;
    --shadow-sm: 0 1px 2px rgba(28, 42, 38, .06), 0 2px 8px rgba(28, 42, 38, .05);
    --shadow: 0 2px 6px rgba(28, 42, 38, .06), 0 12px 32px rgba(28, 42, 38, .08);
    --shadow-lg: 0 20px 60px rgba(28, 42, 38, .16);

    --container: 1200px;
    --gutter: 20px;
    --header-h: 72px;
}

/* ---------- Base ---------- */

*, *::before, *::after { box-sizing: border-box; }

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--brand); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--brand-dark); }

h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -.01em;
    color: var(--ink);
    margin: 0 0 .5em;
}

h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 1.25rem + 1.4vw, 2.4rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; }

address { font-style: normal; }

button, input, textarea, select { font: inherit; color: inherit; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

.visually-hidden {
    position: absolute !important;
    width: 1px; height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.skip-link {
    position: absolute;
    left: 16px; top: -100px;
    z-index: 100;
    background: var(--ink);
    color: #fff;
    padding: 10px 16px;
    border-radius: var(--radius-sm);
}
.skip-link:focus { top: 12px; color: #fff; }

.icon {
    width: 1.15em;
    height: 1.15em;
    flex-shrink: 0;
    vertical-align: -.2em;
}

/* ---------- Buttons ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5em;
    min-height: 46px;
    padding: 10px 20px;
    border-radius: 999px;
    border: 1.5px solid transparent;
    font-weight: 600;
    font-size: .95rem;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    transition: background-color .2s, color .2s, border-color .2s, box-shadow .2s, transform .2s;
    white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); color: #fff; box-shadow: 0 6px 18px rgba(31, 94, 79, .28); }

.btn-outline { background: transparent; border-color: var(--line); color: var(--ink); }
.btn-outline:hover { border-color: var(--brand); color: var(--brand); }

.btn-ghost { background: transparent; color: var(--brand); padding-left: 8px; padding-right: 8px; }
.btn-ghost:hover { color: var(--brand-dark); text-decoration: underline; }

.btn-light { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }
.btn-light:hover { color: var(--brand); }

.btn-outline-light { background: transparent; border-color: rgba(255, 255, 255, .45); color: #fff; }
.btn-outline-light:hover { background: rgba(255, 255, 255, .1); border-color: #fff; color: #fff; }

.btn-block { width: 100%; }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 24px; }

.icon-btn {
    display: inline-grid;
    place-items: center;
    width: 44px; height: 44px;
    border-radius: 50%;
    border: 1.5px solid var(--line);
    background: var(--surface);
    color: var(--ink);
    cursor: pointer;
    transition: border-color .2s, color .2s, opacity .2s;
}
.icon-btn:hover { border-color: var(--brand); color: var(--brand); }
.icon-btn:disabled { opacity: .35; cursor: default; }
.icon-btn .icon { width: 20px; height: 20px; }

.icon-btn-dark { background: rgba(255, 255, 255, .12); border-color: transparent; color: #fff; }
.icon-btn-dark:hover { background: rgba(255, 255, 255, .22); color: #fff; }

/* ---------- Header ---------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(251, 249, 245, .92);
    backdrop-filter: saturate(1.4) blur(12px);
    -webkit-backdrop-filter: saturate(1.4) blur(12px);
    border-bottom: 1px solid transparent;
    transition: border-color .2s, box-shadow .2s;
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 4px 20px rgba(28, 42, 38, .05); }

.header-inner {
    display: flex;
    align-items: center;
    gap: 24px;
    height: var(--header-h);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--ink);
    flex-shrink: 0;
}
.brand:hover { color: var(--ink); }

.brand-mark {
    display: grid;
    place-items: center;
    width: 40px; height: 40px;
    border-radius: 12px;
    background: var(--brand);
    color: #fff;
}
.brand-mark .icon { width: 22px; height: 22px; }

.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; }
.brand-place { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-top: 3px; }

.brand-light, .brand-light:hover { color: #fff; }
.brand-light .brand-mark { background: rgba(255, 255, 255, .14); }
.brand-light .brand-place { color: rgba(255, 255, 255, .65); }

.main-nav { margin-left: auto; }
.main-nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.main-nav a:not(.btn) {
    display: block;
    padding: 8px 12px;
    border-radius: 999px;
    color: var(--ink-soft);
    font-weight: 500;
    font-size: .95rem;
    text-decoration: none;
}
.main-nav a:not(.btn):hover { background: var(--tint); color: var(--ink); }
.main-nav-cta { display: none; }

.header-actions { display: flex; align-items: center; gap: 10px; }

.lang-switch { position: relative; }
.lang-switch summary {
    display: flex;
    align-items: center;
    gap: 6px;
    height: 44px;
    padding: 0 12px;
    border-radius: 999px;
    cursor: pointer;
    list-style: none;
    font-weight: 600;
    font-size: .85rem;
    color: var(--ink-soft);
}
.lang-switch summary::-webkit-details-marker { display: none; }
.lang-switch summary:hover { background: var(--tint); }
.lang-switch ul {
    position: absolute;
    right: 0;
    top: calc(100% + 6px);
    min-width: 170px;
    margin: 0;
    padding: 6px;
    list-style: none;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.lang-switch li a {
    display: block;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    color: var(--ink);
    text-decoration: none;
}
.lang-switch li a:hover { background: var(--tint); }
.lang-switch li a[aria-current] { background: var(--brand-soft); color: var(--brand); font-weight: 600; }

.nav-toggle {
    display: none;
    place-items: center;
    width: 44px; height: 44px;
    border: 0;
    border-radius: 12px;
    background: transparent;
    cursor: pointer;
}
.nav-toggle .icon { width: 24px; height: 24px; }
.nav-toggle .icon-close { display: none; }
.nav-open .nav-toggle .icon-open { display: none; }
.nav-open .nav-toggle .icon-close { display: block; }

@media (max-width: 1060px) {
    .nav-toggle { display: grid; }
    .header-cta { display: none; }
    .main-nav {
        position: fixed;
        inset: var(--header-h) 0 auto 0;
        max-height: calc(100vh - var(--header-h));
        overflow-y: auto;
        background: var(--bg);
        border-bottom: 1px solid var(--line);
        box-shadow: var(--shadow);
        padding: 12px var(--gutter) 24px;
        display: none;
    }
    .nav-open .main-nav { display: block; }
    .main-nav ul { flex-direction: column; gap: 0; }
    .main-nav a:not(.btn) { padding: 14px 4px; border-radius: 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
    .main-nav-cta { display: flex; width: 100%; margin-top: 18px; }
    .header-actions { margin-left: auto; }
}

@media (max-width: 420px) {
    .brand-name { font-size: 1.02rem; }
    .brand-mark { width: 36px; height: 36px; }
}

/* ---------- Shared section bits ---------- */

.section { padding: clamp(56px, 8vw, 104px) 0; }
.section-tight { padding: clamp(32px, 5vw, 64px) 0 clamp(56px, 8vw, 96px); }
.section-tinted { background: var(--tint); }

.section-head { max-width: 720px; margin-bottom: clamp(28px, 4vw, 48px); }
.section-lead { color: var(--muted); font-size: 1.08rem; max-width: 680px; }

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 12px;
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--brand);
}

.dates-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    background: var(--brand-soft);
    color: var(--brand-dark);
    font-weight: 600;
    font-size: .9rem;
}

.check-list { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 10px; }
.check-list li { display: flex; gap: 10px; align-items: flex-start; }
.check-list .icon { color: var(--brand); margin-top: 3px; }

.stars { display: inline-flex; gap: 2px; color: var(--star); }
.stars .icon { width: 16px; height: 16px; }

/* ---------- Hero ---------- */

.hero { padding: clamp(28px, 5vw, 64px) 0 clamp(40px, 6vw, 80px); overflow: hidden; }

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: clamp(32px, 5vw, 72px);
    align-items: center;
}

.hero-copy h1 { margin-bottom: 18px; }
.hero-lead { font-size: 1.12rem; color: var(--ink-soft); max-width: 560px; }

.hero-rating {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin: 8px 0 28px;
    padding: 8px 16px 8px 8px;
    border-radius: 999px;
    background: var(--surface);
    box-shadow: var(--shadow-sm);
    color: var(--ink);
    text-decoration: none;
    font-size: .9rem;
}
.hero-rating:hover { color: var(--ink); box-shadow: var(--shadow); }
.hero-rating-score {
    display: grid;
    place-items: center;
    min-width: 44px; height: 36px;
    padding: 0 8px;
    border-radius: 10px 10px 10px 2px;
    background: var(--brand);
    color: #fff;
    font-weight: 700;
}
.hero-rating-text { display: flex; flex-direction: column; line-height: 1.25; color: var(--muted); }
.hero-rating-text strong { color: var(--ink); }

.search-card {
    display: grid;
    grid-template-columns: 1fr 1fr 96px auto;
    gap: 10px;
    align-items: end;
    padding: 14px;
    background: var(--surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    max-width: 640px;
}
.search-card .field { margin: 0; }
.btn-search { min-height: 50px; padding: 0 22px; }

.hero-note { display: flex; align-items: center; gap: 8px; margin: 14px 0 0; color: var(--muted); font-size: .9rem; }
.hero-note .icon { color: var(--brand); }

.hero-media {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 14px;
    height: clamp(420px, 44vw, 580px);
}
.hero-img { position: relative; margin: 0; border-radius: var(--radius-lg); overflow: hidden; background: var(--tint); }
.hero-img img { width: 100%; height: 100%; object-fit: cover; }
.hero-img-main { grid-row: 1 / 3; }
.hero-img figcaption {
    position: absolute;
    left: 12px; bottom: 12px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .92);
    font-size: .8rem;
    font-weight: 600;
    color: var(--ink);
}
.hero-img figcaption .icon { color: var(--brand); }

@media (max-width: 960px) {
    .hero-grid { grid-template-columns: 1fr; }
    .hero-media { order: -1; height: 340px; grid-template-columns: 1.3fr 1fr; }
}

@media (max-width: 640px) {
    .search-card { grid-template-columns: 1fr 1fr; padding: 12px; }
    .search-card .field-guests { grid-column: 1 / 2; }
    .btn-search { grid-column: 2 / 3; }
    .hero-media { height: 260px; gap: 8px; }
    .hero-img { border-radius: var(--radius); }
    .hero-img-balcony { display: none; }
    .hero-img-house { grid-row: 1 / 3; }
    .hero-img figcaption { font-size: .72rem; left: 8px; bottom: 8px; }
}

/* ---------- Form fields ---------- */

.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; min-width: 0; }
.field label { font-size: .8rem; font-weight: 600; color: var(--ink-soft); letter-spacing: .01em; }
.field input, .field textarea, .field-note textarea {
    width: 100%;
    min-height: 50px;
    padding: 12px 14px;
    border: 1.5px solid var(--line);
    border-radius: 12px;
    background: var(--surface);
    transition: border-color .2s, box-shadow .2s;
}
.field textarea, .field-note textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field textarea:focus, .field-note textarea:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 4px rgba(31, 94, 79, .12);
}
.field input[data-check-in], .field input[data-check-out] { cursor: pointer; }

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.field-row-guests { grid-template-columns: 1fr 92px; }

.field-note { margin-bottom: 14px; }
.field-note summary { cursor: pointer; color: var(--brand); font-weight: 600; font-size: .9rem; list-style: none; padding: 4px 0; }
.field-note summary::-webkit-details-marker { display: none; }
.field-note[open] summary { margin-bottom: 8px; }

/* flatpickr theme */
.flatpickr-calendar { border-radius: var(--radius); box-shadow: var(--shadow-lg); border: 0; font-family: var(--font-body); }
.flatpickr-day.selected, .flatpickr-day.selected:hover, .flatpickr-day.startRange, .flatpickr-day.endRange { background: var(--brand); border-color: var(--brand); }
.flatpickr-day.today { border-color: var(--accent); }

/* ---------- Highlights ---------- */

.highlights { padding-bottom: 8px; }
.highlights-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
}
.highlight { display: flex; gap: 14px; padding: 24px; background: var(--surface); }
.highlight-icon {
    display: grid;
    place-items: center;
    width: 46px; height: 46px;
    border-radius: 14px;
    background: var(--brand-soft);
    color: var(--brand);
    flex-shrink: 0;
}
.highlight-icon .icon { width: 22px; height: 22px; }
.highlight-title { font-family: var(--font-body); font-size: 1rem; font-weight: 600; margin: 2px 0 4px; letter-spacing: 0; }
.highlight p { margin: 0; color: var(--muted); font-size: .92rem; line-height: 1.5; }

@media (max-width: 960px) { .highlights-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) {
    .highlights-grid { grid-template-columns: 1fr; }
    .highlight { padding: 18px; }
}

/* ---------- Apartment cards ---------- */

/* Flex rather than grid so an incomplete last row is centred. */
.apt-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 24px; }
.apt-grid > .apt-card { flex: 0 1 calc((100% - 48px) / 3); }
@media (max-width: 1000px) { .apt-grid > .apt-card { flex-basis: calc((100% - 24px) / 2); } }
@media (max-width: 620px) { .apt-grid > .apt-card { flex-basis: 100%; } }

.apt-card {
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: box-shadow .25s, transform .25s;
}
.apt-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }

.apt-card-media { position: relative; display: block; aspect-ratio: 4 / 3; background: var(--tint); overflow: hidden; }
.apt-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.apt-card:hover .apt-card-media img { transform: scale(1.04); }
.apt-card-badge {
    position: absolute;
    top: 12px; left: 12px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .92);
    color: var(--ink);
    font-size: .8rem;
    font-weight: 600;
}

.apt-card-body { display: flex; flex-direction: column; flex: 1; padding: 20px 20px 18px; }
.apt-card-title { font-size: 1.3rem; margin-bottom: 10px; }
.apt-card-title a { color: var(--ink); text-decoration: none; }
.apt-card-title a::after { content: ""; position: absolute; inset: 0; }
.apt-card { position: relative; }
.apt-card-title a:hover { color: var(--brand); }

.apt-card-facts { list-style: none; margin: 0 0 18px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 14px; color: var(--muted); font-size: .88rem; }
.apt-card-facts li { display: inline-flex; align-items: center; gap: 6px; }

.apt-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid var(--line);
}
.apt-card-footer .btn { position: relative; z-index: 1; min-height: 40px; padding: 8px 16px; font-size: .88rem; }
.apt-card-price { display: flex; flex-direction: column; line-height: 1.2; }
.price-label { font-size: .75rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.price-value { font-weight: 700; font-size: 1.25rem; color: var(--ink); }
.price-value small { font-weight: 500; font-size: .85rem; color: var(--muted); }
.price-request { font-size: 1rem; color: var(--accent); }

/* ---------- Split layouts ---------- */

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.split-wide { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: start; }
.split-copy p { color: var(--ink-soft); }
@media (max-width: 900px) { .split, .split-wide { grid-template-columns: 1fr; } }

.photo-frame { position: relative; margin: 0; }
.photo-frame img { width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow); aspect-ratio: 6 / 5; object-fit: cover; }
.photo-frame figcaption { margin-top: 12px; color: var(--muted); font-size: .9rem; }

.nap-card {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 16px 18px;
    border-left: 3px solid var(--brand);
    background: var(--surface);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-size: .95rem;
    color: var(--ink-soft);
}
.nap-card strong { color: var(--ink); }

/* ---------- Reviews ---------- */

.reviews-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 24px; flex-wrap: wrap; }

.score-card { display: flex; align-items: center; gap: 14px; }
.score-value {
    display: grid;
    place-items: center;
    width: 64px; height: 56px;
    border-radius: 14px 14px 14px 4px;
    background: var(--brand);
    color: #fff;
    font-weight: 700;
    font-size: 1.5rem;
}
.score-label { display: block; font-weight: 700; font-size: 1.15rem; }
.score-meta { display: block; color: var(--muted); font-size: .9rem; }

.slider-controls { display: flex; gap: 8px; }

.reviews-track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: calc((100% - 48px) / 3);
    gap: 24px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    padding: 4px 4px 12px;
    margin: -4px;
}
.reviews-track::-webkit-scrollbar { display: none; }
@media (max-width: 1000px) { .reviews-track { grid-auto-columns: calc((100% - 24px) / 2); } }
@media (max-width: 640px) { .reviews-track { grid-auto-columns: 86%; gap: 14px; } }

.review-card {
    scroll-snap-align: start;
    margin: 0;
    padding: 24px;
    background: var(--surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
}
.section-tinted .review-card { box-shadow: none; }
.review-top { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.review-avatar {
    display: grid;
    place-items: center;
    width: 44px; height: 44px;
    border-radius: 50%;
    background: var(--brand-soft);
    color: var(--brand);
    font-weight: 700;
    font-size: 1.1rem;
    flex-shrink: 0;
}
.review-who { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.review-name { font-weight: 600; }
.review-flag { font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif; }
.review-date { color: var(--muted); font-size: .85rem; }
.review-score {
    margin-left: auto;
    padding: 4px 9px;
    border-radius: 8px 8px 8px 2px;
    background: var(--brand);
    color: #fff;
    font-weight: 700;
    font-size: .9rem;
}
.review-card blockquote { margin: 0; }
.review-title { font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; margin-bottom: 8px; color: var(--ink); }
.review-text { color: var(--ink-soft); margin: 0; display: -webkit-box; -webkit-line-clamp: 7; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- Location ---------- */

.distance-list {
    list-style: none;
    margin: 24px 0 0;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.distance-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    background: var(--surface);
    border-radius: var(--radius-sm);
}
.distance-icon { display: grid; place-items: center; color: var(--brand); }
.distance-name { font-size: .92rem; color: var(--ink-soft); }
.distance-value { margin-left: auto; font-weight: 700; font-size: .92rem; white-space: nowrap; }
@media (max-width: 480px) { .distance-list { grid-template-columns: 1fr; } }

.map-frame { border-radius: var(--radius-lg); overflow: hidden; background: #e8e4dc; box-shadow: var(--shadow-sm); min-height: 360px; height: 100%; }
.map-frame iframe { display: block; width: 100%; height: 100%; min-height: 360px; border: 0; }
.map-frame-wide { height: 420px; }

/* ---------- Things to do ---------- */

.activity-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 1000px) { .activity-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .activity-grid { grid-template-columns: 1fr; } }

.activity-card { background: var(--surface); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.activity-card img { width: 100%; aspect-ratio: 36 / 25; object-fit: cover; }
.activity-body { padding: 18px; }
.activity-body h3 { font-size: 1.1rem; margin-bottom: 6px; }
.activity-body p { margin: 0; color: var(--muted); font-size: .92rem; line-height: 1.55; }

/* ---------- FAQ ---------- */

.faq-wrap { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(24px, 5vw, 64px); align-items: start; }
.faq-wrap .section-head { position: sticky; top: calc(var(--header-h) + 32px); }
@media (max-width: 900px) {
    .faq-wrap { grid-template-columns: 1fr; }
    .faq-wrap .section-head { position: static; }
}

.faq-list { display: grid; gap: 10px; }
.faq-item { background: var(--surface); border-radius: var(--radius); padding: 0 20px; }
.faq-item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 0;
    cursor: pointer;
    list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary h3 { font-family: var(--font-body); font-size: 1rem; font-weight: 600; margin: 0; letter-spacing: 0; line-height: 1.4; }
.faq-item summary .icon { color: var(--brand); transition: transform .2s; }
.faq-item[open] summary .icon { transform: rotate(180deg); }
.faq-item p { margin: 0; padding: 0 0 20px; color: var(--ink-soft); }

/* ---------- CTA band ---------- */

.cta-band { background: var(--brand-dark); color: #fff; padding: clamp(48px, 7vw, 80px) 0; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin-bottom: 8px; }
.cta-band p { margin: 0; color: rgba(255, 255, 255, .78); max-width: 560px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Footer ---------- */

.site-footer { background: #13231e; color: rgba(255, 255, 255, .72); padding: 64px 0 24px; font-size: .95rem; }
.site-footer a { color: rgba(255, 255, 255, .85); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }

.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.3fr 1fr; gap: 40px; }
@media (max-width: 960px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; gap: 32px; } }

.footer-brand p { margin-top: 16px; max-width: 320px; }
.footer-profiles { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; }
.footer-profiles span { width: 100%; font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; color: rgba(255, 255, 255, .5); }

.footer-col h2 { font-family: var(--font-body); font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .14em; color: rgba(255, 255, 255, .5); margin-bottom: 16px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-langs { grid-template-columns: 1fr 1fr; }

.footer-contact p { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 10px; }
.footer-contact .icon { margin-top: 3px; color: rgba(255, 255, 255, .5); }

.footer-bottom { margin-top: 48px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .85rem; color: rgba(255, 255, 255, .5); }

/* ---------- Page hero (inner pages) ---------- */

.page-hero { padding: clamp(28px, 5vw, 56px) 0 8px; }
.page-hero h1 { margin-bottom: 12px; }

.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0 0 16px; padding: 0; font-size: .88rem; color: var(--muted); }
.breadcrumbs li:not(:last-child)::after { content: "›"; margin-left: 6px; color: var(--line); }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--brand); text-decoration: underline; }

/* ---------- Apartment page ---------- */

.apt-page { padding-top: 24px; padding-bottom: 64px; }

.apt-header { margin-bottom: 20px; }
.apt-header h1 { font-size: clamp(1.9rem, 1.4rem + 2vw, 2.8rem); margin-bottom: 8px; }
.apt-header-sub { color: var(--muted); font-weight: 500; }
.apt-header-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; color: var(--muted); font-size: .95rem; }
.apt-header-meta a { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-soft); }
.meta-rating .icon { color: var(--star); }

.gallery {
    position: relative;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: 220px 220px;
    gap: 8px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 36px;
}
.gallery-item { padding: 0; border: 0; background: var(--tint); cursor: zoom-in; overflow: hidden; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s, filter .3s; }
.gallery-item:hover img { transform: scale(1.03); filter: brightness(.94); }
.gallery-item:first-child { grid-row: 1 / 3; }
.gallery-count-1 { grid-template-columns: 1fr; grid-template-rows: 440px; }
.gallery-count-2 { grid-template-columns: 1fr 1fr; grid-template-rows: 440px; }
.gallery-count-2 .gallery-item:first-child, .gallery-count-1 .gallery-item:first-child { grid-row: auto; }
.gallery-count-3 { grid-template-columns: 2fr 1fr; }
.gallery-count-4 { grid-template-columns: 2fr 1fr 1fr; }
.gallery-count-4 .gallery-item:last-of-type { grid-column: 2 / 4; }
.gallery-all { position: absolute; right: 16px; bottom: 16px; min-height: 40px; font-size: .88rem; }

@media (max-width: 760px) {
    .gallery {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        margin: 0 calc(var(--gutter) * -1) 28px;
        border-radius: 0;
        gap: 4px;
        scrollbar-width: none;
    }
    .gallery::-webkit-scrollbar { display: none; }
    .gallery-item { flex: 0 0 88%; height: 280px; scroll-snap-align: center; }
    .gallery-count-1 .gallery-item { flex-basis: 100%; }
    .gallery-all { position: sticky; right: 12px; bottom: 12px; align-self: flex-end; margin-left: -150px; flex-shrink: 0; }
}

.apt-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: clamp(32px, 5vw, 64px); align-items: start; }
@media (max-width: 960px) { .apt-layout { grid-template-columns: 1fr; } }

.fact-list {
    list-style: none;
    margin: 0 0 8px;
    padding: 0 0 28px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    border-bottom: 1px solid var(--line);
}
.fact-list li { display: flex; flex-direction: column; gap: 8px; padding: 16px; background: var(--surface); border-radius: var(--radius); font-size: .9rem; color: var(--muted); }
.fact-list .icon { width: 24px; height: 24px; color: var(--brand); }
.fact-list strong { color: var(--ink); font-size: 1.05rem; }
@media (max-width: 560px) { .fact-list { grid-template-columns: 1fr 1fr; } }

.apt-section { padding: 32px 0; border-bottom: 1px solid var(--line); }
.apt-section:last-child { border-bottom: 0; }
.apt-section h2 { font-size: clamp(1.4rem, 1.2rem + .8vw, 1.8rem); margin-bottom: 18px; }
.apt-section-full { border-bottom: 0; padding-top: 48px; }

.prose { color: var(--ink-soft); max-width: 720px; }
.prose p:last-child { margin-bottom: 0; }

.key-features { list-style: none; margin: 24px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.key-features li { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); font-size: .92rem; font-weight: 500; }
.key-features .icon { color: var(--brand); }
@media (max-width: 640px) { .key-features { grid-template-columns: 1fr 1fr; } }

.amenity-list { list-style: none; margin: 0 0 20px; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 16px 28px; }
.amenity-list li { display: flex; gap: 14px; align-items: flex-start; }
.amenity-list .icon { width: 24px; height: 24px; color: var(--ink-soft); }
.amenity-list small { display: block; color: var(--muted); font-size: .85rem; }
.amenity-list li.is-extra { display: none; }
.amenity-list.is-expanded li.is-extra { display: flex; }
@media (max-width: 560px) { .amenity-list { grid-template-columns: 1fr; } }

.rule-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 28px; }
.rule-list li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink-soft); }
.rule-list .icon { margin-top: 3px; color: var(--brand); }
@media (max-width: 560px) { .rule-list { grid-template-columns: 1fr; } }

/* Booking card */

.apt-aside { position: sticky; top: calc(var(--header-h) + 20px); }
@media (max-width: 960px) { .apt-aside { position: static; } }

.booking-card { padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.booking-card-head { margin-bottom: 18px; }
.booking-card-head h2 { font-size: 1.35rem; margin: 0; }
.booking-from { margin: 0 0 4px; color: var(--muted); }
.booking-from strong { color: var(--ink); font-size: 1.5rem; }

.price-lines { margin: 4px 0 18px; padding: 14px 0 0; border-top: 1px dashed var(--line); font-size: .92rem; }
.price-lines div { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; }
.price-lines dt { color: var(--muted); }
.price-lines dd { margin: 0; color: var(--success); font-weight: 600; }
.price-lines .price-total { margin-top: 8px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 1.05rem; }
.price-lines .price-total dt { color: var(--ink); font-weight: 600; }
.price-lines .price-total dd { color: var(--ink); font-weight: 700; }

.booking-note { display: flex; gap: 8px; margin: 12px 0 0; font-size: .85rem; color: var(--muted); }
.booking-note .icon { color: var(--brand); margin-top: 2px; }

.booking-contact { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); font-size: .88rem; color: var(--muted); }
.booking-contact span { width: 100%; }
.booking-contact a { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-decoration: none; }

.alert { display: flex; gap: 12px; padding: 16px; border-radius: var(--radius); }
.alert p { margin: 4px 0 0; }
.alert-success { background: #e8f5ee; color: #14532d; }
.alert-success .icon { width: 22px; height: 22px; margin-top: 2px; }
.alert-error { display: block; margin-bottom: 16px; background: #fdecea; color: #8a1c13; font-size: .92rem; }
.alert-error ul { margin: 6px 0 0; padding-left: 18px; }

.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: #c0392b; }

/* Honeypot: off-screen rather than display:none, which some bots detect. */
.hp-field { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.cf-turnstile { margin-bottom: 14px; }

.apt-grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 1000px) { .apt-grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .apt-grid-3 { grid-template-columns: 1fr; } }

/* Mobile booking bar */

.mobile-book-bar { display: none; }
@media (max-width: 960px) {
    .mobile-book-bar {
        position: fixed;
        left: 0; right: 0; bottom: 0;
        z-index: 40;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom));
        background: var(--surface);
        border-top: 1px solid var(--line);
        box-shadow: 0 -6px 24px rgba(28, 42, 38, .08);
        transition: transform .25s;
    }
    .mobile-book-bar.is-hidden { transform: translateY(110%); }
    .mobile-book-bar strong { font-size: 1.2rem; }
    .mobile-book-bar span { color: var(--muted); }
    .page-apartment .site-footer { padding-bottom: 96px; }
}

/* Lightbox */

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: grid;
    grid-template-rows: auto 1fr;
    background: rgba(12, 18, 16, .96);
    color: #fff;
}
.lightbox[hidden] { display: none; }
.lightbox-top { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; }
.lightbox-count { font-weight: 600; font-size: .95rem; }
.lightbox-stage { margin: 0; display: grid; place-items: center; padding: 0 72px 32px; min-height: 0; }
.lightbox-stage img { max-width: 100%; max-height: calc(100vh - 120px); object-fit: contain; border-radius: 8px; }
.lightbox-prev, .lightbox-next { position: absolute; top: 50%; transform: translateY(-50%); }
.lightbox-prev { left: 14px; }
.lightbox-next { right: 14px; }
@media (max-width: 640px) {
    .lightbox-stage { padding: 0 8px 80px; }
    .lightbox-prev, .lightbox-next { top: auto; bottom: 20px; transform: none; }
    .lightbox-prev { left: calc(50% - 56px); }
    .lightbox-next { right: calc(50% - 56px); }
}

/* ---------- Contact page ---------- */

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 48px); align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-channels { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.contact-channels .map-frame { grid-column: 1 / -1; min-height: 300px; }
.contact-channels .map-frame iframe { min-height: 300px; }
@media (max-width: 520px) { .contact-channels { grid-template-columns: 1fr; } }

.channel-card {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 18px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    color: var(--ink);
    text-decoration: none;
    transition: border-color .2s, box-shadow .2s;
}
.channel-card:hover { border-color: var(--brand); box-shadow: var(--shadow-sm); color: var(--ink); }
.channel-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); flex-shrink: 0; }
.channel-label { display: block; font-size: .8rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; }
.channel-value { display: block; font-weight: 600; word-break: break-word; }

.form-card { padding: clamp(22px, 3vw, 32px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.form-card h2 { font-size: 1.6rem; }
.form-card > p { color: var(--muted); }

/* ---------- Legal / prose ---------- */

.prose-legal { max-width: 820px; }
.prose-legal h2 { font-size: 1.35rem; margin-top: 2em; text-transform: capitalize; }
.prose-legal h3 { font-family: var(--font-body); font-size: 1rem; font-weight: 600; margin-top: 1.5em; letter-spacing: 0; }

/* ---------- Self check-in steps ---------- */

.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; }
.step {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: clamp(20px, 4vw, 48px);
    align-items: center;
    padding: clamp(20px, 3vw, 32px);
    background: var(--surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}
.step-number { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 700; margin-bottom: 12px; }
.step h2 { font-size: 1.35rem; }
.step p { color: var(--ink-soft); }
.step-media { margin: 0; }
.step-media img { width: 100%; border-radius: var(--radius); max-height: 360px; object-fit: cover; }
@media (max-width: 800px) { .step { grid-template-columns: 1fr; } }

.notice { display: flex; gap: 14px; align-items: flex-start; margin-top: 24px; padding: 20px; background: var(--brand-soft); border-radius: var(--radius); color: var(--brand-dark); }
.notice p { margin: 0; }
.notice .icon { width: 22px; height: 22px; margin-top: 2px; }

/* ---------- Motion preferences ---------- */

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