/* ===== BASE ===== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Nunito", "Segoe UI", sans-serif;
  overflow: hidden;
}

/* ===== MAPA ===== */
/*#map {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}*/

/* ===== BARRA SUPERIOR ===== */
.topbar {
  position: fixed;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 10px;
  width: min(96vw, 860px);
}

/* ===== BUSCADOR ===== */
.search-wrapper {
  display: flex;
  align-items: center;
  background: white;
  border-radius: 50px;
  padding: 9px 16px;
  gap: 9px;
  flex: 1;
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.16);
  border: 1.5px solid rgba(0, 0, 0, 0.05);
  transition: box-shadow 0.2s;
  max-height: 40px;
}
.search-wrapper:focus-within {
  box-shadow: 0 4px 22px rgba(0, 0, 0, 0.22);
}
.search-wrapper svg {
  flex-shrink: 0;
  color: #999;
}
.search-wrapper input {
  border: none;
  outline: none;
  font-size: 14.5px;
  color: #222;
  width: 100%;
  background: transparent;
  font-family: inherit;
}
.search-wrapper input::placeholder {
  color: #bbb;
}
.clear-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 2px;
  display: flex;
  align-items: center;
  color: #bbb;
  flex-shrink: 0;
  transition: color 0.15s;
}
.clear-btn:hover {
  color: #555;
}

/* ===== GRUPO DE FILTROS ===== */
.filter-group {
  display: flex;
  align-items: center;
  /*background: white;*/
  border-radius: 50px;
  padding: 5px 8px;
  gap: 1px;
  /*box-shadow: 0 2px 14px rgba(0,0,0,0.16);*/
  /*border: 1.5px solid rgba(0,0,0,0.05);*/
}

.filter-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: white;
  border: none;
  cursor: pointer;
  padding: 6px 9px;
  border-radius: 15px;
  transition:
    background 0.15s,
    transform 0.1s;
  gap: 2px;
  /*min-width: 42px;*/
  width: 50px;
  height: 40px;
  margin-right: 5px;
}
.filter-btn:hover {
  background: #f3f4f6;
  /*background: #e5e7eb; */
  /*background: #364C67; */
  transform: translateY(-1px);
}
.filter-btn.active {
  /*background: #111; */
  /*background: #364C67; */
  /*background: #9AE29B; */
  /*background: #C7C7C7; */
  background: #364c67;

  color: white;
}
.filter-btn.active img {
  filter: invert(1);
  filter: brightness(0) invert(1);
}

.btn-icon {
  font-size: 17px;
  line-height: 1;
}
.btn-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #666;
  text-transform: uppercase;
  white-space: nowrap;
}
.filter-btn.active .btn-label {
  color: white;
}

.filter-sep {
  width: 10px;
  height: 26px;
  background: none;
  margin: 0 3px;
  flex-shrink: 0;
}

/* ===== PANEL LATERAL ===== */
#encabezado-menu {
  color: #364c67;
  font-size: 1.2rem;
}

.side-panel {
  position: fixed;
  top: 76px;
  left: 14px;
  z-index: 90;
  width: 376px;
  background: white;
  border-radius: 16px;
  box-shadow: 0 4px 28px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
  transition:
    opacity 0.2s,
    transform 0.2s;

  overflow-y: auto;
  overflow-x: hidden;
  max-height: calc(100vh - 100px);
  white-space: normal;
}

/*.chips::-webkit-scrollbar {
  height: 4px;
}

.chips::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

.chips::-webkit-scrollbar-thumb {
  background: #28a745;
  border-radius: 4px;
}*/

/*.chips {
  display: flex;
  flex-wrap: nowrap;     
  overflow-x: auto;
  gap: 6px;
  padding: 4px 0 8px 0;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
  white-space: nowrap;
}*/

.side-panel.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 17px 11px;
  border-bottom: 1px solid #f0f0f0;
}
.panel-header h3 {
  font-size: 15px;
  font-weight: 800;
  color: #111;
}
.panel-close {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 17px;
  color: #999;
  padding: 2px 5px;
  border-radius: 50%;
}
.panel-close:hover {
  background: #f3f4f6;
}

.panel-body {
  padding: 13px 17px 17px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.filter-section > label {
  display: block;
  font-size: 10.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #364c67;
  margin-bottom: 8px;
}
.filter-section {
  padding-bottom: 1rem;
}

/* Chips */
/*.chips { 
  display: flex; 
  flex-wrap: wrap; 
  gap: 6px; 
}
.chip {
  display: flex; 
  align-items: center; 
  gap: 5px;
  padding: 6px 11px;
  border-radius: 50px;
  border: 1.5px solid #e5e7eb;
  background: white; cursor: pointer;
  font-size: 12.5px; font-weight: 600; color: #444;
  transition: all .15s;
}*/

.chips {
  display: flex;
  flex-direction: column; /* Cambia a columna */
  gap: 8px; /* Espacio entre chips */
  width: 100%; /* Ocupa todo el ancho */
}

.chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1.5px solid #e5e7eb;
  background: white;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: #444;
  transition: all 0.15s;
  width: 100%; /* Ocupa todo el ancho disponible */
}

.chip:hover {
  border-color: #bbb;
  background: #fafafa;
}

/*.chip img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}*/
.chip.selected {
  /*background: #111; 
  border-color: #111; */
  /*background: #364C67; */
  /*background: #C7C7C7; */
  background: #364c67;
  border-color: #364c67;
  color: white;
  /*color: #364C67; */
}

.chip.selected img {
  filter: invert(1);
}

.chip-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* Toggle */
.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2px 0;
}
.toggle-row span {
  font-size: 13.5px;
  color: #333;
  font-weight: 500;
}
.toggle {
  position: relative;
  width: 40px;
  height: 22px;
}
.toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}
.toggle-slider {
  position: absolute;
  inset: 0;
  background: #ddd;
  border-radius: 50px;
  cursor: pointer;
  transition: background 0.2s;
}
.toggle-slider:before {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  left: 3px;
  top: 3px;
  background: white;
  border-radius: 50%;
  transition: transform 0.2s;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}
.toggle input:checked + .toggle-slider {
  background: #22c55e;
}
.toggle input:checked + .toggle-slider:before {
  transform: translateX(18px);
}

/* Reset btn */
.btn-reset {
  width: 100%;
  padding: 9px;
  background: #364c67;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  margin-top: 2px;
  transition: background 0.15s;
  color: white;
  /*background-color: #364C67;*/
}
.btn-reset:hover {
  background: #e5e7eb;
  color: #364c67;
}

/* ===== BOTONES DE ZOOM ===== */
.zoom-controls-right {
  position: fixed;
  bottom: 30px; /* Separado desde abajo */
  right: 18px; /* Misma distancia que el botón de geo */
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Estilo para los botones de zoom */
.zoom-btn {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: white;
  border: none;
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: bold;
  color: #364c67;
  transition:
    transform 0.15s,
    box-shadow 0.15s,
    background 0.15s;
}

.zoom-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  /*background: #28a745;*/
  color: white;
  transform: scale(1.08);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.zoom-btn:active {
  transform: scale(0.95);
}

/* ===== BOTÓN GEO ===== */
.btn-geo-float {
  position: fixed;
  /*bottom: 28px;*/
  right: 18px;
  z-index: 100;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: white;
  border: none;
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  transition:
    transform 0.15s,
    box-shadow 0.15s;
}

.btn-geo-float:hover {
  transform: scale(1.08);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

/* Responsive para móviles */
@media (max-width: 580px) {
  .zoom-controls-right {
    bottom: 80px;
    right: 10px;
  }

  .zoom-btn {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }

  .btn-geo-float {
    bottom: 18px;
    right: 10px;
    width: 40px;
    height: 40px;
  }
}

/*.zoom-controls {
  position: fixed;
  bottom: 28px;
  left: 18px;
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.zoom-btn {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: white;
  border: none;
  box-shadow: 0 2px 14px rgba(0,0,0,0.2);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: bold;
  color: #364C67;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}

.zoom-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 4px 20px rgba(0,0,0,0.25);
  background: #28a745;
  color: white;
}

.zoom-btn:active {
  transform: scale(0.95);
}


@media (max-width: 580px) {
  .zoom-controls {
    bottom: 18px;
    left: 10px;
  }
  
  .zoom-btn {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }
}
*/
/* ===== OCULTAR SIDEBAR ORIGINAL ===== */
.sidebar {
  display: none !important;
}
#panel {
  display: none !important;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 580px) {
  .topbar {
    top: 8px;
    gap: 5px;
  }
  .btn-label {
    display: none;
  }
  .filter-btn {
    min-width: 34px;
    padding: 6px 6px;
  }
  .side-panel {
    left: 8px;
    right: 8px;
    width: auto;
  }
}

/* ESTILOS PARA EL ELIDER PUNTOS DE CARGA */
.slider-container {
  max-width: 400px;
  /*margin: 2rem auto;
  padding: 1.5rem;*/
  background: #f8f9fa;
  border-radius: 16px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.slider-title {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #2c3e50;
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  font-weight: 600;
}

.slider-wrapper {
  padding: 0 5px;
}

/* Estilo del slider */
.slider {
  width: 100%;
  height: 8px;
  border-radius: 4px;
  background: linear-gradient(to right, #28a745, #ffc107, #dc3545);
  outline: none;
  -webkit-appearance: none;
}

.slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 24px;
  height: 24px;
  background: white;
  border-radius: 50%;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  border: 2px solid #28a745;
  cursor: pointer;
  transition: transform 0.1s;
}

.slider::-webkit-slider-thumb:hover {
  transform: scale(1.1);
  background: #28a745;
}

/* Marcadores */
.slider-markers {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  padding: 0 5px;
}

.slider-markers span {
  color: #6c757d;
  font-size: 0.8rem;
  font-weight: 500;
  position: relative;
}

.slider-markers span::before {
  content: "";
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 8px;
  background: #ced4da;
}

.slider-value {
  /*margin-top: 1.5rem;*/
  text-align: center;
  /*padding: 0.75rem;*/
  /*background: white;*/
  border-radius: 8px;
  /*border: 1px solid #e9ecef;*/
  color: #495057;
}

.slider-value strong {
  color: #28a745;
  font-size: 1.2rem;
  margin-left: 5px;
}
#valorSeleccionado,
#valorSeleccionado strong {
  font-size: 0.8rem;
}

/* SECCIÓN DE SERVICIOS */
.service-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  border-bottom: 1px solid #f0f0f0;
  cursor: pointer;
  transition: background-color 0.2s;
}

.service-item:hover {
  background-color: #f5f5f5;
}

.service-item.selected {
  background-color: #f0f8f0;
}

.checkbox-emoji {
  font-size: 1.3rem;
  transition: transform 0.2s;
}

.service-item:hover .checkbox-emoji {
  transform: scale(1.2);
}

/* ===== BARRAS DE SCROLL PERSONALIZADAS ===== */
/* Color: #364C67 */

/* Global para Webkit (Chrome, Safari, Edge) */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  background: #364c67;
  border-radius: 10px;
  transition: background 0.2s;
}

::-webkit-scrollbar-thumb:hover {
  background: #2a3a4f;
}

/* Para Firefox */
* {
  scrollbar-width: thin;
  scrollbar-color: #364c67 #f1f1f1;
}

/* CAMBIO SCROLL  */
/* Panel lateral */
.side-panel,
#side-panel {
  scrollbar-width: thin;
  scrollbar-color: #364c67 #f1f1f1;
}

.side-panel::-webkit-scrollbar,
#side-panel::-webkit-scrollbar {
  width: 6px;
}

.side-panel::-webkit-scrollbar-track,
#side-panel::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 8px;
}

.side-panel::-webkit-scrollbar-thumb,
#side-panel::-webkit-scrollbar-thumb {
  background: #364c67;
  border-radius: 8px;
}

/* Chips (scroll horizontal) */
.chips {
  scrollbar-width: thin;
  scrollbar-color: #364c67 #f1f1f1;
}

.chips::-webkit-scrollbar {
  height: 4px;
}

.chips::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

.chips::-webkit-scrollbar-thumb {
  background: #364c67;
  border-radius: 4px;
}

/* Lista de servicios */
.services-list {
  scrollbar-width: thin;
  scrollbar-color: #364c67 #f1f1f1;
}

.services-list::-webkit-scrollbar {
  width: 4px;
}

.services-list::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

.services-list::-webkit-scrollbar-thumb {
  background: #364c67;
  border-radius: 4px;
}

/* Css para el boton de eliminar ruta  */
/* Estilo para el botón de eliminar ruta (flotante) */
.btn-ruta {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: white;
  border: none;
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #dc3545;
  transition:
    transform 0.15s,
    box-shadow 0.15s,
    background 0.15s;
  margin-bottom: 8px;
}

.btn-ruta:hover {
  transform: scale(1.08);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  background: #dc3545;
  color: white;
}

/* Estilo para el botón dentro del modal */
.btn-outline-red {
  background: transparent;
  border: 2px solid #dc3545;
  color: #dc3545;
  padding: 10px;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.2s;
  cursor: pointer;
}

.btn-outline-red:hover {
  background: #dc3545;
  color: white;
}

/* Estilo para el panel lateral */
.btn-ruta-panel {
  width: 100%;
  padding: 9px;
  background: transparent;
  border: 2px solid #364c67;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  margin-top: 5px;
  /*color: #dc3545;*/
  color: #364c67;
  transition: all 0.15s;
}

.btn-ruta-panel:hover {
  /*background: #dc3545;*/
  /*background: #364C67;*/
  /*color: white;*/
  border: 2px solid #dc3545;
  color: #dc3545;
}
.ruta-section {
  padding-bottom: 1rem;
  border-radius: 10px;
  border: 2px solid #364c67;
}

.ruta-section > label {
  padding-top: 1rem;
  display: block;
  font-size: 10.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #364c67;
  margin-bottom: 8px;
}
.ruta-section > p {
  text-align: center;
  /*padding-left: 1rem;*/
  /*  display: block;
  font-size: 10.5px; font-weight: 800;
  text-transform: uppercase; letter-spacing: .06em;
  color: #364C67; margin-bottom: 8px;*/
}

/* ######## MENSAJITO CARGANDO TOAST ######## */
#toast-cargando {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translateX(-50%);
  background: #364c67;
  color: white;
  padding: 12px 24px;
  border-radius: 50px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  z-index: 2000;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 500;
}

.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #28a745;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 580px) {
  .toast-cargando {
    top: 50%;
    padding: 8px 16px;
    font-size: 12px;
  }

  .spinner {
    width: 16px;
    height: 16px;
  }
}

/* ########  ######## */
.iconos-modal-1 {
  max-width: 18px;
}

.iconos-servicios {
  max-width: 18px;
}

/*OVERLAY*/
#map-wrap {
  position: fixed;
  inset: 0;
  z-index: 0;
}

#map {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

#mapOverlay {
  position: absolute;
  inset: 0;
  z-index: 15;
  background: rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.25s ease;
  cursor: pointer;
}

.map-overlay-text {
  color: #fff;
  font-size: 18px;
  line-height: 1.4;
  text-align: center;
  padding: 20px 28px;
  max-width: 760px;
}

#mapOverlay.oculto {
  opacity: 0;
  pointer-events: none;
}

@media (max-width: 768px) {
  #btn-ultra {
    display: none;
  }
  #btn-rapida {
    display: none;
  }
  #btn-lenta {
    display: none;
  }
  #btn-ccs {
    display: none;
  }
  #btn-chademo {
    display: none;
  }
  #btn-type2 {
    display: none;
  }
}

.vehicle-options {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 12px;
}

.vehicle-card {
  flex: 1;
  border: 1px solid #d9d9d9;
  background: #fff;
  border-radius: 14px;
  padding: 12px 10px;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s ease;
}

.vehicle-card img {
  height: 20px;
  width: auto;
  display: block;
  margin: 0 auto 6px;
}

.vehicle-card span {
  display: block;
  font-size: 12px;
  font-weight: 600;
}

.vehicle-card.active {
  border-color: #00a443;
  box-shadow: 0 0 0 2px rgba(0, 164, 67, 0.15);
}
