#explorer-form #geolocate{display:none!important}
.explorer-results .results-display-controls{flex-wrap:wrap}
.explorer-results .results-display-controls label:has(#sort-results){flex:0 1 auto;max-width:100%}
#sort-results,#filter-sort397{box-sizing:border-box;width:23ch!important;max-width:100%;min-width:min(23ch,100%);padding-inline-end:2rem!important}
.explorer-results-loader::before{content:"";display:block;width:2rem;height:2rem;margin:0 auto .5rem;background:center/contain no-repeat url('../assets/tokens387/oza.webp');filter:grayscale(1);opacity:.62;animation:oza-grey-pulse 1.2s ease-in-out infinite alternate}
#map-status .oza-map-loader{filter:grayscale(1);opacity:.65}
@keyframes oza-grey-pulse{from{opacity:.36}to{opacity:.75}}
@media(prefers-reduced-motion:reduce){.explorer-results-loader::before{animation:none}}
.map-shell .place-popup323 .leaflet-popup-content-wrapper{border-radius:17px;overflow:hidden;padding:0;background:white}
.map-shell .place-popup323 .leaflet-popup-content{margin:0;max-width:calc(100vw - 48px)}
.map-shell .place-popup323 .place-preview-media323{aspect-ratio:2.22;width:100%;height:auto;position:relative;overflow:hidden}
.map-shell .place-popup323 .place-preview-photo397,.map-shell .place-popup323 .place-preview-photo397 img{display:block;width:100%;height:100%;object-fit:cover}
.map-shell .place-popup323 .place-preview-category323{position:absolute;bottom:10px;left:10px}
.map-shell .place-popup323 .place-preview-content323{padding:14px 16px}
.map-shell .place-popup323 .place-preview-provider323{display:flex;align-items:center;gap:7px}
.map-shell .place-popup323 .place-preview-provider323 img{width:18px;height:18px;object-fit:contain}
.map-shell .place-popup323 .place-preview-value323,.map-shell .place-popup323 .place-preview-actions323{display:flex;align-items:center;gap:8px;flex-wrap:wrap;justify-content:space-between}
.map-shell .place-popup323 .place-preview-actions323>a,.map-shell .place-popup323 .place-preview-actions323>button{flex:1 1 auto;display:inline-flex;justify-content:center;align-items:center;gap:.55em;border-radius:999px;min-height:40px;text-decoration:none;font-weight:700}
/* Match the primary action to the category badge shown in the map popup. */
.place-popup323:has(.place-preview-category323.tone-rose) { --popup-action-color: var(--category-rose-ink); }
.place-popup323:has(.place-preview-category323.tone-purple) { --popup-action-color: var(--category-purple-ink); }
.place-popup323:has(.place-preview-category323.tone-amber) { --popup-action-color: var(--category-amber-ink); }
.place-popup323:has(.place-preview-category323.tone-green) { --popup-action-color: var(--category-green-ink); }
.place-popup323:has(.place-preview-category323.tone-cyan) { --popup-action-color: var(--category-cyan-ink); }
.place-popup323:has(.place-preview-category323.tone-gray) { --popup-action-color: var(--category-gray-ink); }
.map-shell .place-popup323 .place-preview-actions323 > .place-preview-primary323 {
  background: var(--popup-action-color, var(--category-neutral-ink, #526570));
  border: 1px solid var(--popup-action-color, var(--category-neutral-ink, #526570));
  color: #fff;
}
.map-shell .place-popup323 .place-preview-go323{background:white;color:#315963;border:1px solid #cfdddf}
.map-shell .place-popup323 button:disabled{opacity:.55}
.map-shell .place-popup323 .leaflet-popup-close-button{right:8px;top:8px;width:32px;height:32px;border-radius:50%;display:grid;place-items:center;line-height:1;color:#334750;background:white}
@media(max-height:650px){.map-shell .place-popup323 .leaflet-popup-content{max-height:65dvh;overflow:auto}}

.map-shell .place-popup323 a.claim-page-link {
  display: inline-block;
  margin-block-start: 12px;
  color: #111216;
  -webkit-text-fill-color: #111216;
  font-size: calc(12 * var(--oz-desktop-pixel, 1px));
  font-weight: 600;
  line-height: 1.45;
  text-decoration: underline solid #ca3979;
  text-decoration-thickness: calc(1.5 * var(--oz-desktop-pixel, 1px));
  text-underline-offset: calc(3 * var(--oz-desktop-pixel, 1px));
}

.is-explorer-scroll-owner {
  overflow-anchor: none;
  scroll-behavior: auto;
}
.results-scroll.is-rewinding .gallery-photo-link { filter: blur(5px); }
.explorer-page .place-gallery .gallery-empty.is-loading,
.place-popup323 .place-preview-photo397:has(img:not(.photo-ready)),
.explorer-page .suggested-place:has(img:not(.photo-ready)) img {
  background: radial-gradient(ellipse at 35% 35%, #f6f8f9, #dbe3e5 72%, #e9edf0);
}
.explorer-page .place-gallery .gallery-empty.is-loading > svg { opacity: .45; filter: blur(3px); }
.explorer-page .gallery-photo-link img:not(.photo-ready),
.place-popup323 .place-preview-photo397 img:not(.photo-ready) { visibility: hidden; }
@media (prefers-reduced-motion: no-preference) {
  .explorer-page .gallery-photo-link img.photo-ready,
  .place-popup323 .place-preview-photo397 img.photo-ready,
  .explorer-page .suggested-place img.photo-ready { animation: explorer-photo-in .16s ease-out; }
}
@keyframes explorer-photo-in { from { opacity: 0; } to { opacity: 1; } }

/* Real photographs fill the top of each category card. Labels retain the category colour. */
#explorer-category-menu {
  container-type: inline-size;
  padding: clamp(12px, 2vw, 20px);
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}
#explorer-category-menu .explorer-menu-categories { gap: 10px; margin-block: 12px 20px; }
#explorer-category-menu .explorer-menu-categories button[data-search-category] {
  display: grid; grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: auto 1fr; gap: 0; align-items: center; align-content: start;
  min-width: 0; min-height: 0; height: auto; padding: 0; overflow: hidden;
  border-radius: 12px; text-align: left;
}
#explorer-category-menu button[data-search-category][hidden] { display: none !important; }
#explorer-category-menu button[data-search-category] > img.category-thumbnail {
  grid-column: 1 / -1; display: block; width: 100%; max-width: none;
  height: clamp(76px, 19cqi, 110px); border-radius: 0;
  object-fit: cover; object-position: center;
}
#explorer-category-menu button[data-search-category] > span {
  padding: 9px 0 9px 9px; min-width: 0; font: inherit;
  font-size: clamp(12px, 3.1cqi, 14px); line-height: 1.25; font-weight: 650;
  overflow-wrap: anywhere; word-break: normal;
}
#explorer-category-menu button[data-search-category] > .icon { width: 12px; height: 12px; margin: 0 8px 0 3px; }
#explorer-category-menu button[data-search-category]:focus-visible { outline: 2px solid #087c8c; outline-offset: 1px; }
/* Ozapay : chargement discret de la carte */

.map-shell #map-status:not([hidden]),
.map-shell #map-location-feedback[data-oz-loading]:not([hidden]) {
  position:absolute; inset:50% auto auto 50%; transform:translate(-50%,-50%);
  display:flex; flex-direction:column; align-items:center; gap:5px;
  width:max-content; height:auto; max-width:100%; min-height:0;
  padding:0; margin:0; background:transparent; border:0; border-radius:0;
  box-shadow:none; pointer-events:none;
  font-family:inherit; font-size:13px; font-weight:500; line-height:1.3; color:#626971;
}
.explorer-results[aria-busy=true] .results-scroll > .explorer-results-loader {
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  gap:5px; background:transparent; border:0; box-shadow:none; color:#626971;
}
.map-shell #map-status .oz-loading-token,
.explorer-results-loader .oz-loading-token,
.map-shell #map-location-feedback[data-oz-loading]::before {
  width:40px; height:40px; display:block; object-fit:contain; flex:none;
  filter:grayscale(1) contrast(.48) brightness(1.47);
}
.map-shell #map-location-feedback[data-oz-loading]::before {
  content:""; background:center/contain no-repeat url('/assets/tokens387/oza.webp');
}
.map-shell #map-status::before, .map-shell #map-status::after,
.explorer-results .explorer-results-loader::before, .explorer-results .explorer-results-loader::after {
  content:none; display:none;
}
