/* Properties Page Styles */

.page-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 4rem 0;
    text-align: center;
}

.page-header h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.page-header p {
    font-size: 1.25rem;
    opacity: 0.95;
}

.properties-section {
    padding: 4rem 0;
    background: var(--bg-light);
}

.property-detailed {
    background: var(--white);
    border-radius: 1rem;
    padding: 0;
    margin-bottom: 3rem;
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.property-image-header {
    width: 100%;
    height: 350px;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: flex-end;
    padding: 2rem;
}

.property-image-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.6) 100%);
    z-index: 1;
}

.property-image-header .property-tag {
    position: relative;
    z-index: 2;
}

.property-content-wrapper {
    padding: 2rem;
}

.property-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
}

.property-header h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
}

.property-tag {
    background: rgba(37, 99, 235, 0.95);
    color: var(--white);
    padding: 0.625rem 1.25rem;
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(10px);
}

.property-units {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.unit-card {
    background: var(--bg-light);
    border-radius: 0.75rem;
    padding: 1.5rem;
    border: 2px solid var(--border-color);
    transition: all 0.3s;
}

.unit-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px);
}

.unit-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.unit-header h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.unit-type {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1rem;
}

.unit-details {
    margin-bottom: 1.5rem;
}

.unit-feature {
    display: flex;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}

.unit-feature:last-child {
    border-bottom: none;
}

.feature-icon {
    font-size: 1.5rem;
    min-width: 30px;
}

.unit-feature strong {
    display: block;
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.unit-feature p {
    color: var(--text-secondary);
    margin: 0;
    font-size: 0.9rem;
}

.unit-card .btn {
    width: 100%;
    text-align: center;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal-content {
    background-color: var(--white);
    margin: 10% auto;
    padding: 2rem;
    border-radius: 1rem;
    width: 90%;
    max-width: 500px;
    position: relative;
    box-shadow: var(--shadow-xl);
    animation: slideDown 0.3s;
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close {
    color: var(--text-secondary);
    position: absolute;
    right: 1.5rem;
    top: 1.5rem;
    font-size: 2rem;
    font-weight: 300;
    cursor: pointer;
    transition: color 0.3s;
    line-height: 1;
}

.close:hover {
    color: var(--text-primary);
}

.modal-content h2 {
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.selected-unit {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
}

.modal-content .btn {
    width: 100%;
    margin-top: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
    .page-header h1 {
        font-size: 2rem;
    }

    .page-header p {
        font-size: 1rem;
    }

    .property-image-header {
        height: 250px;
        padding: 1.25rem;
    }

    .property-content-wrapper {
        padding: 1.5rem;
    }

    .property-header h2 {
        font-size: 1.5rem;
    }

    .property-units {
        grid-template-columns: 1fr;
    }

    .modal-content {
        margin: 20% auto;
        width: 95%;
    }
}
