/* Property Floorplans Gallery Styles */
.property-floorplans-section {
    padding: 60px 0;
    background: var(--colore-grigio-chiaro);
}

.property-floorplans-section .section-header {
    text-align: center;
    margin-bottom: 40px;
}

.property-floorplans-section .section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 10px;
    font-family: var(--e-global-typography-primary-font-family);
    text-align: left;
}

.property-floorplans-section .section-subtitle {
    font-size: 1.1rem;
    color: #6c757d;
    margin-bottom: 0;
    text-align: left;
}

.floorplans-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.floorplan-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.floorplan-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.floorplan-image {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.floorplan-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.floorplan-card:hover .floorplan-image img {
    transform: scale(1.05);
}

.floorplan-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    cursor: pointer;
}

.floorplan-card:hover .floorplan-overlay {
    opacity: 1;
}

.floorplan-overlay .view-icon {
    color: white;
    font-size: 2rem;
}

.floorplan-content {
    padding: 20px;
}

.floorplan-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2c3e50;
    text-align: center;
    margin: 0 !important;
    font-family: var(--e-global-typography-primary-font-family);
}

.floorplan-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.btn-view-floorplan,
.btn-download-floorplan {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-view-floorplan {
    background: #007bff;
    color: white;
}

.btn-view-floorplan:hover {
    background: #0056b3;
    color: white;
}

.btn-download-floorplan {
    background: #28a745;
    color: white;
}

.btn-download-floorplan:hover {
    background: #1e7e34;
    color: white;
}

/* Modal Styles for Floorplans */
.floorplan-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.floorplan-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.floorplan-modal-content {
    background: white;
    border-radius: 12px;
    max-width: 90vw;
    max-height: 90vh;
    position: relative;
    overflow: hidden;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.floorplan-modal-overlay.active .floorplan-modal-content {
    transform: scale(1);
}

.floorplan-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #eee;
    background: #f8f9fa;
}

.floorplan-modal-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
    font-family: var(--e-global-typography-primary-font-family);
}

.floorplan-modal-close {
    background: transparent !important;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #6c757d;
    padding: 5px;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.floorplan-modal-close:hover {
    background: #e9ecef;
    color: #495057;
}

.floorplan-modal-body {
    padding: 0;
    text-align: center;
    max-height: 80vh;
    overflow: auto;
}

.floorplan-modal-body img {
    max-width: 100%;
    max-height: 75vh;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

/* Responsive Design */
@media (max-width: 768px) {
    .property-floorplans-section {
        padding: 40px 0;
    }

    .property-floorplans-section .section-header h2 {
        font-size: 2rem;
    }

    .floorplans-gallery {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .floorplan-image {
        height: 200px;
    }

    .floorplan-modal-content {
        max-width: 95vw;
        max-height: 95vh;
    }

    .floorplan-modal-header {
        padding: 15px;
    }

    .floorplan-modal-title {
        font-size: 1.2rem;
    }

    .floorplan-actions {
        flex-direction: column;
    }

    .btn-view-floorplan,
    .btn-download-floorplan {
        width: 100%;
        justify-content: center;
    }
}