/* Core Wrapper */
#csl-locator-wrap {
    width: 100%;
    margin: 16px 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #1f2937;
}

/* Search Controls */
#csl-search-bar {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 12px;
    width: 100%;
}

#csl-search-input,
#csl-distance {
    height: 38px;
    padding: 0 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    background: #fff;
    outline: none;
    transition: border-color .15s ease, box-shadow .15s ease;
}

#csl-search-input {
    flex: 1 1 260px;
    min-width: 0;
}

#csl-distance {
    flex: 0 0 90px;
}

#csl-search-input:focus,
#csl-distance:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .12);
}

#csl-search-btn,
#csl-geo-btn {
    height: 38px;
    border-radius: 8px;
    border: 0;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: background-color .15s ease, transform .08s ease, box-shadow .15s ease;
    line-height: 1;
    white-space: nowrap;
}

#csl-search-btn {
    background: #2563eb;
    color: #fff;
    padding: 0 14px;
}

#csl-search-btn:hover {
    background: #1d4ed8;
}

#csl-geo-btn {
    padding: 0px 5px;
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #d1d5db;
}

#csl-geo-btn:hover {
    background: #e5e7eb;
}

#csl-search-btn:active,
#csl-geo-btn:active {
    transform: translateY(1px);
}

/* Layout */
#msl-locator-container {
    display: flex;
    width: 100%;
    height: 500px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 6px 20px rgba(0, 0, 0, .06);
}

#msl-sidebar {
    width: 32%;
    height: 100%;
    background: #fafafa;
    border-right: 1px solid #e5e7eb;
    padding: 14px;
    box-sizing: border-box;
    overflow-y: auto;
}

#msl-map {
    width: 68%;
    height: 100%;
    min-height: 500px;
}

/* Typography */
.msl-sidebar-title {
    margin: 0 0 12px 0;
    font-size: 1rem;
    font-weight: 700;
    color: #111827;
    padding-bottom: 8px;
    border-bottom: 1px solid #e5e7eb;
}

.msl-store-item {
    margin-bottom: 10px;
    padding: 10px 11px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease;
}

.msl-store-item:hover {
    border-color: #93c5fd;
    background: #f8fbff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .04);
}

.msl-store-item h4 {
    margin: 0 0 4px 0;
    font-size: 1.05rem;
    font-weight: 1000;
    color: #2563eb;
    line-height: 1.0;
}

.msl-store-item p {
    margin: 0 0 3px 0;
    font-size: 0.85rem;
    color: #6b7280;
    line-height: 1.0;
}

.msl-store-item .msl-distance {
    margin-top: 0;
    margin-bottom: 0;
    font-weight: 700;
    color: #2563eb;
    font-size: 0.85rem;
    line-height: 1.0;
}

.csl-error {
    color: #b91c1c;
    font-size: 0.9rem;
}

/* Mobile */
@media (max-width: 768px) {
    #csl-search-bar {
        gap: 8px;
    }

    #csl-search-input,
    #csl-distance,
    #csl-search-btn,
    #csl-geo-btn {
        width: 100%;
        flex: 1 1 100%;
    }

    #csl-geo-btn {
        width: 100%;
    }

    #msl-locator-container {
        flex-direction: column;
        height: auto;
    }

    #msl-sidebar,
    #msl-map {
        width: 100%;
    }

    #msl-sidebar {
        border-right: 0;
        border-bottom: 1px solid #e5e7eb;
        max-height: 260px;
    }

    #msl-map {
        min-height: 320px;
    }
}
