:root {
    /* Dark, gold-accented theme to match the Nguluwe Rentals logo */
    --bg: #100e0b;          /* page background — warm near-black */
    --bg-elev: #1a1610;     /* elevated panels and cards */
    --bg-elev-2: #221c14;   /* inputs and hover surfaces */
    --border: #3a3026;      /* warm gold-brown hairline */
    --accent: #d4af37;      /* royal gold */
    --accent-bright: #e7c55a;
    --accent-deep: #b8932e;
    --green: #1f5138;       /* deep emerald, secondary brand colour */
    --light: #f4f4f4;
    --success: #3fae54;
    --danger: #e0524d;
    /* repurposed for dark mode: text colours are now light */
    --primary: #f1ead9;     /* primary text — warm off-white */
    --paper: #1a1610;       /* elevated surface (was cream) */
    --ink-soft: #b3a68d;    /* muted text */
}

body {
    font-family: Georgia, 'Times New Roman', serif;
    margin: 0;
    color: var(--primary);
    line-height: 1.6;
    background-color: var(--bg);
}

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

/* Navbar */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 5%;
    background: rgba(16, 14, 11, 0.92);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(10px);
}

.brand-block {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--primary);
}

.nav-logo-img {
    width: 42px;
    height: 52px;
    object-fit: contain;
    filter: saturate(0.92) contrast(1.04);
}

.brand-name {
    font-size: 1.3rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: -0.5px;
    color: var(--accent);
}

/* Official logo banner on the home page */
.brand-banner {
    display: flex;
    justify-content: center;
    padding: 36px 5% 6px;
}

.brand-banner-logo {
    width: min(520px, 84vw);
    height: auto;
    border: 1px solid rgba(212, 175, 55, 0.46);
    border-radius: 8px;
    background: #050505;
    box-shadow:
        0 18px 54px rgba(0, 0, 0, 0.44),
        0 0 0 1px rgba(244, 244, 244, 0.04) inset;
}

.nav-links a {
    text-decoration: none;
    color: var(--primary);
    margin-left: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.booking-page {
    background: var(--bg);
    color: var(--primary);
}

.home-booking {
    background:
        linear-gradient(180deg, #100e0b 0%, #15110c 52%, #100e0b 100%);
}

.booking-hero {
    min-height: 430px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 520px);
    gap: 34px;
    align-items: end;
    padding: 72px 5% 44px;
    background:
        linear-gradient(90deg, rgba(18, 16, 12, 0.82), rgba(18, 16, 12, 0.32)),
        url('images/nguluwe den.jpg.jpg') center/cover;
    color: white;
}

.booking-hero-copy {
    max-width: 650px;
}

.booking-kicker {
    display: inline-block;
    color: var(--accent);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.booking-hero h1 {
    max-width: 720px;
    margin: 12px 0 14px;
    font-size: clamp(2.4rem, 6vw, 5.6rem);
    line-height: 0.92;
    letter-spacing: 0;
}

.booking-hero p {
    max-width: 500px;
    margin: 0;
    color: rgba(255, 255, 255, 0.84);
    font-size: 1.05rem;
}

.booking-search {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    padding: 16px;
    background: var(--bg-elev);
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.5);
}

.booking-search label {
    display: grid;
    gap: 5px;
    color: var(--ink-soft);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.booking-search label:first-child,
.booking-search button {
    grid-column: span 2;
}

.booking-search input,
.booking-search select {
    min-height: 46px;
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 0 12px;
    background: var(--bg-elev-2);
    color: var(--primary);
    font: inherit;
}

.booking-search button {
    min-height: 50px;
    border: 0;
    border-radius: 6px;
    background: var(--green);
    color: white;
    cursor: pointer;
    font-weight: 900;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.booking-search button:hover {
    background: #183e2c;
}

.home-hero {
    position: relative;
    overflow: hidden;
    min-height: 650px;
    grid-template-columns: minmax(0, 1fr);
    align-items: center;
    background: #110f0c;
}

.contact-hero {
    background:
        linear-gradient(90deg, rgba(18, 16, 12, 0.86), rgba(18, 16, 12, 0.38)),
        url('/.netlify/images?url=/images/garden-panorama.png&w=2000&q=90') center/cover;
}

/* Rotating photo slideshow behind the home hero copy */
.hero-slideshow {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-slideshow::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(17, 15, 12, 0.9) 0%, rgba(17, 15, 12, 0.62) 42%, rgba(17, 15, 12, 0.2) 100%);
}

.hero-slide {
    position: absolute;
    inset: 0;
    background-position: center;
    background-size: cover;
    opacity: 0;
    animation: heroFade 30s infinite;
}

.hero-slide-1 {
    background-image: url('/.netlify/images?url=/images/garden-panorama.png&w=2000&q=85');
    animation-delay: 0s;
}

.hero-slide-2 {
    background-image: url('/.netlify/images?url=/images/giant-chess.png&w=2000&q=85');
    animation-delay: 6s;
}

.hero-slide-3 {
    background-image: url('/.netlify/images?url=/images/garden-lounge.png&w=2000&q=85');
    animation-delay: 12s;
}

.hero-slide-4 {
    background-image: url('/.netlify/images?url=/images/braai-grill.png&w=2000&q=85');
    animation-delay: 18s;
}

.hero-slide-5 {
    background-image: url('/.netlify/images?url=/images/nguluwe%20den.jpg.jpg&w=2000&q=85');
    animation-delay: 24s;
}

@keyframes heroFade {
    0% { opacity: 0; }
    3% { opacity: 1; }
    17% { opacity: 1; }
    23% { opacity: 0; }
    100% { opacity: 0; }
}

.home-hero .booking-hero-copy {
    position: relative;
    z-index: 1;
}

@media (prefers-reduced-motion: reduce) {
    .hero-slide {
        animation: none;
    }

    .hero-slide-1 {
        opacity: 1;
    }
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.primary-action,
.secondary-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 20px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.primary-action {
    background: #d8b84a;
    color: #17130d;
}

.secondary-action {
    border: 1px solid rgba(255, 255, 255, 0.42);
    color: white;
}

.hero-booking-card {
    align-self: center;
}

.search-heading {
    grid-column: span 2;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--border);
}

.search-heading span {
    color: var(--ink-soft);
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.search-heading strong {
    color: var(--primary);
    font-size: 1.05rem;
}

.booking-summary-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    max-width: 1180px;
    margin: -34px auto 0;
    position: relative;
    z-index: 2;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--bg-elev);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}

.booking-summary-strip div {
    padding: 22px;
    border-right: 1px solid var(--border);
}

.booking-summary-strip .booking-summary-amenities {
    grid-column: 1 / -1;
    border-right: 0;
    border-bottom: 1px solid var(--border);
}

.booking-summary-amenities strong {
    line-height: 1.45;
}

.booking-summary-strip div:last-child {
    border-right: 0;
}

.booking-summary-strip span,
.featured-room span,
.tier-pill {
    display: block;
    color: var(--ink-soft);
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.booking-summary-strip strong {
    display: block;
    margin-top: 5px;
    font-size: 1rem;
}

.featured-booking,
.rooms-booking-header,
.room-results-layout {
    max-width: 1220px;
    margin: 0 auto;
    padding-left: 5%;
    padding-right: 5%;
}

.featured-booking {
    padding-top: 72px;
    padding-bottom: 78px;
}

.section-heading,
.rooms-booking-header,
.booking-results-header {
    display: flex;
    justify-content: space-between;
    gap: 24px;
}

.section-heading {
    align-items: end;
    margin-bottom: 22px;
}

.section-heading h2,
.rooms-booking-header h1 {
    margin: 8px 0 0;
    max-width: 640px;
    font-size: clamp(2rem, 4vw, 3.6rem);
    line-height: 0.98;
}

.section-heading a {
    color: var(--accent);
    font-weight: 900;
    text-decoration: none;
}

.featured-room-grid {
    display: grid;
    grid-template-columns: 1.25fr 1fr;
    gap: 18px;
}

.featured-room {
    display: grid;
    grid-template-columns: 42% minmax(0, 1fr);
    gap: 18px;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--bg-elev);
}

.featured-room:first-child {
    grid-row: span 2;
    grid-template-columns: 1fr;
}

.featured-room img {
    width: 100%;
    height: 100%;
    min-height: 180px;
    object-fit: cover;
    border-radius: 6px;
}

.featured-room-img {
    display: block;
    height: 100%;
    min-height: 180px;
    border-radius: 6px;
    overflow: hidden;
}

.featured-room:first-child .featured-room-img {
    min-height: 360px;
}

.featured-room:first-child img {
    min-height: 360px;
}

.featured-room h3 {
    margin: 6px 0 8px;
    font-size: 1.55rem;
    line-height: 1.05;
}

.featured-room p,
.rooms-booking-header p {
    color: var(--ink-soft);
}

.room-booking-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: 18px;
}

.room-booking-row a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 15px;
    border-radius: 6px;
    background: var(--green);
    color: white;
    text-decoration: none;
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
}

.rooms-booking-header {
    align-items: center;
    padding-top: 58px;
    padding-bottom: 30px;
}

.entertainment-garden {
    max-width: 1220px;
    margin: 0 auto;
    padding: 0 5% 88px;
}

.entertainment-intro {
    max-width: 680px;
    margin: 0 0 26px;
    color: var(--ink-soft);
    font-size: 1.05rem;
    line-height: 1.5;
}

.entertainment-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    grid-auto-rows: 1fr;
    gap: 18px;
}

.entertainment-card {
    position: relative;
    margin: 0;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--bg-elev);
}

.entertainment-card.feature {
    grid-row: span 2;
}

.entertainment-card img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 210px;
    object-fit: cover;
}

.entertainment-card.feature img {
    min-height: 438px;
}

.entertainment-card figcaption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    display: grid;
    gap: 4px;
    padding: 18px 18px 16px;
    background: linear-gradient(0deg, rgba(15, 13, 10, 0.92) 8%, rgba(15, 13, 10, 0) 100%);
    color: white;
}

.entertainment-card figcaption strong {
    font-size: 1.2rem;
    line-height: 1.1;
}

.entertainment-card figcaption span {
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.88rem;
    line-height: 1.4;
}

.rooms-booking-header > div {
    max-width: 650px;
}

.compact-search {
    min-width: min(100%, 460px);
    box-shadow: 0 14px 40px rgba(37, 27, 15, 0.1);
}

.compact-search label:first-child,
.compact-search button {
    grid-column: auto;
}

.room-results-layout {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 28px;
    padding-bottom: 76px;
}

.booking-room-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 0;
}

.booking-result-card {
    display: grid !important;
    grid-template-columns: 230px minmax(0, 1fr);
    gap: 18px;
    padding: 12px;
    border-color: var(--border);
    border-radius: 8px;
    background: var(--bg-elev);
    text-align: left;
}

.booking-result-card .room-img-container {
    margin: 0;
    border-radius: 6px;
}

.booking-result-body {
    display: grid;
    align-content: center;
    gap: 10px;
}

.booking-result-body h3 {
    margin: 0;
    font-size: 1.65rem;
    text-transform: none;
    letter-spacing: 0;
}

.booking-result-body p {
    margin: 0;
    font-size: 0.95rem;
}

.tier-pill {
    width: fit-content;
    padding: 5px 9px;
    border-radius: 999px;
    background: rgba(212, 175, 55, 0.16);
    color: var(--accent-bright);
}

.booking-result-card .room-booking-row {
    margin-top: 4px;
}

.booking-result-card .room-booking-row strong span {
    color: var(--ink-soft);
    font-size: 0.82rem;
    font-weight: 400;
}

.booking-shell {
    display: grid;
    grid-template-columns: 310px minmax(0, 1fr);
    gap: 28px;
    max-width: 1220px;
    margin: 0 auto;
    padding: 34px 5% 70px;
}

.booking-sidebar {
    display: grid;
    align-content: start;
    gap: 16px;
}

.booking-panel {
    background: var(--paper);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 20px;
}

.booking-panel h2,
.booking-results-header h2 {
    margin: 0 0 8px;
    font-size: 1.35rem;
    line-height: 1.1;
}

.booking-panel p {
    margin: 0 0 14px;
    color: var(--ink-soft);
    font-size: 0.92rem;
}

.amenity-list {
    margin: 0;
    padding: 0;
    color: var(--ink-soft);
    font-size: 0.92rem;
    line-height: 1.65;
}

.contact-link,
.payment-link,
.booking-results-header a,
.booking-card-footer a {
    text-decoration: none;
}

.contact-link {
    display: block;
    margin-top: 8px;
    color: var(--primary);
    font-size: 1.15rem;
    font-weight: 900;
}

.payment-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 46px;
    margin-top: 10px;
    padding: 0 14px;
    border-radius: 6px;
    color: white;
    font-weight: 900;
}

.payment-link.airtel { background: #d71920; }
.payment-link.mtn { background: #f2c300; color: #141414; }
.payment-link.card { background: #2c2620; border: 1px solid var(--border); }

.booking-panel.compact {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px 14px;
    color: var(--ink-soft);
    font-size: 0.85rem;
}

.booking-panel.compact strong {
    color: var(--primary);
}

.booking-results-header {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: end;
    margin-bottom: 18px;
}

.booking-results-header a {
    color: var(--accent);
    font-weight: 900;
}

.booking-list.status-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 0;
}

.booking-card.status-card {
    display: grid;
    grid-template-columns: 210px minmax(0, 1fr);
    gap: 18px;
    align-items: stretch;
    padding: 12px;
    border: 1px solid var(--border);
    border-left: 6px solid var(--border);
    border-radius: 8px;
    background: var(--bg-elev);
}

.booking-card img {
    width: 100%;
    height: 100%;
    min-height: 168px;
    object-fit: cover;
    border-radius: 6px;
}

.booking-card-body {
    display: grid;
    gap: 10px;
    align-content: center;
}

.booking-card-topline,
.booking-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.booking-card-topline span:first-child {
    color: var(--ink-soft);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.booking-card h3 {
    margin: 0;
    font-size: 1.55rem;
    line-height: 1.1;
}

.booking-card p {
    margin: 0;
    color: var(--ink-soft);
}

.booking-card-footer strong {
    font-size: 1.35rem;
}

.booking-card-footer strong span {
    color: var(--ink-soft);
    font-size: 0.82rem;
    font-weight: 400;
}

.booking-card-footer a {
    border-radius: 6px;
    background: var(--green);
    color: white;
    padding: 10px 16px;
    font-weight: 900;
}

/* Link Card Fixes (Vanishing Blue Lines) */
.room-grid a.room-card {
    text-decoration: none !important;
    color: inherit !important;
    display: block;
}

/* Room Grid Layout */
.room-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    padding: 40px 5%;
}

.room-card {
    background: var(--bg-elev);
    border: 1px solid var(--border);
    padding: 20px;
    transition: 0.3s ease;
    text-align: center;
    position: relative;
}

.room-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.5);
}

.room-img-container {
    aspect-ratio: 4/3;
    overflow: hidden;
    background: #111111;
    margin-bottom: 15px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.room-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fallback-card-title {
    display: none;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 1rem;
    text-align: center;
    padding: 20px;
}

/* Pricing & Tier Tags */
.tier-badge {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    padding: 4px 10px;
    letter-spacing: 1px;
    margin-bottom: 10px;
    color: white;
}
.tier-budget { background: #4caf50; }
.tier-standard { background: #2196f3; }
.tier-upgraded { background: #ff9800; }
.tier-premium { background: #f44336; }
.tier-executive { background: #9c27b0; }

.room-price {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--accent);
    margin: 5px 0;
}

.room-card h3 {
    font-size: 1.1rem;
    margin: 5px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.room-card p {
    font-size: 0.8rem;
    color: var(--ink-soft);
    margin: 0 0 10px 0;
}

/* Amenities Grid */
.amenities-bar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    max-width: 1000px;
    margin: 30px auto 0 auto;
    padding: 0 20px;
}

.amenity-item {
    background: var(--bg-elev);
    border: 1px solid var(--border);
    padding: 15px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Booking Dashboard Layout */
.status-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    padding: 30px 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.status-card {
    border: 1px solid var(--border);
    padding: 20px;
    border-left: 5px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-elev);
}

.status-card.available { border-left-color: var(--success); }
.status-card.booked { border-left-color: var(--danger); }

.status-indicator {
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    padding: 4px 8px;
    border-radius: 3px;
    color: white;
}
.status-indicator.available { background: var(--success); }
.status-indicator.booked { background: var(--danger); }

/* Footer & Socials */
footer {
    padding: 50px 5%;
    background: #0a0908;
    color: var(--ink-soft);
    text-align: center;
    font-size: 0.8rem;
    border-top: 1px solid var(--border);
}

.social-bar {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 25px;
}

.social-bar a {
    color: white;
    text-decoration: none;
    font-size: 0.7rem;
    font-weight: bold;
    text-transform: uppercase;
    border: 1px solid #333;
    padding: 8px 15px;
    transition: 0.3s;
}

.social-bar a:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* Gallery Engine */
.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
}

.photo-item {
    aspect-ratio: 1/1;
    overflow: hidden;
    background: var(--bg-elev);
}

.photo-item img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 700px) {
    nav {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }

    .nav-links {
        display: flex;
        flex-wrap: wrap;
        gap: 12px;
    }

    .nav-links a {
        margin-left: 0;
    }

    .booking-hero {
        min-height: auto;
        grid-template-columns: 1fr;
        padding: 54px 5% 26px;
    }

    .booking-search,
    .booking-search label:first-child,
    .booking-search button,
    .search-heading {
        grid-column: auto;
    }

    .booking-search {
        grid-template-columns: 1fr;
    }

    .search-heading,
    .section-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .hero-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .booking-summary-strip,
    .featured-room-grid,
    .entertainment-grid,
    .rooms-booking-header,
    .room-results-layout {
        grid-template-columns: 1fr;
    }

    .entertainment-card.feature {
        grid-row: auto;
    }

    .entertainment-card.feature img {
        min-height: 240px;
    }

    .booking-summary-strip {
        margin: 0 5%;
    }

    .booking-summary-strip div {
        border-right: 0;
        border-bottom: 1px solid var(--border);
    }

    .booking-summary-strip div:last-child {
        border-bottom: 0;
    }

    .featured-room,
    .featured-room:first-child,
    .booking-result-card {
        grid-template-columns: 1fr;
    }

    .featured-room:first-child img,
    .featured-room img,
    .featured-room:first-child .featured-room-img,
    .featured-room-img {
        min-height: 220px;
    }

    .rooms-booking-header {
        align-items: stretch;
        padding-top: 38px;
    }

    .booking-shell {
        grid-template-columns: 1fr;
        padding-top: 24px;
    }

    .booking-results-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .booking-card.status-card {
        grid-template-columns: 1fr;
    }

    .booking-card img {
        height: 210px;
    }

    .booking-card-topline,
    .booking-card-footer {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* ----------------------------------------------------------------------- */
/* Live availability + mobile money booking                                */
/* ----------------------------------------------------------------------- */

/* "Reserve" buttons render identically to the original reserve links. */
.reserve-btn {
    font-family: inherit;
    cursor: pointer;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 16px;
    border-radius: 6px;
    background: #1f5138;
    color: #fff;
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}
.booking-card-footer .reserve-btn {
    background: var(--green);
    min-height: auto;
    padding: 10px 16px;
}
.reserve-btn:hover { opacity: 0.9; }

.board-loading,
.board-fallback {
    grid-column: 1 / -1;
    padding: 24px;
    color: var(--ink-soft);
    font-size: 1.02rem;
}
.board-fallback a { color: var(--primary); font-weight: 900; }

/* Booking + payment modal */
body.modal-open { overflow: hidden; }

.booking-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 5vh 16px;
    overflow-y: auto;
}
.booking-modal[hidden] { display: none; }

.booking-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(20, 16, 10, 0.62);
    backdrop-filter: blur(3px);
}

.booking-modal-card {
    position: relative;
    width: min(100%, 520px);
    background: var(--paper);
    border-radius: 14px;
    padding: 30px 28px 26px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7);
    border: 1px solid var(--border);
}
.booking-modal-card h2 {
    margin: 6px 0 2px;
    font-size: 1.7rem;
    color: var(--primary);
}
.booking-modal-close {
    position: absolute;
    top: 12px;
    right: 14px;
    border: none;
    background: none;
    font-size: 1.9rem;
    line-height: 1;
    cursor: pointer;
    color: var(--ink-soft);
}
.bm-rate { margin: 0 0 16px; font-size: 1.05rem; }
.bm-rate strong { font-size: 1.5rem; color: var(--accent); }
.bm-rate span { color: var(--ink-soft); }

.pay-box {
    background: var(--bg-elev-2);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 14px 18px 16px;
    margin-bottom: 18px;
}
.pay-box h3 {
    margin: 0 0 8px;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--accent);
}
.pay-steps {
    margin: 0;
    padding-left: 20px;
    font-size: 0.95rem;
    line-height: 1.55;
}
.pay-steps strong { color: var(--primary); }

#bookingForm { display: flex; flex-direction: column; gap: 12px; }
#bookingForm label {
    display: flex;
    flex-direction: column;
    gap: 5px;
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--ink-soft);
}
#bookingForm input,
#bookingForm select {
    font-family: inherit;
    font-size: 1rem;
    padding: 11px 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--bg-elev-2);
    color: var(--primary);
}
.bm-row { display: flex; gap: 12px; }
.bm-row label { flex: 1; }
.bm-submit {
    margin-top: 4px;
    border: none;
    cursor: pointer;
    background: #1f5138;
    color: #fff;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 900;
    padding: 14px;
    border-radius: 8px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.bm-submit:hover { opacity: 0.92; }
.bm-submit:disabled { opacity: 0.6; cursor: progress; }
.bm-feedback { margin: 4px 0 0; font-size: 0.95rem; min-height: 1.2em; }
.bm-feedback.success { color: var(--success); font-weight: 700; }
.bm-feedback.error { color: var(--danger); font-weight: 700; }
.bm-help { margin: 16px 0 0; font-size: 0.92rem; color: var(--ink-soft); }
.bm-help a { color: var(--primary); font-weight: 900; }

@media (max-width: 520px) {
    .bm-row { flex-direction: column; }
    .booking-modal-card { padding: 26px 18px 22px; }
}
