/**
 * Egypt market home (scoped to .market-eg-home).
 */
.market-eg-home {
    --eg-brand: #10b981;
    --eg-brand-bright: #34d399;
    --eg-brand-deep: #059669;
    --eg-night: #0c1222;
    /* Match layouts/frontend.blade.php — same as Jordan home */
    --eg-font: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.market-eg-home .navbar {
    background: #ffffff !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.market-eg-home .navbar-brand,
.market-eg-home .nav-link {
    font-family: var(--eg-font);
}

/* ========== Hero: full-bleed photo + overlay ========== */
.eg-landing-hero {
    position: relative;
    overflow: hidden;
    margin-bottom: 0;
    min-height: min(92vh, 940px);
    display: flex;
    flex-direction: column;
}

/* Absorbs extra viewport height so headline+stats stay grouped while curve stays at bottom */
.eg-landing-hero__fill {
    flex: 1 1 auto;
    min-height: 0;
}

.eg-landing-hero__photo {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-size: cover;
    /* Bias toward sky / horizon for wide coastal shots */
    background-position: center 32%;
    background-repeat: no-repeat;
}

.eg-landing-hero__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    /* Slightly stronger on the left so white/green copy stays legible on bright sky */
    background: linear-gradient(
        100deg,
        rgba(6, 12, 28, 0.82) 0%,
        rgba(10, 18, 38, 0.52) 45%,
        rgba(12, 22, 42, 0.35) 100%
    );
}

.eg-landing-hero__content {
    position: relative;
    z-index: 2;
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    width: 100%;
    /* Push headline/badge/CTAs down from the navbar */
    padding-top: clamp(4.5rem, 16vh, 9rem);
    padding-bottom: 0;
}

.eg-landing-hero__badge {
    display: inline-block;
    align-self: flex-start;
    font-family: var(--eg-font);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    line-height: 1.3;
    text-transform: uppercase;
    color: #ffffff;
    background: var(--eg-brand);
    border-radius: 999px;
    padding: 0.5rem 1.1rem 0.48rem;
    margin-bottom: 1.35rem;
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.35);
}

.eg-landing-hero__title {
    font-family: var(--eg-font);
    font-weight: 800;
    font-size: clamp(2.35rem, 5.8vw, 3.65rem);
    line-height: 1.12;
    margin: 0 0 1.4rem;
    letter-spacing: -0.02em;
}

.eg-landing-hero__title-line {
    display: block;
    color: #ffffff;
    text-shadow: 0 2px 28px rgba(0, 0, 0, 0.35);
}

.eg-landing-hero__title-line--accent {
    color: var(--eg-brand-bright);
    text-shadow: 0 0 40px rgba(52, 211, 153, 0.35);
}

.eg-landing-hero__lead {
    font-family: var(--eg-font);
    font-size: 1.05rem;
    font-weight: 400;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.96);
    max-width: 36rem;
    margin-bottom: 1.85rem;
}

.eg-landing-hero__cta-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.9rem;
}

.eg-landing-hero__btn-primary {
    font-family: var(--eg-font);
    font-weight: 600;
    border: none;
    border-radius: 10px;
    padding: 0.8rem 1.45rem;
    background: linear-gradient(180deg, var(--eg-brand-bright) 0%, var(--eg-brand) 40%, var(--eg-brand-deep) 100%);
    color: #ffffff !important;
    box-shadow: 0 8px 28px rgba(16, 185, 129, 0.42);
    transition: transform 0.2s ease, filter 0.2s ease, box-shadow 0.2s ease;
}

.eg-landing-hero__btn-primary:hover {
    color: #ffffff !important;
    filter: brightness(1.06);
    transform: translateY(-2px);
    box-shadow: 0 10px 32px rgba(16, 185, 129, 0.5);
}

.eg-landing-hero__btn-secondary {
    font-family: var(--eg-font);
    font-weight: 500;
    border-radius: 10px;
    padding: 0.75rem 1.35rem;
    border: 2px solid rgba(255, 255, 255, 0.9);
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.04);
    transition: background 0.2s ease, border-color 0.2s ease;
}

.eg-landing-hero__btn-secondary:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: #ffffff;
    color: #ffffff !important;
}

/* Stats row — keep close to CTAs (avoid margin-top: auto, which blew out the gap) */
.eg-landing-hero__stats {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 0;
    margin-top: clamp(1.5rem, 3vh, 2.25rem);
    padding-top: 0;
    padding-bottom: 2.5rem;
}

.eg-landing-hero__stat {
    flex: 1 1 140px;
    min-width: 0;
    text-align: left;
    padding-right: 1rem;
}

.eg-landing-hero__stat-value {
    display: block;
    font-family: var(--eg-font);
    font-weight: 800;
    font-size: clamp(1.85rem, 3.2vw, 2.35rem);
    line-height: 1.15;
    color: var(--eg-brand-bright);
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.25);
}

.eg-landing-hero__stat-label {
    display: block;
    font-family: var(--eg-font);
    font-size: 0.78rem;
    font-weight: 500;
    line-height: 1.35;
    color: rgba(255, 255, 255, 0.9);
    margin-top: 0.4rem;
    max-width: 12rem;
}

.eg-landing-hero__stat-divider {
    width: 1px;
    align-self: stretch;
    min-height: 3.75rem;
    background: rgba(255, 255, 255, 0.38);
    margin: 0 0.65rem;
    flex-shrink: 0;
}

/* Curved transition into white content */
.eg-landing-hero__curve {
    position: relative;
    z-index: 3;
    height: 1.5rem;
    background: #ffffff;
    border-radius: 1.35rem 1.35rem 0 0;
    margin-top: auto;
    box-shadow: 0 -12px 48px rgba(0, 0, 0, 0.12);
}

/*
 * Anchor: cancel Bootstrap .mt-4 (!important) so the card can overlap the hero.
 * Overlap is on .search-filter-container (negative margin pulls the white card up).
 */
.market-eg-home #tour-search-anchor {
    position: relative;
    z-index: 15;
    background: transparent;
    margin-top: 0 !important;
    margin-bottom: 2rem;
    padding-top: 0;
    padding-bottom: 0;
}

.market-eg-home #how-toursplit-works {
    scroll-margin-top: 5.5rem;
}

/* Page sections */
.market-eg-home main {
    font-family: var(--eg-font);
}

.market-eg-home .section-title {
    font-family: var(--eg-font);
    font-weight: 700;
    color: var(--eg-night);
    letter-spacing: -0.02em;
}

.market-eg-home .eg-featured-label {
    font-family: var(--eg-font);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--eg-brand);
    margin-bottom: 0.35rem;
}

.market-eg-home .eg-featured-sub {
    font-size: 1rem;
    max-width: 40rem;
}

/* Floating search card (matches reference: white, rounded, shadow, one row) */
.market-eg-home #tour-search-anchor .search-filter-container {
    margin-top: -100px !important;
    background: #ffffff;
    border: none;
    border-radius: 1.15rem;
    padding: clamp(1.25rem, 2.8vw, 1.75rem);
    box-shadow:
        0 4px 6px rgba(15, 23, 42, 0.04),
        0 20px 50px rgba(15, 23, 42, 0.1),
        0 1px 0 rgba(255, 255, 255, 0.8) inset;
}

.market-eg-home #tour-search-anchor .search-basic-section {
    margin-bottom: 0;
}

.market-eg-home #tour-search-anchor .search-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem 1.15rem;
    align-items: start;
}

.market-eg-home #tour-search-anchor .search-grid-item {
    min-width: 0;
}

@media (min-width: 992px) {
    .market-eg-home #tour-search-anchor .search-grid {
        grid-template-columns: minmax(0, 1.35fr) minmax(0, 1.05fr) minmax(0, 1.05fr) minmax(11.5rem, auto);
        gap: 1.1rem 1.25rem;
    }
}

@media (min-width: 768px) and (max-width: 991.98px) {
    .market-eg-home #tour-search-anchor .search-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .market-eg-home #tour-search-anchor .search-grid-item:last-child {
        grid-column: 1 / -1;
    }
}

.market-eg-home #tour-search-anchor .filter-label {
    font-family: var(--eg-font);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #64748b;
    margin-bottom: 0.4rem;
    height: auto;
    min-height: 0;
}

.market-eg-home #tour-search-anchor .filter-label-icon--search {
    color: #3b82f6;
}

.market-eg-home #tour-search-anchor .filter-label-icon--calendar {
    color: #2563eb;
}

.market-eg-home #tour-search-anchor .filter-label-icon--pin {
    color: #e11d48;
}

.market-eg-home #tour-search-anchor .filter-control {
    height: 3.125rem;
    min-height: 3.125rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.65rem;
    background: #ffffff;
    font-size: 0.9375rem;
}

.market-eg-home #tour-search-anchor select.filter-control {
    background-color: #ffffff;
}

.market-eg-home #tour-search-anchor .filter-control:focus {
    border-color: rgba(16, 185, 129, 0.45);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
    outline: none;
}

.market-eg-home #tour-search-anchor .filter-hint-spacer {
    height: auto;
    min-height: 0;
}

.market-eg-home #tour-search-anchor .filter-hint--eg-footer {
    display: flex;
    align-items: flex-start;
    gap: 0.4rem;
    margin-top: 0.5rem;
    font-size: 0.75rem;
    line-height: 1.45;
    color: #94a3b8;
}

.market-eg-home #tour-search-anchor .filter-hint--eg-footer i {
    color: #3b82f6;
    margin-top: 0.15rem;
    font-size: 0.85rem;
}

.market-eg-home #tour-search-anchor .btn-search-primary {
    background: linear-gradient(180deg, #34d399 0%, #10b981 45%, #059669 100%);
    border: none;
    border-radius: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.35);
}

.market-eg-home #tour-search-anchor .btn-search-primary:hover {
    filter: brightness(1.04);
    box-shadow: 0 8px 26px rgba(16, 185, 129, 0.45);
}

/* Advanced filters row: breathe under the card */
.market-eg-home #tour-search-anchor .advanced-filters-toggle-wrapper {
    margin-top: 0.85rem;
}

.market-eg-home .btn-primary {
    background: linear-gradient(180deg, var(--eg-brand-bright) 0%, var(--eg-brand) 45%, var(--eg-brand-deep) 100%);
    border: none;
    color: #ffffff !important;
    font-weight: 600;
}

.market-eg-home .btn-primary:hover {
    color: #ffffff !important;
    filter: brightness(1.04);
}

.market-eg-home .btn-outline-primary {
    border-color: var(--eg-brand);
    color: var(--eg-brand-deep) !important;
}

.market-eg-home .btn-outline-primary:hover {
    background: rgba(16, 185, 129, 0.1);
    border-color: var(--eg-brand-deep);
    color: #047857 !important;
}

.market-eg-home .tour-card {
    border: 1px solid rgba(16, 185, 129, 0.14);
    box-shadow: 0 8px 28px rgba(12, 18, 34, 0.06);
}

.market-eg-home .tour-price {
    color: var(--eg-brand-deep);
}

.market-eg-home .badge-featured {
    background: linear-gradient(90deg, var(--eg-brand), var(--eg-brand-deep));
}

.market-eg-home .text-primary {
    color: var(--eg-brand) !important;
}

.market-eg-home .card {
    border-color: rgba(16, 185, 129, 0.12);
}

.market-eg-home .footer {
    background: linear-gradient(180deg, #151b2e 0%, #0c1222 100%);
    border-top: 1px solid rgba(16, 185, 129, 0.12);
}

.market-eg-home .whatsapp-float {
    z-index: 1040;
}

@media (max-width: 991.98px) {
    .eg-landing-hero {
        min-height: auto;
    }

    .eg-landing-hero__content {
        padding-top: clamp(3.5rem, 12vh, 6.5rem);
    }

    .eg-landing-hero__stats {
        margin-top: clamp(1.25rem, 2.5vh, 1.85rem);
        padding-bottom: 2rem;
    }

    .eg-landing-hero__stat-divider {
        display: none;
    }

    .eg-landing-hero__stat {
        flex: 1 1 100%;
        padding-bottom: 1.15rem;
        margin-bottom: 1.15rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    }

    .eg-landing-hero__stat:last-child {
        border-bottom: none;
        margin-bottom: 0;
        padding-bottom: 0;
    }
}

@media (max-width: 575.98px) {
    .eg-landing-hero__cta-row .btn-lg {
        width: 100%;
        justify-content: center;
    }
}
