/* ============================================
   THE DAVOS SUITE - LIGHT MODE GLOBAL STYLES
   ============================================ */

:root {
    --font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif, 'Apple Color Emoji',
        'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
    --font-serif-display: 'Playfair Display', 'Times New Roman', serif;
    --color-primary: #0B1C3E;
    --color-action: #C5A059;
    --color-gold: #C5A059;
}

body {
    background-color: #FDFCF8 !important; /* The Parchment - Primary Background */
    color: #111827 !important; /* Slightly richer dark for body copy */
    font-family: var(--font-sans);
    font-size: 0.985rem;
    line-height: 1.7;
    margin: 0 !important;
    padding: 0 !important;
}

/* CRITICAL: Ensure header is always visible at the top - NORMAL DOCUMENT FLOW */
html {
    margin: 0 !important;
    padding: 0 !important;
}

body {
    margin: 0 !important;
    padding: 0 !important;
    display: block !important;
    position: relative !important;
    width: 100% !important;
    min-height: 100vh !important;
}

/* CRITICAL: Prevent any flexbox from reversing header position */
body {
    display: block !important;
    flex-direction: initial !important;
}

/* HEADER - MUST BE AT TOP - FORCE TO TOP OF VIEWPORT */
body:not(.no-header-fix) #main-header,
#main-header {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    z-index: 1060 !important;
    margin: 0 !important;
    padding: 0 !important;
    background-color: #0B1C3E !important;
    float: none !important;
    clear: both !important;
    min-height: 80px !important;
    height: auto !important;
    bottom: auto !important;
}

/* Ensure header is always fixed at top */
body > #main-header {
    position: fixed !important;
    top: 0 !important;
    bottom: auto !important;
}

/* Header is always fixed - no homepage exceptions */

/* CRITICAL: Ensure header comes BEFORE main and footer in document flow - NO FLEXBOX ORDERS */
/* Header should naturally be first in normal document flow */

/* Prevent any element from pushing header down */
body > *:not(#main-header) {
    margin-top: 0 !important;
}

body > #main-header + * {
    margin-top: 0 !important;
}

#main-header .navbar {
    position: relative !important;
    top: 0 !important;
    width: 100% !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    z-index: 1060 !important;
    margin: 0 !important;
    padding: 0.5rem 0 !important;
    background-color: #0B1C3E !important;
    min-height: 80px !important;
    height: auto !important;
}

#main-header .navbar .container {
    display: block !important;
    visibility: visible !important;
}

/* Header rows visibility controlled by JavaScript - removed !important rules that prevented toggle */
#main-header #headerBrandBlock {
    display: flex !important;
    visibility: visible !important;
}

.bg-qamar-navy {
    background-color: #0B1C3E !important;
}

/* Bootstrap Navbar Overrides */
.navbar-dark {
    background-color: #0B1C3E !important;
    color: #ffffff !important;
}

.navbar-dark .navbar-brand {
    color: #ffffff !important;
}

.navbar-dark .navbar-brand img {
    display: block !important;
    visibility: visible !important;
}

/* Ensure all header content is visible */
#main-header * {
    visibility: visible !important;
}

#main-header img {
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* ============================================
   HERO BANNER STYLES
   ============================================ */
.hero-banner {
    position: relative;
    min-height: 60vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
    min-height: 500px;
}

/* Hero title refinement for a more dramatic, executive feel */
.hero-banner h1 {
    font-family: var(--font-serif-display);
    font-weight: 600;
    letter-spacing: 0.03em;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(11, 28, 62, 0.75) 0%, rgba(11, 28, 62, 0.5) 100%);
    z-index: 2;
}

.hero-banner .container {
    position: relative;
    z-index: 3;
}

/* ============================================
   GLOBAL SECTION RHYTHM (Vue / Inertia pages)
   Matches Blade homepage spacing for .section-padding
   ============================================ */
.section-padding {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

@media (min-width: 768px) {
    .section-padding {
        padding-top: 4.5rem;
        padding-bottom: 4.5rem;
    }
}

/* ============================================
   IRONCLAD SEARCH FORM STYLES – "CONSUL" THEME
   ============================================ */
.ironclad-search-card {
    /* Luxurious parchment shell */
    background: #F9F8F4;
    border-radius: 0.875rem;
    border: 1px solid #C5A059;
    box-shadow: 0 14px 40px rgba(15, 23, 42, 0.10);
    padding: 1.25rem 1.5rem;
    position: relative;
    z-index: 10;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

.ironclad-row {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
}

.ironclad-row-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    border-bottom: none;
    padding-bottom: 0;
}

.ironclad-tab {
    padding: 0.55rem 1.1rem;
    border: none;
    background: #ffffff;
    color: #6b7280;
    font-weight: 600;
    cursor: pointer;
    border-radius: 0.5rem;
    transition: all 0.3s;
    font-size: 0.9375rem;
}

.ironclad-row-tabs .ironclad-tab {
    flex: 1 1 0;
    text-align: center;
}

.ironclad-tab.active {
    background: var(--color-primary, #0B1C3E);
    color: #ffffff;
}

.ironclad-tab:hover:not(.active) {
    background: #f3f4f6;
    color: var(--color-primary, #0B1C3E);
}

.ironclad-row-journey {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    align-items: stretch;
}

/* Row 2: Cabin Class & Travelers (2 columns, equally spaced to match 4 fields above) */
.ironclad-row-details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    align-items: stretch;
}

/* Row 4: Passenger Details (Name + Phone) */
.ironclad-row-lead {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
    margin-top: 0.75rem;
    padding-top: 0;
    border-top: none;
    align-items: stretch;
}

.ironclad-lead-header {
    grid-column: 1 / -1;
    margin-bottom: 0;
}

/* Row 5: Email + CTA */
.ironclad-row-cta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
    margin-top: 0.75rem;
    padding-top: 0;
    border-top: none;
    align-items: end;
}

.ironclad-field {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-width: 0;
}

/* Prevent return date field from being hidden - always keep it visible */
#return-date-field {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
}

#return-date-field[style*="opacity: 0.6"],
#return-date-field[style*="opacity:0.6"] {
    opacity: 0.6 !important;
    display: flex !important;
    visibility: visible !important;
}

.ironclad-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-sans);
    font-weight: 600;
    color: var(--color-primary, #0B1C3E);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.ironclad-label i {
    color: var(--color-action, #C5A059);
}

.ironclad-input-wrapper {
    position: relative;
}

.ironclad-input {
    width: 100%;
    padding: 0.5rem 0.9rem;
    padding-right: 2.5rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    font-size: 0.95rem;
    transition: all 0.3s;
    background: #ffffff;
    color: var(--color-primary, #0B1C3E);
}

.ironclad-input,
.ironclad-select,
.ironclad-passenger-btn {
    height: 3rem;
    line-height: 1.4;
}

/* Unified dropdown chevron for select / traveler button */
.ironclad-field-chevron {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.75rem;
    color: #6b7280;
    pointer-events: none;
}

.ironclad-input:focus {
    outline: none;
    border-color: var(--color-action, #C5A059);
    box-shadow: 0 0 0 2px rgba(197, 160, 89, 0.15);
}

.ironclad-input::placeholder {
    color: #9ca3af;
}

.ironclad-input.is-invalid {
    border-color: #dc3545;
}

.ironclad-input.is-valid {
    border-color: #28a745;
}

/* Disabled input styling - professional appearance */
.ironclad-input-disabled,
.ironclad-input:disabled {
    background-color: #f3f4f6;
    color: #9ca3af;
    cursor: not-allowed;
    opacity: 0.7;
    border-color: #e5e7eb;
}

.ironclad-input-disabled::placeholder,
.ironclad-input:disabled::placeholder {
    color: #d1d5db;
}

/* Disabled field container */
.ironclad-field[style*="opacity: 0.6"] {
    transition: opacity 0.3s ease;
}

.ironclad-field[style*="opacity: 0.6"] .ironclad-label {
    color: #9ca3af;
    opacity: 0.7;
}

.ironclad-field[style*="opacity: 0.6"] .ironclad-label i {
    color: #d1d5db;
    opacity: 0.7;
}

/* Validation checkmark icon */
.ironclad-validation-icon {
    position: absolute;
    right: 0.875rem;
    /* Mobile default: center within the input height */
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.125rem;
    pointer-events: none;
    z-index: 10;
}

.ironclad-valid-icon {
    color: #28a745;
}

.ironclad-invalid-icon {
    color: #dc3545;
}

/* Desktop & mobile: force validation icons to sit inside the input, not the
   full Flatpickr wrapper height (which grows when the calendar is visible). */
.ironclad-input-wrapper .ironclad-validation-icon {
    top: 0.75rem !important;      /* roughly vertical center of a 3rem input */
    transform: none !important;
}

/* Desktop refinement: keep validation icon aligned to the text input even when
   Flatpickr's static calendar expands the wrapper below the input. */
@media (min-width: 768px) {
    /* Only adjust icons that sit inside Flatpickr date fields */
    #depart-date ~ .ironclad-valid-icon,
    #depart-date ~ .ironclad-invalid-icon,
    #return-date ~ .ironclad-valid-icon,
    #return-date ~ .ironclad-invalid-icon {
        top: 50%;
        transform: translateY(-50%);
    }
}

.autocomplete-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    background: #F9F8F4;
    border: 1px solid #C5A059;
    border-radius: 0.5rem;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.18);
    z-index: 1050;
    margin-top: 0.25rem;
    max-height: 300px;
    overflow-y: auto;
}

.autocomplete-dropdown .autocomplete-item {
    padding: 0.6rem 0.9rem;
    cursor: pointer;
    border-bottom: 1px solid #f3f4f6;
    transition: background 0.2s;
}

.autocomplete-dropdown .autocomplete-item:hover,
.autocomplete-dropdown .autocomplete-item.active {
    background: #F3E9D4;
}

.autocomplete-dropdown .autocomplete-item:last-child {
    border-bottom: none;
}

/* Phone Number Group */
.ironclad-phone-group {
    display: flex;
    gap: 0;
    align-items: stretch;
}

.ironclad-phone-prefix {
    background: var(--color-primary, #0B1C3E);
    color: #ffffff;
    border-radius: 0.5rem 0 0 0.5rem;
    padding: 0 0.5rem;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    min-width: auto;
    width: auto;
    flex-shrink: 0;
}

.ironclad-phone-prefix i {
    font-size: 0.75rem;
    margin-left: 0.25rem;
}

.ironclad-flag {
    font-size: 1.05rem;
    line-height: 1;
}

.ironclad-phone-input-wrapper {
    flex: 1;
}

.ironclad-phone-input {
    border-radius: 0 0.5rem 0.5rem 0;
    padding-right: 2.5rem;
}

/* Select Dropdown */
.ironclad-select {
    width: 100%;
    padding: 0.5rem 1rem;
    padding-right: 2.5rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    font-size: 0.95rem;
    transition: all 0.3s;
    background: #ffffff;
    color: var(--color-primary, #0B1C3E);
    appearance: none;
    cursor: pointer;
}

.ironclad-select-with-icon {
    padding-right: 2.75rem;
}

.ironclad-select:focus {
    outline: none;
    border-color: var(--color-action, #C5A059);
    box-shadow: 0 0 0 2px rgba(197, 160, 89, 0.15);
}

/* Passenger Details Section - Header */
.ironclad-lead-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--color-primary, #0B1C3E);
    margin: 0;
    text-transform: none;
    letter-spacing: 0;
}

/* CTA Button */
.ironclad-cta-wrapper {
    width: 100%;
    display: flex;
    align-items: stretch;
}

.ironclad-cta-button {
    width: 100%;
    padding: 0 1.5rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0F1E3D;
    color: #ffffff;
    border-radius: 0.5rem;
    border: 1px solid #C5A059;
    font-size: 0.98rem;
    font-family: var(--font-sans);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    cursor: pointer;
    transition: all 0.3s;
}

@media (max-width: 768px) {
    .ironclad-cta-button {
        font-size: 0.8rem;
        letter-spacing: 0.04em;
        padding: 0 0.75rem;
    }
}

.ironclad-cta-button:hover {
    background: #101933;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(11, 28, 62, 0.3);
}

.ironclad-cta-button:active {
    transform: translateY(0);
}

/* Passenger Selector Dropdown Button */
.ironclad-passenger-btn {
    width: 100%;
    padding: 0.5rem 0.9rem;
    padding-right: 2.5rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    background: #ffffff;
    color: var(--color-primary, #0B1C3E);
    font-size: 0.95rem;
    text-align: left;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    appearance: none;
}

.ironclad-passenger-btn:hover {
    border-color: var(--color-action, #C5A059);
}

.ironclad-passenger-btn:focus {
    outline: none;
    border-color: var(--color-action, #C5A059);
    box-shadow: 0 0 0 3px rgba(197, 160, 89, 0.1);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    /* Mobile: Professional 2-column layout for optimal space usage */
    .ironclad-row-journey {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
        align-items: start;
    }
    
    .ironclad-row-details {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
        align-items: start;
    }
    
    .ironclad-row-lead {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
        align-items: start;
    }
    
    .ironclad-lead-header {
        grid-column: 1 / -1;
        margin-bottom: 0.75rem;
    }
    
    .ironclad-row-cta {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
        align-items: end;
    }
    
    .ironclad-email-field {
        display: flex;
        flex-direction: column;
        min-width: 0;
        justify-content: flex-end;
    }
    
    .ironclad-email-field .ironclad-input-wrapper {
        margin-top: auto;
    }
    
    .ironclad-cta-wrapper {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        min-width: 0;
        justify-content: flex-end;
    }
    
    .ironclad-cta-button {
        width: 100%;
        min-height: 48px;
        height: 3rem;
    }
    
    .ironclad-search-card {
        padding: 1.25rem;
    }
    
    .ironclad-field {
        width: 100%;
        min-width: 0;
        display: flex;
        flex-direction: column;
    }
    
    .ironclad-input-wrapper {
        width: 100%;
        min-width: 0;
    }
    
    .ironclad-input,
    .ironclad-select {
        width: 100%;
        min-width: 0;
    }
    
    .ironclad-phone-group {
        flex-direction: row;
        width: 100%;
        min-width: 0;
    }
    
    .ironclad-phone-prefix {
        min-width: auto;
        padding: 0 0.4rem;
        flex-shrink: 0;
    }
    
    .ironclad-phone-input-wrapper {
        flex: 1;
        min-width: 0;
    }
}

/* Small mobile devices */
@media (max-width: 576px) {
    /* Maintain 2-column layout on small mobile for professional appearance */
    .ironclad-row-journey {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.65rem;
    }
    
    .ironclad-row-details {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.65rem;
    }
    
    .ironclad-row-lead {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.65rem;
    }
    
    .ironclad-row-cta {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.65rem;
        align-items: end;
    }
    
    .ironclad-email-field {
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
    }
    
    .ironclad-email-field .ironclad-input-wrapper {
        margin-top: auto;
    }
    
    .ironclad-cta-wrapper {
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
    }
    
    .ironclad-field {
        width: 100%;
        min-width: 0;
    }
    
    .ironclad-input-wrapper {
        width: 100%;
        min-width: 0;
    }
    
    .ironclad-input,
    .ironclad-select {
        width: 100%;
        min-width: 0;
    }
    
    .ironclad-cta-button {
        width: 100%;
        min-height: 48px;
        height: 3rem;
    }
    
    /* Phone prefix - compact on mobile to not cover placeholder */
    .ironclad-phone-prefix {
        padding: 0 0.35rem;
        min-width: auto;
        width: auto;
        flex-shrink: 0;
    }
    
    .ironclad-flag {
        font-size: 0.95rem;
    }
    
    .ironclad-search-card {
        padding: 1rem;
    }
}

/* MAIN CONTENT - BETWEEN HEADER AND FOOTER - ADD PADDING FOR FIXED HEADER */
main {
    position: relative !important;
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    padding-top: 90px !important; /* Space for fixed header */
    padding: 90px 0 0 0 !important;
    float: none !important;
    clear: both !important;
    min-height: 50vh !important;
}

/* FOOTER - AT BOTTOM */
footer {
    position: relative !important;
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
    clear: both !important;
}

/* Ensure all text defaults to Deep Navy, not black */
* {
    color: inherit;
}

/* Force base text color for body content */
body, p, span, div {
    color: inherit;
}

/* Executive heading system */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-serif-display);
    color: var(--color-primary);
    letter-spacing: 0.02em;
}

/* Hero-level headings */
h1,
.hero-title,
.section-title.hero-title {
    font-weight: 600;
    font-size: clamp(2.4rem, 4vw, 3.2rem);
    line-height: 1.1;
}

/* Section titles */
.section-title {
    position: relative !important;
    font-family: var(--font-serif-display);
    font-weight: 600;
    font-size: clamp(1.6rem, 2.4vw, 2rem);
    line-height: 1.2;
    margin-bottom: 0.5rem;
    color: #0B1C3E !important;
    padding-bottom: 1rem !important;
}

.section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 3.25rem;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(197,160,89,0.1), rgba(197,160,89,0.8), rgba(197,160,89,0.1));
}

/* Section subtitles */
.section-subtitle {
    font-family: var(--font-sans);
    font-size: 0.98rem;
    color: #6b7280;
    max-width: 42rem;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
    letter-spacing: 0.015em;
    font-weight: 400;
}

/* Secondary text for paragraphs and muted content */
.text-muted, .text-secondary {
    color: #4B5563 !important; /* Slate Grey */
}

/* Small meta text (notes, legal, helper copy) */
small, .small {
    font-size: 0.8rem !important;
    letter-spacing: 0.02em;
}

/* Executive palette overrides for Bootstrap blues */
:root {
    --bs-primary: #0B1C3E;
    --bs-info: #0B1C3E;
}

/* CRITICAL: Override Bootstrap card colors to use Deep Navy */
.card {
    border-color: rgba(11, 28, 62, 0.1) !important;
}

.card-header {
    background-color: #0B1C3E !important;
    color: #ffffff !important;
    border-bottom-color: rgba(11, 28, 62, 0.2) !important;
}

.card-body {
    color: #0B1C3E !important;
}

/* Override any Bootstrap primary blue with Deep Navy */
.bg-primary {
    background-color: #0B1C3E !important;
}

.text-primary {
    color: #0B1C3E !important;
}

.btn-primary {
    background-color: #0B1C3E !important;
    border-color: #0B1C3E !important;
    color: #ffffff !important;
}

.btn-primary:hover {
    background-color: #0a1629 !important;
    border-color: #0a1629 !important;
}

.text-info {
    color: #C5A059 !important; /* Gold accent for info text */
}

.btn-info {
    background-color: #C5A059 !important;
    border-color: #C5A059 !important;
    color: #ffffff !important;
}

.icon-cyan {
    color: #C5A059 !important;
}

/* ============================================
   MOBILE SAFEGUARDS & UI INTEGRITY
   ============================================ */

/* Prevent horizontal scroll on mobile (Ghost Widths) */
body, html {
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
}

/* ============================================
   GLOBAL MODAL FIXES - All Form Modals
   ============================================ */

/* Ensure Modals are always on top of the Header */
.modal-backdrop {
    z-index: 1065 !important; /* Higher than header (1060) */
    background-color: rgba(11, 28, 62, 0.75) !important;
}

.modal {
    z-index: 1070 !important; /* Higher than backdrop */
}

/* Bootstrap Modal Dialog - Proper positioning */
.modal-dialog {
    margin: 1rem auto !important; /* Account for header on mobile */
    max-height: calc(100vh - 2rem) !important;
}

.modal-dialog-centered {
    min-height: calc(100% - 2rem) !important;
    display: flex !important;
    align-items: center !important;
    margin: 1rem auto !important;
}

/* Modal Content - Prevent cutoff */
.modal-content {
    max-height: calc(100vh - 2rem) !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
}

/* Modal Header - Prevent text cutoff */
.modal-header {
    flex-shrink: 0 !important;
    padding: 1rem 1.25rem !important;
    border-bottom: 1px solid #dee2e6 !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
}

.modal-title {
    font-size: clamp(1.125rem, 2vw, 1.5rem) !important;
    line-height: 1.4 !important;
    margin: 0 !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    hyphens: auto !important;
}

/* ============================================
   WHY CHOOSE US - TRUST GRID
   ============================================ */

#why-choose-us .why-card {
    border-radius: 18px;
    border: 1px solid rgba(11, 28, 62, 0.08); /* soft navy frame */
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    background: radial-gradient(circle at top left, rgba(197, 160, 89, 0.12), #FFFFFF 48%);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

#why-choose-us .why-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 40px rgba(15, 23, 42, 0.14);
    border-color: rgba(197, 160, 89, 0.7); /* gold accent on hover */
}

#why-choose-us .why-card h3 {
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    font-size: 0.85rem;
}

#why-choose-us .why-card p.small {
    font-size: 0.8rem;
}

#why-choose-us .why-card .mx-auto.mb-3.d-flex {
    border-radius: 999px;
    border: 2px solid rgba(197, 160, 89, 0.7);
    background: radial-gradient(circle at 30% 20%, rgba(197, 160, 89, 0.25), rgba(11, 28, 62, 0.02));
    color: var(--color-action, #C5A059);
    box-shadow: 0 6px 18px rgba(197, 160, 89, 0.35);
}

/* Modal Body - Scrollable content */
.modal-body {
    overflow-y: auto !important;
    overflow-x: hidden !important;
    flex: 1 1 auto !important;
    padding: 1.25rem !important;
    -webkit-overflow-scrolling: touch !important;
}

/* Modal Footer */
.modal-footer {
    flex-shrink: 0 !important;
    padding: 1rem 1.25rem !important;
    border-top: 1px solid #dee2e6 !important;
}

/* Mobile-specific fixes */
@media (max-width: 768px) {
    .modal-dialog {
        margin: 0.5rem !important;
        max-width: calc(100% - 1rem) !important;
        max-height: calc(100vh - 1rem) !important;
    }
    
    .modal-dialog-centered {
        min-height: calc(100% - 1rem) !important;
        margin: 0.5rem !important;
    }
    
    .modal-content {
        max-height: calc(100vh - 1rem) !important;
        border-radius: 12px !important;
    }
    
    .modal-header {
        padding: 1rem !important;
    }
    
    .modal-title {
        font-size: 1.125rem !important;
        padding-right: 2rem !important; /* Space for close button */
    }
    
    .modal-body {
        padding: 1rem !important;
        max-height: calc(100vh - 200px) !important; /* Account for header + footer */
    }
    
    .modal-footer {
        padding: 0.75rem 1rem !important;
    }
}

/* Small mobile devices */
@media (max-width: 576px) {
    .modal-dialog {
        margin: 0.25rem !important;
        max-width: calc(100% - 0.5rem) !important;
    }
    
    .modal-content {
        max-height: calc(100vh - 0.5rem) !important;
    }
    
    .modal-header {
        padding: 0.875rem !important;
    }
    
    .modal-title {
        font-size: 1rem !important;
        line-height: 1.3 !important;
    }
    
    .modal-body {
        padding: 0.875rem !important;
        max-height: calc(100vh - 180px) !important;
    }
}

/* Custom Inquiry Modal - Ensure proper z-index */
.inquiry-modal-wrapper {
    z-index: 1070 !important; /* Higher than header */
}

.inquiry-modal-wrapper.show,
.inquiry-modal-wrapper[style*="display: flex"],
.inquiry-modal-wrapper[style*="display:flex"] {
    z-index: 1070 !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
}

.inquiry-modal-backdrop {
    z-index: 1 !important; /* Relative to wrapper */
}

.inquiry-modal-dialog-container {
    z-index: 2 !important; /* Relative to wrapper */
    padding-top: 1rem !important;
    padding-bottom: 1rem !important;
}

/* Inquiry Modal - Mobile fixes */
@media (max-width: 768px) {
    .inquiry-modal-dialog-container {
        padding: 0.5rem !important;
        align-items: flex-start !important; /* Start from top on mobile */
        padding-top: 2rem !important; /* Account for header */
    }
    
    .inquiry-modal-dialog {
        margin: 0 !important;
        max-height: calc(100vh - 2rem) !important;
    }
    
    .inquiry-modal-content {
        max-height: calc(100vh - 2rem) !important;
    }
    
    .inquiry-modal-header {
        padding: 1.25rem 1rem 1rem 1rem !important;
    }
    
    .inquiry-modal-title {
        font-size: 1.125rem !important;
        padding-right: 2rem !important; /* Space for close button */
    }
    
    .inquiry-modal-body {
        max-height: calc(100vh - 250px) !important;
        overflow-y: auto !important;
    }
}

@media (max-width: 576px) {
    .inquiry-modal-dialog-container {
        padding: 0.25rem !important;
        padding-top: 1.5rem !important;
    }
    
    .inquiry-modal-content {
        max-height: calc(100vh - 1.5rem) !important;
    }
    
    .inquiry-modal-body {
        max-height: calc(100vh - 200px) !important;
    }
}

/* Prevent body scroll when modal is open */
body.modal-open {
    overflow: hidden !important;
    padding-right: 0 !important;
}

/* CRITICAL: Ensure body scroll is restored when no modals are open */
/* This is a fallback CSS rule - JavaScript handles the main logic */
body:not(.modal-open) {
    overflow: auto !important;
}

/* Force scroll restoration if body has overflow hidden but no modal-open class */
body:not(.modal-open)[style*="overflow: hidden"],
body:not(.modal-open)[style*="overflow:hidden"] {
    overflow: auto !important;
}

/* ============================================
   FIX FOR VIEW ITINERARY MODAL & SIDEBAR FILTERS
   Being blocked by Ad Modals (Installment/Protection)
   ============================================ */

/* Fix for View Itinerary Modal "White Screen" - Bootstrap Collapse Timeline */
.collapse.show,
.collapse.collapsing,
[id^="timeline-"] {
    position: relative !important;
    z-index: 10000 !important; /* Above Ad Modals (1055) and below Bootstrap modals */
    opacity: 1 !important;
    visibility: visible !important;
}

/* Ensure collapse content is visible when expanded */
.collapse.show .card-body,
.collapse.show .card-body *,
[id^="timeline-"].show,
[id^="timeline-"].show * {
    position: relative !important;
    z-index: 10001 !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* Flight Details Modal Container - Additional safety */
.flight-timeline-container,
.details-content {
    position: relative !important;
    z-index: 10000 !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* Ensure the backdrop doesn't cover the content */
.modal-backdrop.show {
    z-index: 9990 !important; /* Below the modal, above the page */
}

/* Sidebar Filters - Ensure they float above Ad Modals */
aside.col-lg-3 {
    position: relative !important;
    z-index: 2000 !important; /* Above Ad Modals (1055) */
    height: auto !important; /* Prevent collapsing */
}

aside.col-lg-3 .sticky-top {
    z-index: 2000 !important; /* Override inline z-index: 100 */
}

aside.col-lg-3 .card {
    position: relative !important;
    z-index: 2000 !important;
}

#filters-accordion {
    position: relative !important;
    z-index: 2001 !important;
}

/* Ensure accordion content is visible when expanded */
.accordion-collapse.show {
    position: relative !important;
    z-index: 2002 !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    height: auto !important;
}

/* Fix "Over-displayed" cards and images */
img {
    max-width: 100%; /* Prevent images blowing out containers */
    height: auto;
}

/* Fix Input Zoom on iPhone (Prevents page zooming when clicking an input) */
@media screen and (max-width: 768px) {
    input, select, textarea {
        font-size: 16px !important; /* iOS zooms in if font is < 16px */
    }
    
    /* Ensure modals are full-width on mobile */
    .modal-dialog {
        margin: 0.5rem;
        max-width: calc(100% - 1rem);
    }
    
    .modal-content {
        max-height: 90vh;
        overflow-y: auto;
    }
}
