/* Storage Finder Styles */
.storage-finder-container {
    display: flex;
    gap: 0;
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    background: #f9fafb;
    min-height: 600px;
}

.storage-finder-sidebar {
    width: 40%;
    background: white;
    overflow-y: auto;
    max-height: 600px;
    border-right: 1px solid #e5e7eb;
}

.storage-finder-map {
    width: 60%;
    position: relative;
}

#storage-map {
    width: 100%;
    height: 600px;
}

/* Search Section */
.search-section {
    padding: 20px;
    border-bottom: 1px solid #e5e7eb;
}

.search-box {
    display: flex;
    gap: 10px;
}

.search-input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
}

.search-input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.search-btn {
    padding: 12px 24px;
    background: #1e3a8a;
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}

.search-btn:hover {
    background: #1e40af;
}

/* Filter Section */
.filter-section {
    padding: 16px 20px;
    border-bottom: 1px solid #e5e7eb;
}

.city-filter {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    background: white;
    cursor: pointer;
}

.city-filter:focus {
    border-color: #3b82f6;
}

/* Facilities List */
.facilities-list {
    padding: 0;
}

.loading,
.no-results {
    padding: 40px 20px;
    text-align: center;
    color: #6b7280;
    font-size: 16px;
}

.facility-card {
    display: flex;
    gap: 16px;
    padding: 20px;
    border-bottom: 1px solid #e5e7eb;
    cursor: pointer;
    transition: background 0.2s;
}

.facility-card:hover,
.facility-card.active {
    background: #f9fafb;
}

.facility-image {
    width: 200px;
    height: 150px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
}

.facility-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.facility-info {
    flex: 1;
}

.facility-info h3 {
    margin: 0 0 8px 0;
    font-size: 18px;
    font-weight: 600;
    color: #111827;
}

.facility-address {
    margin: 0 0 8px 0;
    color: #6b7280;
    font-size: 14px;
    line-height: 1.5;
}

.facility-phone {
    margin: 0 0 12px 0;
}

.facility-phone a {
    color: #3b82f6;
    text-decoration: none;
    font-size: 14px;
}

.facility-phone a:hover {
    text-decoration: underline;
}

.chat-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: transparent;
    color: #06b6d4;
    border: 1px solid #06b6d4;
    border-radius: 4px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
}

.chat-btn:hover {
    background: #ecfeff;
}



/* Unit Pricing */
.unit-pricing {
    margin: 16px 0;
    padding: 12px 0;
    border-top: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
}

.unit-size {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
}

.size-label {
    font-size: 14px;
    color: #374151;
}

.price {
    font-weight: 600;
    color: #111827;
    font-size: 14px;
}

/* Amenities */
.amenities {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 12px 0;
}

.amenity {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #374151;
    font-size: 13px;
}

.see-units-btn {
    width: 100%;
    padding: 10px;
    margin-top: 12px;
    background: #1e3a8a;
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}

.see-units-btn:hover {
    background: #1e40af;
}

/* Map Controls */
.show-more-btn,
.search-area-btn {
    position: absolute;
    z-index: 1000;
    padding: 10px 20px;
    background: white;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.2s;
}

.show-more-btn:hover,
.search-area-btn:hover {
    background: #f9fafb;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.show-more-btn {
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
}

.search-area-btn {
    top: 20px;
    right: 20px;
    background: #1e3a8a;
    color: white;
    border: none;
}

.search-area-btn:hover {
    background: #1e40af;
}

/* Custom Marker Styles */
.custom-marker {
    background: transparent;
    border: none;
}

.marker-pin {
    position: relative;
}

.marker-price {
    background: white;
    color: #1e3a8a;
    font-weight: 600;
    font-size: 13px;
    padding: 6px 12px;
    border-radius: 20px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    border: 2px solid #1e3a8a;
    white-space: nowrap;
    text-align: center;
}

.marker-price::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid #1e3a8a;
}

/* Map Popup */
.map-popup h4 {
    margin: 0 0 8px 0;
    font-size: 14px;
    font-weight: 600;
    color: #111827;
}

.map-popup p {
    margin: 0 0 4px 0;
    font-size: 12px;
    color: #6b7280;
}

.popup-price {
    font-weight: 600;
    color: #1e3a8a !important;
    margin-top: 8px !important;
    font-size: 13px !important;
}

/* Leaflet Popup Customization */
.leaflet-popup-content-wrapper {
    border-radius: 8px;
    padding: 4px;
}

.leaflet-popup-content {
    margin: 12px;
}

.leaflet-popup-tip {
    background: white;
}

/* Responsive */
@media (max-width: 1024px) {
    .storage-finder-container {
        flex-direction: column;
    }
    
    .storage-finder-sidebar,
    .storage-finder-map {
        width: 100%;
    }
    
    .storage-finder-sidebar {
        max-height: 400px;
    }
    
    #storage-map {
        height: 400px;
    }
}

@media (max-width: 768px) {
    .facility-card {
        flex-direction: column;
    }
    
    .facility-image {
        width: 100%;
        height: 200px;
    }
    
    .search-box {
        flex-direction: column;
    }
    
    .search-btn {
        width: 100%;
    }
}