/* =========================================================================
   Allround Web Realite koppeling — public styles
   Self-contained styling for the shortcode output. All rules are scoped to
   .awrealite-* classes so they never leak into the rest of the theme. Themes
   can override any of this in their own stylesheet (loaded later).
   ========================================================================= */

/* ---- Card grid (overview shortcodes) ---------------------------------- */
.awrealite-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
    margin: 0 0 24px;
}

.awrealite-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #e6e9f0;
    border-radius: 10px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: box-shadow .18s ease, transform .18s ease;
}

.awrealite-card:hover {
    box-shadow: 0 8px 24px rgba(10, 31, 77, .12);
    transform: translateY(-2px);
    text-decoration: none;
}

.awrealite-card__media {
    position: relative;
    aspect-ratio: 4 / 3;
    background: #eef1f8;
    overflow: hidden;
}

.awrealite-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.awrealite-card__placeholder {
    display: block;
    width: 100%;
    height: 100%;
    background:
        linear-gradient(135deg, #eef1f8 0%, #dfe5f2 100%);
}

.awrealite-card__body {
    padding: 14px 16px 18px;
}

.awrealite-card__title {
    margin: 0 0 4px;
    font-size: 17px;
    line-height: 1.3;
}

.awrealite-card__city {
    margin: 0;
    color: #5b6577;
    font-size: 14px;
}

/* ---- Status badge ----------------------------------------------------- */
.awrealite-badge {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    padding: 5px 10px;
    border-radius: 999px;
    background: #eef1f8;
    color: #0a1f4d;
}

.awrealite-card__media .awrealite-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .18);
}

.awrealite-badge--available    { background: #e4f6ec; color: #1f9d57; }
.awrealite-badge--sold         { background: #fde7e7; color: #c0392b; }
.awrealite-badge--reserved     { background: #fff5e0; color: #b8860b; }
.awrealite-badge--notavailable { background: #eceff4; color: #5b6577; }

/* ---- Empty state ------------------------------------------------------ */
.awrealite-empty {
    color: #5b6577;
    font-style: italic;
}

/* ---- Single (detail) -------------------------------------------------- */
.awrealite-single {
    max-width: 980px;
    margin: 0 auto;
}

.awrealite-single__header {
    margin: 22px 0 10px;
}

.awrealite-single__title {
    margin: 0 0 4px;
}

.awrealite-single__address {
    margin: 0 0 8px;
    color: #5b6577;
    font-size: 17px;
}

.awrealite-single__description,
.awrealite-single__features,
.awrealite-single__documents,
.awrealite-single__units {
    margin: 28px 0;
}

/* ---- Gallery ---------------------------------------------------------- */
.awrealite-gallery__main {
    border-radius: 10px;
    overflow: hidden;
    background: #eef1f8;
    aspect-ratio: 16 / 9;
}

.awrealite-gallery__main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.awrealite-gallery__thumbs {
    list-style: none;
    margin: 10px 0 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
    gap: 8px;
}

.awrealite-gallery__thumb {
    display: block;
    border-radius: 7px;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    border: 2px solid transparent;
    cursor: pointer;
}

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

.awrealite-gallery__thumb.is-active {
    border-color: #2f6df6;
}

/* ---- Features (kenmerken) -------------------------------------------- */
.awrealite-features {
    margin: 0;
    border-top: 1px solid #e6e9f0;
}

.awrealite-features__row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 2px;
    border-bottom: 1px solid #e6e9f0;
}

.awrealite-features__row dt {
    margin: 0;
    color: #5b6577;
    font-weight: 600;
}

.awrealite-features__row dd {
    margin: 0;
    text-align: right;
}

/* ---- Documents -------------------------------------------------------- */
.awrealite-documents {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.awrealite-documents a {
    display: inline-block;
    padding: 8px 14px;
    border: 1px solid #cdddff;
    border-radius: 8px;
    background: #eef3ff;
    color: #0a1f4d;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
}

.awrealite-documents a:hover {
    background: #e0e9ff;
    text-decoration: none;
}

@media (max-width: 600px) {
    .awrealite-features__row {
        flex-direction: column;
        gap: 2px;
    }

    .awrealite-features__row dd {
        text-align: left;
    }
}
