/* Hero Section */
.hero {
    position: relative;
    height: 600px;
    min-height: 600px;
    width: 100%;
    overflow-x: clip;
    overflow-y: visible;
    display: flex;
    flex-direction: column;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.hero-bg img,
.hero-bg video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom,
            rgba(29, 41, 57, 0.5) 0%,
            rgba(29, 41, 57, 0.6) 50%,
            rgba(29, 41, 57, 0.75) 100%);
}

.hero-content {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    text-align: center;
    padding: calc(var(--header-height) + 2rem) 1.5rem 10rem;
    min-height: 100%;
    height: 100%;
}

/* Hero Label - Small text above title */
.hero-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary);
    letter-spacing: 0.25em;
    text-transform: uppercase;
    margin-bottom: 1.25rem;
}

@media(min-width: 768px) {
    .hero-label {
        font-size: 0.875rem;
        letter-spacing: 0.3em;
    }
}

/* Hero Title */
.hero-title {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 400;
    color: white;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    letter-spacing: 0.02em;
}

.hero-highlight {
    color: var(--primary);
    font-style: italic;
}

@media(min-width: 768px) {
    .hero-title {
        font-size: 3.5rem;
    }
}

@media(min-width: 1024px) {
    .hero-title {
        font-size: 4rem;
    }
}

/* Hero Subtitle */
.hero-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.85);
    max-width: 36rem;
    margin-bottom: 2rem;
    font-weight: 300;
    line-height: 1.6;
}

@media(min-width: 768px) {
    .hero-subtitle {
        font-size: 1.125rem;
    }
}

/* Hero Button - Outline Style */
.hero-btn {
    display: inline-block;
    padding: 0.875rem 2.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--primary);
    background: transparent;
    border: 2px solid var(--primary);
    border-radius: 4px;
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
}

.hero-btn:hover {
    background-color: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(245, 158, 11, 0.3);
}

/* Legacy styles - keeping for compatibility */
.transport-tag {
    background-color: rgba(30, 58, 138, 0.9);
    backdrop-filter: blur(4px);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.carousel-dots {
    display: flex;
    gap: 0.5rem;
    margin-top: 2rem;
}

.dot {
    width: 0.625rem;
    height: 0.625rem;
    border-radius: 50%;
    background-color: white;
    opacity: 0.4;
    cursor: pointer;
    transition: opacity 0.2s;
}

.dot.active {
    background-color: var(--primary);
    opacity: 1;
    box-shadow: 0 0 10px var(--primary);
}

.dot:hover {
    opacity: 1;
}

/* Animations */
.fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
    transform: translateY(20px);
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Features Section */
.features-section {
    position: relative;
    overflow: hidden;
    padding: 8rem 0 5rem;
    background-color: var(--bg-light);
}

body.dark .features-section {
    background-color: var(--bg-dark);
}

.features-bg-decoration {
    position: absolute;
    top: 0;
    left: 0;
    width: 16rem;
    height: 16rem;
    background-color: rgba(245, 158, 11, 0.05);
    border-radius: 50%;
    filter: blur(48px);
    transform: translate(-50%, -50%);
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media(min-width: 768px) {
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 3rem;
    }
}

.feature-card {
    background-color: var(--surface-light);
    border-radius: var(--border-radius-xl);
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.08);
    /* soft shadow */
    transition: all 0.3s;
    overflow: hidden;
    border: 1px solid #f3f4f6;
}

body.dark .feature-card {
    background-color: var(--surface-dark);
    border-color: #1f2937;
}

.feature-card:hover {
    transform: translateY(-0.5rem);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.feature-img-box {
    height: 12rem;
    overflow: hidden;
    position: relative;
    background-color: #FDF6E8;
    display: flex;
    align-items: center;
    justify-content: center;
}

body.dark .feature-img-box {
    background-color: #1f2937;
}

.feature-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.feature-card:hover .feature-img-box img {
    transform: scale(1.1);
}

.feature-icon {
    font-size: 6rem;
    color: #1f2937;
    transition: color 0.3s, transform 0.3s;
}

body.dark .feature-icon {
    color: #9ca3af;
}

.feature-card:hover .feature-icon {
    color: var(--primary);
    transform: scale(1.1);
}

.feature-content {
    padding: 2rem;
    text-align: center;
}

.feature-title {
    font-family: var(--font-display);
    font-size: 1.25rem;
    /* xl */
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.75rem;
}

.feature-text {
    color: #4b5563;
    line-height: 1.6;
}

body.dark .feature-text {
    color: #9ca3af;
}

/* Gallery Section */
.gallery-section {
    padding: 6rem 0;
    background-color: #f9fafb;
    /* gray-50 */
}

body.dark .gallery-section {
    background-color: #161f30;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-label {
    color: var(--primary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.875rem;
    display: block;
    margin-bottom: 0.5rem;
}

.section-title {
    font-family: var(--font-display);
    font-size: 2.25rem;
    font-weight: 700;
    color: #111827;
}

body.dark .section-title {
    color: white;
}

@media(min-width: 768px) {
    .section-title {
        font-size: 3rem;
    }
}

.title-separator {
    width: 6rem;
    height: 0.25rem;
    background-color: var(--primary);
    margin: 1.5rem auto 0;
    border-radius: 9999px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 200px;
    gap: 1rem;
}

@media(min-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(4, 1fr);
        grid-template-rows: repeat(3, 1fr);
        height: 600px;
    }
}

.gallery-item {
    position: relative;
    border-radius: var(--border-radius-xl);
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    cursor: pointer;
}

.span-col-2 {
    grid-column: span 2;
}

.span-row-2 {
    grid-row: span 2;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
    opacity: 0;
    transition: opacity 0.3s;
    display: flex;
    align-items: flex-end;
    padding: 1.5rem;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-caption {
    color: white;
    font-weight: 500;
}

.view-more-btn {
    margin-top: 2rem;
    text-align: center;
}

/* CTA Section */
.cta-section {
    position: relative;
    padding: 6rem 0;
    background-color: var(--surface-light);
    overflow: hidden;
}

body.dark .cta-section {
    background-color: var(--surface-dark);
}

.cta-decoration {
    position: absolute;
    right: 0;
    top: 0;
    width: 33%;
    height: 100%;
    background-color: rgba(76, 175, 80, 0.1);
    /* accent-green/10 */
    transform: skewX(-12deg) translateX(3rem);
}

body.dark .cta-decoration {
    background-color: rgba(76, 175, 80, 0.05);
}

.cta-content {
    max-width: 56rem;
    /* 4xl */
    margin: 0 auto;
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 0 1rem;
}

.cta-title {
    font-family: var(--font-display);
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--accent-green);
    margin-bottom: 1.5rem;
}

@media(min-width: 768px) {
    .cta-title {
        font-size: 2.25rem;
    }
}

.cta-text {
    font-size: 1.25rem;
    /* xl */
    color: #374151;
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

body.dark .cta-text {
    color: #d1d5db;
}

.btn-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2.5rem;
    border: 1px solid transparent;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 9999px;
    color: white;
    background-color: var(--accent-green);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
}

.btn-cta:hover {
    background-color: #16a34a;
    /* green-600 */
    transform: translateY(-0.25rem);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 1rem;
    left: 1rem;
    right: 1rem;
    z-index: 50;
    background-color: #111827;
    color: white;
    padding: 1rem;
    border-radius: 0.75rem;
    /* xl */
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    font-size: 0.75rem;
}

body.dark .cookie-banner {
    background-color: white;
    color: #111827;
}

@media(min-width: 768px) {
    .cookie-banner {
        max-width: 28rem;
        left: auto;
        right: 1rem;
        flex-direction: row;
    }
}

/* Booking Engine Styles - White card at bottom of hero */
.booking-engine {
    position: absolute;
    bottom: -60px;
    left: 0;
    right: 0;
    margin-left: auto;
    margin-right: auto;
    z-index: 20;
    background: white;
    border-radius: 8px;
    padding: 2rem 2.5rem;
    box-shadow: 0 10px 60px rgba(0, 0, 0, 0.15);
    width: calc(100% - 2rem);
    max-width: 1000px;
    box-sizing: border-box;
}

.booking-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    text-align: left;
    flex: 1;
}

.form-group label {
    font-size: 0.8rem;
    color: #374151;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrapper .material-icons-outlined {
    display: none;
}

.input-wrapper input,
.input-wrapper select {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    background-color: white;
    color: #374151;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    outline: none;
    transition: all 0.2s;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
}

.input-wrapper select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%239ca3af' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.75rem center;
    background-repeat: no-repeat;
    background-size: 1.25em 1.25em;
    padding-right: 2.5rem;
}

.input-wrapper input:focus,
.input-wrapper select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.15);
}

.btn-check {
    background-color: var(--primary);
    color: white;
    font-weight: 700;
    border: none;
    border-radius: 4px;
    padding: 1rem 2rem;
    cursor: pointer;
    font-size: 0.875rem;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    height: auto;
    margin-top: auto;
    white-space: nowrap;
}

.btn-check:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(245, 158, 11, 0.3);
}

/* Tooltip Styles */
.tooltip-container {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 0.5rem;
}

.tooltip-icon {
    font-size: 1rem !important;
    color: #9ca3af;
    cursor: help;
    transition: color 0.2s;
}

.tooltip-container:hover .tooltip-icon {
    color: var(--primary);
}

.tooltip-text {
    visibility: hidden;
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 4px;
    padding: 6px 10px;
    position: absolute;
    z-index: 100;
    bottom: 140%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 0.75rem;
    white-space: nowrap;
    pointer-events: none;
    font-weight: 500;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.tooltip-text::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -4px;
    border-width: 4px;
    border-style: solid;
    border-color: #333 transparent transparent transparent;
}

.tooltip-container:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

/* Responsive Booking Engine */
@media (min-width: 640px) {
    .booking-form {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1.25rem;
        align-items: flex-end;
    }

    .btn-check {
        grid-column: 1 / -1;
        width: 100%;
    }
}

@media (min-width: 900px) {
    .booking-engine {
        padding: 1.75rem 2.5rem;
        bottom: -50px;
    }

    .booking-form {
        display: flex;
        flex-direction: row;
        align-items: flex-end;
        gap: 1.5rem;
    }

    .btn-check {
        width: auto;
        padding: 1rem 2rem;
    }

    .form-group {
        min-width: 140px;
    }
}

/* Dark Mode for Booking Engine */
body.dark .booking-engine {
    background-color: #1f2937;
    /* gray-800 */
    box-shadow: 0 10px 60px rgba(0, 0, 0, 0.4);
}

body.dark .booking-form label {
    color: #e5e7eb;
    /* gray-200 */
}

body.dark .input-wrapper input,
body.dark .input-wrapper select {
    background-color: #374151;
    /* gray-700 */
    border-color: #4b5563;
    /* gray-600 */
    color: white;
}

body.dark .input-wrapper input:focus,
body.dark .input-wrapper select:focus {
    border-color: var(--primary);
    background-color: #4b5563;
    /* slightly lighter gray on focus */
}

/* Mobile: Show form fields in vertical layout */
@media (max-width: 639px) {
    .booking-engine {
        position: relative;
        bottom: auto;
        left: auto;
        right: auto;
        transform: none;
        width: calc(100% - 2rem);
        margin: -3rem auto 2rem;
        padding: 1.25rem 1rem;
        border-radius: 12px;
    }

    .booking-form {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }

    .booking-form .form-group {
        display: flex;
    }

    .form-group label {
        font-size: 0.7rem;
    }

    .input-wrapper input,
    .input-wrapper select {
        padding: 0.75rem 0.75rem;
        font-size: 0.85rem;
    }

    .btn-check {
        grid-column: 1 / -1;
        width: 100%;
        padding: 0.875rem;
        font-size: 0.85rem;
    }

    .hero-content {
        padding-bottom: 2rem;
        min-height: calc(100vh - 200px);
    }

    .hero {
        min-height: auto;
        height: auto;
    }

    .features-section {
        padding-top: 3rem;
    }
}

/* ------------------------------------------------------------------------- */
/* Flatpickr Customization - Project Theme Integration */
/* ------------------------------------------------------------------------- */

/* Calendar Container */
.flatpickr-calendar {
    font-family: var(--font-sans);
    border-radius: var(--border-radius);
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.15);
    border: none;
    overflow: hidden;
    background: white;
    /* Explicit default */
}

/* Header (Month/Year) */
.flatpickr-month {
    background: var(--primary) !important;
    color: white !important;
    fill: white !important;
    padding-top: 10px;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
    margin-bottom: 0;
    height: 50px;
}

/* Month Dropdown & Year Input */
.flatpickr-current-month {
    padding-top: 0;
    font-size: 110%;
    color: white !important;
}

.flatpickr-current-month .flatpickr-monthDropdown-months,
.flatpickr-current-month input.cur-year {
    color: white !important;
    font-weight: 700;
    font-family: var(--font-sans);
    background: transparent;
    border: none;
    appearance: none;
}

/* Dropdown arrow fix */
.flatpickr-current-month .flatpickr-monthDropdown-months .flatpickr-monthDropdown-month {
    background-color: white;
    color: #333;
}

.flatpickr-current-month .flatpickr-monthDropdown-months:hover,
.flatpickr-current-month input.cur-year:hover {
    background: rgba(0, 0, 0, 0.1);
}

/* Weekdays row */
.flatpickr-weekdays {
    background: var(--primary) !important;
    height: 36px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

span.flatpickr-weekday {
    background: var(--primary) !important;
    color: rgba(255, 255, 255, 0.95) !important;
    font-weight: 600;
    font-size: 0.9rem;
}

/* Navigation Arrows */
.flatpickr-prev-month,
.flatpickr-next-month {
    top: 10px;
    /* Align with header center */
    color: white !important;
    fill: white !important;
}

.flatpickr-prev-month svg,
.flatpickr-next-month svg {
    fill: white !important;
    width: 16px;
    height: 16px;
}

.flatpickr-prev-month:hover svg,
.flatpickr-next-month:hover svg {
    fill: rgba(255, 255, 255, 0.8) !important;
}

/* Days Selection */
.flatpickr-days {
    border-radius: 0 0 var(--border-radius) var(--border-radius);
}

/* Generic Day Style */
.flatpickr-day {
    color: #374151;
    /* gray-700 */
    font-weight: 500;
    border-radius: 50%;
    /* Circle selection */
    border: 1px solid transparent;
}

.flatpickr-day:hover,
.flatpickr-day:focus {
    background: #f3f4f6;
    border-color: #e5e7eb;
}

/* Today */
.flatpickr-day.today {
    border-color: var(--primary) !important;
}

.flatpickr-day.today:hover {
    background: var(--primary) !important;
    color: white !important;
}

/* Selected / Active Day */
.flatpickr-day.selected,
.flatpickr-day.startRange,
.flatpickr-day.endRange,
.flatpickr-day.selected.inRange,
.flatpickr-day.startRange.inRange,
.flatpickr-day.endRange.inRange,
.flatpickr-day.selected:focus,
.flatpickr-day.startRange:focus,
.flatpickr-day.endRange:focus,
.flatpickr-day.selected:hover,
.flatpickr-day.startRange:hover,
.flatpickr-day.endRange:hover,
.flatpickr-day.selected.prevMonthDay,
.flatpickr-day.startRange.prevMonthDay,
.flatpickr-day.endRange.prevMonthDay,
.flatpickr-day.selected.nextMonthDay,
.flatpickr-day.startRange.nextMonthDay,
.flatpickr-day.endRange.nextMonthDay {
    background: var(--primary) !important;
    border-color: var(--primary) !important;
    color: white !important;
    box-shadow: 3px 3px 10px rgba(245, 158, 11, 0.3);
}

/* Disabled */
.flatpickr-day.flatpickr-disabled,
.flatpickr-day.flatpickr-disabled:hover {
    color: #d1d5db !important;
    /* gray-300 */
}


/* DARK MODE SUPPORT */
/* ----------------- */

/* Target specific body class. High specificity. */
body.dark .flatpickr-calendar {
    background: var(--surface-dark) !important;
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.5);
}

/* Ensure inner containers don't have white backgrounds */
body.dark .flatpickr-innerContainer,
body.dark .flatpickr-rContainer,
body.dark .flatpickr-days {
    background: transparent;
}

/* Dropdown styling in dark mode */
body.dark .flatpickr-monthDropdown-months .flatpickr-monthDropdown-month {
    background-color: var(--surface-dark);
    color: var(--text-dark);
}

/* Days in dark mode */
body.dark .flatpickr-day {
    color: var(--text-dark);
}

body.dark .flatpickr-day:hover,
body.dark .flatpickr-day:focus {
    background: #374151;
    /* gray-700 */
    border-color: #4b5563;
    color: white;
}

/* Disabled days */
body.dark .flatpickr-day.flatpickr-disabled,
body.dark .flatpickr-day.flatpickr-disabled:hover {
    color: #4b5563 !important;
    /* gray-600 */
}

/* Next/Prev month days (faded) */
body.dark .flatpickr-day.prevMonthDay,
body.dark .flatpickr-day.nextMonthDay {
    color: #6b7280;
    /* gray-500 */
}

/* Keep selected days clearly visible */
body.dark .flatpickr-day.selected,
body.dark .flatpickr-day.selected:hover {
    color: white !important;
    background: var(--primary) !important;
    border-color: var(--primary) !important;
}