/* Estilos para el mapa personalizado al estilo Interpon */
.content-wrapper {
    width: 100%;
    position: relative;
    height: 100%;
}

.app-homo-store-map .inner-wrapper {
    margin: 0 auto;
    width: 100%;
    height: 100%;
}

.grid {
    display: flex;
    flex-wrap: wrap;
    height: 100%;
}

.col {
    position: relative;
    box-sizing: border-box;
    height: 100%; /* Asegurar que las columnas ocupen toda la altura */
}

.col-m-5 {
    width: 41.66667%;
}

.col-m-7 {
    width: 58.33333%;
}

.no-padding-right {
    padding-right: 0;
}

.no-padding-left {
    padding-left: 0;
}

/* Panel lateral */
.side-panel-wrapper {
  background-color: #f5f5f5;
  height: 100%;
  position: relative;
  min-height: 600px;
  display: flex;
  flex-direction: column;
  overflow: hidden; 
}

.m55-store-search {
    padding: 20px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Barra de búsqueda */
.search-input-wrapper {
    margin-bottom: 20px;
    flex-shrink: 0;
}

.text-label {
    display: block;
    color: #333;
    margin-bottom: 8px;
    font-weight: 500;
}

.required {
    color: #e74c3c;
    margin-left: 2px;
}

.input-wrapper {
    position: relative;
    display: flex;
}

.text-input {
    width: 100%;
    padding: 12px 45px 12px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.text-input:focus {
    outline: none;
    border-color: #2c71b8;
    box-shadow: 0 0 0 2px rgba(44, 113, 184, 0.2);
}

.geo-location-button {
    position: absolute;
    right: 0;
    top: 0;
    width: 45px;
    height: 100%;
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
}

.geo-location-button:hover {
    color: #2c71b8;
}

.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    max-height: 200px;
    overflow-y: auto;
    background: white;
    border: 1px solid #ddd;
    border-top: none;
    border-radius: 0 0 4px 4px;
    z-index: 100;
    list-style: none;
    padding: 0;
    margin: 0;
    display: none;
}

.search-suggestions.active {
    display: block;
}

.search-suggestion-item {
    padding: 10px 12px;
    cursor: pointer;
    font-size: 14px;
}

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

/* Botones de acción */
.call-to-actions {
    display: flex;
    gap: 10px;
    margin: 20px 0px;
    flex-shrink: 0;
}

.a122-primary-button {
    background-color: #2c71b8;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 10px 15px;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s;
}

.a122-primary-button:hover {
    background-color: #205a94;
}

.a122-primary-button.is-small {
    padding: 8px 12px;
    font-size: 13px;
}

.a122-primary-button .icon {
    margin-right: 8px;
    width: 16px;
    height: 16px;
    display: inline-block;
}

.a122-primary-button svg {
    fill: currentColor;
    width: 100%;
    height: 100%;
}

/* Contenedor de resultados */
.results-container {
  flex: 1;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: calc(100% - 120px);
}

/* No hay resultados */
.store-search-no-results {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 30px 20px;
    height: 100%;
}

.store-search-no-results .icon {
    width: 48px;
    height: 48px;
    margin-bottom: 20px;
    color: #999;
}

.no-results-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #333;
}

.no-results-description {
    font-size: 14px;
    color: #666;
}

/* Resultados de búsqueda */
.store-search-results {
    display: none;
    flex: 1;
    overflow: hidden;
    flex-direction: column;
    height: 100%;
}

.search-results-title {
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    color: #666;
    margin-bottom: 15px;
    flex-shrink: 0;
}

.search-results {
    flex: 1;
    overflow-y: auto; 
    display: flex;
    flex-direction: column;
    height: 300px; 
    margin-top: 20px;
}

.inner-search-results {
    flex: 1;
    overflow-y: auto;
    padding-right: 10px;
    height: calc(100% - 40px); /* Ajustar para los botones inferiores */
}

.store-card {
    background: white;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    padding: 15px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.3s;
}

.store-card:hover {
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.store-card.active {
    border-left: 3px solid #2c71b8;
}

.store-card-title {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 8px;
    color: #2c71b8;
}

.store-card-address {
    font-size: 14px;
    color: #555;
    margin-bottom: 8px;
}

.store-card-contact {
    font-size: 13px;
    color: #777;
}

.store-card-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 10px;
}

.store-card-category {
    font-size: 11px;
    background: #e9f2fb;
    color: #2c71b8;
    padding: 2px 6px;
    border-radius: 3px;
}

/* Botones para cargar más */
.load-more-container {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    flex-shrink: 0;
    height: 40px; /* Altura fija para los botones */
}

.a2-text-link {
    background: none;
    border: none;
    padding: 0;
    color: #2c71b8;
    font-size: 14px;
    cursor: pointer;
    text-decoration: underline;
}

.a2-text-link:hover {
    color: #205a94;
}

.a2-text-link.is-reversed {
    display: flex;
    align-items: center;
}

/* Filtros */
.store-search-filters {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: white;
    z-index: 10;
    transition: left 0.3s ease;
    display: flex;
    flex-direction: column;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    visibility: hidden;
}

.store-search-filters.show-filters {
    left: 0;
    visibility: visible;
}

.filters-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    flex-shrink: 0;
}

.a1-heading .heading-title {
    font-size: 18px;
    font-weight: bold;
    margin: 0;
    color: #333;
}

.a8-icon-button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    color: #666;
}

.a8-icon-button:hover {
    color: #333;
}

.a8-icon-button .icon {
    width: 20px;
    height: 20px;
}

.inner-filters {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.a32-select-menu {
    margin-bottom: 20px;
}

.select-menu-wrapper {
    position: relative;
}

.select-menu-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 10px 15px;
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    text-align: left;
}

.select-menu-label .chevron {
    width: 12px;
    height: 12px;
    transition: transform 0.3s;
}

.select-menu-label[aria-expanded="true"] .chevron {
    transform: rotate(180deg);
}

.select-menu-list {
    background: white;
    border: 1px solid #ddd;
    border-top: none;
    border-radius: 0 0 4px 4px;
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.3s ease;
}

.a32-select-menu.is-open .select-menu-list {
    max-height: 300px;
}

.select-menu-list-wrapper {
    padding: 10px 0;
}

.select-menu-option {
    padding: 5px 15px;
}

/* Checkbox personalizado */
.a15-checkbox {
    position: relative;
}

.checkbox-label-wrapper {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.checkbox-input {
    position: absolute;
    opacity: 0;
}

.checkbox {
    width: 18px;
    height: 18px;
    border: 1px solid #ccc;
    border-radius: 3px;
    margin-right: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.checkbox-icon {
    display: none;
    width: 12px;
    height: 12px;
    color: white;
}

.checkbox-input:checked + .checkbox {
    background-color: #2c71b8;
    border-color: #2c71b8;
}

.checkbox-input:checked + .checkbox .checkbox-icon {
    display: block;
}

.checkbox-label-title {
    font-size: 14px;
    color: #333;
}

/* Footer de filtros */
.filters-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-top: 1px solid #eee;
    flex-shrink: 0;
}

/* Indicador de carga */
.loading-indicator {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s, visibility 0.3s;
}

.loading-indicator.active {
    visibility: visible;
    opacity: 1;
}

/* Para mostrar/ocultar los filtros */
.store-search-filters {
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.store-search-filters.show-filters {
    transform: translateX(0);
}

.loading-indicator svg {
    width: 50px;
    height: 50px;
    stroke: #2c71b8;
}

/* Mapa */
.map-wrapper {
    height: 100%; /* Asegurar que el contenedor del mapa ocupe toda la altura */
    position: relative;
}

#custom-store-map {
    width: 100%;
    height: 100%;
    min-height: 600px;
    position: absolute;
    top: 0;
    left: 0;
}

/* Info window personalizada */
.gm-style .gm-style-iw-c {
    padding: 15px !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1) !important;
    border-radius: 8px !important;
}

.info-window {
    max-width: 280px;
}

.info-window-title {
    font-size: 16px;
    font-weight: bold;
    color: #2c71b8;
    margin-bottom: 10px;
}

.info-window-content {
    font-size: 13px;
    color: #555;
}

.info-window-address {
    margin-bottom: 10px;
}

.info-window-contact {
    font-size: 12px;
    color: #777;
}

/* Estilos para el agrupador de marcadores */
.cluster-marker {
    color: #fff;
    background: #2c71b8;
    border-radius: 50%;
    padding: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    border: 2px solid white;
}

/* Para asegurar que el contenedor principal tenga altura */
.s-no-padding {
    height: 100%;
    min-height: 600px;
}

/* Estilos adicionales para asegurar la misma altura en ambos lados */
body, html, main {
    height: 100%;
}

/* Responsive */
@media (max-width: 768px) {
    .grid {
        flex-direction: column;
        height: auto;
    }
    
    .col-m-5, .col-m-7 {
        width: 100%;
        height: auto;
    }
    
    .no-padding-right {
        padding-right: 15px;
    }
    
    .no-padding-left {
        padding-left: 15px;
    }
    
    .side-panel-wrapper {
        min-height: auto;
        height: auto;
    }
    
    .map-wrapper {
        height: 400px;
        position: relative;
    }
    
    #custom-store-map {
        position: relative;
        height: 400px;
    }
    
    .m55-store-search {
        height: auto;
    }
}
