/* Fusion Real Estate AI - Frontend Styles */

/* Gallery */
.frp-gallery {
    display: grid; gap: 8px;
}
.frp-gallery--cols-1 { grid-template-columns: 1fr; }
.frp-gallery--cols-2 { grid-template-columns: repeat(2, 1fr); }
.frp-gallery--cols-3 { grid-template-columns: repeat(3, 1fr); }
.frp-gallery--cols-4 { grid-template-columns: repeat(4, 1fr); }
.frp-gallery__item { overflow: hidden; border-radius: 8px; aspect-ratio: 4/3; }
.frp-gallery__img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; cursor: zoom-in; }
.frp-gallery__item:hover .frp-gallery__img { transform: scale(1.04); }

/* Lightbox */
.frp-lightbox {
    position: fixed; inset: 0; z-index: 99999;
}
.frp-lightbox__backdrop {
    position: absolute; inset: 0; background: rgba(0,0,0,.92);
    cursor: pointer;
}
.frp-lightbox__inner {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
}
.frp-lightbox__img {
    max-width: 90vw; max-height: 88vh; border-radius: 4px;
    object-fit: contain; position: relative; z-index: 1;
}
.frp-lightbox__close,
.frp-lightbox__prev,
.frp-lightbox__next {
    position: absolute; background: rgba(255,255,255,.15);
    border: none; color: #fff; cursor: pointer;
    border-radius: 50%; z-index: 2; transition: background .2s;
}
.frp-lightbox__close { top: 20px; right: 20px; width: 40px; height: 40px; font-size: 22px; line-height: 40px; text-align: center; }
.frp-lightbox__prev  { left: 20px; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; font-size: 28px; line-height: 48px; text-align: center; }
.frp-lightbox__next  { right: 20px; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; font-size: 28px; line-height: 48px; text-align: center; }
.frp-lightbox__close:hover,
.frp-lightbox__prev:hover,
.frp-lightbox__next:hover { background: rgba(255,255,255,.3); }
.frp-lightbox__counter { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); color: rgba(255,255,255,.7); font-size: 13px; z-index: 2; }

/* Map */
.frp-map-wrap { border-radius: 10px; overflow: hidden; }
.frp-map { width: 100%; }

/* Location */
.frp-location { display: flex; flex-wrap: wrap; gap: 12px; }
.frp-location__item { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; color: #374151; }
.frp-location__item svg { color: #1565C0; flex-shrink: 0; }

/* Features */
.frp-features { display: flex; flex-direction: column; gap: 16px; }
.frp-features__group-title { font-size: 13px; font-weight: 700; color: #263238; margin: 0 0 8px; }
.frp-features__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 6px; }
.frp-features__item { display: flex; align-items: center; gap: 6px; font-size: 13px; color: #374151; }
.frp-features__item svg { color: #2eb85c; flex-shrink: 0; }

/* Price */
.frp-price { display: inline-flex; align-items: baseline; gap: 6px; }
.frp-price__amount { font-size: 24px; font-weight: 800; color: #1a2b5e; }
.frp-price__note { font-size: 12px; color: #6b7280; }

/* Specs */
.frp-specs { display: flex; flex-wrap: wrap; gap: 16px; }
.frp-specs__item { display: flex; align-items: center; gap: 8px; }
.frp-specs__icon { display: flex; align-items: center; color: #1565C0; }
.frp-specs__value { font-size: 15px; font-weight: 700; color: #263238; display: block; }
.frp-specs__label { font-size: 11px; color: #6b7280; display: block; }

/* Agent */
.frp-agent { display: flex; align-items: flex-start; gap: 12px; padding: 16px; background: #f8fafd; border-radius: 8px; border: 1px solid #e5e7eb; }
.frp-agent__logo { width: 60px; height: 60px; object-fit: contain; border-radius: 6px; flex-shrink: 0; }
.frp-agent__name { font-size: 14px; font-weight: 700; color: #263238; display: block; margin-bottom: 6px; }
.frp-agent__phone,
.frp-agent__email { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; color: #1565C0; text-decoration: none; margin-right: 12px; }
.frp-agent__phone:hover,
.frp-agent__email:hover { text-decoration: underline; }

/* Video/Tour */
.frp-media { display: flex; flex-direction: column; gap: 12px; }
.frp-media__video { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; border-radius: 8px; }
.frp-media__video iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: none; }
.frp-media__tour { display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; background: #1a2b5e; color: #fff; border-radius: 7px; text-decoration: none; font-size: 13px; font-weight: 600; }
.frp-media__tour:hover { background: #1565C0; color: #fff; }

/* Listings grid */
.frp-listings-grid { display: grid; gap: 20px; }
.frp-listings-grid--cols-2 { grid-template-columns: repeat(2, 1fr); }
.frp-listings-grid--cols-3 { grid-template-columns: repeat(3, 1fr); }
.frp-listings-grid--cols-4 { grid-template-columns: repeat(4, 1fr); }
.frp-listings-loading { grid-column: 1/-1; text-align: center; padding: 40px; color: #6b7280; }

/* Property card */
.frp-property-card { border-radius: 10px; overflow: hidden; border: 1px solid #e5e7eb; background: #fff; transition: box-shadow .2s, transform .2s; }
.frp-property-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,.12); transform: translateY(-2px); }
.frp-property-card__img { aspect-ratio: 16/10; overflow: hidden; }
.frp-property-card__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.frp-property-card__body { padding: 14px 16px; }
.frp-property-card__title { font-size: 14px; font-weight: 700; color: #263238; margin: 0 0 6px; line-height: 1.3; }
.frp-property-card__location { font-size: 12px; color: #6b7280; margin-bottom: 10px; }
.frp-property-card__price { font-size: 18px; font-weight: 800; color: #1a2b5e; margin-bottom: 10px; }
.frp-property-card__specs { display: flex; gap: 12px; font-size: 12px; color: #374151; border-top: 1px solid #f0f4f8; padding-top: 10px; margin-top: 4px; }
.frp-property-card__spec { display: flex; align-items: center; gap: 4px; }

/* Pagination */
.frp-listings-pagination { display: flex; justify-content: center; gap: 6px; margin-top: 24px; flex-wrap: wrap; }
.frp-listings-pagination button { padding: 6px 12px; border: 1px solid #e5e7eb; background: #fff; border-radius: 6px; cursor: pointer; font-size: 13px; transition: all .15s; }
.frp-listings-pagination button:hover,
.frp-listings-pagination button.active { background: #1565C0; color: #fff; border-color: #1565C0; }

/* Search form */
.frp-search { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.frp-search__field { display: flex; flex-direction: column; gap: 4px; min-width: 160px; }
.frp-search__field label { font-size: 12px; font-weight: 600; color: #374151; }
.frp-search__field select,
.frp-search__field input { padding: 8px 12px; border: 1px solid #e5e7eb; border-radius: 7px; font-size: 13px; background: #fff; }
.frp-search__field--range { flex-direction: column; }
.frp-search__field--range > div { display: flex; gap: 6px; }
.frp-search__field--range input { width: 100px; }
.frp-search__actions { display: flex; gap: 8px; }
.frp-btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; border-radius: 7px; font-size: 13px; font-weight: 600; cursor: pointer; border: none; text-decoration: none; transition: background .15s; }
.frp-btn--primary { background: #1565C0; color: #fff; }
.frp-btn--primary:hover { background: #1a2b5e; color: #fff; }
.frp-btn--ghost { background: #fff; color: #263238; border: 1px solid #e5e7eb; }

/* Similar */
.frp-similar { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.frp-similar__card { text-decoration: none; border-radius: 8px; overflow: hidden; border: 1px solid #e5e7eb; background: #fff; display: block; transition: box-shadow .2s; }
.frp-similar__card:hover { box-shadow: 0 4px 12px rgba(0,0,0,.1); }
.frp-similar__thumb { aspect-ratio: 16/10; overflow: hidden; }
.frp-similar__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.frp-similar__body { padding: 10px 12px; }
.frp-similar__title { font-size: 13px; font-weight: 600; color: #263238; margin: 0 0 4px; line-height: 1.3; }
.frp-similar__price { font-size: 14px; font-weight: 800; color: #1a2b5e; display: block; margin-bottom: 4px; }
.frp-similar__meta { display: flex; gap: 8px; font-size: 11px; color: #6b7280; }

/* Responsive */
@media (max-width: 768px) {
    .frp-gallery--cols-3,
    .frp-gallery--cols-4 { grid-template-columns: repeat(2, 1fr); }
    .frp-listings-grid--cols-3,
    .frp-listings-grid--cols-4 { grid-template-columns: repeat(2, 1fr); }
    .frp-similar { grid-template-columns: repeat(2, 1fr); }
    .frp-specs { gap: 10px; }
    .frp-search { flex-direction: column; }
}
@media (max-width: 480px) {
    .frp-gallery--cols-2,
    .frp-gallery--cols-3,
    .frp-gallery--cols-4 { grid-template-columns: 1fr; }
    .frp-listings-grid--cols-2,
    .frp-listings-grid--cols-3,
    .frp-listings-grid--cols-4 { grid-template-columns: 1fr; }
    .frp-similar { grid-template-columns: 1fr; }
}

/* =============================================
   FRP BREADCRUMB
   ============================================= */
nav.frp-breadcrumb {
    display: flex !important;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-family: Inter, sans-serif;
    color: #3b2b1c;
    line-height: 24px;
    padding: 0;
    margin: 0;
}
nav.frp-breadcrumb a {
    color: #3b2b1c;
    font-weight: 400;
    font-size: 16px;
    line-height: 24px;
    text-decoration: none;
    padding-bottom: 2px;
    transition: color .15s;
}
nav.frp-breadcrumb a:hover {
    color: #a32c00;
}
nav.frp-breadcrumb .sep {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #a32c00;
    width: 10px;
    height: 10px;
    flex-shrink: 0;
    margin: 0;
    padding: 0;
}
nav.frp-breadcrumb .sep svg {
    width: 10px;
    height: 10px;
    display: block;
}
nav.frp-breadcrumb .current {
    color: #3b2b1c;
    font-weight: 600;
    font-size: 16px;
    line-height: 24px;
}
@media (max-width: 480px) {
    nav.frp-breadcrumb { font-size: 14px; gap: 8px; }
    nav.frp-breadcrumb a,
    nav.frp-breadcrumb .current { font-size: 14px; line-height: 20px; }
}

/* =============================================
   FRP FEATURES LIJST
   ============================================= */
.frp-features-list {
    list-style: disc;
    margin: 0;
    padding: 0 0 0 20px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 4px;
}
.frp-features-list--cols-2 { grid-template-columns: repeat(2, 1fr); }
.frp-features-list--cols-3 { grid-template-columns: repeat(3, 1fr); }
.frp-features-list--cols-4 { grid-template-columns: repeat(4, 1fr); }

.frp-features-list li,
.frp-feature-item {
    font-size: 14px;
    color: #374151;
    line-height: 1.6;
    list-style: disc;
    display: list-item;
}


/* ── Skeleton loading voor kaart ─────────────────────────── */
@keyframes frp-skeleton-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: .4; }
}
.frp-mcard__img--skeleton,
.frp-mcard__title--skeleton {
    background: #e5e7eb;
    animation: frp-skeleton-pulse 1.2s ease-in-out infinite;
    border-radius: 4px;
    color: transparent !important;
}
.frp-mcard__title--skeleton {
    height: 16px;
    width: 80%;
    display: block;
}

/* frp-map-fullsize-btn → verplaatst naar map.css */
.frp-map-canvas { transition: height 0.3s ease; }

/* ══════════════════════════════════════════════════════════════
   FRP PAGINATION — zelfde stijl als Bricks brxe-edtpdy
   ══════════════════════════════════════════════════════════════ */
.frp-pagination ul.page-numbers {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.frp-pagination ul.page-numbers .page-numbers {
    display: grid;
    place-items: center;
    height: 50px;
    width: 3em;
    border: 1px solid #dfb290;
    border-radius: 10px;
    font-size: 20px;
    font-family: Inter, -apple-system, sans-serif;
    font-weight: 400;
    color: #3b2b1c;
    text-decoration: none;
    box-sizing: border-box;
    transition: background .15s, color .15s;
    cursor: pointer;
}
.frp-pagination ul.page-numbers .page-numbers.current {
    background: #d39669;
    color: #ffffff;
    border-color: #d39669;
}
.frp-pagination ul.page-numbers a.page-numbers:hover {
    background: #f4ede6;
}
.frp-pagination ul.page-numbers .page-numbers.current:hover {
    color: #000000;
}
.frp-pagination ul.page-numbers .page-numbers.dots {
    border: none;
    cursor: default;
    color: #3b2b1c;
}
@media (max-width: 325px) {
    .frp-pagination ul.page-numbers .page-numbers {
        width: 2.5em;
    }
}

/* ── Hartje knop op property cards ── */
.frp-heart-btn {
    position: absolute;
    top: 10px; right: 10px;
    width: 36px; height: 36px;
    border-radius: 50%;
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: transform .15s ease;
    z-index: 10;
    padding: 0;
    box-shadow: none;
}
.frp-heart-btn:hover { transform: scale(1.15); }
.frp-heart-btn svg {
    width: 22px; height: 22px;
    transition: fill .15s, stroke .15s;
}
/* Inactief: transparant met witte border */
.frp-heart-btn:not(.frp-heart-btn--active) svg {
    fill: transparent;
    stroke: #fff;
    stroke-width: 2;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,.3));
}
/* Actief: rode vulling + witte border */
.frp-heart-btn--active svg {
    fill: #c73200;
    stroke: #fff;
    stroke-width: 2;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,.2));
}

/* ── Header teller — stijl zoals travellegends ── */
.frp-saved-counter {
    position: relative;
    display: inline-flex; align-items: center; justify-content: center;
    cursor: pointer;
    background: transparent;
    border: none;
    padding: 10px 5px;
    border-radius: 50%;
    transition: opacity .15s;
    color: inherit;
    text-decoration: none;
    line-height: 1;
}
.frp-saved-counter:hover { opacity: .75; }
.frp-saved-counter svg {
    width: 22px; height: 22px;
    display: block;
}
/* Counter bolletje — #c73200 achtergrond, wit, absoluut rechts boven */
.frp-saved-counter__count {
    position: absolute;
    top: 6px; right: -4px;
    min-width: 16px; height: 16px;
    background: #c73200;
    color: #fff;
    font-size: 9px; font-weight: 700;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    line-height: 1;
    padding: 0 2px;
    pointer-events: none;
}

/* ── Savelist popup animatie — slideInRight ── */
/* Wordt getriggerd via JS door frp-popup-animating class toe te voegen */
.frp-popup-animating {
    animation: frp-popup-slide-in .35s cubic-bezier(.22,1,.36,1) both !important;
}

@keyframes frp-popup-slide-in {
    from {
        opacity: 0;
        transform: translateX(40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ── Wishlist popup mini-cards ── */
.frp-wl-card {
    display: block;
    text-decoration: none;
    color: inherit;
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    border: 1px solid #e5e7eb;
    transition: box-shadow .2s;
}
.frp-wl-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,.1); }
.frp-wl-card__img {
    width: 100%; aspect-ratio: 4/3;
    object-fit: cover; display: block;
    background: #f3f4f6;
}
.frp-wl-card__body { padding: 10px 12px; }
.frp-wl-card__location { font-size: 11px; color: #9ca3af; margin-bottom: 3px; }
.frp-wl-card__title {
    font-size: 13px; font-weight: 600; color: #1a1a1a;
    line-height: 1.4; margin-bottom: 6px;
    display: -webkit-box; -webkit-line-clamp: 2;
    -webkit-box-orient: vertical; overflow: hidden;
}
.frp-wl-card__price { font-size: 14px; font-weight: 700; color: #c73200; }
.frp-wl-card__specs { display: flex; gap: 8px; margin-top: 6px; font-size: 11px; color: #6b7280; }
.frp-wl-card .frp-heart-btn {
    top: 8px; right: 8px;
    width: 28px; height: 28px;
}
.frp-wl-card .frp-heart-btn svg { width: 14px; height: 14px; fill: #c73200; stroke: #fff; }
