:root{
    --bg: #0b0c10;
    --panel: #12141b;
    --panel2: #0f1117;
    --text: #f2f4f8;
    --muted: #b5bccb;
    --line: rgba(255,255,255,.10);
    --shadow: 0 10px 30px rgba(0,0,0,.35);
    --radius: 16px;
    --radius2: 22px;
    --max: 1100px;
}

*{ box-sizing: border-box; }
html, body{ height: 100%; }
body{
    margin: 0;
    font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
    color: var(--text);
    background: radial-gradient(1200px 600px at 20% -10%, rgba(90,110,255,.18), transparent 60%),
    radial-gradient(900px 500px at 90% 10%, rgba(120,255,200,.10), transparent 60%),
    var(--bg);
    line-height: 1.45;
}

a{ color: inherit; text-decoration: none; }
a:hover{ text-decoration: underline; text-underline-offset: 3px; }

.container{
    width: min(var(--max), calc(100% - 40px));
    margin: 0 auto;
}

.skip-link{
    position: absolute; left: -999px; top: auto;
    width: 1px; height: 1px; overflow: hidden;
}
.skip-link:focus{
    left: 20px; top: 20px; width: auto; height: auto;
    background: var(--panel); padding: 10px 12px;
    border: 1px solid var(--line); border-radius: 10px;
    z-index: 9999;
}

.site-header{
    position: sticky; top: 0; z-index: 50;
    backdrop-filter: blur(10px);
    background: rgba(11,12,16,.65);
    border-bottom: 1px solid var(--line);
}
.header-inner{
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 0;
    gap: 16px;
}

.brand{
    display: flex; align-items: center; gap: 12px;
    min-width: 220px;
}
.brand-mark{
    width: 38px; height: 38px; border-radius: 12px;
    background: linear-gradient(135deg, rgba(90,110,255,.9), rgba(120,255,200,.7));
    box-shadow: var(--shadow);
}
.brand-name{ font-weight: 650; letter-spacing: .2px; }
.brand-sub{ color: var(--muted); font-size: 13px; margin-top: 2px; }

.nav{
    display: flex; align-items: center; gap: 14px;
    flex-wrap: wrap;
    justify-content: flex-end;
}
.nav a{ color: var(--muted); font-size: 14px; padding: 8px 10px; border-radius: 10px; }
.nav a:hover{ color: var(--text); text-decoration: none; background: rgba(255,255,255,.06); }
.nav .nav-cta{
    color: var(--text);
    border: 1px solid rgba(255,255,255,.18);
    background: rgba(255,255,255,.06);
}

.hero{
    position: relative;
    min-height: 72vh;
    display: grid;
    align-items: center;
    padding: 36px 0 30px;
}
.hero-bg{
    position: absolute;
    inset: 0;
    background:
            linear-gradient(180deg, rgba(11,12,16,.35), rgba(11,12,16,.92)),
            url("img/webp/hero.webp");
    background-size: cover;
    background-position: center;
    filter: saturate(1.05);
}
.hero-inner{ position: relative; z-index: 1; }

.hero-card{
    width: min(640px, 100%);
    background: rgba(18,20,27,.5);
    border: 1px solid var(--line);
    border-radius: var(--radius2);
    padding: 22px;
    box-shadow: var(--shadow);
}

h1{
    margin: 0 0 10px;
    font-size: clamp(28px, 5vw, 44px);
    line-height: 1.05;
    letter-spacing: -0.5px;
}
.hero-tagline{
    margin: 0 0 14px;
    color: var(--muted);
    font-size: 16px;
}
.nowrap{ white-space: nowrap; }

.hero-bullets{
    margin: 0 0 18px;
    padding: 0;
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 14px;
    color: var(--text);
}
.hero-bullets li{
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(255,255,255,.05);
    font-size: 14px;
}

.hero-actions{ display: flex; gap: 10px; flex-wrap: wrap; }
.btn{
    display: inline-flex; align-items: center; justify-content: center;
    gap: 10px;
    padding: 11px 14px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,.16);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    user-select: none;
    text-decoration: none;
}
.btn:hover{ text-decoration: none; filter: brightness(1.06); }
.btn-primary{
    background: linear-gradient(135deg, rgba(90,110,255,.9), rgba(120,255,200,.65));
    color: #071018;
    border-color: rgba(255,255,255,.10);
}
.btn-ghost{
    background: rgba(255,255,255,.06);
    color: var(--text);
}
.hero-note{
    margin-top: 12px;
    font-size: 12px;
    color: var(--muted);
}

.section{
    padding: 54px 0;
}
.section-alt{
    background: rgba(255,255,255,.03);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}
.section-head{
    display: grid;
    gap: 8px;
    margin-bottom: 18px;
}
.section-head h2{
    margin: 0;
    font-size: 24px;
    letter-spacing: -0.2px;
}
.section-head p{
    margin: 0;
    color: var(--muted);
}

.gallery{
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}
.tile{
    border: 1px solid var(--line);
    background: rgba(255,255,255,.04);
    border-radius: 16px;
    padding: 0;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 4/3;
    box-shadow: 0 8px 24px rgba(0,0,0,.22);
}
.tile img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;

    /* The most powerful way to fix aliasing during scale/scroll */
    will-change: transform;

    /* Helps with "shimmering" or jagged edges on Windows/Chrome */
    image-rendering: auto;
    -webkit-transform-style: preserve-3d;
    transform: scale(1);
    transition: transform .3s ease-out;
}
.tile:hover img{
    transform: scale(1.05);
}

.section-cta{
    margin-top: 16px;
    display: flex;
    justify-content: center;
}
.section-cta.left{ justify-content: flex-start; }

.grid-two{
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    align-items: start;
}

.map-wrap{
    height: 100%
}

.card{
    border: 1px solid var(--line);
    background: rgba(18,20,27,.6);
    border-radius: var(--radius2);
    padding: 18px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(10px);
}
.card h3{
    margin: 0 0 10px;
    font-size: 16px;
}
.card p{ margin: 0 0 10px; }
.card-wide{ margin-top: 14px; }

.list{
    margin: 0;
    padding-left: 16px;
    color: var(--text);
    a {
        text-decoration: underline;
    }
}
.list li{ margin: 6px 0; }

.chips{
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.chips li{
    padding: 8px 10px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(255,255,255,.05);
    font-size: 13px;
    color: var(--text);
}

.rules{
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 12px;
}
.rule{
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 12px;
    background: rgba(255,255,255,.04);
    a {
        text-decoration: underline;
    }
}
.rule-title{ font-weight: 650; font-size: 13px; margin-bottom: 4px; }

.site-footer{
    padding: 26px 0;
    border-top: 1px solid var(--line);
    background: rgba(11,12,16,.85);
}
.footer-inner{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
}
.footer-title{ font-weight: 650; }
.footer-right{
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.footer-right a{
    color: var(--muted);
    padding: 8px 10px;
    border-radius: 10px;
}
.footer-right a:hover{
    color: var(--text);
    text-decoration: none;
    background: rgba(255,255,255,.06);
}

/* Lightbox Styles */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.lightbox[aria-hidden="false"] {
    opacity: 1;
    pointer-events: auto;
}

.lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(4px);
}

.lightbox-content {
    position: relative;
    z-index: 1;    max-width: 90%;
    max-height: 90%;
}

.lightbox-content img {
    display: block;
    max-width: 100%;
    max-height: 90vh;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: white;
    font-size: 32px;
    cursor: pointer;
    line-height: 1;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    font-size: 48px;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.2s;
    z-index: 2;
}

.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.2);
}

.lightbox-nav.prev { left: -80px; }
.lightbox-nav.next { right: -80px; }

/* Responsive adjustment for small screens */
@media (max-width: 768px) {
    .lightbox-nav.prev { left: 10px; }
    .lightbox-nav.next { right: 10px; }
    .lightbox-nav { background: rgba(0, 0, 0, 0.3); }
}

/* Prevent scrolling when lightbox is open */
body.no-scroll {
    overflow: hidden;
}

@media (max-width: 600px) {
    .header-inner {
        padding: 10px 0;
        gap: 8px;
    }
    .brand {
        min-width: auto;
        gap: 8px;
    }
    .brand-mark {
        width: 30px;
        height: 30px;
        border-radius: 8px;
    }
    .brand-sub {
        display: none; /* Hide 'Vakantiewoning te huur' on mobile */
    }
    .nav {
        gap: 4px;
    }
    .nav a {
        font-size: 13px;
        padding: 6px 8px;
    }

    .hero-actions {
        margin-top: 20px;
    }

    .grid-two {
        grid-template-columns: 1fr;
    }

    /*!* Hero improvements for mobile *!*/
    .hero {
        min-height: 85vh;
        align-items: flex-end;
        padding-bottom: 40px;
    }
    .hero-bg {
        /* Remove the dark overlay almost entirely at the top */
        background-image:
                linear-gradient(to bottom, transparent 0%, rgba(11,12,16,0.5) 50%, var(--bg) 100%),
                url("img/webp/hero.webp");
    }
    .hero-card {
        background: transparent; /* Remove the card box on mobile */
        border: none;
        backdrop-filter: none;
        box-shadow: none;
        padding: 0;
        text-shadow: 0 2px 10px rgba(0,0,0,0.5); /* Keep text readable over image */
    }
    .hero-tagline {
        color: #fff; /* Brighter for contrast */
        font-size: 18px;
    }
    .hero-bullets {
        /*display: none; !* Hide these just for the hero on mobile to save massive space *!*/
    }
    .hero-actions {
        margin-top: 20px;
    }
}

    /*!* Hero improvements for mobile *!*/
    /*.hero {*/
    /*    min-height: 80vh;*/
    /*    align-items: flex-end;*/
    /*    padding-bottom: 20px;*/
    /*}*/
    /*.hero-bg {*/
    /*    !* Remove the dark overlay almost entirely at the top *!*/
    /*    background-image:*/
    /*            linear-gradient(to bottom, transparent 0%, rgba(11,12,16,0.5) 50%, var(--bg) 100%),*/
    /*            url("img/webp/hero.webp");*/
    /*}*/
    /*.hero-card {*/
    /*    background: transparent; !* Remove the card box on mobile *!*/
    /*    border: none;*/
    /*    backdrop-filter: none;*/
    /*    box-shadow: none;*/
    /*    padding: 0;*/
    /*    text-shadow: 0 2px 10px rgba(0,0,0,0.5); !* Keep text readable over image *!*/
    /*}*/
    /*.hero-tagline {*/
    /*    color: #fff; !* Brighter for contrast *!*/
    /*    font-size: 18px;*/
    /*}*/
    /*.hero-bullets {*/
    /*    display: none; !* Hide these just for the hero on mobile to save massive space *!*/
    /*}*/
    /*.hero-actions {*/
    /*    margin-top: 20px;*/
    /*}*/
