/* ========================================
   CONTENT SECTIONS
   ======================================== */
.content-section {
    padding: var(--section-pad-y) 0;
    background-color: #ffffff;
}

.content-section:nth-child(even) {
    background-color: #ffffff;
}

.section-content {
    max-width: var(--content-width);
    margin: 0 auto;
}

/* Introduction Section */
.introduction-section {
    background-color: var(--color-white);
}

.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.content-item h3 {
    color: var(--color-primary);
    font-size: 1.125rem;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.content-item p {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: var(--color-text-light);
}

/* Context Section */
.context-section {
    background-color: #ffffff;
}

.subsection {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #e0e0e0;
}

.subsection:last-child {
    border-bottom: none;
}

.subsection h3 {
    color: var(--color-accent-warm);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.subsection p {
    font-size: 1rem;
    line-height: 1.8;
}

/* OUV Section */
.ouv-section {
    background-color: var(--color-secondary);
    background: linear-gradient(to bottom, var(--color-secondary) 0%, var(--color-white) 100%);
}

.ouv-content {
    background-color: var(--color-white);
    padding: 3rem;
    border-left: 4px solid var(--color-tertiary);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.ouv-content p {
    font-size: 1.0625rem;
    line-height: 1.9;
    color: var(--color-text);
}

/* Criteria Section */
.criteria-section {
    background-color: #ffffff;
}

.criteria-grid {
    display: grid;
    gap: 2rem;
}

.criteria-item {
    background-color: var(--color-white);
    padding: 2.5rem;
    border: 1px solid #e0e0e0;
    border-top: 3px solid var(--color-tertiary);
}

.criteria-item h3 {
    color: var(--color-primary);
    margin-bottom: 1rem;
}

.criteria-item p {
    font-size: 1rem;
    line-height: 1.8;
}

/* Significance Section */
.significance-section {
    background-color: var(--color-white);
}

.significance-content p {

    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

/* Maps Section */
.maps-section {
    background-color: #ffffff;
}

.maps-content h3 {
    color: var(--color-primary);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.maps-content h3:first-child {
    margin-top: 0;
}

.map-placeholder {
    background-color: var(--color-neutral);
    padding: 3rem;
    text-align: center;
    border: 2px dashed var(--color-primary);
    margin-top: 1rem;
    color: var(--color-text-light);
    font-style: italic;
}

/* Maps Page Specific Styles */
.maps-page-section {
    padding: var(--page-top-spacing) 0 var(--page-bottom-spacing);
    background-color: #ffffff;
    min-height: 100vh;
}


/* ========================================
   IDENTIFICATION PAGE STYLES
   ======================================== */
.identification-page-section {
    padding: var(--page-top-spacing) 0 var(--page-bottom-spacing);
    background-color: #ffffff;
    min-height: 100vh;
}

.identification-page-section h1 {
    color: var(--color-primary);
    font-size: 3rem;
    margin-bottom: 2rem;
}

.identification-page-section h2 {
    color: var(--color-accent-warm);
    font-size: 1.75rem;
    margin-top: 0;
    margin-bottom: 1.5rem;
}

.identification-page-section h3 {
    color: var(--color-primary);
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.identification-content .subsection {
    margin-bottom: 4rem;
    padding-bottom: 3rem;
    border-bottom: 2px solid #e0e0e0;
}

.identification-content .subsection:last-child {
    border-bottom: none;
}

.info-box {
    background-color: var(--color-secondary);
    padding: 1.5rem;
    margin-top: 1.5rem;
    border-left: 4px solid var(--color-tertiary);
    border-radius: var(--radius-sm);
}

.info-box strong {
    color: var(--color-primary);
    font-size: 1.125rem;
    display: block;
    margin-bottom: 0.5rem;
}

.coordinates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.coordinate-item {
    background-color: #ffffff;
    padding: 1.5rem;
    border: 1px solid #e0e0e0;
    border-radius: var(--radius-sm);
    text-align: center;
}

.coordinate-item h3 {
    color: var(--color-primary);
    font-size: 1rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.coordinate-value {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-accent-warm);
    font-family: 'Lora', serif;
}

.area-table {
    margin-top: 2rem;
    overflow-x: auto;
}

.area-table table {
    width: 100%;
    border-collapse: collapse;
    background-color: #ffffff;
    box-shadow: var(--shadow-soft);
}

.area-table thead {
    background-color: var(--color-primary);
    color: #ffffff;
}

.area-table th,
.area-table td {
    padding: 1.25rem;
    text-align: left;
    border: 1px solid #e0e0e0;
}

.area-table th {
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.9375rem;
}

.area-table td {
    font-size: 1rem;
}

.area-table .total-row {
    background-color: var(--color-secondary);
}

.map-reference {
    margin-top: 2rem;
    text-align: center;
}

.btn-secondary {
    display: inline-block;
    padding: 1rem 2.5rem;
    background-color: var(--button-bg);
    color: var(--button-fg);
    border-radius: var(--radius-sm);
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: var(--shadow-soft);
}

.btn-secondary:hover {
    background-color: var(--button-hover-bg);
    transform: translateY(-2px);
    box-shadow: var(--shadow-card);
    color: var(--button-hover-fg);
}


/* ======================================================
   JUSTIFICATION PAGE STYLES
   Page-specific structure and visual rules for Chapter 3.
====================================================== */

/* ======================================================
   HERO SECTION LAYOUT
   Creates the sticky scroll stage for the chapter SVG hero.
====================================================== */
.chapter-hero-svg {
    --chapter-hero-svg-scale: 1.05;
    width: 100%;
    margin-top: -5px;
    position: relative;
    background-color: transparent;
    background-image: var(--global-bg-pattern);
    background-size: var(--bg-size) var(--bg-size);
    background-repeat: repeat;
    height: auto;
}

.chapter-hero-svg__sticky {
    position: relative;
    top: auto;
    height: auto;
    overflow: hidden;
}

/* Keep chapter heading out of the initial viewport: push first content block below hero. */
.chapter-hero-svg + main.chapter,
.chapter-hero-svg + .chapter {
    margin-top: var(--chapter-content-offset);
}

/* Keeps SVG centered and pinned to the bottom edge of the viewport */
.chapter-hero-svg__svg-wrap {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    overflow: hidden;
}

/* Reserve hero space only before the SVG is injected, without affecting final framing. */
.chapter-hero-svg__svg-wrap:empty {
    min-height: min(100vh, var(--hero-art-height));
}

/* ---------- SVG SCALING ----------
   Slight scale-up keeps artwork visually full inside the hero stage. */
.chapter-hero-svg__svg-wrap svg {
    display: block;
    width: auto;
    height: var(--hero-art-height);
    max-height: 100vh;
    max-width: none;
    margin-top: 0;
    transform: scale(var(--chapter-hero-svg-scale));
    transform-origin: top center;
}

/* ---------- SCROLL ANIMATION HELPER ----------
   Only #Title is marked for transform updates to keep animation performant. */
.chapter-hero-svg__svg-wrap #Title {
    transform-box: fill-box;
    transform-origin: center center;
    will-change: transform;
}

.chapter-hero-svg__svg-wrap img {
    width: auto;
    height: var(--hero-art-height);
    max-width: 100%;
    max-height: 100vh;
    margin-top: 0;
    object-fit: contain;
}

/* ======================================================
   RESPONSIVE HERO ADJUSTMENTS
   Tweaks scroll distance and scale on smaller screens.
====================================================== */
@media (max-width: 768px) {
    /* Mobile hero fit: keep chapter SVG centered and readable on phones. */
    .chapter-hero-svg {
        --chapter-hero-svg-scale: 1;
        margin-top: 0;
        min-height: calc(100dvh - var(--header-height-mobile));
        height: calc(100dvh - var(--header-height-mobile));
    }

    .chapter-hero-svg__sticky {
        position: relative;
        top: auto;
        height: 100%;
    }

    .chapter-hero-svg + main.chapter,
    .chapter-hero-svg + .chapter {
        margin-top: var(--chapter-content-offset);
    }

    .chapter-hero-svg__svg-wrap {
        align-items: flex-start;
        justify-content: center;
        padding: 0;
        width: 100%;
        height: 100%;
    }

    .chapter-hero-svg__svg-wrap:empty {
        min-height: calc(100dvh - var(--header-height-mobile));
    }

    .chapter-hero-svg__svg-wrap svg,
    .chapter-hero-svg__svg-wrap img {
        width: 100%;
        height: 100%;
        max-width: none;
        max-height: none;
        transform: none;
        margin-top: 0;
    }

    .chapter-hero-svg__svg-wrap img {
        object-fit: cover;
        object-position: center center;
    }
}

@media (max-width: 480px) {
    .chapter-hero-svg {
        --chapter-hero-svg-scale: 1;
        min-height: calc(100dvh - var(--header-height-mobile-sm));
        height: calc(100dvh - var(--header-height-mobile-sm));
    }

    .chapter-hero-svg__sticky {
        position: relative;
        top: auto;
        height: 100%;
    }

    .chapter-hero-svg + main.chapter,
    .chapter-hero-svg + .chapter {
        margin-top: var(--chapter-content-offset);
    }

    .chapter-hero-svg__svg-wrap:empty {
        min-height: calc(100dvh - var(--header-height-mobile-sm));
    }

    .chapter-hero-svg__svg-wrap svg,
    .chapter-hero-svg__svg-wrap img {
        width: 100%;
        height: 100%;
        max-height: none;
        transform: none;
        margin-top: 0;
    }

    .chapter-hero-svg__svg-wrap img {
        object-fit: cover;
        object-position: center center;
    }
}

/* ======================================================
   HERO SCROLL INDICATOR
   White arrow stays visible on darker hero art.
====================================================== */
.scroll-arrow-center-white {
    position: absolute;
    bottom: 50%;
    left: 50%;
    transform: translate(-50%, 50%);
    width: 60px;
    height: 90px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    z-index: 15;
    cursor: pointer;
    text-decoration: none;
    animation: bounceWhite 2s infinite;
}

.arrow-line-white {
    width: 5px;
    height: 45px;
    background-color: var(--page-color);
    transform-origin: top center;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.5));
}

.arrow-line-white:first-child {
    transform: rotate(45deg) translateX(15px);
}

.arrow-line-white:last-child {
    transform: rotate(-45deg) translateX(-15px);
}

@keyframes bounceWhite {
    0%, 20%, 50%, 80%, 100% {
        transform: translate(-50%, 50%) translateY(0);
    }
    40% {
        transform: translate(-50%, 50%) translateY(-15px);
    }
    60% {
        transform: translate(-50%, 50%) translateY(-8px);
    }
}

.scroll-arrow-center-white:hover .arrow-line-white {
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.7));
}

.hero-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.hero-image-title {
    color: #ffffff;
    font-size: 3.5rem;
    font-family: 'Times New Roman', Times, serif;
    font-weight: 600;
    text-align: center;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7),
                 0 0 20px rgba(0, 0, 0, 0.5);
    letter-spacing: 0.05em;
    padding: 0 2rem;
    margin: 0;
}

.justification-page-section {
    padding: 2rem 0 5rem;
    background-color: #ffffff;
    min-height: 100vh;
}

.justification-page-section .section-content {
    min-height: 727.67px;
}

.justification-page-section h1 {
    color: var(--color-primary);
    font-size: 3rem;
    margin-bottom: 2rem;
}

.justification-page-section h2 {
    color: var(--color-accent-warm);
    font-size: 2rem;
    margin-top: 0;
    margin-bottom: 1.5rem;
}

.justification-content .subsection {
    margin-bottom: 4rem;
    padding-bottom: 3rem;
    border-bottom: 2px solid #e0e0e0;
}

.justification-content .subsection:last-child {
    border-bottom: none;
}

.intro-text {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--color-text);
    margin-bottom: 2rem;
}

.criteria-boxes {
    display: grid;
    gap: 2rem;
    margin-top: 2rem;
}

.criterion-box {
    background-color: #ffffff;
    border: 2px solid var(--color-secondary);
    border-left: 6px solid var(--color-tertiary);
    padding: 2rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    position: relative;
}

.criterion-number {
    position: absolute;
    top: -15px;
    left: 2rem;
    background-color: var(--color-tertiary);
    color: #ffffff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 600;
    font-style: italic;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.criterion-box h3 {
    color: var(--color-primary);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    margin-top: 1rem;
}

.criterion-definition {
    font-style: italic;
    color: var(--color-text-light);
    font-size: 0.9375rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    padding-left: 1rem;
    border-left: 3px solid var(--color-secondary);
}

.criterion-justification-text {
    background-color: #ffffff;
    padding: 1.5rem;
    border-radius: var(--radius-sm);
    margin-top: 1rem;
}

.criterion-justification-text p {
    margin: 0;
    line-height: 1.8;
}

.integrity-box,
.authenticity-box {
    background-color: var(--color-secondary);
    padding: 2rem;
    margin-top: 2rem;
    border-left: 4px solid var(--color-tertiary);
    border-radius: var(--radius-sm);
}

.integrity-box h3,
.authenticity-box h3 {
    color: var(--color-primary);
    font-size: 1.25rem;
    margin-bottom: 1rem;
    margin-top: 0;
}

.integrity-box ul,
.authenticity-box ul {
    margin: 0;
    padding-left: 1.5rem;
}

.integrity-box li,
.authenticity-box li {
  color: var(--color-text);
}

/* Justification Page - Content Color Styling */
body.justification-page .justification-page-section h1 {
    color: var(--page-color);
}

body.justification-page .justification-page-section h2 {
    color: var(--page-color);
}

body.justification-page .criterion-box {
    border-left: 6px solid var(--page-color);
}

body.justification-page .criterion-number {
    background-color: var(--page-color);
}

body.justification-page .criterion-box h3 {
    color: var(--page-color);
}

body.justification-page .integrity-box,
body.justification-page .authenticity-box {
    border-left: 4px solid var(--page-color);
}

body.justification-page .integrity-box h3,
body.justification-page .authenticity-box h3 {
    color: var(--page-color);
}

.maps-page-section h1 {
    color: var(--page-color);
    font-size: 3rem;
    margin-bottom: 1rem;
}

.maps-page-section h2 {
    color: var(--color-primary);
    font-size: 2rem;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
}

/* Map Categories Grid */
.map-categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.map-category-card {
    background-color: #ffffff;
    border: 2px solid #e0e0e0;
    border-radius: var(--radius-md);
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.map-category-card:hover {
    border-color: var(--color-accent-warm);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-4px);
}

.category-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.icon-placeholder {
    font-style: normal;
}

.map-category-card h3 {
    color: var(--color-accent-warm);
    font-size: 1.5rem;
    margin: 1rem 0 0.5rem;
}

.map-category-card p {
    color: var(--color-text-light);
    font-size: 0.9375rem;
    margin-bottom: 1.5rem;
}

.btn-view-maps {
    background-color: var(--color-accent-warm);
    color: #ffffff;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-view-maps:hover {
    background-color: var(--color-tertiary);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Map Gallery Modal */
.map-gallery-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.gallery-modal-content {
    background-color: #ffffff;
    border-radius: var(--radius-md);
    max-width: var(--container-width);
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-panel);
}

.gallery-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem;
    border-bottom: 2px solid #e0e0e0;
    position: sticky;
    top: 0;
    background-color: #ffffff;
    z-index: 10;
}

.gallery-header h2 {
    color: var(--color-primary);
    margin: 0;
    font-size: 1.75rem;
}

.close-gallery {
    background: none;
    border: none;
    font-size: 2.5rem;
    color: var(--color-text-light);
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease;
}

.close-gallery:hover {
    color: var(--color-accent-warm);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    padding: 2rem;
}

.gallery-item {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: var(--radius-sm);
    overflow: hidden;
    transition: all 0.3s ease;
}

.gallery-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-4px);
}

.gallery-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.gallery-item img:hover {
    opacity: 0.9;
}

.map-caption {
    padding: 1rem;
    text-align: center;
    color: var(--color-text);
    font-weight: 500;
    margin: 0;
}

.no-maps-message {
    text-align: center;
    color: var(--color-text-light);
    font-size: 1.125rem;
    padding: 3rem;
    grid-column: 1 / -1;
}

@media (max-width: 768px) {
    .map-categories-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .map-gallery-modal {
        padding: 1rem;
    }
    
    .gallery-header {
        padding: 1.5rem;
    }
}

.maps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.map-item {
    background-color: var(--color-white);
    padding: 2rem;
    border: 1px solid #e0e0e0;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
}

.map-item h3 {
    color: var(--color-accent-warm);
    font-size: 1.5rem;
    margin-top: 0;
    margin-bottom: 1.5rem;
    text-align: center;
}

.map-image-placeholder {
    background-color: #ffffff;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px dashed var(--color-neutral);
    color: var(--color-text-light);
    font-style: italic;
    text-align: center;
    padding: 2rem;
}

/* Management Section */
.management-section {
    background-color: var(--color-white);
}

.management-content p {
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

/* Risks Section */
.risks-section {
    background-color: #ffffff;
}

.risks-content p {
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

/* Materials Section */
.materials-section {
    background-color: var(--color-white);
}

.materials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.material-item {
    text-align: center;
}

.material-item img {
    width: 100%;
    height: 150px;
    object-fit: contain;
    margin-bottom: 0.75rem;
    opacity: 0.8;
}

.material-item .caption {
    font-size: 0.875rem;
    color: var(--color-text-light);
    font-style: italic;
}

/* Contact Section */
.contact-section {
    background-color: #ffffff;
}

.contact-content h3 {
    color: var(--color-primary);
    margin-bottom: 1rem;
}

.contact-content p {
    font-size: 1rem;
    line-height: 1.8;
}

/* About Section */
.about-section {
    background-color: #ffffff;
}

.about-content p {
    font-size: 1.125rem;
    line-height: 1.9;
    margin-bottom: 1.5rem;
    color: var(--color-text);
    text-align: justify;
}

.about-content p:last-child {
    margin-bottom: 0;
}

/* Contacts Section */
.contacts-section {
    background-color: transparent;
}

.contacts-content h3 {
    color: var(--color-primary);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.contacts-content p {
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.contact-info {
    background-color: var(--color-secondary);
    padding: 2rem;
    border-left: 4px solid var(--color-tertiary);
    border-radius: var(--radius-sm);
    margin-top: 2rem;
}

.contact-info p {
    margin-bottom: 1.5rem;
}

.contact-info p:last-child {
    margin-bottom: 0;
}

.contact-info strong {
    color: var(--color-primary);
    font-size: 1.125rem;
    display: block;
    margin-bottom: 0.25rem;
}

/* Download Section */
.download-section {
    background: linear-gradient(135deg, var(--color-tertiary) 0%, var(--color-accent-warm) 100%);
    color: var(--color-white);
    text-align: center;
}

.download-section .section-header h2 {
    color: var(--color-white);
}

.download-section .section-header h2::after {
    background-color: var(--color-white);
}

.download-content p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: var(--color-white);
}

.download-link {
    display: flex;
    justify-content: center;
}

.btn-download {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1.5rem 3rem;
    background-color: var(--color-white);
    color: var(--color-primary);
    border-radius: 4px;
    font-weight: 500;
    font-size: 1.125rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.btn-download:hover {
    background-color: var(--color-secondary);
    color: var(--color-primary);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.btn-download .file-size {
    font-size: 0.875rem;
    font-weight: 300;
    color: var(--color-text-light);
}

/* Download Section - Main Page Style */
.download-main-section {
    background-color: #ffffff;
}

.download-main-content p {
    font-size: 1.125rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    color: var(--color-text);
    text-align: center;
}

.download-box {
    background-color: #f3f3f3;
    border: 2px solid var(--color-white);
    border-radius: var(--radius-md);
    padding: 2.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    box-shadow: var(--shadow-soft);
    margin-top: 2rem;
}

.download-file-info {
    flex: 1;
    text-align: left;
}

.download-file-info h3 {
    color: var(--color-primary);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    margin-top: 0;
}

.file-description {
    color: var(--color-text);
    font-size: 1rem;
    margin-bottom: 0.5rem;
    font-family: monospace;
}

.file-meta {
    color: var(--color-text-light);
    font-size: 0.875rem;
    margin: 0;
}

.download-action {
    flex-shrink: 0;
}

.btn-download-main {
    display: inline-block;
    padding: 1rem 2.5rem;
    background-color: var(--color-tertiary);
    color: #ffffff;
    border-radius: var(--radius-sm);
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: var(--shadow-soft);
}

.btn-download-main:hover {
    background-color: var(--color-accent-warm);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    color: #ffffff;
}

@media (max-width: 768px) {
    .download-box {
        flex-direction: column;
        text-align: center;
    }
    
    .download-file-info {
        text-align: center;
    }
}


/* Single interactive map block */
.single-map-block {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: var(--radius-md);
    max-width: 860px;
    margin: 0 auto;
    padding: 1.25rem;
    box-shadow: var(--shadow-soft);
}

.single-map-block p {
    margin-top: 0;
    margin-bottom: 1.25rem;
    color: var(--color-text);
}

.single-map-frame {
    width: 100%;
    border: 1px solid #d8d8d8;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 1.25rem;
}

.single-map-frame iframe {
    width: 100%;
    height: min(42vh, 360px);
    border: 0;
    display: block;
}

/* ========================================
   PHOTO PAGE: RADIO BUTTONS GALLERY STYLE
   Sibling dimming effect on hover.
   ======================================== */
.photo-page-section {
    padding: var(--page-top-spacing) 0 var(--page-bottom-spacing);
    background-color: #ffffff;
    min-height: 100vh;
    font-family: "Tw Cen MT", "Tw Cen MT Std", "Trebuchet MS", sans-serif;
}

.photo-page-section h1 {
    color: var(--color-primary);
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.radio-btns {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(3, minmax(120px, 1fr));
}

.radio-btns:hover .radio-btns__btn:not(:hover) {
    filter: grayscale(100%);
    opacity: 0.75;
}

.radio-btns:hover .radio-btns__btn:not(:hover)::after {
    background-color: rgba(0, 0, 0, 0.45);
}

.radio-btns__btn {
    position: relative;
    cursor: pointer;
    border: 0;
    padding: 0;
    background: none;
    transition: filter 0.3s ease, opacity 0.3s ease;
    overflow: hidden;
}

.radio-btns__btn::after {
    content: "";
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0);
    transition: background-color 0.3s ease;
}

.radio-btns__btn img {
    display: block;
    width: 100%;
    max-width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.radio-btns__btn[aria-checked="true"]::after {
    background-color: rgba(0, 0, 0, 0.12);
}

.radio-btns__btn:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

/* Tablet/mobile book gallery (kept hidden; grid is used on all breakpoints) */
.photo-book-stage {
    display: none;
}

@media (max-width: 1199px) {
    .photo-page-section .section-content {
        max-width: 100%;
    }

    .photo-page-section {
        min-height: auto;
    }

    .radio-btns {
        display: grid;
        grid-template-columns: repeat(3, minmax(110px, 1fr));
        gap: 8px;
    }

    .photo-book-stage {
        display: none !important;
        --book-spread-width: min(420px, calc(100vw - 56px));
        justify-items: center;
        gap: 0.75rem;
        margin-top: 0.75rem;
        padding: 1.25rem 0.75rem 1rem;
        border-radius: 10px;
        background: #ececec;
        touch-action: pan-y;
        color: #555;
    }

    .photo-book-container {
        position: relative;
        width: var(--book-spread-width);
        min-height: 390px;
        border: 2px solid rgba(255, 255, 255, 0.95);
        border-radius: 4px;
        padding: 0.35rem 0.5rem 0;
        background: rgba(255, 255, 255, 0.08);
    }

    .photo-book-title {
        margin: 0;
        width: 100%;
        text-align: center;
        font-family: "Indie Flower", "Tw Cen MT", cursive;
        font-size: clamp(1.8rem, 4.5vw, 2.6rem);
        line-height: 0.95;
        font-weight: 400;
        color: #464f66;
    }

    .photo-book {
        position: absolute;
        left: 50%;
        top: 53%;
        transform: translate(-50%, -50%);
        perspective: 630px;
        perspective-origin: center 44px;
        filter: drop-shadow(0 9px 5px rgba(0, 0, 0, 0.26));
    }

    .photo-book-gap {
        position: absolute;
        left: 50%;
        top: 0px;
        width: 10px;
        height: 286px;
        transform: translateX(-50%);
        background: rgba(65, 65, 65, 0.8);
        border-radius: 10px;
        z-index: 3;
    }

    .photo-book-spread {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0;
        min-height: 286px;
        width: var(--book-spread-width);
    }

    .photo-book-page {
        border: 2px solid rgba(0, 0, 0, 0.35);
        border-radius: 1px;
        background-size: cover;
        background-position: center;
        min-height: 286px;
        width: calc(var(--book-spread-width) / 2);
        box-shadow: 0 2px 0 rgba(0, 0, 0, 0.2);
    }

    .photo-book-page--left {
        transform: rotateX(60deg) rotateY(6deg);
        transform-origin: right center;
        clip-path: polygon(10% 0, 100% 5%, 100% 100%, 0 95%);
        opacity: 0.95;
    }

    .photo-book-page--right {
        transform: rotateX(60deg) rotateY(174deg);
        transform-origin: left center;
        cursor: zoom-in;
        background-color: rgba(255, 255, 255, 0.2);
        clip-path: polygon(0 5%, 90% 0, 100% 95%, 0 100%);
        margin-left: -1px;
    }

    .photo-book-page--right.is-flip-next,
    .photo-book-page--right.is-flip-prev {
        animation-duration: 320ms;
        animation-timing-function: ease;
    }

    .photo-book-page--right.is-flip-next {
        animation-name: bookFlipNext;
    }

    .photo-book-page--right.is-flip-prev {
        animation-name: bookFlipPrev;
    }

    .photo-book-controls {
        display: grid;
        grid-template-columns: 42px 1fr 42px;
        align-items: center;
        gap: 0.5rem;
        margin-top: auto;
        padding-top: 0.15rem;
    }

    .photo-book-nav {
        border: 0;
        width: 42px;
        height: 42px;
        border-radius: 50%;
        background: rgba(90, 90, 90, 0.14);
        color: #505050;
        font-size: 1.25rem;
        cursor: pointer;
    }

    .photo-book-counter {
        margin: 0;
        text-align: center;
        color: #555;
        font-size: 0.95rem;
        font-family: "Indie Flower", "Tw Cen MT", cursive;
        letter-spacing: 0.04em;
    }

    .photo-book-thumbs {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(52px, 1fr));
        gap: 0.35rem;
        max-height: 108px;
        overflow: auto hidden;
        padding-right: 2px;
        width: var(--book-spread-width);
    }

    .photo-book-thumb {
        border: 1px solid rgba(255, 255, 255, 0.45);
        border-radius: 6px;
        padding: 0;
        background: none;
        cursor: pointer;
        overflow: hidden;
    }

    .photo-book-thumb img {
        display: block;
        width: 100%;
        height: 52px;
        object-fit: cover;
    }

    .photo-book-thumb[aria-current="true"] {
        border-color: #fff;
        box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.3);
    }

    .photo-book-tip {
        color: #666;
        font-size: 0.85rem;
        text-align: center;
        font-family: "Indie Flower", "Tw Cen MT", cursive;
    }

    .photo-book-credit {
        margin: 0.25rem 0 0;
        font-size: 0.8rem;
        color: #666;
        text-align: left;
        font-family: "Indie Flower", "Tw Cen MT", cursive;
        padding-left: 0.25rem;
    }
}

@keyframes bookFlipNext {
    0% { transform: rotateX(60deg) rotateY(174deg); }
    50% { transform: rotateX(60deg) rotateY(135deg); }
    100% { transform: rotateX(60deg) rotateY(174deg); }
}

@keyframes bookFlipPrev {
    0% { transform: rotateX(60deg) rotateY(174deg); }
    50% { transform: rotateX(60deg) rotateY(188deg); }
    100% { transform: rotateX(60deg) rotateY(174deg); }
}

@media (max-width: 768px) {
    .radio-btns {
        grid-template-columns: repeat(2, minmax(120px, 1fr));
    }

    .photo-lightbox-nav {
        display: none;
    }

    .photo-book-stage {
        display: none !important;
        --book-spread-width: min(350px, calc(100vw - 28px));
        padding: 1rem 0.35rem 0.7rem;
    }

    .photo-book-container {
        min-height: 334px;
        padding: 0.2rem 0.35rem 0;
    }

    .photo-book-title {
        font-size: clamp(1.6rem, 7vw, 2.1rem);
    }

    .photo-book {
        top: 54%;
    }

    .photo-book-gap {
        height: 238px;
    }

    .photo-book-spread,
    .photo-book-page {
        min-height: 238px;
    }

    .photo-book-controls {
        grid-template-columns: 36px 1fr 36px;
    }

    .photo-book-nav {
        width: 36px;
        height: 36px;
    }

    .photo-book-thumbs {
        grid-template-columns: repeat(auto-fit, minmax(48px, 1fr));
        max-height: 92px;
    }

    .photo-book-thumb img {
        height: 48px;
    }
}

.photo-lightbox {
    position: fixed;
    inset: 0;
    background: var(--photo-lightbox-bg);
    z-index: 2500;
    display: none;
    align-items: center;
    justify-content: center;
    padding:
        calc(1rem + var(--safe-area-top))
        calc(1rem + var(--safe-area-right))
        calc(1rem + var(--safe-area-bottom))
        calc(1rem + var(--safe-area-left));
}

.photo-lightbox.active {
    display: flex;
}

.photo-lightbox-content {
    margin: 0;
    max-width: 90vw;
    max-height: 85vh;
    text-align: center;
}

.photo-lightbox-content img {
    max-width: 100%;
    max-height: 78vh;
    object-fit: contain;
    border-radius: 4px;
}

.photo-lightbox-content figcaption {
    color: #fff;
    margin-top: 0.75rem;
    font-size: 0.95rem;
    font-family: "Tw Cen MT", "Tw Cen MT Std", "Trebuchet MS", sans-serif;
}

.photo-lightbox-close,
.photo-lightbox-nav {
    position: absolute;
    background: rgba(255, 255, 255, 0.18);
    border: 0;
    color: #fff;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.4rem;
    line-height: 1;
}

.photo-lightbox-close {
    top: calc(1.25rem + var(--safe-area-top));
    right: calc(1.25rem + var(--safe-area-right));
    font-size: 2rem;
}

.photo-lightbox-nav.prev {
    left: 1.25rem;
}

.photo-lightbox-nav.next {
    right: 1.25rem;
}

/* ========================================
   GENERIC DOSSIER CHAPTER PAGE STYLES
   ======================================== */
.chapter-page-section {
    padding: var(--page-top-spacing) 0 var(--page-bottom-spacing);
    background-color: #ffffff;
    min-height: 100vh;
}

.chapter-page-section h1 {
    color: var(--color-primary);
    font-size: 3rem;
    margin-bottom: 0.75rem;
}

.chapter-subtitle {
    color: var(--color-text-light);
    font-size: 1.05rem;
    margin-bottom: 2rem;
}

.chapter-content .subsection {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #e0e0e0;
}

.chapter-content .subsection:last-child {
    border-bottom: none;
}

/* ========================================
   RESPONSIBLE AUTHORITIES DIRECTORY
   Editorial contact layout for institutional data.
   ======================================== */
.contacts-directory {
    display: grid;
    gap: clamp(1.5rem, 3vw, 2.5rem);
}

.contacts-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(1.25rem, 2.5vw, 2rem);
}

.contact-card {
    padding: clamp(1.1rem, 2vw, 1.5rem);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.45);
}

.contact-card h2 {
    margin: 0 0 0.85rem;
    font-size: clamp(1.1rem, 1.6vw, 1.35rem);
    line-height: 1.3;
    max-width: 34ch;
}

.contact-card p {
    margin: 0;
    line-height: 1.65;
    max-width: 60ch;
}

.contact-card p + p {
    margin-top: 0.5rem;
}

.contact-label {
    color: var(--color-text-light);
    font-weight: 600;
}

.contacts-subsection {
    margin: 0;
    padding-bottom: 1rem;
}

.contacts-subsection h2 {
    margin: 0;
}

.contacts-site-link {
    margin: 0;
    font-size: 0.98rem;
}

@media (max-width: 900px) {
    .contacts-grid {
        grid-template-columns: 1fr;
    }
}
