/*
===========================================================================
CHANGE LOG
File: static/css/floorplans.css
Type: CSS Stylesheet
Purpose: Accordion styles and image handling for floor plans section
Parent: serenity.html (via link tag)
===========================================================================
2026-01-31 v1.0 - Initial creation for Serenity floor plans
===========================================================================
*/

/* Accordion Group - Level 1 (dark header) */
.accordion-group {
    background: linear-gradient(135deg, #2c5282 0%, #3182ce 100%);
    color: white;
    cursor: pointer;
    padding: 16px 20px;
    width: 100%;
    border: none;
    border-radius: 8px;
    text-align: left;
    font-size: 1.1rem;
    font-weight: 600;
    margin-top: 15px;
    transition: all 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.accordion-group:first-of-type {
    margin-top: 0;
}

.accordion-group:hover {
    background: linear-gradient(135deg, #2a4f7c 0%, #2c7bb8 100%);
}

.accordion-group::after {
    content: '+';
    font-size: 1.3rem;
    font-weight: bold;
}

.accordion-group.active::after {
    content: '−';
}

.accordion-group.active {
    border-radius: 8px 8px 0 0;
}

/* Panel Group - Level 1 container */
.panel-group {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    background: #f8f9fa;
    border: 1px solid #e2e8f0;
    border-top: none;
    border-radius: 0 0 8px 8px;
    padding: 0 20px;
}

.panel-group.open {
    max-height: 2000px;
    padding: 20px;
}

/* Accordion Pillar - Level 2 (nested) */
.accordion-pillar {
    background: #e2e8f0;
    color: #2c5282;
    cursor: pointer;
    padding: 12px 16px;
    width: 100%;
    border: 1px solid #cbd5e0;
    border-radius: 6px;
    text-align: left;
    font-size: 1rem;
    font-weight: 600;
    margin-top: 15px;
    transition: all 0.2s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.accordion-pillar:hover {
    background: #cbd5e0;
}

.accordion-pillar::after {
    content: '+';
    font-size: 1rem;
    color: #2c5282;
}

.accordion-pillar.active::after {
    content: '−';
}

.accordion-pillar.active {
    border-radius: 6px 6px 0 0;
}

/* Panel Pillar - Level 2 container */
.panel-pillar {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: white;
    border: 1px solid #e2e8f0;
    border-top: none;
    border-radius: 0 0 6px 6px;
    padding: 0 16px;
}

.panel-pillar.open {
    max-height: 1000px;
    padding: 16px;
}

/* Feature Image Container */
.feature-image {
    text-align: center;
    margin: 15px 0;
}

/* Panel Images - Constrained size, click to expand */
.panel-image {
    max-width: 400px;
    max-height: 300px;
    width: auto;
    height: auto;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.panel-image:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transform: scale(1.02);
}

/* Expanded image overlay */
.panel-image.expanded {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 90vw;
    max-height: 90vh;
    z-index: 9999;
    border: none;
    border-radius: 0;
    box-shadow: 0 0 0 9999px rgba(0,0,0,0.8);
}

/* Data Table */
.data-table {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0;
    background: white;
    border-radius: 8px;
    overflow: hidden;
}

.data-table td {
    padding: 10px 15px;
    border-bottom: 1px solid #e2e8f0;
}

.data-table td:first-child {
    width: 40%;
    color: #4a5568;
}

.data-table tr:last-child td {
    border-bottom: none;
}
