:root {
    --primary-color: #00baa3;
    --primary-dark: #008f7a;
    --primary-gradient: linear-gradient(135deg, #00baa3 0%, #008f7a 100%);
    --secondary-color: #2c3e50;
    --accent-color: #f39c12;
    --light-bg: #dee2e6;
    --text-color: #2d3436;
    --text-muted: #636e72;
    --font-main: 'Outfit', sans-serif;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 5px 15px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 15px 30px rgba(0, 0, 0, 0.12);
    --radius-md: 12px;
    --radius-lg: 20px;
}

body {
    font-family: var(--font-main);
    color: var(--text-color);
    background-color: var(--light-bg);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--secondary-color);
}

a {
    transition: all 0.2s ease;
}

/* --- Buttons & Links --- */
.text-primary {
    color: var(--primary-color) !important;
}

.btn {
    border-radius: 50px;
    padding: 0.6rem 1.5rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.btn-primary {
    background: var(--primary-gradient);
    border: none;
    box-shadow: 0 4px 15px rgba(0, 186, 163, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #008f7a 0%, #007a68 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 186, 163, 0.4);
}

.btn-outline-primary {
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

/* --- Navbar & Branding --- */
.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
}

header.sticky-top {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}

.logo-img {
    height: 50px;
    /* Adjust based on logo aspect ratio */
    width: auto;
    object-fit: contain;
}

/* --- Hero & Carousel --- */
.hero-slide {
    height: 400px;
    /* Requested max-height */
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: #000;
    /* Fallback */
}

/* Layer 1: Blurred Background (Fills the "Rest") */
.hero-blur-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    filter: blur(15px) brightness(0.6);
    transform: scale(1.1);
    /* Prevent blur edge artifacts */
    z-index: 0;
}

/* Layer 2: Sharp Contained Image */
.hero-img-contain {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
}

.hero-text-simple {
    position: relative;
    z-index: 2;
    padding: 3rem;
    max-width: 900px;
    margin: 0 1rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
    background: rgba(0, 0, 0, 0.2);
    /* Subtle box */
    backdrop-filter: blur(2px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1rem;
    color: #fff;
    letter-spacing: -1px;
    /* text-transform: uppercase; Removed for cleaner look per image */
}

.hero-subtitle {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
    color: #fff;
}

/* --- Search Box Overlap --- */
/* --- Search Box Overlap --- */
.search-box-container {
    background: rgba(248, 249, 250, 0.50) !important;
    /* 50% Opacity Light */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1) !important;
}

[data-theme="dark"] .search-box-container {
    background: rgba(45, 45, 45, 0.50) !important;
    /* 50% Opacity Dark */
    border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .search-box-container .input-group {
    background: #A0A0A0 !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

[data-theme="dark"] .search-box-container .input-group-text,
[data-theme="dark"] .search-box-container .form-control {
    color: #fff !important;
    /* Ensure white text on the grey box */
}

[data-theme="dark"] .search-box-container .form-control::placeholder {
    color: rgba(255, 255, 255, 0.7) !important;
}

.custom-search-tabs .nav-link {
    background: transparent;
    color: var(--secondary-color);
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.custom-search-tabs .nav-link:hover {
    color: var(--primary-color);
    background: rgba(0, 0, 0, 0.05);
}

.custom-search-tabs .nav-link.active {
    background: var(--primary-color) !important;
    color: #fff !important;
    border: none;
    border-radius: 50px !important;
    font-weight: 600;
}

.backdrop-blur {
    backdrop-filter: blur(10px);
}

.placeholder-white::placeholder {
    color: rgba(255, 255, 255, 0.6) !important;
}

.placeholder-white::-webkit-input-placeholder {
    color: rgba(255, 255, 255, 0.6) !important;
}

.hero-slide {
    height: 480px;
    /* Adjusted to 480px as requested */
}

.carousel-indicators {
    bottom: 20px;
}

/* Mobile Responsive Adjustments */
@media (max-width: 768px) {
    .hero-slide {
        height: 60vh;
        min-height: 400px;
    }

    .hero-text-box {
        padding: 1.5rem;
        max-width: 90%;
    }

    .hero-title {
        font-size: 2rem;
        /* Smaller font on mobile */
        margin-bottom: 0.5rem;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 1rem;
    }

    .btn-lg {
        padding: 0.4rem 1rem;
        font-size: 1rem;
    }
}

.carousel-indicators button {
    width: 12px !important;
    height: 12px !important;
    border-radius: 50%;
    margin: 0 6px !important;
    background-color: rgba(255, 255, 255, 0.5) !important;
    border: 2px solid transparent !important;
    transition: all 0.3s ease;
}

.carousel-indicators .active {
    background-color: var(--primary-color) !important;
    transform: scale(1.2);
    border: 2px solid white !important;
}

/* --- Cards --- */
.card {
    border: none;
    border-radius: var(--radius-md);
    background: #fff;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.card:hover {
    /* Global card hover */
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg) !important;
}

.card-img-top {
    border-bottom: 1px solid rgba(0, 0, 0, 0.02);
    transition: transform 0.5s ease;
}

.card:hover .card-img-top {
    transform: scale(1.05);
    /* Zoom effect */
}

.footer-links .list-inline-item {
    margin-right: 0.5rem;
    padding-right: 0.5rem;
    border-right: 1px solid rgba(0, 0, 0, 0.1);
    /* Light mode separator */
    line-height: 1;
}

.footer-links .list-inline-item:last-child {
    border-right: none;
}

[data-theme="dark"] .footer-links .list-inline-item {
    border-color: rgba(255, 255, 255, 0.2);
    /* Dark mode separator */
}

/* Social Media Brand Buttons */
.btn-social {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    color: white !important;
    transition: transform 0.2s;
}

.btn-social:hover {
    transform: translateY(-3px);
    color: white;
}

.btn-whatsapp {
    background-color: #25D366;
}

.btn-facebook {
    background-color: #1877F2;
}

.btn-instagram {
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
}

.btn-maps {
    background-color: #4285F4;
}

.badge {
    padding: 0.5em 1em;
    border-radius: 6px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
}

/* --- Forms --- */
.form-control {
    border-radius: 8px;
    border: 1px solid #e1e4e8;
    padding: 0.75rem 1rem;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(0, 186, 163, 0.1);
}

/* --- Footer --- */
footer {
    background: #fff;
    border-top: 1px solid #eee;
    padding-top: 3rem;
}

footer h5 {
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
}

footer a {
    color: var(--text-muted);
    text-decoration: none;
    transition: 0.2s;
    display: block;
    margin-bottom: 0.5rem;
}

footer a:hover {
    color: var(--primary-color);
    padding-left: 5px;
    /* Subtle slide */
}

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

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

.animate-fade-in {
    animation: fadeIn 0.6s ease-out forwards;
}

/* --- Summernote Fixes --- */
.note-editor.note-frame.fullscreen {
    z-index: 2147483647 !important;
    /* Max Z-Index */
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background-color: #fff !important;
    border: none !important;
    border-radius: 0 !important;
    margin: 0 !important;
}

.note-editor.note-frame.fullscreen .note-resizebar {
    display: none;
}

/* Hide other elements when fullscreen is active to prevent flickering/z-index wars */
body.fullscreen-active {
    overflow: hidden !important;
}

body.fullscreen-active .navbar,
body.fullscreen-active footer,
body.fullscreen-active .container {
    display: none !important;
    /* We hide the container but note-editor needs to be visible. 
       Since note-editor is fixed, it should be immune to display:none of parent IF it was moved to body. 
       But here it's inside the container. We can't display:none the container. 
       So we only hide Navbar and Footer.
    */
}

body.fullscreen-active .navbar,
body.fullscreen-active footer {
    display: none !important;
}

/* --- Dark Mode --- */
[data-theme="dark"] {
    --light-bg: #1a1a1a;
    --text-color: #e0e0e0;
    --secondary-color: #ecf0f1;
    --text-muted: #b0b0b0;
}

[data-theme="dark"] body {
    background-color: #1a1a1a;
    color: #e0e0e0;
}

[data-theme="dark"] .bg-white,
[data-theme="dark"] .bg-light,
[data-theme="dark"] .card,
[data-theme="dark"] header.sticky-top,
[data-theme="dark"] footer,
[data-theme="dark"] .modal-content {
    background-color: #2d2d2d !important;
    color: #e0e0e0 !important;
    border-color: #444 !important;
}

[data-theme="dark"] .navbar-brand,
[data-theme="dark"] h1,
[data-theme="dark"] h2,
[data-theme="dark"] h3,
[data-theme="dark"] h4,
[data-theme="dark"] h5,
[data-theme="dark"] h6 {
    color: #fff !important;
}

[data-theme="dark"] .text-secondary {
    color: #b0b0b0 !important;
}

[data-theme="dark"] .text-dark {
    color: #fff !important;
}

[data-theme="dark"] .border-top,
[data-theme="dark"] .border-bottom,
[data-theme="dark"] .border-end,
[data-theme="dark"] .border {
    border-color: #444 !important;
}

[data-theme="dark"] .form-control,
[data-theme="dark"] .form-select {
    background-color: #383838;
    border-color: #555;
    color: #fff;
}

[data-theme="dark"] .form-control:focus {
    background-color: #404040;
    color: #fff;
}

/* Summernote Dark Mode */
[data-theme="dark"] .note-editor.note-frame {
    background-color: #2d2d2d;
    border-color: #444;
}

[data-theme="dark"] .note-editor.note-frame .note-editing-area .note-editable {
    color: #e0e0e0;
    background-color: #2d2d2d;
}

[data-theme="dark"] .note-toolbar {
    background-color: #383838;
    border-bottom-color: #444;
}

[data-theme="dark"] .note-btn {
    background-color: #444;
    color: #e0e0e0;
    border-color: #555;
}

[data-theme="dark"] .note-btn.active {
    background-color: #666;
}

[data-theme="dark"] .note-btn:hover {
    background-color: #555;
}

[data-theme="dark"] .note-statusbar {
    background-color: #383838;
    border-top-color: #444;
}

[data-theme="dark"] .note-placeholder {
    color: rgba(255, 255, 255, 0.4);
}

[data-theme="dark"] .note-status-output {
    color: #e0e0e0;
}

[data-theme="dark"] .hero-text-box {
    background: rgba(45, 45, 45, 0.9);
    border-color: #555;
}

/* --- Footer Dark Mode Fixes --- */
.footer-logo-invert {
    filter: invert(1);
    transition: filter 0.3s ease;
}

[data-theme="dark"] .footer-logo-invert {
    filter: invert(0);
}

.footer-logo-static {
    filter: none !important;
}

[data-theme="dark"] footer a,
[data-theme="dark"] footer .text-secondary,
[data-theme="dark"] footer .text-muted {
    color: #b0b0b0 !important;
}

[data-theme="dark"] footer a:hover {
    color: var(--primary-color) !important;
}

/* --- Dark Mode Form & Text Fixes --- */
[data-theme="dark"] label,
[data-theme="dark"] .form-label,
[data-theme="dark"] .input-group-text {
    color: #e0e0e0 !important;
}

[data-theme="dark"] ::placeholder {
    color: rgba(255, 255, 255, 0.5) !important;
}

[data-theme="dark"] .text-muted {
    color: #b0b0b0 !important;
}

/* Fix for invisible Price tags */
[data-theme="dark"] .price,
[data-theme="dark"] .price-box,
[data-theme="dark"] .amount {
    color: #fff !important;
}

/* --- Dark Mode Tables --- */
[data-theme="dark"] .table {
    color: #e0e0e0;
    --bs-table-bg: #2d2d2d;
    --bs-table-hover-bg: #383838;
    border-color: #444;
}

[data-theme="dark"] .table> :not(caption)>*>* {
    background-color: transparent !important;
    /* Let text color shine through */
    color: #e0e0e0;
    border-color: #444;
}

[data-theme="dark"] .table-hover>tbody>tr:hover>* {
    color: #fff;
    --bs-table-accent-bg: #383838;
}

/* --- Dark Mode Ticket/Flight Fixes --- */
[data-theme="dark"] .ticket-card {
    background-color: #2d2d2d !important;
    border-color: #444 !important;
}

[data-theme="dark"] .ticket-header {
    background-color: #333 !important;
    border-color: #444 !important;
}

[data-theme="dark"] .duration-text {
    background-color: #2d2d2d !important;
    /* Match card bg to hide line */
    color: #b0b0b0 !important;
}

[data-theme="dark"] .flight-time {
    color: #fff !important;
}

[data-theme="dark"] .flight-city {
    color: #b0b0b0 !important;
}

[data-theme="dark"] .duration-line {
    border-color: #555 !important;
}

[data-theme="dark"] .badge.bg-white {
    background-color: #2d2d2d !important;
    color: #e0e0e0 !important;
    border-color: #444 !important;
}

[data-theme="dark"] .badge-soft-secondary {
    background-color: rgba(255, 255, 255, 0.1);
    color: #ddd;
}

/* Customer Quote - Ticket Style */
.quote-container {
    max-width: 900px;
    margin: 0 auto;
}

.ticket-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    margin-bottom: 1.5rem;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.ticket-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
}

.ticket-header {
    background: #f8f9fa;
    padding: 0.75rem 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}

.ticket-body {
    padding: 1.5rem;
}

/* Flight Specific */
.flight-segment {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.flight-time {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2c3e50;
    line-height: 1;
}

.flight-city {
    font-size: 0.9rem;
    color: #6c757d;
    font-weight: 500;
}

.flight-duration {
    flex-grow: 1;
    text-align: center;
    position: relative;
    padding: 0 20px;
}

.duration-line {
    border-top: 2px dashed #cbd5e0;
    position: relative;
    top: -10px;
    width: 100%;
}

.duration-text {
    background: #fff;
    padding: 0 10px;
    color: #6c757d;
    font-size: 0.8rem;
    position: relative;
    top: -22px;
    display: inline-block;
}

.flight-stops {
    font-size: 0.75rem;
    color: #ef4444;
    /* or green if direct */
    margin-top: -15px;
    display: block;
}

/* Hotel Specific */
.hotel-card {
    display: flex;
    gap: 1.5rem;
}

.hotel-image {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
    background-color: #f1f3f5;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #adb5bd;
}

.hotel-info {
    flex-grow: 1;
}

.hotel-dates {
    text-align: right;
    min-width: 150px;
    border-left: 1px solid #f1f3f5;
    padding-left: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Common Badges */
.badge-soft-primary {
    background: rgba(13, 110, 253, 0.1);
    color: #0d6efd;
}

.badge-soft-success {
    background: rgba(25, 135, 84, 0.1);
    color: #198754;
}

.badge-soft-info {
    background: rgba(13, 202, 240, 0.1);
    color: #0dcaf0;
}

.badge-soft-warning {
    background: rgba(255, 193, 7, 0.1);
    color: #ffc107;
}

.badge-soft-danger {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
}

/* Sticky Footer */
.quote-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
    z-index: 1000;
}

[data-theme="dark"] .quote-footer {
    background: #2d2d2d !important;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.3) !important;
}

[data-theme="dark"] .airline-logo {
    background-color: #fff !important;
    padding: 3px;
    border-radius: 4px;
}

/* Mobile responsive for quote page */
@media (max-width: 767.98px) {
    .ticket-body {
        padding: 1rem;
    }

    .ticket-header {
        padding: 0.6rem 1rem;
    }

    .hotel-wow-card .row.g-0 {
        flex-direction: column;
    }

    .hotel-wow-card .col-md-5 {
        min-height: 180px !important;
        max-height: 200px;
    }

    .quote-footer {
        padding: 0.6rem 0;
    }
}