/**
 * Judod Real Estate — Single Project Page Stylesheet
 * Ultra-Luxury Design with Judod Brand Tokens (Rich Plum & Champagne Gold)
 * Zero Dependencies | Ultra-Fast Performance | 100% RTL Native
 */

:root {
    --brand-primary: #0F2742;
    --brand-primary-dark: #0A1B2E;
    --brand-primary-light: #EBF0F6;
    --brand-accent: #C9A45C;
    --brand-accent-light: #F9F5EC;
    --brand-accent-dark: #A37F38;
    --brand-secondary: #E7E9EC;
    --brand-text: #1D2733;
    --brand-slate: #536273;
    --brand-dark: #1D2733;
    --brand-bg: #F8F7F4;
    --brand-container: #ffffff;
    --brand-line: #E7E9EC;
    --brand-radius-sm: 10px;
    --brand-radius-md: 16px;
    --brand-radius-lg: 24px;
    --brand-radius-xl: 32px;

    /* Compatibility aliases */
    --brand-plum: #0F2742;
    --brand-plum-dark: #0A1B2E;
    --brand-plum-light: #EBF0F6;
    --brand-gold: #C9A45C;
    --brand-gold-light: #F9F5EC;
}

html,
body.single-projects {
    font-family: 'Cairo', sans-serif !important;
    background-color: var(--brand-bg);
    color: var(--brand-dark);
    line-height: 1.6;
    overflow-x: hidden !important;
    max-width: 100% !important;
}

body.single-projects .site-main,
body.single-project .site-main,
.single-project-judod {
    margin-top: 96px !important;
    padding-top: 24px !important;
    padding-bottom: 40px;
    overflow-x: hidden;
}

/* WordPress Admin Bar Compatibility */
body.admin-bar.single-projects .site-main,
body.admin-bar.single-project .site-main,
body.admin-bar .single-project-judod {
    margin-top: 130px !important;
    padding-top: 24px !important;
}

@media screen and (max-width: 782px) {
    body.single-projects .site-main,
    body.single-project .site-main,
    .single-project-judod {
        margin-top: 86px !important;
        padding-top: 18px !important;
    }
    body.admin-bar.single-projects .site-main,
    body.admin-bar.single-project .site-main,
    body.admin-bar .single-project-judod {
        margin-top: 140px !important;
        padding-top: 18px !important;
    }
}

@media (max-width: 640px) {
    body.single-projects .site-main,
    body.single-project .site-main,
    .single-project-judod {
        padding-bottom: 80px !important;
    }
}

/* ── Container ── */
.judod-container {
    width: min(1280px, calc(100% - 32px));
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
}

@media (max-width: 640px) {
    .judod-container {
        width: calc(100% - 24px);
    }
}

/* ── Breadcrumbs ── */
.judod-breadcrumbs {
    display: flex;
    justify-content: flex-start;
    margin-bottom: 24px;
}

.judod-breadcrumbs ol {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    background: #ffffff;
    padding: 10px 18px;
    border-radius: var(--brand-radius-md);
    border: 1px solid var(--brand-plum-light);
    box-shadow: 0 10px 30px -10px rgba(15, 39, 66, 0.05);
    margin: 0;
    list-style: none;
    font-size: 0.82rem;
    font-weight: 600;
}

.judod-breadcrumbs li {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--brand-slate);
}

.judod-breadcrumbs a {
    color: var(--brand-dark);
    text-decoration: none;
    transition: color 0.2s ease;
}

.judod-breadcrumbs a:hover {
    color: var(--brand-gold);
}

.judod-breadcrumbs .sep {
    font-size: 0.65rem;
    color: var(--brand-slate);
    opacity: 0.6;
    margin: 0 2px;
}

.judod-breadcrumbs .current {
    color: var(--brand-plum);
    font-weight: 800;
}

/* ══════════════════════════════════════════════════
   1. MAKAN LUXURY TOP BAR & STATUS
   ══════════════════════════════════════════════════ */
.makan-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(15, 39, 66, 0.06);
}

.makan-top-status {
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.25);
    color: #059669;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.makan-live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 8px #10b981;
    animation: makanPulse 2s infinite ease-in-out;
}

/* ══════════════════════════════════════════════════
   2. MAKAN LUXURY PROJECT HEADER
   ══════════════════════════════════════════════════ */
.makan-project-header {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 24px;
}

@media (min-width: 1024px) {
    .makan-project-header {
        flex-direction: row;
        align-items: flex-end;
        justify-content: space-between;
    }
}

.makan-header-main {
    flex: 1;
}

.makan-header-tagline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #FDF9EE;
    border: 1px solid rgba(201, 164, 92, 0.35);
    color: #9E7428;
    font-size: 0.78rem;
    font-weight: 800;
    padding: 4px 14px;
    border-radius: 999px;
    margin-bottom: 10px;
}

.makan-project-title {
    font-size: clamp(1.6rem, 3.2vw, 2.5rem);
    font-weight: 900;
    color: var(--primary-color, #0F2742);
    line-height: 1.25;
    margin: 0 0 12px;
    letter-spacing: -0.01em;
}

.makan-header-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.makan-meta-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: #ffffff;
    border: 1px solid #E7E9EC;
    color: #536273;
    padding: 6px 14px;
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease;
}

.makan-meta-chip:hover {
    border-color: #C9A45C;
    color: #0F2742;
    transform: translateY(-1px);
}

.makan-meta-chip i {
    color: #C9A45C;
    font-size: 0.85rem;
}

.makan-meta-chip strong {
    color: #0F2742;
    font-weight: 800;
}

.makan-header-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

@media (max-width: 640px) {
    .makan-header-actions {
        width: 100%;
        gap: 8px;
    }
}

.makan-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 18px;
    background: #ffffff;
    border: 1px solid #E7E9EC;
    border-radius: 12px;
    color: #0F2742;
    font-size: 0.84rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 2px 8px rgba(15, 39, 66, 0.04);
    font-family: inherit;
    text-decoration: none;
    white-space: nowrap;
}

@media (max-width: 640px) {
    .makan-action-btn {
        flex: 1 1 calc(50% - 8px);
        padding: 10px 12px;
        font-size: 0.8rem;
    }
    .makan-action-btn--gold {
        flex: 1 1 100%;
    }
}

.makan-action-btn:hover {
    border-color: #0F2742;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(15, 39, 66, 0.08);
}

.makan-action-btn--pdf {
    background: #FDF9EE;
    border-color: rgba(201, 164, 92, 0.4);
    color: #9E7428;
}

.makan-action-btn--pdf:hover {
    background: #F8F1DC;
    border-color: #C9A45C;
    color: #7E5B18;
}

.makan-action-btn--pdf i {
    color: #dc2626;
}

.makan-action-btn--gold {
    background: linear-gradient(135deg, #0F2742 0%, #153354 100%);
    border: 1px solid #0F2742;
    color: #ffffff;
}

.makan-action-btn--gold:hover {
    background: linear-gradient(135deg, #C9A45C 0%, #A37F38 100%);
    border-color: #C9A45C;
    color: #0F2742;
}

.makan-action-btn--gold i {
    color: #C9A45C;
}

.makan-action-btn--gold:hover i {
    color: #0F2742;
}

/* ── Luxury Multi-Card Carousel Gallery Slider (Desktop, Tablet & Mobile) ── */
.makan-carousel-gallery {
    position: relative;
    margin-bottom: 28px;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    border-radius: 22px;
}

.makan-carousel-stage {
    position: relative;
    width: 100%;
    max-width: 100%;
}

/* Floating Circular Navigation Arrows (Positioned INSIDE the cards, zero page overflow) */
.makan-carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #ffffff;
    color: #0F2742;
    border: 1px solid rgba(15, 39, 66, 0.08);
    box-shadow: 0 4px 18px rgba(15, 39, 66, 0.22);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    cursor: pointer;
    z-index: 25;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    outline: none;
}

.makan-carousel-arrow:hover {
    background: #0F2742;
    color: #C89A3F;
    border-color: #0F2742;
    box-shadow: 0 8px 24px rgba(15, 39, 66, 0.32);
    transform: translateY(-50%) scale(1.08);
}

.makan-carousel-arrow:active {
    transform: translateY(-50%) scale(0.95);
}

/* RTL Insets: Prev on Right, Next on Left (Floating INSIDE cards, zero page overflow) */
.makan-carousel-arrow--prev {
    right: 16px;
    left: auto;
}

.makan-carousel-arrow--next {
    left: 16px;
    right: auto;
}

html[dir="ltr"] .makan-carousel-arrow--prev {
    left: 16px;
    right: auto;
}

html[dir="ltr"] .makan-carousel-arrow--next {
    right: 16px;
    left: auto;
}

/* Carousel Track (Smooth Horizontal Scroll Snap) */
.makan-carousel-track {
    display: flex;
    gap: 16px;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 0 0 2px 0;
    touch-action: pan-x pan-y;
    overscroll-behavior-x: contain;
}

.makan-carousel-track::-webkit-scrollbar {
    display: none;
}

/* Slide Items: Desktop Default (3 Cards) */
.makan-carousel-slide {
    flex: 0 0 calc((100% - 32px) / 3);
    min-width: 0;
    scroll-snap-align: start;
    user-select: none;
    cursor: pointer;
}

/* Count Overrides for 1 or 2 images */
.makan-carousel--count-1 .makan-carousel-slide {
    flex: 0 0 100%;
}
.makan-carousel--count-2 .makan-carousel-slide {
    flex: 0 0 calc((100% - 16px) / 2);
}

/* Tablet (768px - 1024px): 2 Cards */
@media (max-width: 1024px) and (min-width: 768px) {
    .makan-carousel-slide {
        flex: 0 0 calc((100% - 16px) / 2);
    }
}

/* Mobile (< 768px): 1 Card + 15% Peek */
@media (max-width: 767px) {
    .makan-carousel-gallery {
        margin-bottom: 20px;
        border-radius: 18px;
    }
    .makan-carousel-track {
        gap: 12px;
    }
    .makan-carousel-slide {
        flex: 0 0 85%;
        scroll-snap-align: start;
    }
    .makan-carousel--count-1 .makan-carousel-slide {
        flex: 0 0 100%;
    }
    .makan-carousel-arrow {
        width: 38px;
        height: 38px;
        font-size: 0.9rem;
    }
    .makan-carousel-arrow--prev {
        right: 10px;
        left: auto;
    }
    .makan-carousel-arrow--next {
        left: 10px;
        right: auto;
    }
    html[dir="ltr"] .makan-carousel-arrow--prev {
        left: 10px;
        right: auto;
    }
    html[dir="ltr"] .makan-carousel-arrow--next {
        right: 10px;
        left: auto;
    }
}

/* Card Container with Rounded Corners (20px) */
.makan-carousel-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    background: #0F2742;
    height: 360px;
    width: 100%;
    box-shadow: 0 6px 20px -6px rgba(15, 39, 66, 0.12);
    border: 1px solid rgba(15, 39, 66, 0.08);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease;
}

@media (max-width: 1023px) and (min-width: 768px) {
    .makan-carousel-card {
        height: 310px;
    }
}

@media (max-width: 767px) {
    .makan-carousel-card {
        height: 250px;
        border-radius: 16px;
    }
}

.makan-carousel-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 36px -8px rgba(15, 39, 66, 0.22);
}

.site-main .makan-carousel-card img,
.makan-carousel-card img {
    width: 100% !important;
    height: 100% !important;
    max-height: 100% !important;
    min-height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.makan-carousel-card:hover img {
    transform: scale(1.04);
}

/* Gradient Vignette & Overlay */
.makan-carousel-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 39, 66, 0.55) 0%, rgba(15, 39, 66, 0.1) 40%, transparent 70%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.makan-carousel-card:hover .makan-carousel-card__overlay {
    opacity: 1;
}

.makan-carousel-card__zoom-pill {
    background: rgba(15, 39, 66, 0.88);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #ffffff;
    border: 1px solid rgba(200, 154, 63, 0.6);
    padding: 8px 18px;
    border-radius: 9999px;
    font-size: 0.82rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    transform: translateY(10px);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.makan-carousel-card:hover .makan-carousel-card__zoom-pill {
    transform: translateY(0);
}

.makan-carousel-card__zoom-pill i {
    color: var(--brand-gold, #C89A3F);
}

.makan-carousel-card__tag {
    position: absolute;
    top: 14px;
    right: 14px;
    background: rgba(15, 39, 66, 0.88);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #ffffff;
    border: 1px solid rgba(200, 154, 63, 0.5);
    padding: 6px 14px;
    border-radius: 12px;
    font-size: 0.74rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    z-index: 5;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

.makan-carousel-card__tag i {
    color: var(--brand-gold, #C89A3F);
}

/* Bottom Bar: Counter & All Photos CTA */
.makan-carousel-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 12px;
    padding: 0 4px;
    gap: 16px;
    flex-wrap: wrap;
}

.makan-carousel-counter {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 9999px;
    padding: 6px 16px;
    font-size: 0.82rem;
    font-weight: 800;
    color: #0F2742;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 8px rgba(15, 39, 66, 0.04);
}

.makan-carousel-counter i {
    color: var(--brand-gold, #C89A3F);
}

.makan-carousel-counter strong {
    color: var(--brand-gold, #C89A3F);
}

.makan-carousel-view-all {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    color: #0F2742;
    padding: 7px 18px;
    border-radius: 9999px;
    font-size: 0.82rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 2px 8px rgba(15, 39, 66, 0.04);
}

.makan-carousel-view-all:hover {
    background: #0F2742;
    color: #ffffff;
    border-color: #0F2742;
    box-shadow: 0 6px 20px rgba(15, 39, 66, 0.16);
    transform: translateY(-2px);
}

.makan-carousel-view-all i {
    color: var(--brand-gold, #C89A3F);
}

/* ══════════════════════════════════════════════════
   3. MAKAN LUXURY QUICK SPECS STRIP (6 METRIC CHIPS)
   ══════════════════════════════════════════════════ */
.makan-specs-bar {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin-bottom: 36px;
}

@media (min-width: 640px) {
    .makan-specs-bar {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1024px) {
    .makan-specs-bar {
        grid-template-columns: repeat(6, 1fr);
        gap: 16px;
    }
}

@media (max-width: 480px) {
    .makan-specs-bar {
        gap: 8px;
        margin-bottom: 24px;
    }
}

@media (max-width: 340px) {
    .makan-specs-bar {
        grid-template-columns: 1fr;
    }
}

.makan-spec-chip {
    background: #ffffff;
    border: 1px solid #E7E9EC;
    border-radius: 16px;
    padding: 18px 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    box-shadow: 0 4px 14px rgba(15, 39, 66, 0.03);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    position: relative;
    overflow: hidden;
}

.makan-spec-chip:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(15, 39, 66, 0.08);
    border-color: #C9A45C;
}

.makan-spec-chip--featured {
    border-color: rgba(201, 164, 92, 0.5);
    background: linear-gradient(180deg, #FFFFFF 0%, #FDFBF7 100%);
}

.makan-spec-chip__icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.makan-spec-chip__icon--gold {
    background: linear-gradient(135deg, #FDF9EE 0%, #F5ECDA 100%);
    color: #9E7428;
    border: 1px solid rgba(201, 164, 92, 0.3);
}

.makan-spec-chip__icon--navy {
    background: linear-gradient(135deg, #EBF0F6 0%, #DFE7F0 100%);
    color: #0F2742;
    border: 1px solid rgba(15, 39, 66, 0.12);
}

.makan-spec-chip__content {
    display: flex;
    flex-direction: column;
}

.makan-spec-chip__label {
    font-size: 0.74rem;
    font-weight: 700;
    color: #536273;
    margin-bottom: 4px;
}

.makan-spec-chip__val {
    font-size: 1.05rem;
    font-weight: 900;
    color: #0F2742;
    line-height: 1.25;
}

.makan-spec-chip--featured .makan-spec-chip__val {
    color: #9E7428;
}

.makan-spec-chip__curr {
    font-size: 0.78rem;
    font-weight: 800;
    color: #536273;
    margin-inline-start: 2px;
}

.makan-spec-chip__hint {
    font-size: 0.68rem;
    color: #8A98A8;
    margin-top: 4px;
    line-height: 1.3;
}

/* ── Split Layout: Main Content (70%) + Sticky Sidebar (30%) ── */
.judod-main-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    align-items: flex-start;
}

@media (min-width: 1024px) {
    .judod-main-grid {
        grid-template-columns: minmax(0, 1fr) 360px;
    }
}

.judod-content-col {
    display: flex;
    flex-direction: column;
    gap: 32px;
    min-width: 0;
    width: 100%;
}

.judod-sidebar-col {
    min-width: 0;
    width: 100%;
}

/* ── Shared Card Design ── */
.judod-card {
    background: #ffffff;
    border: 1px solid var(--brand-plum-light);
    border-radius: var(--brand-radius-xl);
    padding: 20px 16px;
    box-shadow: 0 10px 30px -10px rgba(15, 39, 66, 0.05);
}

@media (min-width: 640px) {
    .judod-card {
        padding: 32px;
    }
}

@media (max-width: 768px) {
    .judod-card {
        padding: 20px 16px;
        border-radius: 20px;
    }
}

.judod-card__title {
    font-size: clamp(1.15rem, 1.8vw, 1.55rem);
    font-weight: 900;
    color: var(--brand-plum-dark);
    margin: 0 0 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.judod-card__title-bar {
    width: 6px;
    height: 24px;
    background: var(--brand-plum);
    border-radius: 4px;
    flex-shrink: 0;
}

/* ── Smart Auto Table of Contents (Auto TOC) ── */
/* Suppress redundant plugin TOCs inside content */
.judod-prose .lwptoc,
.project-prose .lwptoc,
.judod-prose .ez-toc-container,
.project-prose .ez-toc-container,
.judod-prose #rank-math-toc,
.project-prose #rank-math-toc,
.judod-prose .aqari-toc,
.project-prose .aqari-toc,
.judod-prose .table-of-contents,
.project-prose .table-of-contents {
    display: none !important;
}

.project-toc {
    background: linear-gradient(135deg, var(--brand-plum-light) 0%, #ffffff 60%, var(--brand-gold-light) 100%);
    border: 1px solid var(--brand-plum-light);
    border-radius: var(--brand-radius-lg);
    padding: 16px 18px;
    margin-bottom: 24px;
    box-shadow: 0 8px 24px -6px rgba(15, 39, 66, 0.06);
    transition: all 0.3s ease;
}

@media (min-width: 640px) {
    .project-toc {
        padding: 20px 24px;
        margin-bottom: 32px;
    }
}

.project-toc__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    user-select: none;
}

.project-toc__title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.98rem;
    font-weight: 800;
    color: var(--brand-plum-dark);
    margin: 0;
}

.project-toc__title i {
    color: var(--brand-plum);
    font-size: 1rem;
}

.project-toc__toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    background: #ffffff;
    border: 1px solid var(--brand-plum-light);
    border-radius: 8px;
    font-size: 0.76rem;
    font-weight: 800;
    color: var(--brand-plum-dark);
    cursor: pointer;
    transition: all 0.2s ease;
}

.project-toc__toggle:hover {
    background: var(--brand-plum);
    color: #ffffff;
}

.project-toc__toggle i {
    transition: transform 0.3s ease;
}

.project-toc.is-collapsed .project-toc__toggle i {
    transform: rotate(180deg);
}

.project-toc__list-wrap {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(15, 39, 66, 0.1);
    transition: max-height 0.4s ease, opacity 0.3s ease;
    overflow: hidden;
}

.project-toc.is-collapsed .project-toc__list-wrap {
    display: none;
}

.project-toc__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.project-toc__item {
    font-size: 0.84rem;
    font-weight: 700;
    line-height: 1.5;
}

.project-toc__item a {
    color: var(--brand-dark);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: color 0.2s ease, transform 0.2s ease;
}

.project-toc__item a:hover {
    color: var(--brand-plum);
    transform: translateX(-4px);
}

html[dir="ltr"] .project-toc__item a:hover {
    transform: translateX(4px);
}

.project-toc__item a::before {
    content: "◆";
    color: var(--brand-gold);
    font-size: 0.65rem;
}

.project-toc__item--h3 {
    margin-inline-start: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.project-toc__item--h3 a {
    color: var(--brand-slate);
}

.project-toc__item--h3 a::before {
    content: "▫";
    color: var(--brand-plum);
}

/* ── Rich Article Editorial Typography (.judod-prose / .project-prose) ── */
.judod-prose,
.project-prose {
    color: var(--brand-slate);
    font-size: 0.95rem;
    line-height: 1.95;
    font-weight: 500;
    text-align: justify;
    word-break: break-word;
    overflow-wrap: break-word;
}

@media (max-width: 768px) {
    .judod-prose,
    .project-prose {
        text-align: right !important;
        font-size: 0.92rem;
        line-height: 1.85;
    }
}

.judod-prose p,
.project-prose p {
    margin-top: 0;
    margin-bottom: 20px;
}

.judod-prose strong,
.project-prose strong {
    color: var(--brand-dark);
    font-weight: 800;
}

/* Heading H2 */
.judod-prose h2,
.project-prose h2 {
    font-size: clamp(1.15rem, 1.8vw, 1.45rem);
    font-weight: 900;
    color: var(--brand-plum-dark);
    margin-top: 40px;
    margin-bottom: 18px;
    padding: 10px 16px;
    background: var(--brand-plum-light);
    border-radius: var(--brand-radius-md);
    border-inline-start: 6px solid var(--brand-plum);
    display: flex;
    align-items: center;
    line-height: 1.35;
    scroll-margin-top: 110px;
}

/* Heading H3 */
.judod-prose h3,
.project-prose h3 {
    font-size: clamp(1.02rem, 1.4vw, 1.22rem);
    font-weight: 800;
    color: var(--brand-dark);
    margin-top: 30px;
    margin-bottom: 14px;
    padding-inline-start: 12px;
    border-inline-start: 4px solid var(--brand-gold);
    line-height: 1.4;
    scroll-margin-top: 110px;
}

/* Heading H4 */
.judod-prose h4,
.project-prose h4 {
    font-size: 0.96rem;
    font-weight: 800;
    color: var(--brand-plum-dark);
    margin-top: 24px;
    margin-bottom: 10px;
}

/* Natural Content Lists (Standard Bullet & Numbered Lists) */
.judod-prose ul:not(.lwptoc_items):not(#project-toc-list),
.project-prose ul:not(.lwptoc_items):not(#project-toc-list) {
    margin: 16px 0 24px;
    padding: 0;
    padding-inline-start: 26px;
    list-style: disc outside;
    display: block;
}

.judod-prose ul:not(.lwptoc_items):not(#project-toc-list) > li,
.project-prose ul:not(.lwptoc_items):not(#project-toc-list) > li {
    display: list-item;
    position: static;
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    margin: 0 0 10px 0 !important;
    font-size: 1.02rem;
    line-height: 1.85;
    color: var(--brand-dark, #1D2733);
    box-shadow: none !important;
    transform: none !important;
    transition: none !important;
}

.judod-prose ul:not(.lwptoc_items):not(#project-toc-list) > li::before,
.project-prose ul:not(.lwptoc_items):not(#project-toc-list) > li::before {
    display: none !important;
    content: none !important;
}

.judod-prose ul:not(.lwptoc_items):not(#project-toc-list) > li:hover,
.project-prose ul:not(.lwptoc_items):not(#project-toc-list) > li:hover {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    transform: none !important;
}

/* Natural Ordered Lists */
.judod-prose ol:not(.lwptoc_items):not(#project-toc-list),
.project-prose ol:not(.lwptoc_items):not(#project-toc-list) {
    margin: 16px 0 24px;
    padding: 0;
    padding-inline-start: 26px;
    list-style: decimal outside;
    display: block;
}

.judod-prose ol:not(.lwptoc_items):not(#project-toc-list) > li,
.project-prose ol:not(.lwptoc_items):not(#project-toc-list) > li {
    display: list-item;
    position: static;
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    margin: 0 0 10px 0 !important;
    font-size: 1.02rem;
    line-height: 1.85;
    color: var(--brand-dark, #1D2733);
    box-shadow: none !important;
    transform: none !important;
    transition: none !important;
}

.judod-prose ol:not(.lwptoc_items):not(#project-toc-list) > li::before,
.project-prose ol:not(.lwptoc_items):not(#project-toc-list) > li::before {
    display: none !important;
    content: none !important;
}

.judod-prose ol:not(.lwptoc_items):not(#project-toc-list) > li:hover,
.project-prose ol:not(.lwptoc_items):not(#project-toc-list) > li:hover {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    transform: none !important;
}

/* Nested lists */
.judod-prose ul ul,
.judod-prose ol ol,
.judod-prose ul ol,
.judod-prose ol ul,
.project-prose ul ul,
.project-prose ol ol {
    margin: 6px 0 8px;
    padding-inline-start: 22px;
    list-style-type: circle;
}

.judod-prose ol ol,
.project-prose ol ol {
    list-style-type: lower-latin;
}

.judod-prose ul ul > li,
.project-prose ul ul > li,
.judod-prose ol ol > li,
.project-prose ol ol > li {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin-bottom: 6px !important;
    font-size: 0.98rem;
}

/* Styled Tables Inside Content */
.judod-prose table,
.project-prose table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    border-radius: var(--brand-radius-md);
    overflow: hidden;
    border: 1px solid var(--brand-plum-light);
    font-size: 0.86rem;
}

.judod-prose table th,
.project-prose table th {
    background: var(--brand-plum-light);
    color: var(--brand-plum-dark);
    padding: 14px 16px;
    font-weight: 800;
    text-align: right;
    border-bottom: 1px solid var(--brand-plum-light);
}

html[dir="ltr"] .judod-prose table th,
html[dir="ltr"] .project-prose table th {
    text-align: left;
}

.judod-prose table td,
.project-prose table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--brand-plum-light);
    color: var(--brand-dark);
    font-weight: 600;
}

.judod-prose table tr:hover td,
.project-prose table tr:hover td {
    background: rgba(246, 236, 243, 0.4);
}

/* Blockquotes & Callouts */
.judod-prose blockquote,
.project-prose blockquote {
    margin: 24px 0;
    padding: 18px 24px;
    background: linear-gradient(135deg, var(--brand-plum-light) 0%, #ffffff 100%);
    border-inline-start: 5px solid var(--brand-plum);
    border-radius: var(--brand-radius-md);
    font-style: italic;
    color: var(--brand-plum-dark);
    font-weight: 700;
}

/* Content Images & Figures */
.judod-prose img,
.project-prose img {
    max-width: 100%;
    height: auto;
    border-radius: var(--brand-radius-lg);
    box-shadow: 0 8px 24px rgba(15, 39, 66, 0.08);
    margin: 20px 0;
}

.judod-prose figure,
.project-prose figure {
    margin: 24px 0;
    text-align: center;
}

.judod-prose figcaption,
.project-prose figcaption {
    font-size: 0.78rem;
    color: var(--brand-slate);
    font-weight: 600;
    margin-top: 6px;
}

/* ── Related Projects Grid ── */
.judod-related-section {
    margin-top: 16px;
}

.judod-related-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 20px;
}

@media (min-width: 640px) {
    .judod-related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .judod-related-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.judod-related-card {
    background: #ffffff;
    border: 1px solid var(--brand-plum-light);
    border-radius: var(--brand-radius-lg);
    overflow: hidden;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 10px 24px -8px rgba(15, 39, 66, 0.06);
    display: flex;
    flex-direction: column;
    text-decoration: none !important;
}

.judod-related-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 36px -10px rgba(15, 39, 66, 0.15);
    border-color: var(--brand-plum);
}

.judod-related-card__thumb {
    position: relative;
    height: 170px;
    overflow: hidden;
}

.judod-related-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.judod-related-card:hover .judod-related-card__thumb img {
    transform: scale(1.06);
}

.judod-related-card__badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--brand-plum);
    color: #ffffff;
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 800;
}

.judod-related-card__body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.judod-related-card__title {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--brand-dark);
    margin: 0;
    line-height: 1.35;
}

.judod-related-card__location {
    font-size: 0.76rem;
    color: var(--brand-slate);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
}

.judod-related-card__price {
    font-size: 0.88rem;
    font-weight: 900;
    color: var(--brand-plum);
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px solid var(--brand-plum-light);
}

/* ── FAQ Accordion ── */
.judod-faq-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 16px;
}

.judod-faq-item {
    background: var(--brand-bg);
    border: 1px solid var(--brand-plum-light);
    border-radius: var(--brand-radius-lg);
    padding: 16px 20px;
    cursor: pointer;
}

.judod-faq-item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.88rem;
    font-weight: 800;
    color: var(--brand-dark);
    list-style: none;
}

.judod-faq-item summary::-webkit-details-marker {
    display: none;
}

.judod-faq-item summary i {
    color: var(--brand-plum);
    transition: transform 0.25s ease;
}

.judod-faq-item[open] summary i {
    transform: rotate(180deg);
}

.judod-faq-item p {
    margin: 12px 0 0;
    padding-top: 10px;
    border-top: 1px solid var(--brand-plum-light);
    font-size: 0.82rem;
    color: var(--brand-slate);
    line-height: 1.7;
    font-weight: 600;
}

/* ── Sticky Sidebar ── */
.judod-sidebar {
    position: sticky;
    top: 100px;
}

.judod-sidebar-card {
    background: #ffffff;
    border: 1px solid var(--brand-plum-light);
    border-radius: var(--brand-radius-xl);
    padding: 24px;
    box-shadow: 0 20px 40px -10px rgba(15, 39, 66, 0.08);
}

.judod-sidebar-broker {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--brand-plum-light);
    margin-bottom: 20px;
}

.judod-sidebar-broker__logo {
    width: 42px;
    height: 42px;
    border-radius: var(--brand-radius-md);
    background: var(--brand-plum);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: serif;
    font-weight: 800;
    font-size: 0.88rem;
}

.judod-sidebar-broker__text span {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--brand-slate);
}

.judod-sidebar-broker__text strong {
    display: block;
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--brand-plum-dark);
}

.judod-sidebar__cta-title {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--brand-plum-dark);
    margin: 0 0 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.judod-ping-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--brand-plum);
    display: inline-block;
    animation: ping 1.5s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes ping {
    75%, 100% { transform: scale(2); opacity: 0; }
}

.judod-form-group {
    margin-bottom: 14px;
}

.judod-form-group label {
    display: block;
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--brand-dark);
    margin-bottom: 4px;
}

.judod-form-input {
    width: 100%;
    padding: 10px 14px;
    background: var(--brand-bg);
    border: 1px solid var(--brand-plum-light);
    border-radius: var(--brand-radius-sm);
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--brand-dark);
    outline: none;
    font-family: inherit;
    transition: border-color 0.25s ease, background 0.25s ease;
}

.judod-form-input:focus {
    border-color: var(--brand-plum);
    background: #ffffff;
}

.judod-form-submit {
    width: 100%;
    padding: 12px;
    background: var(--brand-plum);
    color: #ffffff;
    border: none;
    border-radius: var(--brand-radius-sm);
    font-size: 0.85rem;
    font-weight: 800;
    cursor: pointer;
    transition: background 0.25s ease;
    font-family: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.judod-form-submit:hover {
    background: var(--brand-plum-dark);
}

.judod-sidebar-actions {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--brand-plum-light);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.judod-sidebar-btn {
    width: 100%;
    padding: 10px;
    border-radius: var(--brand-radius-sm);
    font-size: 0.8rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none !important;
    transition: all 0.25s ease;
}

.judod-sidebar-btn--wa {
    background: #10b981;
    color: #ffffff !important;
}

.judod-sidebar-btn--wa:hover {
    background: #059669;
}

.judod-sidebar-btn--call {
    background: var(--brand-plum-light);
    color: var(--brand-plum-dark) !important;
}

.judod-sidebar-btn--call:hover {
    background: var(--brand-plum);
    color: #ffffff !important;
}

/* ── Bottom Full-Width CTA Banner ── */
.judod-bottom-banner {
    background: radial-gradient(circle at 50% 30%, #0F2742 0%, #0A1B2E 100%);
    color: #ffffff;
    padding: 48px 20px;
    text-align: center;
    margin-top: 48px;
    border-top: 1px solid rgba(197, 160, 89, 0.25);
}

.judod-bottom-banner__tag {
    display: inline-block;
    background: rgba(197, 160, 89, 0.2);
    color: var(--brand-gold);
    border: 1px solid rgba(197, 160, 89, 0.3);
    padding: 4px 16px;
    border-radius: 100px;
    font-size: 0.78rem;
    font-weight: 800;
    margin-bottom: 14px;
}

.judod-bottom-banner h2 {
    font-size: clamp(1.3rem, 2.5vw, 2rem);
    font-weight: 900;
    margin: 0 0 10px;
    color: #ffffff;
}

.judod-bottom-banner p {
    font-size: 0.88rem;
    color: var(--brand-gold-light);
    max-width: 580px;
    margin: 0 auto 24px;
    font-weight: 500;
}

/* ── Floating Mobile Bar ── */
.judod-mobile-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--brand-plum-light);
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
}

@media (min-width: 640px) {
    .judod-mobile-bar {
        display: none;
    }
}

.judod-mobile-bar a,
.judod-mobile-bar button {
    flex: 1;
    padding: 10px;
    border-radius: var(--brand-radius-sm);
    font-size: 0.78rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-decoration: none !important;
    border: none;
    font-family: inherit;
    cursor: pointer;
}

.judod-mobile-bar .btn-call {
    background: var(--brand-plum-light);
    color: var(--brand-plum-dark) !important;
}

.judod-mobile-bar .btn-wa {
    background: #10b981;
    color: #ffffff !important;
}

.judod-mobile-bar .btn-lead {
    background: var(--brand-plum);
    color: #ffffff !important;
}

/* ── Modal & Toast ── */
.judod-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(20, 5, 15, 0.65);
    backdrop-filter: blur(6px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.judod-modal.is-open {
    display: flex;
}

.judod-modal__content {
    background: #ffffff;
    border: 1px solid var(--brand-plum-light);
    border-radius: var(--brand-radius-xl);
    padding: 32px;
    max-width: 480px;
    width: 100%;
    position: relative;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.25);
    animation: modalIn 0.3s ease;
}

@keyframes modalIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.judod-modal__close {
    position: absolute;
    top: 18px;
    left: 18px;
    background: transparent;
    border: none;
    font-size: 1.2rem;
    color: var(--brand-slate);
    cursor: pointer;
}

html[dir="ltr"] .judod-modal__close {
    left: auto;
    right: 18px;
}

.judod-modal h3 {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--brand-plum-dark);
    margin: 0 0 6px;
}

.judod-modal p {
    font-size: 0.8rem;
    color: var(--brand-slate);
    margin: 0 0 20px;
    font-weight: 500;
}

.judod-toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 10000;
    background: #ffffff;
    border: 1px solid var(--brand-plum-light);
    padding: 14px 20px;
    border-radius: var(--brand-radius-md);
    box-shadow: 0 10px 30px rgba(15, 39, 66, 0.15);
    display: none;
    align-items: center;
    gap: 12px;
    max-width: 320px;
    animation: toastIn 0.3s ease;
}

.judod-toast.is-open {
    display: flex;
}

@keyframes toastIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.judod-toast i {
    color: #10b981;
    font-size: 1.2rem;
}

.judod-toast span {
    font-size: 0.82rem;
    font-weight: 800;
    color: var(--brand-plum-dark);
}

/* ── Enhanced Lightbox Modal with Full Album Navigation ── */
.judod-lightbox {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(10, 25, 47, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    touch-action: pan-y;
}

.judod-lightbox.is-open {
    display: flex;
}

.judod-lightbox__figure {
    position: relative;
    max-width: 90vw;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.judod-lightbox__img {
    max-width: 90vw;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 16px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.65);
    user-select: none;
    -webkit-user-select: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.judod-lightbox__counter {
    margin-top: 14px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    font-size: 0.88rem;
    font-weight: 700;
    padding: 6px 18px;
    border-radius: 9999px;
    backdrop-filter: blur(8px);
    letter-spacing: 1px;
}

.judod-lightbox__close {
    position: absolute;
    top: 24px;
    right: 24px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #ffffff;
    font-size: 1.8rem;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
    z-index: 100;
}

.judod-lightbox__close:hover {
    background: rgba(255, 255, 255, 0.35);
    transform: scale(1.08);
}

.judod-lightbox__btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 100;
    backdrop-filter: blur(8px);
}

.judod-lightbox__btn:hover {
    background: var(--brand-gold, #c89a3f);
    border-color: var(--brand-gold, #c89a3f);
    color: #ffffff;
    transform: translateY(-50%) scale(1.12);
}

.judod-lightbox__btn--prev {
    right: 32px;
}

.judod-lightbox__btn--next {
    left: 32px;
}

@media (max-width: 767px) {
    .judod-lightbox {
        padding: 12px;
    }
    .judod-lightbox__img {
        max-width: 96vw;
        max-height: 75vh;
        border-radius: 10px;
    }
    .judod-lightbox__btn {
        width: 42px;
        height: 42px;
        font-size: 1rem;
    }
    .judod-lightbox__btn--prev {
        right: 12px;
    }
    .judod-lightbox__btn--next {
        left: 12px;
    }
    .judod-lightbox__close {
        top: 16px;
        right: 16px;
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }
}
