:root {
    /* Brand Colors */
    --primary-color: #005b96;
    /* Lapis Lazuli Blue */
    --secondary-color: #d4af37;
    /* Egyptian Gold */
    --dark-color: #0a192f;
    /* Deep Night */
    --light-color: #f4f7f6;
    /* Soft Cloud */

    /* Theme Variables (Light Default) */
    --body-bg: #ffffff;
    --text-color: #2c3e50;
    --text-muted: #6c757d;
    --card-bg: #ffffff;
    --border-color: #e9ecef;
    --input-bg: #f8f9fa;
    --input-border: #ced4da;
    --navbar-scrolled-bg: rgba(255, 255, 255, 0.98);
    --navbar-text: #2c3e50;
    --shadow-color: rgba(0, 91, 150, 0.15);

    --border-radius: 8px;
    --box-shadow: 0 5px 15px var(--shadow-color);
}

/* Dark Theme Overrides - "Royal Night" Palette */
[data-theme="dark"] {
    --body-bg: #0f172a;
    /* Rich Slate Blue (Tailwind Slate-900) */
    --text-color: #f1f5f9;
    /* Off White */
    --text-muted: #94a3b8;
    /* Slate-400 */
    --card-bg: #1e293b;
    /* Slate-800 - Lighter than body for depth */
    --border-color: #334155;
    /* Slate-700 */

    --input-bg: #0f172a;
    /* Darker input background */
    --input-border: #475569;
    /* Slate-600 */

    --navbar-scrolled-bg: rgba(15, 23, 42, 0.98);
    --navbar-text: #f8fafc;

    --shadow-color: rgba(0, 0, 0, 0.5);
    /* Stronger shadow for dark mode */

    /* Adjust Brand Colors for Dark Mode visibility */
    --primary-color: #38bdf8;
    /* Sky Blue (Cyan-400) for better contrast than Dark Blue */
    --secondary-color: #fbbf24;
    /* Amber-400 for Gold */
}

/* Global Heading Reductions */
h1 {
    font-size: 2rem !important;
}

h2 {
    font-size: 1.75rem !important;
}

h3 {
    font-size: 1.5rem !important;
}

h4 {
    font-size: 1.25rem !important;
}

h5 {
    font-size: 1.1rem !important;
}

h6 {
    font-size: 1rem !important;
}

/* Global Transition */
body {
    background-color: var(--body-bg);
    color: var(--text-color);
    font-size: 0.85rem;
    transition: background-color 0.3s ease, color 0.3s ease;
    overflow-x: hidden;
}

/* --- Dark Theme Specific Fixes --- */
[data-theme="dark"] .bg-white {
    background-color: var(--card-bg) !important;
}

[data-theme="dark"] .bg-light {
    background-color: var(--body-bg) !important;
}

[data-theme="dark"] .text-dark {
    color: var(--text-color) !important;
}

[data-theme="dark"] .text-muted {
    color: var(--text-muted) !important;
}

[data-theme="dark"] .border {
    border-color: var(--border-color) !important;
}

/* Navbar Fixes */
[data-theme="dark"] .navbar-light .navbar-nav .nav-link {
    color: var(--text-color);
}

[data-theme="dark"] .navbar-light .navbar-nav .nav-link:hover {
    color: var(--primary-color);
}

[data-theme="dark"] .navbar-light .navbar-brand {
    color: var(--text-color);
}

[data-theme="dark"] .dropdown-menu {
    background-color: var(--card-bg);
    border-color: var(--border-color);
}

[data-theme="dark"] .dropdown-item {
    color: var(--text-color);
}

[data-theme="dark"] .dropdown-item:hover {
    background-color: var(--border-color);
}

[data-theme="dark"] .modal-content {
    background-color: var(--card-bg);
    border-color: var(--border-color);
}

/* Button Overrides for Dark Mode */
[data-theme="dark"] .btn-outline-secondary {
    color: var(--text-color);
    border-color: var(--text-muted);
}

[data-theme="dark"] .btn-outline-secondary:hover {
    background-color: var(--border-color);
    border-color: var(--text-color);
    color: var(--text-color);
}

[data-theme="dark"] .btn-primary {
    border-color: transparent;
}

[data-theme="dark"] .btn-book-now {
    border: none !important;
}

/* Placeholder Fix for Dark Mode */
[data-theme="dark"] ::placeholder {
    color: var(--text-muted) !important;
    opacity: 1;
}

[data-theme="dark"] :-ms-input-placeholder {
    color: var(--text-muted) !important;
}

[data-theme="dark"] ::-ms-input-placeholder {
    color: var(--text-muted) !important;
}

/* Navbar Scrolled Fix for Dark Mode */
[data-theme="dark"] .navbar-scrolled {
    background: var(--navbar-scrolled-bg) !important;
}

[data-theme="dark"] .navbar-scrolled .nav-link,
[data-theme="dark"] .navbar-scrolled .navbar-brand {
    color: var(--navbar-text) !important;
}

/* --- Theme Toggle Button Styling --- */
#theme-toggle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    padding: 0 !important;
    /* Override standard nav-link padding */
}

/* Default / Scrolled State (Light Theme) */
.navbar-scrolled #theme-toggle {
    background: rgba(0, 0, 0, 0.05);
    /* Light Grey */
    color: var(--text-color);
}

.navbar-scrolled #theme-toggle:hover {
    background: var(--primary-color);
    color: #fff;
}

/* Transparent State (Over Image) */
.navbar-transparent #theme-toggle {
    background: rgba(255, 255, 255, 0.2);
    /* Glass Effect */
    backdrop-filter: blur(5px);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.navbar-transparent #theme-toggle:hover {
    background: #fff;
    color: var(--primary-color);
}

/* Dark Mode Overrides */
[data-theme="dark"] .navbar-scrolled #theme-toggle {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

[data-theme="dark"] .navbar-scrolled #theme-toggle:hover {
    background: var(--primary-color);
}

/* Applying Variables to Components */
.card,
.trip-card,
.feature-box,
.booking-sidebar,
.booking-card {
    background-color: var(--card-bg);
    border-color: var(--border-color);
}

.text-dark {
    color: var(--text-color) !important;
}

.text-muted {
    color: var(--text-muted) !important;
}

.bg-light {
    background-color: var(--input-bg) !important;
}

/* Replaces generic light gray */
.bg-white {
    background-color: var(--card-bg) !important;
}

/* Navbar Updates */
.navbar-scrolled {
    background: var(--navbar-scrolled-bg) !important;
}

.navbar-scrolled .navbar-brand,
.navbar-scrolled .nav-link {
    color: var(--navbar-text);
}

/* Form Controls */
.form-control,
.form-select {
    background-color: var(--input-bg);
    border-color: var(--input-border);
    color: var(--text-color);
}

.form-control:focus,
.form-select:focus {
    background-color: var(--input-bg);
    color: var(--text-color);
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
}

/* Navbar Styles */
.navbar {
    transition: all 0.3s ease;
    padding: 1rem 0;
}

.navbar-transparent {
    background: transparent !important;
    box-shadow: none !important;
}

.navbar-transparent .navbar-brand,
.navbar-transparent .nav-link,
.navbar-transparent .btn-outline-secondary {
    color: #fff !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.navbar-transparent .btn-outline-secondary {
    border-color: rgba(255, 255, 255, 0.8);
}

.navbar-transparent .navbar-logo {
    background: rgba(255, 255, 255, 0.9);
}

.navbar-scrolled {
    background: rgba(255, 255, 255, 0.98) !important;
    box-shadow: 0 4px 24px 0 rgba(0, 0, 0, 0.07) !important;
    padding: 0.2rem 0;
}

.navbar-scrolled .navbar-brand,
.navbar-scrolled .nav-link {
    color: var(--text-color);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.2rem;
}

.navbar-brand img {
    max-height: 32px;
}

.nav-link {
    font-weight: 500;
    font-size: 0.85rem;
    padding: 0.5rem 0.6rem !important;
    transition: color 0.3s ease;
}



.nav-link:hover {
    color: var(--primary-color) !important;
}

/* Hero Slider Section */
.hero-slider {
    position: relative;
    height: 85vh;
    min-height: 500px;
    margin-top: -85px;
    /* Pull behind navbar */
}

.carousel-item {
    height: 85vh;
    min-height: 500px;
}

.carousel-item img {
    object-fit: cover;
    height: 100%;
    width: 100%;
}

.slider-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.2) 50%, rgba(0, 0, 0, 0.6) 100%);
    z-index: 1;
    pointer-events: none;
}

.hero-caption {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #fff;
    width: 80%;
    max-width: 900px;
    z-index: 10;
}

.hero-caption h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1.2rem;
    text-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    letter-spacing: -1px;
}

.hero-caption p {
    font-size: 1rem;
    margin-bottom: 2rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    font-weight: 300;
}

@media (max-width: 768px) {
    .hero-caption h1 {
        font-size: 2.5rem;
    }

    .hero-caption p {
        font-size: 1.1rem;
    }
}

/* --- Fixed Navbar Styling --- */

/* Active Link Highlight */
.navbar-nav .nav-link.active {
    background-color: var(--primary-color);
    color: #fff !important;
    font-weight: 700;
    border-radius: 50px;
    padding: 0.4rem 1rem !important;
    box-shadow: 0 4px 10px rgba(0, 91, 150, 0.3);
}

/* Ensure text is dark on non-home pages (navbar-light) but keep active white */
.navbar-light .navbar-nav .nav-link {
    color: var(--text-color);
    padding: 0.5rem 1rem;
}

.navbar-light .navbar-nav .nav-link:hover {
    color: var(--primary-color);
}

.navbar-light .navbar-nav .nav-link.active {
    color: #fff !important;
    /* Keep white on active */
    background-color: var(--primary-color);
}

/* Restored "Book Now" Button Style */
/* Restored "Book Now" Button Style - Premium Gradient */
.btn-book-now {
    background: linear-gradient(135deg, var(--primary-color), #003366);
    /* Deep Blue Gradient */
    color: #fff !important;
    color: #fff !important;
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-weight: 700;
    font-size: 0.8rem;
    padding: 0.4rem 1.2rem;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(0, 91, 150, 0.4);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.btn-book-now:hover {
    background: linear-gradient(135deg, var(--secondary-color), #b8860b);
    /* Gold Gradient on Hover */
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.5);
    /* Gold Glow */
    color: #fff !important;
}



/* High Contrast Hero Button (Keep this) */
.hero-caption .btn-primary {
    background-color: #fff !important;
    color: var(--primary-color) !important;
    border-color: #fff !important;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* High Contrast Hero Button */
.hero-caption .btn-primary {
    background-color: #fff !important;
    color: var(--primary-color) !important;
    border-color: #fff !important;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.hero-caption .btn-primary:hover {
    background-color: var(--primary-color) !important;
    color: #fff !important;
    border-color: var(--primary-color) !important;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
}

/* Trip Cards */
.trip-card {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: transform 0.3s ease;
    margin-bottom: 30px;
}

.trip-card:hover {
    transform: translateY(-5px);
}

.trip-card img {
    height: 250px;
    object-fit: cover;
}

.trip-card .card-body {
    padding: 1.5rem;
}

.trip-card .card-title {
    font-weight: 600;
    margin-bottom: 1rem;
}

.trip-card .price {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1.2rem;
}

/* Features Section */
.features-section {
    padding: 80px 0;
    background-color: var(--light-color);
}

.feature-box {
    text-align: center;
    padding: 2rem;
    border-radius: var(--border-radius);
    background: var(--card-bg);
    box-shadow: var(--box-shadow);
    transition: transform 0.3s ease;
}

.feature-box:hover {
    transform: translateY(-5px);
}

.feature-box i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Custom Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

/* Fix for centered absolute elements (like Hero Caption) */
@keyframes fadeInUpCentered {
    from {
        opacity: 0;
        transform: translate(-50%, -45%);
    }

    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

.animate-fade-in {
    animation: fadeInUp 0.5s ease-out;
}

.hero-caption.animate-fade-in {
    animation: fadeInUpCentered 0.8s ease-out forwards;
}

/* --- Enhanced Filter Widget --- */
.filter-widget {
    border-radius: var(--border-radius);
    background: var(--light-color);
    border: 1px solid #e0e0e0;
}

.filter-widget .input-group-text {
    background: var(--input-bg);
    border: none;
    color: var(--primary-color);
}

.filter-widget .btn-primary {
    min-width: 110px;
}

.filter-widget .btn-outline-secondary {
    min-width: 110px;
}

/* --- Enhanced Trip Card --- */
.trip-card .badge.bg-danger {
    font-size: 0.9rem;
    padding: 0.5em 1em;
    z-index: 2;
}

.trip-card .fa-heart {
    transition: color 0.2s;
    cursor: pointer;
}

.trip-card .fa-heart:hover {
    color: #ff6b6b;
}

.trip-card .text-success {
    font-size: 1rem;
}

.trip-card .text-decoration-line-through {
    font-size: 1rem;
}

.trip-card .btn-sm {
    padding: 0.3rem 0.9rem;
    font-size: 0.95rem;
}

.trip-card .btn-primary.disabled,
.trip-card .btn-primary:disabled {
    background: #ccc;
    border-color: #ccc;
    pointer-events: none;
}

/* --- Enhanced Pagination --- */
.rounded-pagination .page-link {
    border-radius: 50% !important;
    margin: 0 0.15rem;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.rounded-pagination .page-item.active .page-link {
    background: var(--primary-color);
    color: #fff;
    border: none;
}

.rounded-pagination .page-link:focus {
    box-shadow: 0 0 0 0.15rem rgba(255, 107, 107, 0.2);
}

/* --- Gradient Border for Filter Widget --- */
.border-gradient {
    border: 2px solid;
    border-image: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-image-slice: 1;
}

/* --- Section Title --- */
.section-title,
h2.fw-bold {
    font-size: 2.1rem;
    color: var(--primary-color);
    letter-spacing: -1px;
}

/* --- Sticky Pagination --- */
.sticky-pagination {
    position: sticky;
    bottom: 0;
    background: var(--light-color);
    z-index: 10;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.04);
    padding-bottom: 1rem;
}

/* --- No Results Icon --- */
.fa-search.text-secondary {
    opacity: 0.3;
}

/* --- Responsive Filter Widget --- */
@media (max-width: 768px) {
    .filter-widget .row.g-2>[class^='col-'] {
        margin-bottom: 1rem;
    }

    .filter-widget .d-flex.gap-2.flex-column.flex-md-row {
        flex-direction: column !important;
        gap: 0.5rem !important;
    }

    .sticky-pagination {
        padding-bottom: 2.5rem;
    }
}

/* --- Improved Spacing for Section Title and Filter --- */
.section-title,
h2.fw-bold {
    margin-bottom: 0.5rem;
}

.filter-widget {
    margin-bottom: 2rem;
}

/* --- Trip Details Hero Section --- */
.trip-hero {
    min-height: 350px;
    max-height: 500px;
    overflow: hidden;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin-bottom: 2rem;
}

.trip-hero .hero-img {
    object-fit: cover;
    width: 100%;
    height: 350px;
    filter: brightness(0.85);
}

.hero-overlay {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.7) 100%);
    border-radius: var(--border-radius);
    pointer-events: none;
}

.hero-overlay h1,
.hero-overlay .badge,
.hero-overlay span,
.hero-overlay a {
    pointer-events: auto;
}

/* --- Booking Sidebar --- */
.booking-sidebar {
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    background: var(--card-bg);
}

.booking-sidebar .btn-lg {
    font-size: 1.15rem;
    padding: 0.75rem 1.5rem;
}

.booking-sidebar ul.list-inline {
    font-size: 1rem;
    color: var(--text-color);
}

/* --- Tabs --- */
.nav-tabs .nav-link {
    font-weight: 500;
    color: var(--primary-color);
    border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.nav-tabs .nav-link.active {
    background: var(--primary-color);
    color: #fff;
    border: none;
}

.tab-content {
    padding-top: 1rem;
}

/* --- Responsive Adjustments for Details Page --- */
@media (max-width: 991px) {
    .trip-hero .hero-img {
        height: 220px;
    }

    .booking-sidebar {
        margin-top: 2rem;
    }
}

@media (max-width: 768px) {
    .trip-hero {
        min-height: 180px;
        max-height: 220px;
    }

    .trip-hero .hero-img {
        height: 180px;
    }

    .booking-sidebar {
        position: static !important;
        top: unset !important;
    }
}

/* --- Home Page Hero Section (Replaced by Slider) --- */
/* Kept for fallback/compat but disabled visually if needed */
.hero-bg {
    display: none;
}

/* --- Section Titles --- */
.section-title {
    font-size: 2.2rem;
    color: var(--primary-color);
    border-left: 6px solid var(--primary-color);
    padding-left: 0.75rem;
    margin-bottom: 0.5rem;
}

/* --- Features & Testimonials --- */
.feature-box,
.testimonial-card {
    border-radius: var(--border-radius);
    transition: box-shadow 0.3s, transform 0.3s;
    background: var(--card-bg);
}

.feature-box:hover,
.testimonial-card:hover {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    transform: translateY(-6px) scale(1.03);
}

.testimonial-card p,
.testimonial-card h6,
.testimonial-card small {
    color: var(--text-color) !important;
}

.testimonial-card .text-muted {
    color: var(--text-muted) !important;
}

.testimonials-section .card {
    border: none;
    background: var(--card-bg);
}

/* --- CTA Section --- */
.cta-section {
    background: linear-gradient(90deg, var(--primary-color) 60%, var(--secondary-color) 100%);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.cta-section .btn-light {
    font-size: 1.2rem;
    font-weight: 600;
    padding: 0.75rem 2.5rem;
    border-radius: 2rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

/* --- Responsive Adjustments for Home Page --- */
@media (max-width: 991px) {
    .hero-section {
        padding: 80px 0 60px 0;
    }

    .section-title {
        font-size: 1.5rem;
    }
}

@media (max-width: 768px) {
    .hero-section {
        min-height: 220px;
        padding: 60px 0 40px 0;
    }

    .hero-section h1 {
        font-size: 2rem;
    }

    .cta-section {
        padding: 2rem 0;
    }
}

/* --- Enhanced Trip Card for Consistency --- */
.trip-card {
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: box-shadow 0.3s, transform 0.3s;
    background: var(--card-bg);
}

.trip-card:hover {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    transform: translateY(-6px) scale(1.03);
}

.trip-card-img {
    border-top-left-radius: var(--border-radius);
    border-top-right-radius: var(--border-radius);
    object-fit: cover;
    height: 220px;
    width: 100%;
}

.trip-type-badge {
    font-size: 0.95rem;
    background: #4ecdc4 !important;
    color: #fff;
    font-weight: 500;
    letter-spacing: 0.5px;
}

@media (max-width: 991px) {
    .trip-card-img {
        height: 160px;
    }
}

@media (max-width: 768px) {
    .trip-card-img {
        height: 120px;
    }
}

/* --- Booking Form Enhancements --- */
.booking-card .card-header {
    border-bottom: none;
}

.booking-card .card-body {
    padding: 2.5rem;
}

.booking-card .border-end {
    border-color: #e9ecef !important;
}

.booking-card .form-label {
    font-weight: 600;
    color: var(--text-color);
}

.booking-card .form-control-lg,
.booking-card .form-select-lg {
    padding: 0.8rem 1.2rem;
    font-size: 1.1rem;
}

.booking-card .btn-lg {
    padding: 0.8rem 1.5rem;
    font-size: 1.15rem;
    font-weight: 600;
}

/* --- Category Cards --- */
.category-card {
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: #fff;
    cursor: pointer;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
}

.category-card:hover .card-overlay {
    opacity: 1 !important;
}

.category-card-img {
    height: 200px;
    object-fit: cover;
    width: 100%;
}

.category-card-placeholder {
    height: 200px;
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
}

.card-overlay {
    transition: opacity 0.3s ease;
}

.transition-opacity {
    transition: opacity 0.3s ease;
}

@media (max-width: 991px) {
    .category-card-img,
    .category-card-placeholder {
        height: 150px;
    }
}

@media (max-width: 767px) {
    .booking-card .border-end {
        border-right: none !important;
        border-bottom: 1px solid #e9ecef !important;
        padding-bottom: 2rem;
        margin-bottom: 2rem;
    }

    .booking-card .col-md-7 {
        padding-left: 1rem !important;
    }
}

/* --- Modern Section Header --- */
.section-header-styled {
    position: relative;
    margin-bottom: 3.5rem;
    text-align: center;
}

.section-header-styled h2 {
    font-size: 2.5rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary-color);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-header-styled h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    margin: 10px auto 0;
    border-radius: 2px;
}

.section-header-styled p {
    font-size: 1.1rem;
    color: #6c757d;
    max-width: 600px;
    margin: 0 auto;
}

/* --- "How It Works" Steps --- */
.step-card {
    position: relative;
    padding: 2rem;
    background: var(--card-bg);
    border-radius: 20px;
    text-align: center;
    transition: transform 0.3s ease;
    z-index: 1;
}

.step-card:hover {
    transform: translateY(-10px);
}

.step-icon-wrapper {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.1), rgba(255, 107, 107, 0.2));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--primary-color);
    font-size: 2rem;
    transition: all 0.3s ease;
}

.step-card:hover .step-icon-wrapper {
    background: var(--primary-color);
    color: #fff;
    box-shadow: 0 10px 20px rgba(255, 107, 107, 0.3);
}

.step-number {
    position: absolute;
    top: -15px;
    right: 20px;
    font-size: 5rem;
    font-weight: 900;
    color: rgba(255, 107, 107, 0.15);
    /* More visible primary color watermark */
    line-height: 1;
    z-index: 0;
}

/* --- Enhanced Feature Box --- */
.feature-box {
    border: 1px solid rgba(0, 0, 0, 0.03);
    background: var(--card-bg);
}

/* --- Newsletter Section --- */
/* --- Floating Newsletter Card --- */
.floating-newsletter {
    background: linear-gradient(135deg, var(--primary-color), var(--dark-color));
    border-radius: 20px;
    padding: 4rem 2rem;
    position: relative;
    z-index: 10;
    margin-bottom: -80px;
    /* Pull footer up */
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

[data-theme="dark"] .floating-newsletter {
    background: linear-gradient(135deg, #005b96, #0a192f);
    /* Force Royal Blue -> Deep Night */
}

.floating-newsletter::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGNpcmNsZSBjeD0iMSIgY3k9IjEiIHI9IjEiIGZpbGw9InJnYmEoMjU1LDI1NSwyNTUsMC4wNSkiLz48L3N2Zz4=');
    /* Subtle Pattern */
    opacity: 0.3;
}

.floating-newsletter h2 {
    color: #fff;
    font-weight: 800;
}

.newsletter-form .form-control {
    border-radius: 50px;
    padding: 1rem 1.5rem;
    border: none;
    height: 55px;
}

.newsletter-form .btn {
    border-radius: 50px;
    padding: 0 2.5rem;
    font-weight: 700;
    margin-left: -50px;
    z-index: 2;
    height: 45px;
    margin-top: 5px;
    margin-right: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* --- Footer Overrides for Overlap --- */
.footer {
    padding-top: 120px !important;
    /* Make room for floating card */
    background: linear-gradient(to bottom, #002b4e, #001220);
    /* Deep Royal Blue Gradient */
    position: relative;
    z-index: 1;
    border-top: 4px solid var(--secondary-color);
    /* Gold border top */
}

/* Force Gold distinction for Footer Headers and Icons */
.footer h5,
.footer .text-primary,
.footer i {
    color: var(--secondary-color) !important;
}

/* --- Premium Auth Pages --- */
.auth-wrapper {
    background: url('https://images.unsplash.com/photo-1503177119275-0aa32b3a9368?auto=format&fit=crop&w=1920&q=80') center/cover no-repeat fixed;
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.auth-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 25, 47, 0.6);
    /* Deep Night Overlay */
    z-index: -1;
}

.glass-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    border: none;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

[data-theme="dark"] .glass-card {
    background: rgba(30, 41, 59, 0.9);
    border: none;
}

/* --- Wishlist Heart Animation --- */
.btn-wishlist {
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-wishlist:hover {
    transform: scale(1.1);
    background: #fff;
    color: #dc3545;
}

.btn-wishlist.active i {
    color: #dc3545;
    animation: heartPump 0.3s ease-out;
}

@keyframes heartPump {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.4);
    }

    100% {
        transform: scale(1);
    }
}

/* --- Weather Widget --- */
#weather-widget {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 0.25rem 0.75rem;
    border-radius: 50rem;
    color: var(--text-color);
    transition: all 0.3s ease;
}

[data-theme="dark"] #weather-widget {
    background: rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.1);
    color: #fff;
}

/* Navbar Transparent Override for Weather */
.navbar-transparent #weather-widget {
    background: rgba(0, 0, 0, 0.4);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.2);
}

/* --- Wishlist Modal --- */
.wishlist-item {
    transition: all 0.2s ease;
    border: 1px solid var(--border-color) !important;
    background: var(--card-bg);
}

.wishlist-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    border-color: var(--primary-color) !important;
}

.wishlist-item img {
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.btn-remove-wishlist {
    opacity: 0.6;
    transition: 0.2s;
}

.btn-remove-wishlist:hover {
    opacity: 1;
    color: #dc3545;
    background: rgba(220, 53, 69, 0.1);
    transform: rotate(90deg);
}

.auth-header {
    background: var(--primary-color);
    padding: 2rem 0;
    position: relative;
    text-align: center;
    color: #fff;
    margin: -1.5rem -1.5rem 2rem -1.5rem;
}

.auth-header::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 10px 10px 0;
    border-style: solid;
    border-color: var(--primary-color) transparent transparent;
}

.auth-form .form-control {
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid transparent;
    border-bottom-color: #e2e8f0;
    border-radius: 8px;
    padding: 0.8rem 1rem;
    height: 50px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.auth-form .form-control:focus {
    background: #fff;
    border-color: transparent;
    border-bottom-color: var(--secondary-color);
    box-shadow: none;
}

.auth-form .input-group-text {
    background: transparent;
    border: none;
    border-bottom: 2px solid #e2e8f0;
    color: var(--text-muted);
    padding-left: 0.5rem;
}

.auth-form .form-control:focus+.input-group-text,
.auth-form .input-group-text:has(+ .form-control:focus) {
    color: var(--primary-color);
    border-bottom-color: var(--secondary-color);
}

.btn-auth {
    background: linear-gradient(135deg, var(--primary-color), var(--dark-color));
    color: #fff;
    font-weight: 700;
    padding: 0.8rem;
    border-radius: 50px;
    letter-spacing: 1px;
    text-transform: uppercase;
    border: none;
    box-shadow: 0 5px 15px rgba(0, 91, 150, 0.3);
    transition: all 0.3s ease;
}

.btn-auth:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 91, 150, 0.4);
    color: #fff;
}

/* --- Wishlist Modal Styles --- */
.wishlist-modal-content {
    background: rgba(255, 255, 255, 0.95);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: none;
}

[data-theme="dark"] .wishlist-modal-content {
    background: rgba(15, 23, 42, 0.95);
    color: var(--light-color);
}

/* --- Floating WhatsApp Button --- */
.btn-whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: #fff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-whatsapp-float:hover {
    background-color: #20ba5a;
    color: #fff;
    transform: scale(1.1);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.4);

}

/* --- Navbar Auth Buttons (Solid) --- */
.btn-navbar-auth {
    padding: 0.4rem 1.2rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    transition: all 0.3s ease;
    text-decoration: none;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.btn-auth-login {
    background-color: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color) !important;
}

.btn-auth-register {
    background-color: transparent;
    border: 1px solid var(--secondary-color);
    color: var(--secondary-color) !important;
}

.btn-navbar-auth:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
    opacity: 0.95;
    color: inherit !important;
}

/* Specific Hover Colors */
.btn-auth-login:hover {
    background-color: var(--primary-color) !important;
    color: #fff !important;
}

.btn-auth-register:hover {
    background-color: var(--secondary-color) !important;
    color: #000 !important;
}

/* --- Transparent Navbar Overrides (Ghost White) --- */
.navbar-transparent .btn-navbar-auth {
    background-color: transparent !important;
    border: 1px solid rgba(255, 255, 255, 0.5) !important;
    color: #fff !important;
    box-shadow: none !important;
}

.navbar-transparent .btn-navbar-auth:hover {
    background-color: #fff !important;
    color: var(--primary-color) !important;
    border-color: #fff !important;
}

/* --- Weather Widget Refinement --- */
#weather-widget {
    white-space: nowrap;
    font-size: 0.8rem;
    color: var(--navbar-text);
}

.navbar-transparent #weather-widget {
    color: #fff !important;
}

.navbar-scrolled #weather-widget {
    color: var(--text-color) !important;
}


/* --- Mobile Navbar Styling (Offcanvas) --- */
@media (max-width: 991px) {

    /* Offcanvas Container */
    #navbarOffcanvas {
        background-color: rgba(255, 255, 255, 0.98) !important;
        color: var(--text-color) !important;
    }

    [data-theme="dark"] #navbarOffcanvas {
        background-color: rgba(15, 23, 42, 0.98) !important;
        color: var(--light-color) !important;
    }

    /* Force ALL text inside offcanvas to be visible */
    #navbarOffcanvas .nav-link,
    #navbarOffcanvas .offcanvas-title,
    #navbarOffcanvas .text-reset,
    #navbarOffcanvas div {
        color: inherit !important;
    }

    /* specific adjustments for nav links */
    #navbarOffcanvas .nav-link {
        font-size: 1.1rem;
        padding: 0.8rem 1rem;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        transition: all 0.2s ease;
        border-radius: 8px;
    }

    #navbarOffcanvas .nav-link:hover {
        background-color: rgba(var(--primary-rgb, 10, 25, 47), 0.05);
        padding-left: 1.5rem;
        color: var(--primary-color) !important;
    }

    [data-theme="dark"] #navbarOffcanvas .nav-link:hover {
        background-color: rgba(255, 255, 255, 0.05);
        color: var(--secondary-color) !important;
    }

    [data-theme="dark"] #navbarOffcanvas .nav-link {
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    /* Auth Buttons - Force Outline/Solid Visibility */
    #navbarOffcanvas .btn-navbar-auth {
        width: 100%;
        margin-bottom: 0.5rem;
        color: var(--text-color) !important;
        border-color: var(--border-color) !important;
    }

    #navbarOffcanvas .btn-auth-register {
        background-color: transparent !important;
        color: var(--secondary-color) !important;
        border: 1px solid var(--secondary-color) !important;
        width: 100%;
        border-radius: 8px;
        /* Matching links */
    }

    #navbarOffcanvas .btn-auth-register:hover {
        background-color: var(--secondary-color) !important;
        color: #000 !important;
    }

    #navbarOffcanvas .btn-auth-login {
        background-color: transparent !important;
        color: var(--primary-color) !important;
        border: 1px solid var(--primary-color) !important;
        width: 100%;
        border-radius: 8px;
        /* Matching links */
    }

    #navbarOffcanvas .btn-auth-login:hover {
        background-color: var(--primary-color) !important;
        color: #fff !important;
    }

    #navbarOffcanvas .btn-book-now {
        width: 100%;
        justify-content: center;
        border-radius: 8px;
        /* Matching links */
        margin-left: 0 !important;
    }

    /* Dropdown alignment */
    #navbarOffcanvas .dropdown,
    #navbarOffcanvas .dropdown-toggle {
        width: 100%;
    }

    /* Close Button Visibility */
    .offcanvas-header .btn-close {
        opacity: 0.8;
    }
}