/* ============================================================
   Sharifineya Travel — Modern Homepage Design System
   ============================================================ */

:root {
    --hp-primary: #0066ff;
    --hp-primary-dark: #0052cc;
    --hp-primary-light: #e8f1ff;
    --hp-accent: #00b894;
    --hp-dark: #0f172a;
    --hp-dark-soft: #1e293b;
    --hp-gray-50: #f8fafc;
    --hp-gray-100: #f1f5f9;
    --hp-gray-200: #e2e8f0;
    --hp-gray-400: #94a3b8;
    --hp-gray-600: #475569;
    --hp-gray-800: #1e293b;
    --hp-white: #ffffff;
    --hp-radius-sm: 0.5rem;
    --hp-radius-md: 0.875rem;
    --hp-radius-lg: 1.25rem;
    --hp-radius-xl: 1.75rem;
    --hp-shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06);
    --hp-shadow-md: 0 8px 30px rgba(15, 23, 42, 0.08);
    --hp-shadow-lg: 0 20px 60px rgba(15, 23, 42, 0.12);
    --hp-shadow-xl: 0 25px 80px rgba(0, 102, 255, 0.15);
    --hp-transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Homepage performance + body override ── */
html {
    scroll-behavior: auto;
}

/* Kill fixed full-viewport photo layer everywhere (scroll killer) */
body::before,
body.homepage-active::before {
    content: none !important;
    display: none !important;
    background: none !important;
    filter: none !important;
    transform: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    width: 0 !important;
    height: 0 !important;
}

body.homepage-active {
    background: #f4f7fb !important;
}

body.homepage-active .hp-stats,
body.homepage-active .hp-section,
body.homepage-active .hp-section-alt {
    position: relative;
    z-index: 1;
    content-visibility: visible;
    contain: none;
}

/* Solid header — never blur while scrolling */
body.homepage-active .header-custom,
body.homepage-active .header-custom.header-scrolled,
.header-custom.header-modern {
    background-color: #ffffff !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
    box-shadow: 0 1px 0 rgba(15, 23, 42, 0.06) !important;
    transition: none !important;
}

/* Hero: NO GPU layer promotion (large photo layers make scroll stutter) */
.hp-hero,
.hp-hero--v4 {
    transform: none !important;
    filter: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    will-change: auto !important;
    background-attachment: scroll !important;
}

.hp-hero::before {
    filter: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    /* Flat overlay — cheaper than multi-stop soft gradients while scrolling */
    background: rgba(6, 14, 32, 0.55) !important;
}

.hp-hero-brand {
    text-shadow: none !important;
}

/* Lighter shadows = less paint cost while scrolling under fixed header */
body.homepage-active .hp-search-card,
body.homepage-active .hp-stats__rail,
body.homepage-active .hp-service-card,
body.homepage-active .hp-about-card,
body.homepage-active .hp-contact-card,
body.homepage-active .hp-contact-form,
body.homepage-active .site-footer {
    box-shadow: none !important;
}

body.homepage-active .hp-search-card {
    border: 1px solid #e2e8f0;
}

body.homepage-active .hp-stat-item,
body.homepage-active .hp-service-card,
body.homepage-active a,
body.homepage-active .btn {
    transition: none !important;
}

/* Instant content — no fade/blur-in while scrolling */
.hp-reveal,
.hp-reveal.visible {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    transition: none !important;
    animation: none !important;
}

/* Hide full-page spinner on homepage (blocks first paint) */
body.homepage-active #spinner-container {
    display: none !important;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ── Hero Section v4 — brand fills the sky, search docks below ── */
.hp-hero {
    position: relative;
    min-height: auto;
    display: block;
    padding: 5.5rem 0 0;
    overflow: visible;
    z-index: 5;
    background-color: #0b1220;
    background-image: url('/homepage/img/bg2-hero.jpg');
    background-size: cover;
    background-position: center 30%;
    background-repeat: no-repeat;
}

.hp-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(6, 14, 32, 0.55);
    z-index: 0;
    border-radius: 0;
    pointer-events: none;
}

.hp-hero__sky,
.hp-hero__glow {
    display: none !important;
}

.hp-hero .container,
.hp-hero__inner {
    position: relative;
    z-index: 2;
    width: 100%;
    padding-bottom: 0;
    overflow: visible;
}

.hp-hero-copy {
    max-width: 34rem;
    padding: 1.75rem 0 1.5rem;
}

.hp-hero-kicker {
    margin: 0 0 0.55rem;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(186, 230, 253, 0.9);
}

.hp-hero-brand {
    margin: 0 0 0.45rem;
    font-size: clamp(2.4rem, 5.5vw, 3.6rem);
    font-weight: 900;
    letter-spacing: -0.045em;
    line-height: 1.02;
    color: #fff;
    text-shadow: 0 12px 36px rgba(0, 0, 0, 0.35);
}

.hp-hero-lead {
    margin: 0;
    font-size: clamp(1rem, 1.8vw, 1.2rem);
    font-weight: 500;
    line-height: 1.45;
    color: rgba(226, 242, 255, 0.88);
    max-width: 28rem;
}

/* Legacy hooks */
.hp-hero-content,
.hp-hero-title,
.hp-hero-line,
.hp-hero-subtitle,
.hp-hero-badge { display: none; }

/* ── Search card v4 ── */
.hp-search-card {
    background: #fff;
    border-radius: 1.15rem;
    padding: 0.9rem 1rem 1rem;
    box-shadow: 0 16px 40px rgba(2, 12, 36, 0.18);
    border: 1px solid #e8eef6;
    margin: 0 0 1.75rem;
    position: relative;
    z-index: 30;
    overflow: visible;
}

.hp-search-header { display: none; }

.hp-search-top {
    display: flex;
    align-items: center;
    margin-bottom: 0.65rem;
}

.hp-search-toolbar {
    display: flex;
    align-items: center;
    margin: 0;
    flex: 0 0 auto;
}

.hp-trip-toggle {
    display: inline-flex;
    background: #eef2f7;
    border-radius: 999px;
    padding: 3px;
    margin-bottom: 0;
    gap: 2px;
}

.hp-trip-toggle .form-check {
    margin: 0;
    padding: 0;
}

.hp-trip-toggle .form-check-input {
    display: none;
}

.hp-trip-toggle .form-check-label {
    display: block;
    padding: 0.4rem 0.95rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #64748b;
    cursor: pointer;
    transition: var(--hp-transition);
    margin: 0;
    white-space: nowrap;
}

.hp-trip-toggle .form-check-input:checked + .form-check-label {
    background: #0b5fff;
    color: #fff;
    box-shadow: 0 4px 12px rgba(11, 95, 255, 0.28);
}

.hp-search-card .flight-search-form-lux,
.hp-search-bar {
    background: transparent;
    padding: 0;
    border: none;
    box-shadow: none;
}

.hp-search-bar {
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 0.4rem;
    overflow: visible;
    position: relative;
    z-index: 5;
}

.hp-search-route {
    display: flex;
    align-items: stretch;
    gap: 0.4rem;
    flex: 2.4 1 0;
    min-width: 0;
    position: relative;
}

.hp-search-route .hp-search-cell {
    flex: 1 1 0;
}

.hp-search-cell {
    min-width: 0;
    position: relative;
    flex: 1 1 0;
}

.hp-search-cell.autocomplete-wrapper {
    flex: 1 1 0;
}

.hp-search-cell--travellers {
    flex: 0.95 1 0;
    max-width: 150px;
    position: relative;
    z-index: 40;
    overflow: visible !important;
}

.hp-search-cell--travellers .form-group-lux.dropdown,
.hp-search-cell--travellers .dropdown {
    position: relative;
    overflow: visible !important;
    z-index: 40;
}

.hp-search-cell--travellers .dropdown-menu {
    z-index: 1080 !important;
    max-height: none !important;
    overflow: visible !important;
}

.hp-search-cell--action {
    display: flex;
    flex: 0 0 auto;
}

.hp-search-dates {
    display: flex;
    align-items: stretch;
    gap: 0.4rem;
    flex: 1.35 1 0;
    min-width: 220px;
}

.hp-search-dates > .hp-search-cell,
.hp-search-dates > #departure-date-container,
.hp-search-dates > #arrival-date-container {
    flex: 1 1 0 !important;
    width: auto !important;
    max-width: none !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    opacity: 1 !important;
    transition: none !important;
}

/* Neutralize legacy Bootstrap col / flex animation classes on date cells */
.hp-search-bar #departure-date-container,
.hp-search-bar #arrival-date-container,
.hp-search-bar #departure-date-container.col-md-6,
.hp-search-bar #departure-date-container.col-md-12,
.hp-search-bar #arrival-date-container.col-md-6,
.hp-search-bar #arrival-date-container.col-md-12,
.hp-search-bar #departure-date-container.form-col-hidden,
.hp-search-bar #arrival-date-container.form-col-hidden {
    width: auto !important;
    max-width: none !important;
    flex: 1 1 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: visible !important;
    opacity: 1 !important;
    transition: none !important;
}

.hp-search-bar #departure-date-container .form-group-lux,
.hp-search-bar #arrival-date-container .form-group-lux {
    width: 100%;
}

.hp-search-swap {
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    flex: 0 0 32px;
    align-self: center;
}

.hp-swap-btn,
.hp-search-card #two-arrows {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    border: 1px solid #dbe3ef;
    background: #fff;
    color: #0b5fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 10px rgba(15, 23, 42, 0.08);
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.hp-swap-btn:hover,
.hp-search-card #two-arrows:hover {
    background: #0b5fff;
    border-color: #0b5fff;
    color: #fff;
}

.hp-swap-btn i {
    font-size: 0.8rem;
}

.hp-search-card .form-group-lux {
    background: #f5f8fc;
    border: 1px solid #e2e8f0;
    border-radius: 0.85rem;
    padding: 0.45rem 0.65rem;
    transition: var(--hp-transition);
    height: 100%;
    min-height: 52px;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.hp-search-card .form-group-lux > i {
    color: #64748b;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.hp-search-card .form-group-lux:focus-within {
    background: #fff;
    border-color: #0b5fff;
    box-shadow: 0 0 0 3px rgba(11, 95, 255, 0.12);
}

.hp-search-card .form-label-lux {
    font-size: 0.58rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #94a3b8;
    font-weight: 700;
    display: block;
    margin-bottom: 0.02rem;
    line-height: 1;
}

.hp-search-card .form-control-lux {
    font-size: 0.84rem;
    font-weight: 600;
    color: #0f172a;
    padding: 0;
    border: none;
    background: transparent;
    width: 100%;
    min-width: 0;
}

.hp-search-card .form-control-lux:focus {
    outline: none;
    box-shadow: none;
}

.hp-search-card .input-wrapper {
    min-width: 0;
    flex: 1 1 auto;
    overflow: hidden;
}

.hp-search-card .dropdown-toggle {
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    color: inherit;
}

.hp-search-card .dropdown-text {
    display: block;
    font-size: 0.84rem;
    font-weight: 600;
    color: #0f172a;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hp-search-card .btn-search-lux {
    width: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    background: linear-gradient(135deg, #0b5fff 0%, #0047d4 100%);
    border: none;
    border-radius: 0.85rem;
    padding: 0 1.1rem;
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    transition: var(--hp-transition);
    box-shadow: 0 10px 22px rgba(11, 95, 255, 0.28);
    min-height: 52px;
    min-width: 104px;
    white-space: nowrap;
}

.hp-search-card .btn-search-lux:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(11, 95, 255, 0.36);
    background: linear-gradient(135deg, #1a75ff 0%, #0047b3 100%);
}

/* One-way: hide return and let depart fill the dates group */
#flightSearchForm:has(#oneWay:checked) #arrival-date-container {
    display: none !important;
}

#flightSearchForm:has(#twoWay:checked) #arrival-date-container {
    display: block !important;
    opacity: 1 !important;
    flex: 1 1 0 !important;
    width: auto !important;
}

#flightSearchForm:has(#oneWay:checked) #departure-date-container {
    flex: 1 1 auto !important;
}

/* ── Trust Stats Bar ── */
.hp-stats {
    background: #f4f7fb;
    padding: 0.35rem 0 1.75rem;
    border-bottom: none;
    position: relative;
    z-index: 1;
}

.hp-stats--v2,
.hp-stats--v3 {
    margin-top: 0;
    position: relative;
    z-index: 1;
}

.hp-stats__rail {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 1.05rem;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
    padding: 0;
}

.hp-stat-item {
    text-align: center;
    padding: 1.35rem 1rem;
    border-right: 1px solid #eef2f7;
    background: #fff;
    transition: background 0.2s ease;
}

.hp-stat-item:hover {
    background: #f8fafc;
}

.hp-stat-item:last-child { border-right: none; }

.hp-stat-icon { display: none; }

.hp-stat-number {
    font-size: 1.55rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1;
    margin-bottom: 0.4rem;
    letter-spacing: -0.03em;
}

.hp-stat-label {
    font-size: 0.78rem;
    color: #64748b;
    font-weight: 600;
}

/* ── Section Shared Styles ── */
.hp-section {
    padding: 5rem 0;
}

.hp-section-alt {
    background: var(--hp-gray-50);
}

.hp-section-header {
    text-align: left;
    max-width: 640px;
    margin: 0 0 2.5rem;
}

.hp-section-tag {
    display: inline-block;
    background: transparent;
    color: #0b5fff;
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0;
    border-radius: 0;
    margin-bottom: 0.65rem;
}

.hp-section-title {
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    font-weight: 800;
    color: var(--hp-dark);
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.hp-section-desc {
    font-size: 1.05rem;
    color: var(--hp-gray-600);
    line-height: 1.7;
    margin: 0;
}

/* ── About Section ── */
.hp-about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.hp-about-image {
    position: relative;
    border-radius: var(--hp-radius-xl);
    overflow: hidden;
    box-shadow: var(--hp-shadow-lg);
}

.hp-about-image img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

.hp-about-image:hover img {
    transform: scale(1.03);
}

.hp-about-image-badge {
    position: absolute;
    bottom: 1.5rem;
    left: 1.5rem;
    background: var(--hp-white);
    border-radius: var(--hp-radius-md);
    padding: 1rem 1.25rem;
    box-shadow: var(--hp-shadow-md);
    display: none;
    align-items: center;
    gap: 0.75rem;
}

.hp-about-image-badge .badge-number {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--hp-primary);
    line-height: 1;
}

.hp-about-image-badge .badge-text {
    font-size: 0.8rem;
    color: var(--hp-gray-600);
    font-weight: 500;
    line-height: 1.3;
}

.hp-about-content h3 {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--hp-dark);
    margin-bottom: 1rem;
}

.hp-about-content p {
    color: var(--hp-gray-600);
    line-height: 1.75;
    margin-bottom: 1.25rem;
}

.hp-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 2rem;
}

.hp-feature {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 0.35rem 0;
    background: transparent;
    border-radius: 0;
    border: none;
    transition: var(--hp-transition);
}

.hp-section-alt .hp-feature {
    background: transparent;
}

.hp-feature:hover {
    border-color: transparent;
    box-shadow: none;
    transform: none;
}

.hp-feature-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: 10px;
    background: var(--hp-primary-light);
    color: var(--hp-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.hp-feature-text h4 {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--hp-dark);
    margin: 0 0 0.2rem;
}

.hp-feature-text p {
    font-size: 0.8rem;
    color: var(--hp-gray-400);
    margin: 0;
    line-height: 1.4;
}

/* ── Services Section ── */
.hp-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.75rem;
}

.hp-service-card {
    background: var(--hp-white);
    border-radius: var(--hp-radius-lg);
    overflow: hidden;
    border: 1px solid var(--hp-gray-200);
    transition: var(--hp-transition);
    text-decoration: none;
    color: inherit;
    display: block;
    position: relative;
}

.hp-service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--hp-shadow-lg);
    border-color: transparent;
    color: inherit;
}

.hp-service-card-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.hp-service-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.hp-service-card:hover .hp-service-card-image img {
    transform: scale(1.08);
}

.hp-service-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.6) 0%, transparent 60%);
    opacity: 0;
    transition: var(--hp-transition);
}

.hp-service-card:hover .hp-service-card-overlay {
    opacity: 1;
}

.hp-service-card-body {
    padding: 1.5rem;
}

.hp-service-card-body h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--hp-dark);
    margin-bottom: 0.5rem;
}

.hp-service-card-body p {
    font-size: 0.9rem;
    color: var(--hp-gray-600);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.hp-service-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--hp-primary);
    transition: gap var(--hp-transition);
}

.hp-service-card:hover .hp-service-link {
    gap: 0.65rem;
}

/* ── Contact Section ── */
.hp-contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 3rem;
    align-items: start;
}

.hp-contact-info h3 {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--hp-dark);
    margin-bottom: 1rem;
}

.hp-contact-info > p {
    color: var(--hp-gray-600);
    line-height: 1.7;
    margin-bottom: 2rem;
}

.hp-contact-cards {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.hp-contact-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.15rem 1.25rem;
    background: var(--hp-white);
    border: 1px solid var(--hp-gray-200);
    border-radius: var(--hp-radius-md);
    transition: var(--hp-transition);
}

.hp-section-alt .hp-contact-card {
    background: var(--hp-white);
}

.hp-contact-card:hover {
    border-color: var(--hp-primary);
    box-shadow: var(--hp-shadow-sm);
}

.hp-contact-card-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
}

.hp-contact-card-icon.phone { background: #e8f5e9; color: #2e7d32; }
.hp-contact-card-icon.email { background: #fff3e0; color: #e65100; }
.hp-contact-card-icon.location { background: var(--hp-primary-light); color: var(--hp-primary); }
.hp-contact-card-icon.whatsapp { background: #e8f5e9; color: #25d366; }

.hp-contact-card-text h4 {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--hp-gray-400);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0 0 0.15rem;
}

.hp-contact-card-text p,
.hp-contact-card-text a {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--hp-dark);
    margin: 0;
    text-decoration: none;
}

.hp-contact-card-text a:hover {
    color: var(--hp-primary);
}

/* Contact Form */
.hp-contact-form {
    background: var(--hp-white);
    border-radius: var(--hp-radius-xl);
    padding: 2.25rem;
    box-shadow: var(--hp-shadow-md);
    border: 1px solid var(--hp-gray-200);
}

.hp-contact-form h3 {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--hp-dark);
    margin-bottom: 1.5rem;
}

.hp-form-group {
    margin-bottom: 1.25rem;
}

.hp-form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--hp-dark-soft);
    margin-bottom: 0.45rem;
}

.hp-form-group .form-control {
    border: 1.5px solid var(--hp-gray-200);
    border-radius: var(--hp-radius-sm);
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    transition: var(--hp-transition);
    background: var(--hp-gray-50);
}

.hp-form-group .form-control:focus {
    border-color: var(--hp-primary);
    box-shadow: 0 0 0 4px rgba(0, 102, 255, 0.1);
    background: var(--hp-white);
}

.hp-form-group textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

.hp-btn-submit {
    background: linear-gradient(135deg, var(--hp-primary) 0%, var(--hp-primary-dark) 100%);
    color: var(--hp-white);
    border: none;
    border-radius: var(--hp-radius-md);
    padding: 0.85rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    width: 100%;
    transition: var(--hp-transition);
    box-shadow: 0 6px 20px rgba(0, 102, 255, 0.3);
}

.hp-btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(0, 102, 255, 0.4);
    color: var(--hp-white);
}

/* ── Footer Enhancements (base; site-layout.css owns final dark theme) ── */
.footer-new.footer-modern {
    background: linear-gradient(180deg, var(--hp-dark) 0%, #0a0f1e 100%);
    color: rgba(255, 255, 255, 0.78);
    padding: 0;
}

/* ── Header Toolbar (normalized actions) ── */
.header-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

@media (min-width: 992px) {
    .header-modern .navbar-collapse {
        display: flex !important;
        flex-wrap: nowrap;
        align-items: center;
    }

    .header-modern .navbar-nav.mx-auto {
        flex: 1 1 auto;
        justify-content: center;
    }

    .header-toolbar {
        margin-top: 0;
        margin-left: auto;
        flex-wrap: nowrap;
        flex-shrink: 0;
        justify-content: flex-end;
    }
}

.header-toolbar-item {
    flex-shrink: 0;
}

.header-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    height: 36px;
    padding: 0 0.9rem;
    font-size: 0.8125rem;
    font-weight: 600;
    font-family: inherit;
    line-height: 1;
    white-space: nowrap;
    color: var(--hp-dark-soft);
    background: var(--hp-white);
    border: 1.5px solid var(--hp-gray-200);
    border-radius: 50px;
    cursor: pointer;
    transition: var(--hp-transition);
    box-shadow: var(--hp-shadow-sm);
}

.header-pill i {
    font-size: 0.95rem;
    color: var(--hp-gray-600);
    line-height: 1;
}

.header-pill:hover,
.header-pill.show {
    border-color: var(--hp-primary);
    color: var(--hp-primary);
    background: var(--hp-white);
}

.header-pill:hover i,
.header-pill.show i {
    color: var(--hp-primary);
}

.header-pill-primary {
    background: var(--hp-primary);
    border-color: var(--hp-primary);
    color: var(--hp-white);
    box-shadow: 0 4px 12px rgba(0, 102, 255, 0.25);
}

.header-pill-primary i {
    color: var(--hp-white);
}

.header-pill-primary:hover,
.header-pill-primary.show {
    background: var(--hp-primary-dark);
    border-color: var(--hp-primary-dark);
    color: var(--hp-white);
}

.header-pill-primary:hover i,
.header-pill-primary.show i {
    color: var(--hp-white);
}

.header-pill-admin {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.25);
}

.header-pill-admin i {
    color: #93c5fd;
}

.header-pill-admin:hover,
.header-pill-admin.show {
    background: linear-gradient(135deg, #1e293b 0%, #1d4ed8 100%);
    color: #fff;
}

.header-pill-admin:hover i,
.header-pill-admin.show i {
    color: #fff;
}

.header-modern .header-admin-menu {
    min-width: 260px;
}

.header-admin-profile__name {
    font-weight: 800;
    font-size: 0.92rem;
    color: #0f172a;
    line-height: 1.25;
}

.header-admin-profile__email {
    font-size: 0.78rem;
    color: #64748b;
    margin-top: 0.1rem;
    word-break: break-all;
}

.header-admin-profile__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-top: 0.45rem;
}

.header-admin-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    background: #eff6ff;
    color: #1d4ed8;
    font-size: 0.68rem;
    font-weight: 700;
}

.header-admin-branch {
    display: inline-flex;
    align-items: center;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    background: #f1f5f9;
    color: #475569;
    font-size: 0.68rem;
    font-weight: 600;
}

.header-settlement-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    border: 1px solid #c7d2fe;
    background: #eef2ff;
    color: #3730a3;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}

.header-settlement-pill i {
    font-size: 0.85rem;
}

.header-admin-settlement {
    padding-top: 0.5rem;
    border-top: 1px solid #e2e8f0;
}

.header-admin-settlement small {
    display: block;
    color: #64748b;
    font-size: 0.7rem;
    margin-bottom: 0.1rem;
}

.header-admin-settlement strong {
    display: block;
    color: #1e293b;
    font-size: 0.82rem;
    font-weight: 600;
}

.header-pill.dropdown-toggle::after {
    margin-left: 0.15rem;
    vertical-align: 0;
    border-top-width: 0.35em;
    border-right-width: 0.35em;
    border-left-width: 0.35em;
}

/* Currency pill */
.header-pill-currency {
    cursor: default;
    padding-right: 0.65rem;
    gap: 0.35rem;
}

.header-pill-currency:hover {
    border-color: var(--hp-gray-200);
    color: var(--hp-dark-soft);
}

.header-pill-currency:hover i {
    color: var(--hp-gray-600);
}

.header-currency-select {
    appearance: none;
    -webkit-appearance: none;
    border: none;
    background: transparent;
    font-size: 0.8125rem;
    font-weight: 600;
    font-family: inherit;
    color: var(--hp-dark-soft);
    padding: 0 1rem 0 0;
    cursor: pointer;
    line-height: 1;
    min-width: 3.5rem;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%2394a3b8' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right center;
    background-size: 0.65rem;
}

.header-currency-select:focus {
    outline: none;
}

.header-dropdown-menu {
    min-width: 220px;
    padding: 0.5rem;
    border-radius: var(--hp-radius-md);
    border: 1px solid var(--hp-gray-200);
    box-shadow: var(--hp-shadow-lg);
    margin-top: 0.4rem !important;
}

.header-dropdown-menu .dropdown-header {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--hp-gray-400);
}

/* ── Header Enhancements ── */
.header-custom.header-modern {
    background-color: rgba(255, 255, 255, 0.85);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.header-modern .navbar-collapse {
    align-items: center;
}

.header-modern .nav-link.active {
    color: var(--hp-primary) !important;
}

.header-modern .nav-link.active::after {
    transform: scaleX(1);
}

.header-modern .login-dropdown-menu {
    min-width: 240px;
    padding: 0.5rem;
    border-radius: var(--hp-radius-md);
    border: 1px solid var(--hp-gray-200);
    box-shadow: var(--hp-shadow-lg);
    margin-top: 0.5rem !important;
}

.header-modern .login-dropdown-menu .dropdown-header {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--hp-gray-400);
    padding: 0.4rem 0.75rem 0.25rem;
}

.header-modern .login-dropdown-menu .dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 0.75rem;
    border-radius: var(--hp-radius-sm);
    transition: var(--hp-transition);
}

.header-modern .login-dropdown-menu .dropdown-item i {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--hp-primary-light);
    color: var(--hp-primary);
    border-radius: 10px;
    font-size: 1rem;
    flex-shrink: 0;
}

.header-modern .login-dropdown-menu .dropdown-item span {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}

.header-modern .login-dropdown-menu .dropdown-item strong {
    font-size: 0.875rem;
    color: var(--hp-dark);
}

.header-modern .login-dropdown-menu .dropdown-item small {
    font-size: 0.75rem;
    color: var(--hp-gray-400);
    font-weight: 400;
}

.header-modern .login-dropdown-menu .dropdown-item:hover {
    background: var(--hp-gray-50);
}

.header-modern .login-dropdown-menu .dropdown-item:hover i {
    background: var(--hp-primary);
    color: var(--hp-white);
}

/* ── Autocomplete (moved from inline) ── */
.autocomplete-suggestions {
    position: absolute;
    z-index: 9999 !important;
    background: var(--hp-white) !important;
    border: 1px solid var(--hp-gray-200);
    width: 100%;
    margin-top: 4px;
    padding: 0;
    list-style: none;
    box-shadow: var(--hp-shadow-md);
    border-radius: var(--hp-radius-sm);
    max-height: 280px;
    overflow-y: auto;
}

.autocomplete-wrapper {
    position: relative;
    overflow: visible !important;
}

.form-group-lux {
    overflow: visible !important;
}

/* ── Scroll reveal animation (disabled for performance; kept for compatibility) ── */
.hp-reveal {
    opacity: 1;
    transform: none;
    transition: none;
}

.hp-reveal.visible {
    opacity: 1;
    transform: none;
}

@keyframes hpFadeUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── Mobile search layout ── */
@media (max-width: 767px) {
    .hp-search-bar {
        flex-wrap: wrap;
        gap: 0.55rem;
    }

    .hp-search-route {
        flex: 1 1 100%;
        flex-direction: column;
        gap: 0.55rem;
        position: relative;
        padding: 0;
    }

    .hp-search-route .hp-search-cell,
    .hp-search-route .autocomplete-wrapper {
        flex: 1 1 auto !important;
        width: 100% !important;
        max-width: none !important;
    }

    /* Swap sits exactly between From and To */
    .hp-search-route .hp-search-swap,
    .hp-search-bar .hp-search-swap.swap-wrapper {
        position: absolute !important;
        left: 50% !important;
        top: 50% !important;
        transform: translate(-50%, -50%) !important;
        width: auto !important;
        height: auto !important;
        margin: 0 !important;
        flex: none !important;
        z-index: 12 !important;
        pointer-events: auto;
    }

    .hp-swap-btn,
    .hp-search-card #two-arrows {
        width: 36px;
        height: 36px;
        box-shadow: 0 6px 16px rgba(15, 23, 42, 0.14);
    }

    .hp-search-dates,
    .hp-search-cell--travellers,
    .hp-search-cell--action {
        flex: 1 1 100%;
        max-width: none;
        min-width: 0;
    }

    .hp-search-card .btn-search-lux {
        width: 100%;
        min-width: 0;
    }
}

/* ── Responsive ── */
@media (max-width: 1100px) {
    .hp-search-bar {
        flex-wrap: wrap;
    }

    .hp-search-route {
        flex: 1 1 100%;
    }

    .hp-search-dates {
        flex: 1 1 calc(55% - 0.4rem);
        min-width: 0;
    }

    .hp-search-cell--travellers {
        max-width: none;
        flex: 1 1 calc(25% - 0.4rem);
    }

    .hp-search-cell--action {
        flex: 1 1 calc(20% - 0.4rem);
    }

    .hp-search-card .btn-search-lux {
        width: 100%;
    }
}

@media (max-width: 991px) {
    .header-toolbar {
        width: 100%;
        padding-top: 0.25rem;
    }

    .header-pill {
        height: 34px;
        font-size: 0.8rem;
        padding: 0 0.75rem;
    }

    .hp-contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hp-about-grid {
        grid-template-columns: 1fr;
    }

    .hp-about-image img {
        height: 300px;
    }

    .hp-features {
        grid-template-columns: 1fr;
    }

    .hp-hero {
        min-height: auto;
        padding: 4.75rem 0 0;
    }

    .hp-hero-copy {
        padding: 1.25rem 0 1.1rem;
    }

    .hp-search-card {
        margin: 0 0 1.25rem;
        padding: 0.75rem;
    }

    .hp-stats {
        padding: 0.15rem 0 1.25rem;
    }

    .hp-stats__rail {
        grid-template-columns: 1fr 1fr;
        border-radius: 0.9rem;
    }

    .hp-stat-item {
        border-right: none;
        border-bottom: 1px solid #e2e8f0;
        padding: 1rem;
    }

    .hp-stat-item:nth-child(odd) {
        border-right: 1px solid #e2e8f0;
    }

    .hp-stat-item:nth-last-child(-n+2) {
        border-bottom: none;
    }

    .hp-section {
        padding: 3.5rem 0;
    }

    .hp-section-header {
        text-align: left;
        margin-bottom: 2rem;
    }
}

@media (max-width: 640px) {
    .hp-search-bar {
        flex-wrap: wrap;
    }

    .hp-search-route,
    .hp-search-dates,
    .hp-search-cell--travellers,
    .hp-search-cell--action {
        flex: 1 1 100%;
        max-width: none;
        min-width: 0;
    }

    .hp-search-card .btn-search-lux {
        min-width: 0;
        width: 100%;
    }
}

@media (max-width: 575px) {
    .hp-stat-item {
        padding: 0.75rem 0.5rem;
    }

    .hp-stat-number {
        font-size: 1.4rem;
    }

    .hp-trip-toggle .form-check-label {
        padding: 0.4rem 0.75rem;
        font-size: 0.75rem;
    }

    .hp-contact-form {
        padding: 1.5rem;
    }

    .hp-hero-brand {
        font-size: clamp(2.1rem, 11vw, 2.8rem);
    }
}
