/**
 * Single Woning Page Styling
 * Brok Makelaars - Custom property detail page
 */

:root {
    --brok-blue: #003A60;
    --brok-blue-light: #4A9FD8;
    --brok-orange: #EC6E1C;
    --brok-orange-dark: #d5601a;
    --brok-green: #94C125;
    --brok-gray: #ACACAC;
    --brok-light-gray: #f5f5f5;
    --brok-text: #333;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.15);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
}

/* ============================================
   TOP SECTION - Hero with Image Gallery & Info
   ============================================ */

.woning-hero-section {
    background-color: rgba(255, 255, 255, 0) !important;
    background-image: url(../../../../wp-content/uploads/2025/11/BG-2-Brok-Beeldmerk-New.png), linear-gradient(210deg, rgb(6, 48, 86) 0%, rgba(6, 48, 86, 0.85) 65%, rgb(34, 116, 171) 100%) !important;
    --background-image: url(../../../../wp-content/uploads/2025/11/BG-2-Brok-Beeldmerk-New.png), linear-gradient(210deg, rgb(6, 48, 86) 0%, rgba(6, 48, 86, 0.85) 65%, rgb(34, 116, 171) 100%) !important;
    --tve-applied-background-image: url(../../../../wp-content/uploads/2025/11/BG-2-Brok-Beeldmerk-New.png), linear-gradient(210deg, rgb(6, 48, 86) 0%, rgba(6, 48, 86, 0.85) 65%, rgb(34, 116, 171) 100%) !important;
    --background-color: rgba(255, 255, 255, 0) !important;
    --tve-applied-background-color: rgba(255, 255, 255, 0) !important;
    background-size: 100%, auto !important;
    background-position: 60% 150%, 50% 50% !important;
    background-attachment: scroll, scroll !important;
    background-repeat: no-repeat, no-repeat !important;
    --background-size: 100%, auto !important;
    --background-position: 60% 150%, 50% 50% !important;
    --background-attachment: scroll, scroll !important;
    --background-repeat: no-repeat, no-repeat !important;
    padding: 4rem 0;
    margin: 0 0 4rem 0;
}

.woning-hero-container {
    max-width: 1250px;
    margin: 0 auto;
    padding: 0 20px;
}

.woning-hero-grid {
    display: grid;
    grid-template-columns: 1.8fr 1fr;
    align-items: start;
}

/* Left Side - Image Gallery */

.gallery-main {
    grid-column: 1 / -1;
    grid-row: 1;
    width: 100%;
    height: 420px;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    cursor: pointer;
    transition: transform 0.3s ease;
}

.woning-main-image:hover {
    transform: scale(1.02);
}

.woning-main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-thumbnails {
    width: 100%;
    border-radius: var(--radius-sm);
    overflow: hidden;
    cursor: pointer;
    background: none;
}

.woning-thumbnail:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.woning-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Right Side - Property Info */
.woning-hero-info {
    padding: 3rem 0 0 3rem;
}

/* Badges over de afbeelding (linksboven) */
.woning-badges {
    position: absolute;
    top: 16px;
    left: 16px;
    display: flex;
    flex-direction: column;
    z-index: 10;
}

.woning-badge {
    display: inline-block;
    padding: 6px 12px;
    font-size: 0.75rem;
    width: fit-content;
    border-radius: 15px;
}

.woning-nieuw {
    background: #ffc107;
    color: #000;
}

.woning-status {
    background: #fff;
    color: #333;
}

.woning-status.status-beschikbaar {
    background: #94C125;
    color: white;
}

.woning-status.status-verkocht,
.woning-status.status-verkocht-onder-voorbehoud,
.woning-status.status-onder-bod { 
    background: #EC6E1C;
    color: white;
}

.woning-status.status-verhuurd {
    background: #EC6E1C;
    color: white;
}

.woning-hero-title {
    font-size: 2.5rem;
    color: white !important;
    margin-bottom: 0.5rem;
    font-weight: 700;
    line-height: 1.2;
}

.woning-hero-location {
    font-size: 1.25rem;
    color: var(--brok-orange) !important;
    margin-bottom: 2rem;
    font-weight: 500;
    padding-bottom: 0 !important
}

.woning-hero-location .gemeente {
    color: #666;
    font-weight: 400;
}

.woning-hero-price {
}

.price-label {
    display: block;
    font-size: 0.875rem;
    color: var(--brok-gray);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.price-amount {
    display: block;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1;
    font-size: 1.25rem;
}

.woning-hero-cta {
    border-radius: 380px;
    background-color: transparent !important;
    background-image: linear-gradient(340deg, rgb(148, 193, 37) 54%, rgb(214, 253, 120) 100%) !important;
    --tve-applied-background-image: linear-gradient(340deg, rgb(148, 193, 37) 54%, rgb(214, 253, 120) 100%) !important;
    padding: 12px 35px !important;
    --background-image: linear-gradient(340deg, rgb(148, 193, 37) 54%, rgb(214, 253, 120) 100%) !important;
    background-size: auto !important;
    background-position: 50% 50% !important;
    background-attachment: scroll !important;
    background-repeat: no-repeat !important;
    --background-size: auto !important;
    --background-position: 50% 50% !important;
    --background-attachment: scroll !important;
    --background-repeat: no-repeat !important;
    color: white;
    font-weight: bold;
    font-family: 'Poppins';
    display: inline-block;
    margin-top: 20px;
}

/* ============================================
   CONTENT SECTION - Sidebar Navigation & Content
   ============================================ */

.woning-content-section {
    max-width: 1250px;
    margin: 0 auto 4rem;
}

.woning-content-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 3rem;
    align-items: start;
}

/* Left Sidebar - Navigation */
.woning-sidebar {
    position: sticky;
    top: 20px;
    background: transparent;
    padding: 0;
    background: white;
    border-radius: var(--radius-md);
    padding: 1.5rem;
    position: sticky;
    top: 2rem;
    box-shadow: var(--shadow-sm);
}

.woning-nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    
}

.woning-nav-item {
    margin-left: 0 !important;
    margin-bottom: 0.5rem;
}

.woning-nav-button {
    display: block;
    width: 100%;
    text-align: left;
    padding: 1rem 1.25rem;
    background: transparent;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 22px;
    font-family: 'Poppins';
    font-weight: bold;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
}

.woning-nav-button:hover {
    background: var(--brok-light-gray);
    color: var(--brok-blue);
}

.woning-nav-button.active {
    color: var(--brok-blue);
}

/* Right Content Area */
.woning-content-area {
    background: transparent;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
    min-height: 600px;
}

.woning-content-panel {
    display: none;
}

.woning-content-panel.active {
    display: block;
    animation: fadeIn 0.4s ease-in-out;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    padding: 20px 20px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.woning-content-panel h2 {
    font-size: 2rem;
    color: var(--brok-blue);
    font-weight: 700;
}

.woning-content-panel h3 {
    font-size: 1.5rem;
    color: var(--brok-blue);
    margin: 2rem 0 1rem;
    font-weight: 600;
}

.woning-content-panel p {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--brok-text);
    margin-bottom: 1rem;
}

.woning-download-media {
    --tve-font-weight: var(--g-bold-weight, bold);
    --tve-font-family: Poppins;
    --g-regular-weight: 400;
    --g-bold-weight: 700;
    --tve-letter-spacing: 0px;
    --tve-font-size: 14px;
    --tve-color: rgb(255, 255, 255);
    border: none;
    --tve-line-height: 2em;
    --tve-applied---tve-color: rgb(255, 255, 255);
    --tve-border-radius: 89px;
    border-radius: 89px;
    margin: 0px 10px !important;
    padding: 10px 45px !important;
    background-image: linear-gradient(340deg, rgb(236, 110, 28) 54%, rgb(255, 255, 255) 100%) !important;
    background-size: auto !important;
    background-position: 50% 50% !important;
    background-attachment: scroll !important;
    background-repeat: no-repeat !important;
    --background-image: linear-gradient(340deg, rgb(236, 110, 28) 54%, rgb(255, 255, 255) 100%) !important;
    --background-size: auto auto !important;
    --background-position: 50% 50% !important;
    --background-attachment: scroll !important;
    --background-repeat: no-repeat !important;
    --tve-applied-background-image: linear-gradient(340deg, rgb(236, 110, 28) 54%, rgb(255, 255, 255) 100%) !important;
    color: white;
    font-family: 'Poppins';
    font-weight: bold;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 1024px) {
    .woning-content-grid {
        grid-template-columns: 240px 1fr;
        gap: 2rem;
        padding: 0 20px;
    }
    
    .woning-main-image {
        height: 400px;
    }

    .woning-nav-button {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .woning-hero-section {
        padding: 2rem 0;
        margin: 0 0 2rem 0;
    }
    
    .woning-hero-container {
        padding: 0 20px;
    }
    
    .woning-hero-grid {
        grid-template-columns: 1fr;
    }
    
    .woning-main-image {
        height: 300px;
    }
    
    .woning-thumbnail {
        height: 140px;
    }
    
    .woning-hero-info {
        padding: 1rem 3rem 2rem 0;
    }
    
    .woning-hero-title {
        font-size: 1.75rem;
    }
    
    .price-amount {
        font-size: 1.25rem;
    }
    
    .woning-content-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .woning-sidebar {
        position: static;
        padding: 20px;
    }
    
    .woning-nav-list {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .woning-nav-item {
        margin-bottom: 0;
        padding-bottom: 0 !important;
        flex: 1 1 auto;
    }
    
    .woning-nav-button {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
    
    .woning-content-panel h2 {
        font-size: 1.5rem;
    }

    .woning-sidebar .woning-hero-cta {
        display: none;
    }
}

@media (max-width: 480px) {
    .woning-hero-gallery {
        grid-template-columns: 1fr;
    }
    
    .woning-thumbnail {
        height: 180px;
    }
    
    .woning-hero-title {
        font-size: 1.5rem;
    }
    
    .woning-nav-list {
        flex-direction: column;
    }
}

.hero-mosaic .tile-1 {
    grid-column: 1 / span 1;
    grid-row: 1 / span 2;
}

.hero-mosaic .tile-2 {
    grid-column: 2;
    grid-row: 1;
}

.hero-mosaic .tile-3 {
    grid-column: 3;
    grid-row: 1;
}

.hero-mosaic .tile-4 {
    grid-column: 2;
    grid-row: 2;
}

.hero-mosaic .tile-5 {
    grid-column: 3;
    grid-row: 2;
}

.hero-mosaic .mosaic-more {
    position: absolute;
    right: 16px;
    bottom: 16px;
    color: #fff;
    padding: 10px 14px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 700;
}

.hero-mosaic .more-count {
    pointer-events: none;
}

/* Sticky Action Bar */
.sticky-action-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transform: translateY(-100%);
    transition: transform .25s ease, box-shadow .25s ease;
    background: #fff;
    box-shadow: none;
}

.sticky-action-bar.visible {
    transform: translateY(0);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .08);
}

.sticky-action-bar .bar-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    gap: 16px;
}

.sticky-action-bar .bar-address {
    font-weight: 700;
    color: var(--brok-blue);
}

.sticky-action-bar .bar-price {
    font-weight: 800;
    color: var(--brok-orange);
    margin-right: 12px;
}

.sticky-action-bar .bar-btn.primary {
    background: var(--brok-orange);
    color: #fff;
    padding: 10px 14px;
    border-radius: 8px;
    text-decoration: none;
}

/* Description toggle */
.description-text {
    max-height: 280px;
    overflow: hidden;
    position: relative;
}

.description-text.collapsed::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 80px;
    background: linear-gradient(transparent, #fff);
}

.desc-toggle {
    margin-top: 10px;
    background: none;
    border: 1px solid var(--brok-light-blue);
    color: var(--brok-orange);
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
}

.description-text.expanded {
    max-height: none;
}

.description-text.expanded::after {
    display: none;
}

@media (max-width: 1024px) {
    .hero-mosaic {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 180px 180px 180px;
    }

    .hero-mosaic .tile-1 {
        grid-column: 1 / span 2;
        grid-row: 1;
    }

    .hero-mosaic .tile-2 {
        grid-column: 1;
        grid-row: 2;
    }

    .hero-mosaic .tile-3 {
        grid-column: 2;
        grid-row: 2;
    }

    .hero-mosaic .tile-4 {
        grid-column: 1;
        grid-row: 3;
    }

    .hero-mosaic .tile-5 {
        grid-column: 2;
        grid-row: 3;
    }
}

@media (max-width: 768px) {
    .sticky-action-bar .bar-price {
        display: none;
    }

    .hero-mosaic {
        display: none;
    }
}

/* ========================================
   HERO GALLERY SECTION - Modern Design
   ======================================== */

.woning-hero {
    width: 100%;
    margin-bottom: 0;
    background: var(--brok-gray-light);
}

.woning-gallery-container {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

.woning-gallery {
    max-width: 1400px;
    margin: 0 auto;
}

.gallery-main {
    width: 100%;
    height: 420px;
    overflow: hidden;
}

.gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    /* Force sharp, high-quality image rendering */
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    -ms-interpolation-mode: bicubic;
    /* Better anti-aliasing and performance */
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    /* Prevent subpixel rendering blur */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.gallery-thumbnails {
    display: flex;
    padding: 15px 0;
    background: var(--brok-primary);
    overflow-x: auto;
    scrollbar-width: thin;
}

.gallery-thumbnails .thumbnail {
    flex: 0 0 23%;
    height: 80px;
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
    border-radius: 8px !important;
    margin-left: 2.5%;
}

.gallery-thumbnails .thumbnail:first-child {
    margin-left: 0;
}

.gallery-thumbnails .thumbnail.hidden {
    display: none;
}

.gallery-thumbnails .thumbnail:hover,
.gallery-thumbnails .thumbnail.active {
    border-color: var(--brok-accent);
}

.gallery-thumbnails .thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transition: transform 0.3s ease;
}

.gallery-thumbnails .thumbnail:hover img {
    transform: scale(1.05);
}

/* Badges Container */
.woning-badges {
    position: absolute;
    top: 24px;
    left: 24px;
    z-index: 10;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.woning-status-badge {
    background: var(--brok-blue);
    color: white;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(10px);
    background: rgba(0, 48, 88, 0.95);
}

.woning-status-badge.status-beschikbaar {
    background: rgba(40, 167, 69, 0.95);
}

.woning-status-badge.status-verkocht {
    background: rgba(220, 53, 69, 0.95);
}

.woning-status-badge.status-onder_bod {
    background: rgba(108, 117, 125, 0.95);
}

/* Nieuw Badge */
.woning-nieuw-badge {
    background: linear-gradient(135deg, var(--brok-orange) 0%, var(--brok-orange-light) 100%);
    color: white;
    padding: 12px 20px;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    gap: 6px;
    animation: pulse 2s infinite;
}

.woning-nieuw-badge .badge-icon {
    font-size: 16px;
    animation: sparkle 1.5s infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

@keyframes sparkle {

    0%,
    100% {
        opacity: 1;
        transform: rotate(0deg);
    }

    50% {
        opacity: 0.7;
        transform: rotate(180deg);
    }
}

/* Header Section */
.woning-header {
    background: white;
    padding: 3rem 0;
    border-bottom: 3px solid var(--brok-light-blue);
    box-shadow: var(--shadow-sm);
}

.woning-header .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

.woning-title {
    font-size: 2.75rem;
    font-weight: 800;
    color: var(--brok-blue);
    margin: 0 0 0.75rem 0;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.woning-location {
    font-size: 1.1rem;
    color: var(--brok-text-light);
    margin: 0;
}

.woning-location .gemeente {
    color: var(--brok-text-light);
    font-weight: 400;
}

.woning-price-section {
    flex-shrink: 0;
}

.price-block {
    text-align: right;
    background: linear-gradient(135deg, var(--brok-blue) 0%, var(--brok-blue-dark) 100%);
    padding: 1.5rem 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.price-label {
    display: block;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.price-amount {
    display: block;
    font-weight: 800;
    color: white;
    line-height: 1;
}

.price-condition {
    display: block;
    font-size: 0.9rem;
    color: var(--brok-text-light);
    font-weight: 400;
    margin-top: 5px;
}

/* Key Features - Funda Style Chips */
.woning-key-features {
    background: #f7f7f7;
    padding: 1.5rem 0;
    border-bottom: 1px solid #e6e6e6;
}

.woning-key-features .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.features-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-item {
    background: white;
    padding: 12px 20px;
    border-radius: 24px;
    border: 1px solid #e6e6e6;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.feature-item:hover {
    border-color: var(--brok-orange);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.feature-item i {
    color: #666;
    font-size: 18px;
}

.feature-value {
    display: inline-block;
    font-size: 1rem;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0;
    line-height: 1;
}

.feature-label {
    display: inline-block;
    font-size: 0.875rem;
    color: #666;
    font-weight: 400;
    margin-left: 4px;
}

/* Main Content Layout */
.woning-content {
    padding: 4rem 0;
    background: var(--brok-white);
}

.woning-content .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.content-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 40px;
}

/* Content Blocks */
.content-block {
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2rem;
    color: var(--brok-primary);
    margin-bottom: 1.5rem;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--brok-accent);
    font-weight: 700;
}

.description-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--brok-text);
}

.description-text p {
    margin-bottom: 1rem;
}

/* Details Section - Funda Style */
.details-section {
    margin-bottom: 2rem;
    padding: 0;
    background: white;
    border-bottom: 1px solid var(--brok-border);
}

.subsection-title {
    font-size: 1.25rem;
    color: var(--brok-blue);
    margin: 0 0 1.5rem 0;
    font-weight: 700;
    padding: 0;
    border: none;
}

.details-list {
    display: block;
    margin: 0;
    padding: 0;
}

.details-list dt,
.details-list dd {
    display: inline-block;
    margin: 0;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
    vertical-align: top;
    box-sizing: border-box;
}

.details-list dt {
    width: 45%;
    font-weight: 400;
    color: #666;
    padding-right: 20px;
}

.details-list dd {
    width: 50%;
    font-weight: 500;
    color: #1a1a1a;
}

.details-list.compact {
    gap: 10px 20px;
}

/* Floor Layout */
.floor-layout {
    /* margin-bottom: 2rem; */
    /* padding: 20px; */
    background: var(--brok-white);
    border-left: 4px solid var(--brok-accent);
}

.floor-title {
    font-size: 1.2rem;
    color: var(--brok-primary);
    /* margin-bottom: 10px; */
    font-weight: 600;
}

.floor-description {
    color: var(--brok-text-light);
    /* margin-bottom: 15px; */
}

/* Energy Label */
.energy-badge {
    display: inline-block;
    padding: 0px 15px;
    border-radius: 4px;
    font-weight: 700;
    color: var(--brok-white);
}

.energy-badge.energy-a,
.energy-badge.energy-aplus,
.energy-badge.energy-aplusplus {
    background: #00a651;
}

.energy-badge.energy-b {
    background: #7fba00;
}

.energy-badge.energy-c {
    background: #cddb00;
    color: var(--brok-text);
}

.energy-badge.energy-d {
    background: #ffd500;
    color: var(--brok-text);
}

.energy-badge.energy-e {
    background: #ff9000;
}

.energy-badge.energy-f {
    background: #ff5000;
}

.energy-badge.energy-g {
    background: #ff0000;
}

.energy-expiry {
    font-size: 0.85rem;
    color: var(--brok-text-light);
    margin-left: 10px;
}

/* Map */
.map-container {
    width: 100%;
    height: 450px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Sidebar */
.content-sidebar {
    position: relative;
}

.sidebar-sticky {
}

/* Contact Card */
.contact-card,
.info-card {
    background: var(--brok-primary);
    color: var(--brok-white);
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.card-title {
    font-size: 1.5rem;
    margin-bottom: 15px;
    font-weight: 700;
    color: var(--brok-white);
}

.card-description {
    margin-bottom: 25px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
}

/* Contact Form */
.woning-contact-form {
    background: linear-gradient(135deg, var(--brok-blue) 0%, var(--brok-blue-dark) 100%);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    position: sticky;
    top: 100px;
    color: white;
}

.contact-form-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: white;
    margin-bottom: 1rem;
    text-align: center;
}

.contact-form-subtitle {
    text-align: center;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

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

.contact-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--brok-white);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-md);
    font-size: 1rem;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--brok-orange);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.2);
}

.btn {
    padding: 14px 30px;
    border: none;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--brok-accent);
    color: var(--brok-white);
}

.btn-submit:hover {
    background: var(--brok-orange-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
}

.btn-submit:active {
    transform: translateY(0);
}

.btn-block {
    width: 100%;
    display: block;
}

/* Contact Direct */
.contact-direct {
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
}

.contact-label {
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

.contact-phone {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--brok-white);
    text-decoration: none;
    transition: all 0.3s ease;
}

.contact-phone:hover {
    color: var(--brok-accent);
}

/* Open House */
.open-house-list {
    margin-top: 20px;
}

.open-house-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    margin-bottom: 10px;
}

.open-house-item i {
    font-size: 1.5rem;
    color: var(--brok-accent);
}

.open-house-date {
    font-weight: 700;
    margin-bottom: 5px;
}

.open-house-time {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

/* Share Buttons */
.info-card {
    background: var(--brok-light);
    color: var(--brok-text);
}

.info-card .card-title {
    color: var(--brok-primary);
}

.share-buttons {
    display: flex;
    gap: 10px;
}

.share-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    border-radius: 4px;
    color: var(--brok-white);
    text-decoration: none;
    transition: all 0.3s ease;
}

.share-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.share-facebook {
    background: #1877f2;
}

.share-twitter {
    background: #1da1f2;
}

.share-linkedin {
    background: #0077b5;
}

.share-email {
    background: var(--brok-text);
}

/* Similar Properties */
.similar-properties {
    padding: 4rem 0;
    background: var(--brok-light);
}

.similar-properties .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.properties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 2rem;
}

/* Responsive */
@media (max-width: 1024px) {
    .content-layout {
        grid-template-columns: 1fr;
    }

    .sidebar-sticky {
        position: static;
    }

    .woning-header .container {
        flex-direction: column;
        align-items: flex-start;
    }

    .price-block {
        text-align: left;
    }
}

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

    .gallery-main {
        height: 400px;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .details-list {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .share-buttons {
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    .woning-header {
        padding: 2rem 0;
    }

    .woning-title {
        font-size: 1.5rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .gallery-main {
        height: 300px;
    }

    .woning-nav-button {
        padding-left: 0 !important;
    }

    .woning-nav-button:hover {
        background: none;
    }
}

/* ========================================
   LIGHTBOX STYLES
   ======================================== */

.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 99999;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    display: block;
    opacity: 1;
}

.lightbox-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    cursor: zoom-out;
}

.lightbox-container {
    position: relative;
    width: 100%;
    height: 100%;
    max-height: 100vh;
    display: flex;
    flex-direction: column;
    /* overflow: hidden; */
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 10;
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.lightbox-close:hover {
    background: rgba(255, 107, 53, 0.9);
    transform: rotate(90deg);
}

.lightbox-content {
    flex: 1;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 80px 60px 20px;
}

.lightbox-image-wrapper {
    position: relative;
    max-width: 100%;
    max-height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-image {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.6);
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 5;
}

.lightbox-nav:hover:not(:disabled) {
    background: rgba(255, 107, 53, 0.9);
    transform: translateY(-50%) scale(1.1);
}

.lightbox-nav:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.lightbox-prev {
    left: 30px;
}

.lightbox-next {
    right: 30px;
}

.lightbox-footer {
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

.lightbox-counter {
    text-align: center;
    color: white;
    font-weight: 600;
    margin-bottom: 15px;
    font-size: 14px;
    letter-spacing: 1px;
}

.lightbox-thumbnails {
    display: flex;
    gap: 8px;
    justify-content: flex-start;
    overflow-x: auto;
    overflow-y: visible;
    padding: 10px 0;
    max-width: 100%;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.lightbox-thumbnails::-webkit-scrollbar {
    height: 8px;
}

.lightbox-thumbnails::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.lightbox-thumbnails::-webkit-scrollbar-thumb {
    background: rgba(255, 107, 53, 0.6);
    border-radius: 4px;
}

.lightbox-thumbnails::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 107, 53, 0.8);
}

.lightbox-thumb {
    flex: 0 0 80px;
    flex-shrink: 0;
    height: 60px;
    border: 2px solid transparent;
    overflow: hidden;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: none;
    padding: 0;
}

.lightbox-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lightbox-thumb:hover,
.lightbox-thumb.active {
    border-color: var(--brok-orange);
    transform: scale(1.1);
}

.lightbox-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: none;
}

.lightbox.loading .lightbox-loading {
    display: block;
}

.lightbox.loading .lightbox-image {
    opacity: 0;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top-color: var(--brok-orange);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Mobile Lightbox */
@media (max-width: 768px) {
    .lightbox-content {
        padding: 60px 20px 20px;
    }

    .lightbox-nav {
        width: 45px;
        height: 45px;
    }

    .lightbox-prev {
        left: 10px;
    }

    .lightbox-next {
        right: 10px;
    }

    .lightbox-thumbnails {
        gap: 5px;
    }

    .lightbox-thumb {
        flex: 0 0 60px;
        height: 45px;
    }
}