/* Flavor Rentals Areas — Phase 3 stylesheet (Plan 03-02).
 *
 * Sidebar-grid layout per D-AREA-LAYOUT-01: 2fr main column + 1fr sidebar on
 * desktop; single column with <details>-collapse panels on mobile (<768px).
 *
 * Theme integration: transparent backgrounds on cards/panels (MEMORY.md —
 * Avada/Fusion integration rule); CSS custom property fallbacks for primary
 * color in the hero-fallback gradient.
 */

.flavor-area-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
}

/* Hero */
.flavor-area-hero {
    position: relative;
    width: 100%;
    height: 360px;
    overflow: hidden;
    border-radius: 8px;
    background: transparent;  /* MEMORY.md theme integration rule */
    margin-bottom: 1.5rem;
}
.flavor-area-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.flavor-area-hero-attribution {
    position: absolute;
    bottom: 0;
    right: 0;
    padding: 4px 10px;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.85);
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.4));
}
.flavor-area-hero-fallback {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--flavor-primary, #2c5f8d), var(--flavor-primary-hover, #1d4a72));
    color: #fff;
    text-align: center;
}
.flavor-area-hero-title { font-size: 56px; margin: 0; color: inherit; }
.flavor-area-hero-subtitle { font-size: 20px; margin: 0.5rem 0 0; color: inherit; opacity: 0.9; }

.flavor-area-h1 { margin: 1rem 0 0.5rem; }
.flavor-area-intro { margin: 0.5rem 0 1rem; }

/* Layout */
.flavor-area-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

/* Unit list */
.flavor-area-unit-list { list-style: none; padding: 0; margin: 0; }
.flavor-area-unit {
    background: transparent;  /* MEMORY.md theme integration rule */
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    margin-bottom: 0.75rem;
}
.flavor-area-unit-link {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 1rem;
    align-items: center;
    padding: 1rem;
    text-decoration: none;
    color: inherit;
}
.flavor-area-unit-link:hover { background: rgba(0, 0, 0, 0.02); }
.flavor-area-unit-title { font-weight: 600; }
.flavor-area-unit-meta { font-size: 14px; color: #4b5563; }
.flavor-area-unit-rent { font-weight: 600; }
.flavor-area-unit-distance { font-size: 13px; color: #6b7280; text-align: right; }

.flavor-area-empty {
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.03);
    border-radius: 6px;
}

/* Sidebar panels */
.flavor-area-sidebar { display: flex; flex-direction: column; gap: 1rem; }
.flavor-area-panel {
    background: transparent;  /* MEMORY.md theme integration rule */
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 0.75rem 1rem;
}
.flavor-area-panel summary { cursor: pointer; list-style: none; }
.flavor-area-panel summary::-webkit-details-marker { display: none; }
.flavor-area-panel h3 { display: inline-block; margin: 0; font-size: 16px; }
.flavor-area-panel ul { list-style: none; padding: 0; margin: 0.5rem 0 0; }
.flavor-area-panel li {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.5rem;
    padding: 0.4rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    font-size: 14px;
}
.flavor-area-panel li:last-child { border-bottom: none; }

.flavor-area-poi-distance,
.flavor-area-school-distance,
.flavor-area-distance {
    color: #6b7280;
    font-size: 13px;
}
.flavor-area-school-grade { font-size: 12px; color: #6b7280; padding-left: 0.4rem; }
.flavor-area-school-address { display: block; font-size: 12px; color: #6b7280; grid-column: 1 / -1; }
.flavor-area-placeholder { color: #6b7280; font-style: italic; padding: 0.5rem 0; }
.flavor-area-more-on-google { font-size: 13px; margin-top: 0.5rem; }

/* Q&A section (renders below the grid via shared QA Blocks markup) */
.flavor-area-qa { margin-top: 2rem; }
.flavor-area-qa-h2 { font-size: 22px; margin-bottom: 1rem; }

/* Mobile breakpoint per CONTEXT specifics line 174 — sidebar collapses to single
 * column; <details> panels respect their native [open] state on touch interaction. */
@media (max-width: 768px) {
    .flavor-area-grid { grid-template-columns: 1fr; }
    .flavor-area-panel:not([open]) > :not(summary) { display: none; }
    .flavor-area-unit-link { grid-template-columns: 1fr 1fr; gap: 0.5rem; }
    .flavor-area-hero { height: 240px; }
    .flavor-area-hero-title { font-size: 36px; }
    .flavor-area-hero-subtitle { font-size: 16px; }
}
