/* ============================================================================
   Petdori · Service Archive
   Scope: .pdsa-archive / .pdsa-*  |  Mobile layout: max 480px
   Consolidated from the archive stylesheet (2026-10-28).
   Individual filters: inline dropdown / All filters: modal.
   ============================================================================ */

/* 01. Archive container ------------------------------------------------------ */
.pdsa-archive {
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    padding: 0 0 100px;
    background: #fff;
    color: #17212f;
    box-sizing: border-box;
}

.pdsa-archive * {
    box-sizing: border-box;
}

/* 02. Service tabs and banner ----------------------------------------------- */
.pdsa-kind-tabs .pdsa-map-tab {
    margin-left: auto;
    padding: 6px 10px;
    border: 1px solid #dbe3ec;
    border-radius: 999px;
    background: #1C2227;
    color: #ffffff;
    font-size: 12px;
    white-space: nowrap;
    cursor: not-allowed;
}

.pdsa-map-tab small {
    font-size: 9px;
}


/* =========================
   Service Banner Carousel
========================= */

.pdsa-banner {
    display: block;
    width: 100%;
    margin: 2px 0 12px;
    padding: 0;
    border: 0;
    background: transparent;
}

.pdsa-banner-viewport {
    width: 100%;
    aspect-ratio: 3 / 1;
    overflow: hidden;

    background: #eef6ff;
    touch-action: pan-y;
    cursor: grab;
}

.pdsa-banner-viewport:active {
    cursor: grabbing;
}

.pdsa-banner-track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 350ms ease;
}

.pdsa-banner-slide {
    flex: 0 0 100%;
    min-width: 0;
    height: 100%;
}

.pdsa-banner-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    -webkit-user-drag: none;
    user-select: none;
}

.pdsa-banner-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
    min-height: 24px;
    margin-top: 5px;
}

.pdsa-banner-dot {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
}

.pdsa-banner-dot::before {
    display: block;
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: #cbd5e1;
    content: '';
    transition: width 200ms ease, background-color 200ms ease;
}

.pdsa-banner-dot[aria-current="true"]::before {
    width: 18px;
    background: #2563eb;
}

.pdsa-banner-dot:focus-visible {
    outline: 2px solid #2563eb;
    outline-offset: -1px;
}

@media (prefers-reduced-motion: reduce) {
    .pdsa-banner-track,
    .pdsa-banner-dot::before {
        transition: none;
    }
}


/* 03. Species / facility shortcut grid -------------------------------------- */
.pdsa-species {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
    margin: 12px 12px 24px;
    padding: 14px 8px;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 4px 18px rgba(15, 23, 42, .07);
}

.pdsa-species-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 7px;
    min-width: 0;
    color: #334155;
    text-decoration: none;
}

.pdsa-species-picture {
    display: flex;
    align-items: center;
    justify-content: center;
    width: min(100%, 62px);
    aspect-ratio: 1;
    border: 1px solid transparent;
    border-radius: 16px;
    background: #f3f5f8;
    font-size: 32px;
    line-height: 1;
}

.pdsa-species-name {
    font-size: 11px;
    line-height: 1.4;
    letter-spacing: -.4px;
    text-align: center;
    white-space: nowrap;
}

.pdsa-species-item.is-active .pdsa-species-picture {
    border-color: #bcd7ff;
    background: #eaf3ff;
}

.pdsa-species-item.is-active .pdsa-species-name {
    color: #2563eb;
    font-weight: 700;
}

.pdsa-species-item:focus-visible {
    outline: 2px solid #2563eb;
    outline-offset: 3px;
    border-radius: 8px;
}

.pdsa-facility-extra[hidden] {
    display: none;
}

.pdsa-facility-more {
    grid-column: 1 / -1;
    min-height: 30px;
    border: 0;
    background: transparent;
    color: #64748b;
    font-size: 12px;
    cursor: pointer;
}

.pdsa-facility-more[aria-expanded="true"] span {
    display: inline-block;
    transform: rotate(180deg);
}

/* 04. Search row ------------------------------------------------------------ */
.pdsa-search-form {
    position: relative;
    padding: 0 16px 18px;
}

.pdsa-search-top {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pdsa-search-row {
    display: flex;
    align-items: center;
    min-height: 40px;
    overflow: hidden;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    background: #fff;
}

.pdsa-search-top .pdsa-search-row {
    flex: 1;
    min-width: 0;
    height: 40px;
    min-height: 40px;
    border-radius: 12px;
}

.pdsa-search-label {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
}

.pdsa-search-row input {
    flex: 1;
    min-width: 0;
    padding: 0 14px;
    border: none;
    outline: 0;
    background: transparent;
    box-shadow: none;
    color: #0f172a;
    font-size: 14px;
}

.pdsa-search-row input:focus {
    box-shadow: none;
}

.pdsa-search-row:focus-within {
    outline: 2px solid #93c5fd;
    outline-offset: 1px;
}

.pdsa-search-submit {
    flex: 0 0 42px;
    height: 40px;
    border: 0;
    background: #fff;
    color: #2563eb;
    font-size: 24px;
    cursor: pointer;
}

/* 05. All-filter trigger and individual filter chips ----------------------- */
.pdsa-filter-main-trigger {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    align-content: center;
    gap: 6px;
    min-width: 72px;
    height: 40px;
    padding: 0 12px;
    border: 0;
    border-radius: 12px;
    background: #eef4ff;
    color: #2563eb;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
}

/* Preserve sublabel styling, but keep the old 'applied' text hidden. */
.pdsa-filter-main-trigger small {
    display: none;
    flex-basis: 100%;
    color: #64748b;
    font-size: 9px;
    font-weight: 400;
}

.pdsa-filter-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: #2563eb;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
}

.pdsa-filter-count[hidden] {
    display: none;
}

.pdsa-filter-toolbar {
    position: relative;
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 8px;
    min-width: 0;
    margin-top: 12px;
    padding-bottom: 2px;
    overflow-x: auto;
    scrollbar-width: none;
}

.pdsa-filter-toolbar::-webkit-scrollbar {
    display: none;
}

.pdsa-filter-toolbar > button {
    flex: 0 0 auto;
    min-width: 0;
    max-width: none;
    min-height: 30px;
    padding: 0 12px;
    overflow: hidden;
    border: 1px solid #d7deea;
    border-radius: 999px;
    background: #fff;
    color: #4b5563;
    font-size: 12px;
    font-weight: 500;
    line-height: 1;
    text-overflow: ellipsis;
    white-space: nowrap;
    cursor: pointer;
}

.pdsa-filter-toolbar > button[aria-expanded="true"],
.pdsa-filter-toolbar > button.is-active {
    border-color: #93c5fd;
    background: #eef4ff;
    color: #2563eb;
    font-weight: 700;
}

/* 06. Filter panel: shared modal skeleton ---------------------------------- */
.pdsa-filter-dialog[hidden] {
    display: none !important;
}

.pdsa-filter-dialog {
    position: fixed;
    z-index: 1100;
    inset: 0;
    isolation: isolate;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.pdsa-filter-scrim {
    position: absolute;
    z-index: -1;
    inset: 0;
    background: rgba(13, 20, 31, .53);
}

.pdsa-filter-panel {
    display: flex;
    flex-direction: column;
    width: min(100%, 448px);
    max-height: min(82dvh, 740px);
    overflow: hidden;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 20px 70px rgba(0, 0, 0, .20);
}

.pdsa-filter-heading {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: space-between;
    margin: 0;
    padding: 17px 18px 13px;
    border-bottom: 1px solid #edf2f7;
}

.pdsa-filter-heading strong {
    font-size: 16px;
}

.pdsa-filter-heading button {
    min-width: 32px;
    min-height: 32px;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.pdsa-filter-scroll {
    flex: 1;
    min-height: 0;
    padding: 18px;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.pdsa-filter-actions {
    display: grid;
    flex: 0 0 auto;
    grid-template-columns: 1fr 2fr;
    gap: 8px;
    margin: 0;
    padding: 12px 18px calc(12px + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid #edf2f7;
    background: #fff;
}

.pdsa-filter-actions a,
.pdsa-filter-actions button {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

.pdsa-filter-actions a,
.pdsa-filter-actions .pdsa-filter-reset {
    border: 1px solid #d1d5db;
    background: #fff;
    color: #4b5563;
}

.pdsa-filter-actions button {
    border: 1px solid #2563eb;
    background: #2563eb;
    color: #fff;
}

body.pdsa-filter-locked {
    overflow: hidden;
}

/* 07. Inline individual-filter dropdown (not the full-screen modal) -------- */
.pdsa-filter-dialog.is-inline {
    position: absolute;
    z-index: 60;
    inset: auto auto auto 0;
    top: calc(100% + 8px);
    isolation: auto;
    display: block;
    padding: 0 16px;
}

.pdsa-filter-dialog.is-inline .pdsa-filter-scrim {
    display: none;
}

.pdsa-filter-dialog.is-inline .pdsa-filter-panel {
    width: min(340px, calc(100vw - 32px));
    max-width: 100%;
    max-height: min(52dvh, 420px);
    overflow: hidden;
    border: 1px solid #dbe3ec;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 10px 26px rgba(15, 23, 42, .14);
}

.pdsa-filter-dialog.is-inline .pdsa-filter-heading {
    padding: 14px 14px 10px;
    border-bottom: 1px solid #edf2f7;
}

.pdsa-filter-dialog.is-inline .pdsa-filter-heading strong {
    color: #111827;
    font-size: 15px;
    font-weight: 700;
}

.pdsa-filter-dialog.is-inline .pdsa-filter-heading button {
    min-width: 28px;
    min-height: 28px;
    color: #6b7280;
    font-size: 18px;
}

.pdsa-filter-dialog.is-inline .pdsa-filter-scroll {
    padding: 14px;
}

.pdsa-filter-dialog.is-inline .pdsa-filter-actions {
    padding: 10px 14px 14px;
    border-top: 1px solid #edf2f7;
}

/* Full filter keeps four option columns and a larger dialog. */
.pdsa-filter-dialog:not(.is-inline) .pdsa-filter-panel {
    width: min(100%, 430px);
    border-radius: 18px;
}

.pdsa-filter-dialog:not(.is-inline) .pdsa-filter-heading {
    padding: 16px 18px 12px;
}

.pdsa-filter-dialog:not(.is-inline) .pdsa-filter-scroll {
    padding: 16px 18px;
}

/* 08. Filter groups and selectable options --------------------------------- */
.pdsa-filter-fieldset {
    min-width: 0;
    margin: 0 0 16px;
    padding: 0;
    border: 0;
}

.pdsa-filter-fieldset:last-child {
    margin-bottom: 0;
}

.pdsa-filter-fieldset[data-pdsa-group][hidden] {
    display: none !important;
}

.pdsa-filter-fieldset legend {
    margin: 0 0 10px;
    color: #1f2937;
    font-size: 13px;
    font-weight: 700;
}

.pdsa-filter-fieldset legend small {
    color: #94a3b8;
    font-size: 11px;
    font-weight: 400;
}

.pdsa-region-grid,
.pdsa-feature-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
}

.pdsa-region-grid label,
.pdsa-feature-grid label {
    position: relative;
    display: block;
    min-width: 0;
    cursor: pointer;
}

.pdsa-region-grid input,
.pdsa-feature-grid input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.pdsa-region-grid span,
.pdsa-feature-grid span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: 38px;
    padding: 6px 4px;
    border: 1px solid #dbe3ec;
    border-radius: 10px;
    background: #fff;
    color: #374151;
    font-size: 12px;
    line-height: 1.2;
    text-align: center;
}

.pdsa-region-grid input:checked + span,
.pdsa-feature-grid input:checked + span {
    border-color: #93c5fd;
    background: #eef4ff;
    color: #2563eb;
    font-weight: 700;
}

.pdsa-region-grid input:focus-visible + span,
.pdsa-feature-grid input:focus-visible + span {
    outline: 2px solid #93c5fd;
    outline-offset: 1px;
}

.pdsa-filter-dialog.is-inline .pdsa-region-grid,
.pdsa-filter-dialog.is-inline .pdsa-feature-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.pdsa-filter-dialog:not(.is-inline) .pdsa-region-grid,
.pdsa-filter-dialog:not(.is-inline) .pdsa-feature-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

.pdsa-not-ready {
    cursor: not-allowed !important;
}

.pdsa-not-ready span {
    border-color: #e5e7eb !important;
    background: #f6f7f9 !important;
    color: #9ca3af !important;
}

.pdsa-not-ready small {
    display: block;
    font-size: 9px;
}

/* 09. Legacy <details> filter selectors (kept for compatibility) ------------ */
.pdsa-toolbar-reset {
    margin-left: auto;
    color: #64748b;
    font-size: 11px;
    text-decoration: underline;
    white-space: nowrap;
}

.pdsa-filter-details {
    position: static;
    flex: 0 0 auto;
    margin-left: auto;
}

.pdsa-toolbar-reset + .pdsa-filter-details {
    margin-left: 0;
}

.pdsa-filter-details > summary {
    padding: 8px 10px;
    border-radius: 8px;
    background: #eff6ff;
    color: #2563eb;
    font-size: 11px;
    font-weight: 700;
    list-style: none;
    white-space: nowrap;
    cursor: pointer;
}

.pdsa-filter-details > summary::-webkit-details-marker {
    display: none;
}

.pdsa-filter-body {
    display: none;
}

.pdsa-filter-details[open] .pdsa-filter-body {
    position: absolute;
    z-index: 35;
    top: calc(100% + 8px);
    right: 0;
    left: 0;
    display: block;
    max-height: min(70dvh, 560px);
    padding: 14px;
    overflow-y: auto;
    border: 1px solid #dbe3ec;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 8px 22px rgba(15, 23, 42, .13);
}

.pdsa-filter-details[data-mode="region"] .pdsa-filter-fieldset:not(#pdsa-region-options),
.pdsa-filter-details[data-mode="department"] .pdsa-filter-fieldset:not(#pdsa-department-options),
.pdsa-filter-details[data-mode="feature"] .pdsa-filter-fieldset:not(#pdsa-feature-options),
.pdsa-filter-details[data-mode="facility"] .pdsa-filter-fieldset:not(#pdsa-facility-options) {
    display: none;
}

/* 10. Result heading, cards and empty state -------------------------------- */
.pdsa-result-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin: 20px 0 12px;
}

.pdsa-result-heading p {
    min-width: 0;
    margin: 0;
    font-size: 13px;
    line-height: 1.4;
}

.pdsa-result-heading strong {
    font-weight: 700;
}

.pdsa-result-heading p > span {
    color: #64748b;
    font-weight: 500;
}

.pdsa-card-list {
    border-top: 7px solid #f1f5f9;
}

.pdsa-card {
    border-bottom: 1px solid #edf2f7;
}

.pdsa-card-link {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    padding: 17px 16px;
    background: #fff;
    color: inherit;
    text-decoration: none;
}

.pdsa-card-link:active {
    background: #f8fafc;
}

.pdsa-card-main {
    flex: 1;
    min-width: 0;
}

.pdsa-card-main h2 {
    overflow: hidden;
    margin: 0 0 9px;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.4;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pdsa-card-status {
    display: flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
    margin: 0 0 7px;
    color: #64748b;
    font-size: 11px;
    line-height: 1.4;
}

.pdsa-card-status > span:last-child {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pdsa-state {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    padding: 3px 6px;
    border-radius: 5px;
    background: #f1f5f9;
    color: #64748b;
    font-size: 11px;
    font-weight: 700;
}

.pdsa-state--open {
    background: #eaf6ef;
    color: #168348;
}

.pdsa-state--break {
    background: #fff4e5;
    color: #9a6200;
}

.pdsa-card-address,
.pdsa-card-tags {
    overflow: hidden;
    margin: 0 0 6px;
    color: #64748b;
    font-size: 12px;
    line-height: 1.5;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pdsa-card-tags {
    margin-bottom: 0;
    color: #475569;
    font-size: 11px;
}

.pdsa-card-image {
    display: flex;
    flex: 0 0 90px;
    align-items: center;
    justify-content: center;
    width: 90px;
    height: 90px;
    overflow: hidden;
    border-radius: 10px;
    background: #edf2f7;
}

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

.pdsa-card-image span {
    color: #94a3b8;
    font-size: 28px;
}

.pdsa-more-wrap {
    padding: 18px 16px 24px;
}

.pdsa-more {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    width: 100%;
    min-height: 43px;
    border: 1px solid #cbd5e1;
    border-radius: 9px;
    background: #fff;
    color: #334155;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.pdsa-more.is-loading {
    opacity: .5;
    pointer-events: none;
}

.pdsa-empty {
    padding: 38px 16px;
    color: #475569;
    text-align: center;
}

.pdsa-empty strong {
    font-size: 15px;
}

.pdsa-empty p {
    margin: 10px 0 15px;
    font-size: 12px;
}

.pdsa-empty a {
    color: #2563eb;
    font-size: 13px;
}

/* 11. Small phones (<= 375px) ----------------------------------------------- */
@media (max-width: 375px) {
    .pdsa-kind-tabs .pdsa-map-tab small,
    .pdsa-map-coming small {
        display: none;
    }

    .pdsa-species {
        gap: 4px;
        margin-right: 10px;
        margin-left: 10px;
        padding: 12px 5px;
    }

    .pdsa-species-picture {
        border-radius: 13px;
        font-size: 27px;
    }

    .pdsa-species-name {
        font-size: 9px;
    }

    .pdsa-search-form {
        padding-right: 12px;
        padding-left: 12px;
    }

    .pdsa-search-top {
        gap: 6px;
    }

    .pdsa-search-top .pdsa-search-row {
        height: 38px;
        min-height: 38px;
    }

    .pdsa-filter-main-trigger {
        min-width: 68px;
        height: 38px;
        padding: 0 10px;
        font-size: 11px;
    }

    .pdsa-filter-toolbar {
        gap: 6px;
    }

    .pdsa-filter-toolbar > button {
        min-height: 28px;
        padding: 0 10px;
        font-size: 11px;
    }

    .pdsa-filter-panel {
        max-height: 88dvh;
    }

    .pdsa-filter-scroll {
        padding: 14px;
    }

    .pdsa-filter-dialog.is-inline {
        padding: 0 12px;
    }

    .pdsa-filter-dialog.is-inline .pdsa-filter-panel {
        width: min(320px, calc(100vw - 24px));
    }

    .pdsa-filter-dialog.is-inline .pdsa-region-grid,
    .pdsa-filter-dialog.is-inline .pdsa-feature-grid {
        gap: 6px;
    }

    .pdsa-region-grid span,
    .pdsa-feature-grid span {
        min-height: 36px;
        font-size: 11px;
    }

    .pdsa-card-image {
        flex-basis: 82px;
        width: 82px;
        height: 82px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .pdsa-archive * {
        scroll-behavior: auto !important;
    }
}

/* Species SVG + vertically centered search icon */
.pdsa-species-picture img {
    display: block;
    width: 38px;
    height: 38px;
    max-width: 80%;
    object-fit: contain;
}
.pdsa-search-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    line-height: 1;
}
.pdsa-search-submit svg {
    display: block;
    width: 19px;
    height: 19px;
}
@media (max-width: 375px) {
    .pdsa-species-picture img { width: 34px; height: 34px; }
}


/* 12. Location wizard — one stage at a time ---------------------------------- */
.pdsa-location-fieldset .pdsa-location-stage[hidden],
.pdsa-location-nav[hidden], .pdsa-nearby-status[hidden] {display:none!important}
.pdsa-location-browser {margin-top:12px}
.pdsa-location-grid {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}
.pdsa-location-nav {display:flex;align-items:center;gap:12px;margin:0 0 14px;min-height:30px}
.pdsa-location-nav strong {font-size:13px;color:#111827}
.pdsa-location-back {display:inline-flex;align-items:center;gap:5px;min-height:30px;padding:2px 9px;border:1px solid #dbe3ec;border-radius:8px;background:#fff;color:#475569;font-size:12px;cursor:pointer}
.pdsa-location-back span {font-size:20px;line-height:1}
.pdsa-location-nav-button,.pdsa-location-choice span {display:flex;justify-content:center;align-items:center;width:100%;min-height:38px;padding:7px 4px;border:1px solid #dbe3ec;border-radius:10px;background:#fff;color:#334155;font-size:12px;text-align:center;word-break:keep-all;cursor:pointer}
.pdsa-location-choice {position:relative;display:block;min-width:0;cursor:pointer}
.pdsa-location-choice input {position:absolute;width:1px;height:1px;opacity:0}
.pdsa-location-choice input:checked+span {border-color:#60a5fa;background:#eff6ff;color:#1d4ed8;font-weight:700}
.pdsa-location-choice input:focus-visible+span,.pdsa-location-nav-button:focus-visible,.pdsa-location-back:focus-visible,.pdsa-nearby-button:focus-visible {outline:2px solid #2563eb;outline-offset:2px}
.pdsa-nearby-button {display:flex;align-items:center;justify-content:center;gap:7px;width:100%;min-height:40px;border:1px solid #bfdbfe;border-radius:10px;background:#eff6ff;color:#1d4ed8;font-size:13px;font-weight:700;cursor:pointer}
.pdsa-nearby-button:disabled {opacity:.6;cursor:wait}
.pdsa-nearby-status {font-size:11px;color:#64748b;line-height:1.5;margin:8px 0 0}
.pdsa-location-note {margin:12px 0 0;color:#64748b;font-size:11px;line-height:1.5}
@media(max-width:375px){.pdsa-location-grid{gap:5px}.pdsa-location-nav-button,.pdsa-location-choice span{font-size:11px}}

.pdsa-location-empty {grid-column:1/-1;margin:3px 0;color:#64748b;font-size:12px;line-height:1.6;text-align:center}

/* 12. Two-column municipality selector ------------------------------------- */
.pdsa-location-columns{display:grid;grid-template-columns:104px minmax(0,1fr);height:310px;border:1px solid #e2e8f0;border-radius:10px;overflow:hidden;margin-top:12px}
.pdsa-location-provinces{overflow-y:auto;overscroll-behavior:contain;background:#f8fafc;border-right:1px solid #e2e8f0}
.pdsa-location-province{display:block;width:100%;min-height:42px;padding:10px 12px;border:0;background:transparent;text-align:left;color:#475569;font-size:12px;cursor:pointer}
.pdsa-location-province[aria-pressed="true"]{background:#fff;color:#2563eb;font-weight:700;box-shadow:inset 3px 0 #2563eb}
.pdsa-location-municipalities{min-width:0;overflow-y:auto;overscroll-behavior:contain;padding:6px}
.pdsa-location-municipalities [hidden],.pdsa-nearby-status[hidden]{display:none!important}
.pdsa-location-choice{display:block;position:relative;cursor:pointer}
.pdsa-location-choice input{position:absolute;width:1px;height:1px;opacity:0}
.pdsa-location-choice span,.pdsa-location-city-toggle{display:flex;align-items:center;justify-content:space-between;width:100%;min-height:40px;padding:10px;border:0;border-radius:7px;background:transparent;color:#475569;font-size:12px;text-align:left;cursor:pointer}
.pdsa-location-choice input:checked+span{background:#eaf2ff;color:#1d4ed8;font-weight:700}
.pdsa-location-choice input:focus-visible+span,.pdsa-location-city-toggle:focus-visible,.pdsa-location-province:focus-visible{outline:2px solid #2563eb;outline-offset:-2px}
.pdsa-location-city-toggle span{font-size:16px;color:#94a3b8;transition:transform .15s}
.pdsa-location-city-toggle[aria-expanded="true"] span{transform:rotate(180deg)}
.pdsa-location-sublist{background:#f8fafc;padding:2px 0 2px 10px}
.pdsa-location-sublist .pdsa-location-choice span{font-size:11px;min-height:36px}
.pdsa-location-wide span{font-weight:650;background:#f1f5f9}
.pdsa-nearby-button{display:flex;align-items:center;justify-content:center;gap:7px;width:100%;min-height:40px;border:1px solid #bfdbfe;border-radius:10px;background:#eff6ff;color:#1d4ed8;font-size:13px;font-weight:700;cursor:pointer}
.pdsa-nearby-button:disabled{opacity:.6;cursor:wait}
.pdsa-nearby-status,.pdsa-location-note{margin:10px 0 0;color:#64748b;font-size:11px;line-height:1.5}
.pdsa-location-fieldset .pdsa-location-columns{grid-template-columns:104px minmax(0,1fr)}
@media(max-width:375px){.pdsa-location-fieldset .pdsa-location-columns{grid-template-columns:88px minmax(0,1fr)}}

.pdsa-map-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}
