:root {
    /* MAIN COLOR PALETTE */
    --green-darkest: #24382F;
    --green-dark: #2D5630;
    --green-mid: #32702A;
    --green-light: #88D18A;
    --green-pale: #DDFBD2;

    /* REPLACEMENT OF OLD VARIABLES */
    --green-50: var(--green-pale);
    --green-400: var(--green-light);
    --green-600: var(--green-mid);
    --green-700: var(--green-dark);
    --green-900: var(--green-darkest);

    /* GRAYS */
    --gray-50: #f9fafb;
    --gray-300: #d1d5db;
    --gray-600: #4b5563;
    --gray-900: #111827;

    /* Accents */
    --amber-600: #d97706;
    --amber-700: #b45309;
    --yellow-400: #facc15;
    --yellow-600: #ca8a04;

    --silver-400: #9ca3af;
    --silver-500: #6b7280;

    --container-width: 1280px;
}

/* Global styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: system-ui, sans-serif;
    background: white;
    color: var(--gray-900);
    line-height: 1.6;
}

img {
    width: 100%;
    display: block;
    object-fit: cover;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Utility */
.container {
    max-width: var(--container-width);
    margin: auto;
    padding: 0 16px;
}

h2 {
    font-size: 2.2rem;
    margin-bottom: 16px;
    text-align: center;
}

.section-subtitle {
    text-align: center;
    color: var(--gray-600);
    margin-bottom: 24px;
}

/* Buttons */
.btn {
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 600;
    display: inline-block;
    transition: background 0.2s ease;
    cursor: pointer;
}

.btn.primary {
    background: var(--green-600);
    color: white;
}
.btn.primary:hover {
    background: var(--green-700);
}

.btn.secondary {
    background: white;
    color: var(--green-700);
    border: 2px solid var(--green-700);
}
.btn.secondary:hover {
    background: var(--green-50);
}

.btn.full {
    width: 100%;
}

.header {
    position: sticky;
    top: 0;
    z-index: 999;
    background: white;
    box-shadow: 0 2px 4px rgb(0 0 0 / 8%);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    gap: 24px;
}

.header-inner .logo {
    flex-shrink: 0;
}

.header-inner .desktop-nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

.header-inner > div:last-child {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo {
    width: 48px;
    height: 48px;
    background: var(--green-600);
    color: white;
    font-weight: 700;
    font-size: 1.2rem;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Second header row (mobile) - hidden on desktop */
.header-row-2 {
    display: none;
    gap: 12px;
    align-items: center;
    padding: 8px 16px;
}
.header-row-2 .header-action-btn {
    padding: 8px 12px;
    border-radius: 6px;
    font-weight: 600;
    background: var(--green-600);
    color: white;
    border: none;
    cursor: pointer;
}
.header-row-2 .header-action-btn[style] { /* preserve any inline color for admin */ }


/* Desktop Nav */
.desktop-nav {
    display: flex;
    gap: 24px;
}
.desktop-nav a {
    color: var(--gray-900);
    font-weight: 500;
}
.desktop-nav a:hover {
    color: var(--green-600);
}

/* Login Button */
.login-btn {
    background: var(--green-600);
    color: white;
    padding: 10px 18px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: background 0.2s ease;
}
.login-btn:hover {
    background: var(--green-700);
}


.hamburger {
    width: 32px;
    height: 32px;
    display: none;
    flex-direction: column;
    justify-content: space-between;
    background: none;
    border: none;
    cursor: pointer;
}
.hamburger span {
    height: 4px;
    background: var(--gray-900);
    width: 100%;
    border-radius: 4px;
}

/* Mobile Nav Panel */
.mobile-nav {
    display: none;
    flex-direction: column;
    background: white;
    padding: 8px 0;
    border-top: 1px solid var(--gray-300);
}
.mobile-nav a {
    padding: 12px 16px;
    font-weight: 500;
}
.mobile-nav a:hover {
    background: var(--gray-50);
}

/* ===========================
   HERO SECTION
   =========================== */
.hero {
    position: relative;
    height: 600px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-bg {
    position: absolute;
    height: 100%;
    width: 100%;
    object-fit: cover;
}

.hero-overlay {
    background: linear-gradient(to bottom, var(--green-900), var(--green-700));
    position: absolute;
    inset: 0;
    opacity: 0.4;
}

.hero-content {
    position: relative;
    text-align: center;
    color: white;
    max-width: 700px;
    padding: 20px;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 12px;
}

.hero-buttons {
    margin-top: 24px;
    display: flex;
    gap: 16px;
    justify-content: center;
}

/* ===========================
   ANIMALS SECTION
   =========================== */
.animals-section {
    background: var(--gray-50);
    padding: 64px 0;
}

.animal-grid {
    display: grid;
    gap: 24px;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.animal-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 2px 4px rgb(0 0 0 / 8%);
}

.animal-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 14px rgb(0 0 0 / 12%);
}

.card-body {
    padding: 24px;
}

.card-body h3 {
    margin-bottom: 8px;
}

.card-body p {
    color: var(--gray-600);
    margin-bottom: 12px;
}



/* ===========================
   PLAN YOUR VISIT
   =========================== */
.visit-section {
    background: white;
    padding: 64px 0;
}

.visit-section .btn.primary {
    font-size: 1.1rem;
    padding: 14px 32px;
}

.visit-grid {
    display: grid;
    gap: 24px;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    margin-top: 32px;
}

.visit-card {
    background: var(--green-50);
    padding: 32px 16px;
    text-align: center;
    border-radius: 12px;
}

.icon-circle {
    width: 64px;
    height: 64px;
    background: var(--green-600);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin: auto;
    margin-bottom: 16px;
}

/* ===========================
   HOTEL SECTION
   =========================== */
.hotel-section {
    background: var(--gray-50);
    padding: 64px 0;
}

.hotel-grid {
    display: grid;
    gap: 24px;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.hotel-card {
    background: white;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 2px 4px rgb(0 0 0 / 8%);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hotel-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 14px rgb(0 0 0 / 12%);
}

.hotel-card h3 {
    margin-top: 12px;
    margin-bottom: 8px;
}

.hotel-card p {
    color: var(--gray-600);
}

.amenities {
    color: var(--green-600);
    margin: 8px 0 16px;
}

/* ===========================
   LOYALTY SECTION
   =========================== */
.loyalty-section {
    background: white;
    padding: 64px 0;
}

.loyalty-grid {
    display: grid;
    gap: 24px;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.loyalty-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgb(0 0 0 / 8%);
    padding-bottom: 16px;
    overflow: hidden;

    
    display: flex;
    flex-direction: column;
    align-items: center;      
    text-align: center;       
}

.loyalty-card.featured {
    border: 3px solid var(--green-600);
    transform: scale(1.03);
}

.tier-header {
    padding: 24px;
    color: white;
    text-align: center;
    width: 100%; 
}

.bronze {
    background: linear-gradient(to bottom, var(--amber-600), var(--amber-700));
}

.silver {
    background: linear-gradient(to bottom, var(--silver-400), var(--silver-500));
}

.gold {
    background: linear-gradient(to bottom, var(--yellow-400), var(--yellow-600));
}

.tier-header .price {
    font-size: 1.4rem;
    margin-top: 4px;
}

.loyalty-card ul {
    padding: 16px 24px;
    text-align: left; 
}

.loyalty-card li {
    margin: 8px 0;
    color: var(--gray-50);
    list-style: "✔️ ";
}


.loyalty-card .btn {
    margin-top: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}


/* ===========================
   FOOTER
   =========================== */
.footer {
    background: var(--green-900);
    color: var(--gray-300);
    padding: 48px 0;
    margin-top: 64px;
}

.footer-grid {
    display: grid;
    gap: 24px;
    grid-template-columns: 2fr repeat(4, 1fr);
}

.footer-logo {
    margin-bottom: 12px;
}

.footer-col h4 {
    margin-bottom: 12px;
}

.footer-col a {
    display: block;
    color: var(--gray-300);
    margin-bottom: 8px;
}
.footer-col a:hover {
    color: var(--green-400);
}

.footer-bottom {
    margin-top: 32px;
    padding-top: 16px;
    border-top: 1px solid var(--gray-600);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.socials a {
    margin-left: 12px;
    color: var(--gray-300);
}
.socials a:hover {
    color: var(--green-400);
}

/* ===========================
   RESPONSIVE
   =========================== */
@media (max-width: 768px) {
    .desktop-nav,
    .login-btn {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .mobile-nav {
        display: none;
    }

    .mobile-nav.open {
        display: flex;
    }

    
    .header-row-2 {
        display: flex;
        justify-content: space-between;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .hero-content h1 {
        font-size: 2.2rem;
    }

    .hero {
        height: 500px;
    }

    /* Accessibility panel adjustments on very small screens */
    .accessibility-toggle {
        bottom: 16px;
        right: 16px;
        width: 48px;
        height: 48px;
        font-size: 24px;
    }

    .accessibility-panel {
        bottom: 80px;
        right: 8px;
        left: 8px;
        width: auto;
    }
}

/* ============================================================
   MODALS
============================================================ */
.modal {
    position: fixed;
    top: 0; 
    left: 0;
    width: 100%; 
    height: 100%;
    background: rgba(0,0,0,0.6);
    display: none;
    justify-content: center;
    align-items: center;
    padding: 20px;
    z-index: 10000;
}

.modal.active {
    display: flex;
}


.modal-content {
    background: white;
    padding: 24px;
    border-radius: 10px;
    max-width: 450px;
    width: 100%;
    position: relative;
    /* Allow modal content to scroll when content is tall (e.g. PayPal menus) */
    max-height: 90vh;
    overflow: auto;
}

/* Form layout inside modals: stack label then input, with spacing */
.modal-content form label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--gray-900);
}

.modal-content form input,
.modal-content form textarea,
.modal-content form select {
    display: block;
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--gray-300);
    border-radius: 6px;
    margin-bottom: 14px;
    font-size: 1rem;
    background: #fff;
    color: var(--gray-900);
}

.modal-content form textarea {
    min-height: 88px;
    resize: vertical;
}

.modal-content form input[disabled],
.modal-content form select[disabled],
.modal-content form textarea[disabled] {
    background: #f7f7f7;
    color: var(--gray-600);
}


.modal-content .btn {
    margin-top: 6px;
}

/* ============================================================
   COOKIE CONSENT BANNER
   ============================================================ */
.cookie-consent {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    padding: 12px 16px;
    z-index: 11000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.cookie-consent .cookie-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    max-width: 1100px;
}

.cookie-consent p { margin: 0; color: var(--gray-900); }

.cookie-consent .cookie-actions { display: flex; gap: 8px; }

.cookie-consent.hidden { display: none !important; }

@media (max-width: 640px) {
    .cookie-consent { left: 12px; right: 12px; padding: 12px; }
    .cookie-consent .cookie-inner { flex-direction: column; align-items: stretch; }
    .cookie-consent .cookie-actions { justify-content: flex-end; width: 100%; }
    .cookie-consent p { margin-bottom: 8px; }
}

/* ============================================================
   ACCESSIBILITY PANEL & FEATURES
============================================================ */
.accessibility-toggle {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--green-600);
    color: white;
    font-size: 28px;
    border: none;
    cursor: pointer;
    z-index: 10500;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, transform 0.2s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.accessibility-toggle:hover {
    background: var(--green-700);
    transform: scale(1.1);
}

.accessibility-toggle:focus {
    outline: 3px solid var(--yellow-400);
    outline-offset: 2px;
}

.accessibility-panel {
    position: fixed;
    bottom: 100px;
    right: 24px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    z-index: 10500;
    width: 300px;
    max-height: 70vh;
    overflow-y: auto;
    padding: 16px;
    display: none;
    flex-direction: column;
    border: 2px solid var(--green-600);
}

.accessibility-panel[aria-hidden="false"] {
    display: flex;
}

.accessibility-panel-content h3 {
    margin: 0 0 16px 0;
    color: var(--green-600);
    font-size: 1.1rem;
}

.accessibility-option {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
}

.accessibility-option label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: 500;
    color: var(--gray-900);
}

.accessibility-option input[type="checkbox"] {
    margin-right: 8px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* High Contrast Mode */
body.accessibility-high-contrast {
    background: #fff;
    color: #000;
}

body.accessibility-high-contrast * {
    border-color: #000 !important;
}

body.accessibility-high-contrast .header {
    background: #fff;
    border-bottom: 3px solid #000;
    color: #000;
}

body.accessibility-high-contrast .header-inner .desktop-nav a,
body.accessibility-high-contrast .header-inner .desktop-nav a:hover {
    color: #000;
}

body.accessibility-high-contrast .login-btn {
    background: #000;
    color: #fff;
    border: 2px solid #000;
}

body.accessibility-high-contrast .footer {
    background: #000;
    color: #fff;
    border-top: 3px solid #fff;
}

body.accessibility-high-contrast .footer-col a,
body.accessibility-high-contrast .footer-col a:hover {
    color: #fff;
}

body.accessibility-high-contrast .hero {
    background: #fff;
}

body.accessibility-high-contrast .hero-overlay {
    background: rgba(0, 0, 0, 0.3);
}

body.accessibility-high-contrast .hero-content {
    color: #000;
}

body.accessibility-high-contrast .hero-content h1 {
    color: #000;
    text-shadow: 2px 2px 0px #fff;
}

body.accessibility-high-contrast .btn.primary {
    background: #000;
    color: #fff;
    border: 2px solid #000;
}

body.accessibility-high-contrast .btn.primary:hover {
    background: #333;
}

body.accessibility-high-contrast .btn.secondary {
    background: #fff;
    color: #000;
    border: 2px solid #000;
}

body.accessibility-high-contrast .btn.secondary:hover {
    background: #e0e0e0;
    border-color: #000;
}

body.accessibility-high-contrast .modal-content {
    background: #fff;
    color: #000;
    border: 3px solid #000;
}

body.accessibility-high-contrast .modal-content h2 {
    color: #000;
}

body.accessibility-high-contrast .accessibility-panel {
    background: #fff;
    color: #000;
    border: 3px solid #000;
}

body.accessibility-high-contrast .accessibility-panel-content h3 {
    color: #000;
    border-bottom: 2px solid #000;
    padding-bottom: 8px;
}

body.accessibility-high-contrast .accessibility-option label {
    color: #000;
}

body.accessibility-high-contrast .accessibility-option input[type="checkbox"] {
    border: 2px solid #000;
    background: #fff;
}

body.accessibility-high-contrast .animal-card,
body.accessibility-high-contrast .hotel-card,
body.accessibility-high-contrast .visit-card,
body.accessibility-high-contrast .loyalty-card {
    background: #fff;
    color: #000;
    border: 2px solid #000;
}

body.accessibility-high-contrast .animals-section,
body.accessibility-high-contrast .hotel-section {
    background: #f5f5f5;
}

body.accessibility-high-contrast .visit-card {
    background: #e0e0e0;
    color: #000;
}

body.accessibility-high-contrast .card-body p,
body.accessibility-high-contrast .animal-card p {
    color: #000;
}

body.accessibility-high-contrast form label {
    color: #000;
    font-weight: 700;
}

body.accessibility-high-contrast form input,
body.accessibility-high-contrast form textarea,
body.accessibility-high-contrast form select {
    background: #fff;
    color: #000;
    border: 2px solid #000;
}

body.accessibility-high-contrast form input:focus,
body.accessibility-high-contrast form textarea:focus,
body.accessibility-high-contrast form select:focus {
    outline: 3px dashed #000;
    outline-offset: 2px;
}

body.accessibility-high-contrast .close {
    color: #000;
    font-weight: bold;
}

body.accessibility-high-contrast .loyalty-section {
    background: #fff;
    color: #000;
}

body.accessibility-high-contrast .loyalty-section h2 {
    color: #000;
}

body.accessibility-high-contrast .loyalty-card {
    background: #fff;
    color: #000;
    border: 2px solid #000;
}

body.accessibility-high-contrast .loyalty-card.featured {
    border: 3px solid #000;
}

body.accessibility-high-contrast .tier-header {
    background: #000;
    color: #fff;
    border-bottom: 2px solid #fff;
}

body.accessibility-high-contrast .tier-header h2 {
    color: #fff;
}

body.accessibility-high-contrast .tier-header .price {
    color: #fff;
}

body.accessibility-high-contrast .loyalty-card ul {
    color: #000;
}

body.accessibility-high-contrast .loyalty-card li {
    color: #000;
}

/* ============================================================
   ADMIN PANEL
============================================================ */
#adminBookingsContainer {
    background: white;
}

#adminBookingsContainer .admin-booking-item {
    border-bottom: 1px solid #e0e0e0;
    padding: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

#adminBookingsContainer .admin-booking-item:last-child {
    border-bottom: none;
}

#adminBookingsContainer .booking-info {
    flex: 1;
}

#adminBookingsContainer .booking-info p {
    margin: 2px 0;
    font-size: 0.9rem;
    color: #666;
}

#adminBookingsContainer .booking-info strong {
    color: var(--gray-900);
}

#adminBookingsContainer .booking-delete {
    padding: 6px 12px;
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.2s;
}

#adminBookingsContainer .booking-delete:hover {
    background: #c82333;
}

body.accessibility-larger-text {
    font-size: 18px;
    line-height: 1.8;
}

body.accessibility-larger-text h1 { font-size: 3.6rem; }
body.accessibility-larger-text h2 { font-size: 2.6rem; }
body.accessibility-larger-text h3 { font-size: 1.8rem; }
body.accessibility-larger-text .btn { padding: 14px 28px; font-size: 1.1rem; }


body.accessibility-dyslexia-font {
    font-family: 'Opendyslexic', 'OpenDyslexic', sans-serif, system-ui;
}


body.accessibility-reduce-motion * {
    animation: none !important;
    transition: none !important;
}


body.accessibility-focus-indicators *:focus {
    outline: 4px dashed var(--yellow-400) !important;
    outline-offset: 3px !important;
}


body.modal-open {
    overflow: hidden;
}

.modal .close {
    position: absolute;
    top: 10px; 
    right: 12px;
    font-size: 24px;
    cursor: pointer;
}

/* ============================================================
   CALENDAR
============================================================ */
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
    margin-top: 16px;
}

.calendar-grid .day {
    font-weight: bold;
    text-align: center;
}

.calendar-day,
.empty {
    background: #f1f5f9;
    padding: 10px 0;
    text-align: center;
    border-radius: 6px;
}

.calendar-day {
    cursor: pointer;
}

.calendar-day:hover {
    background: var(--green-50);
}

.calendar-day.selected {
    background: var(--green-600) !important;
    color: white;
}
