@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Poppins:wght@400;500;600;700&display=swap');

:root {
    --primary: #0F5D46; /* Emerald Green */
    --secondary: #134E3A; /* Forest Green */
    --accent: #D4AF37; /* Luxury Gold */
    --bg-color: #EEF7F2; /* Soft Light Greenish White */
    --card-bg: #FFFFFF;
    --text-color: #1a3a2a;
    --text-light: #4a6555;
    --radius-lg: 20px;
    --shadow-premium: 0 10px 30px rgba(15, 93, 70, 0.08);
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .navbar-brand {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
}

/* ==================== NAVBAR ==================== */
.navbar {
    transition: all 0.4s ease;
    padding: 1rem 0;
    z-index: 1050;
}

.navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    padding: 0.75rem 0;
}

.navbar-dark .nav-link {
    color: #fff !important;
    font-weight: 500;
    position: relative;
}

.navbar-light .nav-link {
    color: var(--secondary) !important;
    font-weight: 500;
}

.navbar.scrolled .nav-link {
    color: var(--secondary) !important;
}

.navbar.scrolled .navbar-brand {
    color: var(--secondary) !important;
}

/* Toggler fix for both dark and light navbar */
.navbar-dark .navbar-toggler {
    border-color: rgba(255, 255, 255, 0.5);
}

.navbar-light .navbar-toggler {
    border-color: rgba(0, 0, 0, 0.15);
}

.navbar-toggler:focus {
    box-shadow: none;
}

/* Mobile nav dropdown background */
@media (max-width: 991.98px) {
    .navbar-dark .navbar-collapse {
        background-color: rgba(17, 17, 17, 0.95);
        border-radius: 10px;
        padding: 1rem;
        margin-top: 0.5rem;
    }
    .navbar-light .navbar-collapse {
        background-color: #fff !important;
        border-radius: 10px;
        padding: 1rem;
        margin-top: 0.5rem;
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    }
    .navbar .nav-link {
        padding: 0.6rem 1rem !important;
    }
}

/* ==================== BUTTONS ==================== */
.btn-primary-luxury {
    background-color: var(--primary);
    color: #fff !important;
    border: none;
    border-radius: 50px;
    padding: 12px 30px;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(15, 93, 70, 0.3);
}

.btn-primary-luxury:hover {
    background-color: var(--accent);
    color: var(--secondary) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
}

.btn-outline-luxury {
    border: 2px solid #fff;
    color: #fff !important;
    border-radius: 50px;
    padding: 10px 28px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline-luxury:hover {
    background-color: #fff !important;
    color: var(--secondary);
}



/* ==================== CARDS ==================== */
.premium-card {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-premium);
    transition: all 0.3s ease;
    border: none;
    overflow: hidden;
}

.premium-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

/* ==================== PAGE HERO (Inner Pages) ==================== */
.page-hero {
    padding: 120px 0 80px;
    position: relative;
}

.page-hero .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255,255,255,0.8);
}

/* ==================== MODERN COMPONENTS (From UI Images) ==================== */
/* Modern Card Style */
.modern-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
    border: none;
}
.modern-card:hover {
    transform: translateY(-5px);
}
.modern-card img {
    border-radius: 12px;
    margin-bottom: 15px;
    object-fit: cover;
    width: 100%;
}
.modern-card .card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #134E3A;
    margin-bottom: 2px;
}
.modern-card .card-subtitle {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 15px;
}
.modern-card .card-desc {
    font-size: 0.85rem;
    color: #555;
    line-height: 1.5;
    margin-bottom: 20px;
}
.modern-card .stats-box {
    background: #f4f5f7;
    border-radius: 12px;
    padding: 10px 5px;
    text-align: center;
}
.modern-card .stats-box .stat-label {
    font-size: 0.7rem;
    color: #777;
    display: block;
    margin-bottom: 2px;
}
.modern-card .stats-box .stat-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: #134E3A;
    display: block;
}
.modern-card .btn-black {
    background: #134E3A;
    color: #fff !important;
    border-radius: 12px;
    padding: 12px;
    font-weight: 600;
    width: 100%;
    border: none;
    transition: background 0.3s ease;
}
.modern-card .btn-black:hover {
    background: #134E3A;
}


/* Modern Form Style */
.modern-form {
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 20px;
    padding: 30px 25px;
    box-shadow: 0 15px 50px rgba(19, 78, 58, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.9);
}
@media (max-width: 575.98px) {
    .modern-form { padding: 20px 16px; }
}
.modern-form .section-title {
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 16px;
    margin-top: 8px;
    color: var(--secondary);
}
.modern-form .form-label {
    font-weight: 600;
    font-size: 0.82rem;
    margin-bottom: 5px;
    color: var(--secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.modern-form .form-control, 
.modern-form .form-select {
    border-radius: 10px;
    border: 1.5px solid rgba(15, 93, 70, 0.2);
    padding: 11px 14px;
    background: rgba(255,255,255,0.9);
    color: var(--secondary);
    font-size: 0.9rem;
    box-shadow: none !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.modern-form .form-control:focus, 
.modern-form .form-select:focus {
    border-color: var(--primary);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(15, 93, 70, 0.1) !important;
}
.modern-form .form-control::placeholder {
    color: #9ab5a8;
}
.modern-form .form-select option {
    color: var(--secondary);
    background: #fff;
}
.modern-form .btn-black {
    background: var(--secondary);
    color: #fff !important;
    border-radius: 12px;
    padding: 14px;
    font-weight: 700;
    width: 100%;
    font-size: 1rem;
    margin-top: 8px;
    border: none;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(15, 93, 70, 0.3);
}
.modern-form .btn-black:hover {
    background: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(15, 93, 70, 0.4);
}



/* ==================== GALLERY ==================== */
.gallery-img {
    transition: all 0.4s ease;
    cursor: pointer;
}

.gallery-img:hover {
    transform: scale(1.03);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15) !important;
}

/* ==================== ACCORDION ==================== */
.accordion-button {
    padding: 1.2rem 1.5rem;
    background-color: #fff !important;
    font-family: 'Poppins', sans-serif;
}

.accordion-button:not(.collapsed) {
    background-color: #EDF8F1;
    color: var(--secondary);
    box-shadow: none;
}

.accordion-button:focus {
    box-shadow: none;
    border-color: var(--primary);
}

.accordion-button::after {
    background-size: 1rem;
}

/* ==================== HERO SECTION ==================== */
.hero {
    min-height: 100vh;
    background-image: linear-gradient(rgba(10, 40, 20, 0.55), rgba(5, 25, 12, 0.75)), url('/static/hero.webp');
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 100px;
    padding-bottom: 60px;
}

.hero h1 {
    font-size: 4.8rem;
    color: #fff !important;
    line-height: 1.05;
    margin-bottom: 22px;
    font-weight: 800;
    letter-spacing: -1px;
}

/* ==================== INPUTS ==================== */
.form-control, .form-select {
    padding: 11px 16px;
    border-radius: 10px;
    border: 1.5px solid rgba(15, 93, 70, 0.15);
    background-color: #f8fbf9;
    color: var(--secondary);
    font-size: 0.92rem;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(15, 93, 70, 0.12);
    background-color: #fff;
    color: var(--secondary);
}

.form-control::placeholder {
    color: #9ab5a8;
}

.form-select option {
    color: var(--secondary);
}



/* ==================== FOOTER ==================== */
.footer {
    background-color: var(--secondary);
    color: #fff !important;
    padding: 80px 0 0;
}

.footer-heading {
    position: relative;
    padding-bottom: 12px;
}

.footer-heading::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 3px;
    background-color: var(--primary);
    border-radius: 2px;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #888;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--primary);
    padding-left: 5px;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 18px;
    color: #888;
    font-size: 0.95rem;
}

.footer-contact li i {
    margin-top: 3px;
    font-size: 1rem;
}

.footer-social {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.08);
    color: #fff !important;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.footer-social:hover {
    background-color: var(--primary);
    color: var(--secondary);
    transform: translateY(-3px);
}

.footer-bottom {
    margin-top: 50px;
    padding: 25px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* ==================== PRICING TABLE ==================== */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-premium);
}

.table-premium {
    background: #fff;
    margin-bottom: 0;
    min-width: 750px;
}

.table-premium th {
    background-color: var(--secondary);
    color: #fff !important;
    font-weight: 500;
    padding: 15px 18px;
    border: none;
    white-space: nowrap;
    position: sticky;
    top: 0;
    z-index: 2;
}

.table-premium td {
    padding: 14px 18px;
    vertical-align: middle;
    border-bottom: 1px solid #f0f0f0;
    white-space: nowrap;
}

.table-premium tbody tr:hover {
    background-color: #EDF8F1;
}

.route-col {
    min-width: 250px;
}

/* Sticky first column on mobile */
@media (max-width: 991.98px) {
    .route-col {
        min-width: 150px;
        white-space: normal !important; /* Allow text wrapping on mobile */
    }
    .table-premium td:first-child {
        white-space: normal !important;
        font-size: 0.9rem;
        line-height: 1.3;
    }
    .table-premium th:first-child,
    .table-premium td:first-child {
        position: sticky;
        left: 0;
        z-index: 1;
        background-color: inherit;
        max-width: 150px;
    }
    .table-premium th:first-child {
        background-color: var(--secondary);
        z-index: 3;
    }
    .table-premium td:first-child {
        background-color: #fff !important;
        box-shadow: 2px 0 5px rgba(0,0,0,0.05);
    }
    .table-premium tbody tr:hover td:first-child {
        background-color: #EDF8F1;
    }
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 991.98px) {
    .hero {
        min-height: auto;     /* let hero grow to cover all content */
        background-attachment: scroll; /* fixed doesn't work well on tablets */
        padding-top: 110px;
        padding-bottom: 50px;
    }
    .hero h1 { font-size: 3rem; }
    .hero .hero-content {
        margin-bottom: 24px;
        text-align: center;
    }
    .hero .hero-content .btn { display: inline-block; }
    .hero .row.align-items-center > .col-lg-6:last-child {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }
}

@media (max-width: 767.98px) {
    .hero {
        min-height: auto;
        background-attachment: scroll;
        padding-top: 100px;
        padding-bottom: 40px;
    }
    .hero h1 { font-size: 2.2rem; }
    .hero .lead { font-size: 0.9rem; }

    /* Close the gap between hero text and form */
    .hero .hero-content {
        margin-bottom: 6px !important;
    }
    .hero .hero-content h1 {
        margin-bottom: 10px !important;
    }
    .hero .hero-content p.mb-4,
    .hero .hero-content div.mb-4 {
        margin-bottom: 10px !important;
    }
    .hero .hero-content .btn {
        margin-bottom: 6px !important;
    }

    /* Make form compact on mobile */
    .modern-form {
        padding: 18px 14px !important;
    }
    .modern-form .section-title {
        font-size: 0.95rem !important;
        margin-bottom: 10px !important;
    }
    .modern-form .form-label {
        font-size: 0.72rem !important;
        margin-bottom: 3px !important;
    }
    .form-control, .form-select {
        padding: 8px 12px;
        font-size: 0.85rem;
    }
    .modern-form .row.g-3 { --bs-gutter-y: 0.5rem; }

    /* All form col-md-6 become full width */
    .modern-form .row.g-3 > [class*='col-md-'] {
        flex: 0 0 100%;
        max-width: 100%;
    }
    /* Date + Time stay side by side but smaller */
    .modern-form .d-flex.gap-2 {
        flex-direction: row !important;
        gap: 6px !important;
    }
    .modern-form .d-flex.gap-2 input {
        flex: 1;
        min-width: 0;
        padding: 8px 6px;
        font-size: 0.8rem;
    }
    /* Submit button */
    .modern-form .btn-black {
        padding: 12px !important;
        font-size: 0.95rem !important;
    }
    .booking-card { padding: 0 !important; }

    .display-5 { font-size: 1.6rem !important; }
    .display-4 { font-size: 1.9rem !important; }
    .display-3 { font-size: 1.9rem !important; }
    .premium-card:hover { transform: none; }
    .footer { padding: 50px 0 0; }
    .footer .row { text-align: center; }
    .footer-heading::after { left: 50%; transform: translateX(-50%); }
    .footer-contact li { justify-content: center; }
    .footer .d-flex.gap-3 { justify-content: center; }
    .page-hero { padding: 100px 0 50px; }
    .page-hero h1 { font-size: 1.8rem !important; }
    .gallery-img { height: 150px !important; }
}

@media (max-width: 575.98px) {
    .hero h1 { font-size: 1.9rem; }
    .modern-form { padding: 14px 12px !important; }
    .modern-form .section-title { font-size: 0.9rem !important; }
    section.py-5 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
    .container.py-5 {
        padding-top: 1rem !important;
        padding-bottom: 1rem !important;
    }
    .page-hero { padding: 90px 0 40px; }
    .page-hero h1 { font-size: 1.5rem !important; }
}

.text-accent { color: var(--accent) !important; }
.bg-accent { background-color: var(--accent) !important; color: var(--secondary) !important; font-weight: 700; }

/* Override bootstrap dark utilities to use green theme */
.text-dark { color: var(--secondary) !important; }
.btn-outline-dark { border-color: var(--secondary) !important; color: var(--secondary) !important; }
.btn-outline-dark:hover { background-color: var(--secondary) !important; color: #fff !important; }
.bg-dark { background-color: var(--secondary) !important; }
.btn-dark { background-color: var(--secondary) !important; border-color: var(--secondary) !important; color: #fff !important; }
.text-muted { color: var(--text-light) !important; }

/* Ensure ALL buttons have visible text */
.btn-black,
.modern-card .btn-black,
.modern-form .btn-black {
    color: #fff !important;
}


/* Faster, snappier AOS-like transitions */
[data-aos] {
    transition-duration: 0.5s !important;
}
[data-aos][data-aos-delay="100"] { transition-delay: 0.05s !important; }
[data-aos][data-aos-delay="200"] { transition-delay: 0.1s !important; }
[data-aos][data-aos-delay="300"] { transition-delay: 0.15s !important; }
[data-aos][data-aos-delay="400"] { transition-delay: 0.2s !important; }
[data-aos][data-aos-delay="500"] { transition-delay: 0.25s !important; }
[data-aos][data-aos-delay="600"] { transition-delay: 0.3s !important; }

/* Light green background sections */
body, section.bg-light {
    background-color: var(--bg-color);
}
section.bg-white { background-color: #ffffff; }

/* Accordion hover style */
.accordion-button:not(.collapsed)::after {
    filter: none;
}
.accordion-button:not(.collapsed) {
    color: var(--secondary) !important;
}
