:root {
    --places-header-height:
        var(
            --lim-public-header-height,
            72px
        );

    --places-ink: #17241d;
    --places-muted: #66736b;
    --places-green: #1e6a47;
    --places-green-dark: #174f37;
    --places-orange: #d96b3f;
    --places-paper: #f4f3ed;
    --places-border: #dfe5e0;
    --places-shadow:
        0 1rem 3rem rgba(24, 45, 34, .09);
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
}

body {
    overflow: hidden;
    background: var(--places-paper);
    color: var(--places-ink);
}

.places-discovery {
    display: grid;
    grid-template-columns:
        minmax(390px, 44%)
        minmax(0, 56%);
    height:
        calc(
            100vh
            - var(--places-header-height)
        );
    height:
        calc(
            100dvh
            - var(--places-header-height)
        );
}

.places-sidebar {
    min-width: 0;
    overflow-y: auto;
    background: var(--places-paper);
    border-right:
        1px solid var(--places-border);
}

.places-intro {
    padding:
        clamp(1.5rem, 3vw, 2.5rem)
        clamp(1.1rem, 3vw, 2.5rem)
        1rem;
}

.places-eyebrow,
.places-results-label {
    display: block;
    color: var(--places-green);
    font-size: .69rem;
    font-weight: 900;
    letter-spacing: .15em;
    text-transform: uppercase;
}

.places-intro h1 {
    max-width: 720px;
    margin: .65rem 0 0;
    font-family:
        Georgia,
        "Times New Roman",
        serif;
    font-size:
        clamp(2.1rem, 4.2vw, 4.2rem);
    font-weight: 500;
    line-height: .98;
    letter-spacing: -.055em;
}

.places-intro p {
    max-width: 620px;
    margin: .9rem 0 0;
    color: var(--places-muted);
    font-size: .94rem;
    line-height: 1.6;
}

.places-search-area {
    display: grid;
    grid-template-columns:
        minmax(0, 1fr)
        auto;
    gap: .6rem;
    padding:
        0
        clamp(1.1rem, 3vw, 2.5rem);
}

.places-search-box {
    position: relative;
}

.places-search-box > i {
    position: absolute;
    top: 50%;
    left: 1rem;
    z-index: 2;
    transform: translateY(-50%);
    color: #728078;
    font-size: 1rem;
}

.places-search-box input {
    width: 100%;
    min-height: 3.35rem;
    padding:
        .8rem
        3rem
        .8rem
        2.8rem;
    border: 1px solid #cbd6cf;
    border-radius: .9rem;
    outline: none;
    background: #fff;
    color: var(--places-ink);
    font-size: .92rem;
    box-shadow:
        0 .4rem 1.4rem
        rgba(24, 45, 34, .05);
}

.places-search-box input:focus {
    border-color: #6d9b82;
    box-shadow:
        0 0 0 .2rem
        rgba(30, 106, 71, .12);
}

#clear-search {
    position: absolute;
    top: 50%;
    right: .8rem;
    width: 2rem;
    height: 2rem;
    transform: translateY(-50%);
    border: 0;
    border-radius: 50%;
    background: #eef2ef;
    color: #57675e;
    cursor: pointer;
}

.mobile-map-button {
    display: none;
    min-height: 3.35rem;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    padding: .7rem 1rem;
    border: 0;
    border-radius: .9rem;
    background: var(--places-green);
    color: #fff;
    font-weight: 850;
}

.discovery-shortcuts {
    display: flex;
    gap: .55rem;
    overflow-x: auto;
    padding:
        1rem
        clamp(1.1rem, 3vw, 2.5rem)
        .4rem;
    scrollbar-width: none;
}

.discovery-shortcuts::-webkit-scrollbar {
    display: none;
}

.discovery-shortcuts button {
    display: inline-flex;
    flex: 0 0 auto;
    min-height: 2.65rem;
    align-items: center;
    gap: .45rem;
    padding: .6rem .85rem;
    border: 1px solid #d3ddd6;
    border-radius: 999px;
    background: rgba(255, 255, 255, .65);
    color: #45564c;
    cursor: pointer;
    font-size: .76rem;
    font-weight: 850;
    white-space: nowrap;
}

.discovery-shortcuts button:hover,
.discovery-shortcuts button.active {
    border-color: var(--places-green);
    background: var(--places-green);
    color: #fff;
}

.primary-filters {
    display: grid;
    grid-template-columns:
        repeat(2, minmax(0, 1fr));
    gap: .7rem;
    padding:
        .9rem
        clamp(1.1rem, 3vw, 2.5rem)
        0;
}

.primary-filters label,
.more-filters label {
    display: grid;
    gap: .35rem;
}

.primary-filters label > span,
.more-filters label > span {
    color: #536259;
    font-size: .69rem;
    font-weight: 850;
    letter-spacing: .035em;
}

.primary-filters select,
.primary-filters input,
.more-filters select {
    width: 100%;
    min-height: 2.9rem;
    padding: .65rem 2.2rem .65rem .8rem;
    border: 1px solid #d2dcd5;
    border-radius: .7rem;
    outline: none;
    background: #fff;
    color: var(--places-ink);
    font-size: .79rem;
}

.primary-filters select:focus,
.primary-filters input:focus,
.more-filters select:focus {
    border-color: #74a087;
}

.location-filter-box {
    position: relative;
}

.location-filter-box > i {
    position: absolute;
    top: 50%;
    left: .8rem;
    z-index: 2;
    transform: translateY(-50%);
    color: #718078;
    pointer-events: none;
}

.location-filter-box input {
    padding-left: 2.25rem;
}

.more-filters-toggle {
    display: flex;
    width:
        calc(
            100%
            - 2 * clamp(
                1.1rem,
                3vw,
                2.5rem
            )
        );
    min-height: 2.7rem;
    align-items: center;
    justify-content: space-between;
    margin:
        .7rem
        clamp(1.1rem, 3vw, 2.5rem)
        0;
    padding: .55rem .8rem;
    border: 0;
    border-radius: .65rem;
    background: transparent;
    color: var(--places-green-dark);
    cursor: pointer;
    font-size: .75rem;
    font-weight: 850;
}

.more-filters-toggle span {
    display: flex;
    align-items: center;
    gap: .45rem;
}

.more-filters-toggle > i {
    transition: transform .2s ease;
}

.more-filters-toggle.open > i {
    transform: rotate(180deg);
}

.more-filters {
    display: grid;
    grid-template-columns:
        repeat(3, minmax(0, 1fr));
    gap: .65rem;
    padding:
        .5rem
        clamp(1.1rem, 3vw, 2.5rem)
        .2rem;
}

.more-filters[hidden] {
    display: none;
}

.places-results-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-top: .7rem;
    padding:
        1rem
        clamp(1.1rem, 3vw, 2.5rem)
        .85rem;
    border-top:
        1px solid
        rgba(32, 66, 48, .09);
}

.places-results-heading > div {
    display: grid;
    gap: .35rem;
}

#result-message {
    font-family:
        Georgia,
        "Times New Roman",
        serif;
    font-size: 1.06rem;
    font-weight: 600;
}

#reset-filters {
    border: 0;
    background: transparent;
    color: var(--places-green);
    cursor: pointer;
    font-size: .73rem;
    font-weight: 850;
}

.place-list {
    display: grid;
    gap: .8rem;
    padding:
        0
        clamp(1.1rem, 3vw, 2.5rem)
        1rem;
}

.place-discovery-card {
    display: grid;
    grid-template-columns:
        minmax(145px, 35%)
        minmax(0, 1fr);
    min-height: 205px;
    overflow: hidden;
    border: 1px solid var(--places-border);
    border-radius: 1rem;
    background: #fff;
    cursor: pointer;
    box-shadow:
        0 .45rem 1.3rem
        rgba(25, 50, 37, .04);
    transition:
        transform .2s ease,
        box-shadow .2s ease,
        border-color .2s ease;
}

.place-discovery-card:hover,
.place-discovery-card.active {
    transform: translateY(-2px);
    border-color: #8caf9b;
    box-shadow: var(--places-shadow);
}

.place-card-photo {
    position: relative;
    min-height: 100%;
    overflow: hidden;
    background: #dfe7e1;
}

.place-card-photo img,
.place-card-photo-fallback {
    width: 100%;
    height: 100%;
    min-height: 205px;
}

.place-card-photo img {
    display: block;
    object-fit: cover;
    transition: transform .45s ease;
}

.place-discovery-card:hover
.place-card-photo img {
    transform: scale(1.035);
}

.place-card-photo-fallback {
    display: grid;
    place-items: center;
    color: #83958a;
    font-size: 1.8rem;
}

.place-card-category {
    position: absolute;
    left: .7rem;
    bottom: .7rem;
    max-width:
        calc(100% - 1.4rem);
    padding: .38rem .58rem;
    overflow: hidden;
    border-radius: 999px;
    background:
        rgba(19, 47, 32, .83);
    color: #fff;
    font-size: .61rem;
    font-weight: 850;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.place-card-save {
    position: absolute;
    top: .65rem;
    right: .65rem;
    display: grid;
    width: 2.15rem;
    height: 2.15rem;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background:
        rgba(255, 255, 255, .93);
    color: var(--places-green);
    cursor: pointer;
    box-shadow:
        0 .3rem .9rem
        rgba(0, 0, 0, .13);
}

.place-card-save.is-saved {
    background: var(--places-green);
    color: #fff;
}

.place-card-content {
    display: flex;
    min-width: 0;
    flex-direction: column;
    padding: 1.05rem 1.1rem;
}

.place-card-location {
    display: flex;
    align-items: center;
    gap: .3rem;
    overflow: hidden;
    color: #758078;
    font-size: .67rem;
    font-weight: 750;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.place-card-title-row {
    display: flex;
    gap: .7rem;
    align-items: flex-start;
    justify-content: space-between;
    margin-top: .45rem;
}

.place-card-title-row h2 {
    min-width: 0;
    margin: 0;
    font-family:
        Georgia,
        "Times New Roman",
        serif;
    font-size:
        clamp(1.2rem, 2vw, 1.65rem);
    font-weight: 600;
    line-height: 1.08;
    letter-spacing: -.03em;
}

.place-card-rating {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: .25rem;
    color: #8b6319;
    font-size: .72rem;
    font-weight: 900;
}

.place-card-rating i {
    color: #d9a637;
}

.place-card-review-signal {
    margin-top: .4rem;
    color: #78837c;
    font-size: .66rem;
}

.place-card-chips {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem;
    margin-top: .7rem;
}

.place-card-chips span {
    padding: .3rem .48rem;
    border-radius: 999px;
    background: #f0f4f1;
    color: #526158;
    font-size: .59rem;
    font-weight: 750;
}

.place-card-actions {
    display: flex;
    align-items: center;
    gap: .45rem;
    margin-top: auto;
    padding-top: .9rem;
}

.place-card-primary-action {
    display: inline-flex;
    min-height: 2.45rem;
    flex: 1;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    border-radius: .6rem;
    background: var(--places-green);
    color: #fff;
    text-decoration: none;
    font-size: .7rem;
    font-weight: 850;
}

.place-card-primary-action:hover {
    background: var(--places-green-dark);
    color: #fff;
}

.place-card-icon-action {
    display: inline-flex;
    width: 2.45rem;
    height: 2.45rem;
    align-items: center;
    justify-content: center;
    border: 1px solid #d6dfd9;
    border-radius: .6rem;
    background: #fff;
    color: var(--places-green);
    text-decoration: none;
}

.place-card-icon-action:hover {
    border-color: #8cac99;
    background: #f3f7f4;
    color: var(--places-green-dark);
}

.places-loading,
.places-empty {
    display: grid;
    min-height: 280px;
    place-content: center;
    justify-items: center;
    padding: 2rem;
    text-align: center;
}

.places-loading strong,
.places-empty strong {
    margin-top: .8rem;
    font-family:
        Georgia,
        "Times New Roman",
        serif;
    font-size: 1.15rem;
}

.places-empty > i {
    color: #7d9185;
    font-size: 2rem;
}

.places-empty span {
    max-width: 330px;
    margin-top: .45rem;
    color: var(--places-muted);
    font-size: .78rem;
    line-height: 1.55;
}

.places-empty button {
    margin-top: .9rem;
    padding: .55rem .8rem;
    border: 0;
    border-radius: .55rem;
    background: var(--places-green);
    color: #fff;
    cursor: pointer;
    font-size: .7rem;
    font-weight: 850;
}

.places-loading-spinner,
.places-button-spinner {
    display: inline-block;
    border-radius: 50%;
    border:
        3px solid
        rgba(30, 106, 71, .18);
    border-top-color:
        var(--places-green);
    animation:
        places-spin .75s linear infinite;
}

.places-loading-spinner {
    width: 2rem;
    height: 2rem;
}

.places-button-spinner {
    width: 1rem;
    height: 1rem;
}

@keyframes places-spin {
    to {
        transform: rotate(360deg);
    }
}

.load-more-area {
    padding:
        .2rem
        clamp(1.1rem, 3vw, 2.5rem)
        1.5rem;
}

.load-more-area[hidden] {
    display: none;
}

#load-more-button {
    display: inline-flex;
    width: 100%;
    min-height: 3rem;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    border: 1px solid #b9cabe;
    border-radius: .75rem;
    background: #fff;
    color: var(--places-green);
    cursor: pointer;
    font-size: .75rem;
    font-weight: 900;
}

#load-more-button:hover {
    border-color: var(--places-green);
    background: #eff5f1;
}

.places-map-panel {
    position: relative;
    min-width: 0;
    overflow: hidden;
    background: #d8e5dc;
}

#google-map {
    position: absolute;
    inset: 0;
}

.map-floating-title {
    position: absolute;
    top: 1rem;
    left: 1rem;
    z-index: 4;
    display: grid;
    gap: .15rem;
    padding: .7rem .9rem;
    border: 1px solid
        rgba(20, 48, 33, .1);
    border-radius: .75rem;
    background:
        rgba(255, 255, 255, .94);
    box-shadow:
        0 .5rem 1.5rem
        rgba(21, 46, 32, .12);
    pointer-events: none;
}

.map-floating-title span {
    color: var(--places-ink);
    font-family:
        Georgia,
        "Times New Roman",
        serif;
    font-size: .95rem;
    font-weight: 650;
}

.map-floating-title small {
    color: var(--places-muted);
    font-size: .62rem;
}

#mobile-list-toggle {
    display: none;
}

.map-error {
    position: absolute;
    right: 1rem;
    bottom: 1rem;
    z-index: 6;
    max-width: 320px;
    padding: .75rem .9rem;
    border-radius: .7rem;
    background: #a53d31;
    color: #fff;
    font-size: .75rem;
    font-weight: 750;
}

.places-map-popup {
    display: grid;
    grid-template-columns:
        86px
        minmax(150px, 1fr);
    gap: .75rem;
    width: min(300px, 75vw);
}

.places-map-popup > img {
    width: 86px;
    height: 92px;
    border-radius: .55rem;
    object-fit: cover;
}

.places-map-popup > div {
    display: grid;
    align-content: center;
}

.places-map-popup span {
    color: var(--places-green);
    font-size: .55rem;
    font-weight: 850;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.places-map-popup strong {
    margin-top: .2rem;
    color: var(--places-ink);
    font-family:
        Georgia,
        "Times New Roman",
        serif;
    font-size: 1rem;
    line-height: 1.1;
}

.places-map-popup small {
    margin-top: .25rem;
    color: var(--places-muted);
    font-size: .65rem;
}

.places-map-popup a {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    margin-top: .6rem;
    color: var(--places-green);
    text-decoration: none;
    font-size: .67rem;
    font-weight: 850;
}

@media (max-width: 1100px) {
    .places-discovery {
        grid-template-columns:
            minmax(370px, 48%)
            minmax(0, 52%);
    }

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

@media (max-width: 820px) {
    body {
        overflow: auto;
    }

    .places-discovery {
        display: block;
        height:
            calc(
                100vh
                - var(--places-header-height)
            );
        height:
            calc(
                100dvh
                - var(--places-header-height)
            );
    }

    .places-sidebar,
    .places-map-panel {
        position: absolute;
        top: var(--places-header-height);
        right: 0;
        bottom: 0;
        left: 0;
    }

    .places-sidebar {
        z-index: 3;
        border-right: 0;
    }

    .places-map-panel {
        z-index: 2;
    }

    body.places-map-visible
    .places-map-panel {
        z-index: 5;
    }

    body.places-map-visible
    .places-sidebar {
        visibility: hidden;
    }

    .mobile-map-button,
    #mobile-list-toggle {
        display: inline-flex;
    }

    #mobile-list-toggle {
        position: absolute;
        right: 1rem;
        bottom: 1rem;
        z-index: 8;
        min-height: 3rem;
        align-items: center;
        justify-content: center;
        gap: .45rem;
        padding: .65rem 1rem;
        border: 0;
        border-radius: 999px;
        background: var(--places-green);
        color: #fff;
        box-shadow:
            0 .6rem 1.8rem
            rgba(20, 50, 34, .22);
        font-size: .76rem;
        font-weight: 850;
    }

    .map-floating-title {
        top: 1rem;
        right: 1rem;
        left: 1rem;
    }
}

@media (max-width: 560px) {
    .places-intro {
        padding-top: 1.25rem;
    }

    .places-intro h1 {
        font-size: 2.35rem;
    }

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

    .place-discovery-card {
        grid-template-columns:
            125px
            minmax(0, 1fr);
        min-height: 165px;
    }

    .place-card-photo img,
    .place-card-photo-fallback {
        min-height: 165px;
    }

    .place-card-content {
        padding: .85rem;
    }

    .place-card-title-row h2 {
        font-size: 1.18rem;
    }

    .place-card-chips {
        display: none;
    }

    .place-card-actions {
        padding-top: .65rem;
    }

    .place-card-primary-action {
        font-size: .65rem;
    }
}

@media (max-width: 390px) {
    .place-discovery-card {
        grid-template-columns: 1fr;
    }

    .place-card-photo {
        min-height: 180px;
    }

    .place-card-photo img,
    .place-card-photo-fallback {
        min-height: 180px;
    }
}
