/* ======================================
   GOOGLE MATERIAL SYMBOLS ICONS
====================================== */
.material-symbols-outlined{
  font-family: 'Material Symbols Outlined';
  font-weight: normal;
  font-style: normal;
  font-size: 18px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  -webkit-font-feature-settings: 'liga';
  -webkit-font-smoothing: antialiased;
  font-variation-settings: 'FILL' 0, 'wght' 200, 'GRAD' 0, 'opsz' 24;
  vertical-align: middle;
}

a:visited {
    color:;
}

/* Property Detail Page Styles */
* {
    box-sizing: border-box;
}

/* Property Top Bar Styles */
.property-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 5%;
    border-bottom: 0 solid var(--bd-e0e0e0, #e0e0e0);
    margin-bottom: 0;
}

.top-bar-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.back-to-search {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--tx-005eb8, #005eb8);
    text-decoration: none;
    font-weight: 400;
    transition: color 0.3s ease;
    font-size: 13px;
    line-height: 1.2;
    min-height: 20px;
}

.back-to-search:hover {
    color: var(--tx-000b15, #000b15);
    text-decoration: none;
}

.back-to-search:hover .material-symbols-outlined {
    transform: translateX(-2px);
}

.top-bar-address {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-weight: 400;
    color: #333333b3;
    font-size: 13px;
    line-height: 1.2;
    min-height: 20px;
}

.top-bar-address .breadcrumb-arrow {
    font-size: 16px;
    color: #333333b3;
    line-height: 1;
    font-variation-settings:
        'FILL' 0,
        'wght' 200,
        'GRAD' 0,
        'opsz' 24;
}

.top-bar-right {
    display: flex;
    gap: 10px;
}

.top-bar-right .action-button {
    background: rgba(var(--glass, 255, 255, 255), 0.9);
    border: 1px solid var(--bd-ffffff, #ffffff);
    color: var(--tx-333333, #333);
    padding: 6px 12px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 400;
    text-decoration: none;
    transition: all 0.3s ease;
    height: 34px;
    box-sizing: border-box;
    cursor: pointer;
}

.top-bar-right .action-button:hover {
    transform: translateY(-2px);
    color:var(--tx-005eb8, #005eb8);
}

/* Gallery Styles */
.main-image {
    flex: 1.0;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 0px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
}

.main-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: inherit;
    transform: scale(1);
    transition: transform 0.7s cubic-bezier(0.33, 0, 0.67, 1);
}

.main-image:hover::before {
  box-shadow: inset 0 0 0 1000px rgba(0,0,0,0.2);
}

.thumbnails {
    flex: 1.0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 8px;
    height: 100%;
    min-height: 0;
    align-items: stretch;
    position: relative;
    min-width: 0;
}

.thumbnail {
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 0px;
    cursor: pointer;
    position: relative;
    min-height: 0;
    width: 100%;
    padding: 0;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
}

.thumbnail:nth-child(2) {
    border-top-right-radius: 10px;
}

.thumbnail:nth-child(4) {
    border-bottom-right-radius: 10px;
}

.thumbnail::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: inherit;
    transform: scale(1);
    transition: transform 0.7s cubic-bezier(0.33, 0, 0.67, 1);
}

.thumbnail:hover::before {
  box-shadow: inset 0 0 0 1000px rgba(0,0,0,0.2);
}

.thumbnail:last-child .thumbnail-overlay {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0) 50%);
    z-index: 1;
}

.view-all-photos-container {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    width: 100%;
    padding: 10px;
    gap: 10px;
}

/* Zelfde frosted-glass stijl als de fototeller op mobiel (.mobile-gallery-count). */
.view-all-photos {
    background: rgba(var(--glass, 255, 255, 255), 0.4);
    color: var(--tx-111827, #111827);
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.2s ease, transform 0.15s ease;
    border: 1px solid rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(14px) saturate(180%);
    -webkit-backdrop-filter: blur(14px) saturate(180%);
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.12);
    height: 34px;
    box-sizing: border-box;
}

.view-all-photos:hover {
    background: rgba(var(--glass, 255, 255, 255), 0.6);
    color: var(--tx-111827, #111827);
    transform: scale(1.05);
}

.view-all-photos:active {
    background: rgba(var(--glass, 255, 255, 255), 0.75);
    transform: scale(0.95);
}

/* Property Menu Styles */
.property-detail-container .property-menu {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15%;
    border-bottom: 0px solid var(--bd-e0e0e0, #e0e0e0);
    background: #4c9ab6;
    margin: 0 0 5px 0;
    width: 100vw;
    max-width: 100%;
    position: sticky;
    top: 59px;
    z-index: 999;
    left: 0;
    right: 0;
}

.property-detail-container .property-menu .menu-items {
    display: flex;
    gap: 25px;
    padding-left: 0;
    margin-left: 0;
}

.property-detail-container .property-menu .menu-items a {
    text-decoration: none;
    color: #ffffff;
    font-size: 16px;
    font-weight: 400;
    padding-bottom: 0px;
    transition: color 0.3s ease;
    position: relative;
    border-bottom: none;
}

.property-detail-container .property-menu .menu-items a:hover {
    color: var(--tx-000000, #000000);
    border-bottom-color: transparent;
}

.property-detail-container .property-menu .actions {
    display: none;
}

/* Property Info Styles */
/* Address and price */
.property-address {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0px;
    margin-bottom: 0px;
}

.property-header-actions {
    /* Favorite/deel staan nu bovenaan bij de breadcrumb (.top-bar-actions);
       dit blok (in het adresvak) is overal vervangen. */
    display: none;
}

.property-favorite-form {
    display: inline-flex;
    margin: 0;
    padding: 0;
}

.property-action-icon {
    width: 48px;
    height: 48px;
    border-radius: 999px;
    border: 1px solid #0000000f;
    background: var(--bg-ffffff, #ffffff);
    color: var(--tx-111827, #111827);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    text-decoration: none;
    cursor: pointer;
    font: inherit;
    line-height: 1;
    box-shadow: none;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.property-action-icon .material-symbols-outlined {
    font-size: 27px;
    line-height: 1;
    margin-bottom: 0;
    color: var(--tx-707070, #707070);
    font-variation-settings:
        'FILL' 0,
        'wght' 300,
        'GRAD' 0,
        'opsz' 24;
}

.property-action-icon span {
    color: var(--tx-111827, #111827);
}

.property-action-icon:hover {
    background: var(--bg-f7f7f7, #f7f7f7);
    border-color: var(--bd-c8c8c8, #c8c8c8);
    color: var(--tx-111827, #111827);
    text-decoration: none;
    transform: translateY(-1px);
}

.property-action-icon:hover span {
    color: var(--tx-111827, #111827);
}

.property-action-icon .material-symbols-outlined.favorited {
    color: #ff4d4d;
    font-variation-settings:
        'FILL' 1,
        'wght' 200,
        'GRAD' 0,
        'opsz' 24;
}

.address-street {
    font-size: 1.2em;
    font-weight: 600;
    color: var(--tx-222222, #222);
    margin: 0;
    line-height: 1.2;
}

.address-location {
    font-size: 16px;
    font-weight: 400;
    color: var(--tx-555555, #555);
    margin: 0;
}

.property-address .price-box {
    font-size: 1.3em;
    font-weight: 600;
    color: var(--tx-000000, #000000);
    display: block;
    margin-top: 5px;
}


.price-law-row {
    display: flex;
    align-items: center;
    gap: 22px;
    flex-wrap: wrap;
    margin-top: 15px;
}


.price-law-row .price-box {
    display: inline-flex;
    align-items: center;
    margin-top: 0;
}

.property-laws-text {
    color: var(--tx-005eb8, #005eb8);
    font-size: 16px;
    font-weight: 400;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none; 
}

.property-laws-text:hover {
    font-weight: 600;
}

.property-laws-icon {
    font-size: 20px;
    line-height: 1;
    color: var(--tx-005eb8, #005eb8);
    flex: 0 0 auto;
    font-variation-settings: 'FILL' 0, 'wght' 200, 'GRAD' 0, 'opsz' 24;
}

.mobile-property-laws {
    display: none;
}

.desktop-property-laws {
    display: inline-flex;
}

.address-line {
    display: none;
}

.property-features {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 10px;
    width: 100%;
    max-width: 100%;
}

.feature-item {
    display: inline-flex;
    flex-direction: row;
    align-items: baseline;
    gap: 5px;
    background: transparent;
    padding: 0;
    width: auto;
    text-align: left;
    color: var(--tx-333333, #333);
}

.feature-label {
    font-size: 17px;
    font-weight: 400;
    color: var(--tx-666666, #666);
    margin: 0;
    line-height: 1.2;
}

.feature-value {
    display: inline-flex;
    align-items: baseline;
    gap: 3px;
    color: var(--tx-000000, #000);
    font-weight: 600;
    font-size: 17px;
    line-height: 1.2;
}

.feature-value span {
    font-size: inherit;
}

.feature-separator {
    color: var(--tx-999999, #999);
    font-size: 14px;
    line-height: 1.2;
}

/* Property Tags */
.property-tags {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    margin-bottom: 20px;
}

.tag {
    padding: 6px 14px;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 500;
    color: var(--tx-075095, #075095);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.tag.highlight {
    background-color: var(--bg-e8f0f8, #e8f0f8);
}

/* Sidebar Styles */
.agent-info-container {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.agent-text-container {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 4px;
}

.property-sidebar .agent-title {
    font-size: 1.4em;
    font-weight: 700;
    color: var(--tx-1a1a1a, #1a1a1a);
    letter-spacing: 0.02em;
}

.property-sidebar .agent-credentials {
    font-size: 1.1em;
    font-weight: 600;
    color: var(--tx-1a1a1a, #1a1a1a);
}

.property-sidebar .phone-link {
    color: var(--tx-003087, #003087);
    text-decoration: none;
    margin-bottom: 12px;
    display: block;
    font-weight: 500;
    text-align: left;
    transition: color 0.3s ease, transform 0.2s ease;
    border-bottom: 1px solid var(--bd-e6e6e6, #e6e6e6);
    padding-bottom: 20px;
}

.property-sidebar .phone-link:hover {
    color: var(--tx-0051c7, #0051c7);
    transform: translateY(-2px);
}

/* Contact Modal Styles */
.contact-modal, .brochure-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.7);
    z-index: 3000;
    align-items: center;
    justify-content: center;
}

.contact-modal-content, .brochure-modal-content {
    background: var(--bg-ffffff, #fff);
    border-radius: 12px;
    padding: 25px;
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 24px;
    color: var(--tx-666666, #666);
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-modal:hover {
    color: var(--tx-003082, #003082);
}

.contact-modal-details h2, .brochure-modal-content h2 {
    font-size: 1.5em;
    font-weight: 700;
    color: var(--tx-333333, #333);
    margin-bottom: 20px;
}

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

.form-group label {
    display: block;
    font-size: 0.9em;
    font-weight: 500;
    color: var(--tx-333333, #333);
    margin-bottom: 5px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--bd-d0d0d0, #d0d0d0);
    border-radius: 4px;
    font-size: 1em;
    outline: none;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #003082;
}

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

.submit-contact-button, .submit-brochure-button {
    background: #0056b3;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-size: 1em;
    font-weight: 600;
    width: 100%;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.submit-brochure-button {
    background: #28a745;
}

.submit-contact-button:hover {
    background: #004494;
    transform: translateY(-2px);
}

.submit-brochure-button:hover {
    background: #218838;
    transform: translateY(-2px);
}

/* Description Styles */
.property-description h2 {
    font-size: 1.5em;
    font-weight: 500;
    color: var(--tx-333333, #333);
    padding-top: 0px;
    margin-bottom: 15px;
}

.description-short-wrapper {
    position: relative;
}

.description-short-wrapper.has-more::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 90px;
    background: linear-gradient(to bottom, rgba(var(--glass, 255, 255, 255), 0), rgba(var(--glass, 255, 255, 255), 1));
    pointer-events: none;
}

.property-description p.description-short {
    font-size: 1.0em;
    color: var(--tx-000000, #000000);
    line-height: 1.5;
    margin: 0;
}

.property-description .description-full {
    font-size: 1.0em;
    color: var(--tx-000000, #000000);
    line-height: 1.5;
    margin: 0;
}

.read-all-link {
    display: inline-block;
    color: var(--tx-005eb8, #005eb8);
    text-decoration: none;
    font-size: 1.05em;
    font-weight: 600;
    margin-top: 10px;
    transition: color 0.3s ease, transform 0.2s ease;
}

.read-all-link:hover {
    color:;
    transform: translateY(-2px);
}

/* Details Section Styles */
.property-details h2 {
    font-size: 1.8em;
    font-weight: 600;
    color: var(--tx-333333, #333);
    padding-top: 30px;
    margin-bottom: 15px;
}

.accordion {
    margin-bottom: 10px;
    border: 0px solid var(--bd-e0e0e0, #e0e0e0);
    border-radius: 0px;
    overflow: hidden;
}

.accordion-header {
    padding: 5px 20px;
    font-size: 1.0em;
    font-weight: 600;
    color: var(--tx-333333, #333);
    background: var(--bg-ffffff, #ffffff);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s ease;
}

.accordion-header:hover {
    background: var(--bg-f0f5ff, #f0f5ff);
}

.accordion-header::after {
    content: '';
    font-size: 0.9em;
    color: var(--tx-666666, #666);
    transition: transform 0.3s ease;
}

details[open] .accordion-header::after {
    transform: rotate(180deg);
}

.accordion-content {
    padding: 5px 0px;
    background: var(--bg-ffffff, #fff);
    font-size: 1.0em;
    color: var(--tx-333333, #333);
    line-height: 1.6;
}

.accordion-grid .accordion-content {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 40px;
    row-gap: 10px;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 5px;
    border-bottom: 1px solid var(--bd-ececec, #ececec);
}

.accordion-grid .detail-item {
    margin-bottom: 0;
}

.detail-label {
    font-weight: 400;
    color: rgb(106 106 106);
}

.detail-value {
    font-weight: 400;
    color: var(--tx-000000, #000);
}

/* Photo and Floorplan Popup */
.photo-popup, .floorplan-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.9);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.popup-content {
    width: 100%;
    height: 100%;
    max-width: 1400px;
    max-height: 95vh;
    background: transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
}

.popup-header {
    position: absolute;
    top: 10px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    width: 100%;
    z-index: 2100;
}

.toggle-container {
    display: flex;
    gap: 15px;
}

.popup-toggle {
    background: none;
    border: none;
    color: #fff;
    font-size: 18px;
    font-weight: 500;
    cursor: pointer;
    padding: 8px 16px;
    border-radius: 4px;
    transition: background 0.3s ease, color 0.3s ease, transform 0.2s ease;
}

.popup-toggle:hover {
    background: rgba(var(--glass, 255, 255, 255), 0.1);
    transform: translateY(-2px);
}

.popup-toggle.active {
    background: #0051c7;
    color: #fff;
}

.close-popup {
    font-size: 32px;
    color: #fff;
    cursor: pointer;
    transition: color 0.3s ease, transform 0.2s ease;
    line-height: 1;
    padding: 0px;
    z-index: 2200;
}

.close-popup:hover {
    color: #ccc;
    transform: scale(1.1);
}

.popup-gallery, .floorplan-gallery {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
    max-width: 100%;
    height: 100%;
}

.main-popup-image {
    position: relative;
    width: 100%;
    height: 85%;
    max-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-popup-image img {
    width: 100%;
    height: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 12px;
    transition: opacity 0.3s ease;
}

.popup-thumbnails {
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
    justify-content: center;
    overflow-x: auto;
    padding: 10px 0;
    max-width: 100%;
}

.popup-thumbnails img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    transition: border 0.3s ease, transform 0.2s ease;
    flex-shrink: 0;
}

.popup-thumbnails img.active {
    border: 3px solid #0051c7;
    transform: scale(1.1);
}

.popup-thumbnails img:hover {
    transform: scale(1.1);
}

.popup-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgb(76 76 76 / 75%);
    color: white;
    border: none;
    font-size: 18px;
    padding: 15px 20px;
    cursor: pointer;
    border-radius: 50%;
    transition: background 0.3s ease, transform 0.2s ease;
    display: none;
}

.popup-arrow:hover {
    background: rgb(219 219 219 / 90%);
    transform: translateY(-50%) scale(1.1);
    color:var(--tx-000000, #000000)
}

.popup-arrow.left-arrow {
    left: 20px;
}

.popup-arrow.right-arrow {
    right: 20px;
}

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

.popup-thumbnails::-webkit-scrollbar-track {
    background: var(--bg-f1f1f1, #f1f1f1);
    border-radius: 4px;
}

.popup-thumbnails::-webkit-scrollbar-thumb {
    background: #0051c7;
    border-radius: 4px;
}

.popup-thumbnails::-webkit-scrollbar-thumb:hover {
    background: #003087;
}

/* Floorplan Popup Specific Styles */
.floorplan-gallery {
    justify-content: center;
}

.floorplan-selector {
    margin-bottom: 15px;
}

.floorplan-selector select {
    width: 200px;
    padding: 10px;
    border: 1px solid var(--bd-d0d0d0, #d0d0d0);
    border-radius: 4px;
    font-size: 16px;
    background: var(--bg-ffffff, white);
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.floorplan-selector select:focus {
    border-color: #003082;
    outline: none;
}

.floorplan-message {
    font-size: 1.2em;
    color: #fff;
    text-align: center;
    padding: 20px;
}

/* Two-Column Layout */
.right-column {
    flex: 0 0 320px;
    order: 2;
}

.left-column {
    flex: 2;
    min-width: 0;
    order: 1;
}

/* Map Container Styles */
.map-container {
    margin-bottom: 20px;
    background: #e0e0e033;
    border-radius: 10px;
    padding: 0px;
    border: 1px solid var(--bd-e6e6e6, #e6e6e6);
    margin-top: 20px; /* added */
}

/* Hides the small sidebar map once the Neighborhood section (with its own
   larger map) scrolls into view; the sticky agent card stays visible. */
.map-container.is-hidden-near-neighborhood {
    display: none;
}

.map-container h3 {
    font-size: 1.3em;
    font-weight: 600;
    color: var(--tx-333333, #333);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--bd-e0e0e0, #e0e0e0);
}

/* Leaflet Map Customization */
.house-marker {
    background: transparent;
    border: none;
}

/* Map Modal Styles */
.map-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.9);
    z-index: 3000;
    align-items: center;
    justify-content: center;
}

.map-modal-content {
    background: var(--bg-ffffff, #fff);
    border-radius: 12px;
    width: 95vw;
    height: 95vh;
    max-width: 1400px;
    max-height: 600px;
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    top:30px;
}

.close-map-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 32px;
    color: var(--tx-000000, #000000);
    cursor: pointer;
    transition: color 0.3s ease;
    z-index: 3100;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    line-height: 1;
}

.close-map-modal:hover {
    color: var(--tx-005eb8, #005eb8);
    background: rgb(0 0 0 / 0%);
    transform: scale(1.1);
}

.map-modal-body {
    flex: 1;
    padding: 0;
    border-radius: 12px;
    overflow: hidden;
}

/* Full-width details section */
/* Details fade container and button */
.details-fade-container {
    position: relative;
    max-height: 400px; /* shows about 4 accordions */
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.details-fade-container.expanded {
    max-height: none;
}

.details-fade-container::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(to bottom, rgba(var(--glass, 255, 255, 255), 0), rgba(var(--glass, 255, 255, 255), 1));
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.details-fade-container.expanded::after {
    opacity: 0;
    pointer-events: none;
}

.read-all-details {
    display: block;
    margin: 5px 0px 20px;
    text-align: center;
    color: var(--tx-005eb8, #005eb8);
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    background: none;
    border: none;
    font-size: 1.05em;
}

.read-all-details:hover {
    transform: translateY(-2px);
}

/* Accordion layout */
.accordion-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 30px;
    margin-top: 10px;
    width: 100%;
}

.accordion-grid .accordion {
    margin: 0;
    width: 100%;
}

.accordion-grid .accordion-header {
    padding: 10px 20px;
}

/* Woning.php details losgekoppeld van add/edit property */
.property-details-wrapper .accordion-grid .accordion-header,
.property-details-fullwidth .accordion-grid .accordion-header {
    padding: 5px 0px;
}

/* Typography refresh for the property.php Details card only (kept from the
   earlier Funda/Zillow-inspired redesign after the layout itself was
   reverted). Scoped under .property-details-card so the shared
   .accordion/.detail-item styling used by the Add/Edit listing forms is
   untouched. */
.property-details-card .accordion-header {
    font-size: 15px;
    font-weight: 700;
    color: var(--tx-111827, #111827);
}

.property-details-card .accordion-content,
.property-details-card .detail-item {
    font-size: 14.5px;
    color: var(--tx-111827, #111827);
    font-weight: 600;
}

.property-details-card .detail-label {
    color: var(--tx-6b7280, #6b7280);
    font-weight: 400;
}

/* Responsive adjustments */
@media (max-width: 1200px) {

    .property-top-bar {
        padding: 5px 5%;
    }

    .property-details-fullwidth {
        padding: 0 0 20px;
    }
}

@media (max-width: 992px) {
        
    .left-column,
    .right-column {
        flex: 1;
        width: 100%;
    }

    .left-column {
        order: 1;
    }

        .right-column {
        order: 3;
    }
    
        .popup-content {
        max-width: 90vw;
    }

    .main-popup-image {
        height: 70vh;
    }

    .main-popup-image img {
        max-height: 70vh;
    }

    .popup-thumbnails img {
        width: 80px;
        height: 80px;
    }

    .floorplan-selector select {
        width: 100%;
    }

    .property-details-fullwidth {
    order: 2;
    padding: 0 0 20px;
}
}

@media (max-width: 768px) {
        /* Verberg Favorite & Share naast de adresgegevens alleen op mobiel.
       De knoppen op de afbeelding blijven zichtbaar via .mobile-gallery-actions. */
            .property-action-icon span {
        font-size: 13px;
    }

    .accordion-grid .accordion-content {
        grid-template-columns: 1fr;
        column-gap: 0;
    }

                .thumbnail {
        height: 100px;
    }

    .main-popup-image {
        height: 60vh;
    }

    .main-popup-image img {
        max-height: 60vh;
    }

    .popup-thumbnails img {
        width: 60px;
        height: 60px;
    }
    
        
    .top-bar-left {
        flex-direction: row;
        align-items: center;
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .top-bar-right {
        width: 100%;
        justify-content: flex-end;
    }

    .property-details-fullwidth {
        padding: 0 0 15px;
    }

    .accordion-grid {
        gap: 12px;
    }
.property-features {
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-start;
    align-items: center;
    gap: clamp(4px, 1.4vw, 8px);
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.feature-item {
    flex: 0 1 auto;
    min-width: 0;
    justify-content: flex-start;
    gap: clamp(2px, 0.9vw, 5px);
    text-align: left;
}

.feature-label {
    font-size: 0;
    line-height: 1.2;
    white-space: nowrap;
}

.feature-label::before {
    font-size: 16px;
    line-height: 1.2;
    white-space: nowrap;
}

.property-features .feature-item:nth-of-type(1) .feature-label::before {
    content: "bed.";
}

.property-features .feature-item:nth-of-type(2) .feature-label::before {
    content: "bath.";
}

.property-features .feature-item:nth-of-type(3) .feature-label::before {
    content: "Living";
}

.property-features .feature-item:nth-of-type(4) .feature-label::before {
    content: "Lot";
}

.feature-value {
    font-weight: 600;
    font-size: 16px;
    line-height: 1.2;
    white-space: nowrap;
}

.feature-separator {
    font-size: clamp(8px, 2vw, 12px);
    flex: 0 0 auto;
}

    .property-address .price-box {
    font-size: 22px;
}

            .property-laws-text {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        font-size: 16px;
        line-height: 1.35;
        flex: 0 0 auto;
        white-space: nowrap;
    }

    .property-laws-text span:not(.property-laws-icon) {
        white-space: nowrap;
    }

    .property-laws-icon {
        flex: 0 0 auto;
        font-size: 18px;
    }

    .desktop-property-laws {
        display: none !important;
    }

    }

@media (max-width: 480px) {
        .thumbnails {
        grid-template-columns: repeat(2, 1fr);
    }

    .thumbnail {
        height: 80px;
    }

    .popup-content {
        padding: 10px;
    }

    .popup-header {
        top: 10px;
        padding: 0 10px;
    }

    .toggle-container {
        flex-direction: column;
        gap: 10px;
    }

    .close-popup {
        font-size: 24px;
        padding: 6px;
    }

    .popup-toggle {
        font-size: 16px;
        padding: 6px 12px;
    }

    .popup-arrow {
        font-size: 20px;
        padding: 10px 15px;
    }

    .main-popup-image {
        height: 50vh;
    }

    .main-popup-image img {
        max-height: 50vh;
    }

    .popup-thumbnails img {
        width: 50px;
        height: 50px;
    }

    .floorplan-selector select {
        width: 100%;
    }
}

/* Stijlen voor de linkerkant van het property menu (met terug-pijl) */
.property-menu .menu-left-section {
    display: flex;
    align-items: center;
    gap: 25px;
}

.property-menu .back-button {
    color: #ffffff;
    text-decoration: none;
    font-size: 20px;
    transition: color 0.3s ease;
}

.property-menu .back-button:hover {
    color: var(--tx-000000, #000000);
}

/* ========== NIEUWE STIJLEN VOOR DE GEWIJZIGDE LAYOUT ========== */

/* Grid voor de bovenste sectie (beschrijving + makelaar + kaart) */
.property-top-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 20px;
    padding: 20px 15%;
    margin-top: 0;
}

.top-left-column {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.property-description {
    margin-bottom: 0;
    flex: 1;
}

.top-right-column {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.top-right-column .property-sidebar {
    flex-shrink: 0;
}

.top-right-column .map-container {
    margin-top: 30px;
    width: 100%;
}

/* Wrapper voor de details (accordions) onder de grid */
.property-details-wrapper {
    padding: 0 15% 20px;
}

/* ===== NIEUWE STIJLEN VOOR BESCHRIJVING MET VASTE HOOGTE ===== */
.description-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    max-height: 18.0em;
    /* 13 regels × line-height 1.5 = 19.5em */ overflow: hidden;
    position: relative;
    transition: max-height 0.3s ease;
    line-height: 1.5;
}

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

.description-wrapper.has-more::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4em;
    background: linear-gradient(to bottom, rgba(var(--glass, 255, 255, 255), 0), rgba(var(--glass, 255, 255, 255), 1));
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.description-wrapper.expanded::after {
    opacity: 0;
}

/* Zorg dat lange woorden afbreken (bleef al bestaan, maar voor de zekerheid) */
.property-description p,
.description-content {
    overflow-wrap: break-word;
    word-wrap: break-word;
    hyphens: auto;
}
/* ========== Mobiele gallery layout woning detail ========== */
.mobile-gallery-actions,
.mobile-property-breadcrumb,
.mobile-popup-all-images {
    display: none;
}

@media (max-width: 768px) {
    .property-top-bar {
    padding: 12px 20px;
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
    display: none;
}

        .main-image {
    height: 320px;
    display: block;
    width: 100%;
    min-height: 320px;
    border-radius: 0;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    cursor: pointer;
}

    .thumbnails {
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: auto;
    height: auto;
    display: none;
}

            .mobile-gallery-back:hover {
        background: rgba(var(--glass, 255, 255, 255), 0.12);
        color: var(--tx-005eb8, #005eb8);
}

    .mobile-gallery-action-group {
        display: flex;
        align-items: center;
        background: rgba(var(--glass, 255, 255, 255), 0.18);
        border: 1px solid rgb(255 255 255 / 30%);
        border-radius: 999px;
        overflow: hidden;
        pointer-events: auto;
        backdrop-filter: blur(14px);
        -webkit-backdrop-filter: blur(14px);
    }

    .mobile-gallery-favorite-form {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        margin: 0;
        padding: 0;
    }

    .mobile-gallery-icon-button {
        width: 44px;
        height: 44px;
        border: none;
        background: transparent;
        color: #ffffff;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        text-decoration: none;
        cursor: pointer;
        pointer-events: auto;
        font-size: 17px;
        padding: 0;
        box-shadow: none;
    }

    .mobile-gallery-icon-button:hover {
        background: rgba(var(--glass, 255, 255, 255), 0.12);
        color: var(--tx-005eb8, #005eb8);
    }

    .mobile-gallery-action-divider {
        width: 1px;
        height: 22px;
        background: rgba(var(--glass, 255, 255, 255), 0.35);
        flex: 0 0 1px;
    }

    .mobile-gallery-icon-button .material-symbols-outlined {
        font-size: 24px;
        font-variation-settings:
            'FILL' 0,
            'wght' 200,
            'GRAD' 0,
            'opsz' 24;
    }

    .mobile-gallery-icon-button .material-symbols-outlined.favorited,
    .mobile-gallery-icon-button.favorite-button .material-symbols-outlined.favorited {
        color: #ff5a5a;
        font-variation-settings:
            'FILL' 1,
            'wght' 200,
            'GRAD' 0,
            'opsz' 24;
    }

        .photo-popup {
        background: var(--bg-ffffff, #fff);
        align-items: flex-start;
        justify-content: flex-start;
        overflow-y: auto;
    }

    .photo-popup .popup-content {
        width: 100%;
        height: auto;
        max-width: none;
        max-height: none;
        min-height: 100vh;
        padding: 0;
        background: var(--bg-ffffff, #fff);
        justify-content: flex-start;
    }

    .photo-popup .popup-header {
        position: sticky;
        top: 0;
        left: auto;
        right: auto;
        width: 100%;
        padding: 10px 14px;
        background: rgba(var(--glass, 255, 255, 255), 0.96);
        border-bottom: 1px solid var(--bd-eeeeee, #eee);
    }

    .photo-popup .popup-toggle {
        color: var(--tx-111111, #111);
        font-size: 15px;
        padding: 7px 12px;
    }

    .photo-popup .popup-toggle.active {
        background: #005eb8;
        color: #fff;
    }

    .photo-popup .close-popup {
        color: var(--tx-111111, #111);
        background: var(--bg-f4f4f4, #f4f4f4);
        width: 36px;
        height: 36px;
        border-radius: 50%;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 28px;
    }

    .photo-popup .main-popup-image,
    .photo-popup .popup-thumbnails {
        display: none;
    }

    .photo-popup .popup-gallery {
        display: block;
        width: 100%;
        height: auto;
        padding: 0;
    }

    .mobile-popup-all-images {
        display: flex;
        flex-direction: column;
        gap: 10px;
        width: 100%;
        padding: 12px 0 24px;
        background: var(--bg-ffffff, #fff);
    }

    .mobile-popup-all-images img {
        display: block;
        width: 100%;
        height: auto;
        object-fit: cover;
        border-radius: 0;
    }
}

@media (max-width: 480px) {
    .main-image {
    height: 280px;
    min-height: 280px;
}
}


/* ======================================
   GOOGLE-LIKE PROPERTY MAP
====================================== */
.google-like-property-map{
    background: transparent;
    border: none;
    padding: 0;
    margin-top: 30px;
}

.property-map-card{
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    border: 1px solid rgba(15,23,42,0.10);
    box-shadow: 0 10px 28px rgba(15,23,42,0.12);
    background: var(--bg-eef5fb, #eef5fb);
}

#property-map{
    width: 100%;
    border: none;
    border-radius: 10px;
    height: 250px;
    z-index: 1;
    cursor: pointer;
    background: var(--bg-eef5fb, #eef5fb);
    filter: saturate(1.05) brightness(1.02);
}

#large-property-map{
    width: 100%;
    height: 100%;
    border-radius: 12px;
    background: var(--bg-eef5fb, #eef5fb);
    filter: saturate(1.05) brightness(1.02);
}

#property-map .leaflet-tile-pane,
#large-property-map .leaflet-tile-pane{
    filter: saturate(1.08) brightness(1.02) contrast(1.01);
}

.property-map-expand{
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 500;
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 5px;
    background: rgba(var(--glass, 255, 255, 255), 0.96);
    color: var(--tx-374151, #374151);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 28px rgba(15,23,42,0.16);
    transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.property-map-expand:hover{
    background: var(--bg-e8f1fb, #e8f1fb);
    color: var(--tx-111827, #111827);
    transform: translateY(-1px);
}

.property-pin-marker{
    background: transparent !important;
    border: 0 !important;
}

.property-pin{
    width: 40px;
    height: 40px;
    border-radius: 50% 50% 50% 8px;
    background: #005eb8;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: rotate(-45deg);
    border: 2px solid var(--bd-ffffff, #ffffff);
    box-shadow: 0 10px 24px rgba(15,23,42,0.24);
}

.property-pin-large{
    width: 48px;
    height: 48px;
}

#property-map .leaflet-control-zoom,
#large-property-map .leaflet-control-zoom,
#large-property-map .leaflet-control-layers{
    border: none !important;
    border-radius: 5px !important;
    box-shadow: 0 10px 28px rgba(15,23,42,0.16) !important;
    overflow: hidden;
}

#property-map .leaflet-control-zoom a,
#large-property-map .leaflet-control-zoom a{
    width: 42px !important;
    height: 42px !important;
    line-height: 42px !important;
    border-bottom: 1px solid var(--bd-efefef, #efefef);
    color: var(--tx-374151, #374151) !important;
    background: rgba(var(--glass, 255, 255, 255), 0.96) !important;
}

#property-map .leaflet-control-zoom a:hover,
#large-property-map .leaflet-control-zoom a:hover{
    background: var(--bg-f3f4f6, #f3f4f6) !important;
    color: var(--tx-111827, #111827) !important;
}

#large-property-map .leaflet-control-layers-toggle{
    width: 42px !important;
    height: 42px !important;
    background-color: rgba(var(--glass, 255, 255, 255), 0.96) !important;
}

#large-property-map .leaflet-control-layers-expanded{
    padding: 10px 12px !important;
    background: rgba(var(--glass, 255, 255, 255), 0.96) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 12px !important;
    color: var(--tx-0b1220, #0b1220);
    font-size: 13px;
    font-weight: 500;
}

#large-property-map .leaflet-popup-content-wrapper{
    border-radius: 5px;
    box-shadow: 0 18px 45px rgba(15,23,42,0.22);
    border: 1px solid rgba(15,23,42,0.10);
}

.property-map-popup{
    min-width: 180px;
    text-align: left;
}

.property-map-popup strong{
    display: block;
    color: var(--tx-0b1220, #0b1220);
    font-size: 14px;
    line-height: 1.35;
    margin-bottom: 4px;
}

.property-map-popup small{
    color: var(--tx-005eb8, #005eb8);
    font-weight: 600;
}

.property-map-fallback{
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    background: var(--bg-eef5fb, #eef5fb);
    border-radius: 10px;
    cursor: pointer;
}

.property-map-fallback p{
    text-align: center;
    color: var(--tx-475569, #475569);
    margin: 0;
    line-height: 1.45;
}

.property-map-fallback strong,
.property-map-fallback small{
    display: block;
}

@media (max-width: 768px){
    #property-map{
        height: 280px;
    }

    .property-map-expand{
        width: 40px;
        height: 40px;
        top: 10px;
        right: 10px;
    }
}


/* ======================================
   PROPERTY MAP POI FILTERS
====================================== */
.property-map-filter-dropdown{
    background: transparent;
}

.property-map-filter-inner{
    position: relative;
}

.property-map-filter-btn{
    width: 42px;
    height: 42px;
    padding: 0;
    background: rgba(var(--glass, 255, 255, 255), 0.96);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--tx-374151, #374151);
    box-shadow: 0 10px 28px rgba(15,23,42,0.16);
}

.property-map-filter-btn:hover{
    background: var(--bg-e8f1fb, #e8f1fb);
    color: var(--tx-111827, #111827);
}

.property-map-filter-menu{
    display: none;
    position: absolute;
    bottom: calc(100% + 8px);
    right: 0;
    min-width: 190px;
    background: rgba(var(--glass, 255, 255, 255), 0.96);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(15,23,42,0.12);
    border-radius: 12px;
    box-shadow: 0 16px 40px rgba(15,23,42,0.22);
    padding: 10px;
    z-index: 9999;
}

.property-map-filter-menu.open{
    display: block;
}

.property-map-filter-item{
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    padding: 8px 6px;
    cursor: pointer;
    border-radius: 10px;
    color: var(--tx-0b1220, #0b1220);
}

.property-map-filter-item:hover{
    background: rgba(0,94,184,0.12);
}

.property-map-filter-item input{
    width: 16px;
    height: 16px;
}

.property-poi-hint{
    padding: 6px 6px 2px;
    font-size: 11px;
    color: var(--tx-475569, #475569);
}

.property-poi-icon{
    width: 30px;
    height: 30px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    border: 2px solid var(--bd-ffffff, #ffffff);
    box-shadow: 0 8px 18px rgba(15,23,42,0.22);
    font-size: 13px;
}

.property-poi-icon.school{
    background: #0077d9;
}

.property-poi-icon.transit{
    background: #005eb8;
}

/* Grote woning-map: lagenfilter boven POI-filter en onder de sluitknop */
#large-property-map .leaflet-top.leaflet-right{
    top: 62px;
    right: 12px;
}

#large-property-map .leaflet-top.leaflet-right .leaflet-control{
    clear: both;
    margin-top: 0;
    margin-bottom: 10px;
}

#large-property-map .leaflet-top.leaflet-right .property-map-filter-dropdown{
    margin-top: 0;
}

.leaflet-top.leaflet-right .property-map-filter-menu{
    top: calc(100% + 8px);
    bottom: auto;
    right: 0;
    left: auto;
}

#large-property-map .leaflet-top.leaflet-right .leaflet-control-layers{
    margin-bottom: 10px;
}


/* ======================================
   CORRECT STACK: linksonder controls in vaste volgorde
   Onder: zoomknoppen
   Midden: scholen / openbaar vervoer
   Boven: lagenfilter
====================================== */
#large-property-map .leaflet-bottom.leaflet-left{
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 8px !important;
    left: 12px !important;
    bottom: 12px !important;
}

#large-property-map .leaflet-bottom.leaflet-left .leaflet-control{
    float: none !important;
    clear: none !important;
    margin: 0 !important;
}

#large-property-map .leaflet-bottom.leaflet-left .leaflet-control-layers{
    order: 1 !important;
}

#large-property-map .leaflet-bottom.leaflet-left .property-map-filter-dropdown{
    order: 2 !important;
}

#large-property-map .leaflet-bottom.leaflet-left .leaflet-control-zoom{
    order: 3 !important;
}

#large-property-map .leaflet-bottom.leaflet-left .property-map-filter-menu{
    bottom: auto !important;
    top: 0 !important;
    left: calc(100% + 8px) !important;
    right: auto !important;
}

#large-property-map .leaflet-bottom.leaflet-left .leaflet-control-layers-expanded{
    margin-bottom: 0 !important;
}

#property-map .leaflet-bottom.leaflet-left{
    left: 10px !important;
    bottom: 10px !important;
}


/* ======================================
   RIGHT STACK: controls rechtsonder in vaste volgorde
   Onder: zoomknoppen
   Midden: scholen / openbaar vervoer
   Boven: lagenfilter
====================================== */
#large-property-map .leaflet-bottom.leaflet-right{
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-end !important;
    gap: 8px !important;
    right: 12px !important;
    bottom: 12px !important;
}

#large-property-map .leaflet-bottom.leaflet-right .leaflet-control{
    float: none !important;
    clear: none !important;
    margin: 0 !important;
}

#large-property-map .leaflet-bottom.leaflet-right .leaflet-control-layers{
    order: 1 !important;
}

#large-property-map .leaflet-bottom.leaflet-right .property-map-filter-dropdown{
    order: 2 !important;
}

#large-property-map .leaflet-bottom.leaflet-right .leaflet-control-zoom{
    order: 3 !important;
}

#large-property-map .leaflet-bottom.leaflet-right .property-map-filter-menu{
    bottom: auto !important;
    top: 0 !important;
    right: calc(100% + 8px) !important;
    left: auto !important;
}

#large-property-map .leaflet-bottom.leaflet-right .leaflet-control-layers-expanded{
    margin-bottom: 0 !important;
}

#property-map .leaflet-bottom.leaflet-right{
    right: 0px !important;
    bottom: 10px !important;
}

/* ======================================
   PHOTO OVERVIEW POPUP + LIGHTBOX
   Eerst alle foto's onder elkaar, daarna klikbaar vergroten
====================================== */
.photo-overview-popup{
    display: none;
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    background: var(--bg-ffffff, #ffffff);
    z-index: 5000;
    align-items: flex-start;
    justify-content: center;
    overflow-y: auto;
}

.photo-overview-content{
    width: 100%;
    min-height: 100vh;
    background: var(--bg-ffffff, #ffffff);
}

.photo-overview-header{
    position: sticky;
    top: 0;
    z-index: 5010;
    display: grid;
    grid-template-columns: 48px 1fr 48px;
    align-items: center;
    gap: 12px;
    min-height: 68px;
    padding: 12px 5%;
    background: rgba(var(--glass, 255, 255, 255), 0.96);
    border-bottom: 1px solid var(--bd-eeeeee, #eeeeee);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.photo-overview-back,
.photo-lightbox-back{
    width: 42px;
    height: 42px;
    border-radius: 999px;
    border: 1px solid var(--bd-e5e7eb, #e5e7eb);
    background: var(--bg-ffffff, #ffffff);
    color: var(--tx-111827, #111827);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, transform 0.2s ease;
}

.photo-overview-back:hover,
.photo-lightbox-back:hover{
    background: var(--bg-e8f1fb, #e8f1fb);
    transform: translateY(-1px);
}

.photo-overview-tabs{
    grid-column: 2;
    justify-self: center;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px;
    border-radius: 999px;
    background: var(--bg-e8f1fb, #e8f1fb);
}

.photo-overview-tab{
    border: none;
    background: transparent;
    color: var(--tx-111827, #111827);
    border-radius: 999px;
    padding: 10px 22px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.photo-overview-tab.active{
    background: linear-gradient(135deg, #005eb8, #0077d9);
    color: #ffffff;

}

.photo-overview-body{
    width: min(980px, 100%);
    margin: 0 auto;
    padding: 22px 20px 48px;
}

.photo-overview-panel{
    display: none;
}

.photo-overview-panel.active{
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.photo-overview-image-button{
    display: block;
    width: 100%;
    padding: 0;
    margin: 0;
    border: none;
    background: transparent;
    cursor: zoom-in;
    border-radius: 0px;
    overflow: hidden;
    box-shadow: 0 10px 28px rgba(15,23,42,0.10);
}

.photo-overview-image-button img{
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
    transition: transform 0.35s ease, filter 0.35s ease;
}

.photo-overview-image-button:hover img{
    transform: scale(1.015);
    filter: brightness(0.96);
}

.floorplan-empty-state{
    min-height: 360px;
    border: 1px dashed var(--bd-cbd5e1, #cbd5e1);
    border-radius: 14px;
    background: var(--bg-f8fafc, #f8fafc);
    color: var(--tx-475569, #475569);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 12px;
    padding: 28px;
}

.floorplan-empty-state p{
    margin: 0;
    font-size: 16px;
    font-weight: 500;
}

.photo-lightbox{
    display: none;
    position: fixed;
    inset: 0;
    z-index: 6000;
    background: rgba(0,0,0,0.94);
    align-items: center;
    justify-content: center;
    padding: 82px 28px 28px;
}

.photo-lightbox-back{
    position: fixed;
    top: 18px;
    left: 18px;
    z-index: 6010;
}

.photo-lightbox img{
    display: block;
    max-width: 100%;
    max-height: calc(100vh - 120px);
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 18px 55px rgba(0,0,0,0.35);
}

@media (max-width: 768px){
    .photo-overview-header{
        grid-template-columns: 44px 1fr 44px;
        min-height: 62px;
        padding: 10px 14px;
    }

    .photo-overview-back,
    .photo-lightbox-back{
        width: 38px;
        height: 38px;
    }

    .photo-overview-tabs{
        gap: 5px;
    }

    .photo-overview-tab{
        padding: 8px 14px;
        font-size: 14px;
    }

    .photo-overview-body{
        padding: 12px 0 28px;
    }

    .photo-overview-panel.active{
        gap: 10px;
    }

    .photo-overview-image-button{
        border-radius: 0;
        box-shadow: none;
    }

    .floorplan-empty-state{
        margin: 12px 14px;
        min-height: 300px;
    }

        .photo-lightbox-back{
        top: 14px;
        left: 14px;
    }

    }


/* ======================================
   HEADER VERBERGEN BIJ FOTO POPUP
   Header blijft normaal zichtbaar op property.php,
   maar verdwijnt zodra de foto-popup of lightbox open is.
====================================== */
body.photo-overview-open header,
body.photo-overview-open .header,
body.photo-overview-open .site-header,
body.photo-overview-open .main-header,
body.photo-overview-open .top-header,
body.photo-overview-open .navbar,
body.photo-overview-open .nav-header,
body.photo-overview-open #header,
body.photo-overview-open #site-header,
body.photo-overview-open .mobile-header,
body.photo-overview-open .desktop-header{
    display: none !important;
}

body.photo-overview-open{
    overflow: hidden !important;
}

body.photo-overview-open .photo-overview-popup{
    z-index: 999999 !important;
}

body.photo-overview-open .photo-overview-header{
    top: 0 !important;
    z-index: 1000000 !important;
}

body.photo-overview-open .photo-lightbox{
    z-index: 1000001 !important;
}

body.photo-overview-open .photo-lightbox-back{
    z-index: 1000002 !important;
}

/* ======================================
   NEIGHBORHOOD SECTION
   Kaart + scholen / plaatsen / openbaar vervoer
====================================== */
.neighborhood-section{
    margin-top: 34px;
    padding-top: 4px;
}

.neighborhood-section h2{
    font-size: 1.5em;
    font-weight: 500;
    color: var(--tx-111827, #111827);
    margin: 0 0 22px;
}

.neighborhood-card{
    width: 100%;
    background: var(--bg-ffffff, #ffffff);
}

.neighborhood-map-wrap{
    position: relative;
    width: 100%;
    height: 385px;
    overflow: hidden;
    background: var(--bg-eef5fb, #eef5fb);
    border: 1px solid var(--bd-f1f1f1, #f1f1f1);
    border-radius: 5px;
}

#neighborhood-map{
    width: 100%;
    height: 100%;
    background: var(--bg-eef5fb, #eef5fb);
    filter: saturate(1.05) brightness(1.02);
}

#neighborhood-map .leaflet-tile-pane{
    filter: saturate(1.08) brightness(1.02) contrast(1.01);
}

#neighborhood-map .leaflet-control-zoom{
    border: none !important;
    border-radius: 5px !important;
    box-shadow: 0 10px 28px rgba(15,23,42,0.16) !important;
    overflow: hidden;
}

#neighborhood-map .leaflet-control-zoom a{
    width: 42px !important;
    height: 42px !important;
    line-height: 42px !important;
    border-bottom: 1px solid var(--bd-efefef, #efefef);
    color: var(--tx-374151, #374151) !important;
    background: rgba(var(--glass, 255, 255, 255), 0.96) !important;
}





.neighborhood-commute-btn .material-symbols-outlined{
    font-size: 28px;
}

.neighborhood-tabs{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    align-items: end;
    border-bottom: 1px solid var(--bd-d1d5db, #d1d5db);
    margin-bottom: 16px;
}

.neighborhood-tab{
    min-height: 62px;
    border: none;
    border-bottom: 3px solid transparent;
    background: var(--bg-ffffff, #ffffff);
    color: var(--tx-111827, #111827);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    font-size: 18px;
    font-weight: 500;
    transition: color 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.neighborhood-tab.active{
    color: var(--tx-005eb8, #005eb8);
    border-bottom-color: #005eb8;
    font-weight: 500;
}

.neighborhood-tab:hover{
    color: var(--tx-005eb8, #005eb8);
    background: var(--bg-f8fafc, #f8fafc);
}

.neighborhood-place-filters{
    display: none;
    flex-wrap: wrap;
    gap: 12px 18px;
    padding: 0 10px 24px;
}

.neighborhood-chip{
    border: 1px solid var(--bd-d1d5db, #d1d5db);
    background: var(--bg-ffffff, #ffffff);
    color: var(--tx-111827, #111827);
    border-radius: 5px;
    padding: 9px 20px;
    font-size: 18px;
    font-weight: 400;
    cursor: pointer;
    transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.neighborhood-chip.active,
.neighborhood-chip:hover{
    background: #005eb8;
    border-color: #005eb8;
    color: #ffffff;
}

/* Overlay-control bovenop de kaart (Schools / Places / Transit) */
.neighborhood-map-overlay{
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    max-width: calc(100% - 28px);
}

.neighborhood-map-overlay .neighborhood-tabs{
    display: inline-flex;
    width: auto;
    grid-template-columns: none;
    align-items: center;
    background: var(--bg-ffffff, #ffffff);
    border-bottom: none;
    border-radius: 999px;
    padding: 4px;
    gap: 2px;
    margin-bottom: 0;
    box-shadow: 0 8px 22px rgba(15,23,42,0.18);
}

.neighborhood-map-overlay .neighborhood-tab{
    min-height: 40px;
    padding: 0 16px;
    border-radius: 999px;
    border-bottom: none;
    font-size: 14px;
    font-weight: 600;
    gap: 8px;
    white-space: nowrap;
}

.neighborhood-map-overlay .neighborhood-tab .material-symbols-outlined{
    font-size: 20px;
}

.neighborhood-map-overlay .neighborhood-tab.active{
    background: #005eb8;
    color: #ffffff;
    border-bottom-color: transparent;
}

.neighborhood-map-overlay .neighborhood-tab:hover{
    background: var(--bg-f0f5ff, #f0f5ff);
}

.neighborhood-map-overlay .neighborhood-tab.active:hover{
    background: #0053a6;
    color: #ffffff;
}

.neighborhood-map-overlay .neighborhood-place-filters{
    display: none;
    flex-wrap: wrap;
    gap: 6px;
    padding: 8px;
    background: var(--bg-ffffff, #ffffff);
    border-radius: 14px;
    box-shadow: 0 8px 22px rgba(15,23,42,0.18);
}

.neighborhood-map-overlay .neighborhood-chip{
    padding: 6px 12px;
    font-size: 13px;
    border-radius: 999px;
}

/* Statusmelding (laden / geen resultaten) onderin de kaart */
.neighborhood-map-status{
    position: absolute;
    left: 50%;
    bottom: 16px;
    transform: translate(-50%, 8px);
    z-index: 5;
    max-width: calc(100% - 32px);
    padding: 8px 16px;
    border-radius: 999px;
    background: rgba(17,24,39,0.88);
    color: #ffffff;
    font-size: 13px;
    font-weight: 500;
    text-align: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.neighborhood-map-status.visible{
    opacity: 1;
    transform: translate(-50%, 0);
}

/* Popup-inhoud op een marker */
.neighborhood-marker-popup{
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 13px;
    color: var(--tx-111827, #111827);
}

.neighborhood-marker-popup strong{
    font-size: 14px;
}

.neighborhood-marker-popup span{
    color: var(--tx-5b6470, #5b6470);
}

@media (max-width: 768px){
    .neighborhood-map-overlay{
        top: 10px;
        left: 10px;
        max-width: calc(100% - 20px);
        gap: 6px;
    }

    .neighborhood-map-overlay .neighborhood-tab{
        padding: 0 10px;
        font-size: 12px;
        min-height: 34px;
        gap: 4px;
    }

    .neighborhood-map-overlay .neighborhood-tab .material-symbols-outlined{
        font-size: 16px;
    }

    .neighborhood-map-overlay .neighborhood-chip{
        padding: 5px 10px;
        font-size: 12px;
    }
}

/* ======================================
   SIMILAR PROPERTIES
====================================== */
.similar-properties-section .property-section-title{
    margin-bottom: 20px;
}

.similar-properties-empty{
    margin: 0;
    padding: 16px 0 4px;
    color: var(--tx-6b7280, #6b7280);
    font-size: 14px;
    line-height: 1.5;
}

.similar-properties-grid{
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
}

.similar-property-card{
    display: flex;
    flex-direction: column;
    background: var(--bg-ffffff, #ffffff);
    border: 1px solid var(--bd-e5e7eb, #e5e7eb);
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.similar-property-card:hover{
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(15,23,42,0.14);
    border-color: var(--bd-d7dbe0, #d7dbe0);
}

.similar-property-image{
    position: relative;
    height: 160px;
    background-size: cover;
    background-position: center;
    background-color: var(--bg-eef2f6, #eef2f6);
}

.similar-property-distance{
    position: absolute;
    right: 10px;
    bottom: 10px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(17,24,39,0.75);
    color: #ffffff;
    font-size: 12px;
    font-weight: 600;
}

.similar-property-body{
    padding: 14px 16px 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.similar-property-price{
    font-size: 17px;
    font-weight: 700;
    color: var(--tx-111827, #111827);
}

.similar-property-address{
    font-size: 14px;
    font-weight: 600;
    color: var(--tx-1f2937, #1f2937);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.similar-property-location{
    font-size: 13px;
    color: var(--tx-6b7280, #6b7280);
    margin-bottom: 6px;
}

.similar-property-features{
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    padding-top: 8px;
    border-top: 1px solid var(--bd-f0f1f3, #f0f1f3);
}

.similar-property-feature{
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    color: var(--tx-4b5563, #4b5563);
}

.similar-property-feature .material-symbols-outlined{
    font-size: 17px;
    color: var(--tx-6b7280, #6b7280);
}

@media (max-width: 768px){
    .similar-properties-grid{
        grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
        gap: 14px;
    }

    .similar-property-image{
        height: 130px;
    }

    .similar-property-body{
        padding: 12px 14px 14px;
    }
}

.neighborhood-results{
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 24px;
    padding: 0 10px 12px;
}

.neighborhood-result-icon,
.neighborhood-poi-icon{
    width: 34px;
    height: 34px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    box-shadow: 0 8px 18px rgba(15,23,42,0.22);
}

.neighborhood-result-icon.schools,
.neighborhood-poi-icon.school{
    background: #0f7f89;
}

.neighborhood-result-icon.places,
.neighborhood-poi-icon.place{
    background: #f97316;
}

.neighborhood-result-icon.transit,
.neighborhood-poi-icon.transit{
    background: #111827;
}

.neighborhood-result-main h3{
    margin: 0 0 6px;
    font-size: 18px;
    line-height: 1.25;
    font-weight: 600;
    color: var(--tx-000000, #000000);
}

.neighborhood-result-main p{
    margin: 0;
    color: var(--tx-5b6470, #5b6470);
    font-size: 15px;
    line-height: 1.35;
}

.neighborhood-loading,
.neighborhood-empty{
    grid-column: 1 / -1;
    padding: 18px 0 26px;
    color: var(--tx-475569, #475569);
    font-size: 16px;
}

@media (max-width: 992px){
    .neighborhood-map-wrap{
        height: 340px;
    }

    .neighborhood-results{
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px){
            

    

    .neighborhood-tabs{
        margin-bottom: 16px;
    }

    .neighborhood-tab{
        min-height: 62px;
        gap: 8px;
        font-size: 15px;
    }

        .neighborhood-place-filters{
        padding: 0 0 18px;
        gap: 10px;
    }

    .neighborhood-chip{
        font-size: 15px;
        padding: 8px 14px;
    }

    .neighborhood-results{
        padding: 0;
    }

    .neighborhood-result-item{
        grid-template-columns: 44px 1fr auto;
        gap: 10px;
        padding: 18px 0;
    }

    .neighborhood-result-main h3{
        font-size: 18px;
    }

    .neighborhood-result-main p{
        font-size: 15px;
    }

}

/* ======================================
   MOBIELE AANPASSINGEN WONING.PHP
   - property-map verbergen op mobiel
   - hoofdafbeeldingen direct swipebaar
   - vergrote afbeeldingen swipebaar via JS
====================================== */
.mobile-gallery-swiper{
    display: none;
}

@media (max-width: 768px){
    .top-right-column .map-container,
    #property-map-container,
    .google-like-property-map{
        display: none !important;
    }

    .property-gallery{
    flex-direction: column;
    height: auto;
    display: block;
    width: 100%;
    max-width: 100%;
    min-height: 0;
    margin: 0;
    overflow: visible;
    position: relative;
}

    .property-gallery .main-image{
        display: none;
    }

    .mobile-gallery-swiper{
        display: block;
        position: relative;
        width: 100%;
        height: 320px;
        min-height: 320px;
        overflow: hidden;
        background: var(--bg-eef5fb, #eef5fb);
    }

    .mobile-gallery-track{
        display: flex;
        width: 100%;
        height: 100%;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .mobile-gallery-track::-webkit-scrollbar{
        display: none;
    }

    .mobile-gallery-slide{
        flex: 0 0 100%;
        width: 100%;
        height: 100%;
        padding: 0;
        margin: 0;
        border: none;
        background: transparent;
        scroll-snap-align: start;
        cursor: pointer;
    }

    .mobile-gallery-slide img{
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    .mobile-gallery-dots{
        position: absolute;
        left: 50%;
        bottom: 14px;
        z-index: 4;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 7px;
        padding: 7px 10px;
        border-radius: 999px;
        background: rgba(0,0,0,0.22);
        transform: translateX(-50%);
        pointer-events: auto;
    }

    .mobile-gallery-dot{
        width: 7px;
        height: 7px;
        border-radius: 999px;
        border: 0;
        padding: 0;
        background: rgba(var(--glass, 255, 255, 255), 0.65);
        cursor: pointer;
        transition: width 0.2s ease, background 0.2s ease, transform 0.2s ease;
    }

    .mobile-gallery-dot.active,
    .mobile-gallery-dot[aria-current="true"]{
        width: 18px;
        background: var(--bg-ffffff, #ffffff);
    }

    .mobile-gallery-dot:focus-visible{
        outline: 2px solid var(--bd-ffffff, #ffffff);
        outline-offset: 3px;
    }

    .photo-lightbox{
    padding: 70px 0 0;
    touch-action: pan-y;
    user-select: none;
}

    .photo-lightbox img{
    width: 100%;
    max-height: calc(100vh - 76px);
    border-radius: 0;
    pointer-events: none;
}
}

@media (max-width: 480px){
    .mobile-gallery-swiper{
        height: 280px;
        min-height: 280px;
    }
}

/* ======================================
   PHOTO LIGHTBOX NAVIGATIE
   Bolletjes + desktop pijlen voor vergrote foto's
====================================== */
.photo-lightbox-arrow{
    position: fixed;
    top: 50%;
    z-index: 6010;
    width: 52px;
    height: 52px;
    border: none;
    border-radius: 999px;
    background: rgba(var(--glass, 255, 255, 255), 0.92);
    color: var(--tx-111827, #111827);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 12px 32px rgba(0,0,0,0.24);
    transform: translateY(-50%);
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.photo-lightbox-arrow:hover{
    background: var(--bg-e8f1fb, #e8f1fb);
    color: var(--tx-005eb8, #005eb8);
    transform: translateY(-50%) scale(1.06);
}

.photo-lightbox-arrow-left{
    left: 28px;
}

.photo-lightbox-arrow-right{
    right: 28px;
}

.photo-lightbox-arrow[hidden],
.photo-lightbox-dots[hidden]{
    display: none !important;
}

.photo-lightbox-dots{
    position: fixed;
    left: 50%;
    bottom: 40px;
    z-index: 6010;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 7px 10px;
    border-radius: 999px;
    background: rgba(0,0,0,0.28);
    transform: translateX(-50%);
}

.photo-lightbox-dot{
    width: 7px;
    height: 7px;
    border-radius: 999px;
    border: 0;
    padding: 0;
    background: rgba(var(--glass, 255, 255, 255), 0.65);
    cursor: pointer;
    transition: width 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.photo-lightbox-dot.active,
.photo-lightbox-dot[aria-current="true"]{
    width: 18px;
    background: var(--bg-ffffff, #ffffff);
}

.photo-lightbox-dot:focus-visible{
    outline: 2px solid var(--bd-ffffff, #ffffff);
    outline-offset: 3px;
}

body.photo-overview-open .photo-lightbox-arrow,
body.photo-overview-open .photo-lightbox-dots{
    z-index: 1000002 !important;
}

@media (max-width: 768px){
    .photo-lightbox-arrow{
        display: none !important;
    }

    .photo-lightbox-dots{
        bottom: 16px;
    }
}


/* ======================================
   WONING FEATURES: same thin icon style as index/search
====================================== */
.property-features.icon-features {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 16px;
    color: var(--tx-334155, #334155);
    background: #e0e0e033;
    padding: 10px;
    border-radius: 5px;
}

.property-features.icon-features .feature-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    color: inherit;
}

.property-features.icon-features .feature-icon {
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    font-size: 20px;
    line-height: 1;
    color: currentColor;
    font-variation-settings: 'FILL' 0, 'wght' 200, 'GRAD' 0, 'opsz' 24;
}

.property-features.icon-features .feature-value {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    color: var(--tx-000000, #000000);
    font-weight: 500;
    font-size: 16px;
    line-height: 1.2;
    white-space: nowrap;
}


.property-features.icon-features .feature-value .feature-text {
    font-weight: 400;
    color: var(--tx-666666, #666666);
}

.property-features.icon-features .feature-label,
.property-features.icon-features .feature-separator {
    display: none;
}

@media (max-width: 768px) {
        .property-features.icon-features .feature-item {
        gap: 4px;
    }

    .property-features.icon-features .feature-icon {
        width: 20px;
        height: 20px;
        flex-basis: 20px;
    }

    .property-features.icon-features .feature-value {
        font-size: 16px;
        font-weight: 500;
    }

    .property-features.icon-features .feature-item:nth-child(1) .feature-value .feature-text,
    .property-features.icon-features .feature-item:nth-child(2) .feature-value .feature-text {
        display: none;
    }

    .property-features.icon-features .feature-item:nth-child(3) .feature-value .feature-text,
    .property-features.icon-features .feature-item:nth-child(4) .feature-value .feature-text {
        font-size: 0;
    }

    .property-features.icon-features .feature-item:nth-child(3) .feature-value .feature-text::before,
    .property-features.icon-features .feature-item:nth-child(4) .feature-value .feature-text::before {
        content: "m²";
        font-size: 16px;
        color: var(--tx-666666, #666666);
        font-weight: 400;
    }
}


/* ======================================
   WONING.PHP GOOGLE ICON OVERRIDES
   Google Material Symbols styling for property.php.
====================================== */
.back-to-search .material-symbols-outlined{
    font-size: 20px;
    font-weight: 600;
    transition: transform 0.2s ease;
    line-height: 1;
}

.top-bar-right .action-button .material-symbols-outlined{
    font-size: 20px;
}

.top-bar-right .favorite-button .material-symbols-outlined.favorited{
    color: #ff4d4d;
    font-variation-settings: 'FILL' 1, 'wght' 200, 'GRAD' 0, 'opsz' 24;
}

.mobile-gallery-back .material-symbols-outlined,
.photo-overview-back .material-symbols-outlined,
.photo-lightbox-back .material-symbols-outlined,
.photo-lightbox-arrow .material-symbols-outlined,
.property-map-expand .material-symbols-outlined,
.property-map-filter-btn .material-symbols-outlined{
    font-size: 24px;
    line-height: 1;
}

.property-pin .material-symbols-outlined{
    transform: rotate(45deg);
    font-size: 18px;
    line-height: 1;
}

.property-pin-large .material-symbols-outlined{
    font-size: 22px;
}

.property-map-fallback .material-symbols-outlined{
    display: block;
    color: var(--tx-005eb8, #005eb8);
    font-size: 30px;
    margin-bottom: 10px;
}

.floorplan-empty-state .material-symbols-outlined{
    font-size: 40px;
    color: var(--tx-005eb8, #005eb8);
}

.neighborhood-tab .material-symbols-outlined{
    font-size: 28px;
    line-height: 1;
}

.neighborhood-result-icon .material-symbols-outlined,
.neighborhood-poi-icon .material-symbols-outlined,
.property-poi-icon .material-symbols-outlined{
    font-size: 20px;
    line-height: 1;
}

.property-features.icon-features .feature-icon.material-symbols-outlined{
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
    font-size: 24px;
    line-height: 1;
    color: currentColor;
    font-variation-settings: 'FILL' 0, 'wght' 200, 'GRAD' 0, 'opsz' 24;
}

@media (max-width: 768px){
    .neighborhood-tab .material-symbols-outlined{
    font-size: 22px;
}

    .property-features.icon-features .feature-icon.material-symbols-outlined{
        width: 24px;
        height: 24px;
        flex-basis: 24px;
        font-size: 24px;
    }
}


/* ======================================
   MOBIELE STICKY CONTACTKNOPPEN
   Sticky onderin tot de agent-informatie in beeld komt.
====================================== */
.mobile-bottom-agent-actions{
    display: none;
}

@media (max-width: 768px){
    body{
        padding-bottom: 100px;
    }

    /* property.php verbergt het hoofd-bottom-menu (body.hide-mobile-bottom-nav) en
       die regel zet padding-bottom terug naar 0 (site_nav.php, hogere
       specificiteit dan .body). Deze pagina heeft alsnog ruimte nodig voor de
       zwevende agent-balk hieronder, dus die 0 moet hier overruled worden. */
    body.hide-mobile-bottom-nav{
        padding-bottom: 100px !important;
    }

    /* Zwevend onderin met blur, zelfde stijl als het bottom-menu op o.a. de index.
       De brochure-knop is een compacte ronde icoonknop naast de brede primaire
       "Contact Agent"-knop, zodat het geen twee volle blokken naast elkaar zijn. */
    .mobile-bottom-agent-actions{
        position: fixed;
        left: 12px;
        right: 12px;
        bottom: calc(12px + env(safe-area-inset-bottom, 0px));
        z-index: 2500;
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 10px;
        border-radius: 10px;
        background: rgba(var(--glass, 255, 255, 255), 0.72);
        border: none;
        box-shadow: 0 8px 30px rgba(15, 23, 42, 0.14);
        backdrop-filter: blur(4px);
        -webkit-backdrop-filter: blur(4px);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateY(calc(100% + 24px));
        transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
    }

    .mobile-bottom-agent-actions.is-visible{
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateY(0);
    }

    .mobile-bottom-agent-actions.is-at-agent-info{
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateY(calc(100% + 24px));
    }

    .mobile-bottom-agent-button{
        min-height: 1px;
        border: none;
        cursor: pointer;
        transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
    }

    .mobile-bottom-contact-button{
        flex: 1;
        height: 48px;
        border-radius: 10px;
        padding: 0 18px;
        font-size: 15px;
        font-weight: 600;
        line-height: 1;
        background: #005db4;
        color: #ffffff;
    }

    .mobile-bottom-brochure-button{
        flex: 0 0 auto;
        height: 48px;
        border-radius: 10px;
        padding: 0 18px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 15px;
        font-weight: 600;
        line-height: 1;
        white-space: nowrap;
        background: rgb(255 255 255 / 10%);
        color: var(--tx-005cb0, #005cb0);
    }

    .mobile-bottom-agent-button:hover,
    .mobile-bottom-agent-button:focus{
        transform: translateY(-1px);
    }

    .mobile-bottom-contact-button:hover,
    .mobile-bottom-contact-button:focus{
        background: #1a68e0;
        border-color: #1a68e0;
        color: #ffffff;
    }

    .mobile-bottom-brochure-button:hover,
    .mobile-bottom-brochure-button:focus{
        background: rgba(43, 125, 250, 0.18);
        color: var(--tx-2b7dfa, #2b7dfa);
    }

    .right-column .property-sidebar{
        scroll-margin-bottom: 96px;
    }
}

@media (min-width: 769px){
    body{
        padding-bottom: 0;
    }
}

/* ======================================
   NIEUWE WONING GALLERY BADGES + MOBIELE ACTIES
   - FOR SALE badge desktop en mobiel
   - fototeller rechtsboven op mobiel
   - favorite/share naast adresgegevens op mobiel
====================================== */
.property-status-badge{
    /* Vervangen door .property-status-pill in het adresvak (mobiel + desktop);
       stond hiervoor op de foto zelf. */
    position: absolute;
    top: 18px;
    left: 18px;
    z-index: 5;
    display: none;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 6px 6px;
    border-radius: 4px;
    background: rgba(17,17,17,0.94);
    color: #ffffff;
    font-size: 15px;
    font-weight: 500;
    line-height: 1;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    box-shadow: 0 8px 22px rgba(0,0,0,0.20);
    pointer-events: none;
}

.property-status-badge.status-for_sale { background: rgba(5,150,105,0.94); }
.property-status-badge.status-for_rent { background: rgba(0,94,184,0.94); }
.property-status-badge.status-under_contract { background: rgba(234,127,26,0.94); }
.property-status-badge.status-sold { background: rgba(220,38,38,0.94); }
.property-status-badge.status-commercial { background: rgba(124,58,237,0.94); }

.mobile-gallery-count{
    display: none;
}

@media (max-width: 768px){
    .property-status-badge{
        top: 18px;
        left: 18px;
        min-height: 30px;
        padding: 6px 6px;
        border-radius: 4px;
        font-size: 14px;
        z-index: 6;
    }

    .mobile-gallery-actions{
    position: absolute;
    top: 18px;
    left: 18px;
    right: 18px;
    z-index: 3;
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
    pointer-events: none;
}

    .mobile-gallery-back{
    width: 44px;
    height: 44px;
    border-radius: 999px;
    background: rgba(var(--glass, 255, 255, 255), 0.92);
    color: var(--tx-111827, #111827);
    border: 1px solid rgba(17,24,39,0.08);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    cursor: pointer;
    pointer-events: auto;
    font-size: 16px;
    padding: 0;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: 0 8px 22px rgba(15,23,42,0.12);
}

    .mobile-gallery-count{
        min-height: 30px;
        padding: 6px 6px;
        border: 1px solid rgba(17,24,39,0.08);
        border-radius: 4px;
        background: rgba(var(--glass, 255, 255, 255), 0.94);
        color: var(--tx-111827, #111827);
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 7px;
        font-size: 14px;
        font-weight: 500;
        line-height: 1;
        box-shadow: 0 8px 22px rgba(15,23,42,0.12);
        cursor: pointer;
        pointer-events: auto;
    }

    .mobile-gallery-count .material-symbols-outlined{
        font-size: 20px;
        font-variation-settings: 'FILL' 0, 'wght' 200, 'GRAD' 0, 'opsz' 24;
    }

        .property-header-actions{
    /* Zie de algemene regel: dit blok is vervangen door .top-bar-actions /
       .mobile-photo-actions, overal verborgen. */
    display: none !important;
}

    .property-action-icon{
        width: 48px;
        height: 48px;
        border-radius: 999px;
        border: 1px solid var(--bd-d6d6d6, #d6d6d6);
        background: var(--bg-ffffff, #ffffff);
        color: var(--tx-111827, #111827);
        align-items: center;
        justify-content: center;
        box-shadow: none;
    }

    .property-action-icon .material-symbols-outlined{
    font-size: 27px;
    margin-bottom: 0;
    color: var(--tx-707070, #707070);
    font-variation-settings: 'FILL' 0, 'wght' 200, 'GRAD' 0, 'opsz' 24;
}

    .property-action-icon .material-symbols-outlined.favorited{
        color: #ff4d4d;
        font-variation-settings: 'FILL' 1, 'wght' 200, 'GRAD' 0, 'opsz' 24;
    }

    .property-action-label{
        display: none !important;
    }
}

@media (min-width: 769px){
    .property-action-label{
        display: none !important;
    }
}

/* ======================================
   MOBIELE VOLGORDE PROPERTY HEADER
   Alleen mobiel: prijs -> adres -> details -> real estate laws
====================================== */
@media (max-width: 768px){
    .property-header{
        display: flex;
        flex-direction: column;
    }

    .property-address{
    gap: 0px;
    align-items: flex-start;
    order: 1;
    width: 100%;
}

    .address-details{
    min-width: 0;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    width: 100%;
}

    .price-law-row{
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0;
    margin-top: 0;
    flex-wrap: nowrap;
    overflow: visible;
    order: 1;
    margin-bottom: 8px;
}

    .price-law-row .price-box{
    flex: 0 0 auto;
    white-space: nowrap;
    margin-top: 0;
}

    .address-street{
    font-size: 18px;
    order: 2;
}

    .address-location{
    font-size: 16px;
    order: 3;
    display: block;
    margin-top: 2px;
}

    .property-features.icon-features{
    gap: clamp(8px, 3vw, 14px);
    overflow: hidden;
    background: none;
    padding: 0px;
    order: 2;
    margin-top: 10px;
    width: 100%;
}

    .mobile-property-laws{
    display: inline-flex;
    margin-top: 16px;
    width: 100%;
    white-space: nowrap;
    line-height: 1.35;
    order: 3;
}
}

/* ======================================
   NEIGHBORHOOD PERFORMANCE + TYPE ICONS
   Snelle tabwissels, klikbare resultaten en herkenbare POI-kleuren.
====================================== */
.neighborhood-leaflet-icon{
    background: transparent !important;
    border: 0 !important;
}

.neighborhood-poi-icon,
.neighborhood-result-icon{
    flex: 0 0 auto;
}

.neighborhood-poi-icon.school,
.neighborhood-result-icon.school,
.neighborhood-result-icon.schools{
    background: #0f7f89;
}

.neighborhood-poi-icon.grocery,
.neighborhood-result-icon.grocery{
    background: #2e7d32;
}

.neighborhood-poi-icon.sports,
.neighborhood-result-icon.sports{
    background: #7b1fa2;
}

.neighborhood-poi-icon.entertainment,
.neighborhood-result-icon.entertainment{
    background: #c2185b;
}

.neighborhood-poi-icon.emergency,
.neighborhood-result-icon.emergency{
    background: #d32f2f;
}

.neighborhood-poi-icon.transit,
.neighborhood-result-icon.transit{
    background: #111827;
}

.neighborhood-poi-icon.place,
.neighborhood-result-icon.place,
.neighborhood-result-icon.places{
    background: #f97316;
}

.neighborhood-result-item{
    display: grid;
    grid-template-columns: 54px 1fr auto;
    align-items: start;
    gap: 14px;
    padding: 13px 0;
    border-bottom: 1px solid var(--bd-e5e7eb, #e5e7eb);
    cursor: pointer;
    border-radius: 6px;
    transition: background-color 0.18s ease, transform 0.18s ease;
}

.neighborhood-result-item:hover{
    background: var(--bg-f8fafc, #f8fafc);
}

.neighborhood-result-item:active{
    transform: translateY(1px);
}

#neighborhood-map .leaflet-marker-pane{
    z-index: 620;
}

#neighborhood-map .leaflet-tooltip{
    border: 0;
    border-radius: 6px;
    box-shadow: 0 8px 22px rgba(15,23,42,0.18);
    color: var(--tx-111827, #111827);
    font-size: 13px;
    font-weight: 500;
}

/* ======================================
   MAPBOX GL JS - PROPERTY + NEIGHBORHOOD
   Lazy-loaded from property.php to reduce map loads.
====================================== */
#property-map,
#large-property-map,
#neighborhood-map{
    position: relative;
    filter: none !important;
}

#property-map .mapboxgl-canvas,
#large-property-map .mapboxgl-canvas,
#neighborhood-map .mapboxgl-canvas{
    outline: none;
}

.mapbox-property-pin{
    width: 40px;
    height: 40px;
    border-radius: 50% 50% 50% 8px;
    background: #005eb8;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: rotate(-45deg);
    border: 2px solid var(--bd-ffffff, #ffffff);
    box-shadow: 0 10px 24px rgba(15,23,42,0.24);
}

.mapbox-property-pin .material-symbols-outlined{
    transform: rotate(45deg);
    font-size: 18px;
    line-height: 1;
}

.mapbox-property-pin-large{
    width: 48px;
    height: 48px;
}

.mapbox-property-pin-large .material-symbols-outlined{
    font-size: 22px;
}

#property-map .mapboxgl-ctrl-attrib{
    display: none;
}

#large-property-map .mapboxgl-popup-content,
#neighborhood-map .mapboxgl-popup-content{
    border-radius: 5px;
    box-shadow: 0 18px 45px rgba(15,23,42,0.22);
    border: 1px solid rgba(15,23,42,0.10);
    padding: 12px 14px;
}

#neighborhood-map .neighborhood-poi-icon{
    cursor: pointer;
}

.mapbox-token-warning{
    height: 100%;
    min-height: 220px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 24px;
    color: var(--tx-475569, #475569);
    background: var(--bg-eef5fb, #eef5fb);
}

/* ======================================
   FINAL REQUEST: Google-style Mapbox zoom buttons
   - Same controls as the search map.
   - Removes Mapbox's original bold zoom glyphs.
   - Uses thin Google Material Symbols add/remove icons.
====================================== */
#property-map .mapboxgl-ctrl-group,
#large-property-map .mapboxgl-ctrl-group,
#neighborhood-map .mapboxgl-ctrl-group{
    border: none !important;
    border-radius: 5px !important;
    box-shadow: 0 10px 28px rgba(15,23,42,0.16) !important;
    overflow: visible !important;
}

#property-map .mapboxgl-ctrl-group button + button,
#large-property-map .mapboxgl-ctrl-group button + button,
#neighborhood-map .mapboxgl-ctrl-group button + button{
    border-top: 1px solid var(--bd-efefef, #efefef) !important;
}

#property-map .mapboxgl-ctrl-group .mapboxgl-ctrl-zoom-in,
#property-map .mapboxgl-ctrl-group .mapboxgl-ctrl-zoom-out,
#large-property-map .mapboxgl-ctrl-group .mapboxgl-ctrl-zoom-in,
#large-property-map .mapboxgl-ctrl-group .mapboxgl-ctrl-zoom-out,
#neighborhood-map .mapboxgl-ctrl-group .mapboxgl-ctrl-zoom-in,
#neighborhood-map .mapboxgl-ctrl-group .mapboxgl-ctrl-zoom-out{
    position: relative !important;
    font-size: 0 !important;
    color: transparent !important;
    text-indent: -9999px !important;
    overflow: hidden !important;
}

#property-map .mapboxgl-ctrl-group .mapboxgl-ctrl-zoom-in .mapboxgl-ctrl-icon,
#property-map .mapboxgl-ctrl-group .mapboxgl-ctrl-zoom-out .mapboxgl-ctrl-icon,
#large-property-map .mapboxgl-ctrl-group .mapboxgl-ctrl-zoom-in .mapboxgl-ctrl-icon,
#large-property-map .mapboxgl-ctrl-group .mapboxgl-ctrl-zoom-out .mapboxgl-ctrl-icon,
#neighborhood-map .mapboxgl-ctrl-group .mapboxgl-ctrl-zoom-in .mapboxgl-ctrl-icon,
#neighborhood-map .mapboxgl-ctrl-group .mapboxgl-ctrl-zoom-out .mapboxgl-ctrl-icon{
    display: none !important;
    background-image: none !important;
}

#property-map .mapboxgl-ctrl-group .mapboxgl-ctrl-zoom-in::before,
#property-map .mapboxgl-ctrl-group .mapboxgl-ctrl-zoom-out::before,
#large-property-map .mapboxgl-ctrl-group .mapboxgl-ctrl-zoom-in::before,
#large-property-map .mapboxgl-ctrl-group .mapboxgl-ctrl-zoom-out::before,
#neighborhood-map .mapboxgl-ctrl-group .mapboxgl-ctrl-zoom-in::before,
#neighborhood-map .mapboxgl-ctrl-group .mapboxgl-ctrl-zoom-out::before{
    position: absolute !important;
    inset: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-family: 'Material Symbols Outlined' !important;
    font-variation-settings: 'FILL' 0, 'wght' 200, 'GRAD' 0, 'opsz' 24 !important;
    font-size: 24px !important;
    line-height: 1 !important;
    text-indent: 0 !important;
    color: var(--tx-374151, #374151) !important;
    -webkit-text-fill-color: var(--tx-374151, #374151) !important;
    pointer-events: none !important;
}

#property-map .mapboxgl-ctrl-group .mapboxgl-ctrl-zoom-in::before,
#large-property-map .mapboxgl-ctrl-group .mapboxgl-ctrl-zoom-in::before,
#neighborhood-map .mapboxgl-ctrl-group .mapboxgl-ctrl-zoom-in::before{
    content: 'add' !important;
}

#property-map .mapboxgl-ctrl-group .mapboxgl-ctrl-zoom-out::before,
#large-property-map .mapboxgl-ctrl-group .mapboxgl-ctrl-zoom-out::before,
#neighborhood-map .mapboxgl-ctrl-group .mapboxgl-ctrl-zoom-out::before{
    content: 'remove' !important;
}

#property-map .mapboxgl-ctrl-group button:hover,
#large-property-map .mapboxgl-ctrl-group button:hover,
#neighborhood-map .mapboxgl-ctrl-group button:hover{
    background: var(--bg-f3f4f6, #f3f4f6) !important;
}

@media (max-width: 992px){
    }

/* ======================================
   FINAL MAP CONTROL ALIGNMENT
   Zoomknoppen exact gelijk aan de expand-knop:
   - 12px van de rechterrand
   - 42px breed en hoog
   - geen extra Mapbox-marges
====================================== */
#property-map .mapboxgl-ctrl-bottom-right,
#large-property-map .mapboxgl-ctrl-bottom-right,
#neighborhood-map .mapboxgl-ctrl-bottom-right{
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    padding: 0 !important;
    right: 12px !important;
    bottom: 12px !important;
}

#property-map .mapboxgl-ctrl-bottom-right .mapboxgl-ctrl,
#large-property-map .mapboxgl-ctrl-bottom-right .mapboxgl-ctrl,
#neighborhood-map .mapboxgl-ctrl-bottom-right .mapboxgl-ctrl{
    margin: 0 !important;
}

#property-map .mapboxgl-ctrl-group button,
#large-property-map .mapboxgl-ctrl-group button,
#neighborhood-map .mapboxgl-ctrl-group button{
    width: 42px !important;
    height: 42px !important;
    background-color: rgba(var(--glass, 255, 255, 255), 0.96) !important;
    min-width: 42px !important;
    min-height: 42px !important;
}

@media (max-width: 992px){
    #property-map .mapboxgl-ctrl-group button,
    #large-property-map .mapboxgl-ctrl-group button,
    #neighborhood-map .mapboxgl-ctrl-group button{
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    min-height: 42px !important;
}
}

/* ======================================
   MOBIELE WITRUIMTE RONDOM BUURTKAART
   Alleen mobiel: ruimte links/rechts en 10px border-radius.
====================================== */
@media (max-width: 768px){
    .neighborhood-section{
    margin-top: 28px;
    padding-left: 0px;
    padding-right: 0px;
}

    .neighborhood-map-wrap{
    height: 300px;
    margin-left: 0;
    margin-right: 0;
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
}

    #neighborhood-map{
        border-radius: 10px;
    }
}

/* ======================================
   PROPERTY DETAIL CARDS
   Header + tags vormen samen één card.
   Description, Details en Neighborhood zijn losse cards.
====================================== */
body{
    background: var(--bg-f4f6f8, #f4f6f8);
}

.property-detail-container{
    max-width: 100vw;
    margin: 0;
    padding: 0;
    position: relative;
    background: var(--bg-fffdfb, #fffdfb);
}

.property-top-bar{
}

.property-content-card{
    width: 100%;
    background: var(--bg-ffffff, #ffffff);
    border: 1px solid #e2e6eab0;
    border-radius: 10px;
    padding: 24px;
    margin-bottom: 20px;
    overflow: hidden;
}

.property-header-card{
    padding: 24px;
}

.property-header{
    flex: 2;
    background: transparent;
    border-radius: 0;
    padding-bottom: 0;
    box-shadow: none;
    border-bottom: 1px solid var(--bd-e0e0e0, #e0e0e0);
    border: 0;
}

.property-header-card .tag{
    width: auto;
    min-width: 0;
    padding: 8px 14px;
    border-radius: 6px;
}

.property-description-card .property-description,
.property-details-card .accordion-grid,
.neighborhood-section-card .neighborhood-card{
    margin-bottom: 0;
}

.property-description-card .property-description h2,
.property-section-title,
.neighborhood-section-card > h2{
    margin-top: 0;
    padding-top: 0;
}

.property-section-title{
    margin-bottom: 15px;
    color: var(--tx-333333, #333333);
    font-size: 1.5em;
    font-weight: 500;
}

.property-details-card .accordion-grid{
    margin-top: 10px;
}

.property-details-card .read-all-details{
    margin-bottom: 0;
}

.property-details-fullwidth{
    flex: 0 0 100%;
    width: 100%;
    padding: 0 0 20px;
    order: 3;
    padding-bottom: 0;
}

.neighborhood-section-card{
    margin-top: 0;
    padding-top: 24px;
}

.neighborhood-section-card .neighborhood-card{
    background: transparent;
}

.neighborhood-section-card .neighborhood-results{
    padding-bottom: 0;
}

/* De makelaarskaart blijft als afzonderlijke witte card zichtbaar. */
/* Laat de kaarten en fotogalerij netjes op de nieuwe pagina-achtergrond staan. */
.property-gallery,
.property-two-columns{
    position: relative;
}

.mobile-property-breadcrumb{
    background:;
}

@media (max-width: 992px){
    .property-content-card{
        padding: 22px;
    }
}

@media (max-width: 768px){
    .property-content-card{
        padding: 18px;
        margin-bottom: 14px;
        border-radius: 10px;
    }

    .property-header-card{
        padding: 18px;
    }

        .property-header-card .tag{
        flex: 0 1 auto;
        width: auto;
        padding: 7px 11px;
        font-size: 13px;
    }

    .mobile-property-breadcrumb{
    display: block;
    padding: 12px 20px 0;
    color: #333333b3;
    font-size: 14px;
    line-height: 1.35;
    background: var(--bg-ffffff, #fff);
    padding-left: 20px;
    padding-right: 14px;
}

    .neighborhood-section-card{
        padding: 18px;
    }

    .neighborhood-section-card .neighborhood-map-wrap{
        width: 100%;
        margin-left: 0;
        margin-right: 0;
        border-radius: 10px;
    }
}


/* ======================================
   LAATSTE LAYOUTAANPASSINGEN
   - 10px tussen fotogalerij en property header
   - tags vullen de volledige beschikbare regel
   - desktop zijmarges maximaal 15%
====================================== */

/* De galerij levert zelf geen extra ondermarge; de content begint 10px lager. */
.property-gallery{
    display: flex;
    gap: 8px;
    margin-bottom: 0;
    align-items: flex-start;
    height: 455px;
    min-height: 470px;
    margin-top: 0px;
    max-width: 90%;
    overflow-x: hidden;
    margin-left: 5%;
    position: relative;
}

.property-two-columns{
    display: flex;
    gap: 20px;
    padding: 10px 15%;
    flex-wrap: wrap;
    padding-top: 25px;
    padding-left: 15%;
    padding-right: 15%;
}

/* Tags gelijkmatig over de volledige breedte verdelen. */
.property-header-card .property-tags .tag{
    flex: 1 1 0;
    width: auto;
    min-width: 0;
    text-align: center;
}

@media (max-width: 1200px){
    .property-two-columns{
    padding: 30px 5%;
    padding-left: 5%;
    padding-right: 5%;
}
}

@media (max-width: 768px){
    .property-two-columns{
        padding-top: 25px;
        padding-left: 14px;
        padding-right: 14px;
    }

    .property-header-card .property-tags{
    margin-top: 18px;
    padding-top: 16px;
    gap: 8px;
    flex-wrap: nowrap;
}

    .property-header-card .property-tags .tag{
        flex: 1 1 0;
        width: auto;
        min-width: 0;
        padding-left: 8px;
        padding-right: 8px;
        white-space: nowrap;
    }
}


/* ======================================
   TAGS LOS VAN DE PROPERTY HEADER
   Geen titel, border of schaduw rond het taggedeelte.
====================================== */
.property-key-tags-section{
    width: 100%;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
    margin: 0 0 20px;
}

/* Oude koppeling tussen header en tags uitschakelen. */
.property-header-card .property-tags{
    margin: 0;
    padding-top: 20px;
    border-top: 1px solid var(--bd-eceff2, #eceff2);
    flex-wrap: nowrap;
    display: flex;
    width: 100%;
    gap: 10px;
    padding: 0;
    border: 0;
}

@media (max-width: 768px){
    .property-key-tags-section{
        margin-bottom: 14px;
    }

        }


/* ======================================
   AGENT CARD - LISTED BY LAYOUT
   Nieuwe verticale indeling zoals in het aangeleverde voorbeeld.
====================================== */
.property-sidebar{
    flex: 0 0 320px;
    background: var(--bg-ffffff, #ffffff);
    border-radius: 10px;
    padding: 28px;
    border: 1px solid #e2e6eab0;
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.property-sidebar .agent-profile-block{
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    text-decoration: none;
    color: inherit;
}

.property-sidebar .agent-image:hover{
    border-color: transparent;
    transform: none;
}

.property-sidebar .agent-name{
    font-size: 20px;
    font-weight: 600;
    color: var(--tx-111827, #111827);
    text-align: left;
    margin: 0 0 4px;
    line-height: 1.3;
}

.property-sidebar .agent-company{
    margin: 0;
    color: var(--tx-4b5563, #4b5563);
    font-size: 15px;
    font-weight: 400;
    line-height: 1.45;
}

.property-sidebar .agent-stars{
    color: #ffb547;
    font-size: 20px;
    line-height: 1;
    letter-spacing: 2px;
}

.property-sidebar .agent-rating-value{
    color: var(--tx-4b5563, #4b5563);
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
}

.property-sidebar .agent-member-since{
    margin-top: 18px;
    color: var(--tx-4b5563, #4b5563);
    font-size: 15px;
    font-weight: 400;
    line-height: 1.4;
}

.property-sidebar .agent-action-buttons{
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    width: 100%;
    margin-top: 26px;
}

.property-sidebar .contact-button,
.property-sidebar .request-brochure-button{
    min-height: 50px;
    padding: 13px 18px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.2;
    box-shadow: none;
}

.property-sidebar .contact-button{
    background: #005eb8;
    color: #ffffff;
    border: 1px solid #005eb8;
    padding: 12px;
    border-radius: 8px;
    font-size: 1em;
    font-weight: 600;
    width: 100%;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
}

.property-sidebar .contact-button:hover{
    background: #004b93;
    transform: translateY(-1px);
    border-color: #004b93;
}

.property-sidebar .request-brochure-button{
    background: var(--bg-ffffff, #ffffff);
    color: var(--tx-005eb8, #005eb8);
    border: 1px solid #005eb8;
    padding: 10px;
    border-radius: 8px;
    font-size: 1em;
    font-weight: 600;
    width: 100%;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
}

.property-sidebar .request-brochure-button:hover{
    background: var(--bg-eef6ff, #eef6ff);
    transform: translateY(-1px);
    color: var(--tx-004b93, #004b93);
    border-color: #004b93;
}

/* Oude horizontale agentindeling uitschakelen. */
.property-sidebar .agent-info-container,
.property-sidebar .agent-text-container,
.property-sidebar .agent-title,
.property-sidebar .agent-credentials,
.property-sidebar .phone-link{
    display: none;
}

@media (max-width: 992px){
    .property-sidebar{
    flex: 1;
    padding: 24px;
}
}

@media (max-width: 768px){
    .property-sidebar{
        padding: 22px;
    }

        .property-sidebar .agent-image{
        width: 96px;
        height: 96px;
    }

    .property-sidebar .agent-action-buttons{
        margin-top: 22px;
    }
}


/* ======================================
   AGENT CARD - ZONDER FOTO + REVIEWS
====================================== */
.property-sidebar .agent-image{
    width: 104px;
    height: 104px;
    max-height: none;
    border-radius: 50%;
    border: 0;
    transition: border-color 0.3s ease, transform 0.3s ease;
    object-fit: cover;
    margin: 0 0 18px;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.10);
    display: none !important;
}

.property-sidebar .agent-listed-by{
    margin: 0 0 26px;
    color: var(--tx-111827, #111827);
    font-size: 16px;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 18px;
}

.property-sidebar .agent-rating{
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 18px;
    flex-wrap: wrap;
}

.property-sidebar .agent-review-count{
    color: var(--tx-6b7280, #6b7280);
    font-size: 14px;
    font-weight: 400;
    line-height: 1;
}

@media (max-width: 768px){
    .property-sidebar .agent-listed-by{
    margin-bottom: 18px;
}
}

/* ======================================
   DESCRIPTION EN PROPERTY MAP GELIJK UITLIJNEN
   Desktop: de description-card vult de resterende hoogte van de
   linkerkolom, zodat de onderkant exact gelijk staat met de kaart.
====================================== */
@media (min-width: 993px){
        .property-two-columns > .left-column{
        align-self: stretch;
    }

            .left-column .property-description-card{
        flex: 1 1 auto;
        display: flex;
        flex-direction: column;
        min-height: 0;
    }

    .left-column .property-description-card .property-description{
        flex: 1 1 auto;
        display: flex;
        flex-direction: column;
        min-height: 0;
    }

    .left-column .property-description-card .description-wrapper{
        flex: 1 1 auto;
    }

    /* Dezelfde verticale tussenruimte als bij de content-cards. */
    .right-column .google-like-property-map{
        margin-top: 20px;
        margin-bottom: 20px;
    }
}

/* ======================================
   DEFINITIEVE UITLIJNING DESCRIPTION + PROPERTY MAP
   Desktop gebruikt een echte tweekoloms grid. Hierdoor hebben de
   linker- en rechterkolom exact dezelfde hoogte en eindigen de
   description-card en property map op dezelfde horizontale lijn.
====================================== */
@media (min-width: 993px){
    .property-two-columns{
    align-items: stretch;
    display: grid !important;
    grid-template-columns: minmax(0, 2fr) 320px;
    /* Right column spans both rows so the agent card + map can stay
       sticky alongside Details too, not just the description. */
    grid-template-areas: "left right" "details right";
    gap: 20px;
}

    .property-two-columns > .left-column{
    display: flex;
    flex-direction: column;
    grid-area: left;
    min-width: 0;
    height: 100%;
}

    .property-two-columns > .right-column{
    display: flex;
    flex-direction: column;
    grid-area: right;
    width: 320px;
    min-width: 0;
    position: sticky;
    top: 96px;
    /* Deliberately not stretched to the row's full height: a sticky grid
       item needs its own box to stay content-sized so it can actually
       move within the (tall) grid area instead of already filling it. */
    align-self: start;
}

    .property-two-columns > .property-details-fullwidth{
        grid-area: details;
        width: 100%;
        min-width: 0;
    }

    /* So the sticky right column's bottom edge (bounded by this grid
       cell's content height) lines up exactly with the Similar properties
       card, instead of 20px lower because of that card's own trailing
       margin. */
    .property-two-columns > .property-details-fullwidth > *:last-child{
        margin-bottom: 0;
    }

    /* Description neemt alle resterende ruimte in de linkerkolom in. */
    .left-column > .property-description-card{
        flex: 1 1 auto;
        display: flex;
        flex-direction: column;
        min-height: 0;
        margin-bottom: 0;
    }

    .left-column > .property-description-card > .property-description{
        flex: 1 1 auto;
        display: flex;
        flex-direction: column;
        min-height: 0;
    }

    /* Agent bovenaan, kaart onderaan. */
    .right-column > .property-sidebar{
        flex: 0 0 auto;
    }

    .right-column > .google-like-property-map{
        flex: 0 0 auto;
        margin-top: 20px;
        margin-bottom: 0;
    }

    /* De eerste gridrij eindigt zonder verborgen marges. */
    .left-column > :last-child,
    .right-column > :last-child{
        margin-bottom: 0;
    }
}

/* ======================================
   MOBIELE AFSTAND DESCRIPTION -> DETAILS
   Verwijdert de extra flex-gap tussen de gestapelde hoofdsecties.
   De bestaande card margin-bottom van 14px blijft de enige afstand.
====================================== */
@media (max-width: 992px){
    .property-two-columns{
    flex-direction: column;
    padding: 30px 20px;
    gap: 0 !important;
}
}


/* ======================================
   DEFINITIEVE PROPERTY TAGS
   - maximaal 3 tags
   - altijd naast elkaar op 1 regel
   - gelijke breedte
   - tekst wordt via property.php automatisch verkleind
====================================== */
.property-key-tags-section .property-tags{
    display: grid !important;
    flex-wrap: nowrap;
    width: 100%;
    gap: 10px !important;
    margin: 0;
    padding: 0;
    border: 0;
}

.property-key-tags-section .property-tags-1{
    grid-template-columns:1fr !important;
}

.property-key-tags-section .property-tags-2{
    grid-template-columns:repeat(2,1fr) !important;
}

.property-key-tags-section .property-tags-3{
    grid-template-columns:repeat(3,1fr) !important;
}
.property-key-tags-section .property-tags-1 .tag{
    justify-content:flex-start !important;
    text-align:left !important;
    padding-left:16px !important;
}
.property-key-tags-section .property-tags .tag{
    flex: 1 1 0;
    width: 100% !important;
    min-width: 0;
    padding: 0 24px !important;
    border: 0;
    border-radius: 6px;
    text-align: center;
    display: flex !important;
    align-items: center;
    justify-content: center;
    height: 42px;
    overflow: hidden;
    white-space: nowrap !important;
    text-overflow: clip;
    font-size: 14px;
    line-height: 1;
}

@media (max-width: 768px){
.property-key-tags-section .property-tags{
    flex-wrap: wrap;
    gap: 8px !important;
}

    .property-key-tags-section .property-tags .tag{
    flex: 1 1 calc(50% - 4px);
    width: 100% !important;
    min-width: 0;
    padding: 0 24px !important;
    border: 0;
    font-size: 13px;
    white-space: nowrap !important;
    height: 38px;
    line-height: 1;
}
}

/* Terugknop linksboven op de grote foto: zelfde stijl/positie op mobiel en
   desktop (top:18/left:18 valt op beide altijd samen met de linkerbovenhoek
   van de hoofdfoto, want die staat altijd links in de galerij-rij). */
.property-gallery-back-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 18px;
    left: 18px;
    z-index: 6;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 999px;
    background: rgba(var(--glass, 255, 255, 255), 0.4);
    backdrop-filter: blur(14px) saturate(180%);
    -webkit-backdrop-filter: blur(14px) saturate(180%);
    color: var(--tx-000000, #000000);
    cursor: pointer;
    transition: background 0.2s ease, transform 0.15s ease;
}

.property-gallery-back-btn:hover {
    background: rgba(var(--glass, 255, 255, 255), 0.6);
    transform: scale(1.08);
}

.property-gallery-back-btn:active,
.property-gallery-back-btn.is-pressed {
    background: rgba(var(--glass, 255, 255, 255), 0.75);
    transform: scale(0.92);
}

.property-gallery-back-btn .material-symbols-outlined {
    font-size: 24px;
    font-variation-settings: 'FILL' 0, 'wght' 200, 'GRAD' 0, 'opsz' 24;
}

.mobile-status-row {
    display: none;
}

/* Favorite/deel-ovaal rechtsboven op de foto: zelfde stijl als de terugknop.
   Staat zowel op de mobiele foto (.mobile-gallery-swiper) als op de
   desktop-hoofdfoto (.main-image); die twee zijn nooit samen zichtbaar, dus
   deze stijl hoeft niet aan een breakpoint gebonden te zijn. */
.mobile-photo-actions {
    position: absolute;
    top: 18px;
    right: 18px;
    z-index: 6;
    display: flex;
    align-items: center;
    gap: 2px;
    padding: 3px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 999px;
    background: rgba(var(--glass, 255, 255, 255), 0.4);
    backdrop-filter: blur(14px) saturate(180%);
    -webkit-backdrop-filter: blur(14px) saturate(180%);
}

.mobile-photo-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border: none;
    border-radius: 999px;
    background: transparent;
    color: var(--tx-000000, #000000);
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.15s ease;
}

.mobile-photo-action-btn .material-symbols-outlined {
    font-size: 25px;
    font-variation-settings: 'FILL' 0, 'wght' 200, 'GRAD' 0, 'opsz' 24;
}

.mobile-photo-action-btn .material-symbols-outlined.favorited {
    color: #ff4d4d;
    font-variation-settings: 'FILL' 1, 'wght' 200, 'GRAD' 0, 'opsz' 24;
}

.mobile-photo-action-btn:hover {
    background: rgba(var(--glass, 255, 255, 255), 0.5);
    transform: scale(1.08);
}

.mobile-photo-action-btn:active,
.mobile-photo-action-btn.is-pressed {
    background: rgba(var(--glass, 255, 255, 255), 0.7);
    transform: scale(0.92);
}

@media (max-width: 768px) {
    .property-gallery {
        max-width: 100%;
        margin-left: 0;
        margin-right: 0;
        width: 100%;
        height: auto;
        min-height: 0;
    }

    .mobile-gallery-swiper {
        width: 100%;
    }

    .property-status-badge {
        left: auto;
        right: 18px;
        border: 1px solid rgba(255, 255, 255, 0.35);
        backdrop-filter: blur(14px) saturate(180%);
        -webkit-backdrop-filter: blur(14px) saturate(180%);
        text-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
    }

    .property-status-badge.status-for_sale       { background: rgba(5, 150, 105, 0.4); }
    .property-status-badge.status-for_rent       { background: rgba(0, 94, 184, 0.4); }
    .property-status-badge.status-under_contract { background: rgba(234, 127, 26, 0.4); }
    .property-status-badge.status-sold           { background: rgba(220, 38, 38, 0.4); }
    .property-status-badge.status-commercial     { background: rgba(124, 58, 237, 0.4); }

    .mobile-gallery-actions {
        top: auto;
        bottom: 18px;
        align-items: flex-end;
    }

    .mobile-gallery-count {
        border: 1px solid rgba(255, 255, 255, 0.4);
        background: rgba(var(--glass, 255, 255, 255), 0.4);
        backdrop-filter: blur(14px) saturate(180%);
        -webkit-backdrop-filter: blur(14px) saturate(180%);
        cursor: pointer;
        transition: background 0.2s ease, transform 0.15s ease;
    }

    .mobile-gallery-count:hover {
        background: rgba(var(--glass, 255, 255, 255), 0.6);
        transform: scale(1.05);
    }

    /* .is-pressed wordt via JS gezet op touchstart: op een echte telefoon vuurt
       :active vaak niet (of pas na vertraging), dus zonder dit zie je bij een
       tik niets gebeuren. */
    .mobile-gallery-count:active,
    .mobile-gallery-count.is-pressed {
        background: rgba(var(--glass, 255, 255, 255), 0.75);
        transform: scale(0.95);
    }

    /* Favorite/deel verhuizen naar de foto, het statuslabel verhuist naar het
       adresvak (zie .mobile-status-row hieronder). */
    .property-status-badge {
        display: none;
    }

    .property-header-actions {
        display: none !important;
    }

    /* Statuslabel (+ Nieuw-label) in het adresvak, i.p.v. op de foto. */
    .mobile-status-row {
        display: flex;
        align-items: center;
        gap: 6px;
        margin-left: auto;
    }
}

/* Statuslabel + Nieuw-label: zelfde pil-stijl op mobiel (naast de prijs) en
   desktop (naast het adres, zie .desktop-status-row). */
.property-status-pill {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    line-height: 1.3;
    color: #ffffff;
}

.property-status-pill.status-for_sale       { background: #059669; }
.property-status-pill.status-for_rent       { background: #005eb8; }
.property-status-pill.status-under_contract { background: #ea7f1a; }
.property-status-pill.status-sold           { background: #dc2626; }
.property-status-pill.status-commercial     { background: #7c3aed; }

.property-new-pill {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    line-height: 1.3;
    color: #ffffff;
    background: #111827;
}

.desktop-status-row {
    display: none;
}

.top-bar-actions {
    display: none;
}

@media (min-width: 769px) {
    .desktop-status-row {
        display: flex;
        align-items: center;
        gap: 8px;
        flex-shrink: 0;
        margin-top: 4px;
    }

    .top-bar-actions {
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .top-bar-actions .property-action-icon {
        width: auto;
        height: 36px;
        padding: 0 16px;
        display: inline-flex;
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: center;
        gap: 8px;
        font-size: 14px;
        font-weight: 500;
        line-height: 1;
        color: var(--tx-111827, #111827);
        border: none;
        background: transparent;
        white-space: nowrap;
    }

    .top-bar-actions .property-action-icon:hover {
        background: var(--bg-f3f4f6, #f3f4f6);
    }

    .top-bar-actions .property-action-icon .material-symbols-outlined {
        font-size: 22px;
        transform: translateY(-2px);
    }

    /* .property-action-label is elders altijd verborgen (!important); hier
       juist tonen, met hogere specificiteit zodat dat wint. */
    .top-bar-actions .property-action-label {
        display: inline-flex !important;
        align-items: center;
        line-height: 1;
        white-space: nowrap;
    }
}

/* ======================================
   Fotogalerij: vul altijd de volle breedte, ongeacht het aantal foto's
   gc-0 = 1 foto, gc-1 = 2 foto's, gc-2 = 3 foto's, gc-3 = 4 foto's, gc-4 = 5+ foto's
====================================== */
.property-gallery.gc-0 .thumbnails { display: none; }
.property-gallery.gc-0 .main-image { border-radius: 10px; }

.property-gallery.gc-1 .thumbnails { grid-template-columns: 1fr; grid-template-rows: 1fr; }
.property-gallery.gc-1 .thumbnail { border-radius: 0 10px 10px 0; }

.property-gallery.gc-2 .thumbnails { grid-template-columns: 1fr; grid-template-rows: 1fr 1fr; }
.property-gallery.gc-2 .thumbnail:nth-child(1) { border-top-right-radius: 10px; }
.property-gallery.gc-2 .thumbnail:nth-child(2) { border-top-right-radius: 0; border-bottom-right-radius: 10px; }

.property-gallery.gc-3 .thumbnail:nth-child(1) { grid-column: 1 / -1; border-top-right-radius: 10px; }
.property-gallery.gc-3 .thumbnail:nth-child(2) { border-top-right-radius: 0; }
.property-gallery.gc-3 .thumbnail:nth-child(3) { border-bottom-right-radius: 10px; }

/* ======================================
   Mobiel: smalle, scrollbare fotostrook onder de grote foto (property.php)
====================================== */
.mobile-thumb-strip {
    display: none;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.mobile-thumb-strip::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

@media (max-width: 768px) {
    .mobile-thumb-strip {
        display: flex;
        gap: 6px;
        width: 100%;
        padding: 8px 16px;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        box-sizing: border-box;
    }

    .mobile-thumb-strip::-webkit-scrollbar {
        display: none;
    }

    .mobile-thumb,
    .mobile-thumb-media {
        position: relative;
        flex: 0 0 auto;
        width: 96px;
        height: 68px;
        padding: 0;
        border: 2px solid transparent;
        border-radius: 8px;
        background: var(--bg-eef5fb, #eef5fb);
        overflow: hidden;
        cursor: pointer;
        opacity: 0.7;
        transition: opacity 0.2s ease, border-color 0.2s ease;
    }

    .mobile-thumb img,
    .mobile-thumb-media img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
        pointer-events: none;
    }

    .mobile-thumb.active {
        border-color: #002A1F;
        opacity: 1;
    }
}

/* Video- en plattegrond-thumbnail in de fotostrook (mobiel) */
@media (max-width: 768px) {
    .mobile-thumb-media {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 96px;
        height: 68px;
        text-decoration: none;
    }

    .mobile-thumb-media video {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
        pointer-events: none;
    }

    .mobile-thumb-play {
        position: absolute;
        top: 50%;
        left: 50%;
        width: 24px;
        height: 24px;
        margin: -16px 0 0 -12px;
        border-radius: 999px;
        background: rgba(0, 0, 0, 0.45);
        color: #ffffff;
        font-size: 20px;
        line-height: 24px;
        text-align: center;
        pointer-events: none;
    }

    .mobile-thumb-fileicon {
        font-size: 26px;
        color: var(--tx-6a6a6a, #6a6a6a);
        margin-bottom: 8px;
    }

    .mobile-thumb-label {
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        padding: 8px 2px 3px;
        background: linear-gradient(to top, rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0));
        color: #ffffff;
        font-size: 11px;
        font-weight: 500;
        line-height: 1.1;
        text-align: center;
        pointer-events: none;
    }
}

/* Videovenster (property.php) */
.property-video-modal {
    position: fixed;
    inset: 0;
    z-index: 7000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.88);
}

.property-video-modal[hidden] {
    display: none;
}

.property-video-modal video {
    width: 100%;
    max-width: 960px;
    max-height: 90vh;
    background: #000000;
}

.property-video-close {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 1;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 999px;
    background: rgba(var(--glass, 255, 255, 255), 0.9);
    color: var(--tx-000000, #000000);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Mobiel: 10px tussen de foto's (strook) en het blok met prijs/adres eronder */
@media (max-width: 768px) {
    .mobile-thumb-strip {
        padding-bottom: 0;
    }

    .property-two-columns {
        padding-top: 10px;
    }
}

/* Mobiel: "Listed by" (makelaar) onderaan, onder Neighborhood en boven Similar properties.
   De details-sectie wordt tijdelijk "doorzichtig" zodat de kaarten erin tussen de
   andere blokken gesorteerd kunnen worden. */
@media (max-width: 992px) {
    .property-two-columns > .property-details-fullwidth {
        display: contents;
    }

    .property-two-columns > .property-details-fullwidth > .property-details-card {
        order: 2;
    }

    .property-two-columns > .property-details-fullwidth > #neighborhood {
        order: 3;
    }

    .property-two-columns > .right-column {
        order: 4;
        margin-bottom: 14px;
    }

    .property-two-columns > .property-details-fullwidth > #similar-properties {
        order: 5;
    }
}

/* Documenten (pdf-bijlagen) op property.php */
.property-documents-list {
    list-style: none;
    margin: 14px 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.property-documents-list a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border: 1px solid var(--bd-e5e7eb, #e5e7eb);
    border-radius: 12px;
    background: var(--bg-ffffff, #ffffff);
    color: var(--tx-0b1220, #0b1220);
    text-decoration: none;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.property-documents-list a:hover {
    border-color: #005eb8;
    background: var(--bg-f0f7ff, #f0f7ff);
}

.property-documents-list .material-symbols-outlined {
    font-size: 24px;
    color: var(--tx-6a6a6a, #6a6a6a);
}

.property-document-name {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 500;
}

.property-document-size {
    color: var(--tx-6a6a6a, #6a6a6a);
    font-size: 13px;
    white-space: nowrap;
}

.property-documents-list a:hover .property-document-open {
    color: var(--tx-005eb8, #005eb8);
}

@media (max-width: 992px) {
    .property-two-columns > .property-details-fullwidth > .property-documents-card {
        order: 2;
    }
}


/* Desktop: knoppen voor video en plattegrond linksonder op de hoofdfoto */
.main-media-chips {
    position: absolute;
    left: 18px;
    bottom: 18px;
    z-index: 6;
    display: flex;
    gap: 8px;
}

.main-media-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px 8px 10px;
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 35px;
    background: rgba(var(--glass, 255, 255, 255), 0.55);
    -webkit-backdrop-filter: blur(14px) saturate(180%);
    backdrop-filter: blur(14px) saturate(180%);
    color: var(--tx-0b1220, #0b1220);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.2;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.15s ease;
}

.main-media-chip .material-symbols-outlined {
    font-size: 20px;
    font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 24;
}

.main-media-chip:hover {
    background: rgba(var(--glass, 255, 255, 255), 0.85);
    transform: translateY(-1px);
}

@media (max-width: 768px) {
    .main-media-chips {
        display: none;
    }
}

/* Listing activity: views, saved en shares in een eigen blok onder Details.
   Drie cijfers naast elkaar, gescheiden door een dun streepje; een rond icoonvlak links, het cijfer met het label eronder. */
.property-activity-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 6px;
}

.property-activity-tile {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 6px 24px;
    min-width: 0;
}

.property-activity-tile:first-child {
    padding-left: 0;
}

.property-activity-tile + .property-activity-tile {
    border-left: 1px solid var(--bd-e2e6ea, #e2e6ea);
}

.property-activity-badge {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(0, 94, 184, 0.08);
}

.property-activity-icon {
    font-size: 22px;
    color: #005eb8;
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

.property-activity-text {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
}

.property-activity-value {
    font-size: 26px;
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -0.01em;
    color: var(--tx-0b1220, #0b1220);
    font-variant-numeric: tabular-nums;
}

.property-activity-label {
    font-size: 13px;
    font-weight: 500;
    line-height: 1.3;
    color: var(--tx-6a6a6a, #6a6a6a);
}

@media (max-width: 992px) {
    .property-two-columns > .property-details-fullwidth > .property-activity-card {
        order: 2;
    }
}

/* Op een telefoon onder elkaar: icoon links, label ernaast en het cijfer rechts */
@media (max-width: 600px) {
    .property-activity-grid {
        grid-template-columns: 1fr;
    }

    .property-activity-tile,
    .property-activity-tile:first-child {
        padding: 12px 0;
    }

    .property-activity-tile + .property-activity-tile {
        border-left: 0;
        border-top: 1px solid var(--bd-e2e6ea, #e2e6ea);
    }

    .property-activity-badge {
        width: 40px;
        height: 40px;
    }

    .property-activity-text {
        flex: 1 1 auto;
        flex-direction: row-reverse;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
    }

    .property-activity-value {
        font-size: 22px;
    }

    .property-activity-label {
        font-size: 15px;
        color: var(--tx-334155, #334155);
    }
}

/* Kort meldinkje onderaan het scherm (bijv. "Link copied") */
.property-toast {
    position: fixed;
    left: 50%;
    bottom: 96px;
    z-index: 9000;
    padding: 10px 18px;
    border-radius: 35px;
    background: rgba(11, 18, 32, 0.92);
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
    opacity: 0;
    transform: translate(-50%, 8px);
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.property-toast.is-visible {
    opacity: 1;
    transform: translate(-50%, 0);
}

/* Stippen onder de foto's: maximaal 4 tegelijk zichtbaar. Het venster schuift met een animatie mee met de actieve foto;
   de stip aan de rand wordt kleiner als er daarachter nog meer foto's zijn. */
.mobile-gallery-dots .dots-window,
.photo-lightbox-dots .dots-window {
    overflow: hidden;
    max-width: 100%;
}

.mobile-gallery-dots .dots-track,
.photo-lightbox-dots .dots-track {
    display: flex;
    align-items: center;
    gap: 7px;
    width: max-content;
    transition: transform .28s ease;
}

.mobile-gallery-dots .dots-track > button,
.photo-lightbox-dots .dots-track > button {
    flex: 0 0 auto;
}

.mobile-gallery-dot,
.photo-lightbox-dot {
    transition: width .2s ease, background .2s ease, transform .28s ease, opacity .28s ease;
}

.mobile-gallery-dot.is-edge,
.photo-lightbox-dot.is-edge {
    transform: scale(.6);
    opacity: .75;
}
