.seller-showcase,
.nearby-map-section {
    min-width: 0;
    overflow: hidden;
    margin-top: 12px;
    padding: 7px;
}

.seller-head h2::before {
    background: var(--home-green);
    box-shadow: 0 0 0 4px rgba(36, 76, 53, 0.1);
}

.seller-track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: calc((100% - 7px) / 2);
    gap: 7px;
    overflow-x: auto;
    border-radius: 13px;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    touch-action: pan-x pan-y;
}

.seller-track::-webkit-scrollbar {
    display: none;
}

.seller-card {
    min-width: 0;
    height: 112px;
    display: grid;
    grid-template-columns: minmax(62px, 40%) minmax(0, 1fr);
    overflow: hidden;
    border: 1px solid rgba(37, 63, 45, 0.1);
    border-radius: 13px;
    color: var(--home-ink);
    background: #fff;
    scroll-snap-align: start;
    text-decoration: none;
    transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.seller-card:hover,
.seller-card:focus-visible {
    border-color: rgba(200, 97, 56, 0.34);
    box-shadow: 0 10px 24px rgba(51, 45, 35, 0.11);
    transform: translateY(-2px);
}

.seller-photo {
    position: relative;
    min-width: 0;
    overflow: hidden;
    background: var(--home-paper-2);
}

.seller-image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.seller-verified {
    position: absolute;
    top: 6px;
    left: 6px;
    width: 25px;
    height: 25px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border-radius: 50%;
    color: var(--home-green);
    background: rgba(255, 253, 248, 0.92);
    box-shadow: 0 5px 14px rgba(25, 42, 29, 0.12);
}

.seller-verified .ui-icon {
    width: 13px;
    height: 13px;
}

.seller-verified.is-pending {
    color: var(--home-muted);
    background: rgba(255, 253, 248, 0.94);
}

.seller-verified > span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
}

.seller-card-copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 8px;
}

.seller-specialty {
    overflow: hidden;
    color: var(--home-terra-dark);
    font-size: 0.55rem;
    font-weight: 900;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

.seller-card-copy > strong {
    overflow: hidden;
    margin: 5px 0 3px;
    color: var(--home-green-dark);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(0.74rem, 2.6vw, 0.95rem);
    line-height: 1.08;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.seller-location {
    display: flex;
    align-items: center;
    gap: 3px;
    overflow: hidden;
    color: var(--home-muted);
    font-size: 0.58rem;
    font-weight: 750;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.seller-location .ui-icon {
    width: 11px;
    height: 11px;
    flex: 0 0 11px;
}

.seller-cta {
    display: flex;
    align-items: center;
    gap: 4px;
    overflow: hidden;
    margin-top: 5px;
    padding-top: 5px;
    border-top: 1px solid rgba(37, 63, 45, 0.09);
    color: var(--home-green);
    font-size: 0.56rem;
    font-weight: 900;
}

.seller-cta > span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.seller-cta .ui-icon {
    width: 13px;
    height: 13px;
    flex: 0 0 13px;
    margin-left: auto;
}

.nearby-map-head {
    min-height: 58px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 5px 6px 9px;
}

.nearby-map-title-wrap {
    min-width: 0;
}

.nearby-map-kicker {
    display: block;
    color: var(--home-terra-dark);
    font-size: 0.62rem;
    font-weight: 900;
    text-transform: uppercase;
}

.nearby-map-head h2 {
    margin: 4px 0 0;
    color: var(--home-green-dark);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.1rem, 4vw, 1.55rem);
    line-height: 1;
}

.nearby-map-hint {
    margin: 0;
    color: var(--home-muted);
    font-size: 0.72rem;
}

.nearby-map-tools {
    max-width: min(52%, 320px);
    display: grid;
    justify-items: end;
    gap: 5px;
    text-align: right;
}

.nearby-map-layout {
    min-width: 0;
    display: grid;
    gap: 7px;
}

.nearby-map-frame {
    position: relative;
    z-index: 0;
    min-width: 0;
    min-height: 235px;
}

.nearby-map-canvas {
    position: relative;
    z-index: 0;
    min-width: 0;
    min-height: 235px;
    overflow: hidden;
    border: 1px solid rgba(37, 63, 45, 0.1);
    border-radius: 14px;
    background: #e7ebe3;
}

.nearby-map-fallback {
    position: absolute;
    inset: 0;
    z-index: 600;
    display: grid;
    place-content: center;
    justify-items: center;
    gap: 7px;
    padding: 24px;
    color: var(--home-muted);
    background: rgba(248, 245, 239, 0.94);
    text-align: center;
    backdrop-filter: blur(5px);
}

.nearby-map-fallback[hidden] {
    display: none;
}

.nearby-map-fallback strong {
    color: var(--home-green-dark);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1rem;
}

.nearby-map-fallback a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    margin-top: 4px;
    padding: 0 13px;
    border-radius: 8px;
    color: #fff;
    background: var(--home-green);
    font-weight: 850;
    text-decoration: none;
}

.nearby-map-canvas.leaflet-container {
    color: var(--home-green-dark);
    font-family: inherit;
}

.nearby-map-canvas .leaflet-tile-pane {
    filter: saturate(0.78) brightness(1.03) contrast(0.94);
}

.nearby-map-canvas .leaflet-control-attribution,
.nearby-map-canvas .leaflet-control-zoom {
    border: 1px solid var(--home-line);
    background: rgba(255, 253, 248, 0.94);
    box-shadow: 0 7px 18px rgba(34, 57, 41, 0.12);
}

.home-page .nearby-map-canvas .leaflet-attribution-flag {
    width: 1em;
    height: 0.6669em;
    fill: currentColor;
    stroke: none;
}

.heop-home-marker {
    width: 58px;
    display: grid;
    justify-items: center;
    gap: 2px;
}

.heop-home-marker__pin {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border: 4px solid rgba(255, 255, 255, 0.96);
    border-radius: 50% 50% 50% 10%;
    color: #fff;
    background: var(--home-green);
    box-shadow: 0 8px 18px rgba(29, 55, 37, 0.24);
    transform: rotate(-45deg);
}

.heop-home-marker__pin span {
    font-size: 0.65rem;
    font-weight: 900;
    transform: rotate(45deg);
}

.heop-home-marker__distance {
    padding: 3px 6px;
    border: 1px solid var(--home-line);
    border-radius: 999px;
    color: var(--home-green-dark);
    background: rgba(255, 255, 255, 0.96);
    font-size: 0.52rem;
    font-weight: 900;
    white-space: nowrap;
}

.heop-home-marker.is-active .heop-home-marker__pin {
    background: var(--home-terra);
}

.heop-home-marker-icon {
    border: 0;
    background: transparent;
}

.nearby-producer-detail {
    min-width: 0;
    min-height: 184px;
    overflow: hidden;
    border: 1px solid rgba(37, 63, 45, 0.11);
    border-radius: 12px;
    background: #fff;
}

.nearby-detail-placeholder {
    height: 100%;
    min-height: inherit;
    display: grid;
    place-content: center;
    justify-items: center;
    gap: 8px;
    padding: 20px;
    color: var(--home-muted);
    text-align: center;
}

.nearby-detail-placeholder[hidden],
.nearby-detail-content[hidden] {
    display: none;
}

.nearby-detail-placeholder h3,
.nearby-detail-placeholder p {
    margin: 0;
}

.nearby-detail-placeholder h3 {
    color: var(--home-green-dark);
    font-family: Georgia, "Times New Roman", serif;
}

.nearby-locate-button {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: 0;
    padding: 0 13px;
    border: 0;
    border-radius: 8px;
    color: #fff;
    background: var(--home-green);
    font-weight: 850;
    cursor: pointer;
}

.nearby-locate-button .ui-icon {
    width: 17px;
    height: 17px;
}

.nearby-location-status {
    min-height: 1.2em;
    margin: 0;
    font-size: 0.68rem;
}

.nearby-detail-content {
    min-height: inherit;
    grid-template-columns: clamp(102px, 31vw, 150px) minmax(0, 1fr);
    grid-template-rows: minmax(184px, auto);
}

.nearby-detail-content:not([hidden]) {
    display: grid;
}

.nearby-detail-photo {
    min-width: 0;
    overflow: hidden;
    background: var(--home-paper-2);
}

.nearby-detail-image {
    width: 100%;
    height: 100%;
    min-height: 184px;
    display: block;
    object-fit: cover;
}

.nearby-detail-copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 12px;
}

.nearby-detail-specialty {
    color: var(--home-terra-dark);
    font-size: 0.44rem;
    font-weight: 900;
    text-transform: uppercase;
}

.nearby-detail-copy h3 {
    margin: 5px 0 7px;
    color: var(--home-green-dark);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.06rem, 5vw, 1.38rem);
    line-height: 1;
}

.nearby-detail-meta,
.nearby-detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.nearby-detail-meta span,
.nearby-detail-tags span {
    padding: 4px 6px;
    border-radius: 7px;
    color: var(--home-green-dark);
    background: var(--home-green-soft);
    font-size: 0.47rem;
    font-weight: 850;
}

.nearby-detail-description {
    display: -webkit-box;
    overflow: hidden;
    margin: 8px 0;
    color: var(--home-muted);
    font-size: 0.56rem;
    line-height: 1.35;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.nearby-detail-tags {
    display: none;
}

.nearby-detail-cta {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    padding: 7px 9px;
    border-radius: 8px;
    color: #fff;
    background: var(--home-terra);
    font-size: 0.56rem;
    font-weight: 900;
    text-decoration: none;
}

.nearby-detail-cta .ui-icon {
    width: 16px;
    height: 16px;
}

@media (min-width: 740px) {
    .seller-showcase,
    .nearby-map-section {
        margin-top: 16px;
        padding: 8px;
    }

    .seller-track {
        grid-auto-columns: calc((100% - 16px) / 3);
        gap: 8px;
    }

    .seller-card {
        height: 96px;
    }

    .nearby-map-layout {
        grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
        gap: 8px;
    }

    .nearby-map-canvas,
    .nearby-map-frame,
    .nearby-producer-detail {
        min-height: 302px;
    }

    .nearby-producer-detail {
        border-radius: 14px;
    }

    .nearby-detail-content {
        grid-template-columns: minmax(120px, 0.78fr) minmax(0, 1.22fr);
        grid-template-rows: minmax(302px, auto);
    }

    .nearby-detail-image {
        min-height: 302px;
    }

    .nearby-detail-copy {
        padding: 16px;
    }

    .nearby-detail-specialty {
        font-size: 0.62rem;
    }

    .nearby-detail-copy h3 {
        margin: 7px 0 9px;
        font-size: clamp(1.15rem, 3.8vw, 1.55rem);
    }

    .nearby-detail-meta span,
    .nearby-detail-tags span {
        padding: 5px 7px;
        font-size: 0.62rem;
    }

    .nearby-detail-description {
        margin: 12px 0;
        font-size: 0.72rem;
        line-height: 1.42;
        -webkit-line-clamp: unset;
    }

    .nearby-detail-tags {
        display: flex;
    }

    .nearby-detail-cta {
        min-height: 44px;
        padding: 0 13px;
        font-size: inherit;
    }

}

@media (max-width: 479px) {
    .nearby-map-head {
        align-items: stretch;
        flex-direction: column;
    }

    .nearby-map-tools {
        max-width: none;
        justify-items: start;
        text-align: left;
    }

    .nearby-map-hint {
        display: none;
    }
}

@media (max-width: 359px) {
    .nearby-map-canvas,
    .nearby-map-frame {
        min-height: 218px;
    }

    .nearby-producer-detail {
        min-height: 176px;
    }

    .nearby-detail-content {
        grid-template-columns: 94px minmax(0, 1fr);
        grid-template-rows: minmax(176px, auto);
    }

    .nearby-detail-image {
        min-height: 176px;
    }

    .nearby-detail-copy {
        padding: 10px;
    }

    .nearby-detail-copy h3 {
        font-size: 1rem;
    }

    .nearby-detail-description {
        -webkit-line-clamp: 2;
    }
}

@media (min-width: 1024px) {
    .seller-track {
        grid-auto-columns: calc((100% - 24px) / 4);
    }

    .nearby-map-layout {
        grid-template-columns: minmax(0, 1.45fr) minmax(360px, 0.72fr);
    }
}

@media (min-width: 1600px) {
    .seller-track {
        grid-auto-columns: calc((100% - 32px) / 5);
    }

    .nearby-map-layout {
        grid-template-columns: minmax(0, 1.55fr) minmax(390px, 0.65fr);
    }
}
