/* ============================================
   MARLTOS REIZEN - Hero Section
   ============================================ */

.hero {
    position: relative;
    min-height: 700px;
    display: flex;
    align-items: center;
    background: #8bc53f url('../img/hero-bg.jpg') center / cover no-repeat;
    overflow: visible;
    padding-top: var(--header-height);
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 800"><defs><linearGradient id="g" x1="0%" y1="0%" x2="100%" y2="100%"><stop offset="0%" style="stop-color:rgba(255,255,255,0.03)"/><stop offset="100%" style="stop-color:rgba(255,255,255,0)"/></linearGradient></defs><circle cx="200" cy="400" r="300" fill="url(%23g)"/><circle cx="1200" cy="200" r="400" fill="url(%23g)"/><circle cx="800" cy="600" r="250" fill="url(%23g)"/></svg>');
    background-size: cover;
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(5, 16, 32, 0.52) 0%,
        rgba(6, 18, 36, 0.48) 38%,
        rgba(8, 22, 44, 0.36) 100%
    );
    pointer-events: none;
}

/* Animated Background Planes */
.hero-planes {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.hero-plane {
    position: absolute;
    opacity: 0.06;
    font-size: 2rem;
}

.hero-plane:nth-child(1) {
    top: 15%;
    left: -5%;
    animation: flyRight 25s linear infinite;
}

.hero-plane:nth-child(2) {
    top: 60%;
    left: -5%;
    animation: flyRight 35s linear infinite 5s;
    font-size: 1.5rem;
}

.hero-plane:nth-child(3) {
    top: 35%;
    left: -5%;
    animation: flyRight 30s linear infinite 12s;
    font-size: 1rem;
}

@keyframes flyRight {
    from { transform: translateX(-100px); }
    to { transform: translateX(calc(100vw + 100px)); }
}

/* Cloud elements */
.hero-clouds {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.hero-cloud {
    position: absolute;
    background: rgba(255,255,255,0.03);
    border-radius: 100px;
}

.hero-cloud:nth-child(1) {
    width: 300px;
    height: 60px;
    top: 20%;
    animation: cloudFloat 40s linear infinite;
}

.hero-cloud:nth-child(2) {
    width: 200px;
    height: 40px;
    top: 50%;
    animation: cloudFloat 55s linear infinite 10s;
}

.hero-cloud:nth-child(3) {
    width: 250px;
    height: 50px;
    top: 75%;
    animation: cloudFloat 45s linear infinite 20s;
}

@keyframes cloudFloat {
    from { transform: translateX(-400px); }
    to { transform: translateX(calc(100vw + 400px)); }
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 60px 24px;
    width: 100%;
    background: transparent;
}

.hero-text {
    text-align: center;
    margin-bottom: 48px;
    animation: fadeInUp 0.8s ease;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(0, 26, 58, 0.48);
    border: 1px solid rgba(255,255,255,0.32);
    border-radius: 100px;
    color: rgba(255,255,255,0.98);
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 24px;
    backdrop-filter: blur(8px);
}

.hero-title {
    font-family: 'Poppins', sans-serif;
    font-size: 3.2rem;
    font-weight: 700;
    color: white;
    line-height: 1.2;
    margin-bottom: 16px;
    text-shadow: 0 8px 26px rgba(0,0,0,0.42);
}

.hero-title span {
    display: inline-block;
    font-family: 'Poppins', sans-serif;
    font-size: 0.84em;
    font-style: italic;
    font-weight: 700;
    letter-spacing: 0.4px;
    color: #ff7a1a;
    -webkit-text-fill-color: #ff7a1a;
    -webkit-text-stroke: 1.6px #ffffff;
    paint-order: stroke fill;
    transform: rotate(-1.8deg) skewX(-8deg);
    transform-origin: left center;
    text-shadow:
        0 2px 10px rgba(0, 0, 0, 0.2),
        0 0 2px rgba(255, 255, 255, 0.65);
}

.hero-subtitle {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.95);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
    text-shadow: 0 3px 14px rgba(0,0,0,0.35);
}

/* Search Box */
.hero-search {
    background: rgba(248, 251, 255, 0.98);
    border: 1px solid rgba(15, 43, 77, 0.22);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 16px 38px -26px rgba(8, 24, 46, 0.55);
    max-width: 1000px;
    margin: 0 auto;
    animation: fadeInUp 0.8s ease 0.2s both;
}

/* Tab Switcher */
.search-tabs {
    display: flex;
    gap: 6px;
    margin-bottom: 20px;
    background: #e9eff6;
    border: 1px solid #d3dbe6;
    border-radius: 10px;
    padding: 3px;
    width: fit-content;
}

.search-tab {
    padding: 8px 14px;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.2px;
    color: #506177;
    border-radius: 8px;
    cursor: pointer;
    transition: all var(--transition);
    display: flex;
    align-items: center;
    gap: 6px;
}

.search-tab.active {
    background: #ffffff;
    color: #0f2b4d;
    box-shadow: 0 1px 2px rgba(16, 38, 66, 0.14);
}

.search-tab:hover:not(.active) {
    color: #0f2b4d;
    background: rgba(255, 255, 255, 0.5);
}

/* Search Grid */
.search-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr auto;
    gap: 12px;
    align-items: end;
}

.search-field {
    position: relative;
}

.search-field-label {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.72rem;
    font-weight: 600;
    color: #55667a;
    text-transform: uppercase;
    letter-spacing: 0.85px;
    margin-bottom: 6px;
}

.search-field-label svg {
    width: 13px;
    height: 13px;
    color: #2a5f93;
}

.search-field input,
.search-field select {
    width: 100%;
    min-height: 42px;
    padding: 11px 12px;
    background: #f7fafe;
    border: 1px solid #c9d5e3;
    border-radius: 10px;
    font-size: 0.88rem;
    line-height: 1.2;
    color: var(--text-primary);
    transition: all var(--transition);
}

.search-field input:focus,
.search-field select:focus {
    background: #ffffff;
    border-color: #2a5f93;
    box-shadow: 0 0 0 2px rgba(42, 95, 147, 0.16);
}

.search-field input::placeholder {
    color: var(--text-light);
}

/* Normalize date field rendering across iOS/Android/desktop */
.hero-search input[type="date"] {
    -webkit-appearance: none;
    appearance: none;
    min-height: 42px;
    padding-right: 38px;
}

.hero-search input[type="date"]::-webkit-date-and-time-value {
    text-align: left;
}

.hero-search input[type="date"]::-webkit-datetime-edit,
.hero-search input[type="date"]::-webkit-datetime-edit-fields-wrapper,
.hero-search input[type="date"]::-webkit-datetime-edit-text,
.hero-search input[type="date"]::-webkit-datetime-edit-month-field,
.hero-search input[type="date"]::-webkit-datetime-edit-day-field,
.hero-search input[type="date"]::-webkit-datetime-edit-year-field {
    color: var(--text-primary);
    font: inherit;
}

/* Swap Button */
.swap-btn {
    position: absolute;
    right: -18px;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #ffffff;
    border: 1px solid #b8c7d8;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 5;
    transition: all var(--transition);
    color: var(--text-secondary);
}

.swap-btn:hover {
    border-color: #2a5f93;
    color: #1f4e7a;
    background: #eef4fa;
}

.search-btn {
    padding: 11px 22px;
    min-height: 42px;
    font-size: 0.88rem;
    border-radius: 10px;
    height: fit-content;
}

/* Search Options */
.search-options {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border-light);
}

.search-option {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.84rem;
    color: #55667a;
}

.search-option select {
    min-height: 38px;
    padding: 6px 30px 6px 10px;
    background: #f7fafe;
    border: 1px solid #c9d5e3;
    border-radius: 8px;
    font-size: 0.82rem;
    color: var(--text-primary);
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
}

/* Passenger Dropdown */
.passenger-dropdown {
    position: fixed;
    width: 260px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.18);
    padding: 8px 16px 12px;
    z-index: 9999;
    display: none;
    border: 1px solid #9db4ce;
}

.passenger-dropdown.active {
    display: block;
    animation: slideDown 0.2s ease;
}

.passenger-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-light);
}

.passenger-row:last-child {
    border-bottom: none;
}

.passenger-info h5 {
    font-size: 0.9rem;
    font-weight: 600;
    margin: 0;
    color: var(--text-primary);
}

.passenger-info p {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin: 2px 0 0;
}

.passenger-counter,
.counter {
    display: flex;
    align-items: center;
    gap: 10px;
}

.counter-btn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1.5px solid var(--primary);
    background: white;
    color: var(--primary);
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
    padding: 0;
    flex-shrink: 0;
}

.counter-btn:hover:not(:disabled) {
    background: var(--primary);
    color: white;
}

.counter-btn:disabled {
    border-color: #ccd8e8;
    color: #aab8c8;
    cursor: not-allowed;
}

.counter-value {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
    min-width: 20px;
    text-align: center;
}

/* Hero Statement Bar */
.hero-tagline {
    margin: 38px auto 0;
    max-width: 700px;
    padding: 0;
    text-align: center;
    color: rgba(255,255,255,0.98);
    background: none;
    border: 0;
    border-radius: 0;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: none;
    animation: fadeInUp 0.8s ease 0.4s both;
}

.hero-tagline-note {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: rgba(227, 237, 255, 0.82);
    margin-bottom: 2px;
}

.hero-tagline-signature {
    display: block;
    font-family: 'Caveat', cursive;
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.2px;
    color: #ffffff;
    text-shadow: 0 4px 16px rgba(0,0,0,0.28);
}

/* Search Loading Modal */
.search-loading-overlay {
    position: fixed;
    inset: 0;
    z-index: 1400;
    background: rgba(8, 22, 40, 0.58);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 220ms ease;
}

.search-loading-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.search-loading-modal {
    width: min(520px, 100%);
    border-radius: 16px;
    border: 1px solid rgba(94, 125, 158, 0.42);
    background: linear-gradient(180deg, #f7fbff 0%, #f1f7ff 100%);
    box-shadow: 0 32px 64px -30px rgba(5, 22, 44, 0.75);
    padding: 22px 22px 18px;
    transform: translateY(8px) scale(0.985);
    transition: transform 220ms ease;
}

.search-loading-overlay.active .search-loading-modal {
    transform: translateY(0) scale(1);
}

.search-loading-modal-head {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
}

.search-loading-spinner {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid #9cb6d3;
    border-top-color: #1b4f7f;
    animation: searchLoadingSpin 0.85s linear infinite;
    flex-shrink: 0;
    margin-top: 3px;
}

.search-loading-head-copy h3 {
    margin: 0 0 5px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    color: #102b4b;
    line-height: 1.35;
}

.search-loading-head-copy p {
    margin: 0;
    font-size: 0.84rem;
    color: #4e6177;
    line-height: 1.45;
}

.search-loading-progress-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.search-loading-progress-bar {
    flex: 1;
    height: 8px;
    border-radius: 999px;
    background: #d7e3f0;
    overflow: hidden;
}

.search-loading-progress-fill {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #2f5f8a 0%, #163f67 100%);
    transition: width 190ms ease;
}

.search-loading-progress-value {
    min-width: 42px;
    text-align: right;
    font-size: 0.79rem;
    font-weight: 700;
    color: #173b5f;
}

.search-loading-steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 8px;
}

.search-loading-step {
    display: flex;
    align-items: center;
    gap: 9px;
    min-height: 28px;
    padding: 5px 8px;
    border-radius: 8px;
    color: #4f647c;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid transparent;
}

.search-loading-step-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    border: 2px solid #9db4cd;
    background: transparent;
    flex-shrink: 0;
}

.search-loading-step.active {
    color: #163f67;
    background: rgba(227, 238, 250, 0.74);
    border-color: rgba(151, 177, 205, 0.55);
}

.search-loading-step.active .search-loading-step-dot {
    border-color: #2f5f8a;
    background: #2f5f8a;
}

.search-loading-step.done {
    color: #1b5f3b;
}

.search-loading-step.done .search-loading-step-dot {
    border-color: #2f7e56;
    background: #2f7e56;
}

@keyframes searchLoadingSpin {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 640px) {
    .search-loading-modal {
        padding: 18px 16px 15px;
        border-radius: 14px;
    }

    .search-loading-head-copy h3 {
        font-size: 0.93rem;
    }

    .search-loading-head-copy p {
        font-size: 0.79rem;
    }

    .search-loading-step {
        font-size: 0.76rem;
    }
}
