/*
Theme Name: Filorga Collegen Tester
Theme URI: https://filorga-collagen-tester-app.lovable.app
Author: Lovable WP Desktop
Description: Tema WordPress generato dal progetto Lovable FILORGA e predisposto per WP Visual Lite Editor.
Version: 0.1.4
Text Domain: filorga-collegen-tester
*/

html,
body {
  background: #000;
}

/* La pagina Grazie nel progetto React usa un unico contenitore flex alto viewport. */
body.page-template-page-grazie,
body.page-grazie {
  min-height: 100vh;
}

/* I select Radix del progetto React diventano select HTML nativi in WordPress. */
#form button[role="combobox"] {
  display: none;
}

#form select {
  position: static !important;
  display: block !important;
  width: 100% !important;
  height: 3rem !important;
  margin: 0 !important;
  padding: 0 1.75rem 0 0 !important;
  overflow: visible !important;
  clip: auto !important;
  white-space: normal !important;
  border: 0 !important;
  border-bottom: 1px solid rgba(255,255,255,.3) !important;
  border-radius: 0 !important;
  background-color: #000 !important;
  color: #fff !important;
  opacity: 1 !important;
  appearance: auto;
}

#form select:focus {
  outline: none;
  border-bottom-color: #fff !important;
}

#form button[role="checkbox"][data-state="checked"]::after {
  content: "✓";
  display: block;
  color: #000;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
}

#form button[role="radio"][data-state="checked"]::after {
  content: "";
  display: block;
  width: 8px;
  height: 8px;
  margin: auto;
  border-radius: 9999px;
  background: #fff;
}

/* --------------------------------------------------------------------------
 * Store locator
 * -------------------------------------------------------------------------- */

body.page-template-page-store-locator,
body.page-store-locator {
  background: #000;
  color: #fff;
}

body.page-template-page-store-locator > header,
body.page-store-locator > header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

body.page-template-page-store-locator > header img,
body.page-store-locator > header img {
  height: 2.5rem;
}

.filorga-store-locator .sl-product-glow {
  background: radial-gradient(circle at 50% 55%, rgba(255, 255, 255, 0.04), transparent 65%);
}

.filorga-store-locator .sl-product-halo {
  background: radial-gradient(circle at 50% 60%, rgba(120, 120, 120, 0.03), transparent 60%);
}

.filorga-store-locator input[type="search"]::-webkit-search-cancel-button {
  filter: invert(1);
  opacity: 0.65;
}

.filorga-store-locator .sl-filter-icon,
.filorga-store-locator .sl-select-icon {
  pointer-events: none;
}

.filorga-store-locator .sl-region-field select {
  display: block;
  width: 100%;
  padding: 0 2rem 0 0;
  color: #fff;
  background: transparent;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}

.filorga-store-locator .sl-region-field select option {
  color: #fff;
  background: #171717;
}

.filorga-store-locator .sl-select-icon {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
}

.filorga-store-locator .sl-locator-grid {
  position: relative;
  min-height: 520px;
}

.filorga-store-locator .sl-list-panel,
.filorga-store-locator .sl-map-panel {
  min-width: 0;
  min-height: 0;
}

.filorga-store-locator .sl-pharmacy-row {
  border: 0;
  border-radius: 0;
  color: inherit;
  background: transparent;
  cursor: pointer;
}

.filorga-store-locator .sl-pharmacy-row:hover,
.filorga-store-locator .sl-pharmacy-row:focus-visible {
  background: rgba(255, 255, 255, 0.05);
  outline: none;
}

.filorga-store-locator .sl-pharmacy-row.is-active {
  background: rgba(255, 255, 255, 0.1);
}

.filorga-store-locator .sl-pharmacy-pin {
  display: inline-flex;
  flex: 0 0 auto;
  margin-top: 0.25rem;
  color: rgba(255, 255, 255, 0.4);
  transition: color 160ms ease, transform 160ms ease;
}

.filorga-store-locator .sl-pharmacy-pin.is-active {
  color: #d4af37;
  transform: translateY(-1px);
}

.filorga-store-locator #filorga-store-list {
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.28) transparent;
}

.filorga-store-locator #filorga-store-list::-webkit-scrollbar {
  width: 8px;
}

.filorga-store-locator #filorga-store-list::-webkit-scrollbar-track {
  background: transparent;
}

.filorga-store-locator #filorga-store-list::-webkit-scrollbar-thumb {
  border: 2px solid transparent;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
  background-clip: padding-box;
}

.filorga-store-locator .sl-map-status {
  position: absolute;
  inset: 0;
  z-index: 500;
  background: #171717;
  pointer-events: none;
}

.filorga-store-locator .sl-map-status[hidden] {
  display: none;
}

.filorga-store-locator #filorga-store-map {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: #171717;
}

/* Leaflet essential layout fallback. The official Leaflet stylesheet remains
   enqueued, but these rules keep the map usable if a CDN stylesheet is blocked. */
.filorga-store-locator .leaflet-container {
  position: relative;
  overflow: hidden;
  outline-offset: 1px;
  background: #171717;
  font: 12px/1.5 "Helvetica Neue", Arial, Helvetica, sans-serif;
  -webkit-tap-highlight-color: transparent;
}

.filorga-store-locator .leaflet-pane,
.filorga-store-locator .leaflet-tile,
.filorga-store-locator .leaflet-marker-icon,
.filorga-store-locator .leaflet-marker-shadow,
.filorga-store-locator .leaflet-tile-container,
.filorga-store-locator .leaflet-pane > svg,
.filorga-store-locator .leaflet-pane > canvas,
.filorga-store-locator .leaflet-zoom-box {
  position: absolute;
  left: 0;
  top: 0;
}

.filorga-store-locator .leaflet-map-pane canvas {
  z-index: 100;
}

.filorga-store-locator .leaflet-map-pane svg {
  z-index: 200;
}

.filorga-store-locator .leaflet-tile-pane {
  z-index: 200;
}

.filorga-store-locator .leaflet-overlay-pane {
  z-index: 400;
}

.filorga-store-locator .leaflet-shadow-pane {
  z-index: 500;
}

.filorga-store-locator .leaflet-marker-pane {
  z-index: 600;
}

.filorga-store-locator .leaflet-tooltip-pane {
  z-index: 650;
}

.filorga-store-locator .leaflet-popup-pane {
  z-index: 700;
}

.filorga-store-locator .leaflet-control {
  position: relative;
  z-index: 800;
  pointer-events: auto;
}

.filorga-store-locator .leaflet-top,
.filorga-store-locator .leaflet-bottom {
  position: absolute;
  z-index: 1000;
  pointer-events: none;
}

.filorga-store-locator .leaflet-top {
  top: 0;
}

.filorga-store-locator .leaflet-right {
  right: 0;
}

.filorga-store-locator .leaflet-bottom {
  bottom: 0;
}

.filorga-store-locator .leaflet-left {
  left: 0;
}

.filorga-store-locator .leaflet-control {
  float: left;
  clear: both;
}

.filorga-store-locator .leaflet-right .leaflet-control {
  float: right;
}

.filorga-store-locator .leaflet-top .leaflet-control {
  margin-top: 10px;
}

.filorga-store-locator .leaflet-bottom .leaflet-control {
  margin-bottom: 10px;
}

.filorga-store-locator .leaflet-left .leaflet-control {
  margin-left: 10px;
}

.filorga-store-locator .leaflet-right .leaflet-control {
  margin-right: 10px;
}

.filorga-store-locator .leaflet-tile,
.filorga-store-locator .leaflet-marker-icon,
.filorga-store-locator .leaflet-marker-shadow {
  user-select: none;
  -webkit-user-drag: none;
}

.filorga-store-locator .leaflet-tile {
  visibility: hidden;
  filter: inherit;
}

.filorga-store-locator .leaflet-tile-loaded {
  visibility: inherit;
}

.filorga-store-locator .leaflet-zoom-animated {
  transform-origin: 0 0;
}

.filorga-store-locator .leaflet-zoom-hide {
  visibility: hidden;
}

.filorga-store-locator .leaflet-interactive {
  cursor: pointer;
}

.filorga-store-locator .leaflet-control-zoom,
.filorga-store-locator .leaflet-bar {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

.filorga-store-locator .leaflet-bar a {
  display: block;
  width: 30px;
  height: 30px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  color: #fff;
  background: rgba(0, 0, 0, 0.85);
  text-align: center;
  text-decoration: none;
  font-size: 18px;
  line-height: 30px;
}

.filorga-store-locator .leaflet-bar a:hover,
.filorga-store-locator .leaflet-bar a:focus {
  color: #000;
  background: #fff;
}

.filorga-store-locator .leaflet-bar a:last-child {
  border-bottom: 0;
}

.filorga-store-locator .leaflet-control-attribution {
  padding: 2px 5px;
  color: rgba(255, 255, 255, 0.68);
  background: rgba(0, 0, 0, 0.72);
  font-size: 10px;
}

.filorga-store-locator .leaflet-control-attribution a {
  color: rgba(255, 255, 255, 0.92);
}

.filorga-store-locator .leaflet-tooltip {
  position: absolute;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 0;
  color: #fff;
  background: rgba(0, 0, 0, 0.92);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.45);
  pointer-events: none;
  white-space: nowrap;
}

.filorga-store-locator .leaflet-tooltip-top::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -7px;
  margin-left: -7px;
  border: 7px solid transparent;
  border-top-color: rgba(0, 0, 0, 0.92);
  border-bottom: 0;
}

.filorga-store-locator .sl-marker-wrapper {
  display: flex !important;
  align-items: center;
  justify-content: center;
  border: 0 !important;
  background: transparent !important;
}

.filorga-store-locator .sl-marker-dot {
  display: block;
  border: 2px solid;
  border-radius: 999px;
}

.filorga-store-locator .sl-basemap-tiles {
  filter: brightness(1.55) contrast(1.05) saturate(0.9);
}

.filorga-store-locator .sl-labels-tiles {
  filter: brightness(1.9) contrast(1.15);
}

@media (max-width: 767px) {
  .filorga-store-locator .sl-panel.is-mobile-hidden {
    display: none !important;
  }

  .filorga-store-locator .sl-list-panel,
  .filorga-store-locator .sl-map-panel {
    grid-column: 1 / -1;
    width: 100%;
    height: 100%;
  }
}

@media (min-width: 768px) {
  body.page-template-page-store-locator > header img,
  body.page-store-locator > header img {
    height: 3.5rem;
  }

  .filorga-store-locator .sl-list-panel {
    display: flex !important;
  }

  .filorga-store-locator .sl-map-panel {
    display: block !important;
  }
}
