/*
Theme Name: IPEC Theme
Theme URI: https://ipec-group.com
Author: IPEC
Author URI: https://ipec-group.com
Description: Custom WordPress theme for IPEC Group based on static HTML prototype.
Version: 1.0.25
Text Domain: ipec-theme
*/

/* =========================
   Design Tokens
   ========================= */
:root {
    --color-primary-dark: #1b3e77;
    --color-primary-middle: #0077C8;
    --color-accent-green: #A4D65E;
    --color-text: #333;
    --color-light-grey: #f4f4f4;
    --color-white: #ffffff;
    --shadow-soft: 0 5px 15px rgba(0, 0, 0, 0.08);
    --radius-md: 8px;

    /* Brand primaries – IPEC blues from the brand manual */
    --color-primary: #1b3e77;
    /* Dark blue (Primary 1) */
    --color-primary-dark: #1b3e77;
    /* Keep headings/footer in the same dark blue */
    --color-accent-blue: #0077C8;
    /* Vibrant middle blue (Primary 2) – buttons, links */

    /* Convenience accent alias for components that use --color-accent */
    --color-accent: #0077C8;

    /* Brand secondary accents */
    --color-accent-pink: #E31C79;
    --color-accent-yellow: #F9E547;
    --color-accent-green: #A4D65E;
    --color-accent-gray: #C1C6C8;

    --color-bg: #f8f9fa;
    --color-border: #e1e4ea;

    --container-width: 1200px;
    --header-height: 72px;

    --radius-xs: 4px;
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;

    --shadow-strong: 0 20px 25px -5px rgba(0, 0, 0, 0.15),
        0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* =========================
   Global Reset & Base
   ========================= */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: 'Lato', sans-serif;
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}

a:hover,
a:focus {
    text-decoration: underline;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Layout helpers */
.container {
    width: min(var(--container-width), 100% - 2.5rem);
    margin-inline: auto;
}

.section-padding {
    padding-block: 4rem;
}

.section-title {
    margin: 0 0 0.5rem;
    font-size: clamp(2rem, 2.4vw, 2.5rem);
    font-weight: 800;
    color: var(--color-primary-dark);
    text-align: center;
    text-transform: uppercase;
    cursor: pointer;
}

.section-subtitle {
    margin: 0 0 2.5rem;
    max-width: 42rem;
    margin-inline: auto;
    text-align: center;
    font-size: 1rem;
    color: var(--color-text-muted);
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.6rem;
    border-radius: 999px;
    border: none;
    background: linear-gradient(135deg, var(--color-accent-blue), var(--color-primary));
    color: var(--color-white);
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    cursor: pointer;
}

/* =========================
   Header & Navigation
   ========================= */

.main-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: rgba(27, 62, 119, 0.95);
    color: var(--color-white);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.header-container {
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.logo img {
    height: 40px;
    width: auto;
}

.main-nav {
    flex: 1;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-list {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-list a {
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.11em;
    color: var(--color-white);
    position: relative;
    padding-block: 0.2rem;
}

.nav-list a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -0.4rem;
    width: 0;
    height: 2px;
    background-color: var(--color-accent-blue);
    transition: width 0.18s ease-out;
}

.nav-list a:hover::after,
.nav-list a:focus-visible::after {
    width: 100%;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    width: 40px;
    height: 40px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.45);
    background: transparent;
    cursor: pointer;
}

.mobile-menu-toggle span {
    height: 2px;
    width: 18px;
    border-radius: 999px;
    background-color: var(--color-white);
}

.lang-switch {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    position: relative;
    cursor: pointer;
}

.lang-current {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.8rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: transparent;
    color: var(--color-white);
    transition: all 0.2s ease;
    cursor: pointer;
}

.lang-current:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.6);
}

.lang-flag {
    width: 20px;
    height: auto;
    border-radius: 2px;
}

.lang-text {
    font-weight: 700;
}

/* Hide dropdown for now as requested */
.lang-dropdown {
    display: none;
}

.social-links {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.social-link {
    width: 26px;
    height: 26px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.65);
    position: relative;
}

.social-link::before {
    content: '';
    position: absolute;
    inset: 6px;
    border-radius: inherit;
    background-color: rgba(255, 255, 255, 0.9);
}

.social-instagram::before {
    background: radial-gradient(circle at 30% 30%, #feda75, transparent 55%),
        radial-gradient(circle at 70% 70%, #d62976, transparent 55%),
        radial-gradient(circle at 30% 70%, #4f5bd5, transparent 55%);
}

.social-facebook::before {
    background-color: #1877f2;
}

.social-linkedin::before {
    background-color: #0a66c2;
}

/* =========================
   Hero
   ========================= */

.hero-section {
    position: relative;
    min-height: 65vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--color-white);
    background: url('images/home/family_picture_v2.jpg') center/cover no-repeat;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 20%, rgba(0, 119, 200, 0.45), transparent 55%),
        radial-gradient(circle at 80% 80%, rgba(164, 214, 94, 0.2), transparent 60%),
        linear-gradient(135deg, var(--color-primary-dark), var(--color-primary));
    opacity: 0.97;
}

.hero-content {
    position: relative;
    max-width: 52rem;
    padding-inline: 1.5rem;
}

.hero-title {
    font-size: clamp(2.5rem, 4vw, 3.6rem);
    line-height: 1.1;
    font-weight: 900;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.hero-subtitle {
    font-size: 1.05rem;
    margin-bottom: 1rem;
}

.hero-description {
    font-size: 0.98rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 40rem;
    margin-inline: auto;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.8);
}

.scroll-arrow {
    margin-top: 0.6rem;
    font-size: 1.25rem;
    animation: scroll-pulse 1.4s infinite;
}

@keyframes scroll-pulse {

    0%,
    100% {
        transform: translateY(0);
        opacity: 0.7;
    }

    50% {
        transform: translateY(4px);
        opacity: 1;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.2rem;
    }

    .hero-content {
        padding-bottom: 3rem;
        /* Push content up away from indicator */
    }

    .scroll-indicator {
        bottom: 1.5rem;
    }

    /* Reduce below hero image height on mobile */
    .below-hero-image {
        height: 220px !important;
    }
}

/* =========================
   Below Hero Image Section
   ========================= */
.below-hero-section {
    padding: 0;
    background-color: var(--color-white);
    line-height: 0;
    /* Remove potential gap below image */
}

.below-hero-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
}

/* =========================
   Properties Carousel (simple grid for now)
   ========================= */

.properties-section {
    background-color: var(--color-white);
}

.properties-carousel-wrapper {
    position: relative;
}

.properties-carousel {
    display: flex;
    gap: 1.75rem;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 1rem;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    cursor: grab;
}

.properties-carousel.is-dragging {
    cursor: grabbing;
    user-select: none;
}

.properties-carousel::-webkit-scrollbar {
    height: 6px;
}

.properties-carousel::-webkit-scrollbar-track {
    background: transparent;
}

.properties-carousel::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.15);
    border-radius: 999px;
}

.property-card {
    background-color: var(--color-bg);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
    flex: 0 0 260px;
    scroll-snap-align: start;
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.property-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 35px rgba(0, 0, 0, 0.18);
}

.properties-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 5;
}

.properties-nav--prev {
    left: -18px;
}

.properties-nav--next {
    right: -18px;
}

.properties-nav:hover {
    background: var(--color-accent-blue);
    color: #fff;
}

.property-image {
    overflow: hidden;
}

.property-image img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    transform: scale(1.02);
    transition: transform 220ms ease-out;
}

.property-card:hover .property-image img {
    transform: scale(1.07);
}

.property-info {
    padding: 1.25rem 1.4rem 1.4rem;
}

.property-info h3 {
    margin: 0 0 0.3rem;
    font-size: 1.1rem;
    color: var(--color-primary-dark);
}

.property-location {
    margin: 0 0 0.15rem;
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.property-size,
.property-type,
.property-price {
    margin: 0.15rem 0;
    font-size: 0.9rem;
}

.property-price {
    font-weight: 700;
    color: var(--color-accent-blue);
}

.properties-empty {
    text-align: center;
    color: var(--color-text-muted);
}

.project-link,
.contact-link {
    display: inline-flex;
    margin-top: 0.75rem;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--color-accent-blue);
}

/* =========================
   Growth section (D1 Park intro)
   ========================= */

.growth-section {
    background: var(--color-white);
}

.growth-content {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 3rem;
    align-items: center;
}

.growth-text h2 {
    margin-top: 0;
    margin-bottom: 1rem;
}

.growth-text p {
    margin-top: 0;
    margin-bottom: 1rem;
    color: var(--color-text);
}

.growth-map img {
    width: 100%;
    height: auto;
    max-width: 520px;
    margin-inline: auto;
    display: block;
}

/* =========================
   Philosophy
   ========================= */

.philosophy-section {
    background: var(--color-bg);
}

.philosophy-content {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 3rem;
    align-items: center;
}

.philosophy-text p {
    margin-top: 0;
    margin-bottom: 1rem;
    color: var(--color-text);
}

.philosophy-image img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
}

/* =========================
   D1 Center – Map Section
   ========================= */

.map-section {
    background-color: var(--color-white);
}

.map-wrapper {
    background-color: #ffffff;
    border-radius: 1rem;
    box-shadow: var(--shadow-strong);
    padding: 1.25rem;
}

.map-container {
    max-width: 840px;
    width: 100%;
    margin: 0 auto;
    position: relative;
}

.map-svg {

    .property.shared-office {
        fill: var(--color-primary-dark) !important;
    }

    .plot-id-text {
        font-family: Arial, sans-serif;
        font-size: 10px;
        font-weight: bold;
        fill: #333;
        text-anchor: middle;
        pointer-events: none;
        user-select: none;
    }

    .company-name-text {
        font-family: Arial, sans-serif;
        font-size: 12px;
        letter-spacing: 1px;
        font-weight: 800;
        fill: #000000;
        text-anchor: middle;
        pointer-events: none;
        user-select: none;
    }

    .company-name-text.shared-office {
        fill: #ffffff;
    }

    .tooltip {
        position: fixed;
        background: rgba(88, 88, 88, 0.38);
        backdrop-filter: blur(5px);
        color: #ffffff;
        padding: 10px 20px;
        border-radius: 4px;
        font-size: 14px;
        pointer-events: none;
        z-index: 1000;
        opacity: 0;
        transition: opacity 0.3s;
        max-width: 300px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
        font-family: Arial, sans-serif;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 6px;
    }

    .tooltip h3,
    .tooltip h4,
    .tooltip p {
        margin: 0;
        padding: 0;
    }

    .tooltip h3 {
        font-size: 16px;
        font-weight: 700;
    }

    .tooltip h4 {
        font-size: 14px;
        font-weight: 600;
    }

    .tooltip p {
        font-size: 13px;
    }

    .tooltip.show {
        opacity: 1;
    }

    .tooltip .status {
        display: inline-block;
        padding: 2px 8px;
        border-radius: 4px;
        font-size: 12px;
        font-weight: bold;
        width: fit-content;
    }

    .tooltip .status.available {
        background: var(--color-accent);
        color: #ffffff;
    }

    .tooltip .status.taken {
        background: #db4a3f;
        color: #ffffff;
    }

    .tooltip .plots-list {
        font-size: 12px;
        color: #cccccc;
        margin-top: 5px;
    }

    .tooltip-logo {
        max-width: 250px;
        max-height: 150px;
        object-fit: contain;
    }

    .legend {
        display: flex;
        justify-content: center;
        align-items: center;
        flex-wrap: wrap;
        gap: 20px;
        margin-bottom: 15px;
        padding: 10px;
        background: var(--color-bg);
        border-radius: 8px;
        font-family: Arial, sans-serif;
        font-size: 16px;
        border: 1px solid #e9ecef;
    }

    .legend-item {
        display: flex;
        align-items: center;
        gap: 8px;
        text-wrap: nowrap;
    }

    .legend-color {
        width: 20px;
        height: 15px;
        border-radius: 3px;
        border: 1px solid #ccc;
    }

    .legend-label {
        font-weight: 500;
        color: #333;
    }

    .inline-svg {
        display: none;
    }

    /* Panorama modal */
    .panorama-modal {
        display: none;
        position: fixed;
        inset: 0;
        background-color: rgba(0, 0, 0, 0.6);
        z-index: 2000;
        overflow-y: auto;
    }

    .panorama-modal.show {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .panorama-modal-content {
        background-color: #ffffff;
        width: 90%;
        max-width: 1200px;
        height: 80vh;
        max-height: 800px;
        position: relative;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
        display: flex;
        flex-direction: column;
    }

    .panorama-modal-header {
        padding: 10px;
        border-bottom: 1px solid #e9ecef;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .panorama-modal-title {
        font-size: 20px;
        font-weight: 600;
        color: #333;
        margin: 0;
        font-family: Arial, sans-serif;
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }

    .panorama-modal-close {
        background: none;
        border: none;
        font-size: 28px;
        cursor: pointer;
        color: #666;
        padding: 0;
        width: 36px;
        height: 36px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 4px;
        transition: background-color 0.2s;
    }

    .panorama-modal-close:hover {
        background-color: #f0f0f0;
        color: #333;
    }

    .panorama-modal-body {
        flex: 1;
        padding: 0;
        overflow: hidden;
        background-color: #f5f5f5;
    }

    .panorama-iframe,
    .ku-embed {
        width: 100% !important;
        height: 100% !important;
        border: none !important;
    }

    .panorama-modal-title .area-status {
        display: inline-block;
        padding: 4px 8px;
        border-radius: 4px;
        font-size: 12px;
        font-weight: bold;
        margin-left: 4px;
        font-family: Arial, Helvetica, sans-serif;
    }

    .panorama-modal-title .area-status.available {
        background: var(--color-accent);
        color: #ffffff;
    }

    .panorama-modal-title .area-status.taken {
        background: #db4a3f;
        color: #ffffff;
    }

    @media (max-width: 768px) {
        .tooltip {
            max-width: 150px;
        }

        .legend {
            gap: 10px;
        }

        .philosophy-content {
            grid-template-columns: 1fr;
        }

        .properties-nav,
        .references-nav,
        .projects-nav {
            display: none;
        }

        .nav-list {
            display: none;
        }

        .header-right {
            gap: 0.75rem;
        }

        .social-links {
            display: none;
        }

        .mobile-menu-toggle {
            display: inline-flex;
        }

        .hero-section {
            text-align: left;
            align-items: flex-start;
            padding-top: 3rem;
        }

        .panorama-modal-content {
            width: 90vw;
            height: 80vh;
            max-height: none;
        }
    }

    /* =========================
   Generic content & sections
   ========================= */

    .content-section,
    .projects-section,
    .contact-section {
        background-color: var(--color-white);
    }

    /* Property detail page */
    .property-detail {
        background-color: var(--color-bg);
    }

    .property-detail .container {
        max-width: 1280px;
    }

    .property-detail-header {
        max-width: 100%;
        margin: 0 auto 3.5rem;
        text-align: center;
    }

    .property-detail-title {
        margin-bottom: 0.75rem;
        color: var(--color-primary-dark);
        font-size: clamp(2.25rem, 4vw, 3rem);
        font-weight: 800;
        letter-spacing: -0.02em;
    }

    .property-detail-tagline {
        max-width: 42rem;
        margin-inline: auto;
        font-size: 1.1rem;
        color: var(--color-text-muted);
        font-weight: 400;
    }

    .property-detail-layout {
        display: flex;
        justify-content: center;
        margin-bottom: 4rem;
    }

    .property-detail-main {
        position: relative;
        border-radius: var(--radius-lg);
        overflow: hidden;
        background: var(--color-primary-dark);
        box-shadow: 0 10px 40px rgba(27, 62, 119, 0.15);
    }

    .property-detail-image {
        position: relative;
    }

    .property-detail-image::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        height: 120px;
        background: linear-gradient(to top, rgba(27, 62, 119, 0.4), transparent);
        pointer-events: none;
    }

    .property-detail-image img {
        width: 100%;
        height: 100%;
        min-height: 500px;
        max-height: 600px;
        object-fit: cover;
        display: block;
        transition: transform 0.6s ease;
    }

    .property-detail-main:hover .property-detail-image img {
        transform: scale(1.03);
    }

    .property-detail-sidebar {
        padding: 2.5rem 2.5rem 2.25rem;
        border-radius: var(--radius-lg);
        background: white;
        border: 1px solid rgba(27, 62, 119, 0.08);
        box-shadow: 0 4px 20px rgba(27, 62, 119, 0.08);
        position: sticky;
        top: calc(var(--header-height) + 1.5rem);
    }

    .property-detail-sidebar p {
        margin: 0 0 0.85rem;
        line-height: 1.6;
        font-size: 0.95rem;
    }

    .property-meta-fields {
        padding-bottom: 1.5rem;
        margin-bottom: 1.75rem;
        border-bottom: 1px solid rgba(27, 62, 119, 0.12);
    }

    .property-meta-fields p {
        margin: 0 0 1rem;
        font-size: 0.96rem;
        display: grid;
        grid-template-columns: 70px 1fr;
        gap: 1rem;
        align-items: baseline;
    }

    .property-meta-fields p:last-child {
        margin-bottom: 0;
    }

    .property-meta-fields strong {
        color: var(--color-text-muted);
        font-weight: 600;
        font-size: 0.875rem;
        font-size: 0.875rem !important;
        font-weight: 600 !important;
    }

    .property-description {
        margin-bottom: 2rem;
    }

    .property-description p {
        margin: 0 0 1.1rem;
        line-height: 1.75;
        font-size: 0.9375rem;
        color: var(--color-text);
    }

    .property-description p:last-child {
        margin-bottom: 0;
    }

    .property-detail-cta-group {
        margin-top: 0;
        padding-top: 1.75rem;
        border-top: 1px solid rgba(27, 62, 119, 0.12);
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
    }

    .property-detail-cta-group .btn-primary {
        width: 100%;
        justify-content: center;
        padding: 1rem 1.5rem;
        font-size: 0.875rem;
        font-weight: 700;
    }

    .property-detail-cta-group .project-link {
        width: 100%;
        text-align: center;
        padding: 0.75rem;
        color: var(--color-primary-dark);
        font-size: 0.875rem;
        font-weight: 600;
        text-decoration: none;
        background: transparent;
        border: 1.5px solid var(--color-primary-dark);
        border-radius: 999px;
        transition: all 0.2s ease;
    }

    .property-detail-cta-group .project-link:hover {
        background: var(--color-primary-dark);
        color: white;
        text-decoration: none;
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(27, 62, 119, 0.2);
    }

    .property-detail-body {
        max-width: 840px;
        margin: 0 auto;
        font-size: 0.98rem;
        line-height: 1.7;
    }

    .property-detail-body p {
        margin-top: 0;
        margin-bottom: 1rem;
    }

    .property-gallery {
        background: linear-gradient(180deg, var(--color-bg) 0%, var(--color-white) 100%);
        padding-top: 5rem !important;
        padding-bottom: 2rem !important;
    }

    .property-gallery .section-title {
        font-size: clamp(1.75rem, 3vw, 2.25rem);
        margin-bottom: 0.75rem;
    }

    .property-gallery .section-subtitle {
        font-size: 1.05rem;
        margin-bottom: 3rem;
    }

    .property-gallery-single {
        max-width: 1000px;
        margin: 0 auto;
    }

    .property-gallery-single img {
        width: 100%;
        height: auto;
        min-height: 400px;
        max-height: 600px;
        object-fit: cover;
        border-radius: var(--radius-lg);
        box-shadow: 0 10px 40px rgba(27, 62, 119, 0.12);
        border: 1px solid rgba(27, 62, 119, 0.06);
    }

    .property-gallery-carousel-wrapper {
        position: relative;
    }

    .property-gallery-carousel {
        display: flex;
        gap: 1.5rem;
        overflow-x: auto;
        overflow-y: hidden;
        padding-bottom: 1rem;
        padding-top: 0.5rem;
        scroll-snap-type: x mandatory;
        scroll-behavior: smooth;
        cursor: grab;
    }

    .property-gallery-carousel.is-dragging {
        cursor: grabbing;
        user-select: none;
    }

    .property-gallery-carousel::-webkit-scrollbar {
        height: 6px;
    }

    .property-gallery-carousel::-webkit-scrollbar-track {
        background: transparent;
    }

    .property-gallery-carousel::-webkit-scrollbar-thumb {
        background: rgba(0, 0, 0, 0.15);
        border-radius: 999px;
    }

    .property-gallery-item {
        flex: 0 0 380px;
        scroll-snap-align: start;
    }

    .property-gallery-item img {
        width: 100%;
        height: 280px;
        object-fit: cover;
        border-radius: var(--radius-md);
        box-shadow: 0 8px 24px rgba(27, 62, 119, 0.1);
        border: 1px solid rgba(27, 62, 119, 0.06);
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }

    .property-gallery-item:hover img {
        transform: translateY(-4px);
        box-shadow: 0 12px 32px rgba(27, 62, 119, 0.15);
    }

    .property-gallery-nav {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        width: 48px;
        height: 48px;
        border-radius: 50%;
        border: none;
        background: white;
        box-shadow: 0 4px 16px rgba(27, 62, 119, 0.15);
        color: var(--color-primary-dark);
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        z-index: 5;
        font-size: 1.25rem;
        transition: all 0.2s ease;
    }

    .property-gallery-nav--prev {
        left: -24px;
    }

    .property-gallery-nav--next {
        right: -24px;
    }

    .property-gallery-nav:hover {
        background: var(--color-primary-dark);
        color: white;
        transform: translateY(-50%) scale(1.1);
        box-shadow: 0 6px 20px rgba(27, 62, 119, 0.25);
    }

    @media (max-width: 1024px) {
        .property-detail-layout {
            grid-template-columns: 1fr;
            gap: 2.5rem;
        }

        .property-detail-sidebar {
            position: static;
        }

        .property-detail-image img {
            min-height: 350px;
            max-height: 450px;
        }

        .property-detail-header {
            margin-bottom: 2.5rem;
        }
    }

    @media (max-width: 768px) {
        .property-detail {
            padding-block: 2rem;
        }

        .property-detail-header {
            margin-bottom: 2rem;
        }

        .property-detail-title {
            font-size: clamp(1.75rem, 6vw, 2.25rem);
        }

        .property-detail-tagline {
            font-size: 1rem;
        }

        .property-detail-layout {
            gap: 2rem;
        }

        .property-detail-image img {
            min-height: 280px;
            max-height: 380px;
        }

        .property-detail-sidebar {
            padding: 2rem 1.75rem;
        }

        .property-meta-fields p {
            grid-template-columns: 65px 1fr;
            gap: 0.75rem;
            font-size: 0.9rem;
        }

        .property-price {
            font-size: 1.25rem !important;
        }

        .property-description p {
            font-size: 0.9rem;
            line-height: 1.65;
        }

        .property-gallery {
            padding-top: 3rem !important;
            padding-bottom: 1.5rem !important;
        }

        .property-gallery .section-title {
            font-size: clamp(1.5rem, 5vw, 1.875rem);
        }

        .property-gallery .section-subtitle {
            font-size: 0.95rem;
            margin-bottom: 2rem;
        }

        .property-gallery-item {
            flex: 0 0 300px;
        }

        .property-gallery-item img {
            height: 220px;
        }

        .property-gallery-nav {
            width: 40px;
            height: 40px;
            font-size: 1rem;
        }

        .property-gallery-nav--prev {
            left: -12px;
        }

        .property-gallery-nav--next {
            right: -12px;
        }

        .property-cta-section {
            padding: 3rem 1.25rem;
        }

        .property-cta-header {
            margin-bottom: 2rem;
        }

        .property-cta-title {
            font-size: clamp(1.35rem, 5vw, 1.75rem);
        }

        .property-cta-subtitle {
            font-size: 0.9rem;
        }

        .property-cta-card-header {
            padding: 1.5rem 1rem;
        }

        .property-cta-card-body {
            padding: 1.25rem 1rem 1.5rem;
        }
    }

    /* =========================
   Property Hero Image
   ========================= */
    .property-hero {
        position: relative;
        width: 100%;
        height: 60vh;
        min-height: 400px;
        max-height: 600px;
        overflow: hidden;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .property-hero-image {
        position: absolute;
        inset: 0;
        z-index: 0;
    }

    .property-hero-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center center;
        /* Ensure explicit centering */
        display: block;
    }

    .property-hero-overlay {
        position: relative;
        z-index: 1;
        width: 100%;
        background: linear-gradient(180deg, rgba(27, 62, 119, 0.7) 0%, rgba(27, 62, 119, 0.85) 100%);
        padding: 3rem 0;
        text-align: center;
    }

    .property-hero-title {
        margin: 0 0 0.75rem;
        font-size: clamp(2rem, 4vw, 3.5rem);
        font-weight: 800;
        color: white;
        text-transform: uppercase;
        letter-spacing: -0.02em;
        text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    }

    .property-hero-tagline {
        margin: 0;
        font-size: clamp(1rem, 2vw, 1.25rem);
        color: rgba(255, 255, 255, 0.95);
        font-weight: 500;
    }

    @media (max-width: 768px) {
        .property-hero {
            height: 50vh;
            min-height: 350px;
        }
    }

    /* =========================
   D1 Center Specific Styles
   ========================= */
    .d1-center-stats {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 2rem;
        margin: 3rem 0;
        text-align: center;
    }

    .d1-stat {
        padding: 1.5rem;
        background: linear-gradient(135deg, rgba(0, 119, 200, 0.05), rgba(27, 62, 119, 0.05));
        border-radius: var(--radius-md);
        border: 1px solid var(--color-border);
    }

    .d1-stat-number {
        font-size: clamp(2rem, 3vw, 2.5rem);
        font-weight: 800;
        color: var(--color-primary-dark);
        margin-bottom: 0.5rem;
    }

    .d1-stat-label {
        font-size: 0.95rem;
        color: var(--color-text-muted);
        text-transform: uppercase;
        letter-spacing: 0.05em;
        font-weight: 600;
    }

    .d1-center-description {
        max-width: 900px;
        margin: 2rem auto;
        font-size: 1.05rem;
        line-height: 1.8;
        color: var(--color-text);
    }

    .d1-feature-icon {
        width: 48px;
        height: 48px;
        color: var(--color-accent-blue);
        flex-shrink: 0;
    }

    .d1-benefits-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }

    @media (max-width: 640px) {
        .d1-center-stats {
            gap: 1rem;
        }

        .d1-stat {
            padding: 1rem;
        }
    }

    /* =========================
   Property Benefits Section
   ========================= */
    .property-benefits {
        background: transparent;
    }

    .benefits-card {
        background: rgba(27, 62, 119, 0.06);
        border: 1px solid var(--color-border);
        border-radius: var(--radius-lg);
        padding: 2rem 1.5rem;
        box-shadow: var(--shadow-soft);
    }

    .benefits-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
        gap: 1.25rem 2rem;
        max-width: 1000px;
        margin: 0 auto;
    }

    .benefit-item {
        display: flex;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .benefit-dot {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: var(--color-accent-blue);
        margin-top: 0.55rem;
        box-shadow: 0 0 0 4px rgba(0, 119, 200, 0.12);
    }

    .benefit-title {
        margin: 0 0 0.25rem;
        font-size: 1rem;
        font-weight: 800;
        color: var(--color-primary-dark);
        text-transform: uppercase;
    }

    .benefit-text {
        margin: 0;
        font-size: 0.95rem;
        color: var(--color-text);
    }

    @media (max-width: 640px) {
        .benefits-card {
            padding: 1.5rem 1rem;
        }
    }

    /* =========================
   Property Highlight Image
   ========================= */
    .property-highlight-image {
        padding: 4rem 0 5rem;
        background: linear-gradient(180deg, transparent 0%, rgba(27, 62, 119, 0.02) 50%, transparent 100%);
    }

    .property-highlight-image .container {
        max-width: 1400px;
        position: relative;
    }

    .property-highlight-image .container::before {
        content: '';
        position: absolute;
        inset: -20px;
        background: linear-gradient(135deg, rgba(0, 119, 200, 0.08), rgba(27, 62, 119, 0.08));
        border-radius: calc(var(--radius-lg) + 4px);
        z-index: 0;
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .property-highlight-image .container:hover::before {
        opacity: 1;
    }

    .highlight-image {
        position: relative;
        z-index: 1;
        width: 100%;
        height: auto;
        border-radius: var(--radius-lg);
        box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25),
            0 10px 20px -5px rgba(27, 62, 119, 0.15);
        display: block;
        transition: transform 0.3s ease, box-shadow 0.3s ease;
        border: 1px solid rgba(255, 255, 255, 0.1);
    }

    .property-highlight-image .container:hover .highlight-image {
        transform: translateY(-4px);
        box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.3),
            0 15px 25px -5px rgba(27, 62, 119, 0.2);
    }

    @media (max-width: 768px) {
        .property-highlight-image {
            padding: 2.5rem 0 3rem;
        }

        .highlight-image {
            border-radius: var(--radius-md);
            box-shadow: 0 15px 30px -8px rgba(0, 0, 0, 0.2),
                0 8px 15px -3px rgba(27, 62, 119, 0.12);
        }

        .property-highlight-image .container:hover .highlight-image {
            transform: translateY(-2px);
        }

        .property-highlight-image .container::before {
            display: none;
        }
    }

    /* =========================
   Property Detail CTA Section
   ========================= */
    .property-cta-section {
        margin-top: 0;
        padding: 5rem 2rem;
        background: var(--color-primary-dark);
        border-radius: 0;
        position: relative;
    }

    .property-cta-header {
        text-align: center;
        margin-bottom: 2rem;
    }

    .property-cta-title {
        margin: 0 0 0.75rem;
        font-size: clamp(1.5rem, 2.5vw, 1.875rem);
        font-weight: 800;
        color: var(--color-white);
        text-transform: uppercase;
        letter-spacing: -0.01em;
    }

    .property-cta-subtitle {
        margin: 0 0 1.5rem;
        font-size: 0.95rem;
        color: rgba(255, 255, 255, 0.85);
        max-width: 550px;
        margin-inline: auto;
        line-height: 1.5;
    }

    .d1-stat-label {
        font-size: 0.95rem;
        color: var(--color-text-muted);
        text-transform: uppercase;
        letter-spacing: 0.05em;
        font-weight: 600;
    }

    .d1-center-description {
        max-width: 900px;
        margin: 2rem auto;
        font-size: 1.05rem;
        line-height: 1.8;
        color: var(--color-text);
    }

    .d1-feature-icon {
        width: 48px;
        height: 48px;
        color: var(--color-accent-blue);
        flex-shrink: 0;
    }

    .d1-benefits-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }

    @media (max-width: 640px) {
        .d1-center-stats {
            gap: 1rem;
        }

        .d1-stat {
            padding: 1rem;
        }
    }

    /* =========================
   Property Benefits Section
   ========================= */
    .property-benefits {
        background: transparent;
    }

    .benefits-card {
        background: rgba(27, 62, 119, 0.06);
        border: 1px solid var(--color-border);
        border-radius: var(--radius-lg);
        padding: 2rem 1.5rem;
        box-shadow: var(--shadow-soft);
    }

    .benefits-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
        gap: 1.25rem 2rem;
        max-width: 1000px;
        margin: 0 auto;
    }

    .benefit-item {
        display: flex;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .benefit-dot {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: var(--color-accent-blue);
        margin-top: 0.55rem;
        box-shadow: 0 0 0 4px rgba(0, 119, 200, 0.12);
    }

    .benefit-title {
        margin: 0 0 0.25rem;
        font-size: 1rem;
        font-weight: 800;
        color: var(--color-primary-dark);
        text-transform: uppercase;
    }

    .benefit-text {
        margin: 0;
        font-size: 0.95rem;
        color: var(--color-text);
    }

    @media (max-width: 640px) {
        .benefits-card {
            padding: 1.5rem 1rem;
        }
    }

    /* =========================
   Property Highlight Image
   ========================= */
    .property-highlight-image {
        padding: 4rem 0 5rem;
        background: linear-gradient(180deg, transparent 0%, rgba(27, 62, 119, 0.02) 50%, transparent 100%);
    }

    .property-highlight-image .container {
        max-width: 1400px;
        position: relative;
    }

    .property-highlight-image .container::before {
        content: '';
        position: absolute;
        inset: -20px;
        background: linear-gradient(135deg, rgba(0, 119, 200, 0.08), rgba(27, 62, 119, 0.08));
        border-radius: calc(var(--radius-lg) + 4px);
        z-index: 0;
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .property-highlight-image .container:hover::before {
        opacity: 1;
    }

    .highlight-image {
        position: relative;
        z-index: 1;
        width: 100%;
        height: auto;
        border-radius: var(--radius-lg);
        box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25),
            0 10px 20px -5px rgba(27, 62, 119, 0.15);
        display: block;
        transition: transform 0.3s ease, box-shadow 0.3s ease;
        border: 1px solid rgba(255, 255, 255, 0.1);
    }

    .property-highlight-image .container:hover .highlight-image {
        transform: translateY(-4px);
        box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.3),
            0 15px 25px -5px rgba(27, 62, 119, 0.2);
    }

    @media (max-width: 768px) {
        .property-highlight-image {
            padding: 2.5rem 0 3rem;
        }

        .highlight-image {
            border-radius: var(--radius-md);
            box-shadow: 0 15px 30px -8px rgba(0, 0, 0, 0.2),
                0 8px 15px -3px rgba(27, 62, 119, 0.12);
        }

        .property-highlight-image .container:hover .highlight-image {
            transform: translateY(-2px);
        }

        .property-highlight-image .container::before {
            display: none;
        }
    }

    /* =========================
   Property Detail CTA Section
   ========================= */
    .property-cta-section {
        margin-top: 0;
        padding: 5rem 2rem;
        background: var(--color-primary-dark);
        border-radius: 0;
        position: relative;
    }

    .property-cta-header {
        text-align: center;
        margin-bottom: 2rem;
    }

    .property-cta-title {
        margin: 0 0 0.75rem;
        font-size: clamp(1.5rem, 2.5vw, 1.875rem);
        font-weight: 800;
        color: var(--color-white);
        text-transform: uppercase;
        letter-spacing: -0.01em;
    }

    .property-cta-subtitle {
        margin: 0 0 1.5rem;
        font-size: 0.95rem;
        color: rgba(255, 255, 255, 0.85);
        max-width: 550px;
        margin-inline: auto;
        line-height: 1.5;
    }

    .property-cta-subtitle strong {
        color: white;
        font-weight: 700;
    }

    .btn-cta-main {
        padding: 0.85rem 1.75rem;
        font-size: 0.9rem;
        background: var(--color-accent-pink);
        box-shadow: 0 4px 14px rgba(227, 28, 121, 0.35);
        color: white;
        border-radius: 999px;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        font-weight: 700;
        text-decoration: none;
        display: inline-block;
    }

    .btn-cta-main:hover,
    .btn-cta-main:focus-visible {
        background: linear-gradient(135deg, #f04e98, var(--color-accent-pink));
        box-shadow: 0 6px 18px rgba(227, 28, 121, 0.45);
        transform: translateY(-1px);
    }

    /* CTA Cards */
    .property-cta-cards {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.5rem;
        max-width: 800px;
        margin-inline: auto;
    }

    .property-cta-card {
        background: var(--color-white);
        border-radius: var(--radius-md);
        overflow: hidden;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
        transition: transform 0.2s ease, box-shadow 0.2s ease;
        display: flex;
        flex-direction: column;
    }

    .property-cta-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
    }

    .property-cta-card-header {
        background: var(--color-primary-dark);
        padding: 1.75rem 1.25rem;
        text-align: center;
        color: var(--color-white);
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }

    .property-cta-icon {
        width: 48px;
        height: 48px;
        opacity: 1;
        color: white;
        transition: color 0.3s ease, transform 0.3s ease;
    }

    .property-cta-card:hover .property-cta-icon {
        color: var(--color-accent-pink);
        transform: scale(1.1);
    }

    .property-cta-card-title {
        margin: 0;
        font-size: 1.05rem;
        font-weight: 800;
        text-transform: uppercase;
        letter-spacing: 0.06em;
    }

    .property-cta-card-body {
        padding: 1.5rem 1.25rem 1.75rem;
        flex: 1;
        display: flex;
        flex-direction: column;
    }

    .property-cta-card-heading {
        margin: 0 0 0.5rem;
        font-size: 1rem;
        font-weight: 700;
        color: var(--color-primary-dark);
        line-height: 1.3;
    }

    .property-cta-card-text {
        margin: 0 0 1.25rem;
        font-size: 0.875rem;
        color: var(--color-text-muted);
        line-height: 1.5;
        flex: 1;
    }

    .property-cta-link {
        display: inline-flex;
        align-items: center;
        gap: 0.4rem;
        color: var(--color-accent-blue);
        font-weight: 700;
        font-size: 0.875rem;
        text-transform: uppercase;
        letter-spacing: 0.06em;
        transition: gap 0.2s ease, color 0.2s ease;
    }

    .property-cta-link:hover {
        gap: 0.6rem;
        color: var(--color-primary);
        text-decoration: none;
    }

    .property-cta-link svg {
        width: 18px;
        height: 18px;
        transition: transform 0.2s ease;
    }

    .property-cta-link:hover svg {
        transform: translateX(2px);
    }

    /* =========================
   Gallery Lightbox
   ========================= */
    .gallery-lightbox-trigger {
        display: block;
        cursor: zoom-in;
        position: relative;
        overflow: hidden;
        border-radius: var(--radius-sm);
    }

    .gallery-lightbox-trigger::after {
        content: '\1F50D';
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        font-size: 2rem;
        color: white;
        background: rgba(27, 62, 119, 0.8);
        width: 60px;
        height: 60px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        opacity: 0;
        transition: opacity 0.2s ease;
        pointer-events: none;
    }

    .gallery-lightbox-trigger:hover::after {
        opacity: 1;
    }

    .gallery-lightbox-trigger img {
        transition: transform 0.3s ease;
    }

    .gallery-lightbox-trigger:hover img {
        transform: scale(1.05);
    }

    .gallery-lightbox {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.95);
        z-index: 10000;
        display: flex;
        align-items: center;
        justify-content: center;
        animation: lightboxFadeIn 0.2s ease;
    }

    @keyframes lightboxFadeIn {
        from {
            opacity: 0;
        }

        to {
            opacity: 1;
        }
    }

    .gallery-lightbox-content {
        max-width: 90vw;
        max-height: 90vh;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .gallery-lightbox-content img {
        max-width: 100%;
        max-height: 90vh;
        height: auto;
        border-radius: var(--radius-md);
        box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    }

    .gallery-lightbox-close,
    .gallery-lightbox-prev,
    .gallery-lightbox-next {
        position: absolute;
        background: rgba(255, 255, 255, 0.1);
        border: 2px solid rgba(255, 255, 255, 0.3);
        color: white;
        font-size: 2rem;
        width: 50px;
        height: 50px;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        border-radius: 50%;
        transition: all 0.2s ease;
        backdrop-filter: blur(10px);
    }

    .gallery-lightbox-close:hover,
    .gallery-lightbox-prev:hover,
    .gallery-lightbox-next:hover {
        background: rgba(255, 255, 255, 0.2);
        border-color: rgba(255, 255, 255, 0.5);
        transform: scale(1.1);
    }

    .gallery-lightbox-close {
        top: 20px;
        right: 20px;
        font-size: 2.5rem;
        line-height: 0.8;
    }

    .gallery-lightbox-prev {
        left: 20px;
        top: 50%;
        transform: translateY(-50%);
    }

    .gallery-lightbox-next {
        right: 20px;
        top: 50%;
        transform: translateY(-50%);
    }

    .gallery-lightbox-prev:hover,
    .gallery-lightbox-next:hover {
        transform: translateY(-50%) scale(1.1);
    }

    @media (max-width: 768px) {

        .gallery-lightbox-close,
        .gallery-lightbox-prev,
        .gallery-lightbox-next {
            width: 40px;
            height: 40px;
            font-size: 1.5rem;
        }

        .gallery-lightbox-prev {
            left: 10px;
        }

        .gallery-lightbox-next {
            right: 10px;
        }

        .gallery-lightbox-close {
            top: 10px;
            right: 10px;
        }
    }

    /* =========================
   Property Contact Form Section
   ========================= */
    .property-contact-section {
        background: var(--color-primary-dark);
        color: white;
        padding: 5rem 2rem;
    }

    .property-contact-content {
        max-width: 600px;
        margin: 0 auto;
    }

    .property-contact-title {
        font-size: clamp(1.75rem, 4vw, 2.25rem);
        font-weight: 800;
        text-align: center;
        margin: 0 0 0.5rem;
        color: white;
        text-transform: uppercase;
    }

    .property-contact-subtitle {
        font-size: clamp(1.25rem, 3vw, 1.5rem);
        font-weight: 600;
        text-align: center;
        margin: 0 0 2.5rem;
        color: white;
        text-transform: uppercase;
    }

    .property-contact-form {
        margin-bottom: 3rem;
    }

    .form-row {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }

    .form-group {
        margin-bottom: 1rem;
    }

    .form-group label {
        display: block;
        font-size: 0.875rem;
        margin-bottom: 0.5rem;
        color: rgba(255, 255, 255, 0.9);
    }

    .form-group .required {
        color: #ff4444;
    }

    .form-group input,
    .form-group textarea {
        width: 100%;
        padding: 0.75rem 1rem;
        border: 1px solid rgba(255, 255, 255, 0.2);
        border-radius: 6px;
        background: rgba(255, 255, 255, 0.95);
        font-size: 0.9375rem;
        font-family: inherit;
        transition: border-color 0.2s ease, background 0.2s ease;
    }

    .form-group input:focus,
    .form-group textarea:focus {
        outline: none;
        border-color: var(--color-accent-blue);
        background: white;
    }

    .form-group textarea {
        resize: vertical;
        min-height: 100px;
    }

    .btn-submit {
        width: 100%;
        padding: 1rem;
        font-size: 0.9375rem;
        font-weight: 700;
        margin-bottom: 2rem;
    }

    .property-contact-tagline {
        text-align: center;
        font-size: 0.9375rem;
        margin: 0 0 3rem;
        color: rgba(255, 255, 255, 0.8);
        line-height: 1.6;
    }

    .property-contact-info {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 2rem;
        margin-bottom: 3rem;
    }

    .contact-info-item {
        text-align: center;
    }

    .contact-icon {
        width: 56px;
        height: 56px;
        margin: 0 auto 1rem;
        background: var(--color-primary-dark);
        border-radius: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
    }

    .contact-info-item strong {
        display: block;
        font-size: 0.9375rem;
        font-weight: 700;
        margin-bottom: 0.5rem;
        color: white;
        text-transform: uppercase;
    }

    .contact-info-item p {
        margin: 0;
        font-size: 0.875rem;
        color: rgba(255, 255, 255, 0.8);
        line-height: 1.6;
    }

    .property-contact-social {
        text-align: center;
    }

    .property-contact-social>p {
        font-size: 0.9375rem;
        font-weight: 600;
        margin: 0 0 1rem;
        color: white;
        text-transform: uppercase;
    }

    .social-icons {
        display: flex;
        justify-content: center;
        gap: 1rem;
    }

    .social-icon {
        width: 44px;
        height: 44px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.2s ease;
    }

    .social-icon:nth-child(1) {
        background: #1877f2;
    }

    .social-icon:nth-child(2) {
        background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    }

    .social-icon:nth-child(3) {
        background: #0077b5;
    }

    .social-icon:hover {
        transform: translateY(-3px);
        box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
    }

    @media (max-width: 768px) {
        .property-cta-cards {
            grid-template-columns: 1fr;
            gap: 1.25rem;
        }

        .property-cta-section {
            margin-top: 2.5rem;
            padding: 2rem 1rem;
        }

        .property-cta-header {
            margin-bottom: 1.75rem;
        }

        .property-cta-card-header {
            padding: 1.5rem 1rem;
        }

        .property-contact-section {
            padding: 3rem 1.25rem;
        }

        .form-row {
            grid-template-columns: 1fr;
        }

        .property-contact-info {
            grid-template-columns: 1fr;
            gap: 2rem;
        }
    }

    /* IPEC in Figures */
    .figures-section {
        background: var(--color-primary-dark);
        color: #ffffff;
    }

    .figures-section .section-title {
        color: #ffffff;
        margin-bottom: 3.5rem;
    }

    .figures-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
        gap: 3rem 2rem;
        justify-items: center;
    }

    .figure-card {
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .figure-icon {
        margin-bottom: 1rem;
        color: var(--color-accent-blue);
        transition: color 0.3s ease, transform 0.3s ease;
    }

    .figure-card:hover .figure-icon {
        color: var(--color-accent-pink);
        transform: scale(1.1);
    }

    .figure-number {
        display: flex;
        align-items: baseline;
        justify-content: center;
        gap: 0.2rem;
        font-weight: 800;
        margin-bottom: 0.4rem;
    }

    .figure-number-main {
        font-size: 2.3rem;
    }

    .figure-number-suffix {
        font-size: 1.2rem;
        color: var(--color-accent-blue);
    }

    .figure-card:hover .figure-number-suffix {
        color: var(--color-accent-pink);
    }

    .figure-label {
        margin: 0;
        font-size: 0.95rem;
        color: rgba(255, 255, 255, 0.8);
        max-width: 160px;
        line-height: 1.4;
    }

    /* References gallery under figures as horizontal carousel */
    .references-gallery-section {
        background-color: var(--color-white);
    }

    .references-carousel-wrapper {
        position: relative;
        overflow: hidden;
        /* Hide scrollbars for marquee */
    }

    .references-carousel {
        display: flex;
        gap: 1.25rem;
        overflow-x: hidden;
        /* Disable manual scroll */
        overflow-y: hidden;
        padding-bottom: 1rem;
        /* scroll-snap-type: x mandatory;  <-- Removed for marquee */
        /* scroll-behavior: smooth;        <-- Removed for marquee */
        /* cursor: grab;                   <-- Removed for marquee */

        /* Marquee Animation */
        animation: marquee 160s linear infinite;
        width: max-content;
        /* Ensure track is wide enough */
    }

    /* .references-carousel:hover {
        animation-play-state: paused;
    } */

    @keyframes marquee {
        0% {
            transform: translateX(0);
        }

        100% {
            transform: translateX(-33.333%);
            /* Move 1/3 (one set of clones) */
        }
    }

    /* Hide navigation buttons for marquee mode */
    .references-carousel-wrapper .references-nav {
        display: none !important;
    }

    /* 
.references-carousel.is-dragging {
    cursor: grabbing;
    user-select: none;
}
*/

    .references-carousel::-webkit-scrollbar {
        height: 6px;
        display: none;
        /* Hide scrollbar */
    }

    .references-carousel::-webkit-scrollbar-track {
        background: transparent;
    }

    .references-carousel::-webkit-scrollbar-thumb {
        background: rgba(0, 0, 0, 0.15);
        border-radius: 999px;
    }

    .reference-card {
        background-color: var(--color-bg);
        border-radius: var(--radius-md);
        overflow: hidden;
        box-shadow: var(--shadow-soft);
        display: flex;
        flex-direction: column;
        flex: 0 0 340px;
        scroll-snap-align: start;
        transition: transform 160ms ease, box-shadow 160ms ease;
    }

    .reference-image img {
        width: 100%;
        height: 260px;
        object-fit: cover;
        display: block;
        transform: scale(1.02);
        transition: transform 200ms ease-out;
    }

    .reference-card:hover .reference-image img {
        transform: scale(1.06);
    }

    .reference-title {
        margin: 0;
        padding: 0.8rem 1rem 1rem;
        font-size: 0.95rem;
        color: var(--color-primary-dark);
    }

    .references-nav {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        width: 32px;
        height: 32px;
        border-radius: 50%;
        border: none;
        background: rgba(255, 255, 255, 0.95);
        box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
        color: var(--color-primary);
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        z-index: 5;
    }

    .references-nav--prev {
        left: -16px;
    }

    .references-nav--next {
        right: -16px;
    }

    .references-nav:hover {
        background: var(--color-accent-blue);
        color: #fff;
    }

    .references-empty {
        text-align: center;
        color: var(--color-text-muted);
    }

    /* Projects carousel section – large image with centered button */
    .projects-section {
        background-color: var(--color-white);
    }

    .projects-carousel-wrapper {
        position: relative;
    }

    .projects-carousel {
        display: flex;
        gap: 0;
        overflow-x: auto;
        overflow-y: hidden;
        padding-bottom: 1rem;
        scroll-snap-type: x mandatory;
        scroll-behavior: smooth;
        cursor: grab;
    }

    .projects-carousel.is-dragging {
        cursor: grabbing;
        user-select: none;
    }

    .projects-carousel::-webkit-scrollbar {
        height: 6px;
    }

    .projects-carousel::-webkit-scrollbar-track {
        background: transparent;
    }

    .projects-carousel::-webkit-scrollbar-thumb {
        background: rgba(0, 0, 0, 0.15);
        border-radius: 999px;
    }

    .project-card {
        background-color: transparent;
        border-radius: var(--radius-lg);
        overflow: hidden;
        box-shadow: var(--shadow-soft);
        flex: 0 0 100%;
        max-width: 960px;
        margin-inline: auto;
        scroll-snap-align: center;
        transition: transform 170ms ease, box-shadow 170ms ease;
    }

    .project-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 18px 32px rgba(0, 0, 0, 0.2);
    }

    .project-cta {
        margin-top: 0.25rem;
    }

    .projects-nav {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        width: 34px;
        height: 34px;
        border-radius: 50%;
        border: none;
        background: rgba(255, 255, 255, 0.95);
        box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
        color: var(--color-primary);
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        z-index: 5;
    }

    .projects-nav--prev {
        left: -17px;
    }

    .projects-nav--next {
        right: -17px;
    }

    .projects-nav:hover {
        background: var(--color-accent-blue);
        color: #fff;
    }

    /* Contact */

    .contact-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 1.75rem;
    }

    .contact-item {
        background-color: var(--color-bg);
        border-radius: var(--radius-md);
        padding: 1.5rem;
        box-shadow: var(--shadow-soft);
    }

    .contact-item h3 {
        margin-top: 0;
    }

    /* =========================
   Footer
   ========================= */

    .main-footer {
        background-color: var(--color-primary-dark);
        color: rgba(255, 255, 255, 0.8);
        padding-block: 1.5rem;
    }

    .footer-content {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
        gap: 1rem;
        font-size: 0.85rem;
    }

    .footer-links {
        display: flex;
        gap: 1.25rem;
    }

    .footer-links a {
        color: rgba(255, 255, 255, 0.85);
        text-transform: uppercase;
        letter-spacing: 0.1em;
        font-weight: 600;
        font-size: 0.75rem;
    }

    .footer-links a:hover {
        color: #ffffff;
        text-decoration: none;
    }

    /* Stats Section */
    .project-stats-section {
        padding: 80px 0;
        background: #fff;
    }

    .project-stats-grid {
        display: flex;
        justify-content: center;
        align-items: center;
        flex-wrap: wrap;
        gap: 80px;
        text-align: center;
        max-width: 1200px;
        margin: 0 auto;
    }

    .stat-item {
        text-align: center;
    }

    .stat-value {
        font-size: 56px;
        font-weight: 700;
        color: var(--color-primary-dark);
        /* Dark Blue */
        margin-bottom: 15px;
        line-height: 1;
    }

    .stat-label {
        font-size: 18px;
        color: #889bb4;
        background: #f8fafc;
    }

    .project-map-section .section-title {
        text-align: center;
        margin-bottom: 40px;
        color: var(--color-primary-dark);
        font-size: 2.5rem;
        text-transform: uppercase;
    }

    /* CTA Section */
    .project-contact-cta {
        padding: 100px 0;
        background: var(--color-primary-dark);
        color: #fff;
        text-align: center;
    }

    .project-contact-cta h2 {
        font-size: 2.5rem;
        margin-bottom: 1rem;
        color: #fff;
        text-transform: uppercase;
    }

    .project-contact-cta p {
        font-size: 1.25rem;
        margin-bottom: 2rem;
        opacity: 0.9;
    }

    @media (max-width: 768px) {
        .project-title {
            font-size: 2.5rem;
        }

        .project-subtitle {
            font-size: 1.2rem;
        }

        .project-stats-grid {
            flex-direction: column;
            gap: 40px;
        }

        .stat-value {
            font-size: 3rem;
        }
    }


    /* ==========================================================================
   Single Project Refinements
   ========================================================================== */
    .project-hero-content {
        text-align: center;
    }

    .project-hero-buttons {
        justify-content: center;
    }

    .btn-primary {
        background-color: var(--color-primary-middle);
        /* IPEC Blue */
        color: #fff;
        padding: 14px 28px;
        font-weight: 600;
        border-radius: 4px;
        text-decoration: none;
        transition: background-color 0.3s ease;
        border: 2px solid var(--color-primary-middle);
    }

    .btn-primary:hover {
        background-color: color-mix(in srgb, var(--color-primary-middle) 90%, black);
        border-color: color-mix(in srgb, var(--color-primary-middle) 90%, black);
        color: #fff;
    }


    /* ==========================================================================
   Single Project Centering Fix
   ========================================================================== */
    .project-hero-content {
        text-align: center !important;
    }

    .project-title,
    .project-subtitle {
        margin-left: auto !important;
        margin-right: auto !important;
        text-align: center !important;
    }

    .project-subtitle {
        max-width: 800px;
        /* Keep max-width but center the block */
    }

    /* =========================
   Park Map Section
   ========================= */
    .park-map-section {
        background-color: #fff;
        text-align: center;
    }

    .park-map-subtitle {
        color: var(--color-accent-blue);
        margin-bottom: 30px;
    }

    .park-map-container {
        border: 1px solid var(--color-border);
        border-radius: var(--radius-lg);
        padding: 20px;
        box-shadow: var(--shadow-soft);
        background: #fff;
        max-width: 1000px;
        margin: 0 auto;
    }

    .park-map-legend {
        display: flex;
        justify-content: center;
        gap: 20px;
        margin-bottom: 20px;
        flex-wrap: wrap;
    }

    .legend-item {
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .legend-color {
        width: 16px;
        height: 16px;
        display: inline-block;
        border-radius: 2px;
    }

    .legend-color.business {
        background-color: #2196F3;
    }

    .legend-color.shopping {
        background-color: #F44336;
    }

    .legend-color.logistics {
        background-color: #FFC107;
    }

    .legend-color.housing {
        background-color: #4CAF50;
    }

    .legend-label {
        font-size: 14px;
        color: var(--color-text);
        font-weight: 500;
    }

    .park-map-img {
        max-width: 100%;
        height: auto;
        display: block;
        margin: 0 auto;
        border-radius: var(--radius-sm);
    }

    /* =========================
   Partners Section
   ========================= */
    .partners-section {
        background-color: #f8f9fa;
        text-align: center;
    }

    .partners-grid {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 30px;
        align-items: center;
        max-width: 1200px;
        margin: 0 auto;
    }

    .partner-logo-item {
        background: #fff;
        border-radius: var(--radius-md);
        padding: 20px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
        display: flex;
        align-items: center;
        justify-content: center;
        width: 160px;
        height: 100px;
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }

    .partner-logo-item:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    }

    .partner-logo {
        max-width: 100%;
        max-height: 100%;
        width: auto;
        height: auto;
        object-fit: contain;
        filter: grayscale(100%);
        opacity: 0.8;
    }

    .project-contact-cta p {
        font-size: 1.25rem;
        margin-bottom: 2rem;
        opacity: 0.9;
    }

    @media (max-width: 768px) {
        .project-title {
            font-size: 2.5rem;
        }

        .project-subtitle {
            font-size: 1.2rem;
        }

        .project-stats-grid {
            flex-direction: column;
            gap: 40px;
        }

        .stat-value {
            font-size: 3rem;
        }
    }


    /* ==========================================================================
   Single Project Refinements
   ========================================================================== */
    .project-hero-content {
        text-align: center;
    }

    .project-hero-buttons {
        justify-content: center;
    }

    .btn-primary {
        background-color: var(--color-primary-middle);
        /* IPEC Blue */
        color: #fff;
        padding: 14px 28px;
        font-weight: 600;
        border-radius: 4px;
        text-decoration: none;
        transition: background-color 0.3s ease;
        border: 2px solid var(--color-primary-middle);
    }

    .btn-primary:hover {
        background-color: color-mix(in srgb, var(--color-primary-middle) 90%, black);
        border-color: color-mix(in srgb, var(--color-primary-middle) 90%, black);
        color: #fff;
    }


    /* ==========================================================================
   Single Project Centering Fix
   ========================================================================== */
    .project-hero-content {
        text-align: center !important;
    }

    .project-title,
    .project-subtitle {
        margin-left: auto !important;
        margin-right: auto !important;
        text-align: center !important;
    }

    .project-subtitle {
        max-width: 800px;
        /* Keep max-width but center the block */
    }

    /* =========================
   Park Map Section
   ========================= */
    .park-map-section {
        background-color: #fff;
        text-align: center;
    }

    .park-map-subtitle {
        color: var(--color-accent-blue);
        margin-bottom: 30px;
    }

    .park-map-container {
        border: 1px solid var(--color-border);
        border-radius: var(--radius-lg);
        padding: 20px;
        box-shadow: var(--shadow-soft);
        background: #fff;
        max-width: 1000px;
        margin: 0 auto;
    }

    .park-map-legend {
        display: flex;
        justify-content: center;
        gap: 20px;
        margin-bottom: 20px;
        flex-wrap: wrap;
    }

    .legend-item {
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .legend-color {
        width: 16px;
        height: 16px;
        display: inline-block;
        border-radius: 2px;
    }

    .legend-color.business {
        background-color: #2196F3;
    }

    .legend-color.shopping {
        background-color: #F44336;
    }

    .legend-color.logistics {
        background-color: #FFC107;
    }

    .legend-color.housing {
        background-color: #4CAF50;
    }

    .legend-label {
        font-size: 14px;
        color: var(--color-text);
        font-weight: 500;
    }

    .park-map-img {
        max-width: 100%;
        height: auto;
        display: block;
        margin: 0 auto;
        border-radius: var(--radius-sm);
    }

    /* =========================
   Partners Section
   ========================= */
    .partners-section {
        background-color: #f8f9fa;
        text-align: center;
    }

    .partners-grid {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 30px;
        align-items: center;
        max-width: 1200px;
        margin: 0 auto;
    }

    .partner-logo-item {
        background: #fff;
        border-radius: var(--radius-md);
        padding: 20px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
        display: flex;
        align-items: center;
        justify-content: center;
        width: 160px;
        height: 100px;
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }

    .partner-logo-item:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    }

    .partner-logo {
        max-width: 100%;
        max-height: 100%;
        width: auto;
        height: auto;
        object-fit: contain;
        filter: grayscale(100%);
        opacity: 0.8;
        transition: all 0.3s ease;
    }

    .partner-logo-item:hover .partner-logo {
        filter: grayscale(0%);
        opacity: 1;
    }

    /* =========================
   Project Hero Restoration
   ========================= */
    .project-hero {
        position: relative;
        min-height: 70vh;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        color: #ffffff;
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        overflow: hidden;
    }

    .project-hero-overlay {
        position: absolute;
        inset: 0;
        background: linear-gradient(135deg, rgba(27, 62, 119, 0.85), rgba(0, 119, 200, 0.75));
        z-index: 1;
    }

    .project-hero-content {
        position: relative;
        z-index: 2;
        width: 100%;
    }


    .projects-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
        gap: 2.5rem;
        margin-bottom: 3rem;
    }

    .project-card-item {
        background: var(--color-white);
        border-radius: var(--radius-md);
        overflow: hidden;
        box-shadow: var(--shadow-soft);
        transition: transform 0.25s ease, box-shadow 0.25s ease;
        display: flex;
        flex-direction: column;
        height: 100%;
    }

    .project-card-item:hover {
        transform: translateY(-8px);
        box-shadow: 0 18px 36px rgba(0, 0, 0, 0.12);
    }

    .project-card-image {
        position: relative;
        height: 240px;
        overflow: hidden;
    }

    .project-card-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.5s ease;
    }

    .project-card-item:hover .project-card-image img {
        transform: scale(1.08);
    }

    .project-card-overlay {
        position: absolute;
        inset: 0;
        background: linear-gradient(to top, rgba(27, 62, 119, 0.65) 0%, rgba(27, 62, 119, 0) 60%);
        z-index: 1;
    }

    .project-card-content {
        padding: 1.8rem 1.5rem;
        flex-grow: 1;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

    .project-card-title {
        font-size: 1.4rem;
        margin: 0 0 0.8rem;
        color: var(--color-primary-dark);
        font-weight: 800;
        text-transform: uppercase;
        line-height: 1.3;
    }

    .project-card-excerpt {
        color: var(--color-text);
        font-size: 0.95rem;
        margin-bottom: 1.2rem;
        line-height: 1.6;
        flex-grow: 1;
    }

    .btn-project-view {
        align-self: flex-start;
        color: var(--color-primary-middle);
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.08em;
        font-size: 0.9rem;
        display: inline-flex;
        align-items: center;
        gap: 0.4rem;
        transition: gap 0.2s ease, color 0.2s ease;
    }

    .btn-project-view:hover {
        text-decoration: none;
        gap: 0.7rem;
        color: var(--color-accent-green);
    }

    .btn-project-view .arrow {
        transition: transform 0.2s ease;
    }

    .btn-project-view:hover .arrow {
        transform: translateX(3px);
    }

    /* Responsive adjustments for Projects Archive Page */
    @media (max-width: 992px) {
        .page-hero.projects-hero {
            min-height: 350px;
            padding: 4rem 0;
        }

        .page-hero .page-title {
            font-size: 2.8rem;
        }

        .projects-grid {
            grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
            gap: 2rem;
        }

        .project-card-image {
            height: 200px;
        }

        .project-card-content {
            padding: 1.5rem 1.2rem;
        }

        .project-card-title {
            font-size: 1.2rem;
        }
    }

    @media (max-width: 768px) {
        .page-hero.projects-hero {
            min-height: 300px;
            padding: 3rem 0;
        }

        .page-hero .page-title {
            font-size: 2.2rem;
        }

        .page-hero .page-subtitle {
            font-size: 0.95rem;
        }

        .projects-grid {
            grid-template-columns: 1fr;
            /* Single column layout */
            gap: 1.5rem;
        }

        .projects-grid-section {
            padding: 3rem 0;
        }

        .project-card-image {
            height: 180px;
        }

        .project-card-content {
            padding: 1.2rem;
        }

        .project-card-title {
            font-size: 1.1rem;
            margin-bottom: 0.6rem;
        }

        .project-card-excerpt {
            font-size: 0.875rem;
            margin-bottom: 0.8rem;
        }

    }

    .references-container {
        padding-top: 60px;
        padding-bottom: 80px;
        max-width: 1200px;
        margin: 0 auto;
        text-align: center;
    }

    .references-title {
        font-family: 'Playfair Display', serif;
        font-size: 3.5rem;
        color: #1b3e77;
        /* IPEC Blue */
        margin-bottom: 40px;
        font-style: italic;
    }

    .references-intro {
        max-width: 800px;
        margin: 0 auto 60px;
        font-size: 1.1rem;
        color: #555;
        line-height: 1.6;
    }

    .references-intro p {
        margin-bottom: 15px;
    }

    /* Gallery Styling (Targeting WP Gallery Block) */
    .references-content .wp-block-gallery {
        margin-top: 40px;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 30px;
    }

    .references-content .wp-block-gallery .wp-block-image {
        width: calc(25% - 30px);
        /* 4 columns */
        margin: 0;
    }

    .references-content .wp-block-gallery .wp-block-image img {
        filter: grayscale(100%);
        transition: filter 0.3s ease, transform 0.3s ease;
        opacity: 0.8;
        width: 100%;
        height: auto;
        display: block;
    }

    .references-content .wp-block-gallery .wp-block-image img:hover {
        filter: grayscale(0%);
        opacity: 1;
        transform: scale(1.05);
    }

    /* Edit Page Button */
    .edit-page-wrapper {
        position: fixed;
        bottom: 20px;
        right: 20px;
        z-index: 1000;
    }

    .edit-page-button {
        display: inline-block;
        background-color: #1b3e77;
        color: #fff;
        padding: 12px 24px;
        border-radius: 30px;
        text-decoration: none;
        font-weight: 600;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
        transition: background-color 0.3s ease, transform 0.3s ease;
    }

    .edit-page-button:hover {
        background-color: #142c55;
        transform: translateY(-2px);
        color: #fff;
    }

    /* Responsive Adjustments */
    @media (max-width: 768px) {
        .references-title {
            font-size: 2.5rem;
        }

        .references-container {
            padding-top: 40px;
            padding-bottom: 60px;
        }

        .references-content .wp-block-gallery .wp-block-image {
            width: calc(50% - 20px);
            /* 2 columns on mobile */
        }
    }


    /* =========================================
   References Photos Section
   ========================================= */
    .references-photos-section {
        margin-bottom: 80px;
    }

    .references-photos-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
        gap: 30px;
        margin-top: 40px;
    }

    .reference-photo-item {
        overflow: hidden;
        border-radius: 8px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }

    .reference-photo-item:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    }

    .reference-photo-item img {
        width: 100%;
        height: 250px;
        object-fit: cover;
        display: block;
        transition: transform 0.5s ease;
    }

    .reference-photo-item:hover img {
        transform: scale(1.05);
    }

    /* =========================
   Shared References Styles
   ========================= */

    .references-subtitle {
        font-family: 'Playfair Display', serif;
        font-size: 2.5rem;
        color: #1b3e77;
        margin-bottom: 30px;
        font-style: italic;
        text-align: center;
    }

    .references-empty-msg {
        color: #777;
        font-style: italic;
        margin-top: 20px;
        text-align: center;
    }

    /* =========================
   References Archive
   ========================= */

    .references-hero {
        padding-top: 5rem;
        padding-bottom: 3rem;
        background-color: var(--color-white);
        text-align: center;
    }

    .references-title {
        font-family: 'Playfair Display', serif;
        font-size: 3.5rem;
        font-weight: 400;
        font-style: italic;
        color: var(--color-primary-dark);
        margin-bottom: 1.5rem;
    }

    .references-subtitle-text {
        max-width: 800px;
        margin: 0 auto 4rem;
        color: #555;
        font-size: 1.1rem;
        line-height: 1.6;
    }

    .references-grid-section {
        padding-bottom: 6rem;
        background-color: var(--color-white);
    }

    .references-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 3rem;
        align-items: center;
        justify-items: center;
    }

    @media (min-width: 768px) {
        .references-grid {
            grid-template-columns: repeat(3, 1fr);
        }
    }

    @media (min-width: 1024px) {
        .references-grid {
            grid-template-columns: repeat(4, 1fr);
            gap: 4rem;
        }
    }

    .reference-logo-item {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        height: 140px;
        padding: 1rem;
        transition: transform 0.3s ease;
    }

    .reference-logo-img {
        max-width: 100%;
        max-height: 90px;
        width: auto;
        height: auto;
        object-fit: contain;
    }

    .references-content .wp-block-gallery .wp-block-image {
        width: calc(25% - 30px);
        /* 4 columns */
        margin: 0;
    }

    .references-content .wp-block-gallery .wp-block-image img {
        filter: grayscale(100%);
        transition: filter 0.3s ease, transform 0.3s ease;
        opacity: 0.8;
        width: 100%;
        height: auto;
        display: block;
    }

    .references-content .wp-block-gallery .wp-block-image img:hover {
        filter: grayscale(0%);
        opacity: 1;
        transform: scale(1.05);
    }

    /* Edit Page Button */
    .edit-page-wrapper {
        position: fixed;
        bottom: 20px;
        right: 20px;
        z-index: 1000;
    }

    .edit-page-button {
        display: inline-block;
        background-color: #1b3e77;
        color: #fff;
        padding: 12px 24px;
        border-radius: 30px;
        text-decoration: none;
        font-weight: 600;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
        transition: background-color 0.3s ease, transform 0.3s ease;
    }

    .edit-page-button:hover {
        background-color: #142c55;
        transform: translateY(-2px);
        color: #fff;
    }

    /* Responsive Adjustments */
    @media (max-width: 768px) {
        .references-title {
            font-size: 2.5rem;
        }

        .references-container {
            padding-top: 40px;
            padding-bottom: 60px;
        }

        .references-content .wp-block-gallery .wp-block-image {
            width: calc(50% - 20px);
            /* 2 columns on mobile */
        }
    }


    /* =========================================
   References Photos Section
   ========================================= */
    .references-photos-section {
        margin-bottom: 80px;
    }

    .references-photos-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
        gap: 30px;
        margin-top: 40px;
    }

    .reference-photo-item {
        overflow: hidden;
        border-radius: 8px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }

    .reference-photo-item:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    }

    .reference-photo-item img {
        width: 100%;
        height: 250px;
        object-fit: cover;
        display: block;
        transition: transform 0.5s ease;
    }

    .reference-photo-item:hover img {
        transform: scale(1.05);
    }

    /* =========================
   Shared References Styles
   ========================= */

    .references-subtitle {
        font-family: 'Playfair Display', serif;
        font-size: 2.5rem;
        color: #1b3e77;
        margin-bottom: 30px;
        font-style: italic;
        text-align: center;
    }

    .references-empty-msg {
        color: #777;
        font-style: italic;
        margin-top: 20px;
        text-align: center;
    }

    /* =========================
   References Archive
   ========================= */

    .references-hero {
        padding-top: 5rem;
        padding-bottom: 3rem;
        background-color: var(--color-white);
        text-align: center;
    }

    .references-title {
        font-family: 'Playfair Display', serif;
        font-size: 3.5rem;
        font-weight: 400;
        font-style: italic;
        color: var(--color-primary-dark);
        margin-bottom: 1.5rem;
    }

    .references-subtitle-text {
        max-width: 800px;
        margin: 0 auto 4rem;
        color: #555;
        font-size: 1.1rem;
        line-height: 1.6;
    }

    .references-grid-section {
        padding-bottom: 6rem;
        background-color: var(--color-white);
    }

    .references-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 3rem;
        align-items: center;
        justify-items: center;
    }

    @media (min-width: 768px) {
        .references-grid {
            grid-template-columns: repeat(3, 1fr);
        }
    }

    @media (min-width: 1024px) {
        .references-grid {
            grid-template-columns: repeat(4, 1fr);
            gap: 4rem;
        }
    }

    .reference-logo-item {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        height: 140px;
        padding: 1rem;
        transition: transform 0.3s ease;
    }

    .reference-logo-img {
        max-width: 100%;
        max-height: 90px;
        width: auto;
        height: auto;
        object-fit: contain;
        filter: grayscale(100%);
        opacity: 0.8;
        transition: all 0.4s ease;
    }

    .reference-logo-item:hover .reference-logo-img {
        filter: grayscale(0%);
        opacity: 1;
        transform: scale(1.1);
    }

    /* =========================
   Project Hero & Page Hero Fixes
   ========================= */

    .project-title {
        font-size: 3.5rem;
        font-weight: 800;
        margin-bottom: 0.5rem;
        text-transform: uppercase;
        color: #ffffff;
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
        margin-inline: auto;
        line-height: 1.5;
    }

    .project-subtitle {
        font-size: 1.25rem;
        margin-bottom: 2rem;
        color: rgba(255, 255, 255, 0.9);
        font-weight: 300;
        text-transform: uppercase;
        letter-spacing: 0.05em;
    }

    @media (max-width: 768px) {
        .project-hero {
            min-height: 50vh;
        }

        .project-title {
            font-size: 2.2rem;
        }
    }

    .page-hero {
        background-color: var(--color-primary-dark);
        color: var(--color-white);
        padding: 6rem 0;
        text-align: center;
        position: relative;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        min-height: 40vh;
    }

    .page-hero .page-title {
        font-size: clamp(3rem, 5vw, 4rem);
        margin-bottom: 1rem;
        text-transform: uppercase;
        /* 2 columns on mobile */
    }
}


/* =========================================
   References Photos Section
   ========================================= */
.references-photos-section {
    margin-bottom: 80px;
}

.references-photos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.reference-photo-item {
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.reference-photo-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.reference-photo-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.reference-photo-item:hover img {
    transform: scale(1.05);
}

/* =========================
   Shared References Styles
   ========================= */

.references-subtitle {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: #1b3e77;
    margin-bottom: 30px;
    font-style: italic;
    text-align: center;
}

.references-empty-msg {
    color: #777;
    font-style: italic;
    margin-top: 20px;
    text-align: center;
}

/* =========================
   References Archive
   ========================= */

.references-hero {
    padding-top: 5rem;
    padding-bottom: 3rem;
    background-color: var(--color-white);
    text-align: center;
}

.references-title {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    font-weight: 400;
    font-style: italic;
    color: var(--color-primary-dark);
    margin-bottom: 1.5rem;
}

.references-subtitle-text {
    max-width: 800px;
    margin: 0 auto 4rem;
    color: #555;
    font-size: 1.1rem;
    line-height: 1.6;
}

.references-grid-section {
    padding-bottom: 6rem;
    background-color: var(--color-white);
}

.references-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    align-items: center;
    justify-items: center;
}

@media (min-width: 768px) {
    .references-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1024px) {
    .references-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 4rem;
    }
}

.reference-logo-item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 140px;
    padding: 1rem;
    transition: transform 0.3s ease;
}

.reference-logo-img {
    max-width: 100%;
    max-height: 90px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.8;
    transition: all 0.4s ease;
}

.reference-logo-item:hover .reference-logo-img {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
}

/* =========================
   Project Hero & Page Hero Fixes
   ========================= */

.project-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    margin-inline: auto;
    line-height: 1.5;
}

.project-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

@media (max-width: 768px) {
    .project-hero {
        min-height: 50vh;
    }

    .project-title {
        font-size: 2.2rem;
    }
}

.page-hero {
    background-color: var(--color-primary-dark);
    color: var(--color-white);
    padding: 6rem 0;
    text-align: center;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 40vh;
}

.page-hero .page-title {
    font-family: 'Lato', sans-serif;
    font-size: clamp(3rem, 5vw, 4rem);
    margin-bottom: 1rem;
    text-transform: uppercase;
    font-weight: 900;
    color: var(--color-white);
    letter-spacing: 0.06em;
}

.page-hero .page-subtitle {
    font-size: clamp(1rem, 1.8vw, 1.25rem);
    color: color-mix(in srgb, var(--color-white) 90%, var(--color-text));
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.5;
}

.projects-grid-section {
    padding: 5rem 0;
    background-color: var(--color-light-grey);
}

/* =========================================
   Public Value Page Styles
   ========================================= */

.public-value-hero {
    background-color: var(--color-primary-dark);
    color: var(--color-white);
    padding: 6rem 0;
    text-align: center;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 40vh;
}

.pv-intro-section {
    padding: 4rem 0;
    background-color: var(--color-white);
    text-align: center;
}

.pv-intro-content {
    max-width: 800px;
    margin: 0 auto;
    margin-top: 20px;
    text-align: center;
}

/* =========================
   References Archive
   ========================= */

.references-hero {
    padding-top: 5rem;
    padding-bottom: 3rem;
    background-color: var(--color-white);
    text-align: center;
}

.references-title {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    font-weight: 400;
    font-style: italic;
    color: var(--color-primary-dark);
    margin-bottom: 1.5rem;
}

.references-subtitle-text {
    max-width: 800px;
    margin: 0 auto 4rem;
    color: #555;
    font-size: 1.1rem;
    line-height: 1.6;
}

.references-grid-section {
    padding-bottom: 6rem;
    background-color: var(--color-white);
}

.references-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    align-items: center;
    justify-items: center;
}

@media (min-width: 768px) {
    .references-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1024px) {
    .references-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 4rem;
    }
}

.reference-logo-item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 140px;
    padding: 1rem;
    transition: transform 0.3s ease;
}

.reference-logo-img {
    max-width: 100%;
    max-height: 90px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.8;
    transition: all 0.4s ease;
}

.reference-logo-item:hover .reference-logo-img {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
}

/* =========================
   Project Hero & Page Hero Fixes
   ========================= */

.project-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    margin-inline: auto;
    line-height: 1.5;
}

.project-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

@media (max-width: 768px) {
    .project-hero {
        min-height: 50vh;
    }

    .project-title {
        font-size: 2.2rem;
    }
}

.page-hero {
    background-color: var(--color-primary-dark);
    color: var(--color-white);
    padding: 6rem 0;
    text-align: center;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 40vh;
}

.page-hero .page-title {
    font-size: clamp(3rem, 5vw, 4rem);
    margin-bottom: 1rem;
    text-transform: uppercase;
    font-weight: 800;
    color: var(--color-white);
    letter-spacing: 0.05em;
}

.page-hero .page-subtitle {
    font-size: clamp(1rem, 1.8vw, 1.25rem);
    color: color-mix(in srgb, var(--color-white) 90%, var(--color-text));
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.5;
}

.projects-grid-section {
    padding: 5rem 0;
    background-color: var(--color-light-grey);
}

/* =========================================
   Public Value Page Styles
   ========================================= */

.public-value-hero {
    background-color: var(--color-primary-dark);
    color: var(--color-white);
    padding: 6rem 0;
    text-align: center;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 40vh;
}

.pv-intro-section {
    padding: 4rem 0;
    background-color: var(--color-white);
    text-align: center;
}

.pv-intro-content {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.2rem;
    line-height: 1.6;
    color: var(--color-text);
}

.pv-section {
    padding: 5rem 0;
}

.pv-section-title {
    text-align: center;
    font-family: 'Lato', sans-serif;
    font-size: 2.5rem;
    color: var(--color-primary-dark);
    margin-bottom: 3rem;
    font-weight: 900;
    text-transform: uppercase;
}

.pv-current-initiatives {
    background-color: var(--color-light-grey);
}

.pv-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.pv-card {
    background: var(--color-white);
    padding: 2.5rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.pv-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.pv-card-icon {
    font-size: 3rem;
    color: var(--color-primary-middle);
    margin-bottom: 1.5rem;
}

.pv-card-icon .dashicons {
    font-size: 3rem;
    width: 3rem;
    height: 3rem;
}

.pv-card-title {
    font-size: 1.4rem;
    color: var(--color-primary-dark);
    margin-bottom: 1.5rem;
    font-weight: 700;
    text-transform: uppercase;
}

.pv-list {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.pv-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.8rem;
    color: var(--color-text);
    line-height: 1.5;
}

.pv-list li::before {
    content: "•";
    color: var(--color-accent-green);
    font-weight: bold;
    position: absolute;
    left: 0;
    font-size: 1.2rem;
    line-height: 1.4;
}

.pv-past-initiatives {
    background-color: var(--color-white);
}

.pv-grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.pv-simple-card {
    background: var(--color-light-grey);
    padding: 2rem;
    border-radius: var(--radius-md);
    text-align: center;
    border: 1px solid var(--color-border);
}

.pv-simple-title {
    font-size: 1.25rem;
    color: var(--color-primary-dark);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.pv-mission-section {
    padding: 5rem 0;
    background-color: var(--color-primary-dark);
    color: var(--color-white);
    text-align: center;
}

.pv-mission-box {
    max-width: 800px;
    margin: 0 auto;
}

.pv-mission-title {
    font-family: 'Lato', sans-serif;
    font-size: 2.5rem;
    color: var(--color-white);
}

.page-hero {
    background-color: var(--color-primary-dark);
    color: var(--color-white);
    padding: 6rem 0;
    text-align: center;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 40vh;
}

.page-hero .page-title {
    font-size: clamp(3rem, 5vw, 4rem);
    margin-bottom: 1rem;
    text-transform: uppercase;
    font-weight: 800;
    color: var(--color-white);
    letter-spacing: 0.05em;
}

.page-hero .page-subtitle {
    font-size: clamp(1rem, 1.8vw, 1.25rem);
    color: color-mix(in srgb, var(--color-white) 90%, var(--color-text));
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.5;
}

.projects-grid-section {
    padding: 5rem 0;
    background-color: var(--color-light-grey);
}

/* =========================================
   Public Value Page Styles
   ========================================= */

.public-value-hero {
    background-color: var(--color-primary-dark);
    color: var(--color-white);
    padding: 6rem 0;
    text-align: center;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 40vh;
}

.pv-intro-section {
    padding: 4rem 0;
    background-color: var(--color-white);
    text-align: center;
}

.pv-intro-content {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.2rem;
    line-height: 1.6;
    color: var(--color-text);
}

.pv-section {
    padding: 5rem 0;
}

.pv-section-title {
    text-align: center;
    font-family: 'Lato', sans-serif;
    font-size: 2.5rem;
    color: var(--color-primary-dark);
    margin-bottom: 3rem;
    font-weight: 900;
    text-transform: uppercase;
}

.pv-current-initiatives {
    background-color: var(--color-light-grey);
}

.pv-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.pv-card {
    background: var(--color-white);
    padding: 2.5rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.pv-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.pv-card-icon {
    font-size: 3rem;
    color: var(--color-primary-middle);
    margin-bottom: 1.5rem;
}

.pv-card-icon .dashicons {
    font-size: 3rem;
    width: 3rem;
    height: 3rem;
}

.pv-card-title {
    font-size: 1.4rem;
    color: var(--color-primary-dark);
    margin-bottom: 1.5rem;
    font-weight: 700;
    text-transform: uppercase;
}

.pv-list {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.pv-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.8rem;
    color: var(--color-text);
    line-height: 1.5;
}

.pv-list li::before {
    content: "•";
    color: var(--color-accent-green);
    font-weight: bold;
    position: absolute;
    left: 0;
    font-size: 1.2rem;
    line-height: 1.4;
}

.pv-past-initiatives {
    background-color: var(--color-white);
}

.pv-grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.pv-simple-card {
    background: var(--color-light-grey);
    padding: 2rem;
    border-radius: var(--radius-md);
    text-align: center;
    border: 1px solid var(--color-border);
}

.pv-simple-title {
    font-size: 1.25rem;
    color: var(--color-primary-dark);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.pv-mission-section {
    padding: 5rem 0;
    background-color: var(--color-primary-dark);
    color: var(--color-white);
    text-align: center;
}

.pv-mission-box {
    max-width: 800px;
    margin: 0 auto;
}

.pv-mission-title {
    font-family: 'Lato', sans-serif;
    font-size: 2.5rem;
    color: var(--color-white);
    margin-bottom: 1.5rem;
    font-weight: 900;
    text-transform: uppercase;
}

.pv-mission-box p {
    text-align: center;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 40vh;
}

.page-hero .page-title {
    font-size: clamp(3rem, 5vw, 4rem);
    margin-bottom: 1rem;
    text-transform: uppercase;
    font-weight: 800;
    color: var(--color-white);
    letter-spacing: 0.05em;
}

.page-hero .page-subtitle {
    font-size: clamp(1rem, 1.8vw, 1.25rem);
    color: color-mix(in srgb, var(--color-white) 90%, var(--color-text));
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.5;
}

.projects-grid-section {
    padding: 5rem 0;
    background-color: var(--color-light-grey);
}

/* =========================================
   Public Value Page Styles
   ========================================= */

.public-value-hero {
    background-color: var(--color-primary-dark);
    color: var(--color-white);
    padding: 6rem 0;
    text-align: center;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 40vh;
}

.pv-intro-section {
    padding: 4rem 0;
    background-color: var(--color-white);
    text-align: center;
}

.pv-intro-content {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.2rem;
    line-height: 1.6;
    color: var(--color-text);
}

.pv-section {
    padding: 5rem 0;
}

.pv-section-title {
    text-align: center;
    font-family: 'Lato', sans-serif;
    font-size: 2.5rem;
    color: var(--color-primary-dark);
    margin-bottom: 3rem;
    font-weight: 900;
    text-transform: uppercase;
}

.pv-current-initiatives {
    background-color: var(--color-light-grey);
}

.pv-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.pv-card {
    background: var(--color-white);
    padding: 2.5rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.pv-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.pv-card-icon {
    font-size: 3rem;
    color: var(--color-primary-middle);
    margin-bottom: 1.5rem;
}

.pv-card-icon .dashicons {
    font-size: 3rem;
    width: 3rem;
    height: 3rem;
}

.pv-card-title {
    font-size: 1.4rem;
    color: var(--color-primary-dark);
    margin-bottom: 1.5rem;
    font-weight: 700;
    text-transform: uppercase;
}

.pv-list {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.pv-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.8rem;
    color: var(--color-text);
    line-height: 1.5;
}

.pv-list li::before {
    content: "•";
    color: var(--color-accent-green);
    font-weight: bold;
    position: absolute;
    left: 0;
    font-size: 1.2rem;
    line-height: 1.4;
}

.pv-past-initiatives {
    background-color: var(--color-white);
}

.pv-grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.pv-simple-card {
    background: var(--color-light-grey);
    padding: 2rem;
    border-radius: var(--radius-md);
    text-align: center;
    border: 1px solid var(--color-border);
}

.pv-simple-title {
    font-size: 1.25rem;
    color: var(--color-primary-dark);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.pv-mission-section {
    padding: 5rem 0;
    background-color: var(--color-primary-dark);
    color: var(--color-white);
    text-align: center;
}

.pv-mission-box {
    max-width: 800px;
    margin: 0 auto;
}

.pv-mission-title {
    font-family: 'Lato', sans-serif;
    font-size: 2.5rem;
    color: var(--color-white);
    margin-bottom: 1.5rem;
    font-weight: 900;
    text-transform: uppercase;
}

.pv-mission-box p {
    font-size: 1.3rem;
    line-height: 1.6;
    opacity: 0.95;
}

/* =========================
   Homepage References Carousel (CSS Marquee)
   ========================= */

.references-carousel-wrapper {
    position: relative;
    padding: 0 40px;
    max-width: 100%;
    overflow: hidden;
    /* Mask to fade out edges */
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.references-carousel {
    display: flex;
    gap: 50px;
    padding: 20px 0;
    align-items: center;
    width: max-content;
    /* Ensure width fits all content */
    /* Animation */
    /* Animation */
    animation: marquee 160s linear infinite;
}

/* Pause animation on hover */
/* .references-carousel:hover {
    animation-play-state: paused;
} */

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
        /* Move by half the width (assuming content is duplicated once) */
    }
}

.reference-card {
    flex: 0 0 auto;
    width: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.reference-image {
    width: 100%;
    display: flex;
    justify-content: center;
}

.reference-image img {
    max-width: 100%;
    max-height: 60px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all 0.3s ease;
}

.reference-image img:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.05);
}

/* Hide nav buttons as they are not needed for auto-marquee */
.references-nav {
    display: none;
}

/* =========================
   Homepage References Photos Carousel (Manual Scroll)
   ========================= */

.references-photos-carousel-wrapper {
    position: relative;
    padding: 0 50px;
    /* Space for arrows */
    max-width: 100%;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.references-photos-carousel {
    display: flex;
    gap: 30px;
    padding: 20px 0;
    align-items: center;
    width: 100%;
    overflow-x: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    /* Firefox */
}

.references-photos-carousel::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari, Opera */
}

.reference-photo-card {
    flex: 0 0 auto;
    width: 350px;
    /* Fixed width for photos */
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: #fff;
}

.reference-photo-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.reference-lightbox-trigger {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    cursor: pointer;
}

.reference-photo-image {
    width: 100%;
    height: 250px;
    /* Fixed height */
    display: flex;
    justify-content: center;
}

.reference-photo-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.reference-photo-card:hover .reference-photo-image img {
    transform: scale(1.05);
}

/* Navigation Buttons */
.references-photos-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #e5e7eb;
    color: var(--color-primary-dark);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.references-photos-nav:hover {
    background: var(--color-primary-dark);
    color: #fff;
    border-color: var(--color-primary-dark);
}

.references-photos-nav--prev {
    left: 0;
}

.references-photos-nav--next {
    right: 0;
}

/* =========================
   Homepage Projects Carousel
   ========================= */

.projects-section {
    background-color: #f9fafb;
}

.projects-carousel-wrapper {
    position: relative;
    padding: 0 50px;
    margin-top: 40px;
}

.projects-carousel {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 20px 0;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.projects-carousel::-webkit-scrollbar {
    display: none;
}

.project-card {
    flex: 0 0 400px;
    height: 500px;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.project-image {
    width: 100%;
    height: 100%;
    position: relative;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.1);
}

.project-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.5) 50%, rgba(0, 0, 0, 0.1) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 30px;
    opacity: 1;
    transition: all 0.3s ease;
}

.project-title {
    color: #fff;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-transform: uppercase;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    transform: translateY(0);
    transition: transform 0.3s ease;
}

.project-cta {
    align-self: flex-start;
    background-color: var(--color-accent-green);
    color: #fff;
    border: none;
    padding: 12px 25px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.project-card:hover .project-cta {
    opacity: 1;
    transform: translateY(0);
}

.project-card:hover .project-title {
    transform: translateY(-10px);
}

.projects-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: #fff;
    border-radius: 50%;
    border: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--color-primary-dark);
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
}

.projects-nav:hover {
    background: var(--color-primary-dark);
    color: #fff;
    transform: translateY(-50%) scale(1.1);
}

.projects-nav--prev {
    left: 0;
}

.projects-nav--next {
    right: 0;
}

/* =========================
   Contact Section Redesign
   ========================= */

.contact-section {
    background-color: #151e2d;
    /* Dark blue background */
    color: #ffffff;
    padding: 80px 0;
}

.contact-section .section-title {
    color: #ffffff;
    text-align: center;
    margin-bottom: 10px;
    font-size: 2.5rem;
    line-height: 1.2;
}

.contact-section .section-subtitle {
    color: #ffffff;
    text-align: center;
    opacity: 0.8;
    margin-bottom: 40px;
}

.contact-tagline {
    margin-top: 40px;
    margin-bottom: 60px;
    font-size: 1.1rem;
    opacity: 0.7;
    text-align: center;
    color: #ffffff;
}

/* Contact Form */
.contact-form-wrapper {
    max-width: 700px;
    margin: 0 auto 50px;
}

.contact-form .form-row {
    display: flex;
    gap: 20px;
}

.contact-form .form-group {
    margin-bottom: 20px;
    flex: 1;
}

.contact-form label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: #cccccc;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px 15px;
    background-color: #f0f0f0;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    color: #333;
}

.contact-form textarea {
    height: 120px;
    resize: vertical;
}

.contact-form .btn-submit {
    width: 100%;
    padding: 15px;
    background-color: #0056b3;
    /* Blue button */
    color: #ffffff;
    border: none;
    border-radius: 4px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.contact-form .btn-submit:hover {
    background-color: #004494;
}

/* Contact Grid */
.contact-grid {
    display: flex;
    justify-content: center;
    gap: 50px;
    flex-wrap: wrap;
}

.contact-item {
    flex: 1;
    min-width: 200px;
    max-width: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: transparent;
    border-radius: 8px;
    padding: 30px 20px;
    box-shadow: none;
    transition: transform 0.3s ease;
}

.contact-item:hover {
    transform: translateY(-5px);
}

.contact-icon-circle {
    width: 60px;
    height: 60px;
    background-color: #0056b3;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.contact-icon-circle .dashicons {
    font-size: 30px;
    width: 30px;
    height: 30px;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-item h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #ffffff;
}

.contact-item p {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
    color: #cccccc;
    text-align: center;
}

.contact-link {
    display: none;
    /* Hide buttons as per design image */
}

/* Social Connect */
.social-connect {
    text-align: center;
    margin-top: 40px;
}

.social-connect h3 {
    color: #ffffff;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.social-icon {
    width: 40px;
    height: 40px;
    background-color: #0056b3;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.social-icon:hover {
    transform: translateY(-3px);
    background-color: #004494;
}

.social-icon svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.social-facebook {
    background-color: #0056b3;
}

.social-instagram {
    background-color: #d62976;
}

/* Instagram gradient approximation or solid color */
.social-linkedin {
    background-color: #0077b5;
}

/* Projects Archive Hero Overlay */
.projects-hero {
    background-size: cover;
    background-position: center;
}

.projects-hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(27, 62, 119, 0.85);
    /* IPEC Blue overlay */
    z-index: 1;
}

.projects-hero .container {
    position: relative;
    z-index: 2;
}

/* Project Video Section */
.project-video-section {
    background-color: #f8f9fa;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: #000;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.video-container iframe,
.video-container object,
.video-container embed {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Map Tooltip Status Styles */
.tooltip .status.available {
    background-color: #0077C8;
    color: #ffffff;
}

.tooltip .status.taken {
    background-color: #E6E6E6;
    color: #333333;
}

.tooltip .status.shared {
    background-color: #1B3E77;
    color: #ffffff;
}

/* =========================================
   D1 Map Design Overrides
   ========================================= */

/* 1. 'Fugen-F ller': Rand bekommt dieselbe Farbe wie die Fl che */
.cls-3.available {
    fill: #9ab7e2 !important;
    stroke: #9ab7e2 !important;
    stroke-width: 1.5px !important;
    /* Schlie t die L cken */
    paint-order: stroke;
}

.cls-3.taken {
    fill: #e2e2e2 !important;
    stroke: #e2e2e2 !important;
    stroke-width: 1.5px !important;
    paint-order: stroke;
}

.cls-3.shared-office {
    fill: #0a3b7c !important;
    stroke: #0a3b7c !important;
    stroke-width: 1.5px !important;
    paint-order: stroke;
}

/* 2. Firmennamen Styling (Schwarz und kr ftig) */
.company-name-text {
    fill: #000000 !important;
    font-weight: 800 !important;
    font-family: 'Lato', sans-serif;
    font-size: 11px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    pointer-events: none;
    /* Klicks gehen durch den Text auf die Fl che */
}

/* Wei er Text nur f r die dunklen Shared Offices */
.company-name-text.shared-office {
    fill: #ffffff !important;
}

/* 3. Hover-Effekt: Etwas dunkler beim Dr berfahren */
.cls-3.available:hover,
.cls-3.available.is-hovered {
    fill: #7da0d6 !important;
    /* Etwas dunkleres Blau */
    stroke: #7da0d6 !important;
}

/* Optional: Legende oben zentrieren wie im Design */
.legend {
    justify-content: center;
    background: transparent;
    border: none;
    margin-bottom: 2rem;
}

.legend-item {
    background: #f4f8fb;
    padding: 5px 15px;
    border-radius: 4px;
    margin: 0 5px;
}


/* ============================================================
   ADDITION: Hover Effect for Rented (Taken) Spaces
   Safe to add at the bottom of style.css
   ============================================================ */

.cls-3.taken {
    transition: fill 0.2s ease, stroke 0.2s ease;
}

/* Wenn man  ber eine vermietete Fl che f hrt: Abdunkeln */
.cls-3.taken:hover,
.cls-3.taken.is-hovered {
    fill: #c0c0c0 !important;
    /* Etwas dunkleres Grau als Standard (#e2e2e2) */
    stroke: #c0c0c0 !important;
    /* Wichtig: Rand muss mitf rben wegen Fugen-Trick */
    cursor: pointer;
}


/* ============================================================
   FIX: Seamless Hover for Available Spaces (Final 'Shadow-Glue' Fix)
   ============================================================ */

.cls-3.available {
    /* Standard Zustand */
    fill: #9ab7e2 !important;
    stroke: #9ab7e2 !important;
    stroke-width: 1px !important;
    paint-order: stroke;
    transition: fill 0.1s linear;
    /* WICHTIG: shape-rendering optimieren, um L cken zu minimieren */
    shape-rendering: geometricPrecision;
}

/* Hover Zustand: Maximale Deckkraft */
.cls-3.available:hover,
.cls-3.available.is-hovered {
    fill: #7da0d6 !important;
    stroke: #7da0d6 !important;

    /* 1. Dickerer Rand */
    stroke-width: 6px !important;
    stroke-linejoin: round !important;
    /* Runde Ecken f llen besser */

    /* 2. DER TRICK: Ein Schatten in der gleichen Farbe f llt die Ritzen */
    filter: drop-shadow(0px 0px 1px #7da0d6);

    /* 3. Sofortige  nderung ohne Animation */
    transition: none !important;
}


/* =========================
   D1 Center Map Section (RESTORED)
   ========================= */

.map-section {
    background-color: var(--color-white);
    text-align: center;
}

#d1-center .section-title {
    color: #0a3b7c;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

#d1-center .section-subtitle {
    color: #0077c8;
    font-size: 1rem;
    margin-bottom: 2rem;
}

.map-wrapper {
    background-color: #ffffff;
    border-radius: 1rem;
    box-shadow: var(--shadow-strong);
    padding: 1.25rem;
}

.map-container {
    max-width: 840px;
    width: 100%;
    margin: 0 auto;
    position: relative;
}

.map-svg .property.shared-office {
    fill: var(--color-primary-dark) !important;
}

.map-svg .plot-id-text {
    font-family: Arial, sans-serif;
    font-size: 10px;
    font-weight: bold;
    fill: #333;
    text-anchor: middle;
    pointer-events: none;
    user-select: none;
}

.map-svg .company-name-text {
    font-family: Arial, sans-serif;
    font-size: 12px;
    letter-spacing: 1px;
    font-weight: 800;
    fill: #000000;
    text-anchor: middle;
    pointer-events: none;
    user-select: none;
}

.map-svg .company-name-text.shared-office {
    fill: #ffffff;
}

/* Tooltip - Root Level */
.tooltip {
    position: fixed;
    background: rgba(88, 88, 88, 0.95);
    backdrop-filter: blur(5px);
    color: #ffffff;
    padding: 12px 20px;
    border-radius: 6px;
    font-size: 14px;
    pointer-events: none;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
    max-width: 300px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    font-family: Arial, sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    left: 0;
    top: 0;
}

.tooltip.show {
    opacity: 1;
}

.tooltip h3 {
    font-size: 16px;
    font-weight: 700;
    margin: 0;
}

.tooltip h4 {
    font-size: 14px;
    font-weight: 600;
    margin: 0;
}

.tooltip p {
    font-size: 13px;
    margin: 0;
}

.tooltip .status {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    width: fit-content;
}

.tooltip .status.available {
    background: var(--color-accent);
    color: #ffffff;
}

.tooltip .status.taken {
    background: #db4a3f;
    color: #ffffff;
}

.tooltip-logo {
    max-width: 150px;
    max-height: 80px;
    object-fit: contain;
    margin: 10px 0;
    display: block;
}

/* Legend - Root Level */
.legend {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 15px;
    padding: 0;
    background: transparent;
    border: none;
    font-family: Arial, sans-serif;
    font-size: 16px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    text-wrap: nowrap;
}

.legend-color {
    width: 16px;
    height: 16px;
    border-radius: 2px;
    border: 1px solid #ccc;
}

.legend-label {
    font-weight: 500;
    color: #333;
}

.inline-svg {
    display: none;
}


/* =========================================
   FIX: Legend Color Blocks (Solid Squares)
   ========================================= */

/* 1. Die kleinen Quadrate ansprechen */
.map-section .legend-color {
    /* Wichtig: Rahmen entfernen! */
    border: none !important;

    /* Gr  e und Form */
    width: 18px !important;
    height: 18px !important;
    border-radius: 2px !important;
    /* Leicht abgerundet sieht edler aus */
    margin-right: 8px !important;
}

/* 2. Die Farben als HINTERGRUND setzen (nicht als Rahmen) */

/* Box 1: Available (Hellblau) */
.map-section .legend-item:nth-child(1) .legend-color {
    background-color: #9ab7e2 !important;
}

/* Box 2: Rented (Hellgrau) */
.map-section .legend-item:nth-child(2) .legend-color {
    background-color: #e2e2e2 !important;
}

/* Box 3: Shared Office (Dunkelblau) */
.map-section .legend-item:nth-child(3) .legend-color {
    background-color: #0a3b7c !important;
}


/* =========================================
   FIX: Projects Grid & Figures Styles
   ========================================= */

/* Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-bottom: 3rem;
}

.project-card-item {
    background: var(--color-white, #ffffff);
    border-radius: var(--radius-md, 8px);
    overflow: hidden;
    box-shadow: var(--shadow-soft, 0 4px 20px rgba(0, 0, 0, 0.05));
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.project-card-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.12);
}

.project-card-image {
    position: relative;
    height: 240px;
    overflow: hidden;
}

.project-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card-item:hover .project-card-image img {
    transform: scale(1.05);
}

.project-card-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.project-card-title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--color-primary-dark, #1b3e77);
}

.project-card-excerpt {
    font-size: 0.95rem;
    color: var(--color-text-light, #666);
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.btn-project-view {
    display: inline-flex;
    align-items: center;
    color: var(--color-accent-blue, #0077c8);
    font-weight: 600;
    text-decoration: none;
    transition: gap 0.3s ease;
    gap: 0.5rem;
}

.btn-project-view:hover {
    gap: 0.75rem;
}

/* =========================
   Figures Section
   ========================= */
.figures-section {
    background-color: #ffffff;
    padding: 6rem 0;
    text-align: center;
}

.figures-section .section-title {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    font-style: italic;
    color: var(--color-primary-dark);
    margin-bottom: 4rem;
    text-transform: none;
    font-weight: 400;
}

.figures-grid {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 4rem;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}

.figure-card {
    flex: 1;
    min-width: 150px;
    text-align: center;
}

.figure-number {
    color: var(--color-primary-dark);
    line-height: 1;
    margin-bottom: 0.5rem;
    display: flex;
    justify-content: center;
    align-items: baseline;
}

.figure-number-main {
    font-size: 2.5rem;
    font-weight: 700;
}

.figure-number-suffix {
    font-size: 2.5rem;
    font-weight: 700;
}

/* Specific styling for the first item (800.000m2) to match image */
.figure-card:first-child .figure-number-main {
    font-size: 2.5rem;
}

.figure-label {
    font-size: 0.9rem;
    color: #888;
    text-transform: lowercase;
    margin: 0;
    font-weight: 400;
}

@media (max-width: 768px) {
    .figures-grid {
        gap: 2rem;
    }

    .figure-number-main,
    .figure-number-suffix {
        font-size: 2rem;
    }
}


/* =========================================
   FIX: Panorama Modal (360 View)
   ========================================= */

.panorama-modal {
    display: none;
    /* Hidden by default */
    position: fixed;
    z-index: 9999;
    /* High z-index to sit on top of everything */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: rgba(0, 0, 0, 0.8);
    /* Black w/ opacity */
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.panorama-modal.show {
    display: flex;
    opacity: 1;
}

.panorama-modal-content {
    background-color: #fefefe;
    margin: auto;
    padding: 0;
    border: 1px solid #888;
    width: 90%;
    max-width: 1200px;
    height: 80vh;
    /* Fixed height for the view */
    position: relative;
    border-radius: 8px;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
    display: flex;
    flex-direction: column;
    animation: modalSlideIn 0.3s ease-out forwards;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.panorama-modal-header {
    padding: 15px 20px;
    background-color: #f1f1f1;
    border-bottom: 1px solid #ddd;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

.panorama-modal-title {
    margin: 0;
    font-size: 1.2rem;
    color: #333;
    font-weight: 600;
}

.panorama-modal-close {
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    background: none;
    border: none;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    transition: color 0.2s;
}

.panorama-modal-close:hover,
.panorama-modal-close:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}

.panorama-modal-body {
    flex-grow: 1;
    position: relative;
    background: #000;
    /* Dark background for the viewer */
    border-bottom-left-radius: 8px;
    gap: 2rem;
}

.blog-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.blog-card-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.blog-card-image {
    position: relative;
    padding-top: 60%;
    /* Aspect Ratio 3:2 approx */
    overflow: hidden;
}

.blog-card-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-card:hover .blog-card-image img {
    transform: scale(1.05);
}

.blog-card-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.blog-card-title {
    font-family: 'Lato', sans-serif;
    /* Or Playfair if preferred, image looks sans-serif or slab? Actually image looks sans-serif for card titles */
    font-size: 1.2rem;
    font-weight: 600;
    line-height: 1.4;
    color: #333;
    margin-bottom: 1rem;
}

.blog-card-meta {
    margin-top: auto;
    font-size: 0.85rem;
    color: #999;
}

/* --- Single Post (single.php) --- */

.single-blog-post {
    background-color: #fff;
}

.single-post-hero {
    width: 100%;
    max-height: 60vh;
    overflow: hidden;
    position: relative;
}

.single-post-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.single-post-container {
    max-width: 800px;
    /* Narrower for reading */
    margin: 0 auto;
    padding-top: 3rem;
    padding-bottom: 5rem;
}

.single-post-header {
    margin-bottom: 2rem;
}

.single-post-title {
    font-family: 'Playfair Display', serif;
    /* Image shows Serif for single title */
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-primary-dark, #1b3e77);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.single-post-meta {
    font-size: 0.95rem;
    color: #777;
    border-bottom: 1px solid #eee;
    padding-bottom: 1.5rem;
    margin-bottom: 2rem;
}

.single-post-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
}

.single-post-content p {
    margin-bottom: 1.5rem;
}

.single-post-content h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: var(--color-primary-dark, #1b3e77);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.single-post-content h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 0.8rem;
    color: #333;
}

.single-post-content ul,
.single-post-content ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.single-post-content li {
    margin-bottom: 0.5rem;
}

/* Sidebar Box Style (from image) */
.single-post-content .info-box {
    background-color: #f9f9f9;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 2rem 0;
}

.single-post-content .info-box h4 {
    margin-top: 0;
    font-size: 1.1rem;
    color: var(--color-primary-dark);
}

/* Responsive */
@media (max-width: 768px) {
    .blog-title {
        font-size: 2.5rem;
    }

    .blog-grid {
        grid-template-columns: 1fr;
    }

    .single-post-title {
        font-size: 2rem;
    }
}

/* =========================
   News Detail Page Styles
   ========================= */
.news-hero {
    position: relative;
    width: 100%;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 200px;
    /* Minimalhöhe, um Sektion sichtbar zu halten */
    background-color: var(--color-light-grey);
    /* Fallback background */
    padding: 20px 0;
    /* Optional: Abstand oben/unten */
}

.news-hero-image {
    width: 100%;
    text-align: center;
    /* Zentriert das Bild, wenn es nicht die volle Breite einnimmt */
}

.news-hero-image img {
    width: 100%;
    /* Macht das Bild so breit wie den Container */
    height: auto;
    /* Behält das Seitenverhältnis bei */
    max-height: 400px;
    /* Begrenzt die maximale Höhe des Bildes */
    object-fit: contain;
    /* Stellt sicher, dass das gesamte Bild sichtbar ist */
    object-position: center center;
    display: block;
}

.news-title {
    color: var(--color-primary-dark);
    /* Setzt die Farbe der Überschrift auf das Primär-Dunkelblau */
}

/* =========================
   Project Single Page Styles
   ========================= */

.project-hero {
    position: relative;
    width: 100%;
    min-height: 400px;
    /* Adjust as needed */
    background-size: cover;
    /* Ensure background image covers the area */
    background-position: center center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    padding: 80px 0;
    /* Adjust padding as needed */
}

.project-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    /* Semi-transparent overlay */
    z-index: 1;
}

.project-hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.project-hero .project-title {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 3.5em;
    margin-bottom: 10px;
    color: #fff;
}

.project-hero .project-subtitle {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: #fff;
}

.project-hero-buttons .btn {
    margin: 0 10px;
}

.project-stats-section {
    background-color: var(--color-primary-dark);
    color: #fff;
    padding: 40px 0;
}

.project-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    text-align: center;
}

.stat-item .stat-value {
    font-size: 2.5em;
    font-weight: 700;
    line-height: 1;
}

.stat-item .stat-label {
    font-size: 0.9em;
    text-transform: uppercase;
    opacity: 0.8;
}

.project-content-section {
    padding: 80px 0;
}

.project-main-text {
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.7;
}

/* Park Map Section */
.park-map-section {
    background-color: var(--color-light-grey);
    padding: 80px 0;
    text-align: center;
}

.park-map-subtitle {
    margin-bottom: 40px;
}

.park-map-container {
    background-color: #fff;
    border-radius: var(--radius-md);
    padding: 20px;
    box-shadow: var(--shadow-soft);
    margin-top: 30px;
}

.park-map-legend {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}

.park-map-legend .legend-item {
    display: flex;
    align-items: center;
    font-size: 0.9em;
}

.park-map-legend .legend-color {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    margin-right: 8px;
}

.park-map-legend .legend-color.business {
    background-color: #A4D65E;
}

.park-map-legend .legend-color.shopping {
    background-color: #F9E547;
}

.park-map-legend .legend-color.logistics {
    background-color: #E31C79;
}

.park-map-legend .legend-color.housing {
    background-color: #0077C8;
}

.park-map-img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    /* Zentriert das Bild */
}

/* Partners Section */
.partners-section {
    padding: 80px 0;
    text-align: center;
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.partner-logo-item {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100px;
    /* Fixed height for logos */
    background-color: #fff;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    padding: 10px;
}

.partner-logo {
    max-width: 100%;
    max-height: 80px;
    /* Ensures logos fit within the item */
    object-fit: contain;
}

/* Video Section */
.project-video-section {
    padding: 80px 0;
    background-color: var(--color-light-grey);
}

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: #000;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Contact CTA */
.project-contact-cta {
    background-color: var(--color-primary-dark);
    color: #fff;
    padding: 80px 0;
    text-align: center;
}

.cta-box {
    max-width: 800px;
    margin: 0 auto;
}

.cta-box h2 {
    color: #fff;
    font-size: 2.5em;
    margin-bottom: 20px;
}

.cta-box p {
    font-size: 1.1em;
    margin-bottom: 30px;
    opacity: 0.9;
}

.map-responsive {
    overflow: hidden;
    padding-bottom: 56.25%;
    /* 16:9 aspect ratio */
    position: relative;
    height: 0;
    margin-bottom: 30px;
}

.map-responsive iframe {
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    position: absolute;
}


/* =========================
   Title Style Overrides (Blog Style)
   ========================= */

.page-hero .public-value-title,
.page-hero .references-title {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    font-weight: 400;
    font-style: italic;
    text-transform: none;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

@media (max-width: 768px) {

    .page-hero .public-value-title,
    .page-hero .references-title {
        font-size: 2.5rem;
    }
}

/* =========================
   Blog & News Styles
   ========================= */

/* Blog Hero */
.blog-hero {
    background-color: var(--color-primary-dark);
    color: var(--color-white);
    padding: 6rem 0 4rem;
    text-align: center;
}

.blog-title {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    font-weight: 800;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.blog-subtitle {
    font-size: 1.25rem;
    color: var(--color-accent-blue);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.blog-description {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
}

/* Blog Grid */
.blog-grid-section {
    padding: 4rem 0;
    background-color: var(--color-bg);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2.5rem;
}

.blog-card {
    background: var(--color-white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.blog-card-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.blog-card-image {
    position: relative;
    padding-top: 60%;
    /* 16:9 Aspect Ratio */
    overflow: hidden;
}

.blog-card-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-card:hover .blog-card-image img {
    transform: scale(1.05);
}

.blog-card-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.blog-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 1rem;
    color: var(--color-primary-dark);
    line-height: 1.4;
}

.blog-card-meta {
    margin-top: auto;
    font-size: 0.875rem;
    color: var(--color-text-muted);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.blog-date {
    font-weight: 500;
}

/* Single Post */
.single-post-hero {
    position: relative;
    height: 60vh;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    text-align: center;
    overflow: hidden;
}

.single-post-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.single-post-hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.single-post-hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(27, 62, 119, 0.75);
    z-index: 1;
}

.single-post-hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 1.5rem;
}

.single-post-title {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.single-post-meta {
    font-size: 1.1rem;
    opacity: 0.9;
}

.single-post-content-section {
    padding: 4rem 0;
    background-color: var(--color-white);
}

.single-post-content {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--color-text);
}

.single-post-content h2 {
    font-size: 1.75rem;
    color: var(--color-primary-dark);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.single-post-content p {
    margin-bottom: 1.5rem;
}

.single-post-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    margin: 2rem 0;
}

.post-navigation {
    max-width: 800px;
    margin: 3rem auto 0;
    padding-top: 2rem;
    border-top: 1px solid var(--color-border);
    display: flex;
    justify-content: space-between;
}

.nav-previous a,
.nav-next a {
    font-weight: 700;
    color: var(--color-primary-dark);
    text-decoration: none;
    transition: color 0.2s ease;
}

.nav-previous a:hover,
.nav-next a:hover {
    color: var(--color-accent-blue);
}

/* =========================
   Generic content & sections
   ========================= */

.content-section,
.projects-section {
    background-color: var(--color-white);
}

/* Property detail page */
.property-detail {
    background-color: var(--color-bg);
}

.property-detail .container {
    max-width: 1280px;
}

.property-detail-header {
    max-width: 100%;
    margin: 0 auto 3.5rem;
    text-align: center;
}

.property-detail-title {
    margin-bottom: 0.75rem;
    color: var(--color-primary-dark);
    font-size: clamp(2.25rem, 4vw, 3rem);
    font-weight: 800;
    letter-spacing: -0.02em;
}

.property-detail-tagline {
    max-width: 42rem;
    margin-inline: auto;
    font-size: 1.1rem;
    color: var(--color-text-muted);
    font-weight: 400;
}

.property-detail-layout {
    display: flex;
    justify-content: center;
    margin-bottom: 4rem;
}

.property-detail-main {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--color-primary-dark);
    box-shadow: 0 10px 40px rgba(27, 62, 119, 0.15);
}

.property-detail-image {
    position: relative;
}

.property-detail-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(to top, rgba(27, 62, 119, 0.4), transparent);
    pointer-events: none;
}

.property-detail-image img {
    width: 100%;
    height: 100%;
    min-height: 500px;
    max-height: 600px;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

.property-detail-main:hover .property-detail-image img {
    transform: scale(1.03);
}

.property-detail-sidebar {
    padding: 2.5rem 2.5rem 2.25rem;
    border-radius: var(--radius-lg);
    background: white;
    border: 1px solid rgba(27, 62, 119, 0.08);
    box-shadow: 0 4px 20px rgba(27, 62, 119, 0.08);
    position: sticky;
    top: calc(var(--header-height) + 1.5rem);
}

.property-detail-sidebar p {
    margin: 0 0 0.85rem;
    line-height: 1.6;
    font-size: 0.95rem;
}

.property-meta-fields {
    padding-bottom: 1.5rem;
    margin-bottom: 1.75rem;
    border-bottom: 1px solid rgba(27, 62, 119, 0.12);
}

.property-meta-fields p {
    margin: 0 0 1rem;
    font-size: 0.96rem;
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 1rem;
    align-items: baseline;
}

.property-meta-fields p:last-child {
    margin-bottom: 0;
}

.property-meta-fields strong {
    color: var(--color-text-muted);
    font-weight: 600;
    font-size: 0.875rem;
    font-size: 0.875rem !important;
    font-weight: 600 !important;
    white-space: nowrap;
}

.property-description {
    margin-bottom: 2rem;
}

.property-description p {
    margin: 0 0 1.1rem;
    line-height: 1.75;
    font-size: 0.9375rem;
    color: var(--color-text);
}

.property-description p:last-child {
    margin-bottom: 0;
}

/* Rich text content styles for WYSIWYG editor output */
.property-description--rich h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-primary-dark);
    margin: 1.5rem 0 0.75rem;
    line-height: 1.3;
}

.property-description--rich h2:first-child {
    margin-top: 0;
}

.property-description--rich h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-primary-dark);
    margin: 1.25rem 0 0.5rem;
    line-height: 1.3;
}

.property-description--rich h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text);
    margin: 1rem 0 0.5rem;
    line-height: 1.4;
}

.property-description--rich ul,
.property-description--rich ol {
    margin: 0.75rem 0 1rem;
    padding-left: 1.25rem;
}

.property-description--rich li {
    margin-bottom: 0.4rem;
    line-height: 1.6;
    font-size: 0.9375rem;
    color: var(--color-text);
}

.property-description--rich a {
    color: var(--color-accent-blue);
    text-decoration: underline;
    font-weight: 500;
    transition: color 0.2s ease;
}

.property-description--rich a:hover {
    color: var(--color-primary-dark);
}

.property-description--rich strong,
.property-description--rich b {
    font-weight: 700;
    color: var(--color-primary-dark);
}

.property-description--rich em,
.property-description--rich i {
    font-style: italic;
}

.property-description--rich blockquote {
    margin: 1rem 0;
    padding: 0.75rem 1rem;
    border-left: 3px solid var(--color-accent-blue);
    background: rgba(0, 119, 200, 0.05);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-style: italic;
    color: var(--color-text-muted);
}




.property-detail-cta-group {
    margin-top: 0;
    padding-top: 1.75rem;
    border-top: 1px solid rgba(27, 62, 119, 0.12);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.property-detail-cta-group .btn-primary {
    width: 100%;
    justify-content: center;
    padding: 1rem 1.5rem;
    font-size: 0.875rem;
    font-weight: 700;
}

.property-detail-cta-group .project-link {
    width: 100%;
    text-align: center;
    padding: 0.75rem;
    color: var(--color-primary-dark);
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    background: transparent;
    border: 1.5px solid var(--color-primary-dark);
    border-radius: 999px;
    transition: all 0.2s ease;
}

.property-detail-cta-group .project-link:hover {
    background: var(--color-primary-dark);
    color: white;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(27, 62, 119, 0.2);
}

.property-detail-body {
    max-width: 840px;
    margin: 0 auto;
    font-size: 0.98rem;
    line-height: 1.7;
}

.property-detail-body p {
    margin-top: 0;
    margin-bottom: 1rem;
}

.property-gallery {
    background: linear-gradient(180deg, var(--color-bg) 0%, var(--color-white) 100%);
    padding-top: 5rem !important;
    padding-bottom: 2rem !important;
}

.property-gallery .section-title {
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    margin-bottom: 0.75rem;
}

.property-gallery .section-subtitle {
    font-size: 1.05rem;
    margin-bottom: 3rem;
}

.property-gallery-single {
    max-width: 1000px;
    margin: 0 auto;
}

.property-gallery-single img {
    width: 100%;
    height: auto;
    min-height: 400px;
    max-height: 600px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 40px rgba(27, 62, 119, 0.12);
    border: 1px solid rgba(27, 62, 119, 0.06);
}

.property-gallery-carousel-wrapper {
    position: relative;
}

.property-gallery-carousel {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 1rem;
    padding-top: 0.5rem;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    cursor: grab;
}

.property-gallery-carousel.is-dragging {
    cursor: grabbing;
    user-select: none;
}

.property-gallery-carousel::-webkit-scrollbar {
    height: 6px;
}

.property-gallery-carousel::-webkit-scrollbar-track {
    background: transparent;
}

.property-gallery-carousel::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.15);
    border-radius: 999px;
}

.property-gallery-item {
    flex: 0 0 380px;
    scroll-snap-align: start;
}

.property-gallery-item img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    border-radius: var(--radius-md);
    box-shadow: 0 8px 24px rgba(27, 62, 119, 0.1);
    border: 1px solid rgba(27, 62, 119, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.property-gallery-item:hover img {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(27, 62, 119, 0.15);
}

.property-gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    background: white;
    box-shadow: 0 4px 16px rgba(27, 62, 119, 0.15);
    color: var(--color-primary-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 5;
    font-size: 1.25rem;
    transition: all 0.2s ease;
}

.property-gallery-nav--prev {
    left: -24px;
}

.property-gallery-nav--next {
    right: -24px;
}

.property-gallery-nav:hover {
    background: var(--color-primary-dark);
    color: white;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(27, 62, 119, 0.25);
}

@media (max-width: 1024px) {
    .property-detail-layout {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .property-detail-sidebar {
        position: static;
    }

    .property-detail-image img {
        min-height: 350px;
        max-height: 450px;
    }

    .property-detail-header {
        margin-bottom: 2.5rem;
    }
}

@media (max-width: 768px) {
    .property-detail {
        padding-block: 2rem;
    }

    .property-detail-header {
        margin-bottom: 2rem;
    }

    .property-detail-title {
        font-size: clamp(1.75rem, 6vw, 2.25rem);
    }

    .property-detail-tagline {
        font-size: 1rem;
    }

    .property-detail-layout {
        gap: 2rem;
    }

    .property-detail-image img {
        min-height: 280px;
        max-height: 380px;
    }

    .property-detail-sidebar {
        padding: 2rem 1.75rem;
    }

    .property-meta-fields p {
        grid-template-columns: 65px 1fr;
        gap: 0.75rem;
        font-size: 0.9rem;
    }

    .property-price {
        font-size: 1.25rem !important;
    }

    .property-description p {
        font-size: 0.9rem;
        line-height: 1.65;
    }

    .property-gallery {
        padding-top: 3rem !important;
        padding-bottom: 1.5rem !important;
    }

    .property-gallery .section-title {
        font-size: clamp(1.5rem, 5vw, 1.875rem);
    }

    .property-gallery .section-subtitle {
        font-size: 0.95rem;
        margin-bottom: 2rem;
    }

    .property-gallery-item {
        flex: 0 0 300px;
    }

    .property-gallery-item img {
        height: 220px;
    }

    .property-gallery-nav {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .property-gallery-nav--prev {
        left: -12px;
    }

    .property-gallery-nav--next {
        right: -12px;
    }

    .property-cta-section {
        padding: 3rem 1.25rem;
    }

    .property-cta-header {
        margin-bottom: 2rem;
    }

    .property-cta-title {
        font-size: clamp(1.35rem, 5vw, 1.75rem);
    }

    .property-cta-subtitle {
        font-size: 0.9rem;
    }

    .property-cta-card-header {
        padding: 1.5rem 1rem;
    }

    .property-cta-card-body {
        padding: 1.25rem 1rem 1.5rem;
    }
}

/* =========================
   Property Hero Image
   ========================= */
.property-hero {
    position: relative;
    width: 100%;
    height: 60vh;
    min-height: 400px;
    max-height: 600px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.property-hero-image {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.property-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    /* Ensure explicit centering */
    display: block;
}

.property-hero-overlay {
    position: relative;
    z-index: 1;
    width: 100%;
    background: linear-gradient(180deg, rgba(27, 62, 119, 0.7) 0%, rgba(27, 62, 119, 0.85) 100%);
    padding: 3rem 0;
    text-align: center;
}

.property-hero-title {
    margin: 0 0 0.75rem;
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 800;
    color: white;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.property-hero-tagline {
    margin: 0;
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: rgba(255, 255, 255, 0.95);
    font-weight: 500;
}

@media (max-width: 768px) {
    .property-hero {
        height: 50vh;
        min-height: 350px;
    }
}

/* =========================
   D1 Center Specific Styles
   ========================= */
.d1-center-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
    text-align: center;
}

.d1-stat {
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(0, 119, 200, 0.05), rgba(27, 62, 119, 0.05));
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
}

.d1-stat-number {
    font-size: clamp(2rem, 3vw, 2.5rem);
    font-weight: 800;
    color: var(--color-primary-dark);
    margin-bottom: 0.5rem;
}

.d1-stat-label {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.d1-center-description {
    max-width: 900px;
    margin: 2rem auto;
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--color-text);
}

.d1-feature-icon {
    width: 48px;
    height: 48px;
    color: var(--color-accent-blue);
    flex-shrink: 0;
}

.d1-benefits-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

@media (max-width: 640px) {
    .d1-center-stats {
        gap: 1rem;
    }

    .d1-stat {
        padding: 1rem;
    }
}

/* =========================
   Property Benefits Section
   ========================= */
.property-benefits {
    background: transparent;
}

.benefits-card {
    background: rgba(27, 62, 119, 0.06);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 2rem 1.5rem;
    box-shadow: var(--shadow-soft);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.benefit-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.benefit-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-accent-blue);
    margin-top: 0.55rem;
    box-shadow: 0 0 0 4px rgba(0, 119, 200, 0.12);
}

.benefit-title {
    margin: 0 0 0.25rem;
    font-size: 1rem;
    font-weight: 800;
    color: var(--color-primary-dark);
    text-transform: uppercase;
}

.benefit-text {
    margin: 0;
    font-size: 0.95rem;
    color: var(--color-text);
}

@media (max-width: 640px) {
    .benefits-card {
        padding: 1.5rem 1rem;
    }
}

/* =========================
   Property Highlight Image
   ========================= */
.property-highlight-image {
    padding: 4rem 0 5rem;
    background: linear-gradient(180deg, transparent 0%, rgba(27, 62, 119, 0.02) 50%, transparent 100%);
}

.property-highlight-image .container {
    max-width: 1400px;
    position: relative;
}

.property-highlight-image .container::before {
    content: '';
    position: absolute;
    inset: -20px;
    background: linear-gradient(135deg, rgba(0, 119, 200, 0.08), rgba(27, 62, 119, 0.08));
    border-radius: calc(var(--radius-lg) + 4px);
    z-index: 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.property-highlight-image .container:hover::before {
    opacity: 1;
}

.highlight-image {
    position: relative;
    z-index: 1;
    width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25),
        0 10px 20px -5px rgba(27, 62, 119, 0.15);
    display: block;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.property-highlight-image .container:hover .highlight-image {
    transform: translateY(-4px);
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.3),
        0 15px 25px -5px rgba(27, 62, 119, 0.2);
}

@media (max-width: 768px) {
    .property-highlight-image {
        padding: 2.5rem 0 3rem;
    }

    .highlight-image {
        border-radius: var(--radius-md);
        box-shadow: 0 15px 30px -8px rgba(0, 0, 0, 0.2),
            0 8px 15px -3px rgba(27, 62, 119, 0.12);
    }

    .property-highlight-image .container:hover .highlight-image {
        transform: translateY(-2px);
    }

    .property-highlight-image .container::before {
        display: none;
    }
}

/* =========================
   Property Detail CTA Section
   ========================= */
.property-cta-section {
    margin-top: 0;
    padding: 5rem 2rem;
    background: var(--color-primary-dark);
    border-radius: 0;
    position: relative;
}

.property-cta-header {
    text-align: center;
    margin-bottom: 2rem;
}

.property-cta-title {
    margin: 0 0 0.75rem;
    font-size: clamp(1.5rem, 2.5vw, 1.875rem);
    font-weight: 800;
    color: var(--color-white);
    text-transform: uppercase;
    letter-spacing: -0.01em;
}

.property-cta-subtitle {
    margin: 0 0 1.5rem;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.85);
    max-width: 550px;
    margin-inline: auto;
    line-height: 1.5;
}

.property-cta-subtitle strong {
    color: white;
    font-weight: 700;
}

.btn-cta-main {
    padding: 0.85rem 1.75rem;
    font-size: 0.9rem;
    background: var(--color-accent-pink);
    box-shadow: 0 4px 14px rgba(227, 28, 121, 0.35);
    color: white;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 700;
    text-decoration: none;
    display: inline-block;
}

.btn-cta-main:hover,
.btn-cta-main:focus-visible {
    background: linear-gradient(135deg, #f04e98, var(--color-accent-pink));
    box-shadow: 0 6px 18px rgba(227, 28, 121, 0.45);
    transform: translateY(-1px);
}

/* CTA Cards */
.property-cta-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    max-width: 800px;
    margin-inline: auto;
}

.property-cta-card {
    background: var(--color-white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
}

.property-cta-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}

.property-cta-card-header {
    background: var(--color-primary-dark);
    padding: 1.75rem 1.25rem;
    text-align: center;
    color: var(--color-white);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.property-cta-icon {
    width: 48px;
    height: 48px;
    opacity: 1;
    color: white;
    transition: color 0.3s ease, transform 0.3s ease;
}

.property-cta-card:hover .property-cta-icon {
    color: var(--color-accent-pink);
    transform: scale(1.1);
}

.property-cta-card-title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.property-cta-card-body {
    padding: 1.5rem 1.25rem 1.75rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.property-cta-card-heading {
    margin: 0 0 0.5rem;
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-primary-dark);
    line-height: 1.3;
}

.property-cta-card-text {
    margin: 0 0 1.25rem;
    font-size: 0.875rem;
    color: var(--color-text-muted);
    line-height: 1.5;
    flex: 1;
}

.property-cta-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--color-accent-blue);
    font-weight: 700;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    transition: gap 0.2s ease, color 0.2s ease;
}

.property-cta-link:hover {
    gap: 0.6rem;
    color: var(--color-primary);
    text-decoration: none;
}

.property-cta-link svg {
    width: 18px;
    height: 18px;
    transition: transform 0.2s ease;
}

.property-cta-link:hover svg {
    transform: translateX(2px);
}

/* =========================
   Gallery Lightbox
   ========================= */
.gallery-lightbox-trigger {
    display: block;
    cursor: zoom-in;
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-sm);
}

.gallery-lightbox-trigger::after {
    content: '\1F50D';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2rem;
    color: white;
    background: rgba(27, 62, 119, 0.8);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
}

.gallery-lightbox-trigger:hover::after {
    opacity: 1;
}

.gallery-lightbox-trigger img {
    transition: transform 0.3s ease;
}

.gallery-lightbox-trigger:hover img {
    transform: scale(1.05);
}

.gallery-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: lightboxFadeIn 0.2s ease;
}

@keyframes lightboxFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.gallery-lightbox-content {
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-lightbox-content img {
    max-width: 100%;
    max-height: 90vh;
    height: auto;
    border-radius: var(--radius-md);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

.gallery-lightbox-close,
.gallery-lightbox-prev,
.gallery-lightbox-next {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    font-size: 2rem;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.2s ease;
    backdrop-filter: blur(10px);
}

.gallery-lightbox-close:hover,
.gallery-lightbox-prev:hover,
.gallery-lightbox-next:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.1);
}

.gallery-lightbox-close {
    top: 20px;
    right: 20px;
    font-size: 2.5rem;
    line-height: 0.8;
}

.gallery-lightbox-prev {
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.gallery-lightbox-next {
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.gallery-lightbox-prev:hover,
.gallery-lightbox-next:hover {
    transform: translateY(-50%) scale(1.1);
}

@media (max-width: 768px) {

    .gallery-lightbox-close,
    .gallery-lightbox-prev,
    .gallery-lightbox-next {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }

    .gallery-lightbox-prev {
        left: 10px;
    }

    .gallery-lightbox-next {
        right: 10px;
    }

    .gallery-lightbox-close {
        top: 10px;
        right: 10px;
    }
}

/* =========================
   Property Contact Form Section
   ========================= */
.property-contact-section {
    background: var(--color-primary-dark);
    color: white;
    padding: 5rem 2rem;
}

.property-contact-content {
    max-width: 600px;
    margin: 0 auto;
}

.property-contact-title {
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    font-weight: 800;
    text-align: center;
    margin: 0 0 0.5rem;
    color: white;
    text-transform: uppercase;
}

.property-contact-subtitle {
    font-size: clamp(1.25rem, 3vw, 1.5rem);
    font-weight: 600;
    text-align: center;
    margin: 0 0 2.5rem;
    color: white;
    text-transform: uppercase;
}

.property-contact-form {
    margin-bottom: 3rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
    color: rgba(255, 255, 255, 0.9);
}

.form-group .required {
    color: #ff4444;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.95);
    font-size: 0.9375rem;
    font-family: inherit;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-accent-blue);
    background: white;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.btn-submit {
    width: 100%;
    padding: 1rem;
    font-size: 0.9375rem;
    font-weight: 700;
    margin-bottom: 2rem;
}

.property-contact-tagline {
    text-align: center;
    font-size: 0.9375rem;
    margin: 0 0 3rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

.property-contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.contact-info-item {
    text-align: center;
}

.contact-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 1rem;
    background: var(--color-primary-dark);
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.contact-info-item strong {
    display: block;
    font-size: 0.9375rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: white;
    text-transform: uppercase;
}

.contact-info-item p {
    margin: 0;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

.property-contact-social {
    text-align: center;
}

.property-contact-social>p {
    font-size: 0.9375rem;
    font-weight: 600;
    margin: 0 0 1rem;
    color: white;
    text-transform: uppercase;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.social-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.2s ease;
}

.social-icon:hover {
    background: var(--color-accent-blue);
    transform: translateY(-2px);
}

.social-icon svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* =========================
   Career Page Styles
   ========================= */

.career-page {
    background-color: var(--color-bg);
    padding-bottom: 4rem;
}

/* Header */
.career-header {
    padding: 4rem 0 3rem;
    text-align: center;
}

.career-title {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    color: var(--color-primary-dark);
    margin-bottom: 0.5rem;
    font-weight: 400;
}

.career-subtitle {
    font-size: 1.25rem;
    color: var(--color-text-muted);
    margin-bottom: 2rem;
    font-weight: 400;
}

.career-description {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--color-text);
}

/* Cards */
.career-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 3rem;
    box-shadow: var(--shadow-soft);
    margin-bottom: 2rem;
}

.career-card-title {
    text-align: center;
    font-size: 1.75rem;
    color: var(--color-primary-dark);
    margin-bottom: 3rem;
    font-weight: 700;
}

/* Benefits Grid */
.benefits-grid-career {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem 4rem;
    max-width: 1000px;
    margin: 0 auto;
}

.benefit-item-career {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.benefit-icon-wrapper {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background-color: var(--color-accent-blue);
    /* Blue circle */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.benefit-icon-wrapper .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.benefit-text-career {
    font-size: 1rem;
    color: var(--color-text);
    line-height: 1.5;
    margin: 0;
}

.benefit-text-career .highlight {
    color: var(--color-accent-blue);
    font-weight: 600;
}

/* Openings Empty State */
.openings-empty-state {
    text-align: center;
    padding: 3rem 1rem;
}

.empty-icon-circle {
    width: 64px;
    height: 64px;
    background-color: #e9ecef;
    /* Light grey circle */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: #adb5bd;
    /* Grey icon color */
}

.empty-icon-circle .dashicons {
    font-size: 32px;
    width: 32px;
    height: 32px;
}

.empty-title {
    font-size: 1.25rem;
    color: var(--color-primary-dark);
    margin-bottom: 1rem;
    font-weight: 700;
}

.empty-description {
    max-width: 600px;
    margin: 0 auto;
    color: var(--color-text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .career-title {
        font-size: 2.5rem;
    }

    .benefits-grid-career {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .career-card {
        padding: 2rem 1.5rem;
    }
}

/* =========================
   Services Page Styles
   ========================= */

.services-page {
    background-color: var(--color-bg);
    padding-bottom: 4rem;
}

/* Header */
.services-header {
    padding: 4rem 0 3rem;
    text-align: center;
}

.services-title {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    color: var(--color-primary-dark);
    margin-bottom: 0.5rem;
    font-weight: 400;
}

.services-subtitle {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    margin-bottom: 2rem;
    font-weight: 400;
}

/* Service Cards */
.services-list-section {
    padding-bottom: 4rem;
}

.service-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 4rem 3rem;
    box-shadow: var(--shadow-soft);
    margin-bottom: 2.5rem;
    text-align: center;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.service-icon-wrapper {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    color: white;
}

.service-icon-wrapper .dashicons {
    font-size: 40px;
    width: 40px;
    height: 40px;
}

.service-card-title {
    font-size: 2rem;
    color: var(--color-primary-dark);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.service-card-subtitle {
    font-size: 1rem;
    color: var(--color-accent-blue);
    margin-bottom: 2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.service-card-content {
    text-align: left;
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--color-text);
    margin-bottom: 2.5rem;
}

.service-card-content p {
    margin-bottom: 1.5rem;
}

.service-highlight {
    font-weight: 700;
    color: var(--color-primary-dark);
}

/* Service Buttons */
.btn-service {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 4px;
    color: white;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    font-size: 1rem;
    background-color: #004d99;
    /* Dark blue from image */
}

.btn-service:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    color: white;
}

@media (max-width: 768px) {
    .services-title {
        font-size: 2.5rem;
    }

    .service-card {
        padding: 2.5rem 1.5rem;
    }

    .service-card-title {
        font-size: 1.75rem;
    }
}

/* =========================
   Footer Styles
   ========================= */
.main-footer {
    background-color: #151e2d;
    /* Dark blue matching contact section */
    color: #889bb0;
    /* Muted blue-grey text */
    padding: 2rem 0;
    font-size: 0.85rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content {
    display: flex;
    justify-content: center;
    /* Centered as per image */
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
    position: relative;
}

.copyright {
    margin: 0;
}

.footer-links {
    display: flex;
    gap: 2rem;
    position: absolute;
    right: 0;
}

.footer-links a {
    color: #889bb0;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: #ffffff;
}

@media (max-width: 992px) {
    .footer-content {
        flex-direction: column;
        gap: 1rem;
    }

    .footer-links {
        position: static;
        justify-content: center;
    }
}

/* =========================
   Mobile Responsive Styles
   ========================= */

@media (max-width: 992px) {

    /* Header & Nav */
    .main-nav {
        display: none;
        /* Hide desktop menu */
    }

    .mobile-menu-toggle {
        display: flex;
        /* Show mobile toggle */
    }

    .header-container {
        padding: 0 1.5rem;
    }

    /* Hero Section */
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    /* Sections with Grid */
    .growth-content,
    .philosophy-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .growth-map,
    .philosophy-image {
        order: -1;
        /* Show image first on mobile */
    }

    .section-title {
        font-size: 2rem;
    }

    /* Contact Section */
    .contact-grid {
        flex-direction: column;
        align-items: center;
    }

    .contact-item {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 768px) {

    /* Further adjustments for smaller screens */
    .section-padding {
        padding-block: 3rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .figures-grid {
        gap: 2rem;
    }

    .figure-card {
        min-width: 100%;
        /* Stack figures vertically */
    }
}

/* =========================
   Mobile Menu Open State
   ========================= */

@media (max-width: 992px) {
    .main-nav.is-open {
        display: flex;
        position: fixed;
        top: var(--header-height);
        left: 0;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background-color: var(--color-primary-dark);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        z-index: 999;
        overflow-y: auto;
        padding: 2rem;
    }

    .main-nav.is-open .nav-list {
        flex-direction: column;
        gap: 2rem;
        width: 100%;
        text-align: center;
    }

    .main-nav.is-open .nav-list a {
        font-size: 1.5rem;
        display: block;
    }

    /* Hamburger Animation */
    .mobile-menu-toggle.is-active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .mobile-menu-toggle.is-active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-toggle.is-active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .mobile-menu-toggle span {
        transition: all 0.3s ease;
    }

    body.menu-open {
        overflow: hidden;
    }
}

/* =========================
   Privacy Policy Page Styles
   ========================= */

.privacy-hero {
    text-align: center;
    padding: 4rem 0 2rem;
    background-color: var(--color-bg);
}

.privacy-title {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    color: var(--color-primary-dark);
    margin-bottom: 1rem;
    font-weight: 400;
}

.privacy-subtitle {
    color: var(--color-text-muted);
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.5;
}

.privacy-content-section {
    padding-bottom: 5rem;
    background-color: var(--color-bg);
}

.privacy-container {
    max-width: 900px;
    margin: 0 auto;
}

.privacy-card {
    background: #ffffff;
    padding: 3rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    margin-bottom: 2rem;
}

.privacy-card-title {
    text-align: center;
    color: var(--color-primary-dark);
    font-size: 1.8rem;
    margin-bottom: 2.5rem;
    font-weight: 700;
}

.privacy-block {
    margin-bottom: 2rem;
}

.privacy-block:last-child {
    margin-bottom: 0;
}

.privacy-block h3 {
    font-size: 1.2rem;
    color: var(--color-text);
    margin-bottom: 0.8rem;
    font-weight: 700;
    margin-top: 0;
}

.privacy-block h4 {
    font-size: 1.1rem;
    color: var(--color-primary-dark);
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.privacy-block p {
    color: #555;
    line-height: 1.7;
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.privacy-block ul {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.privacy-block li {
    color: #555;
    margin-bottom: 0.5rem;
}

@media (max-width: 768px) {
    .privacy-title {
        font-size: 2.2rem;
    }

    .privacy-card {
        padding: 2rem 1.5rem;
    }
}

/* =========================
   Imprint Page Styles
   ========================= */

.imprint-hero {
    text-align: center;
    padding: 4rem 0 2rem;
    background-color: var(--color-bg);
}

.imprint-title {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    color: var(--color-primary-dark);
    margin-bottom: 1rem;
    font-weight: 400;
}

.imprint-subtitle {
    color: var(--color-text-muted);
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.5;
}

.imprint-content-section {
    padding-bottom: 5rem;
    background-color: var(--color-bg);
}

.imprint-container {
    max-width: 1000px;
    margin: 0 auto;
}

.imprint-card {
    background: #ffffff;
    padding: 3rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    margin-bottom: 2rem;
}

.imprint-card-title {
    text-align: center;
    color: var(--color-primary-dark);
    font-size: 1.8rem;
    margin-bottom: 3rem;
    font-weight: 700;
}

.imprint-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

.imprint-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.imprint-icon {
    color: var(--color-accent-blue);
    flex-shrink: 0;
    margin-top: 2px;
}

.imprint-icon .dashicons {
    font-size: 24px;
    width: 24px;
    height: 24px;
}

.imprint-details h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-primary-dark);
    margin: 0 0 0.3rem;
}

.imprint-details p {
    font-size: 0.95rem;
    color: #555;
    margin: 0;
    line-height: 1.5;
}

.imprint-details a {
    color: var(--color-accent-blue);
    text-decoration: none;
}

.imprint-details a:hover {
    text-decoration: underline;
}

/* Dark Disclaimer Card */
.imprint-card-dark {
    background-color: #151e2d;
    /* Dark blue from footer/contact */
    color: #ffffff;
    padding: 4rem 3rem;
}

.imprint-card-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
}

.imprint-card-header .dashicons {
    font-size: 32px;
    width: 32px;
    height: 32px;
    color: rgba(255, 255, 255, 0.6);
}

.imprint-card-title-dark {
    color: #ffffff;
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0;
}

.imprint-item-dark {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.imprint-icon-dark {
    color: var(--color-accent-blue);
    flex-shrink: 0;
    margin-top: 2px;
}

.imprint-icon-dark .dashicons {
    font-size: 24px;
    width: 24px;
    height: 24px;
}

.imprint-details-dark h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 0.8rem;
}

.imprint-details-dark p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    line-height: 1.6;
}

.imprint-footer-note {
    text-align: center;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.4);
    margin-top: 3rem;
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .imprint-title {
        font-size: 2.2rem;
    }

    .imprint-card,
    .imprint-card-dark {
        padding: 2rem 1.5rem;
    }

    .imprint-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* =========================
   User Request: Lato Bold Headings
   ========================= */
.services-title,
.service-card-title,
.public-value-title,
.pv-section-title,
.pv-card-title,
.references-title,
.references-subtitle,
.career-title,
.career-card-title,
.blog-title,
.imprint-title,
.privacy-title {
    font-family: 'Lato', sans-serif !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
}

/* =========================
   User Request: Increase spacing on References page
   ========================= */
.references-logos-section {
    padding-top: 8rem !important;
    /* Increase space between blue header/intro and logos */
}


/* =========================
   References Page Restructure Fixes
   ========================= */
.references-hero {
    background-color: var(--color-primary-dark);
    color: #fff;
    padding: 4rem 0;
    /* Reduced further from 5rem */
    text-align: center;
}

.references-hero .references-title {
    color: #fff !important;
    margin-bottom: 1.5rem;
    font-style: normal !important;
}

.references-hero .references-intro {
    color: rgba(255, 255, 255, 0.9);
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.6;
}

.references-content-section {
    background-color: #fff;
    padding-top: 30rem !important;
    /* Increased to 30rem */
    padding-bottom: 4rem;
}

/* Ensure logos section doesn't add extra top padding that might confuse things */
.references-logos-section {
    padding-top: 0 !important;
}


/* =========================
   User Request: Header Unification
   ========================= */

/* 1. Lato Bold for all project titles */
.project-hero .project-title,
.property-hero-title {
    font-family: 'Lato', sans-serif !important;
    font-weight: 700 !important;
}

/* 2. Dark overlay (black transparency) for project hero */
.project-hero-overlay {
    background: rgba(0, 0, 0, 0.6) !important;
    /* Overriding previous blue gradient */
}

/* Ensure no blue background on text itself */
.project-title,
.project-subtitle {
    background: none !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    /* Add shadow for readability on dark overlay */
}

/* =========================
   Typography Overrides (Global Standardization)
   ========================= */

/* 1. Standardize Section Titles (D1 Center Style - Lighter) */
.section-title {
    font-weight: 700 !important;
    /* Reduced from 800 to match D1 Center style */
}

/* 2. Standardize Page Hero Titles (OUR PROJECTS Style) */
.page-title,
.blog-title,
.references-title,
.public-value-title,
.services-title,
.project-title,
.hero-title,
.career-title {
    font-family: 'Lato', sans-serif !important;
    font-weight: 900 !important;
    /* Increased to 900 (Black) for maximum boldness */
    text-transform: uppercase !important;
    font-style: normal !important;
    color: #ffffff !important;
    /* Ensure size is consistent if needed, though individual pages might set specific sizes */
}

/* Specific override for Public Value & References which were Playfair/Italic */
.page-hero .public-value-title,
.page-hero .references-title {
    font-family: 'Lato', sans-serif !important;
    font-style: normal !important;
    font-weight: 900 !important;
    /* Increased to 900 */
    text-transform: uppercase !important;
}

/* Specific override for Services Title (Blue) */
.services-title {
    color: var(--color-primary-dark) !important;
}

/* Specific override for Career Title (Blue) */
.career-title {
    color: var(--color-primary-dark) !important;
}

/* Spacing overrides for References, Our Clients, and Projects titles */
.references-photos-section .section-title,
.references-gallery-section .section-title,
.projects-section .section-title {
    margin-bottom: 3rem !important;
}

/* Force identical section padding for these three sections */
.references-photos-section,
.references-gallery-section,
.projects-section {
    padding-block: 5rem !important;
}

/* Fix: Remove top padding from Our Clients to avoid double spacing (10rem gap) */
.references-gallery-section {
    padding-top: 0 !important;
}

/* Specific override for IPEC in Figures to match D1 Center style */
.figures-section .section-title {
    font-family: 'Lato', sans-serif !important;
    font-weight: 700 !important;
    /* Reverted to 700 to match other sections exactly */
    text-transform: uppercase !important;
    font-style: normal !important;
    color: var(--color-primary-dark) !important;
}

/* =========================
   Mobile Optimization
   ========================= */
@media (max-width: 768px) {

    /* Reduce section padding on mobile */
    .references-photos-section,
    .references-gallery-section,
    .projects-section {
        padding-block: 3rem !important;
    }

    /* Reduce title spacing on mobile */
    .references-photos-section .section-title,
    .references-gallery-section .section-title,
    .projects-section .section-title {
        margin-bottom: 2rem !important;
    }

    /* Reduce References Image margin on mobile */
    .references-section-image-wrapper {
        margin-bottom: 3rem !important;
    }

    /* Growth Section Mobile */
    .growth-content {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }

    .growth-map {
        order: -1;
        /* Show map above text on mobile */
    }
}

/* Fix: Missing contact icon circle styles */
.contact-icon-circle {
    width: 80px;
    height: 80px;
    background-color: var(--color-accent-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: #fff;
    font-size: 32px;
}

/* =========================
   Glossary Page
   ========================= */
.glossary-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.glossary-group {
    margin-bottom: 4rem;
    position: relative;
    padding-left: 60px;
    /* Space for the big letter */
}

.glossary-letter {
    position: absolute;
    left: 0;
    top: -5px;
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 700;
    color: var(--color-accent-blue);
    line-height: 1;
}

/* GridLayout for 3 Columns */
.glossary-items {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

/* Mobile Fallback */
@media (max-width: 900px) {
    .glossary-items {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .glossary-items {
        grid-template-columns: 1fr;
    }
}

.glossary-item {
    margin-bottom: 0;
    /* Reset since grid handles gap */
    background: linear-gradient(135deg, #ffffff 0%, #fcfcfc 100%);
    padding: 1.5rem;
    /* Reduced padding for compact look */
    border-radius: 8px;
    /* Slightly smaller radius */
    border-top: 3px solid var(--color-accent-blue);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
    height: 100%;
    /* Equal height cards */
}

/* ... keep beforepseudo/hover logic ... */
.glossary-item::before {
    /* ... same decorative ... */
    content: '';
    position: absolute;
    top: -20px;
    right: -20px;
    width: 50px;
    height: 50px;
    /* ... */
    background: var(--color-accent-blue);
    opacity: 0.03;
    border-radius: 50%;
    transform: scale(0);
    transition: transform 0.4s ease;
}

.glossary-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.glossary-item:hover::before {
    transform: scale(20);
}

.glossary-term {
    margin-top: 0;
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
    /* Smaller font as requested */
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-primary-dark);
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 0.6rem;
}

/* Glossary A-Z Navigation */
.glossary-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.2rem;
    /* Reduced from 0.5rem */
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #eee;
}

.glossary-nav-link {
    display: inline-block;
    padding: 0.5rem 0.5rem;
    /* Reduced horizontal padding */
    font-weight: 700;
    text-decoration: none;
    color: var(--color-text-muted);
    border-radius: 4px;
    transition: all 0.2s ease;
    min-width: 32px;
    /* Reduced from 40px */
    text-align: center;
}

.glossary-nav-link.active {
    color: var(--color-primary);
    background-color: #eef2f7;
    cursor: pointer;
}

.glossary-nav-link.active:hover {
    background-color: var(--color-primary);
    color: #fff;
    transform: translateY(-2px);
}

.glossary-nav-link.disabled {
    opacity: 0.3;
    pointer-events: none;
    cursor: default;
}

.glossary-definition p {
    margin-bottom: 0;
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--color-text);
}

/* Mobile Tweak for Glossary */
@media (max-width: 768px) {
    .glossary-group {
        padding-left: 0;
    }

    .glossary-letter {
        position: relative;
        font-size: 2rem;
        margin-bottom: 1rem;
        display: block;
        padding-bottom: 0.5rem;
        border-bottom: 1px solid #ddd;
    }
}

.contact-icon-circle .dashicons {
    font-size: 32px;
    width: 32px;
    height: 32px;
}

/* =========================
   Single Blog Post Beautification
   ========================= */

/* Hero Section */
.single-post-hero {
    position: relative;
    height: 60vh;
    min-height: 400px;
    max-height: 600px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #ffffff;
    margin-bottom: 4rem;
}

.single-hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    z-index: 1;
}

.single-hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    /* Dark overlay for readability */
    z-index: 2;
}

.single-hero-content {
    position: relative;
    z-index: 3;
    width: 100%;
    max-width: 900px;
}

/* Back Link */
.back-to-blog {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 2rem;
    text-decoration: none;
    transition: color 0.2s ease;
}

.back-to-blog:hover {
    color: #ffffff;
    text-decoration: none;
}

.back-to-blog .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

/* Title & Meta */
.single-post-title {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    font-weight: 700;
    /* Lato Bold */
    line-height: 1.2;
    margin: 0 0 1.5rem;
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.single-post-meta {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 400;
}

/* Content Container */
.single-post-content-container {
    max-width: 800px;
    /* Narrower for readability */
    margin: 0 auto;
    padding-bottom: 5rem;
}

.single-post-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--color-text);
}

.single-post-content p {
    margin-bottom: 1.5rem;
}

.single-post-content h2 {
    font-size: 1.8rem;
    color: var(--color-primary-dark);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.single-post-content h3 {
    font-size: 1.5rem;
    color: var(--color-primary-dark);
    margin-top: 2rem;
    margin-bottom: 0.8rem;
    font-weight: 600;
}

.single-post-content blockquote {
    border-left: 4px solid var(--color-accent-blue);
    margin: 2rem 0;
    padding: 1rem 1.5rem;
    background: #f8f9fa;
    font-style: italic;
    color: #555;
}

.single-post-content img {
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    margin: 2rem 0;
}

/* Footer Navigation */
.single-post-footer {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid #eee;
}

.nav-links {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
}

.nav-previous,
.nav-next {
    flex: 1;
    max-width: 50%;
}

.nav-next {
    text-align: right;
}

.nav-links a {
    text-decoration: none;
    display: block;
    padding: 1rem;
    border-radius: var(--radius-sm);
    transition: background 0.2s ease;
}

.nav-links a:hover {
    background: #f8f9fa;
}

.meta-nav {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text-muted);
    margin-bottom: 0.3rem;
    font-weight: 700;
}

.post-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-primary-dark);
    line-height: 1.4;
}

@media (max-width: 768px) {
    .single-post-hero {
        height: 50vh;
        min-height: 350px;
    }

    .single-post-title {
        font-size: 2rem;
    }

    .nav-links {
        flex-direction: column;
    }

    .nav-previous,
    .nav-next {
        max-width: 100%;
        text-align: center;
    }
}

/* =========================
   GTranslate Custom Styling
   ========================= */

/* Wrapper to position it correctly in header */
.lang-switch-wrapper {
    position: relative;
    z-index: 1001;
    margin-right: 1rem;
}

/* Force the GTranslate selector to look like our custom button */
.lang-switch-wrapper .gtranslate_wrapper {
    line-height: 1 !important;
}

/* Target the dropdown/selector itself (for standard dropdown) */
.lang-switch-wrapper select.gt_selector {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background: var(--color-primary);
    /* IPEC Blue */
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 999px;
    padding: 0.3rem 1.8rem 0.3rem 0.8rem;
    /* Smaller padding */
    color: #fff;
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 0.85rem;
    /* Smaller font */
    cursor: pointer;
    outline: none;
    transition: all 0.2s ease;
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23FFFFFF%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-position: right 0.6rem top 50%;
    background-size: 0.6rem auto;
}

.lang-switch-wrapper select.gt_selector:hover {
    background-color: var(--color-primary-dark);
    border-color: rgba(255, 255, 255, 0.6);
}

/* "Nice Dropdown" Styling */
.gt_switcher {
    background: transparent !important;
    border: none !important;
    position: relative;
    /* Ensure dropdown positions relative to this */
}

.gt_switcher .gt_selected {
    background: var(--color-primary) !important;
    /* IPEC Blue */
    color: #fff !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    border-radius: 999px !important;
    padding: 0.3rem 0.6rem !important;
    /* Smaller padding */
    font-size: 0.85rem !important;
    /* Smaller font */
    transition: all 0.2s ease !important;
}

.gt_switcher .gt_selected:hover {
    background: var(--color-primary-dark) !important;
    border-color: rgba(255, 255, 255, 0.6) !important;
}

.gt_switcher .gt_selected a {
    color: #fff !important;
}

/* Dropdown Menu Styling */
.gt_switcher .gt_option {
    background: #fff !important;
    color: #333 !important;
    border-radius: 4px !important;
    margin-top: 5px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;

    /* FORCE DOWNWARD DIRECTION */
    top: 100% !important;
    bottom: auto !important;
    left: 0 !important;
    /* Align left or right as needed */
    z-index: 9999 !important;
}

.gt_switcher .gt_option a {
    color: #333 !important;
    font-size: 0.85rem !important;
    padding: 0.4rem 0.8rem !important;
}

.gt_switcher .gt_option a:hover {
    background: #f4f4f4 !important;
    color: var(--color-primary) !important;
}

/* Hide flags if they look ugly/pixelated, or keep them if they are SVG */
.gt_switcher img {
    border-radius: 2px;
    vertical-align: middle;
    margin-right: 4px;
}

/* Force Lato for Single Post Title */
.single-post-title {
    font-family: 'Lato', sans-serif !important;
}

/* Auto-Linked Glossary Terms */
.glossary-auto-link {
    color: inherit;
    /* Keep text color */
    text-decoration: none;
    border-bottom: 1px dotted var(--color-accent-blue);
    /* Subtle indicator */
    cursor: help;
    /* Indicates a definition */
    transition: all 0.2s ease;
}

.glossary-auto-link:hover {
    color: var(--color-accent-blue);
    background-color: rgba(0, 123, 255, 0.1);
    border-bottom: 1px solid var(--color-accent-blue);
}

.glossary-term a:hover {
    color: var(--color-accent-blue) !important;
}

/* Single Glossary Page Design */

/* Hero Section */
.glossary-single-header {
    background-color: var(--color-primary);
    padding: 100px 0 60px;
    text-align: center;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.glossary-single-header::after {
    /* Subtle texture pattern overlay */
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 20px 20px;
    opacity: 0.3;
    pointer-events: none;
}

.glossary-single-header .page-title {
    margin-bottom: 0.5rem;
    font-size: 3rem;
    font-weight: 700;
    position: relative;
    z-index: 1;
}

.glossary-single-header .page-subtitle {
    opacity: 0.9;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    z-index: 1;
}

/* Container & Back Link */
.glossary-single-container {
    max-width: 900px;
    position: relative;
    /* Context for absolute positioning if needed */
}

.glossary-nav-top {
    margin-bottom: 2rem;
}

.back-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    color: var(--color-text-muted);
    font-weight: 600;
    font-size: 1rem;
    transition: color 0.2s ease, transform 0.2s ease;
}

.back-link .icon {
    font-size: 1.2rem;
    margin-right: 0.5rem;
    transition: transform 0.2s ease;
}

.back-link:hover {
    color: var(--color-accent-blue);
    transform: translateX(-5px);
}

.back-link:hover .icon {
    transform: translateX(-3px);
}

/* Article Content */
.glossary-article {
    margin-bottom: 3rem;
}

.glossary-card-detail {
    background: #fff;
    padding: 4rem;
    /* Generous padding */
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.05);
    /* Soft, deep shadow */
    border-top: 5px solid var(--color-accent-blue);
    position: relative;
}

/* Mobile responsive padding */
@media (max-width: 768px) {
    .glossary-card-detail {
        padding: 2rem;
    }
}

.glossary-card-detail .entry-content {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--color-text);
}

/* Post Navigation (Prev/Next) */
.glossary-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 4rem;
    border-top: 1px solid #eee;
    padding-top: 2rem;
}

.glossary-navigation a {
    text-decoration: none;
    color: var(--color-primary);
    font-weight: 700;
    font-size: 1.1rem;
    display: flex;
    flex-direction: column;
    transition: color 0.2s;
}

.glossary-navigation a:hover {
    color: var(--color-accent-blue);
}

.glossary-navigation .nav-label {
    font-size: 0.85rem;
    color: #999;
    font-weight: 400;
    margin-bottom: 0.3rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.glossary-navigation .nav-previous {
    text-align: left;
}

.glossary-navigation .nav-next {
    text-align: right;
}

/* Glossary Archive Design */

/* Archive Hero (Matches Single Page Premium Look) */
/* =========================
   Glossary Archive - Clean Minimal Design
   ========================= */

.glossary-archive {
    padding: 80px 0 100px;
    background-color: var(--color-white);
}

.glossary-title {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    font-weight: 700;
    color: var(--color-text);
    margin: 0 0 30px 0;
    font-family: 'Lato', sans-serif;
}

/* A-Z Navigation */
.glossary-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 50px;
}

.glossary-nav-letter {
    font-size: 0.85rem;
    font-weight: 600;
    padding: 4px 8px;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.glossary-nav-letter.active {
    color: var(--color-text);
    background: rgba(0, 0, 0, 0.04);
}

.glossary-nav-letter.active:hover {
    color: var(--color-primary);
    background: rgba(0, 119, 200, 0.1);
}

.glossary-nav-letter.disabled {
    color: #ccc;
    cursor: default;
}

/* Each letter row: Letter + Terms Grid */
.glossary-list {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.glossary-row {
    display: flex;
    align-items: flex-start;
    gap: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.glossary-row:last-child {
    border-bottom: none;
}

/* The letter on the left */
.glossary-letter,
.glossary-letter-box {
    font-size: 1.5rem;
    font-weight: 700;
    color: #000 !important;
    min-width: 50px;
    flex-shrink: 0;
    line-height: 1.4;
    font-family: 'Lato', sans-serif;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Terms in multi-column grid */
.glossary-terms {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px 20px;
}

/* Individual term link */
.glossary-term-link {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-text);
    text-decoration: none;
    line-height: 1.6;
    letter-spacing: 0.01em;
    transition: color 0.2s ease;
}

.glossary-term-link:hover {
    color: var(--color-primary);
    text-decoration: none;
}

/* Empty state */
.glossary-empty {
    text-align: center;
    color: #999;
    padding: 60px 0;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .glossary-terms {
        grid-template-columns: repeat(5, 1fr);
    }
}

@media (max-width: 900px) {
    .glossary-terms {
        grid-template-columns: repeat(4, 1fr);
    }

    .glossary-row {
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .glossary-archive {
        padding: 50px 0 60px;
    }

    .glossary-title {
        margin-bottom: 40px;
    }

    .glossary-row {
        flex-direction: column;
        gap: 15px;
    }

    .glossary-letter {
        font-size: 2rem;
    }

    .glossary-terms {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 480px) {
    .glossary-terms {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* =========================
   About Us Page
   ========================= */

.about-hero {
    background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary));
    padding: 5rem 0 4rem;
    text-align: center;
    color: var(--color-white);
}

.about-title {
    font-size: clamp(2.2rem, 4vw, 3.2rem);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.about-hero .page-subtitle {
    font-size: 1.15rem;
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto;
}

.about-intro-section {
    background: var(--color-white);
}

.about-intro-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-intro-text {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--color-text);
}

/* Stats Grid */
.about-stats-section {
    background: var(--color-bg);
}

.about-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 2.5rem;
}

.about-stat-card {
    background: var(--color-white);
    border-radius: var(--radius-md);
    padding: 2rem 1.5rem;
    text-align: center;
    box-shadow: var(--shadow-soft);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.about-stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-strong);
}

.about-stat-number {
    font-size: clamp(2rem, 3vw, 2.8rem);
    font-weight: 900;
    color: var(--color-accent-blue);
    line-height: 1.1;
    margin-bottom: 0.5rem;
}

.about-stat-label {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-text);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* History Section */
.about-history-section {
    background: var(--color-white);
}

.about-history-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-history-title {
    font-size: clamp(1.8rem, 2.5vw, 2.2rem);
    color: var(--color-primary-dark);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}

.about-history-text p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--color-text);
    margin-bottom: 1rem;
}

.about-history-image img {
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-strong);
}

/* Location Section */
.about-location-section {
    background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary));
    color: var(--color-white);
}

.about-location-box {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-location-title {
    font-size: clamp(1.8rem, 2.5vw, 2.2rem);
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.about-location-box>p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

.about-contact-info {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin-top: 1.5rem;
}

.about-contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
}

.about-contact-item .dashicons {
    font-size: 1.2rem;
    opacity: 0.8;
}

.about-contact-item a {
    color: var(--color-white);
    text-decoration: none;
    transition: opacity 0.2s;
}

.about-contact-item a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

/* About Page Responsive */
@media (max-width: 992px) {
    .about-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-history-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-history-image {
        order: -1;
    }
}

@media (max-width: 600px) {
    .about-stats-grid {
        grid-template-columns: 1fr;
    }

    .about-contact-info {
        flex-direction: column;
        gap: 1rem;
    }
}

/* =========================
   Clickable Project Cards
   ========================= */

.project-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

.project-card-link:hover {
    text-decoration: none;
}

.project-card-link:hover .project-card-image img {
    transform: scale(1.05);
}

.project-card-link:hover .btn-project-view {
    background: var(--color-accent-blue);
    color: #fff;
}

.project-card-item {
    height: 100%;
}