/* The Nook - Cottage Website Styles */

/* 1. Variables & Design Tokens */
:root {
    /* Colors */
    --color-primary: #4F6D58;
    /* Sage/Forest Green */
    --color-primary-dark: #3A5242;
    --color-secondary: #8B5A2B;
    /* Earthy Brown */
    --color-bg: #F9F7F2;
    /* Warm Cream/Off-white */
    --color-bg-alt: #EFECE6;
    /* Slightly darker cream for sections */
    --color-text: #2C3E2F;
    /* Dark Green/Charcoal */
    --color-text-light: #5C6E5F;
    /* Muted text */
    --color-white: #FFFFFF;

    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing */
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 2rem;
    --spacing-xl: 4rem;

    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-medium: 0.3s ease;
}

/* 2. Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: --font-body, sans-serif;
    /* Fallback syntax fix below */
    font-family: var(--font-body), sans-serif;
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading), serif;
    font-weight: 600;
    line-height: 1.2;
    color: var(--color-text);
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-fast);
}

img {
    max-width: 100%;
    display: block;
    border-radius: var(--radius-sm);
}

button {
    font-family: var(--font-body), sans-serif;
    cursor: pointer;
    border: none;
    background: none;
}

/* 3. Utility Classes */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.section {
    padding: var(--spacing-xl) 0;
}

.bg-alt {
    background-color: var(--color-bg-alt);
}

.text-center {
    text-align: center;
}

.text-subtitle {
    font-size: 1.1rem;
    color: var(--color-text-light);
    margin-bottom: var(--spacing-lg);
    font-style: italic;
}

/* 4. Navigation */
#main-header {
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar {
    padding: var(--spacing-lg) 0;
    border-bottom: 1px solid rgba(79, 109, 88, 0.1);
    /* position: sticky;  <-- Moved to #main-header */
    /* top: 0; */
    background-color: rgba(249, 247, 242, 0.95);
    backdrop-filter: blur(5px);
    /* z-index: 100; */
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--color-primary);
    font-weight: 700;
    letter-spacing: -0.5px;
}

.nav-links {
    display: flex;
    gap: var(--spacing-lg);
}

.nav-links a {
    font-size: 1rem;
    color: var(--color-text);
    position: relative;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--color-primary);
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: var(--color-primary);
}

/* Mobile Menu Toggle (Hidden on Desktop) */
.menu-toggle {
    display: none;
    font-size: 1.5rem;
    color: var(--color-primary);
}

/* 5. Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-weight: 500;
    transition: all var(--transition-medium);
    text-align: center;
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-white);
    border: 1px solid var(--color-primary);
}

.btn-primary:hover {
    background-color: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(79, 109, 88, 0.2);
}

.btn-primary:disabled,
.btn-primary:disabled:hover {
    background-color: #C5D6CA;
    /* Pastel Sage Green */
    border-color: #C5D6CA;
    color: var(--color-white);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
    pointer-events: none;
    /* Prevent click events */
}

.btn-outline {
    border: 1px solid var(--color-secondary);
    color: var(--color-secondary);
}

.btn-outline:hover {
    background-color: var(--color-secondary);
    color: var(--color-white);
}

/* 6. Landing Page Sections */
/* Hero */
.hero {
    height: 80vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    /* background-image: url('https://images.unsplash.com/photo-1499696010180-025ef6e1a8f9?ixlib=rb-1.2.1&auto=format&fit=crop&w=1950&q=80'); Moved to HTML inline for easy editing */
    background-size: cover;
    background-position: center;
    color: var(--color-white);
    text-align: center;
    position: relative;
}

.hero-content {
    max-width: 800px;
    padding: var(--spacing-lg);
    animation: fadeIn 1s ease-out;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: var(--spacing-sm);
    color: var(--color-white);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: var(--spacing-lg);
    opacity: 0.9;
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    align-items: center;
}

.about-text h2 {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-md);
    color: var(--color-primary);
}

.about-text p {
    margin-bottom: var(--spacing-md);
    color: var(--color-text-light);
}

/* Features/Highlights */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-lg);
}

.feature-card {
    text-align: center;
    padding: var(--spacing-lg);
    background: var(--color-white);
    border-radius: var(--radius-md);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
    transition: transform var(--transition-medium);
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 2rem;
    color: var(--color-secondary);
    margin-bottom: var(--spacing-md);
}

.feature-card h3 {
    margin-bottom: var(--spacing-sm);
    font-size: 1.25rem;
}

/* 7. Footer */
.footer {
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: var(--spacing-xl) 0 var(--spacing-lg);
    margin-top: var(--spacing-xl);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.footer-column h3 {
    color: var(--color-white);
    margin-bottom: var(--spacing-md);
    font-size: 1.2rem;
}

.footer-column p {
    margin: 0 0 var(--spacing-sm) 0;
}

.footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-links li {
    margin-bottom: var(--spacing-sm);
}

.footer-links a:hover {
    color: #D4C5A9;
    /* Light sand color for hover on dark green */
}

/* Align icons in footer */
.footer-links i {
    width: 20px;
    /* Fixed width for alignment */
    text-align: center;
    margin-right: 5px;
    vertical-align: baseline;
    /* Align with text baseline */
}

.copyright {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: var(--spacing-lg);
    font-size: 0.9rem;
    opacity: 0.8;
}

/* 8. Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 9. Responsive adjustments */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .nav-links {
        display: none;
    }

    /* Mobile Menu Placeholder logic needed in JS */
    .menu-toggle {
        display: block;
    }
}

/* Reviews Carousel */
.carousel-container {
    position: relative;
    max-width: 1200px;
    /* or whatever your container max-width is */
    margin: 0 auto;
    padding: 0 40px;
    /* Space for buttons */
    overflow: hidden;
    /* Hide non-visible items */
}

.carousel-viewport {
    overflow: hidden;
    width: 100%;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    width: 100%;
    /* Will hold all items */
}

.review-card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    margin: 10px;
    /* Gaps between cards */
    flex: 0 0 calc(100% - 20px);
    /* Mobile: 1 item */
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    height: 100%;
    /* Uniform height */
}

@media (min-width: 768px) {
    .review-card {
        flex: 0 0 calc(50% - 20px);
        /* Tablet: 2 items */
    }
}

@media (min-width: 1024px) {
    .review-card {
        flex: 0 0 calc(33.333% - 20px);
        /* Desktop: 3 items */
    }
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    border: 1px solid #eee;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    z-index: 10;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #555;
}

.carousel-btn:hover:not(:disabled) {
    background: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
}

.carousel-btn:disabled {
    cursor: default;
    opacity: 0.5;
}

.carousel-btn.prev {
    left: 0;
}

.carousel-btn.next {
    right: 0;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 12px;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 8px;
}

.review-author {
    font-weight: 600;
    font-family: var(--font-heading);
    color: var(--color-text-dark);
}

.review-source {
    font-size: 0.8rem;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.review-rating {
    color: #f59e0b;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.review-text {
    font-style: italic;
    color: #555;
    line-height: 1.6;
    flex-grow: 1;
    /* Push date to bottom */
    margin-bottom: 15px;
}

.review-date {
    font-size: 0.8rem;
    color: #aaa;
    text-align: right;
}

/* 10. Calendar Styles */
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    margin-top: 10px;
}

.weekday {
    text-align: center;
    font-weight: bold;
    color: var(--color-primary);
    padding: 5px;
    font-size: 0.9rem;
}

.day {
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    background-color: white;
    font-size: 0.9rem;
    position: relative;
    transition: all 0.2s ease;
}

.day:hover:not(.booked):not(.empty) {
    background-color: var(--color-bg-alt);
    border-color: var(--color-primary);
}

.day-number {
    font-weight: 600;
}

.daily-rate {
    font-size: 0.7rem;
    color: var(--color-text-light);
}

.day.empty {
    background-color: transparent;
    border: none;
    cursor: default;
}

/* Booked States */
.day.booked {
    background-color: #e0e0e0;
    color: #888;
    text-decoration: line-through;
    cursor: not-allowed;
    /* pointer-events: none; - Removed to allow click for JS warning */
}

/* Diagonal split for half-days */
.day.booked-start,
.day.booked-end {
    /* Standard Appearance: Fully booked tone */
    background-color: #e0e0e0;
    color: #888;
    pointer-events: auto;
    /* Allow clicking to select as start date */
}

/* Changeover Line (Black) - Only if toggle is checked and overlaps */
.show-changeovers .day.booked-start.booked-end {
    /* Diagonal black line from top-left to bottom-right */
    background: linear-gradient(135deg,
            transparent 48%,
            black 48%, black 52%,
            transparent 52%);
    background-color: #e0e0e0;
    /* Maintain base tone */
}

/* User Selection */
.day.selected,
.day.range-start,
.day.range-end {
    background-color: var(--color-primary) !important;
    /* Override booked gradients if overlap? No, validation prevents overlap */
    color: white;
    border-color: var(--color-primary);
    background: var(--color-primary);
    /* Reset gradient */
}

.day.in-range {
    background-color: rgba(79, 109, 88, 0.2);
    border-color: var(--color-primary);
}

.day.range-start::after {
    content: "Check-in";
    position: absolute;
    bottom: -20px;
    font-size: 0.6rem;
    background: var(--color-text);
    color: white;
    padding: 2px 4px;
    border-radius: 2px;
    z-index: 10;
    display: none;
    /* Only show on hover or specific design? Keeping clean for now */
}

/* Warning Box - Cross-browser robust styling */
#min-stay-warning {
    display: none;
    color: #5D4037;
    background-color: #E6D2B5;
    padding: 10px;
    border-radius: 4px;
    margin-top: 10px;
    text-align: center;
    font-weight: 500;
    border: 1px solid #5D4037;
    position: relative;
    z-index: 100;
    width: 100%;
    box-sizing: border-box;
    visibility: hidden;
    /* Double hide */
    opacity: 0;
    transition: opacity 0.3s ease;
}

#min-stay-warning.visible {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    z-index: 2005 !important;
}


/* Lightbox Styles */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.lightbox-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.lightbox-content {
    position: relative;
    display: flex;
    flex-direction: column;
    /* Vertical Stacking */
    justify-content: center;
    align-items: center;
    max-width: 90vw;
    max-height: 90vh;
    width: fit-content;
    /* Hug content */
}

/* Header Row for Close Button */
.lightbox-header {
    width: 100%;
    display: flex;
    justify-content: flex-end;
    /* Right Align */
    padding-bottom: 10px;
}

/* Body Row for Image + Nav */
.lightbox-body {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

#lightbox-image {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border: 1px solid #E6D2B5;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    border-radius: 4px;
}

.lightbox-close {
    position: static;
    /* No longer absolute */
    background: none;
    border: none;
    color: #fff;
    font-size: 3rem;
    line-height: 1;
    /* Tighten height */
    cursor: pointer;
    padding: 0 0 0 10px;
    /* Padding left for spacing if needed */
    transition: color 0.3s;
    z-index: 2002;
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    padding: 20px;
    transition: color 0.3s;
    z-index: 2002;
}

.lightbox-prev {
    left: -60px;
}

.lightbox-next {
    right: -60px;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
    color: #E6D2B5;
}

/* Creating larger touch targets or alternative layout for mobile could go here, 
   but user requested basic desktop-focused iteration first. 
   We keep buttons outside to prevent overlapping image content. */
@media (max-width: 768px) {
    .lightbox-prev {
        left: -40px;
    }

    .lightbox-next {
        right: -40px;
    }
}

/* 11. Checkbox Styles (Global) */
.toggle-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--color-text-light);
    user-select: none;
}

input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid var(--color-secondary);
    border-radius: 4px;
    /* Soft square */
    position: relative;
    transition: all 0.2s;
    cursor: pointer;
    background: transparent;
    flex-shrink: 0;
    display: grid;
    place-content: center;
}

input[type="checkbox"]:checked {
    background-color: var(--color-secondary);
}

input[type="checkbox"]::after {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: var(--color-bg);
    /* Pale/Off-white tick */
    font-size: 12px;
    opacity: 0;
    transform: scale(0);
    transition: 0.2s transform ease-in-out;
}

input[type="checkbox"]:checked::after {
    opacity: 1;
    transform: scale(1);
}

input[type="checkbox"]:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    border-color: #aaa;
}

/* 12. Location Page Styles */
.controls-section {
    background-color: var(--color-bg-alt);
    padding: var(--spacing-md) 0;
    position: sticky;
    top: var(--header-height, 73px);
    z-index: 90;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.controls-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--spacing-md);
}

.filter-group {
    display: flex;
    gap: var(--spacing-md);
    align-items: center;
}

.filter-option {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    font-size: 0.9rem;
}

.sort-group select {
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    color: var(--color-text);
    cursor: pointer;
}

.location-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
    padding: var(--spacing-lg) 0;
}

.location-card {
    width: 100%;
    height: 240px;
    /* FIXED HEIGHT to constrain the layout */
    margin: 0 auto;
    background: var(--color-white);
    border-radius: var(--radius-md);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    display: flex;
    align-items: stretch;
    transition: transform var(--transition-medium);
}

.location-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.location-image-container {
    width: 320px;
    /* 320px width x 240px height = EXACT 4:3 Ratio */
    flex-shrink: 0;
    background-color: #eee;
}

.location-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.location-content {
    padding: var(--spacing-lg);
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    /* Scroll text if it exceeds the fixed height */
}

.location-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: var(--spacing-sm);
}

.location-title h3 {
    margin-bottom: 5px;
    font-size: 1.5rem;
    color: var(--color-primary);
}

.location-meta {
    display: flex;
    gap: var(--spacing-md);
    font-size: 0.85rem;
    color: var(--color-text-light);
    margin-bottom: var(--spacing-md);
}

.location-tag {
    background-color: var(--color-bg-alt);
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
}

.location-contact {
    background-color: var(--color-bg-alt);
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--radius-sm);
    margin-bottom: var(--spacing-md);
    font-size: 0.9rem;
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-md);
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--color-primary-dark);
}

.location-desc {
    line-height: 1.7;
    color: var(--color-text);
}

@media (max-width: 768px) {
    .location-card {
        width: 100%;
        flex-direction: column;
        height: auto;
        /* Allow height to grow for stacked content */
    }

    .location-image-container {
        width: 100%;
        height: 200px;
        aspect-ratio: auto;
        /* Reset any aspect ratio */
    }
}

/* 13. Gallery Page Styles */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--spacing-md);
    padding: var(--spacing-md) 0;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-sm);
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform var(--transition-medium);
}

.gallery-item:hover {
    transform: scale(1.02);
}

.gallery-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform var(--transition-medium);
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* 14. Booking Page Styles */
.booking-layout {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xl);
    margin-top: var(--spacing-lg);
}

.dual-months-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
}

.booking-wrapper {
    max-width: 100%;
    margin: 0 auto;
    width: 100%;
}

/* Conditional Changeover Styling (Default: Hidden/Full Booked) */
/* If toggle NOT checked (default), make them look like full booked days */
.day.booked-start,
.day.booked-end {
    background-color: #E6D2B5;
    /* Full brown */
    background-image: none;
    /* No gradient */
    color: #888;
}

/* When toggled ON (class added to wrapper), show gradients */
.show-changeovers .day.booked-start {
    background: linear-gradient(135deg, transparent 50%, #E6D2B5 50%);
    color: black;
}

.show-changeovers .day.booked-end {
    background: linear-gradient(135deg, #E6D2B5 50%, transparent 50%);
    color: black;
}

/* Calendar Grid System */
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    margin-top: 0.5rem;
}

.day,
.weekday {
    aspect-ratio: auto;
    width: 100%;
    padding: 0.25rem;
    min-height: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 2px;
    position: relative;
    font-size: 0.9rem;
}

.daily-rate {
    font-size: 0.7rem;
    color: #666;
    margin-top: 2px;
    font-weight: normal;
    word-break: break-all;
}

/* Ensure rate text is readable on selected/booked days */
.day.selected .daily-rate,
.day.in-range .daily-rate,
.day.range-start .daily-rate,
.day.range-end .daily-rate {
    color: inherit;
}

.weekday {
    font-weight: bold;
    color: var(--color-text-light);
    cursor: default;
    font-size: 0.75rem;
    text-transform: uppercase;
    padding-bottom: 0.5rem;
}

@media (max-width: 768px) {
    .dual-months-wrapper {
        grid-template-columns: 1fr;
    }
}

.month-panel {
    background: white;
    padding: var(--spacing-lg);
    border-radius: var(--radius-md);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    min-width: 0;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-md);
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0;
    text-align: center;
}

.weekday {
    font-weight: 600;
    color: var(--color-text-light);
    font-size: 0.9rem;
    padding-bottom: var(--spacing-sm);
}

.day {
    padding: 10px;
    border-radius: 0;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}

.day:hover:not(.empty) {
    background-color: var(--color-bg-alt);
}

.day.selected {
    background-color: #A4C3B2;
    color: black;
}

.day.range-start {
    background: linear-gradient(135deg, transparent 50%, #A4C3B2 50%);
    color: black;
}

.day.range-end {
    background: linear-gradient(135deg, #A4C3B2 50%, transparent 50%);
    color: black;
}

.day.in-range {
    background-color: #A4C3B2;
    color: black;
}

.day.range-end {
    color: black;
}

.day.booked {
    background-color: #E6D2B5;
    color: #888;
    cursor: not-allowed;
}

.day.booked-start {
    background: linear-gradient(135deg, transparent 50%, #E6D2B5 50%);
    color: black;
}

.day.booked-end {
    background: linear-gradient(135deg, #E6D2B5 50%, transparent 50%);
    color: black;
}

.day.range-end.booked-start {
    background: linear-gradient(135deg, #A4C3B2 50%, #E6D2B5 50%) !important;
    color: black;
}

.day.range-start.booked-end {
    background: linear-gradient(135deg, #E6D2B5 50%, #A4C3B2 50%) !important;
    color: black;
}

.day.booked-start.booked-end {
    background-color: #E6D2B5;
    cursor: not-allowed;
}

.show-changeovers .day.booked-start.booked-end {
    background: linear-gradient(135deg,
            #E6D2B5 48%,
            #5D4037 48%, #5D4037 52%,
            #E6D2B5 52%);
    color: black !important;
    font-weight: bold;
}

.show-changeovers .day.range-end.booked-start {
    background: linear-gradient(135deg,
            #A4C3B2 48%,
            #5D4037 48%, #5D4037 52%,
            #E6D2B5 52%) !important;
    color: black !important;
    font-weight: bold;
}

.show-changeovers .day.range-start.booked-end {
    background: linear-gradient(135deg,
            #E6D2B5 48%,
            #5D4037 48%, #5D4037 52%,
            #A4C3B2 52%) !important;
    color: black !important;
    font-weight: bold;
}

.day.empty {
    cursor: default;
}

.booking-form {
    background: var(--color-bg-alt);
    padding: var(--spacing-lg);
    border-radius: var(--radius-md);
}

.form-group {
    margin-bottom: var(--spacing-md);
}

.form-group label {
    display: block;
    margin-bottom: var(--spacing-sm);
    font-weight: 500;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 1rem;
}

.form-group input:focus {
    outline: none;
    border-color: var(--color-primary);
}

.price-summary {
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    margin-top: var(--spacing-lg);
    padding-top: var(--spacing-md);
}

.price-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: var(--spacing-sm);
}

.price-total {
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--color-primary);
    margin-top: var(--spacing-sm);
}

@media (max-width: 768px) {
    .dual-months-wrapper {
        grid-template-columns: 1fr;
    }

    .bill-layout {
        grid-template-columns: 1fr;
    }
}

.bill-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
}

.bill-panel {
    background: white;
    padding: var(--spacing-md);
    border-radius: var(--radius-sm);
    display: flex;
    flex-direction: column;
}

.bill-header {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    padding-bottom: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--color-primary);
}

.extra-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--spacing-sm);
    padding: 8px 0;
}

.extra-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.extra-label input[disabled] {
    cursor: not-allowed;
    opacity: 0.7;
}

#voucher-input-container {
    margin-top: var(--spacing-sm);
    display: none;
}

#voucher-input-container.visible {
    display: block;
}

.voucher-field {
    display: flex;
    gap: 0.5rem;
}

.voucher-msg {
    font-size: 0.85rem;
    margin-top: 4px;
}

.voucher-success {
    color: var(--color-primary);
}

.voucher-error {
    color: #d32f2f;
}