/* Page Header */
.page-header {
    padding: 5rem 0;
    background-size: cover;
    background-position: center;
    position: relative;
    color: #fff;
    text-align: center;
}
.page-header::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
}
.page-header .container {
    position: relative;
    z-index: 2;
}
.page-header h1 {
    font-size: 3rem;
    font-weight: 700;
}
.page-header p {
    font-size: 1.2rem;
    opacity: 0.9;
}
.page-header .page-subtitle {
    display: block;
    font-size: 1rem;
    font-weight: bold;
    color: var(--color-primary, #daa520);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.page-header.with-thumbnail h1 {
    font-size: 3.5rem;
    font-weight: 700;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
}
/* --- Landmarks Archive Page Styles (landmarks.index) --- */
.landmark-archive-card {
    display: block;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    height: 350px;
}
.landmark-archive-card .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.landmark-archive-card:hover .card-image img {
    transform: scale(1.05);
}
.landmark-archive-card .card-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    padding: 1.5rem;
    background: linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.8) 0%,
        rgba(0, 0, 0, 0) 60%
    );
    text-align: center;
    opacity: 1;
    transition: opacity 0.3s ease;
}
.landmark-archive-card .card-title {
    color: #fff;
    font-size: 1.5rem;
    font-weight: 700;
    transform: translateY(10px);
    transition: transform 0.3s ease;
}
.landmark-archive-card:hover .card-title {
    transform: translateY(0);
}
/* ==============================================
   === Single Landmark Page Styles (landmarks.show) ===
   ============================================== */
/* --- Main Content Layout --- */
.main-content {
    background-color: #f8f9fa;
}

/* --- Generic Reusable Section Styling --- */
.project-section {
    margin-bottom: 3.5rem;
}
.project-section:last-child {
    margin-bottom: 0;
}
.section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #eee;
    color: var(--color-dark-text, #343a40);
}

/* --- Rich Text Content Styles --- */
/* These styles target the content coming from the RichEditor */
.rich-text-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
}
.rich-text-content h2,
.rich-text-content h3,
.rich-text-content h4 {
    font-weight: 700;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: var(--color-dark-text, #343a40);
    line-height: 1.4;
}
.rich-text-content p {
    margin-bottom: 1.25rem;
}
.rich-text-content a {
    color: var(--color-primary, #daa520);
    text-decoration: underline;
    text-underline-offset: 3px;
}
.rich-text-content ul,
.rich-text-content ol {
    padding-right: 1.5rem;
    margin-bottom: 1.5rem;
}
.rich-text-content li {
    margin-bottom: 0.75rem;
}
.rich-text-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 2rem 0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}
.rich-text-content table {
    width: 100%;
    margin-bottom: 2rem;
    border-collapse: collapse;
}
.rich-text-content th,
.rich-text-content td {
    border: 1px solid #dee2e6;
    padding: 0.75rem;
    text-align: right;
}
.rich-text-content th {
    background-color: #f1f3f6;
    font-weight: 600;
}

/* --- Project Gallery (Swiper.js) --- */
.project-gallery-slider {
    position: relative;
    padding: 10px; /* Padding for shadow and overflow visibility */
    margin: 0 -10px; /* Compensate for padding to align with container */
}
.project-gallery-slider .swiper-slide {
    height: 250px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    cursor: pointer;
}
.project-gallery-slider .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.project-gallery-slider .swiper-slide:hover img {
    transform: scale(1.08);
}
.project-gallery-slider .swiper-button-next,
.project-gallery-slider .swiper-button-prev {
    color: var(--color-primary, #daa520);
}
.swiper-button-next::after,
.swiper-button-prev::after {
    font-size: 1.5rem !important; /* Make Swiper arrows more visible */
}

/* --- iFrame Map Wrapper --- */
/* This can be a reusable style across different pages */
.map-iframe-wrapper-fullwidth {
    border-radius: var(--border-radius-large, 24px);
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}
.map-iframe-wrapper-fullwidth iframe {
    display: block;
    width: 100% !important;
    height: 500px !important;
    border: none;
}

/* --- Responsive Adjustments --- */
@media (max-width: 768px) {
    .page-header.with-thumbnail {
        min-height: 300px;
    }
    .page-header.with-thumbnail h1 {
        font-size: 2.5rem;
    }
    .rich-text-content {
        padding: 1.5rem !important;
    }
    .map-iframe-wrapper-fullwidth iframe {
        height: 400px !important;
    }
}
