/* ==========================================================================
   NiroWPA Sync — Elementor Single Property Styles
   Styles for shortcode output on single property pages (Doenmakelaars design)
   ========================================================================== */

/* ---- Additional Custom Properties ---- */
:root {
    --nwpa-purple:       #2D1548;
    --nwpa-purple-light: #3d1f60;
}

/* ---- General Reset for Elementor context ---- */
.nwpa-el-hero,
.nwpa-el-prijs,
.nwpa-el-adres,
.nwpa-el-specs,
.nwpa-el-status,
.nwpa-el-omschrijving,
.nwpa-el-kenmerken,
.nwpa-el-interesse,
.nwpa-el-vergelijkbaar,
.nwpa-el-tabs,
.nwpa-el-gallery,
.nwpa-el-downloads,
.nwpa-el-buurtinfo {
    font-family: var(--nwpa-font, "DM Sans", sans-serif);
    color: var(--nwpa-text, #151515);
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ==========================================================================
   1. Hero Image
   ========================================================================== */

.nwpa-el-hero {
    position: relative;
    width: 100%;
    max-height: 500px;
    overflow: hidden;
    border-radius: 0;
}

.nwpa-el-hero img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 300px;
    max-height: 500px;
    object-fit: cover;
}

.nwpa-el-hero::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.45), transparent);
    pointer-events: none;
}

.nwpa-el-hero .nwpa-el-status {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 2;
}

/* ==========================================================================
   2. Price
   ========================================================================== */

.nwpa-el-prijs {
    font-size: 30px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--nwpa-text, #151515);
}

.nwpa-el-prijs__condition {
    font-size: 14px;
    font-weight: 400;
    color: var(--nwpa-text-secondary, #4b5563);
    margin-left: 4px;
}

/* ==========================================================================
   3. Address
   ========================================================================== */

.nwpa-el-adres {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.nwpa-el-adres__street {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--nwpa-text, #151515);
}

.nwpa-el-adres__city {
    font-size: 15px;
    font-weight: 400;
    line-height: 1.4;
    color: var(--nwpa-text-secondary, #4b5563);
}

/* ==========================================================================
   4. Specs Bar
   ========================================================================== */

.nwpa-el-specs {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 0;
}

.nwpa-el-specs__item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    position: relative;
}

.nwpa-el-specs__item:not(:last-child)::after {
    content: "";
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 32px;
    background: var(--nwpa-border, #D1D1D1);
}

.nwpa-el-specs__item:first-child {
    padding-left: 0;
}

.nwpa-el-specs__icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    color: var(--nwpa-primary, #ED7235);
}

.nwpa-el-specs__icon svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
}

.nwpa-el-specs__content {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.nwpa-el-specs__value {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--nwpa-text, #151515);
}

.nwpa-el-specs__label {
    font-size: 12px;
    font-weight: 400;
    line-height: 1.3;
    color: var(--nwpa-text-muted, #9C9CA3);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* ==========================================================================
   5. Status Badge
   ========================================================================== */

.nwpa-el-status {
    display: inline-block;
    padding: 5px 14px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.3;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #fff;
    border-radius: var(--nwpa-radius-xs, 6px);
    white-space: nowrap;
}

/* Status badge color definitions */
.nwpa-status--available, .nwpa-el-status.nwpa-status--available { background: #10b981; }
.nwpa-status--bid, .nwpa-el-status.nwpa-status--bid { background: #f59e0b; }
.nwpa-status--option, .nwpa-el-status.nwpa-status--option { background: #f59e0b; }
.nwpa-status--pending, .nwpa-el-status.nwpa-status--pending { background: #f59e0b; }
.nwpa-status--sold, .nwpa-el-status.nwpa-status--sold { background: #ef4444; }
.nwpa-status--rented, .nwpa-el-status.nwpa-status--rented { background: #6366f1; }
.nwpa-status--withdrawn, .nwpa-el-status.nwpa-status--withdrawn { background: #6b7280; }
.nwpa-status--default, .nwpa-el-status.nwpa-status--default { background: #6b7280; }

/* ==========================================================================
   6. Description
   ========================================================================== */

.nwpa-el-omschrijving {
    font-size: 15px;
    font-weight: 400;
    line-height: 1.7;
    color: var(--nwpa-text, #151515);
}

.nwpa-el-omschrijving p {
    margin: 0 0 16px;
}

.nwpa-el-omschrijving p:last-child {
    margin-bottom: 0;
}

.nwpa-el-omschrijving h3,
.nwpa-el-omschrijving h4 {
    font-size: 18px;
    font-weight: 700;
    margin: 24px 0 12px;
    color: var(--nwpa-text, #151515);
}

.nwpa-el-omschrijving__title {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 20px;
    color: var(--nwpa-text, #151515);
    letter-spacing: 0;
    text-transform: none;
    line-height: 1.2;
}

.nwpa-el-omschrijving__heading {
    font-size: 18px;
    font-weight: 700;
    margin: 28px 0 10px;
    color: var(--nwpa-text, #151515);
    letter-spacing: 0;
    text-transform: none;
}

.nwpa-el-omschrijving__heading:first-child {
    margin-top: 0;
}

.nwpa-el-omschrijving__list {
    margin: 0 0 16px;
    padding: 0 0 0 20px;
    list-style: disc;
}

.nwpa-el-omschrijving__list li {
    margin: 0 0 6px;
    line-height: 1.6;
}

.nwpa-el-omschrijving__list li:last-child {
    margin-bottom: 0;
}

.nwpa-el-omschrijving__cta {
    margin: 24px 0 0;
    padding: 16px 20px;
    background: var(--nwpa-bg, #F5F5F5);
    border-left: 3px solid var(--nwpa-primary, #ED7235);
    font-size: 14px;
    line-height: 1.6;
}

/* ==========================================================================
   7. Kenmerken Grid
   ========================================================================== */

.nwpa-el-kenmerken {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.nwpa-el-kenmerken__section {
    /* Each section takes one column */
}

.nwpa-el-kenmerken__heading {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--nwpa-purple);
    padding-bottom: 10px;
    margin: 0 0 0;
    border-bottom: 2px solid var(--nwpa-purple);
}

.nwpa-el-kenmerken__list {
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.nwpa-el-kenmerken__list dt,
.nwpa-el-kenmerken__list dd {
    margin: 0;
    padding: 10px 12px;
    font-size: 14px;
    line-height: 1.5;
}

.nwpa-el-kenmerken__list dt {
    font-weight: 400;
    color: var(--nwpa-text-secondary, #4b5563);
}

.nwpa-el-kenmerken__list dd {
    font-weight: 600;
    color: var(--nwpa-text, #151515);
    text-align: right;
}

/* Alternating row backgrounds */
.nwpa-el-kenmerken__list dt:nth-of-type(odd),
.nwpa-el-kenmerken__list dd:nth-of-type(odd) {
    background: var(--nwpa-bg, #F9F9F9);
}

.nwpa-el-kenmerken__list dt:nth-of-type(even),
.nwpa-el-kenmerken__list dd:nth-of-type(even) {
    background: var(--nwpa-white, #fff);
}

/* ---- Generic Button Classes ---- */

.nwpa-el-btn--primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px 24px;
    background: var(--nwpa-primary, #ED7235);
    color: #fff;
    font-family: var(--nwpa-font, "DM Sans", sans-serif);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-decoration: none;
    border: none;
    border-radius: var(--nwpa-radius-sm, 8px);
    cursor: pointer;
    transition: background 0.18s ease, box-shadow 0.18s ease;
}

.nwpa-el-btn--primary:hover {
    background: var(--nwpa-primary-hover, #d5601f);
    box-shadow: 0 4px 12px rgba(237, 114, 53, 0.3);
    color: #fff;
    text-decoration: none;
}

/* ==========================================================================
   9. Interest CTA
   ========================================================================== */

.nwpa-el-interesse {
    background: var(--nwpa-white, #fff);
    border: 1px solid var(--nwpa-border-light, #EBEBEB);
    border-radius: var(--nwpa-radius, 12px);
    padding: 28px;
}

.nwpa-el-interesse__heading {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--nwpa-text, #151515);
    margin: 0 0 8px;
}

.nwpa-el-interesse__text {
    font-size: 14px;
    line-height: 1.6;
    color: var(--nwpa-text-secondary, #4b5563);
    margin: 0 0 20px;
}

.nwpa-el-interesse__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px 24px;
    background: var(--nwpa-primary, #ED7235);
    color: #fff;
    font-family: var(--nwpa-font, "DM Sans", sans-serif);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-decoration: none;
    border: none;
    border-radius: var(--nwpa-radius-sm, 8px);
    cursor: pointer;
    transition: background var(--nwpa-transition, 0.18s ease),
                box-shadow var(--nwpa-transition, 0.18s ease);
}

.nwpa-el-interesse__btn:hover {
    background: var(--nwpa-primary-hover, #d5601f);
    box-shadow: 0 4px 12px rgba(237, 114, 53, 0.3);
    color: #fff;
    text-decoration: none;
}

.nwpa-el-interesse__btn-arrow {
    font-size: 16px;
    line-height: 1;
}

.nwpa-el-interesse h3 {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--nwpa-text, #151515);
    margin: 0 0 8px;
}

.nwpa-el-interesse p {
    font-size: 14px;
    line-height: 1.6;
    color: var(--nwpa-text-secondary, #4b5563);
    margin: 0 0 20px;
}

/* ==========================================================================
   10. Similar Properties
   ========================================================================== */

.nwpa-el-vergelijkbaar {
    margin-top: 48px;
}

.nwpa-el-vergelijkbaar__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 12px;
}

.nwpa-el-vergelijkbaar__heading {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--nwpa-text, #151515);
    margin: 0;
}

.nwpa-el-vergelijkbaar__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--nwpa-primary, #ED7235);
    text-decoration: none;
    transition: opacity var(--nwpa-transition, 0.18s ease);
}

.nwpa-el-vergelijkbaar__link:hover {
    opacity: 0.8;
}

.nwpa-el-vergelijkbaar__link-arrow {
    font-size: 14px;
    line-height: 1;
}

/* Grid uses same nwpa-card-wrap / nwpa-card structure as filter page */
.nwpa-el-vergelijkbaar__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--nwpa-gap, 24px);
}

/* Card box + image komen uit de ENE .nwpa-card definitie in frontend.css
   (aspect-ratio 302/350 + !important img-regels). Geen per-grid card-overrides,
   zodat vergelijkbare-woningen-cards identiek zijn aan het woningaanbod. */
.nwpa-el-vergelijkbaar__grid .nwpa-card-wrap {
    width: 100%;
}

.nwpa-el-vergelijkbaar__card {
    display: block;
    text-decoration: none;
    color: var(--nwpa-text, #151515);
    border-radius: var(--nwpa-radius, 12px);
    overflow: hidden;
    background: var(--nwpa-white, #fff);
    box-shadow: var(--nwpa-shadow, 0 1px 4px rgba(0, 0, 0, 0.08));
    transition: box-shadow 0.18s ease, transform 0.18s ease;
}

.nwpa-el-vergelijkbaar__card:hover {
    box-shadow: var(--nwpa-shadow-hover, 0 4px 16px rgba(0, 0, 0, 0.14));
    transform: translateY(-2px);
}

/* Old card classes removed — now uses nwpa-card-wrap/nwpa-card from frontend.css */

/* Footer link */
.nwpa-el-vergelijkbaar__footer {
    margin-top: 24px;
    text-align: center;
}

/* Title uses __title not __heading in the HTML */
.nwpa-el-vergelijkbaar__title {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--nwpa-text, #151515);
    margin: 0;
}

/* ==========================================================================
   10b. Map Section
   ========================================================================== */

.nwpa-el-map-section h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--nwpa-text, #151515);
    margin: 0 0 16px;
}

/* ==========================================================================
   11. Tabs
   ========================================================================== */

.nwpa-el-tabs__bar {
    display: flex;
    gap: 0;
    border-bottom: 1px solid var(--nwpa-border-light, #EBEBEB);
    margin-bottom: 24px;
}

.nwpa-el-tabs__tab {
    padding: 12px 20px;
    font-family: var(--nwpa-font, "DM Sans", sans-serif);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--nwpa-text-muted, #9C9CA3);
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    margin-bottom: -1px;
    cursor: pointer;
    transition: color var(--nwpa-transition, 0.18s ease),
                border-color var(--nwpa-transition, 0.18s ease);
    white-space: nowrap;
}

.nwpa-el-tabs__tab:hover {
    color: var(--nwpa-text-secondary, #4b5563);
}

.nwpa-el-tabs__tab--active,
.nwpa-el-tabs__tab.is-active {
    color: var(--nwpa-text, #151515);
    border-bottom-color: var(--nwpa-purple);
}

.nwpa-el-tabs__panel {
    display: none;
}

.nwpa-el-tabs__panel--active,
.nwpa-el-tabs__panel.is-active {
    display: block;
    animation: rwElFadeIn 0.2s ease;
}

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

/* ==========================================================================
   12. Gallery
   ========================================================================== */

.nwpa-el-gallery {
    position: relative;
    width: 100%;
}

.nwpa-el-gallery__main {
    position: relative;
    width: 100%;
    max-height: 500px;
    overflow: hidden;
    border-radius: var(--nwpa-radius, 12px);
}

.nwpa-el-gallery__main img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 300px;
    max-height: 500px;
    object-fit: cover;
    transition: opacity 0.2s ease;
}

.nwpa-el-gallery__status {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 2;
}

.nwpa-el-gallery__count {
    position: absolute;
    bottom: 12px;
    right: 12px;
    z-index: 2;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 4px;
    pointer-events: none;
}

.nwpa-el-gallery__thumbs {
    display: flex;
    gap: 8px;
    margin-top: 8px;
    overflow-x: auto;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
}

.nwpa-el-gallery__thumbs::-webkit-scrollbar {
    height: 4px;
}

.nwpa-el-gallery__thumbs::-webkit-scrollbar-thumb {
    background: var(--nwpa-border, #D1D1D1);
    border-radius: 2px;
}

.nwpa-el-gallery__thumb {
    flex-shrink: 0;
    width: 80px;
    height: 60px;
    border-radius: 6px;
    overflow: hidden;
    border: 2px solid transparent;
    padding: 0;
    cursor: pointer;
    background: none;
    opacity: 0.6;
    transition: opacity 0.18s ease, border-color 0.18s ease;
}

.nwpa-el-gallery__thumb:hover {
    opacity: 0.85;
}

.nwpa-el-gallery__thumb--active {
    opacity: 1;
    border-color: var(--nwpa-primary, #ED7235);
}

.nwpa-el-gallery__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ==========================================================================
   13. Downloads
   ========================================================================== */

.nwpa-el-downloads__list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.nwpa-el-downloads__item {
    border-bottom: 1px solid var(--nwpa-border-light, #EBEBEB);
}

.nwpa-el-downloads__item:last-child {
    border-bottom: none;
}

.nwpa-el-downloads__link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 8px;
    text-decoration: none;
    color: var(--nwpa-text, #151515);
    transition: background 0.15s ease;
    border-radius: 6px;
}

.nwpa-el-downloads__link:hover {
    background: var(--nwpa-bg, #F9F9F9);
}

.nwpa-el-downloads__icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--nwpa-primary, #ED7235);
    color: #fff;
    border-radius: 8px;
}

.nwpa-el-downloads__icon svg {
    width: 20px;
    height: 20px;
}

.nwpa-el-downloads__info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.nwpa-el-downloads__name {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    color: var(--nwpa-text, #151515);
}

.nwpa-el-downloads__meta {
    font-size: 12px;
    font-weight: 400;
    color: var(--nwpa-text-muted, #9C9CA3);
}

/* ==========================================================================
   14. Buurtinformatie
   ========================================================================== */

.nwpa-el-buurtinfo__section {
    margin-bottom: 28px;
}

.nwpa-el-buurtinfo__section:last-child {
    margin-bottom: 0;
}

.nwpa-el-buurtinfo__heading {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--nwpa-text, #151515);
    margin: 0 0 12px;
}

.nwpa-el-buurtinfo__tags {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.nwpa-el-buurtinfo__tag {
    display: inline-block;
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 500;
    background: var(--nwpa-bg, #F9F9F9);
    border: 1px solid var(--nwpa-border-light, #EBEBEB);
    border-radius: 20px;
    color: var(--nwpa-text-secondary, #4b5563);
}

.nwpa-el-buurtinfo__text {
    font-size: 15px;
    font-weight: 400;
    line-height: 1.7;
    color: var(--nwpa-text, #151515);
}

.nwpa-el-buurtinfo__text p {
    margin: 0 0 16px;
}

.nwpa-el-buurtinfo__text p:last-child {
    margin-bottom: 0;
}

.nwpa-el-buurtinfo__map {
    border-radius: var(--nwpa-radius, 12px);
    overflow: hidden;
    margin-top: 8px;
}

/* ==========================================================================
   15. Responsive
   ========================================================================== */

/* Tablet: 768–1024px */
@media (max-width: 1024px) {

    .nwpa-el-kenmerken {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .nwpa-el-vergelijkbaar__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .nwpa-el-prijs {
        font-size: 26px;
    }
}

/* Mobile: <768px */
@media (max-width: 767px) {

    .nwpa-el-gallery__main {
        max-height: 320px;
        border-radius: 0;
    }

    .nwpa-el-gallery__main img {
        min-height: 220px;
        max-height: 320px;
    }

    .nwpa-el-gallery__thumb {
        width: 64px;
        height: 48px;
    }

    .nwpa-el-hero {
        border-radius: 0;
        max-height: 320px;
    }

    .nwpa-el-hero img {
        min-height: 220px;
        max-height: 320px;
    }

    .nwpa-el-prijs {
        font-size: 24px;
    }

    .nwpa-el-adres__street {
        font-size: 18px;
    }

    .nwpa-el-specs {
        flex-direction: column;
        gap: 0;
    }

    .nwpa-el-specs__item {
        padding: 10px 0;
    }

    .nwpa-el-specs__item:not(:last-child)::after {
        display: none;
    }

    .nwpa-el-specs__item:not(:last-child) {
        border-bottom: 1px solid var(--nwpa-border-light, #EBEBEB);
    }

    .nwpa-el-kenmerken {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .nwpa-el-kenmerken__list {
        grid-template-columns: 1fr;
    }

    .nwpa-el-kenmerken__list dt,
    .nwpa-el-kenmerken__list dd {
        padding: 8px 10px;
    }

    .nwpa-el-kenmerken__list dd {
        text-align: left;
        padding-top: 0;
        font-weight: 700;
    }

    .nwpa-el-interesse {
        padding: 20px;
    }

    .nwpa-el-vergelijkbaar__grid {
        grid-template-columns: 1fr;
    }

    .nwpa-el-vergelijkbaar__heading {
        font-size: 20px;
    }

    .nwpa-el-tabs__bar {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .nwpa-el-tabs__bar::-webkit-scrollbar {
        display: none;
    }

    .nwpa-el-tabs__tab {
        padding: 10px 16px;
        font-size: 12px;
    }
}
