/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

/* ── SelectDropdownComponent ── */
.select-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: 4px;
  background: white;
  border: 1px solid #E5DFD4;
  border-radius: 4px;
  box-shadow: var(--shadow-pop, 0 4px 16px rgba(61,58,55,0.14));
  z-index: 50;
  max-height: 240px;
  overflow-y: auto;
}

.select-dropdown.hidden { display: none !important; }

.select-dropdown-searchable { overflow: hidden; display: flex; flex-direction: column; }

.select-dropdown-search {
  width: 100%;
  padding: 8px 14px;
  font-size: 0.875rem;
  border: 0;
  border-bottom: 1px solid #E5DFD4;
  outline: none;
  flex-shrink: 0;
}

.select-dropdown-options { overflow-y: auto; flex: 1; max-height: 200px; }

.select-dropdown-item {
  display: block;
  width: 100%;
  padding: 10px 14px;
  font-size: 0.875rem;
  text-align: left;
  color: #3D3A37;
  background: transparent;
  border: none;
  cursor: pointer;
}

.select-dropdown-item:hover { background: #FAF6EF; }
.select-dropdown-item.hidden { display: none !important; }

/* ── Mapa: cluster de proveedores (dirección v2) ── */
.cd-cluster {
  width: 36px; height: 36px; border-radius: 50%;
  background: #0E7C86; color: #fff;
  border: 3px solid #fff;
  box-shadow: 0 1px 4px rgba(42,39,36,.3);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 13px;
  font-family: var(--font-sans);
}

/* Mapa: tiles OSM en gris suave (look tipo Positron sin cambiar de proveedor) */
#map .leaflet-tile-pane { filter: grayscale(1) brightness(1.06) contrast(0.92); }

/* Ubicación del usuario: punto azul con halo, como en mapas nativos */
.cd-me { width: 18px; height: 18px; border-radius: 9999px; background: #2F6BFF; border: 3px solid #fff;
  box-shadow: 0 0 0 1px rgba(47,107,255,.35), 0 1px 4px rgba(0,0,0,.25); }

/* Botón "Mi ubicación" sobre el mapa */
.cd-locate { width: 34px; height: 34px; display: flex; align-items: center; justify-content: center;
  background: #fff; color: #2A2724; cursor: pointer; }
.cd-locate:hover { background: #F7F4EE; }
.cd-locate.is-loading { color: #75706A; }
