/* 
---------------------------------------
  1) Layout Principal (Flex)
---------------------------------------
*/
#ls-wrapper.ls-flex-layout {
  display: flex;
  gap: 20px;
  width: 100vw; 
  margin: 0 auto;
  box-sizing: border-box;
  background-color: #e3e3e3;
}

/*
  Columna Izquierda: Lista / Acordeón
  - flex: 1 => Toma el espacio de 1 parte
*/
#ls-stores-list {
  flex: 1;
  background-color: #e3e3e3;
  padding: 1rem;
  box-sizing: border-box;
  max-height: 600px;
  overflow-y: auto;
  padding-right: 10px;
}

/*
  Columna Derecha: Mapa 
  - flex: 1 => Toma el espacio de 1 parte (ajusta a 2 si quieres más ancho)
*/
#ls-map-container.ls-right-column {
  flex: 4;
  position: relative;
  box-sizing: border-box;
}

/* 
  Mapa: ancho 100% de su contenedor, altura 600px 
  -> Si deseas ocupar pantalla completa, podrías usar height: 100vh
*/
#ls-gmap.ls-map {
  width: 100%;
  height: 600px;
  background: #eee;
  box-sizing: border-box;
}

/*
---------------------------------------
  2) Acordeón por País (Country Blocks)
---------------------------------------
*/
.ls-country-block {
  margin-bottom: 15px;
}

/* Cabecera del país */
.ls-country-header {
  cursor: pointer;
  background: #e3e3e3;
  padding: 0px 12px 0px 7px;
  font-weight: bold;
  text-transform: capitalize;
}

/* Contenido del acordeón (tiendas del país) */
.ls-country-content {
  padding: 10px;
  display: none; /* Comienza oculto, el JS lo abrirá */
}

/*
---------------------------------------
  3) Tarjetas de Tienda
---------------------------------------
*/
.ls-store-card {
  border: 1px solid #57D939 !important;
  margin-bottom: 10px;
  padding: 15px;
  border-radius: 15px;
  transition: all 0.3s ease-in-out;
}

/* Título de la tienda */
.ls-store-card h3 {
  font-family: "Helvetica", sans-serif;
  font-weight: 700;
  color: #000;
  margin: 0 0 12px 0;
  font-size: 20px;
}

/* Contenedor de dirección y teléfono */
.ls-address, 
.ls-phone {
  font-family: "Arial", sans-serif;
  font-size: 14px;
  margin-bottom: 8px;
  color: #333;
}

/* Ajustes del botón */
.ls-book-btn {
  background-color: rgb(46, 45, 44);
  color: rgb(255, 255, 255);
  padding: 5px;
  font-size: 16px;
  font-weight: 700;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  width: 100%;
  text-transform: uppercase;
  margin-top: 5px;
  font-family: "Arial", sans-serif;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  transition: background-color 0.3s ease;
}

.ls-book-btn:hover {
  background-color: #57D939;
}

/* Ajustes para los iconos */
.ls-clickable .dashicons {
  color: #000;
  font-size: 18px;
  margin-top: 3px;
}

/* Ajuste del contenedor de texto dentro de los elementos clickeables */
.ls-address-text,
.ls-phone-text {
  line-height: 1.4;
}

/*
---------------------------------------
  4) Botón "Book Appointment"
---------------------------------------
*/


/*
---------------------------------------
  5) (Opcional) Estilos para <ul> / <li>
     si manejas la lista de forma distinta
---------------------------------------
*/
#ls-stores-list ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

#ls-stores-list li {
  border: 1px solid #ccc;
  margin-bottom: 10px;
  padding: 10px;
  cursor: pointer;
}

#ls-stores-list li:hover {
  background: #f9f9f9;
}

/* Enlaces (tags) dentro del contenedor del mapa en RGB(113,253,1) */
#wpsl-gmap a {
  color: rgb(113,253,1) !important;
  outline: none !important;
}

:where(.wp-site-blocks *:focus) {
  outline: none !important;
}


/*
---------------------------------------
  6) ajustes perzonalizados
---------------------------------------
*/
#ls-search-input {
  padding: 10px 10px 10px 35px;
  border-radius: 20px;
  min-width: 350px;
  border: 1px solid #ccc;
  background-color: #e3e3e3;
}

.ls-search-wrapper {
  position: relative;
  width: 100%;
}

.ls-search-wrapper .dashicons {
  position: absolute;
  left: 10px;
  top: 35%;
  transform: translateY(-50%) scaleX(-1);
  color: #666;
  z-index: 1;
  font-size: 26px;
}

#ls-search-input {
  padding-left: 30px !important;
}

.ls-country-divider {
  background-color: grey !important;
  height: 2px;
}

.ls-studio-count {
  font-size: 14px;
  color: #000;
  position: relative;
  top: -12px;
  font-weight: 200;
  /* otros estilos que necesites */
}

.ls-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ls-toggle-arrow {
    transition: transform 0.3s ease;
}

.ls-country-header.active .ls-toggle-arrow {
    transform: rotate(0deg) !important;
}


.ls-address {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.ls-address .dashicons {
  flex-shrink: 0;
  margin-top: 2px;
}

.ls-address-text {
  flex: 1;
}

.ls-search-wrapper {
  position: relative;
}

.ls-search-suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  max-height: 300px;
  overflow-y: auto;
  z-index: 1000;
  display: none;
  font-size: 11px;
}

.ls-suggestion {
  padding: 0px 27px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  background-color: #e3e3e3;
}

.ls-suggestion:hover {
  background-color: #f5f5f5;
}

.ls-suggestion .dashicons {
  color: #666;
}

.ls-suggestion.country {
  font-weight: bold;
}

.ls-suggestion.store {
  font-size: 13px;
    margin-left: 10px;
}

.ls-alert {
    position: relative;
    padding: 12px 35px 12px 15px;
    margin: 10px 0;
    border-radius: 4px;
    font-size: 14px;
}

.ls-alert-warning {
    background-color: #e3e3e3
    border: 1px solid #ffeeba;
    color: #856404;
}

.ls-alert-info {
    background-color: #d1ecf1;
    border: 1px solid #bee5eb;
    color: #0c5460;
}

.ls-alert-close {
    position: absolute;
    right: 10px;
    top: 10px;
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    color: inherit;
    opacity: 0.7;
}

.ls-alert-close:hover {
    opacity: 1;
}

#ls-distance-message {
    margin-top: 10px;
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}


.ls-map-loader {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.ls-spinner {
  width: 50px;
  height: 50px;
  border: 5px solid #f3f3f3;
  border-top: 5px solid #57D939;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Estilizar scrollbar */
#ls-stores-list::-webkit-scrollbar {
    width: 8px;
}

#ls-stores-list::-webkit-scrollbar-track {
    background: #e3e3e3;
}

#ls-stores-list::-webkit-scrollbar-thumb {
    background: #aaa;
    border-radius: 4px;
}

#ls-stores-list::-webkit-scrollbar-thumb:hover {
    background: #999;
}

/* Para Firefox */
#ls-stores-list {
    scrollbar-width: thin;
    scrollbar-color: #aaa #e3e3e3;
}

/* Estilos responsive */
@media screen and (max-width: 768px) {
    #ls-wrapper.ls-flex-layout {
        flex-direction: column;
        gap: 10px;
    }

    #ls-stores-list {
        max-height: none; /* Quitar altura máxima en móvil */
        overflow-y: visible;
    }

    #ls-map-container.ls-right-column {
        flex: none;
    }

    #ls-gmap.ls-map {
        height: 400px; /* Altura más pequeña para móvil */
    }
}

.ls-toggle-mapdiv{
  margin-bottom: 40px ;
  font-size: 12px !important;
  font-weight: 300;
}

.ls-toggle-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.ls-toggle-label input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    border: 1px solid #000;
    border-radius: 2px;
    margin: 0;
    cursor: pointer;
    position: relative;
    background-color: #e3e3e3;
}

.ls-toggle-label input[type="checkbox"]:checked {
    background-color: #e3e3e3;
}

.ls-toggle-label input[type="checkbox"]:checked::after {
    content: '✓';
    position: absolute;
    color: #000;
    font-size: 12px;
    left: 2px;
    top: -1px;
}

.ls-toggle-text {
    font-size: 12px;
    font-weight: 300;
}

.ls-toggle-mapdiv {
    margin-bottom: 40px;
}