* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --navy: #12233F;
    --orange: #F0641E;
    --orange-dark: #C94F14;
    --mustard: #F4B400;
    --cream: #FBF5E9;
    --white: #FFFFFF;
    --charcoal: #211C1A;
    --gray: #625B55;
    --border: #E4D9C4;
    --green: #23804B;
    --red: #B83A2B;
}

body {
    font-family: "Inter", sans-serif;
    background: var(--cream);
    color: var(--charcoal);
}

button,
input,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

a {
    text-decoration: none;
    color: inherit;
}

.content-width {
    width: min(1120px, calc(100% - 40px));
    margin: auto;
}


/* HEADER */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;

    background: rgba(255,255,255,0.97);

    border-bottom: 1px solid var(--border);

    backdrop-filter: blur(12px);
}

.nav-container {
    width: min(1180px, calc(100% - 40px));

    min-height: 76px;

    margin: auto;

    display: grid;
    grid-template-columns: 1fr auto 1fr;

    align-items: center;

    gap: 30px;
}

.brand {
    display: inline-flex;
    align-items: center;

    gap: 10px;

    color: var(--navy);

    font-size: 15px;
    font-weight: 800;

    line-height: 1.05;
}

.brand strong {
    display: block;
}

.brand-icon {
    width: 40px;
    height: 40px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: var(--orange);

    border-radius: 12px;
}

.main-nav {
    display: flex;
    justify-content: center;
    gap: 34px;
}

.main-nav a {
    padding: 27px 0;

    position: relative;

    color: var(--gray);

    font-size: 14px;
    font-weight: 700;
}

.main-nav a.active,
.main-nav a:hover {
    color: var(--navy);
}

.main-nav a.active::after {
    content: "";

    position: absolute;

    bottom: 17px;
    left: 0;
    right: 0;

    height: 3px;

    background: var(--orange);

    border-radius: 10px;
}

.nav-actions {
    display: flex;
    justify-content: flex-end;
}

.nav-home-button {
    padding: 10px 17px;

    border: 1px solid var(--border);

    background: var(--white);

    border-radius: 999px;

    color: var(--navy);

    font-weight: 800;
}


/* HERO */

.explore-hero {
    padding: 80px 0;

    background: var(--navy);

    color: var(--white);
}

.explore-hero .mini-label {
    color: var(--mustard);
}

.explore-hero h1 {
    margin: 12px 0;

    font-family: "Archivo Black", sans-serif;

    font-size: clamp(40px, 6vw, 65px);

    line-height: 1;
}

.explore-hero p {
    max-width: 600px;

    color: rgba(255,255,255,0.8);

    font-size: 17px;
}


/* MAIN */

.explore-section {
    padding: 45px 0 80px;
}


/* FILTERS */

.filters {
    display: grid;

    grid-template-columns: 2fr 1fr 1fr auto;

    gap: 10px;

    margin-bottom: 25px;
}

.filters input,
.filters select {
    min-height: 48px;

    padding: 0 14px;

    border: 1px solid var(--border);

    background: var(--white);

    border-radius: 12px;

    outline: none;
}

.filters input:focus,
.filters select:focus {
    border-color: var(--orange);
}

.open-filter {
    min-height: 48px;

    padding: 0 16px;

    display: flex;
    align-items: center;
    gap: 8px;

    background: var(--white);

    border: 1px solid var(--border);

    border-radius: 12px;

    color: var(--navy);

    font-size: 14px;
    font-weight: 700;
}


/* LAYOUT */

.explore-layout {
    display: grid;

    grid-template-columns: 1.1fr 0.9fr;

    gap: 25px;

    align-items: start;
}

.map-panel,
.vendors-panel {
    background: var(--white);

    border: 1px solid var(--border);

    border-radius: 20px;

    overflow: hidden;
}

.panel-heading {
    padding: 22px 24px;

    display: flex;
    justify-content: space-between;
    align-items: center;

    border-bottom: 1px solid var(--border);
}

.panel-heading h2 {
    margin-top: 3px;

    color: var(--navy);

    font-family: "Archivo Black", sans-serif;

    font-size: 25px;
}

.vendor-count {
    color: var(--gray);

    font-size: 13px;
    font-weight: 700;
}


/* MAP */

#map {
    height: 590px;
    width: 100%;
}


/* VENDORS */

.vendor-list {
    max-height: 590px;

    overflow-y: auto;

    padding: 15px;
}

.vendor-card {
    margin-bottom: 12px;

    overflow: hidden;

    border: 1px solid var(--border);

    background: var(--cream);

    border-radius: 16px;

    transition: 0.2s;
}

.vendor-card:hover {
    border-color: var(--orange);

    transform: translateY(-2px);
}

.vendor-card-top {
    height: 95px;

    position: relative;

    display: flex;
    align-items: center;
    justify-content: center;

    background: linear-gradient(
        135deg,
        #F0641E,
        #F4B400
    );
}

.vendor-emoji {
    font-size: 45px;
}

.explore-favorite-button {
    position: absolute;

    top: 12px;
    right: 12px;

    width: 38px;
    height: 38px;

    border: none;

    background: var(--white);

    color: var(--navy);

    border-radius: 50%;

    font-size: 20px;

    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.explore-favorite-button.is-favorite {
    background: var(--orange);
    color: var(--white);
}

.vendor-card-content {
    padding: 18px;
}

.vendor-title-row {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.vendor-title-row h3 {
    color: var(--navy);

    font-size: 18px;
}

.rating {
    white-space: nowrap;

    color: var(--navy);

    font-size: 13px;
    font-weight: 800;
}

.vendor-description {
    margin: 7px 0;

    color: var(--gray);

    font-size: 13px;
}

.vendor-info {
    display: flex;
    gap: 12px;

    margin: 10px 0;

    color: var(--gray);

    font-size: 12px;
    font-weight: 700;
}

.vendor-location {
    margin-bottom: 5px;

    color: var(--gray);

    font-size: 13px;
}

.open {
    color: var(--green);

    font-size: 12px;
    font-weight: 800;
}

.closed {
    color: var(--red);

    font-size: 12px;
    font-weight: 800;
}

.vendor-actions {
    margin-top: 15px;
}

.view-vendor,
.map-menu-button {
    border: none;

    padding: 10px 15px;

    background: var(--orange);

    color: var(--white);

    border-radius: 999px;

    font-size: 13px;
    font-weight: 800;
}

.view-vendor:hover,
.map-menu-button:hover {
    background: var(--orange-dark);
}

.no-results {
    padding: 50px 20px;

    text-align: center;
}

.no-results h3 {
    color: var(--navy);
}

.no-results p {
    margin-top: 5px;

    color: var(--gray);
}

.map-popup {
    min-width: 150px;

    color: var(--charcoal);

    line-height: 1.7;
}

.map-popup strong {
    color: var(--navy);
}


/* MOBILE */

@media (max-width: 900px) {

    .nav-container {
        grid-template-columns: 1fr auto;
    }

    .main-nav {
        display: none;
    }

    .explore-layout {
        grid-template-columns: 1fr;
    }

    .filters {
        grid-template-columns: 1fr 1fr;
    }

}


@media (max-width: 550px) {

    .content-width {
        width: calc(100% - 28px);
    }

    .filters {
        grid-template-columns: 1fr;
    }

    #map {
        height: 400px;
    }

    .vendor-list {
        max-height: none;
    }

}