/* =============================================
   Store Locator - Estilos Frontend
   ============================================= */

.rgsl-section {
    padding: 0px 0;
}

.rgsl-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Layout principal */
.rgsl-layout {
    display: flex;
    gap: 0;
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

/* Imagen de la sucursal */
.rgsl-map-wrapper {
  flex: 0 0 60%;
  /* max-width: 62%; */
  position: relative;
  height: 280px;
  overflow: hidden;
  background: #f0f0f0;
  display: flex;
  justify-content: center; /* horizontal */
  align-items: center;     /* vertical */
}

.rgsl-map-wrapper img {
  width: 100% !important;
  /* max-height: 100%; */
  object-fit: contain;
}

.rgsl-location-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-color: #f0f0f0;
    display: none;
}

.rgsl-location-image.active {
    display: block;
}

/* Lista de sucursales */
.rgsl-list-wrapper {
    flex: 0 0 38%;
    display: flex;
    flex-direction: column;
    border-left: 1px solid #f0f0f0;
    overflow: hidden;
}

.rgsl-list {
    list-style: none;
    margin: 0;
    padding: 0;
    overflow-y: auto;
    flex: 1;
    max-height: 460px;
}

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

.rgsl-list::-webkit-scrollbar-track {
    background: #f8f9fa;
}

.rgsl-list::-webkit-scrollbar-thumb {
    background: #d0d0d0;
    border-radius: 2px;
}

/* Item de la lista */
.rgsl-item {
    display: flex;
    align-items: top !important;
    padding: 18px 20px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.15s ease, border-left-color 0.15s ease;
    border-left: 3px solid transparent;
    position: relative;
}

.rgsl-item:last-child {
    border-bottom: none;
}

.rgsl-item:hover {
    background: #f8f9fa;
    border-left-color: #c0c0c0;
}

.rgsl-item.active {
    background: #f1f1f1;
    border-left-color: #1a1a2e;
}

/* Número del item */
.rgsl-item-number {
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #e8e8e8;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 600;
    margin-right: 14px;
    transition: background 0.15s, color 0.15s;
    flex-shrink: 0;
}

.rgsl-item.active .rgsl-item-number {
    background: #1a1a2e;
    color: #ffffff;
}

/* Contenido del item */
.rgsl-item-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.rgsl-item-title {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a2e;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rgsl-item-address {
    font-size: 12px;
    color: #888;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rgsl-item-address2 {
    font-size: 12px;
    color: #aaa;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rgsl-item-schedule {
    font-size: 12px;
    color: #666;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rgsl-item-directions {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    font-size: 13px !important;
    font-weight: 600;
    color: #fff !important;
    text-decoration: none !important;
    background: #e94848 !important;
    border-radius: 6px;
    padding: 7px 16px;
    transition: background 0.15s;
    width: max-content !important;
}

.rgsl-item-directions:hover {
    background: #bd2929 !important;
    color: #fff !important;
}

.rgsl-item-directions svg {
    flex-shrink: 0 !important;
}

/* =============================================
   Responsive - Mobile
   ============================================= */
@media (max-width: 768px) {
    .rgsl-section {
        padding: 40px 0;
    }

    .rgsl-title {
        font-size: 22px;
        margin-bottom: 24px;
    }

    .rgsl-layout {
        flex-direction: column;
        border-radius: 8px;
    }

    .rgsl-map-wrapper {
        flex: none;
        width: 100%;
        max-width: 100%;
        height: 300px;
    }

    .rgsl-list-wrapper {
        flex: none;
        border-left: none;
        border-top: 1px solid #f0f0f0;
        max-height: 280px;
        overflow: hidden;
    }

    .rgsl-list {
        max-height: 280px;
    }

    .rgsl-item {
        padding: 14px 16px;
    }
}

@media (max-width: 480px) {
    .rgsl-map-wrapper {
        height: 260px;
    }

    .rgsl-item-title {
        font-size: 13px;
    }

    .rgsl-item-address {
        font-size: 11px;
    }
}
