/* Maps PL - Store Locator Styles */
.maps-pl-wrapper {
    display: flex;
    gap: 0;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    min-height: 600px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Sidebar */
.maps-pl-sidebar {
    width: 45%;
    max-width: 520px;
    display: flex;
    flex-direction: column;
    border-right: 1px solid #e0e0e0;
}

/* Filter Buttons */
.maps-pl-filter {
    display: flex;
    gap: 8px;
    padding: 20px 20px 10px;
    flex-wrap: wrap;
}

.maps-pl-filter-btn {
    padding: 8px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 25px;
    background: #fff;
    color: #333;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.maps-pl-filter-btn:hover {
    border-color: #333;
    color: #000;
    background: #f0f0f0;
}

.maps-pl-filter-btn.active {
    background: #222;
    border-color: #222;
    color: #fff;
}

/* Count */
.maps-pl-count {
    padding: 10px 20px;
    font-size: 14px;
    color: #666;
}

/* List */
.maps-pl-list {
    flex: 1;
    overflow-y: auto;
    padding: 0 10px 10px;
}

.maps-pl-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 16px 15px;
    margin-bottom: 4px;
    border: 1px solid transparent;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.maps-pl-item:hover {
    background: #f5f5f5;
    border-color: #ddd;
}

.maps-pl-item.active {
    background: #f0f0f0;
    border-color: #333;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.maps-pl-item-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.maps-pl-item-content {
    flex: 1;
    min-width: 0;
}

.maps-pl-item-title {
    font-size: 15px;
    font-weight: 600;
    color: #222;
    margin-bottom: 4px;
}

.maps-pl-item-address {
    font-size: 13px;
    color: #666;
    line-height: 1.4;
}

.maps-pl-item-city-badge {
    display: inline-block;
    padding: 3px 12px;
    border-radius: 15px;
    font-size: 11px;
    font-weight: 500;
    white-space: nowrap;
    margin-left: auto;
    flex-shrink: 0;
    align-self: center;
}

.maps-pl-item-city-badge.tbilisi {
    background: #f0f0f0;
    color: #333;
}

.maps-pl-item-city-badge.batumi {
    background: #e8e8e8;
    color: #555;
}

.maps-pl-item-note {
    font-size: 12px;
    color: #f57c00;
    font-style: italic;
    margin-top: 4px;
}

.maps-pl-item-arrow {
    flex-shrink: 0;
    align-self: center;
    color: #bbb;
    font-size: 18px;
    transition: transform 0.2s;
}

.maps-pl-item.active .maps-pl-item-arrow {
    color: #333;
    transform: translateX(3px);
}

/* City group header */
.maps-pl-city-header {
    padding: 12px 15px 6px;
    font-size: 13px;
    font-weight: 700;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid #eee;
    margin-bottom: 4px;
}

/* Map */
.maps-pl-map-container {
    flex: 1;
    min-height: 600px;
    position: relative;
}

#maps-pl-map {
    width: 100%;
    height: 100%;
    min-height: 600px;
}

/* Responsive */
@media (max-width: 768px) {
    .maps-pl-wrapper {
        flex-direction: column;
        min-height: auto;
    }

    .maps-pl-sidebar {
        width: 100%;
        max-width: none;
        border-right: none;
        border-bottom: 1px solid #e0e0e0;
        max-height: 400px;
    }

    .maps-pl-map-container {
        min-height: 400px;
    }

    #maps-pl-map {
        min-height: 400px;
    }
}

/* No API Key message */
.maps-pl-no-api {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 600px;
    background: #f5f5f5;
    color: #666;
    font-size: 16px;
    text-align: center;
    padding: 40px;
}
