/* ============================================
   SMOKE HEAVEN LOCATOR - SIDEBAR LAYOUT
   ============================================ */

.shl-locator-wrapper {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    background: #f5f7fa;
    border-radius: 12px;
}

/* ----- Sidebar Layout (two columns) ----- */
.shl-sidebar-layout {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.shl-sidebar {
    flex: 0 0 340px;
    min-width: 280px;
    max-height: 700px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: #fff;
    border-radius: 10px;
    padding: 16px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    overflow-y: auto;
}

.shl-map-container {
    flex: 1;
    min-width: 300px;
    height: 700px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    position: sticky;
    top: 20px;
    background: #e8ecf1;
}

.shl-map {
    width: 100%;
    height: 100%;
}

/* ----- Search Panel ----- */
.shl-search-panel {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.shl-search-row {
    display: flex;
    gap: 8px;
}

#shl-search-input {
    flex: 1;
    padding: 10px 14px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 15px;
    transition: border-color 0.2s ease;
}

#shl-search-input:focus {
    outline: none;
    border-color: #1a73e8;
}

.shl-geolocate-btn {
    padding: 10px 14px;
    background: #e9ecef;
    border: none;
    border-radius: 8px;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    line-height: 1;
}

.shl-geolocate-btn:hover {
    background: #dde0e3;
    transform: scale(1.05);
}

.shl-search-options {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 14px;
}

.shl-search-options label {
    font-weight: 500;
    color: #495057;
}

#shl-radius-select {
    padding: 6px 10px;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    font-size: 14px;
    background: #fff;
    cursor: pointer;
}

.shl-search-status {
    font-size: 13px;
    color: #6c757d;
    flex: 1;
}

.shl-search-btn,
.shl-clear-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.shl-search-btn {
    background: #1a73e8;
    color: #fff;
}
.shl-search-btn:hover {
    background: #1557b0;
}

.shl-clear-btn {
    background: #e9ecef;
    color: #495057;
}
.shl-clear-btn:hover {
    background: #dde0e3;
}

/* ----- Stats Bar (inside sidebar) ----- */
.shl-stats-bar {
    display: flex;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #e9ecef;
    border-top: 1px solid #e9ecef;
    margin: 4px 0;
}

.shl-stats-item {
    display: flex;
    align-items: baseline;
    gap: 4px;
    padding-right: 12px;
    border-right: 1px solid #e9ecef;
}
.shl-stats-item:last-child {
    border-right: none;
    padding-right: 0;
}

.shl-stats-number {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a2e;
}
.shl-stats-label {
    font-size: 13px;
    color: #6c757d;
}
.shl-stats-unit {
    font-size: 12px;
    color: #adb5bd;
}

/* ----- Store List (scrollable) ----- */
.shl-list-container {
    flex: 1;
    overflow-y: auto;
    padding-right: 4px;
    margin-top: 4px;
    scrollbar-width: thin;
    scrollbar-color: #c1c7cd #f0f2f5;
}
.shl-list-container::-webkit-scrollbar {
    width: 5px;
}
.shl-list-container::-webkit-scrollbar-track {
    background: #f0f2f5;
    border-radius: 3px;
}
.shl-list-container::-webkit-scrollbar-thumb {
    background: #c1c7cd;
    border-radius: 3px;
}

/* ----- HQ Card ----- */
.shl-hq-card {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 12px;
    border-left: 4px solid #ffd700;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
    cursor: pointer;
    transition: all 0.2s ease;
}
.shl-hq-card:hover {
    transform: translateX(4px);
}
.shl-hq-badge {
    font-size: 11px;
    font-weight: 600;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
.shl-hq-name {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a2e;
}
.shl-hq-address {
    font-size: 13px;
    color: #495057;
}
.shl-hq-card .shl-open-maps-btn {
    background: #28a745;
    margin-top: 6px;
}
.shl-hq-card .shl-open-maps-btn:hover {
    background: #1e7e34;
}

/* ----- Store Cards ----- */
.shl-store-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.shl-store-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: #f8f9fa;
    border-radius: 6px;
    border: 2px solid transparent;
    transition: all 0.15s ease;
    cursor: pointer;
}
.shl-store-card:hover {
    background: #e9ecef;
    transform: translateX(3px);
}
.shl-store-card.active {
    border-color: #ffd700;
    background: #fffdf0;
}

.shl-store-number {
    font-size: 13px;
    font-weight: 600;
    color: #adb5bd;
    min-width: 24px;
    text-align: center;
}
.shl-store-info {
    flex: 1;
    min-width: 0;
}
.shl-store-name {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a2e;
}
.shl-store-address {
    font-size: 12px;
    color: #6c757d;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.shl-store-distance {
    font-size: 12px;
    font-weight: 500;
    color: #ffd700;
}

.shl-open-maps-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    background: #1a73e8;
    color: #fff;
    font-size: 12px;
    font-weight: 500;
    border-radius: 16px;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
    flex-shrink: 0;
}
.shl-open-maps-btn:hover {
    background: #1557b0;
    color: #fff;
    transform: scale(1.03);
    text-decoration: none;
}

/* ----- Footer Stats & Hint ----- */
.shl-footer-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    padding: 10px 0 4px;
    border-top: 1px solid #e9ecef;
    margin-top: 8px;
    font-size: 13px;
    color: #495057;
}
.shl-footer-stat span:first-child { font-size: 16px; margin-right: 2px; }

.shl-hint {
    font-size: 11px;
    color: #6c757d;
    text-align: center;
    padding: 8px 0 4px;
    border-top: 1px solid #e9ecef;
    margin-top: 6px;
}

/* ----- Responsive ----- */
@media (max-width: 992px) {
    .shl-sidebar-layout {
        flex-direction: column;
    }
    .shl-sidebar {
        flex: 1;
        max-height: none;
        overflow-y: visible;
        padding: 12px;
    }
    .shl-map-container {
        height: 500px;
        position: relative;
        top: 0;
    }
}

@media (max-width: 576px) {
    .shl-sidebar {
        padding: 10px;
    }
    .shl-stats-item {
        padding-right: 6px;
    }
    .shl-store-card {
        flex-wrap: wrap;
        padding: 8px 10px;
    }
    .shl-store-info {
        min-width: 100%;
        order: 2;
    }
    .shl-store-number { order: 0; }
    .shl-open-maps-btn { order: 3; margin-left: auto; }
    .shl-map-container { height: 350px; }
}