/* ======================================
   Typografie-experiment voor de woningpagina (property.php)
   Lettertype: "Delight" -> "Instrument Sans" -> sans-serif.
   Alles is gescoped op .pt-scope, dus de navigatie en footer blijven ongewijzigd.
   Terugdraaien: haal de <link> naar dit bestand en de .pt-scope-wrapper uit property.php weg.

   Let op: "Delight" is geen Google Font. Staat het niet op de computer van de bezoeker,
   dan valt de pagina terug op Instrument Sans. Voeg later een @font-face toe als je
   het lettertypebestand hebt (zie voorbeeld onderaan).
====================================== */
.pt-scope {
    display: contents;
    --pt-font: "Delight", "Instrument Sans", sans-serif;
    font-family: var(--pt-font);
    font-size: 15px;
    font-weight: 400;
    line-height: 1.5;
    letter-spacing: normal;
    color: var(--tx-222222, #222222);
}

/* Basis: alles in de pagina erft het lettertype (iconen blijven Material Symbols). */
.pt-scope :is(div, section, span, p, li, ul, a, button, input, select, textarea, label, small, strong, b, em, h1, h2, h3, h4, h5, h6, td, th) {
    font-family: var(--pt-font);
    letter-spacing: normal;
}

.pt-scope .material-symbols-outlined {
    font-family: 'Material Symbols Outlined' !important;
    letter-spacing: normal;
}

/* Lopende tekst */
.pt-scope p,
.pt-scope li,
.pt-scope .property-description,
.pt-scope .read-all-details {
    font-size: 17px;
    font-weight: 400;
    line-height: 1.5;
    color: var(--tx-222222, #222222);
}

/* Koppen */
.pt-scope h1,
.pt-scope h1.address-street {
    font-size: 26px;
    font-weight: 500;
    line-height: 1.25;
    color: var(--tx-002a1f, #002A1F);
}

.pt-scope h2,
.pt-scope h2.property-section-title,
.pt-scope .property-description h2,
.pt-scope .neighborhood-section h2 {
    font-size: 24px;
    font-weight: 500;
    line-height: 1.3;
    color: var(--tx-002a1f, #002A1F);
}

.pt-scope h3,
.pt-scope .similar-property-address {
    font-size: 18px;
    font-weight: 500;
    line-height: 1.3;
    color: var(--tx-002a1f, #002A1F);
}

/* Intro-/lead-tekst: de prijs bovenaan */
.pt-scope .price-box {
    font-size: 22px;
    font-weight: 500;
    line-height: 1.4;
    color: var(--tx-011e16, #011E16);
}

/* Labels */
.pt-scope label,
.pt-scope .detail-label,
.pt-scope .agent-listed-by,
.pt-scope .address-location,
.pt-scope .property-action-label {
    font-size: 16px;
    font-weight: 500;
    color: var(--tx-6a6a6a, #6A6A6A);
}

/* Adresregel (postcode, plaats, land): overal 14px */
.pt-scope .similar-property-location {
    font-size: 14px;
    font-weight: 400;
    color: var(--tx-6a6a6a, #6A6A6A);
}

/* Kleine tekst */
.pt-scope small,
.pt-scope .agent-member-since,
.pt-scope .agent-company,
.pt-scope .similar-property-distance,
.pt-scope .neighborhood-distance,
.pt-scope .neighborhood-map-status,
.pt-scope .rv-count,
.pt-scope .rv-none {
    font-size: 15px;
    font-weight: 400;
    color: var(--tx-6a6a6a, #6A6A6A);
}

/* Voorbeeld voor later, als je het Delight-lettertypebestand hebt:
@font-face {
    font-family: "Delight";
    src: url("/fonts/Delight-Regular.woff2") format("woff2");
    font-weight: 400;
    font-display: swap;
}
@font-face {
    font-family: "Delight";
    src: url("/fonts/Delight-Medium.woff2") format("woff2");
    font-weight: 500;
    font-display: swap;
}
*/

/* ======================================
   Property features als tegels: icoon links, rechts het aantal en daaronder de naam
   (stijl-experiment; verwijder dit blok om terug te gaan naar de oude regel).
====================================== */
.pt-scope .property-features.icon-features {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    align-items: stretch;
    width: 100%;
    margin-top: 16px;
    padding: 0;
    background: none;
    overflow: visible;
}

.pt-scope .property-features.icon-features .feature-item {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
    padding: 10px 18px;
    border-radius: 7px;
    background: var(--bg-f6f6f6, #f6f6f6);
}

.pt-scope .property-features.icon-features .feature-icon.material-symbols-outlined {
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
    font-size: 25px;
    line-height: 1;
    color: var(--tx-555555, #555555);
    font-variation-settings: 'FILL' 0, 'wght' 200, 'GRAD' 0, 'opsz' 24;
}

/* Het getal staat als losse tekst in .feature-value; door er een kolom van te maken
   komt het getal boven en de naam (.feature-text) eronder. */
.pt-scope .property-features.icon-features .feature-value {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    min-width: 0;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.25;
    color: var(--tx-002a1f, #002A1F);
    white-space: nowrap;
}

.pt-scope .property-features.icon-features .feature-value .feature-text {
    display: block !important;
    font-size: 14px !important;
    font-weight: 400;
    line-height: 1.3;
    color: var(--tx-6a6a6a, #6A6A6A);
}

.pt-scope .property-features.icon-features .feature-value .feature-text::before {
    content: none !important;
}

@media (max-width: 992px) {
    .pt-scope .property-features.icon-features {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .pt-scope .property-features.icon-features {
        gap: 10px;
        margin-top: 22px;
    }

    .pt-scope .property-features.icon-features .feature-item {
        padding: 14px;
        gap: 12px;
    }

    .pt-scope .property-features.icon-features .feature-value {
        font-size: 18px;
    }
}

/* Desktop: geen iconen in de feature-tegels (op mobiel blijven ze staan). */
@media (min-width: 769px) {
    .pt-scope .property-features.icon-features .feature-icon {
        display: none;
    }
}

/* Mobiel: straatnaam (H1) op 22px, prijs op 26px */
@media (max-width: 768px) {
    .pt-scope h1.address-street {
        font-size: 22px;
    }

    .pt-scope .price-box {
        font-size: 26px;
        font-weight: 700;
    }

    /* Past het label niet meer naast de prijs, dan komt het erboven (i.p.v. buiten het scherm). */
    .pt-scope .price-law-row {
        flex-wrap: wrap-reverse;
        justify-content: space-between;
        row-gap: 10px;
    }

    /* space-between: naast de prijs staan de labels rechts, staan ze erboven dan links. */
    .pt-scope .mobile-status-row {
        margin-left: 0;
        flex-wrap: wrap;
        row-gap: 6px;
    }
}

/* ======================================
   Status- en New-label naast het adres (desktop) / naast de prijs (mobiel):
   witte pil met 35px afronding, zwarte tekst (500) en een gekleurde bol voor de status.
====================================== */
.pt-scope .property-status-pill,
.pt-scope .property-new-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 35px;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: normal;
    text-transform: none;
    line-height: 1.3;
    white-space: nowrap;
}

.pt-scope .property-status-pill {
    --dot: #18794e;
    background: var(--bg-ffffff, #ffffff);
    border: 1px solid var(--bd-e5e7eb, #e5e7eb);
    color: var(--tx-000000, #000000);
}

.pt-scope .property-status-pill::before {
    content: '';
    flex: 0 0 auto;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--dot);
}

.pt-scope .property-status-pill.status-for_sale       { --dot: #18794e; background: var(--bg-ffffff, #ffffff); }
.pt-scope .property-status-pill.status-for_rent       { --dot: #005eb8; background: var(--bg-ffffff, #ffffff); }
.pt-scope .property-status-pill.status-under_contract { --dot: #ea7f1a; background: var(--bg-ffffff, #ffffff); }
.pt-scope .property-status-pill.status-sold           { --dot: #dc2626; background: var(--bg-ffffff, #ffffff); }
.pt-scope .property-status-pill.status-commercial     { --dot: #7c3aed; background: var(--bg-ffffff, #ffffff); }

/* New: zelfde pil als de status, met een roze bol */
.pt-scope .property-new-pill {
    --dot: #ec4899;
    background: var(--bg-ffffff, #ffffff);
    border: 1px solid var(--bd-e5e7eb, #e5e7eb);
    color: var(--tx-000000, #000000);
}

.pt-scope .property-new-pill::before {
    content: '';
    flex: 0 0 auto;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--dot);
}

/* "Read all" (beschrijving) en "Read all details" (details): zelfde moderne knop
   (witte pil met dunne rand en een pijltje dat omdraait als de tekst is uitgeklapt). */
.pt-scope .read-all-link,
.pt-scope .read-all-details {
    display: inline-block;
    box-sizing: border-box;
    width: 150px;
    align-self: flex-start;
    margin: 12px 0 0;
    padding: 9px 0;
    white-space: nowrap;
    border: 1px solid var(--bd-d5d7dc, #d5d7dc);
    border-radius: 35px;
    background: var(--bg-ffffff, #ffffff);
    color: var(--tx-0b1220, #0b1220);
    font-size: 15px;
    font-weight: 500;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.pt-scope .read-all-link::after,
.pt-scope .read-all-details::after {
    content: 'expand_more';
    display: inline-block;
    margin-left: 6px;
    font-family: 'Material Symbols Outlined';
    font-size: 20px;
    font-weight: 400;
    line-height: 1;
    vertical-align: middle;
    font-feature-settings: 'liga';
    transition: transform 0.2s ease;
}

.pt-scope .read-all-link.is-open::after,
.pt-scope .read-all-details.is-open::after {
    transform: rotate(180deg);
}

.pt-scope .read-all-link:hover,
.pt-scope .read-all-details:hover {
    border-color: #005eb8;
    background: var(--bg-f0f7ff, #f0f7ff);
    color: var(--tx-005eb8, #005eb8);
    transform: none;
    box-shadow: 0 2px 8px rgba(0, 94, 184, 0.12);
}

.pt-scope .read-all-link:focus-visible,
.pt-scope .read-all-details:focus-visible {
    outline: 2px solid #005eb8;
    outline-offset: 2px;
}

/* ======================================
   Telefoon: de kenmerken (slaapkamers, badkamers, woonoppervlak, perceel) zonder grijze tegels, op één regel met dunne
   verticale streepjes ertussen, net als op de kaarten in de zoekresultaten. Alleen het getal (en "m²") naast het icoon.
====================================== */
@media (max-width: 768px) {
    .pt-scope .property-features.icon-features {
        display: flex;
        flex-wrap: nowrap;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        margin-top: 16px;
        padding: 0;
        background: none;
    }

    .pt-scope .property-features.icon-features .feature-item {
        flex: 0 1 auto;
        align-items: center;
        gap: 5px;
        padding: 0;
        border-radius: 0;
        background: none;
    }

    .pt-scope .property-features.icon-features .feature-item + .feature-item::before {
        content: "";
        flex: 0 0 1px;
        width: 1px;
        height: 16px;
        margin-right: 5px;
        background: var(--bd-d5d7dc, #cfd6df);
    }

    .pt-scope .property-features.icon-features .feature-icon.material-symbols-outlined {
        flex: 0 0 20px;
        width: 20px;
        height: 20px;
        font-size: 20px;
    }

    .pt-scope .property-features.icon-features .feature-value {
        display: inline-flex;
        flex-direction: row;
        align-items: center;
        gap: 3px;
        font-size: 15px;
        font-weight: 500;
    }

    /* Slaapkamers en badkamers: alleen het getal. Woonoppervlak en perceel: het getal met "m²". */
    .pt-scope .property-features.icon-features .feature-item:nth-child(1) .feature-value .feature-text,
    .pt-scope .property-features.icon-features .feature-item:nth-child(2) .feature-value .feature-text {
        display: none !important;
    }

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

    .pt-scope .property-features.icon-features .feature-item:nth-child(3) .feature-value .feature-text::before,
    .pt-scope .property-features.icon-features .feature-item:nth-child(4) .feature-value .feature-text::before {
        content: "m²" !important;
        font-size: 15px;
        font-weight: 400;
        color: var(--tx-6a6a6a, #6A6A6A);
    }
}

@media (max-width: 360px) {
    .pt-scope .property-features.icon-features { gap: 6px; }
    .pt-scope .property-features.icon-features .feature-item { gap: 3px; }
    .pt-scope .property-features.icon-features .feature-icon.material-symbols-outlined { flex-basis: 16px; width: 16px; height: 16px; font-size: 16px; }
    .pt-scope .property-features.icon-features .feature-value { font-size: 13px; }
    .pt-scope .property-features.icon-features .feature-item + .feature-item::before { margin-right: 3px; }
}
