/* ==========================================================================
   Exit2Eat — Homepage layout
   Hero image sits full-bleed behind the page; the filter sidebar floats on
   top of it (starting just below the overlapping header logo) and then
   continues down beside the restaurant grid once the hero image ends.
   ========================================================================== */

.e2e-home {
    position: relative;
}

/* Full-bleed hero background layer, sits behind sidebar + hero text */
.e2e-home-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 560px;
    background-image:
        linear-gradient(180deg, rgba(8, 20, 55, 0.75) 0%, rgba(8, 20, 55, 0.35) 45%, rgba(8, 20, 55, 0.15) 75%, rgba(8, 20, 55, 0) 100%),
        var(--hero-image, none),
        linear-gradient(135deg, #14275c 0%, #1c3f8f 45%, #2f6fd6 100%);
    background-size: cover, cover, cover;
    background-position: center, center, center;
    background-repeat: no-repeat;
    /* fades the whole layer to transparent over its last 100px so it blends
       into the white content below instead of cutting off with a hard edge */
    -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 calc(100% - 100px), transparent 100%);
    mask-image: linear-gradient(180deg, #000 0%, #000 calc(100% - 100px), transparent 100%);
    z-index: 0;
}

/* Row holding sidebar + main content, sits above the hero background */
.e2e-home-row {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: flex-start;
    gap: 24px;
    padding-top: 28px;
}

/* ---------------- Sidebar ---------------- */
.e2e-home-sidebar {
    flex: 0 0 280px;
    width: 280px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 16px 40px rgba(11, 31, 77, 0.18);
    padding: 20px;
    /* pushes the sidebar down so it starts below the overlapping header logo */
    margin-top: 36px;
}


.e2e-sidebar-location a {
    text-decoration: none;
}

.e2e-sidebar-search {
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 4px 10px;
}

.e2e-sidebar-search i {
    color: #9aa2b1;
    font-size: 0.85rem;
}

.e2e-sidebar-scroll {
    max-height: 200px;
    overflow-y: auto;
}

/* ---------------- Main column ---------------- */
.e2e-home-main {
    flex: 1 1 auto;
    min-width: 0;
}

/* Hero text block sits directly on the full-bleed image behind it,
   so it needs no background/shadow of its own here. */
.e2e-home .hero-banner {
    background: transparent;
    box-shadow: none;
    padding-top: 8px;
}

.e2e-home .hero-banner h1,
.e2e-home .hero-banner p {
    color: #ffffff;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.55);
}

.e2e-home .hero-banner .text-warning {
    color: #ffd23f !important;
}

/* White search card inside the hero */
.e2e-hero-search {
    box-shadow: 0 16px 40px rgba(11, 31, 77, 0.25);
    margin-top: 32px;
    flex-wrap: wrap;
}

.e2e-hero-search > * {
    min-width: 0;
}

.e2e-hero-search-divider {
    border-left: 1px solid #e5e7eb;
    border-right: 1px solid #e5e7eb;
    flex: 0 0 auto;
    white-space: nowrap;
}

.e2e-hero-search input[type="text"] {
    background: #00000047;
    flex: 1 1 200px;
}

/* Stat cards under the hero */
.e2e-stat-card {
    background: #ffffff;
    border-radius: 14px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 6px 18px rgba(11, 31, 77, 0.08);
}

.blue-col {
    color: #0b1f4d !important;
}

.e2e-btn-dark{
    background-color: #0b1f4d !important;
    color: #ffffff;
}

.e2e-btn-dark:hover {
    background-color: #0d389d !important;
    color: #ffffff;
}

.e2e-map-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    min-width: 132px;
    height: 42px;
    padding: 0 12px;

    background: #fff;
    color: #0b1f4d;
    border: 1px solid #d9dee8;
    border-radius: 12px;

    font-weight: 600;
    transition: .2s ease;
}

.e2e-map-btn i {
    font-size: 1.15rem;
    color: #0b1f4d;
}

.e2e-map-btn:hover {
    background: #0b1f4d;
    color: #fff;
    border-color: #0b1f4d;
}

.e2e-map-btn:hover i {
    color: #fff;
}

.form-select-sm {
    height: 42px;
    min-width: 132px;
    border-radius: 12px !important;
    border: 1px solid #d9dee8;
    font-weight: 600;
    background-color: #ffffff;
}
/* ==========================================================================
   Responsive
   ========================================================================== */

/* Tablet: sidebar keeps overlapping but narrower, hero shorter */
@media (max-width: 1199.98px) {
    .e2e-home-hero-bg {
        height: 520px;
    }

    .e2e-home-sidebar {
        flex-basis: 240px;
        width: 240px;
    }
}

/* Below large breakpoint: stack sidebar above main content, drop the overlap */
@media (max-width: 991.98px) {
    .e2e-home-hero-bg {
        height: 460px;
    }

    .e2e-home-row {
        flex-direction: column;
        padding-top: 20px;
    }

    .e2e-home-sidebar {
        width: 100%;
        flex-basis: auto;
        margin-top: 20px;
    }

    .e2e-hero-search {
        margin-top: 20px;
    }
}

@media (max-width: 575.98px) {
    .e2e-home-hero-bg {
        height: 420px;
    }

    .e2e-home-sidebar {
        margin-top: 12px;
        padding: 16px;
    }

    .e2e-hero-search-divider {
        display: none !important;
    }
}