/* Google Maps Filter Styles */
.realty-filter {
    background: #007bff;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.realty-filter .option-select {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.realty-filter .option-select li {
    margin: 0;
}

.filter-btn {
    background: white;
    border: none;
    padding: 12px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.filter-btn:hover {
    background: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.filter-btn i {
    font-size: 16px;
    color: #007bff;
}

.location-search-input {
    padding: 12px 20px;
    border: none;
    border-radius: 25px;
    font-size: 14px;
    min-width: 250px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.search-button {
    background: #ffc107;
    border: none;
    padding: 12px 25px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.search-button:hover {
    background: #e0a800;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

/* Google Maps Modal */
.maps-modal {
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}

.maps-modal-content {
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.close-modal {
    position: absolute;
    right: 15px;
    top: 15px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: #666;
    z-index: 1000;
}

.close-modal:hover {
    color: #000;
}

#google-maps-container {
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 15px;
}

.maps-controls {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: space-between;
}

.btn-confirm {
    background: #28a745;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.3s ease;
}

.btn-confirm:hover {
    background: #218838;
}

/* Responsive Design */
@media (max-width: 768px) {
    .realty-filter .option-select {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-btn {
        justify-content: center;
    }
    
    .location-search-input {
        min-width: auto;
        width: 100%;
    }
    
    .maps-modal-content {
        width: 95%;
        margin: 10px;
    }
    
    .maps-controls {
        flex-direction: column;
        gap: 15px;
    }
}

/* Google Maps Autocomplete */
.pac-container {
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border: none;
    margin-top: 5px;
}

.pac-item {
    padding: 10px 15px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
}

.pac-item:hover {
    background-color: #f8f9fa;
}

.pac-item-selected {
    background-color: #e3f2fd;
}

/* Loading state */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
} 