/* ============================================================
   FAMA Collection — styles-map.css
   Map-specific styles (Leaflet map, pins, controls, overlay, lightbox)
   Linked only from fama-map.html
   ============================================================ */

/* ── Info Panel ────────────────────────────────────────── */
#fc-info-panel { position: absolute; top: 20px; right: 20px; z-index: 500; width: 350px; background: rgba(255,255,255,0.72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); border-radius: 7px; padding: 12px 14px 11px; box-shadow: 0 3px 14px rgba(0,0,0,0.25); pointer-events: all; }
#fc-info-panel h2 { font-size: 1.1rem; line-height: 1.2; margin: 0; color: #CF1F25; }
.fc-info-subtitle { font-size: 0.8rem; line-height: 1.2; font-weight: 700; text-transform: uppercase; color: #2F4554; margin: 5px 0 5px 0; }
.fc-info-text { font-size: 0.8rem; line-height: 1.45; color: #333; margin: 0 0 7px; }
.fc-info-text:last-child { margin-bottom: 0; }
.fc-info-readmore { display: inline-block; font-size: 0.5rem; font-weight: 800; letter-spacing: 0.05em; color: #fff; background: #CF1F25; padding: 3px 6px; border-radius: 2px; text-decoration: none; transition: background 0.2s; }
.fc-info-readmore:hover { background: #2F4554; text-decoration: none; color: #fff; }
@media (max-width: 768px) { #fc-info-panel { display: none; } }



/* ── FC Map ─────────────────────────────────────────── */

#fc-map-ribbon { position: absolute; top: 20px; left: 50%; transform: translateX(-50%); width: 500px; max-width: 85%; pointer-events: none; z-index: 2100; }
.section-map { display: block; padding: 0; margin: 0; position: relative; box-shadow: none; }
.fc-scroll-hint { position: absolute; bottom: 0; left: 0; right: 0; z-index: 410; pointer-events: none; line-height: 0; }
.fc-scroll-hint svg { display: block; width: 100%; height: 10px; }
@keyframes fc-bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(4px); } }
#fc-map-wrapper { position: relative; width: 100%; height: 100%; }
#fc-map-wrapper::before, #fc-map-wrapper::after { content: ''; position: absolute; left: 0; right: 0; z-index: 400; pointer-events: none; }
#fc-map-wrapper::before { top: 0; height: 200px; background: linear-gradient(to bottom, rgba(0,0,0,0.35) 0%, transparent 100%); }
#fc-map-wrapper::after { bottom: 0; height: 200px; background: linear-gradient(to top, rgba(0,0,0,0.35) 0%, transparent 100%); }
#fc-map { width: 100%; height: 100%; contain: layout paint; }
#fc-map.leaflet-container { background: transparent !important; }
.fc-map-controls { position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); z-index: 1000; display: flex; flex-direction: row; gap: 8px; }
.fc-map-controls-left { position: absolute; bottom: 30px; left: 20px; z-index: 1000; display: grid; grid-template-columns: 38px 38px 38px 38px; grid-template-rows: auto auto; gap: 8px; }
#fc-mono-toggle { grid-column: 1; grid-row: 1; }
#fc-pins-toggle { grid-column: 1; grid-row: 2; }
#fc-neutral-toggle { grid-column: 2; grid-row: 2; }
#fc-thematic-toggle { grid-column: 3; grid-row: 2; }
#fc-site-toggle { grid-column: 4; grid-row: 2; }
.fc-map-controls-right { position: absolute; bottom: 30px; right: 20px; z-index: 1000; display: flex; flex-direction: row; gap: 8px; }
.fc-map-controls-right button { width: 38px; height: 38px; padding: 0; border: none; border-radius: 5px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: filter 0.2s ease, transform 0.15s cubic-bezier(0.4,0,0.2,1), box-shadow 0.15s ease; box-shadow: 0 3px 10px rgba(0,0,0,0.45), 0 1px 3px rgba(0,0,0,0.3); }
.fc-map-controls-right button:hover { filter: brightness(1.12); transform: translateY(-2px); }
.fc-map-controls-right button:active { transform: scale(0.9); box-shadow: 0 1px 4px rgba(0,0,0,0.4); }
.fc-map-controls-right button.btn-pulse { animation: btnPulse 0.45s cubic-bezier(0.4,0,0.2,1); }
#fc-loc-btn { background: #CF1F25; }
#fc-neutral-loc-btn { background: #E07B10; }
#fc-thematic-loc-btn { background: #2F4554; }
#fc-site-loc-btn { background: #1565C0; }
.fc-map-controls-left button { width: 38px; height: 38px; border: none; border-radius: 5px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background 0.3s ease, transform 0.15s cubic-bezier(0.4,0,0.2,1), box-shadow 0.15s ease, opacity 0.2s; box-shadow: 0 3px 10px rgba(0,0,0,0.45), 0 1px 3px rgba(0,0,0,0.3); }
.fc-map-controls-left button:active { transform: scale(0.9); box-shadow: 0 1px 4px rgba(0,0,0,0.4); }
.fc-map-controls-left button.btn-pulse { animation: btnPulse 0.45s cubic-bezier(0.4,0,0.2,1); }
.fc-map-controls button { width: 38px; height: 38px; background: #CF1F25; color: #fff; border: none; border-radius: 5px; font-size: 20px; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background 0.3s ease, transform 0.15s cubic-bezier(0.4,0,0.2,1), box-shadow 0.15s ease; font-family: inherit; box-shadow: 0 3px 10px rgba(0,0,0,0.45), 0 1px 3px rgba(0,0,0,0.3); }
.fc-map-controls button:hover { background: #2c4a6f; transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0,0,0,0.5), 0 2px 5px rgba(0,0,0,0.35); }
.fc-map-controls button:active { transform: scale(0.9); box-shadow: 0 1px 4px rgba(0,0,0,0.4); }
#fc-mono-toggle { background: #fff; }
#fc-mono-toggle:hover { background: #f0f0f0 !important; transform: translateY(-2px); }
#fc-pins-toggle { background: #fff; }
#fc-pins-toggle:hover { background: #f0f0f0 !important; transform: translateY(-2px); }
#fc-pins-toggle.pins-hidden { background: #fff; opacity: 0.4; }
#fc-pins-toggle.pins-hidden:hover { background: #f0f0f0 !important; opacity: 0.7; }
#fc-neutral-toggle { background: #fff; }
#fc-neutral-toggle:hover { background: #f0f0f0 !important; transform: translateY(-2px); }
#fc-neutral-toggle.pins-hidden { background: #fff; opacity: 0.4; }
#fc-neutral-toggle.pins-hidden:hover { background: #f0f0f0 !important; opacity: 0.7; }
#fc-thematic-toggle { background: #fff; }
#fc-thematic-toggle:hover { background: #f0f0f0 !important; transform: translateY(-2px); }
#fc-thematic-toggle.pins-hidden { background: #fff; opacity: 0.4; }
#fc-thematic-toggle.pins-hidden:hover { background: #f0f0f0 !important; opacity: 0.7; }
#fc-site-toggle { background: #fff; }
#fc-site-toggle:hover { background: #f0f0f0 !important; transform: translateY(-2px); }
#fc-site-toggle.pins-hidden { background: #fff; opacity: 0.4; }
#fc-site-toggle.pins-hidden:hover { background: #f0f0f0 !important; opacity: 0.7; }
.fc-map-controls button.btn-pulse { animation: btnPulse 0.45s cubic-bezier(0.4,0,0.2,1); }
@keyframes btnPulse {
    0% { transform: scale(1); box-shadow: 0 3px 10px rgba(0,0,0,0.45); }
    30% { transform: scale(0.82); box-shadow: 0 1px 4px rgba(0,0,0,0.3); }
    65% { transform: scale(1.08); box-shadow: 0 8px 20px rgba(0,0,0,0.5); }
    100% { transform: scale(1); box-shadow: 0 3px 10px rgba(0,0,0,0.45); }
}

/* ── Location list modals ──────────────────────── */

.fc-loc-dropdown { display: none; position: absolute; bottom: calc(100% + 10px); right: 0; width: 240px; border-radius: 5px; box-shadow: 0 6px 24px rgba(0,0,0,0.55), 0 2px 6px rgba(0,0,0,0.35); z-index: 1100; overflow: hidden; }
.fc-loc-dropdown.is-open { display: block; }
.fc-loc-dropdown-header { padding: 10px 14px 8px; font-size: 10px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255,255,255,0.65); border-bottom: 1px solid rgba(255,255,255,0.15); flex-shrink: 0; }
.fc-loc-dropdown ul { list-style: none; margin: 0; padding: 0; overflow-y: auto; max-height: 420px; }
.fc-loc-dropdown ul::-webkit-scrollbar { width: 4px; }
.fc-loc-dropdown ul::-webkit-scrollbar-track { background: transparent; }
.fc-loc-dropdown ul::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.3); border-radius: 2px; }
.fc-loc-dropdown ul li { margin: 0; padding: 0; }
.fc-loc-dropdown ul li button { width: 100%; background: none; border: none; border-radius: 0; box-shadow: none; color: #fff; font-size: 12px; font-weight: 600; letter-spacing: 0.03em; padding: 8px 14px; text-align: left; cursor: pointer; display: block; transition: background 0.15s; line-height: 1.3; height: auto; }
.fc-loc-dropdown ul li button:hover { background: rgba(0,0,0,0.2); transform: none; }
#fc-loc-modal { background: #CF1F25; }
#fc-neutral-loc-modal { background: #E07B10; }
#fc-thematic-loc-modal { background: #2F4554; }
#fc-site-loc-modal { background: #1565C0; }
/* keep old ID aliases for JS backwards compat */
#fc-loc-modal-header { padding: 10px 14px 8px; font-size:10px; font-weight:700; letter-spacing:0.12em; text-transform:uppercase; color:rgba(255,255,255,0.65); border-bottom:1px solid rgba(255,255,255,0.15); flex-shrink:0; }

/* ── Pins ────────────────────────────────────── */

.fc-pin-icon { background: none; border: none; }
.fc-pin-icon svg { display: block; will-change: transform; }
.fc-pin-icon-teardrop svg { transform-origin: center bottom; transition: transform 0.3s ease; }
#fc-map.fc-map--cover .fc-pin-icon-teardrop svg { transform: scale(0.62); }
#fc-map.fc-map--cover .fc-pin-tooltip.leaflet-tooltip, #fc-map.fc-map--cover .fc-pin-tooltip-neutral.leaflet-tooltip, #fc-map.fc-map--cover .fc-pin-tooltip-thematic.leaflet-tooltip { translate: 0 16px; }
.fc-pin-tooltip.leaflet-tooltip, .fc-pin-tooltip-neutral.leaflet-tooltip, .fc-pin-tooltip-thematic.leaflet-tooltip { transition: translate 0.3s ease; }
.fc-pin-icon-circle svg { transform-origin: center center; transition: transform 0.3s ease; }
#fc-map.fc-map--cover .fc-pin-icon-circle svg { transform: scale(0.62); }
#fc-map .leaflet-tooltip { visibility: hidden; pointer-events: none; }
#fc-map.fc-map--labels .leaflet-tooltip { visibility: visible; pointer-events: auto; cursor: pointer; }
#fc-map:not(.fc-map--labels) .leaflet-tooltip.fc-tooltip-hover { visibility: visible !important; pointer-events: none !important; animation: fcTooltipHoverIn 0.2s ease forwards; }
@keyframes fcTooltipHoverIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

#fc-map.fc-pins-specific-hidden .fc-pin-tooltip { visibility: hidden !important; }
#fc-map.fc-pins-neutral-hidden .fc-pin-tooltip-neutral { visibility: hidden !important; }
#fc-map.fc-pins-thematic-hidden .fc-pin-tooltip-thematic { visibility: hidden !important; }
#fc-map.fc-pins-site-hidden .fc-pin-tooltip-site { visibility: hidden !important; }

/* ── Tooltips ────────────────────────────────── */

.fc-pin-tooltip.leaflet-tooltip { background: #CF1F25; color: #fff; border: none; border-radius: 4px; padding: 4px 10px; font-size: 12px; font-weight: 700; letter-spacing: 0.04em; white-space: nowrap; box-shadow: 0 2px 8px rgba(0,0,0,0.35); }
.fc-pin-tooltip.leaflet-tooltip::before { display: none; }
.fc-pin-tooltip-neutral.leaflet-tooltip { background: #E07B10; color: #fff; border: none; border-radius: 4px; padding: 4px 10px; font-size: 12px; font-weight: 700; letter-spacing: 0.04em; white-space: nowrap; box-shadow: 0 2px 8px rgba(0,0,0,0.35); }
.fc-pin-tooltip-neutral.leaflet-tooltip::before { display: none; }
.fc-pin-tooltip-thematic.leaflet-tooltip { background: #2F4554; color: #fff; border: none; border-radius: 4px; padding: 4px 10px; font-size: 12px; font-weight: 700; letter-spacing: 0.04em; white-space: nowrap; box-shadow: 0 2px 8px rgba(0,0,0,0.35); }
.fc-pin-tooltip-thematic.leaflet-tooltip::before { display: none; }
.fc-pin-tooltip-site.leaflet-tooltip { background: #1565C0; color: #fff; border: none; border-radius: 4px; padding: 4px 10px; font-size: 12px;  font-weight: 700; letter-spacing: 0.04em; white-space: normal; width: max-content; max-width: 180px; text-align: center; box-shadow: 0 2px 8px rgba(0,0,0,0.35); }
.fc-pin-tooltip-site.leaflet-tooltip::before { display: none; }
/* Small tooltips in cover mode (zoom steps 0–2) */
#fc-map.fc-map--cover .fc-pin-tooltip.leaflet-tooltip, #fc-map.fc-map--cover .fc-pin-tooltip-neutral.leaflet-tooltip, #fc-map.fc-map--cover .fc-pin-tooltip-thematic.leaflet-tooltip, #fc-map.fc-map--cover .fc-pin-tooltip-site.leaflet-tooltip { border-radius: 3px; padding: 2px 7px; font-size: 10px; box-shadow: 0 2px 6px rgba(0,0,0,0.35); }
.leaflet-image-layer { transition: opacity 1.4s ease; }
.leaflet-tooltip-pane { z-index: 600; }

/* ── Spotlight ───────────────────────────────── */

#fc-spotlight { position: absolute; inset: 0; z-index: 500; pointer-events: none; opacity: 0; transition: opacity 0.4s ease; overflow: visible; }
#fc-spotlight.is-active { opacity: 1; }

/* ── Spotlight group nav ─────────────────────── */

#fc-spot-prev, #fc-spot-next { position: absolute; top: 50%; transform: translateY(-50%); z-index: 1250; background: none; border: none; color: var(--fama-red); font-size: 56px; font-weight: 700; line-height: 1; cursor: pointer; padding: 0 18px; transition: color 0.2s; user-select: none; display: none; }
#fc-spot-prev { right: calc(72% + 8px); }
#fc-spot-next { left: calc(72% + 8px); }
#fc-spot-prev.is-visible, #fc-spot-next.is-visible { display: block; }
#fc-spot-prev:hover, #fc-spot-next:hover { color: #fff; }
#fc-spot-prev:disabled, #fc-spot-next:disabled { opacity: 0.2; cursor: default; color: var(--fama-red); }

@media (max-width: 768px) {
    #fc-spot-prev, #fc-spot-next { display: none !important; }
}

/* ── Mini-map ──────────────────────────────────── */

#fc-minimap { position: absolute; bottom: 74px; left: 50%; transform: translateX(-50%); width: 200px; border-radius: 5px; overflow: hidden; box-shadow: 0 3px 14px rgba(0,0,0,0.55); z-index: 400; opacity: 0; pointer-events: none; transition: opacity 0.3s ease; cursor: pointer; }
#fc-minimap.is-visible { opacity: 1; pointer-events: auto; }
#fc-minimap img { display: block; width: 100%; height: auto; }
#fc-minimap-rect { position: absolute; border: 2px solid rgba(207,31,37,0.9); background: rgba(207,31,37,0.12); box-sizing: border-box; pointer-events: none; }

/* ── Map intro reveal ──────────────────────────────── */

#fc-map-intro { position: absolute; inset: 0; z-index: 2000; background-color: #2F4554; background-image: url('https://famacollection.org/layout/fc-back-1.jpg'); background-size: cover; background-position: center center; background-repeat: no-repeat; display: flex; align-items: center; justify-content: center; transition: opacity 0.8s ease; }
#fc-map-intro.is-hidden { opacity: 0; pointer-events: none; }
#fc-map-loader { animation: fc-loader-spin 1.4s linear infinite; }
#fc-map-loader-track { opacity: 0.15; }
#fc-map-loader-arc { stroke-dasharray: 138; stroke-dashoffset: 138; animation: fc-loader-arc 1.4s ease-in-out infinite; }
@keyframes fc-loader-spin { to { transform: rotate(360deg); transform-origin: 26px 26px; } }
@keyframes fc-loader-arc { 0% { stroke-dashoffset: 125; } 50% { stroke-dashoffset: 20; } 100% { stroke-dashoffset: 125; } }

/* ── FC Map Overlay Panel ───────────────────────────── */

#fc-overlay { position: absolute; top: 50%; left: 50%; width: 44%; height: 78%; background: #fff; z-index: 1200; box-shadow: 0 12px 60px rgba(0,0,0,0.65); border-radius: 12px; transform: translate(-50%, -50%) scale(0.88); opacity: 0; pointer-events: none; transition: transform 0.32s cubic-bezier(0.4,0,0.2,1), opacity 0.32s ease; display: flex; flex-direction: column; overflow: hidden; }
#fc-overlay.is-open { transform: translate(-50%, -50%) scale(1); opacity: 1; pointer-events: auto; }
/* close button */
#fc-overlay-close { position: absolute; top: 14px; right: 16px; background: none; border: none; font-size: 38px; font-weight: 700; line-height: 1; cursor: pointer; color: var(--fama-red); z-index: 2; padding: 0; }
#fc-overlay-close:hover { color: #000; }
/* scrollable body */
.fc-overlay-body { flex: 1; overflow-y: auto; padding: 24px 28px 28px; display: flex; flex-direction: column; }
.fc-overlay-body::-webkit-scrollbar { width: 4px; }
.fc-overlay-body::-webkit-scrollbar-track { background: transparent; }
.fc-overlay-body::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.15); border-radius: 2px; }
/* header: kicker + title */
.fc-overlay-header .page-kicker { font-size: 1rem; font-weight: 800; color: var(--fama-red); text-transform: uppercase; letter-spacing: 0; margin: 0; display: block; }
.fc-overlay-title { font-family: 'Helvetica Now Display', -apple-system, BlinkMacSystemFont, sans-serif; font-size: 2.5rem; font-weight: 800; line-height: 1; margin: 0 0 0.5rem; color: #1e3a5f; }
.fc-overlay-header { margin-bottom: 0; }
.fc-overlay-title-row { display: flex; align-items: center; gap: 0.4rem; }
#fc-overlay-maps-link { display: none; color: #bbb; line-height: 1; flex-shrink: 0; margin-bottom: 0.4rem; transition: color 0.2s; }
#fc-overlay-maps-link:hover { color: #CF1F25; }
#fc-overlay-maps-link svg { display: block; }
#fc-overlay-content.intro { font-weight: 400; font-size: 0.9em; line-height: 1.6; color: var(--fama-black); margin-bottom: 1.5rem; }
#fc-overlay-content.intro p { margin: 0 0 1rem; }
#fc-overlay-content.intro p:last-child { margin-bottom: 0; }
/* macro cards grid */
#fc-overlay-macro-section { margin-top: 2rem; margin-bottom: 0; }
#fc-overlay-macro-section .cards2-image { height: calc((44vw - 104px) / 3.5); border-radius: 4px; position: relative; z-index: 0; overflow: hidden; }
#fc-overlay-macro-section .cards2-image img { object-position: center; }
#fc-overlay-macro-section .box.cards2 { position: relative; margin-bottom: 1rem; }
#fc-overlay-macro-grid { display: grid; grid-template-columns: 1fr; gap: 0; }
#fc-overlay-macro-grid:has(.box.cards2:nth-child(2)) { grid-template-columns: 1fr 1fr; gap: 1rem; }
#fc-overlay-macro-section .cards2-content { z-index: 1; }
/* resilience banners */
#fc-overlay-resilience-section { margin-top: 2rem; margin-bottom: 1rem; }
#fc-overlay-resilience-section .cards2-image { height: calc((44vw - 104px) / 3.5); border-radius: 4px; position: relative; z-index: 0; overflow: hidden; }
#fc-overlay-resilience-section .cards2-image img { object-position: center; }
#fc-overlay-resilience-section .box.cards2 { position: relative; margin-bottom: 1rem; }
#fc-overlay-resilience-grid { display: grid; grid-template-columns: 1fr; gap: 0; }
#fc-overlay-resilience-grid:has(.box.cards2:nth-child(2)) { grid-template-columns: 1fr 1fr; gap: 1rem; }
#fc-overlay-resilience-section .cards2-content { z-index: 1; }

/* voh section */
#fc-overlay-gallery-section { margin-bottom: 1.5rem; margin-top: 2rem; }
#fc-overlay-voh-section { margin-bottom: 0.5rem; margin-top: 2rem; }
#fc-overlay-voh { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
#fc-overlay-voh .voh-item { border-bottom: none; }

@media (max-width: 768px) {
    #fc-overlay-voh { grid-template-columns: 1fr; }
}

/* vg section */
#fc-overlay-vg-section { margin-bottom: 0.5rem; margin-top: 2rem; }
#fc-overlay-vg { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
#fc-overlay-vg .voh-item:last-of-type { border-bottom: none; }
#fc-overlay-vg .voh-item { border-bottom: none; }
#fc-overlay-vg .voh-label { display: none; }
.voh-modal.vg-mode .voh-modal-body { display: none; }

@media (max-width: 768px) {
    #fc-overlay-vg { grid-template-columns: 1fr; }
}

/* meta row */
.fc-overlay-meta { display: flex; gap: 18px; flex-wrap: wrap; padding-bottom: 16px; border-bottom: 1px solid rgba(0,0,0,0.08); }
.fc-overlay-meta-item { display: flex; flex-direction: column; gap: 2px; }
.fc-overlay-meta-label { font-size: 10px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(0,0,0,0.35); }
.fc-overlay-meta-value { font-size: 13px; color: rgba(0,0,0,0.75); }
/* main body text */
.fc-overlay-content { font-size: 14px; color: rgba(0,0,0,0.6); line-height: 1.75; }
.fc-overlay-content p { margin: 0 0 12px; }
.fc-overlay-content p:last-child { margin-bottom: 0; }
/* section label */
.fc-overlay-section-label { font-size: 10px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(0,0,0,0.35); padding-bottom: 10px; border-bottom: 1px solid rgba(0,0,0,0.08); margin-bottom: 4px; }

/* ── Gallery grid ────────────────────────────── */

.fc-overlay-gallery-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.fc-overlay-gallery-grid a { display: block; aspect-ratio: 1; overflow: hidden; border-radius: 4px; background: #f0f0f0; }
.fc-overlay-gallery-grid img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.3s ease; }
.fc-overlay-gallery-grid a:hover img { transform: scale(1.06); }

/* ── Lightbox ────────────────────────────────── */

#fc-lightbox { position: fixed; inset: 0; background: rgba(0,0,0,0.92); z-index: 9000; display: none; align-items: center; justify-content: center; }
#fc-lightbox.is-open { display: flex; }
#fc-lightbox-close { position: absolute; top: 18px; right: 22px; background: none; border: none; color: var(--fama-red); font-size: 38px; line-height: 1; font-weight: 700; cursor: pointer; }
#fc-lightbox-close:hover { color: #fff; }
#fc-lightbox-inner { max-width: 90vw; max-height: 90vh; display: flex; flex-direction: column; align-items: center; gap: 10px; }
#fc-lightbox-img { max-width: 100%; max-height: 82vh; object-fit: contain; border-radius: 4px; display: block; }
#fc-lightbox-copy { font-size: 11px; color: rgba(255,255,255,0.4); letter-spacing: 0.04em; }
.fc-lightbox-nav { position: absolute; top: 50%; transform: translateY(-50%); background: none; border: none; color: var(--fama-red); font-size: 56px; font-weight: 700; line-height: 1; cursor: pointer; padding: 0 18px; transition: color 0.2s; user-select: none; }
.fc-lightbox-nav:hover { color: #fff; }
.fc-lightbox-nav:disabled { opacity: 0.15; cursor: default; }
#fc-lightbox-prev { left: 0; }
#fc-lightbox-next { right: 0; }

/* backdrop */
#fc-overlay-backdrop { display: none; position: absolute; inset: 0; background: transparent; z-index: 1100; cursor: pointer; }
#fc-overlay-backdrop.is-open { display: block; }

@media (max-width: 768px) {
    #fc-overlay { width: 92%; height: 80%; }
}

/* ── Mobile map controls ──────────────────────────────── */
@media (max-width: 768px) {
    #fc-info-panel { display: none; }
    #fc-minimap { display: none !important; }

    /* Map section: not full height on mobile so user can scroll to content below */
    .section-map { height: 75vh !important; min-height: 400px; }
    .fc-scroll-hint { display: none; }

    /* Left controls: 20% smaller buttons, same layout */
    .fc-map-controls-left {
        display: grid !important;
        grid-template-columns: 30px 30px;
        grid-template-rows: repeat(4, 30px);
        gap: 6px;
        bottom: 24px;
        top: auto;
        left: 10px;
        transform: none;
    }
    .fc-map-controls-left button { width: 30px; height: 30px; }
    #fc-pins-toggle     { grid-column: 1; grid-row: 1; }
    #fc-neutral-toggle  { grid-column: 1; grid-row: 2; }
    #fc-thematic-toggle { grid-column: 1; grid-row: 3; }
    #fc-site-toggle     { grid-column: 1; grid-row: 4; }
    #fc-mono-toggle     { grid-column: 2; grid-row: 4; }

    /* Right controls: 20% smaller buttons, single column */
    .fc-map-controls-right {
        flex-direction: column;
        gap: 6px;
        bottom: 24px;
        top: auto;
        right: 10px;
        transform: none;
    }
    .fc-map-controls-right button { width: 30px; height: 30px; }

    /* Center zoom controls: 20% smaller */
    .fc-map-controls { bottom: 24px; gap: 6px; }
    .fc-map-controls button { width: 30px; height: 30px; font-size: 16px; }

    /* ── Overlay panel ── */
    #fc-overlay { width: 94%; height: 84%; top: calc(50% + 30px); }
    #fc-overlay.is-open { transform: translate(-50%, -50%) scale(1); }
    .fc-overlay-body { padding: 14px 14px 18px; }
    .fc-overlay-title { font-size: 1.5rem; }
    .fc-overlay-header .page-kicker { font-size: 0.75rem; }

    /* Reduce spacing between content blocks */
    #fc-overlay-macro-section { margin-top: 1rem; }
    #fc-overlay-resilience-section { margin-top: 1rem; }
    #fc-overlay-gallery-section { margin-top: 1rem; margin-bottom: 0.75rem; }
    #fc-overlay-voh-section { margin-top: 1rem; }
    #fc-overlay-vg-section { margin-top: 1rem; }

    /* Macro & resilience cards: single column, proportional image height */
    #fc-overlay-macro-grid,
    #fc-overlay-resilience-grid { grid-template-columns: 1fr !important; gap: 0 !important; }
    #fc-overlay-macro-section .cards2-image,
    #fc-overlay-resilience-section .cards2-image { height: calc((94vw - 28px) * 0.42); }

    /* Gallery grid: 3 columns */
    .fc-overlay-gallery-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
}
