/* =========================================================
   Onda Mexicana
   Mexico Food Map
   ========================================================= */

:root {
    --om-map-paper: #f7efe2;
    --om-map-teal: #087b78;
    --om-map-teal-dark: #075d5b;
    --om-map-green: #075d45;
    --om-map-orange: #d84a24;
    --om-map-yellow: #f2a900;
    --om-map-text: #342820;
    --om-map-muted: #75675e;
    --om-map-border: rgba(82, 62, 46, 0.15);
    --om-map-width: 1400px;
}


/* PAGE */

.om-map-page {
    background: var(--om-map-paper);
    color: var(--om-map-text);
}

.om-map-container {
    width: min(
        var(--om-map-width),
        calc(100% - 48px)
    );
    margin-inline: auto;
}


/* =========================================================
   HERO
   ========================================================= */

.om-map-hero {
    position: relative;
    overflow: hidden;
    line-height: 0;
}

.om-map-hero-picture,
.om-map-hero-picture img {
    display: block;
    width: 100%;
}

.om-map-hero-picture img {
    height: auto;
    object-fit: cover;
}

.om-map-hero-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    pointer-events: none;
}

.om-map-hero-copy {
    width: min(
        var(--om-map-width),
        calc(100% - 48px)
    );
    margin-inline: auto;
    padding-left: 65px;
    color: #163f3c;
    line-height: 1.45;
}

.om-map-eyebrow {
    display: inline-block;
    margin-bottom: 10px;
    color: #0a7a78;
    font-size: 14px;
    font-weight: 900;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.om-map-hero h1 {
    margin: 0 0 12px;
    color: #075d45;
    font-size: clamp(42px, 4vw, 65px);
    line-height: 1.05;
    font-weight: 900;
    letter-spacing: -0.045em;
}

.om-map-hero p {
    margin: 0;
    max-width: 530px;
    color: #3d514c;
    font-size: clamp(16px, 1.45vw, 21px);
    line-height: 1.55;
    font-weight: 700;
}


/* =========================================================
   INTRO
   ========================================================= */

.om-map-intro {
    padding: 58px 0 30px;
    text-align: center;
}

.om-map-intro-label {
    display: inline-block;
    margin-bottom: 8px;
    color: var(--om-map-teal);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.14em;
}

.om-map-intro h2 {
    margin: 0 0 14px;
    font-size: clamp(27px, 2.7vw, 40px);
    line-height: 1.2;
    letter-spacing: -0.04em;
}

.om-map-intro p {
    max-width: 720px;
    margin: 0 auto;
    color: var(--om-map-muted);
    font-size: 16px;
    line-height: 1.8;
}


/* =========================================================
   FILTER
   ========================================================= */

.om-map-filter-section {
    padding: 16px 0 42px;
}

.om-map-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 9px;
}

.om-map-filter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 9px 18px;
    border: 1px solid var(--om-map-border);
    border-radius: 999px;
    background: rgba(255,255,255,0.62);
    color: var(--om-map-text);
    text-decoration: none;
    font-size: 14px;
    font-weight: 800;
    transition:
        transform .18s ease,
        background .18s ease,
        color .18s ease;
}

.om-map-filter:hover {
    transform: translateY(-2px);
}

.om-map-filter.is-active {
    background: var(--om-map-teal);
    color: #fff;
    border-color: var(--om-map-teal);
}


/* =========================================================
   CARDS
   ========================================================= */

.om-map-content {
    padding: 0 0 80px;
}

.om-map-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.om-map-card {
    overflow: hidden;
    background: rgba(255,255,255,0.8);
    border: 1px solid var(--om-map-border);
    border-radius: 22px;
    box-shadow: 0 10px 30px rgba(46,35,25,0.055);
}

.om-map-card-image {
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: #ddd2c5;
}

.om-map-card-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform .35s ease;
}

.om-map-card:hover .om-map-card-image img {
    transform: scale(1.035);
}

.om-map-card-placeholder {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    color: rgba(0,0,0,0.28);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .15em;
}

.om-map-card-body {
    padding: 22px 22px 24px;
}

.om-map-card-meta {
    min-height: 21px;
    margin-bottom: 7px;
}

.om-map-card-meta span {
    color: var(--om-map-teal);
    font-size: 12px;
    font-weight: 900;
}

.om-map-card h3 {
    margin: 0 0 10px;
    font-size: 21px;
    line-height: 1.35;
    letter-spacing: -0.035em;
}

.om-map-card h3 a {
    color: inherit;
    text-decoration: none;
}

.om-map-card p {
    margin: 0 0 18px;
    color: var(--om-map-muted);
    font-size: 14px;
    line-height: 1.75;
}

.om-map-card-link {
    color: var(--om-map-teal-dark);
    text-decoration: none;
    font-size: 14px;
    font-weight: 900;
}


/* =========================================================
   EMPTY
   ========================================================= */

.om-map-empty {
    padding: 70px 24px;
    text-align: center;
    border: 1px dashed rgba(7, 122, 120, .35);
    border-radius: 20px;
    background: rgba(255,255,255,.38);
}

.om-map-empty strong {
    display: block;
    margin-bottom: 8px;
    font-size: 22px;
}

.om-map-empty p {
    margin: 0;
    color: var(--om-map-muted);
}


/* =========================================================
   PAGINATION
   ========================================================= */

.om-map-pagination {
    display: flex;
    justify-content: center;
    gap: 7px;
    margin-top: 45px;
}

.om-map-pagination .page-numbers {
    min-width: 38px;
    height: 38px;
    padding: 0 11px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(255,255,255,.7);
    color: var(--om-map-text);
    text-decoration: none;
    font-size: 13px;
    font-weight: 800;
}

.om-map-pagination .current {
    background: var(--om-map-teal);
    color: #fff;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1000px) {

    .om-map-hero-copy {
        padding-left: 20px;
    }

    .om-map-grid {
        grid-template-columns: repeat(2, minmax(0,1fr));
    }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 680px) {

    .om-map-container {
        width: min(
            100% - 28px,
            var(--om-map-width)
        );
    }

    .om-map-hero-copy {
        width: calc(100% - 36px);
        padding: 38px 0 0;
        align-self: flex-start;
    }

    .om-map-hero h1 {
        font-size: 32px;
    }

    .om-map-hero p {
        max-width: 72%;
        font-size: 14px;
        line-height: 1.55;
    }

    .om-map-eyebrow {
        font-size: 10px;
    }

    .om-map-intro {
        padding: 42px 0 22px;
    }

    .om-map-intro h2 {
        font-size: 27px;
    }

    .om-map-intro p {
        font-size: 14px;
        line-height: 1.7;
    }

    .om-map-filters {
        justify-content: flex-start;
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 6px;
        scrollbar-width: none;
    }

    .om-map-filters::-webkit-scrollbar {
        display: none;
    }

    .om-map-filter {
        flex: 0 0 auto;
    }

    .om-map-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

}

.om-map-intro-title {
    color: #2f2722;
}

.om-map-intro-title span {
    color: #0a7a78;
}