/* ================================================================
   Store Locator — public page styles
   Prefix: sl-  (avoids collisions with Odoo/Bootstrap classes)
   ================================================================ */

.sl-header {
    margin-bottom: 1.25rem;
}
.sl-title {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 0.15rem;
    color: #1a1a1a;
}
.sl-subtitle {
    font-size: 0.9rem;
    color: #6b6b6b;
    margin-bottom: 1rem;
}
.sl-controls {
    display: flex;
    gap: 0.625rem;
    flex-wrap: wrap;
}
.sl-search {
    flex: 1;
    min-width: 200px;
    padding: 0.55rem 0.85rem;
    border: 1px solid #d5d5d5;
    border-radius: 6px;
    font-size: 0.875rem;
    background: #fff;
    color: #1a1a1a;
    outline: none;
    transition: border-color 0.15s;
}
.sl-search:focus {
    border-color: #d61a20;
}
.sl-search::placeholder {
    color: #aaa;
}
.sl-select {
    padding: 0.55rem 0.85rem;
    border: 1px solid #d5d5d5;
    border-radius: 6px;
    font-size: 0.875rem;
    background: #fff;
    color: #1a1a1a;
    min-width: 150px;
    outline: none;
    cursor: pointer;
}
.sl-select:focus {
    border-color: #d61a20;
}
.sl-body {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 0;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    min-height: 460px;
}
#sl-map {
    min-height: 460px;
}
.sl-sidebar {
    display: flex;
    flex-direction: column;
    border-left: 1px solid #e0e0e0;
    background: #fff;
}
.sl-count {
    font-size: 0.8rem;
    color: #6b6b6b;
    font-weight: 600;
    padding: 0.75rem 1.1rem;
    border-bottom: 1px solid #e0e0e0;
    background: #fafafa;
    flex-shrink: 0;
}
.sl-list {
    overflow-y: auto;
    flex: 1;
    max-height: calc(460px - 38px);
}
.sl-card {
    padding: 1rem 1.1rem;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: background 0.12s;
}
.sl-card:hover,
.sl-card.active {
    background: #fdf5f5;
}
.sl-card-top {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    margin-bottom: 0.5rem;
}
.sl-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #2a2a2a;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
    padding: 4px;
}
.sl-avatar img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.sl-card-name {
    font-size: 0.93rem;
    font-weight: 600;
    line-height: 1.3;
    color: #1a1a1a;
}
.sl-card-location {
    font-size: 0.78rem;
    color: #888;
}
.sl-card-detail {
    font-size: 0.8rem;
    color: #6b6b6b;
    line-height: 1.65;
}
.sl-card-detail svg {
    width: 14px;
    height: 14px;
    vertical-align: -2px;
    margin-right: 4px;
    opacity: 0.5;
}
.sl-directions {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #d61a20;
    text-decoration: none;
    margin-top: 0.35rem;
}
.sl-directions:hover {
    text-decoration: underline;
}
.sl-empty {
    padding: 2rem;
    text-align: center;
    color: #aaa;
    font-size: 0.875rem;
}
.leaflet-popup-content-wrapper {
    border-radius: 8px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12) !important;
    font-family: inherit !important;
}
.leaflet-popup-content {
    margin: 10px 14px !important;
    font-size: 0.8rem !important;
    line-height: 1.5 !important;
}
.leaflet-popup-content strong {
    font-weight: 600;
}
@media (max-width: 768px) {
    .sl-body {
        grid-template-columns: 1fr;
    }
    .sl-sidebar {
        border-left: none;
        border-top: 1px solid #e0e0e0;
    }
    #sl-map {
        min-height: 300px;
    }
    .sl-list {
        max-height: 340px;
    }
}
