/* ===== BK STORE LOCATOR CSS ===== */
#bksl-container {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 14px;
    color: #222;
    margin: 0;
    background: #f4f6fa;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,.12);
}

/* SEARCH BAR */
#bksl-search-bar {
    background: #1a6bcc;
    padding: 14px 20px;
}
.bksl-search-inner {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}
.bksl-logo-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}
.bksl-logo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #1a6bcc;
    border: 3px solid rgba(255,255,255,.4);
    object-fit: cover;
}
.bksl-brand {
    color: #fff;
    font-weight: 700;
    font-size: 16px;
    white-space: nowrap;
}
.bksl-filters {
    display: flex;
    gap: 10px;
    align-items: center;
    flex: 1;
    flex-wrap: wrap;
}
.bksl-filters select,
.bksl-filters input[type="text"] {
    padding: 9px 13px;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    background: rgba(255,255,255,.95);
    color: #222;
    outline: none;
    min-width: 160px;
}
.bksl-filters input[type="text"] { flex: 1; min-width: 200px; }
.bksl-filters button {
    padding: 9px 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 5px;
}
#bksl-nearby-btn {
    background: #fff;
    color: #1a6bcc;
}
#bksl-nearby-btn:hover { background: #e8f0fe; }
#bksl-reset-btn {
    background: rgba(255,255,255,.2);
    color: #fff;
}
#bksl-reset-btn:hover { background: rgba(255,255,255,.3); }

/* LAYOUT */
#bksl-layout {
    display: flex;
    height: 640px;
}

/* STORE LIST */
#bksl-store-list {
    width: 340px;
    flex-shrink: 0;
    overflow-y: auto;
    background: #fff;
    border-right: 1px solid #e4e8f0;
    display: flex;
    flex-direction: column;
}
#bksl-store-count {
    padding: 10px 16px;
    font-size: 12px;
    color: #666;
    background: #f8f9fc;
    border-bottom: 1px solid #e4e8f0;
    font-weight: 600;
}
#bksl-stores-wrapper {
    flex: 1;
    overflow-y: auto;
}
.bksl-store-card {
    padding: 14px 16px;
    border-bottom: 1px solid #eef0f5;
    cursor: pointer;
    transition: background .15s, border-left .15s;
    border-left: 3px solid transparent;
}
.bksl-store-card:hover {
    background: #f0f7ff;
    border-left-color: #5a9fec;
}
.bksl-store-card.active {
    background: #e8f2ff;
    border-left-color: #1a6bcc;
}
.bksl-store-card h4 {
    margin: 0 0 4px;
    font-size: 13px;
    font-weight: 700;
    color: #1a1a2e;
    line-height: 1.3;
}
.bksl-store-card .bksl-card-state {
    font-size: 11px;
    color: #1a6bcc;
    background: #e8f2ff;
    padding: 2px 7px;
    border-radius: 10px;
    display: inline-block;
    margin-bottom: 4px;
    font-weight: 600;
}
.bksl-store-card .bksl-card-address {
    font-size: 12px;
    color: #666;
    margin: 2px 0 0;
    display: flex;
    align-items: flex-start;
    gap: 4px;
}
.bksl-card-dist {
    font-size: 11px;
    color: #e67e22;
    font-weight: 600;
    margin-top: 3px;
}
.bksl-no-results {
    padding: 40px 20px;
    text-align: center;
    color: #999;
    font-size: 14px;
}

/* MAP */
#bksl-map-wrap {
    flex: 1;
    position: relative;
}
#bksl-map {
    width: 100%;
    height: 100%;
}

/* INFOWINDOW CUSTOM */
.bksl-iw {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    max-width: 280px;
    padding: 4px;
}
.bksl-iw h3 {
    margin: 0 0 8px;
    font-size: 14px;
    font-weight: 700;
    color: #1a1a2e;
    line-height: 1.3;
}
.bksl-iw-row {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    margin-bottom: 5px;
    font-size: 12px;
    color: #444;
}
.bksl-iw-row svg { flex-shrink: 0; margin-top: 2px; }
.bksl-iw-actions {
    margin-top: 12px;
    display: flex;
    gap: 8px;
}
.bksl-iw-btn {
    flex: 1;
    padding: 7px 10px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    display: inline-block;
}
.bksl-iw-btn.primary {
    background: #1a6bcc;
    color: #fff;
}
.bksl-iw-btn.primary:hover { background: #145db5; }
.bksl-iw-btn.secondary {
    background: #f0f4f8;
    color: #333;
    border: 1px solid #ddd;
}
.bksl-iw-btn.secondary:hover { background: #e4eaf2; }

/* RESPONSIVE */
@media (max-width: 768px) {
    #bksl-layout { flex-direction: column; height: auto; }
    #bksl-store-list { width: 100%; height: 300px; border-right: none; border-bottom: 1px solid #e4e8f0; }
    #bksl-map-wrap { height: 380px; }
    #bksl-map { height: 380px; }
    .bksl-search-inner { flex-direction: column; align-items: stretch; }
    .bksl-logo-wrap { justify-content: center; }
    .bksl-filters { flex-direction: column; }
    .bksl-filters select,
    .bksl-filters input[type="text"] { min-width: unset; }
}
