.gpd-locator {
    --gpd-primary: #2c0f96;
    --gpd-gradient: linear-gradient(135deg, #2c0f96, #4525c4);
    --gpd-border: #e6e6ec;
    --gpd-text: #1a1a1a;
    --gpd-muted: #62616a;
    box-sizing: border-box;
    color: var(--gpd-text);
    width: 100%;
    max-width: 1152px;
    padding: 40px 16px;
    margin-inline: auto;
    font: 400 16px/1.45 Raleway, system-ui, sans-serif;
}

.gpd-locator *, .gpd-locator *::before, .gpd-locator *::after { box-sizing: border-box; }
.gpd-locator [hidden] { display: none !important; }
.gpd-locator :is(a, button, input, select):focus-visible {
    outline: 2px solid var(--gpd-primary);
    outline-offset: 2px;
}

.gpd-locator .gpd-search {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(175px, 220px) auto auto;
    gap: 12px;
    padding: 16px;
    border: 1px solid var(--gpd-border);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 1px 3px 0 #0001, 0 1px 2px -1px #0001;
    margin: 0 0 16px;
}

.gpd-locator .gpd-search :is(input, select) {
    min-width: 0;
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--gpd-border);
    border-radius: 10px;
    color: var(--gpd-text);
    background: white;
    font: inherit;
}

.gpd-locator .gpd-search select { max-width: 100%; padding-right: 28px; }
.gpd-locator .gpd-search input::placeholder { color: var(--gpd-muted); opacity: 1; }
.gpd-locator .gpd-primary, .gpd-locator .gpd-outline {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 10px;
    font: 600 12px/1.4 Raleway, system-ui, sans-serif;
    letter-spacing: normal;
    text-decoration: none;
    text-transform: none;
}

.gpd-locator .gpd-primary { background: var(--gpd-gradient); color: #fff; border: 1px solid transparent; }
.gpd-locator .gpd-outline { background: white; color: var(--gpd-primary); border: 1px solid #2c0f964d; }
.gpd-locator .gpd-primary:hover { color: #fff; opacity: .94; }
.gpd-locator .gpd-outline:hover { color: var(--gpd-primary); background: #f3f1fb; }
.gpd-locator .gpd-search button { cursor: pointer; padding: 12px 20px; font-size: 14px; }
.gpd-locator .gpd-search button:disabled { cursor: wait; opacity: .6; }
.gpd-locator .gpd-message { padding: 10px 14px; margin: 0 0 16px; border-radius: 8px; color: #a21b31; background: #fdf2f4; }
.gpd-locator .gpd-message.is-info { color: #0b0e40; background: #e6e9fa; }

.gpd-locator .gpd-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(380px, 39%); gap: 16px; }
.gpd-locator .gpd-map, .gpd-locator .gpd-list {
    border: 1px solid var(--gpd-border);
    border-radius: 16px;
    box-shadow: 0 1px 3px 0 #0001, 0 1px 2px -1px #0001;
}

.gpd-locator .gpd-map { height: 640px; isolation: isolate; overflow: hidden; background: #add4e1; }
.gpd-locator .gpd-map img { max-width: none; }
.gpd-locator .gpd-map .leaflet-tile-pane { filter: saturate(1.18) contrast(.97) brightness(1.02); }
.gpd-locator .gpd-map .leaflet-control-zoom {
    margin: 14px 0 0 14px;
    overflow: hidden;
    border: 1px solid #dfe1ee;
    border-radius: 10px;
    box-shadow: 0 3px 14px #0b0e401a;
}
.gpd-locator .gpd-map .leaflet-control-zoom a {
    width: 36px;
    height: 36px;
    color: #0b0e40;
    font: 600 22px/36px system-ui, sans-serif;
    text-decoration: none;
}
.gpd-locator .gpd-map .leaflet-control-zoom a:hover { background: #e6e9fa; }
.gpd-locator .gpd-map .leaflet-control-zoom .leaflet-disabled { color: #77798c; }
.gpd-locator .gpd-map .leaflet-control-zoom a:focus-visible { outline-offset: -3px; }
.gpd-locator .gpd-map .leaflet-control-attribution {
    margin: 0;
    padding: 2px 7px;
    border-top-left-radius: 6px;
    background: #fffffff2;
    color: #42445c;
    font-size: 11px;
    line-height: 1.25;
}
.gpd-locator .gpd-map .leaflet-control-attribution a { color: var(--gpd-primary); text-decoration: underline; }
.gpd-locator .gpd-map .leaflet-popup-content-wrapper { border-radius: 12px; }
.gpd-locator .gpd-popup { display: grid; gap: 4px; color: #0b0e40; font: 500 14px/1.4 Raleway, system-ui, sans-serif; }
.gpd-locator .gpd-popup strong { padding-right: 8px; font-size: 15px; }
.gpd-locator .gpd-popup-city { color: var(--gpd-muted); font-size: 13px; }
.gpd-locator .gpd-list {
    min-width: 0;
    max-height: 640px;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-gutter: stable;
    scrollbar-width: thin;
    scrollbar-color: #8373b5 #f3f1fa;
    background: #fff;
}

.gpd-locator .gpd-card { padding: 17px clamp(16px, 1.8vw, 22px); }
.gpd-locator .gpd-card + .gpd-card { border-top: 1px solid var(--gpd-border); }
.gpd-locator .gpd-card:hover { background: #fafaff; }
.gpd-locator .gpd-card.is-selected { background: #f3f1fb; box-shadow: inset 3px 0 var(--gpd-primary); }
.gpd-locator .gpd-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.gpd-locator .gpd-card-top h3 { min-width: 0; overflow-wrap: anywhere; }
.gpd-locator .gpd-card h3, .gpd-locator .gpd-name {
    margin: 0;
    color: #0b0e40;
    font: 700 17px/1.35 Raleway, system-ui, sans-serif;
    text-align: left;
}
.gpd-locator .gpd-name { cursor: pointer; border: 0; padding: 0; background: transparent; border-radius: 3px; text-transform: none; max-width: 100%; white-space: normal; overflow-wrap: anywhere; }
.gpd-locator .gpd-address { margin: 4px 0 0; color: var(--gpd-muted); font-size: 14px; line-height: 1.48; overflow-wrap: anywhere; }
.gpd-locator .gpd-address span { display: block; }
.gpd-locator .gpd-distance { flex-shrink: 0; padding: 4px 9px; border-radius: 999px; white-space: nowrap; }
.gpd-locator .gpd-actions { display: flex; flex-wrap: wrap; margin-top: 10px; gap: 8px; }
.gpd-locator .gpd-actions a { min-height: 36px; max-width: 100%; gap: 6px; padding: 6px 10px; border-radius: 999px; overflow-wrap: anywhere; }
.gpd-locator .gpd-actions .gpd-primary { background: var(--gpd-primary); }
.gpd-locator .gpd-actions .gpd-outline { border-color: #c8c5df; color: #0b0e40; }
.gpd-locator .gpd-actions a::before {
    content: "";
    flex: 0 0 14px;
    height: 14px;
    background: currentColor;
    mask: var(--gpd-action-icon) center / contain no-repeat;
}
.gpd-locator .gpd-action-route { --gpd-action-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'%3E%3Cpath d='m3 11 18-8-8 18-3-7-7-3Z'/%3E%3C/svg%3E"); }
.gpd-locator .gpd-action-phone { --gpd-action-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'%3E%3Cpath d='M3 5c0-1 1-2 2-2h3l2 5-2 2a14 14 0 0 0 6 6l2-2 5 2v3c0 1-1 2-2 2C10 21 3 14 3 5Z'/%3E%3C/svg%3E"); }
.gpd-locator .gpd-action-whatsapp { --gpd-action-icon: url('whatsapp.svg'); }
.gpd-locator .gpd-actions .gpd-action-whatsapp::before { flex-basis: 16px; height: 16px; }
.gpd-locator article > .gpd-primary { margin-top: 12px; }

.gpd-locator .leaflet-marker-icon.gpd-pin {
    border: 0;
    background: transparent url('pino-gp.png') center / contain no-repeat;
    filter: drop-shadow(0 1px 2px #0b0e404d);
}
.gpd-locator .leaflet-marker-icon.gpd-pin.is-selected { filter: drop-shadow(0 2px 4px #0b0e4080); }
.gpd-locator .leaflet-marker-icon.gpd-pin:focus-visible { outline: 2px solid var(--gpd-primary); outline-offset: 3px; }
.gpd-locator .leaflet-marker-icon.gpd-user-pin { border: 3px solid white; border-radius: 50%; background: #2c0f96; box-shadow: 0 0 0 3px #2c0f9660; }

@media (max-width: 1023px) {
    .gpd-locator .gpd-layout { grid-template-columns: minmax(0, 1fr); }
    .gpd-locator .gpd-map { height: 420px; }
    .gpd-locator .gpd-list {
        max-height: none;
        overflow: visible;
        scrollbar-gutter: auto;
    }
}
@media (max-width: 840px) {
    .gpd-locator .gpd-search { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 639px) {
    .gpd-locator { padding-block: 24px; }
    .gpd-locator .gpd-search { grid-template-columns: minmax(0, 1fr); }
}
