/* =========================
   Design tokens
   ========================= */
:root {
    --bg: #fff;
    --text: #0f172a;
    --muted: #f6f7fb;
    --line: #e6e8ef;
    --brand: #111827;
    --radius: 14px;
    --radius-lg: 16px;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .04);
    --header-h: 64px;
    /* sticky header height (desktop) */
}

@media (max-width:820px) {
    :root {
        --header-h: 56px
    }
}

/* Anchor offset so in-page links don't hide under header */
section[id] {
    scroll-margin-top: calc(var(--header-h) + 16px);
}

/* =========================
   Base / reset / focus
   ========================= */
* {
    box-sizing: border-box
}

html {
    -webkit-text-size-adjust: 100%
}

html,
body {
    margin: 0;
    padding: 0
}

body {
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, Inter, Arial, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6
}

img,
video {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius)
}

:focus {
    outline: 2px solid #111;
    outline-offset: 2px
}

:focus:not(:focus-visible) {
    outline: none
}

:focus-visible {
    outline: 3px solid #111;
    outline-offset: 2px
}

::placeholder {
    color: #64748b
}

/* Skip link */
.skip-link {
    position: absolute;
    left: -9999px;
    background: #111;
    color: #fff;
    padding: 10px 14px;
    border-radius: 10px
}

.skip-link:focus {
    left: 16px;
    top: 16px;
    z-index: 1000
}

/* =========================
   Layout
   ========================= */
.container {
    max-width: 1100px;
    margin-inline: auto;
    padding: 0 16px
}

.row {
    display: flex;
    gap: 16px
}

.row.center {
    align-items: center
}

.row.between {
    justify-content: space-between
}

.grid {
    display: grid;
    gap: 24px
}

.grid.two,
.grid.three {
    grid-template-columns: 1fr
}

@media (min-width:800px) {
    .grid.two {
        grid-template-columns: 1fr 1fr
    }

    .grid.three {
        grid-template-columns: repeat(3, 1fr)
    }
}

.section {
    padding: 56px 0
}

.section-muted {
    background: var(--muted);
    padding: 56px 0
}

/* =========================
   HERO
   ========================= */
.hero {
    position: relative;
    overflow: hidden;
    background: #000
}

.hero picture,
.hero img {
    display: block;
    width: 100%;
    height: clamp(420px, 68vh, 760px);
    object-fit: contain;
    object-position: center 55%
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, .25), rgba(0, 0, 0, .5) 60%, rgba(0, 0, 0, .5));
    pointer-events: none
}

.hero .hero-content {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: stretch;
    text-align: center;
    color: #fff;
    padding: 0 16px;
    z-index: 1
}

.frame-safe {
    position: absolute;
    inset: clamp(28px, 6vw, 88px);
    display: grid;
    place-items: center;
    text-align: center;
    color: #fff
}

.hero-panel {
    background: rgba(0, 0, 0, .45);
    backdrop-filter: saturate(1.05) blur(1.5px);
    padding: clamp(12px, 2.4vw, 22px) clamp(16px, 3vw, 28px);
    border-radius: 14px;
    box-shadow: 0 6px 30px rgba(0, 0, 0, .35);
    max-width: min(900px, 92%);
    margin: auto
}

.hero h1 {
    font-size: clamp(28px, 4.8vw, 44px);
    line-height: 1.15;
    margin: 0 0 8px
}

.lead {
    color: #475569
}

/* readable on light sections */
.hero .lead {
    color: #e5e7eb
}

/* light text only on dark hero */
.hero .btn {
    margin-top: 10px
}

@media (max-width:768px) {

    .hero picture,
    .hero img {
        object-fit: cover;
        object-position: center 48%
    }

    .frame-safe {
        inset: clamp(16px, 4.5vw, 28px)
    }

    .hero-panel {
        padding: 12px 16px;
        background: rgba(0, 0, 0, .5)
    }

    .hero h1 {
        font-size: clamp(22px, 7vw, 30px)
    }

    .actions {
        gap: 8px
    }

    .btn {
        padding: 10px 14px
    }
}

/* =========================
   Header / nav
   ========================= */
.site-header {
    position: sticky;
    top: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    z-index: 20
}

.site-header .container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: var(--header-h)
}

.brand {
    display: flex;
    gap: 8px;
    align-items: center;
    font-weight: 700;
    color: inherit;
    text-decoration: none
}

.brand .logo {
    font-size: 20px
}

.brand-mark {
    height: 44px;
    width: auto;
    display: block
}

.nav a {
    margin-left: 14px;
    text-decoration: none;
    color: #334155;
    line-height: 1
}

.nav a.active,
.nav a:hover {
    color: #000
}

/* Dark header variant */
.site-header.is-dark {
    background: #000;
    border-bottom: 1px solid rgba(255, 255, 255, .08)
}

.site-header.is-dark .brand {
    color: #fff
}

.site-header.is-dark .brand-mark {
    height: 48px
}

.site-header.is-dark .nav a {
    color: rgba(255, 255, 255, .92)
}

.site-header.is-dark .nav a:hover,
.site-header.is-dark .nav a.active {
    color: #fff
}

.site-header.is-dark .menu-toggle {
    color: #fff
}

@media (max-width:820px) {
    .site-header.is-dark .brand-mark {
        height: 28px
    }
}

/* Mobile trigger + popover */
.menu-toggle {
    display: none;
    background: transparent;
    border: 0;
    font-size: 1.5rem
}

.menu-toggle:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 2px
}

@media (max-width:820px) {
    .menu-toggle {
        display: inline-block;
        position: relative;
        z-index: 21
    }

    .nav {
        position: absolute;
        right: 12px;
        top: calc(100% + 8px);
        width: min(78vw, 280px);
        background: #fff;
        border: 1px solid #e5e7eb;
        border-radius: 14px;
        padding: 8px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, .12);
        z-index: 20;
        display: grid;
        gap: 6px;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateY(-6px) scale(.98);
        transition: opacity .15s ease, transform .15s ease, visibility 0s .15s;
    }

    .nav.is-open {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: none;
        transition-delay: 0s
    }

    .nav::before {
        content: "";
        position: absolute;
        top: -8px;
        right: 22px;
        border: 8px solid transparent;
        border-bottom-color: #fff;
        filter: drop-shadow(0 -1px 0 rgba(0, 0, 0, .05))
    }

    .nav a {
        display: block;
        padding: 10px 14px;
        border-radius: 10px
    }

    .nav a:hover {
        background: #f1f5f9
    }

    .nav a.active {
        background: #eef2ff
    }

    /* Dark menu when header is dark */
    .site-header.is-dark .nav {
        background: #0b0f14;
        border-color: rgba(255, 255, 255, .14)
    }

    .site-header.is-dark .nav::before {
        border-bottom-color: #0b0f14;
        filter: none
    }

    .site-header.is-dark .nav a {
        color: #fff
    }

    .site-header.is-dark .nav a:hover {
        background: #111827
    }

    .site-header.is-dark .nav a.active {
        background: #0f172a
    }
}

/* =========================
   Controls
   ========================= */
.actions {
    display: flex;
    gap: 10px;
    margin-top: 16px
}

.btn {
    display: inline-block;
    border: 1px solid var(--line);
    padding: 10px 16px;
    border-radius: 999px;
    background: #fff;
    color: #111
}

.btn:hover {
    background: #fafafa
}

.btn-primary {
    background: var(--brand);
    color: #fff;
    border-color: var(--brand)
}

.chip {
    border: 1px solid var(--line);
    padding: 6px 10px;
    border-radius: 999px;
    background: #fff;
    cursor: pointer
}

.chip.is-active,
.chip:hover {
    background: #111;
    color: #fff;
    border-color: #111
}

.btn,
.chip,
.icon-btn {
    min-height: 44px
}

.icon-btn {
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 10px;
    padding: 6px 10px;
    cursor: pointer
}

.icon-btn:focus-visible,
.btn:focus-visible {
    box-shadow: 0 0 0 3px rgba(0, 0, 0, .3)
}

.contact-chips {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    padding: 0;
    margin: 16px 0 0;
    list-style: none;
    color: #475569
}

/* =========================
   Cards / grids
   ========================= */
.card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm)
}

.card-body {
    padding: 14px
}

/* unified card media height */
.card .block img {
    height: clamp(160px, 24vw, 220px);
    object-fit: cover
}

/* =========================
   Stats
   ========================= */
.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    padding: 0;
    margin: 0;
    list-style: none
}

.stats li {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 16px;
    text-align: center
}

.stats strong {
    font-size: 24px;
    display: block
}

.stats span {
    color: #64748b
}

/* =========================
   Testimonials scroller
   ========================= */
.header-with-controls {
    margin-bottom: 12px
}

.scroller {
    display: grid;
    grid-auto-flow: column;
    gap: 16px;
    overflow: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 6px;
    grid-auto-columns: clamp(240px, 85%, 340px)
}

.scroller:focus {
    outline: 2px solid #000
}

@media (min-width:800px) {
    .scroller {
        grid-auto-columns: clamp(260px, 33%, 360px)
    }
}

.testimonial {
    padding: 18px;
    scroll-snap-align: start
}

.stars {
    letter-spacing: 3px;
    color: #eab308;
    margin-bottom: 8px
}

.scroll-controls {
    display: flex;
    gap: 6px
}

/* =========================
   Forms
   ========================= */
.form {
    padding: 18px
}

.form label {
    display: block;
    margin-bottom: 12px
}

.form label span {
    display: block;
    font-size: 14px;
    color: #334155;
    margin-bottom: 6px
}

.form input,
.form select,
.form textarea {
    width: 100%;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid var(--line);
    font: inherit
}

.form .row.two {
    display: grid;
    gap: 12px;
    grid-template-columns: 1fr
}

@media (min-width:700px) {
    .form .row.two {
        grid-template-columns: 1fr 1fr
    }
}

.form-note {
    font-size: 12px;
    color: #64748b;
    margin-top: 8px
}

.status {
    margin-top: 10px;
    min-height: 1.2em;
    font-size: 14px
}

/* =========================
   Properties / Rentals
   ========================= */
.badge {
    font-size: .75rem;
    text-align: center;
    padding: 2px 8px;
    border-radius: 999px;
    background: #eef2ff;
    color: #3730a3
}

.rental img {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0
}

#airbnbGrid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    align-items: start
}

.card.stay {
    border-radius: 16px
}

.card.stay img {
    width: 100%;
    height: clamp(150px, 38vw, 220px);
    object-fit: cover;
    display: block;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0
}

.card.stay .card-body {
    padding: 12px 14px
}

.card.stay h3 {
    font-size: 1rem;
    margin: 0 0 6px
}

.card.stay .tags {
    font-size: .9rem
}

.card.stay .btn {
    padding: 8px 12px;
    font-size: .875rem
}

@media (min-width:1100px) {
    #stays .container {
        max-width: 1000px
    }
}

/* =========================
   Lightbox
   ========================= */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .75);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
    z-index: 1000
}

.lightbox.is-open {
    display: flex
}

.lightbox-dialog {
    position: relative;
    max-width: min(92vw, 1100px);
    width: 100%
}

.lightbox-img {
    width: 100%;
    max-height: 80vh;
    min-height: 220px;
    object-fit: contain;
    background: #000;
    border-radius: 12px
}

.lightbox-btn[data-lightbox="prev"],
.lightbox-btn[data-lightbox="next"] {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2
}

.lightbox-btn[data-lightbox="prev"] {
    left: -8px
}

.lightbox-btn[data-lightbox="next"] {
    right: -8px
}

.lightbox-btn {
    background: #fff;
    border-radius: 999px;
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .3);
    cursor: pointer
}

.lightbox-btn:focus-visible {
    outline: 3px solid #111;
    outline-offset: 2px
}

.lightbox-close {
    position: absolute;
    top: -12px;
    right: -12px
}

.lightbox-caption {
    color: #fff;
    margin-top: 8px;
    text-align: center
}

@media (prefers-reduced-motion:reduce) {
    .lightbox {
        transition: none
    }
}

@media (max-width:480px) {
    .lightbox-img {
        max-height: 70vh
    }

    .lightbox-close {
        top: -8px;
        right: -8px
    }
}

/* =========================
   Design: before/after slider
   ========================= */
.ba {
    position: relative;
    aspect-ratio: 3/2;
    border-radius: 16px;
    overflow: hidden
}

.ba img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover
}

/* LAYERING FIX: after behind (0), before on top (1), handle above (2) */
.ba-after {
    z-index: 0
}

.ba-before {
    z-index: 1;
    clip-path: inset(0 50% 0 0)
}

/* left half visible */
.ba-handle {
    position: absolute;
    inset: 0;
    left: 50%;
    width: 2px;
    background: #fff;
    box-shadow: 0 0 0 2px rgba(0, 0, 0, .15);
    cursor: ew-resize;
    z-index: 2;
    touch-action: none;
    user-select: none;
}

/* =========================
   Footer
   ========================= */
.site-footer {
    border-top: 1px solid var(--line);
    padding: 20px 0;
    background: #fff
}

.site-footer .credit {
    color: #64748b;
    font-size: .9rem
}

.site-footer .credit a {
    color: inherit
}

.site-footer .dot {
    margin: 0 .5ch;
    color: #cbd5e1
}

/* =========================
   Utilities
   ========================= */
.block {
    display: block
}

.m-0 {
    margin: 0
}

.text-center {
    text-align: center
}

/* Filter chips: horizontal scroll on mobile */
.filters {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 8px
}

.filters::-webkit-scrollbar {
    display: none
}

/* Links: keep no-underline look, ensure ≥3:1 contrast vs body text */
a {
    color: #0a66c2;
    text-decoration: none
}

a:hover {
    color: #084c9e
}

a:focus-visible {
    outline: 3px solid #111;
    outline-offset: 2px;
    text-decoration: none
}