:root {
    --ep-home-red: #9f2d1f;
    --ep-home-red-dark: #7d2118;
    --ep-home-ink: #261f1b;
    --ep-home-muted: #74665f;
    --ep-home-line: #e3d8d2;
    --ep-home-paper: #fffdfb;
    --ep-home-canvas: #f3efeb;
}

body {
    background:
        radial-gradient(circle at 9% 5%, rgba(159, 45, 31, .05), transparent 28rem),
        var(--ep-home-canvas);
}

.ep-homepage {
    box-sizing: border-box;
    width: min(960px, calc(100% - 32px));
    margin: 20px auto 56px;
    color: var(--ep-home-ink);
    font-family: Calibri, Helvetica, Arial, sans-serif;
}

.ep-home-intro {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
    margin-bottom: 12px;
}

.ep-home-intro__eyebrow,
.ep-home-section__eyebrow {
    margin: 0 0 7px;
    color: var(--ep-home-red);
    font-size: .76rem;
    font-weight: 800;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.ep-home-intro__eyebrow {
    margin-bottom: 0;
}

.ep-home-intro__actions {
    display: grid;
    justify-items: end;
}

.ep-home-intro__cta,
.ep-home-map__cta,
.ep-home-card__share {
    box-sizing: border-box;
    border: 0;
    border-radius: 7px;
    background: var(--ep-home-red);
    color: #fff;
    font: 800 .88rem Calibri, Helvetica, Arial, sans-serif;
    text-decoration: none;
    cursor: pointer;
}

.ep-home-intro__cta {
    min-height: 46px;
    padding: 14px 18px;
}

.ep-home-intro__cta:hover,
.ep-home-intro__cta:focus-visible,
.ep-home-map__cta:hover,
.ep-home-map__cta:focus-visible,
.ep-home-card__share:hover,
.ep-home-card__share:focus-visible {
    background: var(--ep-home-red-dark);
    color: #fff;
    text-decoration: none;
    outline: 3px solid rgba(159, 45, 31, .17);
    outline-offset: 2px;
}


.ep-home-discovery {
    overflow: hidden;
    border: 1px solid rgba(100, 76, 65, .2);
    border-radius: 17px;
    background: var(--ep-home-paper);
    box-shadow: 0 20px 54px rgba(55, 34, 25, .1);
}

.ep-home-section__heading {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: end;
    padding: 21px 22px 17px;
}

.ep-home-section__heading h2,
.ep-home-section__heading p {
    margin: 0;
}

.ep-home-section__heading h2 {
    font-size: 1.45rem;
    letter-spacing: -.02em;
}

.ep-home-section__description {
    max-width: 580px;
    margin-top: 5px !important;
    color: var(--ep-home-muted);
    font-size: .87rem;
    line-height: 1.4;
}

.ep-home-section__count {
    flex: 0 0 auto;
    color: var(--ep-home-red);
    font-size: .76rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.ep-home-map-shell {
    position: relative;
    min-height: 370px;
    border-top: 1px solid var(--ep-home-line);
    border-bottom: 1px solid var(--ep-home-line);
    background: #ddd8d4;
}

.ep-home-map {
    width: 100%;
    height: 370px;
}

.ep-home-map__placeholder {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: grid;
    place-items: center;
    background: #e9e4df;
    color: #685b54;
    font-weight: 700;
}

.ep-home-map__placeholder[hidden] {
    display: none;
}

.ep-home-map__cta {
    position: absolute;
    z-index: 500;
    top: 15px;
    right: 15px;
    min-height: 42px;
    padding: 12px 15px;
    box-shadow: 0 8px 22px rgba(65, 34, 24, .24);
}

.ep-home-map-pin {
    position: relative;
    width: 86px;
    height: 56px;
    box-sizing: border-box;
    border: 3px solid #fff;
    border-radius: 9px;
    background-color: #fff;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    box-shadow: 0 4px 12px rgba(41, 28, 22, .38);
}

.ep-home-map-pin::after {
    position: absolute;
    bottom: -9px;
    left: 33px;
    width: 13px;
    height: 13px;
    border-right: 3px solid #fff;
    border-bottom: 3px solid #fff;
    background: #fff;
    content: "";
    transform: rotate(45deg);
}

.ep-home-map-pin span {
    position: absolute;
    z-index: 2;
    top: -8px;
    left: -8px;
    display: grid;
    place-items: center;
    width: 23px;
    height: 23px;
    border: 2px solid #fff;
    border-radius: 50%;
    background: var(--ep-home-red);
    color: #fff;
    font: 800 11px/1 Calibri, Arial, sans-serif;
    box-shadow: 0 2px 6px rgba(45, 27, 20, .3);
}

.ep-home-map-pin.is-active {
    border-color: #f5bc47;
    box-shadow: 0 7px 20px rgba(41, 28, 22, .48);
    transform: scale(1.06);
}

.ep-home-map .leaflet-popup-content {
    margin: 12px 14px;
    min-width: 170px;
    font-family: Calibri, Helvetica, Arial, sans-serif;
}

.ep-home-popup strong,
.ep-home-popup span {
    display: block;
}

.ep-home-popup strong {
    color: var(--ep-home-ink);
    font-size: .94rem;
}

.ep-home-popup span {
    margin-top: 2px;
    color: var(--ep-home-muted);
    font-size: .78rem;
}

.ep-home-popup a {
    display: inline-block;
    margin-top: 8px;
    color: var(--ep-home-red);
    font-size: .78rem;
    font-weight: 800;
}

.ep-home-map-note {
    margin: 0;
    padding: 8px 22px;
    border-bottom: 1px solid var(--ep-home-line);
    color: #8a7c75;
    font-size: .7rem;
    line-height: 1.4;
}

.ep-home-dishes {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    background: var(--ep-home-line);
}

.ep-home-card {
    min-width: 0;
    background: #fff;
    transition: background .15s ease, box-shadow .15s ease;
}

.ep-home-card.is-active,
.ep-home-card:focus-within {
    position: relative;
    z-index: 1;
    background: #fff9f5;
    box-shadow: inset 0 0 0 2px #e7a88d;
}

.ep-home-card__photo {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background: #e8e0db;
}

.ep-home-card__photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .22s ease;
}

.ep-home-card:hover .ep-home-card__photo img {
    transform: scale(1.025);
}

.ep-home-card__rank {
    position: absolute;
    top: 10px;
    left: 10px;
    display: grid;
    place-items: center;
    width: 29px;
    height: 29px;
    border: 2px solid #fff;
    border-radius: 50%;
    background: var(--ep-home-red);
    color: #fff;
    font-size: .76rem;
    font-weight: 800;
    box-shadow: 0 2px 8px rgba(44, 25, 18, .3);
}

.ep-home-card__body {
    padding: 13px 14px 14px;
}

.ep-home-card__title {
    display: block;
    overflow: hidden;
    color: var(--ep-home-ink);
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.2;
    text-decoration: none;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ep-home-card__title:hover,
.ep-home-card__title:focus-visible {
    color: var(--ep-home-red);
}

.ep-home-card__restaurant {
    display: block;
    overflow: hidden;
    margin-top: 3px;
    color: var(--ep-home-muted);
    font-size: .81rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ep-home-card__meta {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    margin-top: 9px;
    color: #76675f;
    font-size: .75rem;
}

.ep-home-card__rating {
    color: #b86c10;
    font-weight: 800;
}

.ep-home-card__actions {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: center;
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid #eee5e0;
}

.ep-home-card__view {
    color: #6a5c55;
    font-size: .76rem;
    font-weight: 800;
    text-decoration: none;
}

.ep-home-card__share {
    min-height: 32px;
    padding: 8px 10px;
    font-size: .72rem;
}

.ep-home-card__share--join {
    border: 1px solid #d5c4bc;
    background: transparent;
    color: var(--ep-home-red);
}

.ep-home-empty {
    grid-column: 1 / -1;
    margin: 0;
    background: #fff;
    padding: 35px;
    color: var(--ep-home-muted);
    text-align: center;
}

@media (max-width: 760px) {

    .ep-home-map-shell,
    .ep-home-map {
        min-height: 320px;
        height: 320px;
    }

.ep-home-map-pin__count {
    position: absolute;
    z-index: 4;
    right: -9px;
    bottom: -8px;
    display: grid;
    place-items: center;
    min-width: 21px;
    height: 21px;
    box-sizing: border-box;
    border: 2px solid #fff;
    border-radius: 11px;
    background: #2f2925;
    padding: 0 5px;
    color: #fff;
    font: normal 800 10px/1 Calibri, Arial, sans-serif;
    box-shadow: 0 2px 6px rgba(45, 27, 20, .3);
}

.ep-home-popup {
    min-width: 0;
}

.ep-home-popup__heading {
    padding-bottom: 9px;
    border-bottom: 1px solid #e7ddd7;
}

.ep-home-popup__heading strong,
.ep-home-popup__heading span {
    display: block;
}

.ep-home-popup__heading strong {
    color: var(--ep-home-ink);
    font-size: 1rem;
}

.ep-home-popup__heading span {
    margin-top: 3px;
    color: var(--ep-home-muted);
    font-size: .74rem;
}

.ep-home-popup__dishes {
    display: grid;
    gap: 1px;
    max-height: 250px;
    overflow-y: auto;
    margin-top: 7px;
}

.ep-home-popup__dishes a {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 9px;
    align-items: center;
    margin: 0;
    border-radius: 5px;
    padding: 5px;
    color: inherit;
    text-decoration: none;
}

.ep-home-popup__dishes a:hover,
.ep-home-popup__dishes a:focus-visible {
    background: #fff2eb;
    outline: none;
}

.ep-home-popup__dishes img {
    width: 48px;
    height: 48px;
    border-radius: 4px;
    object-fit: cover;
}

.ep-home-popup__dishes b,
.ep-home-popup__dishes small {
    display: block;
}

.ep-home-popup__dishes b {
    color: var(--ep-home-ink);
    font-size: .82rem;
    line-height: 1.15;
}

.ep-home-popup__dishes small {
    margin-top: 3px;
    color: var(--ep-home-muted);
    font-size: .68rem;
}

    .ep-home-dishes {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 520px) {
    .ep-homepage {
        width: 100%;
        margin: 20px auto 40px;
    }

    .ep-home-intro {
        padding: 0 16px;
    }


    .ep-home-discovery {
        border-right: 0;
        border-left: 0;
        border-radius: 0;
    }

    .ep-home-section__heading {
        display: block;
        padding: 18px 16px 15px;
    }

    .ep-home-section__count {
        display: block;
        margin-top: 8px;
    }

    .ep-home-map-shell,
    .ep-home-map {
        min-height: 285px;
        height: 285px;
    }

    .ep-home-map__cta {
        top: 12px;
        right: 12px;
    }

    .ep-home-map-note {
        padding-right: 16px;
        padding-left: 16px;
    }

    .ep-home-dishes {
        grid-template-columns: 1fr;
    }

    .ep-home-card {
        display: grid;
        grid-template-columns: 42% minmax(0, 1fr);
    }

    .ep-home-card__photo {
        height: 100%;
        min-height: 180px;
        aspect-ratio: auto;
    }

    .ep-home-card__actions {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ep-homepage *,
    .ep-homepage *::before,
    .ep-homepage *::after {
        transition: none !important;
    }
}
