/* partner-locator.css — the rules the "find a partner" page kept in its own <style> for the search, the list and the map. */
/* ---- Search / filter bar ---- */
.field{height:48px;background:#fff;border:1.5px solid #e5e7eb;border-radius:10px;font-family:'Google Sans',sans-serif;font-size:.9375rem;color:#111827;outline:none;transition:border-color .18s,box-shadow .18s}
.field:focus{border-color:#5e2d91;box-shadow:0 0 0 4px rgba(94,45,145,.10)}
.field::placeholder{color:#9ca3af}
select.field{appearance:none;cursor:pointer;padding-right:40px;
    background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2.5'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
    background-repeat:no-repeat;background-position:right 14px center;background-size:14px}

/* segmented type control */
.seg{display:inline-flex;background:#fff;border:1.5px solid #e5e7eb;border-radius:10px;padding:4px;height:48px}
.seg-btn{height:100%;padding:0 16px;border:none;background:transparent;border-radius:8px;font-family:'Google Sans',sans-serif;font-size:.8125rem;font-weight:500;color:#6b7280;cursor:pointer;white-space:nowrap;transition:background .15s,color .15s}
.seg-btn.active{background:#5e2d91;color:#fff;box-shadow:0 2px 8px rgba(94,45,145,.28)}
.seg-btn:hover:not(.active){color:#111827}

/* ---- Partner card ---- */
.p-card{position:relative;background:#fff;border:1px solid #ececf0;border-radius:10px;padding:18px 20px;cursor:pointer;transition:border-color .18s,background-color .18s}
.p-card:hover{border-color:#ddd6fe;background:#faf9ff}
.p-card.active{border-color:#5e2d91;background:#faf9ff}
.badge{flex-shrink:0;font-size:10px;font-weight:700;letter-spacing:.3px;padding:3px 9px;border-radius:8px;text-transform:uppercase}
.badge.hq{background:#ede9fe;color:#4a2373}
.badge.sub{background:#f3f4f6;color:#6b7280}
.meta-link{color:#5e2d91;text-decoration:none}
.meta-link:hover{text-decoration:underline}

/* results scroll area */
.results-scroll{max-height:640px;overflow-y:auto;padding-right:6px}
.results-scroll::-webkit-scrollbar{width:8px}
.results-scroll::-webkit-scrollbar-thumb{background:#d8d3e6;border-radius:8px}
.results-scroll::-webkit-scrollbar-thumb:hover{background:#c4b5fd}
.results-scroll::-webkit-scrollbar-track{background:transparent}

/* skeleton */
.skel{background:#fff;border:1px solid #eceef1;border-radius:10px;padding:18px 20px;height:104px}
.skel-line{height:12px;border-radius:4px;background:linear-gradient(90deg,#f1eef7 0%,#e7e2f3 50%,#f1eef7 100%);background-size:200% 100%;animation:shimmer 1.5s ease-in-out infinite;margin-bottom:10px}
@keyframes shimmer{0%{background-position:200% 0}100%{background-position:-200% 0}}

/* ---- Map ---- */
.map-shell{position:relative;border-radius:10px;overflow:hidden;border:1px solid #e5e7eb;background:#eef0f4}
#map{width:100%;height:100%}
.map-ctrl{position:absolute;z-index:500;display:flex;gap:8px}
.map-btn{display:inline-flex;align-items:center;gap:7px;height:40px;padding:0 14px;background:#fff;border:1px solid #e5e7eb;border-radius:10px;font-family:'Google Sans',sans-serif;font-size:.8125rem;font-weight:600;color:#374151;cursor:pointer;transition:background .15s,color .15s,border-color .15s}
.map-btn:hover{background:#5e2d91;color:#fff;border-color:#5e2d91}
.map-legend{position:absolute;left:14px;bottom:14px;z-index:500;display:flex;gap:14px;background:rgba(255,255,255,.94);backdrop-filter:blur(8px);border:1px solid #e5e7eb;border-radius:10px;padding:9px 14px;font-size:12px;color:#4b5563}
.lg-dot{width:11px;height:11px;border-radius:50%;display:inline-block;margin-right:6px;vertical-align:-1px}

/* fullscreen */
.map-shell.fs{position:fixed;inset:0;z-index:2000;border-radius:0;border:none;height:100vh!important;width:100vw!important}
body.map-locked{overflow:hidden}
/* keep the search bar usable while the map is fullscreen */
body.map-locked #filter-bar{position:fixed;top:20px;left:50%;transform:translateX(-50%);z-index:2100;width:calc(100% - 40px);max-width:960px;margin-top:0;box-shadow:0 12px 34px -12px rgba(30,27,75,.35);animation:filterSlideDown .34s cubic-bezier(.4,0,.2,1)}
@keyframes filterSlideDown{from{transform:translate(-50%,calc(-100% - 20px))}to{transform:translate(-50%,0)}}
/* move the reduce button clear of the floating search bar */
body.map-locked .map-ctrl{top:auto!important;bottom:14px!important;right:14px}
/* hide the footer while the map is fullscreen */
body.map-locked footer{display:none}

/* Leaflet light popup theme */
.leaflet-popup-content-wrapper{border-radius:10px!important;box-shadow:0 6px 22px rgba(30,27,75,.14)!important;border:1px solid #eceef1!important}
.leaflet-popup-content{margin:14px 16px!important;min-width:180px}
.pp-name{font-family:'Google Sans',sans-serif;font-weight:700;font-size:14px;color:#111827;margin-bottom:8px;line-height:1.3}
.pp-row{font-size:12.5px;color:#6b7280;margin-bottom:4px}
.pp-link{color:#5e2d91;font-size:12.5px;text-decoration:none}
.pp-link:hover{text-decoration:underline}
.pp-badge{display:inline-block;margin-top:8px;font-size:10px;font-weight:700;padding:3px 9px;border-radius:8px;text-transform:uppercase;letter-spacing:.3px}
.pp-badge.hq{background:#ede9fe;color:#4a2373}
.pp-badge.sub{background:#f3f4f6;color:#6b7280}
.marker-cluster-small div,.marker-cluster-medium div,.marker-cluster-large div{background:#5e2d91!important;color:#fff!important;font-weight:700!important;font-family:'Google Sans',sans-serif!important;font-size:12px!important}
.marker-cluster-small,.marker-cluster-medium,.marker-cluster-large{background:rgba(94,45,145,.22)!important}

@media(max-width:1024px){
    .results-scroll{max-height:none}
}
@media(max-width:767px){
    #map-shell:not(.fs){height:420px!important}
    .seg{width:100%}
    .seg-btn{flex:1;padding:0 8px}
    .map-legend{gap:10px;padding:7px 10px;font-size:11px}
    .map-btn span{display:none}
    .map-btn{padding:0 11px}
    body.map-locked #filter-bar{top:12px;width:calc(100% - 24px)}
}
