/* =========================================================
   Localisation filter of /services and /accessoires (partials/listing-geo-filter.blade.php, variant
   "catalogue"; behaviour: assets/js/listing-geo-filter.js): structured city / "Autour de moi", radius,
   live count, on-demand map. Same component as the vehicle filter, whose rules live in feed.css (not loaded
   on these pages): the .amp-geo-* rules below are the same, scoped under .amp-svc-page (both pages' <main>).
   The field itself uses the pages' own filter-label / filter-input-wrap / filter-input styles.
========================================================= */

.amp-svc-page .amp-geo-standalone {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.amp-svc-page .amp-geo-search {
    position: relative;
}

.amp-svc-page .amp-geo-suggestions {
    position: absolute;
    z-index: 40;
    top: calc(100% + 4px);
    right: 0;
    left: 0;
    max-height: 220px;
    margin: 0;
    padding: 4px;
    overflow-x: hidden;
    overflow-y: auto;
    list-style: none;
    border: 1px solid #e3e9f1;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 12px 28px rgba(1, 30, 64, .14);
}

.amp-svc-page .amp-geo-suggestions[hidden],
.amp-svc-page .amp-geo-panel[hidden],
.amp-svc-page .amp-geo-map[hidden],
.amp-svc-page .amp-geo-message[hidden],
.amp-svc-page .amp-geo-map-toggle[hidden] {
    display: none;
}

.amp-svc-page .amp-geo-suggestions li {
    padding: 8px 10px;
    border-radius: 8px;
    color: #011e40;
    font-size: 13.5px;
    line-height: 1.3;
    overflow-wrap: anywhere;
    cursor: pointer;
}

.amp-svc-page .amp-geo-suggestions li:hover,
.amp-svc-page .amp-geo-suggestions li[aria-selected="true"] {
    background: #eef2f7;
}

.amp-svc-page .amp-geo-suggestions li.is-empty {
    color: #94a3b8;
    cursor: default;
}

.amp-svc-page .amp-geo-around {
    display: inline-flex;
    align-self: flex-start;
    align-items: center;
    gap: 6px;
    padding: 2px 0;
    border: 0;
    background: none;
    color: #ee5721;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.amp-svc-page .amp-geo-around svg {
    width: 16px;
    height: 16px;
}

.amp-svc-page .amp-geo-message {
    margin: 0;
    color: #64748b;
    font-size: 12.5px;
    line-height: 1.4;
}

.amp-svc-page .amp-geo-clear,
.amp-svc-page .amp-geo-map-toggle {
    padding: 0;
    border: 0;
    background: none;
    color: #011e40;
    font-size: 12.5px;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
    cursor: pointer;
}

.amp-svc-page .amp-geo-panel {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 10px 12px;
    border: 1px solid #e3e9f1;
    border-radius: 12px;
    background: #f8fafc;
}

.amp-svc-page .amp-geo-center,
.amp-svc-page .amp-geo-radius {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-width: 0;
    color: #011e40;
    font-size: 13px;
}

.amp-svc-page .amp-geo-center span {
    min-width: 0;
    font-weight: 600;
    overflow-wrap: anywhere;
}

.amp-svc-page .amp-geo-radius label {
    margin: 0;
    font-weight: 600;
}

.amp-svc-page .amp-geo-radius output {
    color: #ee5721;
    font-weight: 700;
    white-space: nowrap;
}

.amp-svc-page .amp-geo-range {
    width: 100%;
    accent-color: #ee5721;
}

.amp-svc-page .amp-geo-map-toggle {
    align-self: flex-start;
}

.amp-svc-page .amp-geo-map {
    width: 100%;
    height: 190px;
    overflow: hidden;
    border: 1px solid #e3e9f1;
    border-radius: 10px;
    background: #eef2f7;
}

.amp-svc-page .amp-geo-count {
    margin: 0;
    color: #011e40;
    font-size: 13px;
    font-weight: 600;
}

.amp-svc-page .amp-geo-count:empty {
    display: none;
}
