.rw-objecten {
    --rw-border: #d8ded6;
    --rw-muted: #5d6b62;
    --rw-text: #17231b;
    --rw-accent: #2e6240;
    display: grid;
    gap: 28px;
    margin: 32px 0;
    position: relative;
}

/* Mobiele carousel weergave */
@media (max-width: 679px) {
    .rw-objecten {
        display: flex;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
        gap: 16px;
        padding: 0 16px;
        margin: 32px -16px;
        scrollbar-width: none; /* Firefox */
        -ms-overflow-style: none; /* IE/Edge */
    }
    
    .rw-objecten::-webkit-scrollbar {
        display: none; /* Chrome/Safari */
    }
    
    .rw-objecten .rw-object {
        flex: 0 0 85%;
        scroll-snap-align: center;
        scroll-snap-stop: always;
    }
}

.rw-objecten--cols-1,
.rw-objecten--cols-2,
.rw-objecten--cols-3,
.rw-objecten--cols-4 {
    grid-template-columns: 1fr;
}

.rw-object {
    background: #0c327424;
    border: 1px solid rgba(12, 50, 116, 0.2);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(12, 50, 116, 0.1);
    color: #0c3274;
    overflow: hidden;
    transition: all 0.3s ease;
}

.rw-object:hover {
    box-shadow: 0 8px 24px rgba(12, 50, 116, 0.2);
    transform: translateY(-4px);
}

.rw-object__media {
    aspect-ratio: 4 / 3;
    background: linear-gradient(135deg, #eef2ed 0%, #dce5da 100%);
    margin: 0;
    overflow: visible;
    position: relative;
}

.rw-object__media img {
    display: block;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
    width: 100%;
}

.rw-object__aanmelding {
    background: #0c3274;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(12, 50, 116, 0.2);
    color: #fff;
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.3px;
    margin: 0;
    padding: 6px 12px;
    position: absolute;
    right: 12px;
    bottom: -14px;
    text-transform: uppercase;
    z-index: 10;
}

.rw-object__body {
    padding: 18px;
}



.rw-objecten-notice {
    border-left: 4px solid #2e6240;
    padding: 10px 14px;
}

/* Carousel navigatie voor mobiel */
.rw-carousel-nav {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
}

@media (min-width: 680px) {
    .rw-carousel-nav {
        display: none;
    }
}

.rw-carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(12, 50, 116, 0.3);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.rw-carousel-dot.active {
    background: #0c3274;
    width: 24px;
    border-radius: 4px;
}

@media (min-width: 680px) {
    .rw-objecten--cols-2,
    .rw-objecten--cols-3,
    .rw-objecten--cols-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1040px) {
    .rw-objecten--cols-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .rw-objecten--cols-4 {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

/* Land object specifieke styling */
.rw-object--land .rw-object__body {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 20px;
    position: relative;
}

.rw-object__city {
    color: #0c3274;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.2;
    margin: 0;
    text-transform: uppercase;
}

.rw-object__address-line {
    color: #0c3274;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.4;
    margin: 0;
    margin-bottom: 0px !important;
}

.rw-object__details {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 8px 0;
    align-items: center;
}

.rw-object__detail-item {
    background: rgb(241 136 7);
    border: 1px solid rgb(241 136 7);
    border-radius: 6px;
    color: #ffffff;
    font-size: 15px;
    font-weight: 500;
    padding: 4px 10px;
}

.rw-object__link {
    display: inline-block;
    margin-left: auto;
    text-decoration: none;
    transition: all 0.3s ease;
}

.rw-object__link:hover {
    transform: translateX(4px);
}

.rw-object__link-img {
    height: auto;
    width: 50px;
    display: block;
}

/* Detail pagina */
.rw-detail {
    margin: 32px 0;
}

.rw-detail__title {
    font-size: 36px;
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 24px;
    color: #fdc842;
}

/* Gegevensdetails blok */
.rw-detail__meta {
    background: #0c3274;
    border-radius: 12px;
    padding: 32px;
    margin-bottom: 32px;
}

.rw-detail__meta-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    font-size: 16px;
    line-height: 1.5;
    padding: 14px 0;
}

.rw-detail__meta-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.rw-detail__meta-item:first-child {
    padding-top: 0;
}

.rw-detail__meta-item strong {
    color: #ffffff;
    display: inline-block;
    font-weight: 700;
    min-width: 140px;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 0.3px;
}

/* Foto's blok: 2 kolommen 50/50 */
.rw-detail__photos {
    display: grid;
    gap: 16px;
    grid-template-columns: 1fr;
    margin-bottom: 32px;
    position: relative;
}

@media (min-width: 900px) {
    .rw-detail__photos {
        grid-template-columns: 1fr 1fr;
    }
}

.rw-detail__photos-main {
    width: 100%;
}

.rw-detail__photos-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
}

.rw-detail__hero-image {
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(23, 35, 27, 0.1);
    overflow: hidden;
    position: relative;
    cursor: pointer;
    aspect-ratio: 4 / 3;
    background: linear-gradient(135deg, #eef2ed 0%, #dce5da 100%);
}

.rw-detail__hero-image img {
    display: block;
    height: 100%;
    width: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.rw-detail__hero-image:hover img {
    transform: scale(1.02);
}

.rw-detail__gallery-item {
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(23, 35, 27, 0.1);
    overflow: hidden;
    position: relative;
    cursor: pointer;
    aspect-ratio: 4 / 3;
    background: linear-gradient(135deg, #eef2ed 0%, #dce5da 100%);
}

.rw-detail__gallery-item img {
    display: block;
    height: 100%;
    width: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.rw-detail__gallery-item:hover img {
    transform: scale(1.03);
}

/* Bekijk alle afbeeldingen knop */
.rw-detail__photos-button {
    position: absolute;
    bottom: 16px;
    right: 16px;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    color: #fff;
    border: 2px solid #fff;
    border-radius: 8px;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 10;
}

.rw-detail__photos-button:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.rw-detail__photos-button svg {
    width: 20px;
    height: 20px;
}

/* Beschrijving blok */
.rw-detail__description-section {
    margin-bottom: 32px;
}

.rw-detail__description-wrapper {
    display: grid;
    gap: 24px;
    grid-template-columns: 1fr;
}

@media (min-width: 900px) {
    .rw-detail__description-wrapper {
        grid-template-columns: 3fr 1fr;
    }
}

.rw-detail__description {
    background: #fdc842;
    border-radius: 12px;
    padding: 32px;
    color: #000;
    font-size: 17px;
    line-height: 1.8;
}

.rw-detail__description-title {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 24px;
    color: #000;
}

.rw-detail__description p {
    margin-bottom: 16px;
    color: #000;
}

.rw-detail__description p:last-child {
    margin-bottom: 0;
}

/* Makelaar blok */
.rw-detail__makelaar {
    background: #74b94e;
    border: 3px solid #74b94e;
    border-radius: 12px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    height: fit-content;
    color: #fff;
}

.rw-detail__makelaar-foto {
    width: 100%;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
    margin-bottom: 16px;
    border: 3px solid #fff;
}

.rw-detail__makelaar-naam {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 8px;
    width: 100%;
    text-align: left;
}

.rw-detail__makelaar-email,
.rw-detail__makelaar-telefoon {
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    margin: 4px 0;
    width: 100%;
    text-align: left;
    transition: opacity 0.3s ease;
}

.rw-detail__makelaar-email:hover,
.rw-detail__makelaar-telefoon:hover {
    color: #000;
    opacity: 0.9;
    text-decoration: underline;
}

.rw-detail__makelaar-button {
    background: #0c3274;
    border: 2px solid #0c3274;
    border-radius: 8px;
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    margin-top: 12px;
    padding: 12px 20px;
    width: 100%;
    text-align: center;
    display: block;
    transition: all 0.3s ease;
}

.rw-detail__makelaar-button:hover {
    background: #fff;
    color: #0c3274;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(12, 50, 116, 0.2);
}

.rw-detail__back {
    background: #0c3274;
    border-radius: 8px;
    box-shadow: 0 3px 8px rgba(46, 98, 64, 0.2);
    color: #fff;
    display: inline-block;
    font-size: 16px;
    font-weight: 600;
    padding: 14px 28px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.rw-detail__back:hover {
    background: #1e4530;
    box-shadow: 0 4px 12px rgba(46, 98, 64, 0.3);
    color: #fff;
    transform: translateX(-4px);
}

/* Lightbox */
.rw-lightbox {
    align-items: center;
    background: rgba(0, 0, 0, 0.95);
    bottom: 0;
    display: flex;
    justify-content: center;
    left: 0;
    position: fixed;
    right: 0;
    top: 0;
    z-index: 9999;
}

.rw-lightbox__content {
    display: flex;
    align-items: center;
    justify-content: center;
    max-height: 90vh;
    max-width: 90vw;
    position: relative;
}

.rw-lightbox__content img {
    display: block;
    max-height: 90vh;
    max-width: 90vw;
    height: auto;
    width: auto;
    object-fit: contain;
}

.rw-lightbox__close,
.rw-lightbox__prev,
.rw-lightbox__next {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    color: #17231b;
    cursor: pointer;
    font-size: 32px;
    font-weight: 700;
    height: 50px;
    line-height: 1;
    position: fixed;
    transition: all 0.3s ease;
    width: 50px;
    z-index: 10000;
}

.rw-lightbox__close:hover,
.rw-lightbox__prev:hover,
.rw-lightbox__next:hover {
    background: #fff;
    transform: scale(1.1);
}

.rw-lightbox__close {
    right: 20px;
    top: 20px;
}

.rw-lightbox__prev {
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.rw-lightbox__prev:hover {
    transform: translateY(-50%) scale(1.1);
}

.rw-lightbox__next {
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.rw-lightbox__next:hover {
    transform: translateY(-50%) scale(1.1);
}

@media (max-width: 768px) {
    .rw-lightbox__close,
    .rw-lightbox__prev,
    .rw-lightbox__next {
        height: 40px;
        width: 40px;
        font-size: 24px;
    }
    
    .rw-lightbox__close {
        right: 10px;
        top: 10px;
    }
    
    .rw-lightbox__prev {
        left: 10px;
    }
    
    .rw-lightbox__next {
        right: 10px;
    }
}
