/* ============================================================
   Boki Cottages — Stylesheet
   Palette: deep forest green, warm gold, cream, charcoal
   ============================================================ */

:root {
    --green:       #2e4a22;
    --green-dark:  #22361a;
    --green-light: #4a6b3a;
    --gold:        #c9a227;
    --gold-light:  #e0bc4e;
    --cream:       #faf7f0;
    --sand:        #f0ead9;
    --charcoal:    #2b2b28;
    --grey:        #6d6d66;
    --white:       #ffffff;
    --danger:      #b3402e;
    --success:     #3a7d44;
    --shadow:      0 6px 24px rgba(30, 40, 20, .12);
    --radius:      14px;
    --font-head:   'Playfair Display', Georgia, serif;
    --font-body:   'Lato', 'Segoe UI', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    color: var(--charcoal);
    background: var(--cream);
    line-height: 1.65;
    font-weight: 300;
}

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

a { color: var(--green); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--gold); }

h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 600; line-height: 1.25; color: var(--green-dark); }

.container { width: min(1180px, 92%); margin: 0 auto; }
.center { text-align: center; margin-top: 2.5rem; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-block;
    background: var(--gold);
    color: var(--green-dark);
    font-weight: 500;
    padding: .7rem 1.6rem;
    border: 2px solid var(--gold);
    border-radius: 50px;
    cursor: pointer;
    font-size: .95rem;
    font-family: var(--font-body);
    transition: all .25s ease;
    text-align: center;
}
.btn:hover { background: var(--gold-light); border-color: var(--gold-light); color: var(--green-dark); transform: translateY(-2px); }
.btn-lg { padding: .95rem 2.2rem; font-size: 1.05rem; }
.btn-block { display: block; width: 100%; }
.btn-outline { background: transparent; color: var(--white); border-color: var(--white); }
.btn-outline:hover { background: var(--white); color: var(--green-dark); }
.btn-light { background: var(--white); border-color: var(--white); color: var(--green-dark); }
.btn-light:hover { background: var(--sand); border-color: var(--sand); color: var(--green-dark); }
.btn-nav { padding: .45rem 1.3rem; margin-left: .5rem; }

/* ---------- Topbar ---------- */
.topbar {
    background: var(--green-dark);
    color: var(--sand);
    font-size: .82rem;
    padding: .45rem 0;
}
.topbar-inner { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.topbar a { color: var(--sand); }
.topbar a:hover { color: var(--gold-light); }

@media (max-width: 680px) {
    .topbar {
        display: none;
    }
}

/* ---------- Header / Nav ---------- */
.site-header {
    background: var(--white);
    box-shadow: 0 2px 12px rgba(30, 40, 20, .08);
    position: sticky;
    top: 0;
    z-index: 100;
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; padding: .8rem 0; }

.logo { display: flex; align-items: center; gap: .5rem; }
.logo-img {
    height: 46px;
    width: auto;
    object-fit: contain;
    display: block;
}
.logo-text {
    font-family: var(--font-head);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--green-dark);
    letter-spacing: .01em;
}
.logo-text:hover { color: var(--green-dark); }

.main-nav { display: flex; align-items: center; gap: 1.6rem; }
.main-nav a {
    color: var(--charcoal);
    font-weight: 400;
    font-size: .95rem;
    padding-bottom: 3px;
    border-bottom: 2px solid transparent;
}
.main-nav a:hover { color: var(--green); border-bottom-color: var(--gold); }
.main-nav a.active { color: var(--green); border-bottom-color: var(--gold); font-weight: 500; }
.main-nav .btn-nav { border-bottom: 2px solid var(--gold); padding: .45rem 1.3rem; }

.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.6rem;
    color: var(--green-dark);
    cursor: pointer;
}

/* ---------- Hero ---------- */
.hero {
    background-size: cover;
    background-position: center;
    color: var(--white);
    padding: 9rem 0 10rem;
    text-align: center;
}
.hero-title {
    font-size: clamp(2.4rem, 5.5vw, 4rem);
    color: var(--white);
    text-shadow: 0 3px 14px rgba(0, 0, 0, .4);
    margin-bottom: .6rem;
}
.hero-sub { font-size: clamp(1.05rem, 2vw, 1.35rem); font-weight: 300; text-shadow: 0 2px 8px rgba(0, 0, 0, .5); }
.hero-location { margin-top: .9rem; font-size: .98rem; opacity: .95; text-shadow: 0 2px 6px rgba(0, 0, 0, .5); }
.hero-actions { margin-top: 2.2rem; display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.fade-in { animation: fadeInUp .9s ease both; }
.fade-in:nth-child(2) { animation-delay: .15s; }
.fade-in:nth-child(3) { animation-delay: .3s; }
.fade-in:nth-child(4) { animation-delay: .45s; }
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ---------- Booking bar ---------- */
.booking-bar { margin-top: -3.2rem; position: relative; z-index: 10; }
.booking-bar-form {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1.4rem 1.6rem;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    align-items: end;
}
.booking-bar-form label { font-size: .82rem; font-weight: 500; color: var(--green-dark); display: block; }
.booking-bar-form input,
.booking-bar-form select { width: 100%; margin-top: .3rem; }

/* ---------- Forms (shared) ---------- */
input, select, textarea {
    padding: .7rem .9rem;
    border: 1px solid #d8d2c0;
    border-radius: 10px;
    font-family: var(--font-body);
    font-size: .95rem;
    background: var(--white);
    color: var(--charcoal);
    transition: border-color .2s ease, box-shadow .2s ease;
}
input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(201, 162, 39, .18);
}
label { font-size: .9rem; font-weight: 400; color: var(--charcoal); display: block; }
.form-grid { display: grid; gap: 1rem; }
.form-grid label { display: grid; gap: .35rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-note { font-size: .82rem; color: var(--grey); text-align: center; }

/* ---------- Sections ---------- */
.section { padding: 5rem 0; }
.section-alt { background: var(--sand); }

.section-heading { text-align: center; max-width: 720px; margin: 0 auto 3rem; }
.section-eyebrow {
    display: inline-block;
    color: var(--gold);
    font-weight: 600;
    font-size: .85rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    margin-bottom: .5rem;
}
.section-title { font-size: clamp(1.7rem, 3.2vw, 2.4rem); margin-bottom: .8rem; }
.section-lead { color: var(--grey); }

/* ---------- Two-column blocks ---------- */
.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3.5rem;
    align-items: center;
}
.two-col-text p { margin-bottom: 1rem; color: #45453f; }
.two-col-text .btn { margin-top: .6rem; }
.rounded-img { border-radius: var(--radius); box-shadow: var(--shadow); }

/* Story images layout */
.story-images {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.story-image-large {
    width: 100%;
    height: 350px;
    object-fit: cover;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.story-images-small {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}
.story-images-small img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

@media (max-width: 768px) {
    .story-images-small {
        grid-template-columns: 1fr;
    }
    .story-images-small img {
        height: 180px;
    }
    .story-image-large {
        height: 250px;
    }
}

@media (max-width: 960px) {
    .content-with-sidebar { grid-template-columns: 1fr; }
    .sidebar { position: static; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
    .room-row { grid-template-columns: 1fr; }
    .room-row-img img { max-height: 260px; }
    .two-col { grid-template-columns: 1fr; gap: 2rem; }
    .booking-bar-form { grid-template-columns: 1fr 1fr; }
}

/* ---------- Room cards ---------- */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

/* Rooms scrolling container */
.rooms-scroll-container {
    position: relative;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 1rem 0;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--gold) var(--sand);
}
.rooms-scroll-container::-webkit-scrollbar {
    height: 8px;
}
.rooms-scroll-container::-webkit-scrollbar-track {
    background: var(--sand);
    border-radius: 4px;
}
.rooms-scroll-container::-webkit-scrollbar-thumb {
    background: var(--gold);
    border-radius: 4px;
}
.rooms-scroll {
    display: flex;
    gap: 1.5rem;
    padding: 0 1rem;
    min-width: max-content;
}
.room-card-scroll {
    flex: 0 0 300px;
    max-width: 300px;
}
.room-card-scroll .room-card-body {
    height: 100%;
}
.room-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    transition: transform .3s ease, box-shadow .3s ease;
}
.room-card:hover { transform: translateY(-6px); box-shadow: 0 14px 34px rgba(30, 40, 20, .18); }
.room-card-img { position: relative; }
.room-card-img a { display: block; }
.room-card-img a:hover img { opacity: 0.9; }
.room-card-img img { height: 230px; width: 100%; object-fit: cover; }
.price-tag {
    position: absolute;
    bottom: .9rem;
    left: .9rem;
    background: rgba(34, 54, 26, .92);
    color: var(--gold-light);
    font-weight: 600;
    padding: .35rem .9rem;
    border-radius: 50px;
    font-size: .92rem;
}
.price-tag small, .price small { font-weight: 300; color: var(--sand); }
.price.big { font-size: 1.5rem; font-weight: 600; color: var(--green); }
.price.big small { color: var(--grey); font-size: .9rem; }
.room-card-body { padding: 1.4rem 1.4rem 1.6rem; display: flex; flex-direction: column; gap: .6rem; flex: 1; }
.room-card-body h3 { font-size: 1.3rem; }
.room-card-body h3 a { color: var(--green-dark); text-decoration: none; transition: color 0.2s ease; }
.room-card-body h3 a:hover { color: var(--gold); }
.room-card-body p { font-size: .92rem; color: #55554e; flex: 1; }
.room-meta { font-size: .88rem; color: var(--grey); }

/* ---------- Amenities ---------- */
.amenities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

/* Amenities scrolling container */
.amenities-scroll-container {
    position: relative;
    overflow: hidden;
    padding: 1rem 0;
    mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
}
.amenities-scroll {
    display: flex;
    gap: 1.5rem;
    padding: 0 1rem;
    animation: scrollAmenities 40s linear infinite;
    width: max-content;
}
@keyframes scrollAmenities {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
.amenities-scroll:hover {
    animation-play-state: paused;
}
.amenity-scroll {
    flex: 0 0 180px;
    min-width: 180px;
}

.amenity, .info-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 2rem 1.6rem;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform .3s ease;
}
.amenity:hover, .info-card:hover { transform: translateY(-5px); }
.amenity h3, .info-card h3 { margin: .7rem 0 .4rem; font-size: 1.05rem; }
.amenity p, .info-card p { font-size: .9rem; color: #55554e; }
.amenity-scroll h3 { margin: .5rem 0 .3rem; font-size: .95rem; }
.amenity-icon { font-size: 2.2rem; display: inline-block; }
.amenity-scroll .amenity-icon { font-size: 1.8rem; }
.amenity-scroll p { display: none; }

.check-list { list-style: none; margin: 1rem 0; }
.check-list li { padding: .35rem 0 .35rem 1.8rem; position: relative; }
.check-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--gold);
    font-weight: 700;
}

.amenity-chips { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; margin: .6rem 0; }
.amenity-chips li {
    background: var(--sand);
    border: 1px solid #e2dac2;
    color: var(--green-dark);
    font-size: .8rem;
    padding: .3rem .85rem;
    border-radius: 50px;
}

/* ---------- Testimonials ---------- */
.testimonial {
    background: var(--white);
    border-left: 4px solid var(--gold);
    border-radius: var(--radius);
    padding: 1.8rem 1.6rem;
    box-shadow: var(--shadow);
    font-size: .95rem;
    color: #45453f;
}
.testimonial footer { margin-top: 1rem; font-weight: 500; color: var(--green); }

/* ---------- CTA banner ---------- */
.cta {
    background-size: cover;
    background-position: center;
    color: var(--white);
    text-align: center;
    padding: 5rem 0;
}
.cta-inner h2 { color: var(--white); font-size: clamp(1.8rem, 3.5vw, 2.6rem); margin-bottom: .6rem; }
.cta-inner p { margin-bottom: 1.8rem; font-size: 1.05rem; }

/* ---------- Page banner (inner pages) ---------- */
.page-banner {
    background: linear-gradient(rgba(34, 54, 26, .88), rgba(34, 54, 26, .88)), url('../images/hero.png') center/cover;
    color: var(--white);
    padding: 4.5rem 0;
    text-align: center;
}
.page-banner h1 { color: var(--white); font-size: clamp(2rem, 4vw, 3rem); }
.page-banner p { margin-top: .4rem; opacity: .95; }
.banner-link { color: var(--gold-light); }
.banner-link:hover { color: var(--white); }

/* ---------- Layout with sidebar ---------- */
.content-with-sidebar {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 3rem;
    align-items: start;
}

/* ---------- Sidebar ---------- */
.sidebar { display: grid; gap: 1.8rem; position: sticky; top: 110px; }
.sidebar-widget {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1.5rem;
}
.widget-title {
    font-size: 1.15rem;
    padding-bottom: .7rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--sand);
}
.widget-form { display: grid; gap: .9rem; }
.widget-form label { display: grid; gap: .3rem; font-size: .88rem; }
.highlight-widget { background: var(--green); color: var(--sand); }
.highlight-widget .widget-title { color: var(--white); border-bottom-color: rgba(255,255,255,.2); }
.highlight-widget p { font-size: .9rem; margin-bottom: 1rem; }

/* ---------- Room list (rooms.php) ---------- */
.room-list { display: grid; gap: 2rem; }
.room-row {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    display: grid;
    grid-template-columns: 340px 1fr;
    align-items: stretch;
}
.room-row-img { display: flex; align-items: stretch; }
.room-row-img a { display: block; width: 100%; pointer-events: auto; }
.room-row-img a:hover img { opacity: 0.9; }
.room-row-img img { height: 100%; width: 100%; object-fit: cover; }
.room-row-body { padding: 1.6rem 1.8rem; display: flex; flex-direction: column; }
.room-row-body h2 { font-size: 1.5rem; margin-bottom: .3rem; }
.room-row-body h2 a { color: var(--green-dark); text-decoration: none; transition: color 0.2s ease; pointer-events: auto; }
.room-row-body h2 a:hover { color: var(--gold); }
.room-row-body > p { font-size: .93rem; color: #55554e; margin: .5rem 0; }
.room-row-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1.1rem;
    flex-wrap: wrap;
}
.price { font-size: 1.25rem; font-weight: 600; color: var(--green); }

.notice {
    background: #eef4e8;
    border: 1px solid #cfe0bd;
    color: var(--green-dark);
    padding: .9rem 1.2rem;
    border-radius: 10px;
    margin-bottom: 1.6rem;
    font-size: .93rem;
}
.empty-state { text-align: center; padding: 3rem 1rem; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); }
.empty-state p { margin-bottom: .5rem; }

/* ---------- Room details ---------- */
.room-gallery { margin-bottom: 1.8rem; }
.room-gallery-main {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    position: relative;
    cursor: pointer;
}
.room-main-img {
    width: 100%;
    height: 460px;
    object-fit: cover;
    display: block;
}
.room-gallery-thumbs {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 0.6rem;
    margin-top: 0.8rem;
}
.room-thumb {
    width: 100%;
    height: 70px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s ease;
}
.room-thumb:hover { border-color: var(--gold); }
.room-thumb.active { border-color: var(--green); }
.room-info { margin-top: 1.8rem; }

/* ---------- Lightbox ---------- */
.lightbox {
    display: none !important;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}
.lightbox.active { display: flex !important; }
.lightbox-img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 8px;
}
.lightbox-close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    color: white;
    font-size: 2.5rem;
    cursor: pointer;
    background: none;
    border: none;
    z-index: 1001;
}
.lightbox-close:hover { color: var(--gold); }
.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    padding: 1rem 1.5rem;
    font-size: 1.5rem;
    cursor: pointer;
    border-radius: 50%;
    transition: background 0.2s;
}
.lightbox-nav:hover { background: rgba(255, 255, 255, 0.4); }
.lightbox-prev { left: 1rem; }
.lightbox-next { right: 1rem; }
.room-info-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}
.room-info h3 { margin: 1.2rem 0 .5rem; }
.room-info p { color: #45453f; }

.booking-form-box {
    margin-top: 2.5rem;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 2rem;
}
.booking-form-box h2 { margin-bottom: 1.2rem; font-size: 1.6rem; }

/* ---------- Alerts & success ---------- */
.alert-error {
    background: #fbeae6;
    border: 1px solid #ecc5bc;
    color: var(--danger);
    border-radius: 10px;
    padding: 1rem 1.2rem;
    margin-bottom: 1.4rem;
    font-size: .92rem;
}
.alert-error ul { margin: .4rem 0 0 1.2rem; }

.success-box {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 2.4rem;
    text-align: center;
}
.success-box h2 { color: var(--success); margin-bottom: 1rem; }
.success-box p { margin-bottom: 1rem; color: #45453f; }
.booking-summary {
    list-style: none;
    text-align: left;
    max-width: 440px;
    margin: 0 auto 1.4rem;
    background: var(--cream);
    border-radius: 10px;
    padding: 1.2rem 1.6rem;
    font-size: .95rem;
}
.booking-summary li { padding: .25rem 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--green-dark); color: var(--sand); }
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2.5rem;
    padding: 4rem 0 3rem;
}
.footer-col h4 { color: var(--gold-light); margin-bottom: 1rem; font-size: 1.1rem; }
.footer-col p, .footer-col li { font-size: .9rem; }
.footer-col ul { list-style: none; }
.footer-col li { padding: .28rem 0; }
.footer-col a { color: var(--sand); }
.footer-col a:hover { color: var(--gold-light); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .12); padding: 1.2rem 0; font-size: .85rem; text-align: center; }

/* ---------- Back to top ---------- */
.back-to-top {
    position: fixed;
    right: 1.4rem;
    bottom: 1.4rem;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--gold);
    color: var(--green-dark);
    border: none;
    font-size: 1.3rem;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 6px 16px rgba(30, 40, 20, .25);
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity .3s ease, transform .3s ease, visibility .3s, background .25s ease;
    z-index: 90;
}
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--gold-light); }

/* ---------- Gallery ---------- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.2rem;
}

/* Masonry layout */
.gallery-masonry {
    column-count: 3;
    column-gap: 1.1rem;
}
@media (max-width: 960px) {
    .gallery-masonry { column-count: 2; }
}
@media (max-width: 560px) {
    .gallery-masonry { column-count: 1; }
}
.masonry-item {
    break-inside: avoid;
    margin-bottom: 1.1rem;
    display: block;
}

.gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    cursor: zoom-in;
    box-shadow: 0 4px 14px rgba(30, 40, 20, .12);
}
.gallery-item img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
    transition: transform .45s ease, opacity .4s ease, filter .4s ease;
}
.masonry-item.gallery-item img {
    height: auto;
}
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item figcaption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 1.6rem .9rem .7rem;
    background: linear-gradient(transparent, rgba(22, 33, 15, .78));
    color: var(--white);
    font-size: .88rem;
    z-index: 2;
}

/* Lazy loading */
.lazy-image {
    opacity: 0;
    filter: blur(8px);
    transform: scale(1.02);
}
.lazy-image.loaded {
    opacity: 1;
    filter: blur(0);
    transform: scale(1);
}
.image-skeleton {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(232,230,224,.6) 0%, rgba(232,230,224,.3) 50%, rgba(232,230,224,.6) 100%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s ease-in-out infinite;
    z-index: 1;
    pointer-events: none;
    border-radius: 12px;
}
.image-skeleton.hidden {
    display: none;
}
@keyframes skeleton-shimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: .45rem;
    margin-top: 2.5rem;
    flex-wrap: wrap;
}
.page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.4rem;
    height: 2.4rem;
    padding: 0 .75rem;
    border-radius: 8px;
    background: var(--white);
    border: 1px solid #d5d2c8;
    color: var(--green-dark);
    text-decoration: none;
    font-size: .9rem;
    font-weight: 500;
    transition: all .2s ease;
    box-shadow: 0 1px 3px rgba(30, 40, 20, .06);
}
.page-link:hover {
    background: var(--sand);
    border-color: var(--gold-light);
    transform: translateY(-1px);
}
.page-link.active {
    background: var(--green-dark);
    border-color: var(--green-dark);
    color: var(--white);
    box-shadow: 0 3px 10px rgba(46, 74, 34, .25);
    cursor: default;
}
.page-dots {
    color: var(--grey);
    padding: 0 .3rem;
    font-size: 1.1rem;
    user-select: none;
}

/* Lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(15, 22, 10, .9);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    z-index: 200;
    cursor: zoom-out;
}
.lightbox img {
    max-width: 100%;
    max-height: 88vh;
    border-radius: 10px;
    box-shadow: 0 18px 50px rgba(0, 0, 0, .5);
}
.lightbox-caption {
    position: absolute;
    bottom: 1.6rem;
    left: 0;
    right: 0;
    text-align: center;
    color: var(--sand);
    font-size: .95rem;
}
.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, .15);
    color: var(--white);
    border: none;
    border-radius: 50%;
    width: 3.5rem;
    height: 3.5rem;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    transition: background .2s ease, transform .2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 201;
}
.lightbox-nav:hover {
    background: rgba(255, 255, 255, .3);
    transform: translateY(-50%) scale(1.1);
}
.lightbox-prev { left: 1.5rem; }
.lightbox-next { right: 1.5rem; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
    .content-with-sidebar { grid-template-columns: 1fr; }
    .sidebar { position: static; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
    .room-row { grid-template-columns: 1fr; }
    .room-row-img img { max-height: 260px; }
    .two-col { grid-template-columns: 1fr; gap: 2rem; }
    .booking-bar-form { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .story-images-small {
        grid-template-columns: 1fr;
    }
    .story-images-small img {
        height: 180px;
    }
    .story-image-large {
        height: 250px;
    }
}

@media (max-width: 680px) {
    .nav-toggle { display: block; }
    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: .6rem 4%;
        box-shadow: 0 12px 20px rgba(30, 40, 20, .12);
    }
    .main-nav.open { display: flex; }
    .main-nav a { padding: .8rem 0; border-bottom: 1px solid var(--sand); }
    .main-nav .btn-nav { margin: .8rem 0; text-align: center; }
    .booking-bar-form { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .hero { padding: 6rem 0 7.5rem; }
    .section { padding: 3.5rem 0; }
    .topbar-inner { justify-content: center; text-align: center; }

    /* 1. Smaller logo and site name on mobile */
    .logo-img { height: 32px; }
    .logo-text { font-size: 1.1rem; }

    /* 2. Accommodation section: stacked individual cards instead of horizontal scroll */
    .rooms-scroll-container {
        overflow: visible;
    }
    .rooms-scroll {
        display: grid;
        grid-template-columns: 1fr;
        gap: 1.5rem;
        min-width: unset;
        padding: 0;
    }
    .room-card-scroll {
        flex: unset;
        max-width: 100%;
        width: 100%;
    }

    /* 3. Room details — force content to fit on mobile */
    .content-with-sidebar { grid-template-columns: 1fr; }
    .room-main-img { height: 220px; }
    .room-gallery-thumbs {
        grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
        gap: 0.4rem;
    }
    .room-thumb { height: 55px; }
    .room-info-header { flex-direction: column; align-items: flex-start; gap: .5rem; }
    .booking-form-box { padding: 1.2rem; }
    .booking-form-box h2 { font-size: 1.3rem; }
    .amenity-chips li { font-size: .75rem; padding: .25rem .65rem; }
}
