/* ============================================================================
   NIZHARA Maps - Styles for Google Maps Integration
   ============================================================================ */

/* Map Container */
.map-container {
    width: 100%;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    position: relative;
}

.properties-map-container {
    flex: 1;
    min-height: 400px;
}

/* Map Info Window Styles */
.map-info-window {
    max-width: 300px;
    font-family: 'Inter', sans-serif;
}

.info-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
    gap: 10px;
}

.info-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
    line-height: 1.3;
    flex: 1;
}

.status-badge {
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.status-badge.status-featured {
    background: linear-gradient(135deg, #D9C6A3, #C4A77D);
    color: #8B4513;
}

.status-badge.status-available {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.status-badge.status-sold {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
}

.status-badge.status-construction {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
}

.info-image {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 12px;
}

.info-content {
    color: #64748b;
}

.info-description {
    margin: 0 0 12px 0;
    font-size: 14px;
    line-height: 1.5;
    color: #475569;
}

.info-details {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 12px;
}

.info-price,
.info-area,
.info-bedrooms,
.info-bathrooms {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #64748b;
}

.info-price {
    font-weight: 600;
    color: #2D7F74;
    font-size: 14px;
}

.info-actions {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #e2e8f0;
}

.info-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: linear-gradient(135deg, #2D7F74, #1d5a52);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.info-btn:hover {
    background: linear-gradient(135deg, #1d5a52, #0f3027);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(45, 127, 116, 0.3);
}

/* Map Error States */
.map-error {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    background: #f8fafc;
    color: #64748b;
    padding: 2rem;
    text-align: center;
    border-radius: 12px;
    border: 2px dashed #cbd5e1;
}

.map-error h3 {
    margin: 0 0 0.5rem 0;
    color: #334155;
    font-size: 18px;
}

.map-error p {
    margin: 0 0 1rem 0;
    max-width: 400px;
    line-height: 1.5;
}

.map-error-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.7;
}

.map-setup-guide {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #2D7F74;
    max-width: 500px;
    text-align: left;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.map-setup-guide h4 {
    margin: 0 0 0.5rem 0;
    color: #2D7F74;
    font-size: 16px;
}

.map-setup-guide ol {
    margin: 0;
    padding-left: 1.5rem;
    font-size: 14px;
    line-height: 1.6;
}

.map-setup-guide li {
    margin-bottom: 0.5rem;
}

.map-setup-guide a {
    color: #2D7F74;
    text-decoration: underline;
    font-weight: 500;
}

.map-setup-guide a:hover {
    color: #1d5a52;
}

/* Loading State */
.map-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    background: #f8fafc;
    color: #64748b;
    font-size: 14px;
}

.map-loading::before {
    content: '';
    width: 20px;
    height: 20px;
    border: 2px solid #cbd5e1;
    border-top-color: #2D7F74;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 10px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .properties-map-container {
        min-height: 300px;
    }
    
    .map-info-window {
        max-width: 250px;
    }
    
    .info-image {
        height: 120px;
    }
    
    .info-header h3 {
        font-size: 15px;
    }
    
    .map-error {
        padding: 1.5rem;
    }
    
    .map-setup-guide {
        padding: 1rem;
    }
    
    .map-setup-guide h4 {
        font-size: 15px;
    }
    
    .map-setup-guide ol {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .properties-map-container {
        min-height: 250px;
    }
    
    .map-info-window {
        max-width: 220px;
    }
    
    .info-image {
        height: 100px;
    }
    
    .info-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
    
    .status-badge {
        align-self: flex-start;
    }
}