/*
Theme Name: Point Finder Child Theme
Description: Child theme for the Point Finder
Author: Muhammad Mudassir
Template: pointfinder
Version: 2.0
*/

/* =Theme customization starts here
------------------------------------------------------- */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
    --zz-burgundy: #800020;
    --zz-burgundy-light: #9e1a3b;
    --zz-gold: #C5A880;
    --zz-gold-dark: #b09168;
    --zz-dark: #111111;
    --zz-grey: #666666;
    --zz-light-grey: #f4f4f4;
    --zz-border-color: rgba(0, 0, 0, 0.08);
    --zz-font-title: 'Outfit', sans-serif;
    --zz-font-body: 'Inter', sans-serif;

    --zz-shadow-subtle: 0 8px 24px rgba(0, 0, 0, 0.04);
    --zz-shadow-premium: 0 16px 36px rgba(128, 0, 32, 0.08);
    --zz-transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ============================================================
 * SKELETON LOADER — shown while batch AJAX is in-flight
 * ============================================================ */
.zz-custom-cards-active .wpfitemlistdata:not(.zz-card-replaced) {
    border-radius: 12px;
    overflow: hidden;
    min-height: 380px;
    background: #1a1a1a;
    position: relative;
}

.zz-custom-cards-active .wpfitemlistdata:not(.zz-card-replaced)::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg,
            rgba(255, 255, 255, 0) 20%,
            rgba(255, 255, 255, 0.06) 50%,
            rgba(255, 255, 255, 0) 80%);
    background-size: 200% 100%;
    animation: zz-shimmer 1.4s ease infinite;
}

@keyframes zz-shimmer {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* Skeleton inner blocks */
.zz-custom-cards-active .wpfitemlistdata:not(.zz-card-replaced) .pflist-item-inner {
    display: flex;
    flex-direction: column;
    padding: 0;
    height: 100%;
    background: transparent;
    border: none;
    box-shadow: none;
}

.zz-custom-cards-active .wpfitemlistdata:not(.zz-card-replaced) .pflist-item-inner>* {
    display: none !important;
}

/* ============================================================
 * GRID RESETS — strip PointFinder defaults on replaced cards
 * ============================================================ */
.zz-custom-cards-active .wpfitemlistdata {
    list-style: none !important;
}

.zz-custom-cards-active .pflist-item.pflist-item-inner {
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
    overflow: visible !important;
    height: auto !important;
}

/* ============================================================
 * ZZ-CARD — shared base
 * ============================================================ */
.zz-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: transform 0.35s cubic-bezier(.16, 1, .3, 1),
        box-shadow 0.35s cubic-bezier(.16, 1, .3, 1);
    display: flex;
    flex-direction: column;
    height: 100%;
    font-family: var(--zz-font-body);
}

.zz-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(128, 0, 32, 0.12);
}

/* Image block */
.zz-card-media-link {
    display: block;
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/3;
    background: #0d0d0d;
    text-decoration: none;
    flex-shrink: 0;
}

.zz-card-img-wrap {
    width: 100%;
    height: 100%;
    transition: transform 0.45s cubic-bezier(.16, 1, .3, 1);
}

.zz-card:hover .zz-card-img-wrap {
    transform: scale(1.07);
}

.zz-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.zz-card-img-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 45%, rgba(0, 0, 0, 0.55) 100%);
    pointer-events: none;
}

/* Badges on image */
.zz-card-image-badges {
    position: absolute;
    top: 12px;
    left: 12px;
    right: 12px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    z-index: 3;
    pointer-events: none;
}

.zz-badge {
    display: inline-block;
    font-family: var(--zz-font-body);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 5px 11px;
    border-radius: 20px;
    line-height: 1.2;
}

.zz-badge-type {
    background: var(--zz-burgundy);
    color: #ffffff;
    box-shadow: 0 3px 10px rgba(128, 0, 32, 0.35);
}

.zz-badge-location {
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.zz-badge-location i {
    color: var(--zz-gold);
    margin-right: 3px;
}

/* Card body */
.zz-card-body {
    padding: 18px 20px 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

/* Title */
.zz-card-title {
    font-family: var(--zz-font-title);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.45;
    margin: 0 0 12px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.zz-card-title a {
    color: var(--zz-dark);
    text-decoration: none;
    transition: color 0.25s ease;
}

.zz-card-title a:hover {
    color: var(--zz-burgundy);
}

/* Location (for styles 2 & 3) */
.zz-card-location {
    font-size: 11px;
    color: var(--zz-gold-dark);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.7px;
    margin: 0 0 8px 0;
    display: flex;
    align-items: center;
    gap: 4px;
}

.zz-card-location i {
    color: var(--zz-gold);
    font-size: 11px;
}

/* Specs row (beds / baths / size) */
.zz-card-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 14px;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0f0f0;
}

.zz-card-specs .pflistingitem-subelement {
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    color: #555 !important;
    font-family: var(--zz-font-body) !important;
    background: none !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.zz-card-specs .pflistingitem-subelement i {
    color: var(--zz-gold-dark) !important;
    font-size: 13px !important;
    min-width: 14px;
}

.zz-card-specs .pf-ftitle {
    display: flex !important;
}

.zz-card-specs .pf-ftext {
    font-weight: 600 !important;
    color: #333 !important;
}

/* Card footer: price + view button */
.zz-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 12px;
    gap: 8px;
}

.zz-card-price {
    flex: 1;
    min-width: 0;
}

.zz-card-price .pflistingitem-subelement.pf-price {
    display: block !important;
    font-family: var(--zz-font-title) !important;
    font-weight: 700 !important;
    font-size: 16px !important;
    color: var(--zz-burgundy) !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    background: none !important;
}

.zz-price-poa {
    font-family: var(--zz-font-title) !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    color: #999 !important;
    font-style: italic;
}

.zz-view-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 7px 14px;
    background: #111;
    color: #fff;
    border-radius: 6px;
    font-family: var(--zz-font-body);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.25s ease;
    flex-shrink: 0;
}

.zz-view-btn:hover {
    background: var(--zz-burgundy);
    color: #fff;
}

.zz-view-btn i {
    font-size: 10px;
    transition: transform 0.25s ease;
}

.zz-view-btn:hover i {
    transform: translateX(3px);
}

/* ============================================================
 * STYLE 1 — Luxury Modern (default)  — no overrides needed,
 * all handled by .zz-card base above
 * ============================================================ */

/* ============================================================
 * STYLE 2 — Classic Gold
 * ============================================================ */
.zz-card-style2 {
    border-radius: 0;
    border: 1px solid rgba(0, 0, 0, 0.08);
    position: relative;
}

.zz-card-style2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--zz-gold);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s ease;
}

.zz-card-style2:hover::after {
    transform: scaleX(1);
}

.zz-card-style2 .zz-card-media-link {
    aspect-ratio: 16/10;
}

.zz-card-style2 .zz-badge-type {
    background: #000;
    color: var(--zz-gold);
    border: 1px solid var(--zz-gold);
    border-radius: 3px;
}

.zz-card-style2 .zz-card-hover-action {
    position: absolute;
    bottom: -48px;
    right: 14px;
    transition: bottom 0.35s ease;
    z-index: 4;
}

.zz-card-style2:hover .zz-card-hover-action {
    bottom: 14px;
}

.zz-card-style2 .zz-card-hover-action a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: #fff;
    border-radius: 50%;
    color: #111;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: background 0.2s;
}

.zz-card-style2 .zz-card-hover-action a:hover {
    background: var(--zz-burgundy);
    color: #fff;
}

/* ============================================================
 * STYLE 3 — Split Row
 * ============================================================ */
.zz-card-style3 {
    flex-direction: row;
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.07);
}

.zz-card-style3 .zz-card-media-link {
    width: 40%;
    aspect-ratio: unset;
    flex-shrink: 0;
}

.zz-card-style3 .zz-card-body {
    width: 60%;
    padding: 20px 22px;
    justify-content: space-between;
}

.zz-card-style3 .zz-view-btn {
    background: transparent;
    color: var(--zz-burgundy);
    border: 1px solid var(--zz-burgundy);
    padding: 6px 13px;
}

.zz-card-style3 .zz-view-btn:hover {
    background: var(--zz-burgundy);
    color: #fff;
}

@media (max-width: 768px) {
    .zz-card-style3 {
        flex-direction: column;
    }

    .zz-card-style3 .zz-card-media-link {
        width: 100%;
        aspect-ratio: 16/9;
    }

    .zz-card-style3 .zz-card-body {
        width: 100%;
    }
}

/* Partners sidebar / misc unchanged styles below this line */


/*
 * ZZ Custom Listing Cards — Production CSS
 * Namespace : zzc-* (no conflicts with PointFinder)
 * Matched precisely to the requested design.
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Outfit:wght@400;500;600;700&display=swap');

:root {
    --zzc-red: #800020;
    /* Original Burgundy Red */
    --zzc-card-bg: #111111;
    /* Deep dark grey */
    --zzc-border: #222222;
    --zzc-text-main: #ffffff;
    --zzc-text-muted: #aaaaaa;

    --zzc-font-title: 'Outfit', sans-serif;
    --zzc-font-body: 'Inter', sans-serif;
}

/* ============================================================
 * SKELETON LOADER & GRID RESETS
 * ============================================================ */
.zz-custom-cards-active .wpfitemlistdata:not(.zz-card-replaced) {
    border-radius: 0;
    min-height: 380px;
    background: #141414;
    position: relative;
    border: 1px solid var(--zzc-border);
}

.zz-custom-cards-active .wpfitemlistdata:not(.zz-card-replaced)::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg, rgba(255, 255, 255, 0) 20%, rgba(255, 255, 255, 0.03) 50%, rgba(255, 255, 255, 0) 80%);
    background-size: 200% 100%;
    animation: zzc-shimmer 1.4s ease infinite;
}

@keyframes zzc-shimmer {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

.zz-custom-cards-active .wpfitemlistdata:not(.zz-card-replaced) .pflist-item-inner>* {
    display: none !important;
}

.zz-custom-cards-active .wpfitemlistdata {
    list-style: none !important;
}

.zz-custom-cards-active .pflist-item.pflist-item-inner {
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
    overflow: visible !important;
    height: auto !important;
}

/* ============================================================
 * CARD BASE
 * ============================================================ */
.zz-card {
    background: var(--zzc-card-bg);
    border: 1px solid var(--zzc-border);
    display: flex;
    flex-direction: column;
    height: 100%;
    font-family: var(--zzc-font-body);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.zz-card:hover {
    transform: translateY(-4px);
    border-color: var(--zzc-red);
}

/* ── MEDIA BLOCK ── */
.zzc-media {
    position: relative;
    overflow: hidden;
    background: #0d0d0d;
    aspect-ratio: 16 / 11;
}

.zzc-img-wrap {
    width: 100%;
    height: 100%;
    transition: transform 0.4s ease;
}

.zz-card:hover .zzc-img-wrap {
    transform: scale(1.05);
}

.zzc-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ── FEATURED RIBBON ── */
.zzc-ribbon-featured {
    position: absolute;
    top: 15px;
    right: -35px;
    background: var(--zzc-red);
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 6px 40px;
    transform: rotate(45deg);
    z-index: 5;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
    font-family: var(--zzc-font-title);
}

/* ── STATUS BADGE (TOP LEFT) ── */
.zzc-badge-top-left {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #ffffff;
    color: #444444;
    font-size: 10px;
    font-weight: 700;
    padding: 6px 10px;
    border-radius: 0 !important;
    /* perfectly square as requested */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    z-index: 4;
    display: flex;
    align-items: center;
    gap: 5px;
}

.zzc-badge-top-left i {
    color: var(--zzc-red);
}

.zzc-badge-top-left .pflticon {
    display: inline-flex;
    align-items: center;
    color: inherit;
    text-decoration: none;
}

.zzc-badge-top-left .pficonltype {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    width: auto !important;
    height: auto !important;
    border-radius: 0 !important;
}

.zzc-badge-top-left .zzm-flag-icon img.emoji {
    width: 14px !important;
    height: 14px !important;
    vertical-align: middle !important;
    margin: 0 !important;
}

/* ── PRICE OVERLAY (BOTTOM RIGHT) ── */
.zzc-price-overlay-br {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: rgba(17, 17, 17, 0.95);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    color: #ffffff;
    padding: 6px 12px;
    font-size: 15px;
    font-family: var(--zzc-font-title);
    font-weight: 600;
    z-index: 4;
    border-left: 2px solid var(--zzc-red);
    white-space: nowrap;
    width: auto !important;
    min-width: max-content;
    overflow: visible;
}

.zzc-price-overlay-br .pflistingitem-subelement.pf-price {
    display: block !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    background: none !important;
    color: #ffffff !important;
    white-space: nowrap !important;
    width: auto !important;
    min-width: max-content !important;
    max-width: none !important;
    overflow: visible !important;
}

.zzc-poa {
    color: #dddddd;
    font-size: 13px;
    font-style: italic;
    white-space: nowrap;
    width: auto !important;
}

/* ── HOVER OVERLAY (GALLERY / LINK) ── */
.zzc-hover-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    opacity: 0;
    visibility: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 3;
}

.zz-card:hover .zzc-hover-overlay {
    opacity: 1;
    visibility: visible;
}

.zzc-hover-btns {
    display: flex;
    gap: 10px;
    transform: translateY(15px);
    transition: transform 0.3s ease;
}

.zz-card:hover .zzc-hover-btns {
    transform: translateY(0);
}

.zzc-h-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: #ffffff;
    color: var(--zzc-red);
    font-size: 18px;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.zzc-h-btn:hover {
    background: var(--zzc-red);
    color: #ffffff;
}

/* ── BODY BLOCK ── */
.zzc-body {
    padding: 20px 20px 15px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

/* ── TITLE ── */
.zzc-title {
    font-family: var(--zzc-font-title);
    font-size: 17px;
    font-weight: 500;
    line-height: 1.4;
    margin: 0 0 10px 0;
    min-height: 48px;
    /* Force 2 lines height to equalize cards */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.zzc-title a {
    text-decoration: none;
}

.zzc-title-prefix {
    color: var(--zzc-text-main);
}

.zzc-title-main {
    color: #ffffff !important;
}

.zzc-title a:hover .zzc-title-main {
    color: var(--zzc-red) !important;
}

/* ── EXCERPT ── */
.zzc-excerpt {
    font-size: 12px;
    color: var(--zzc-text-muted);
    line-height: 1.5;
    margin: 0 0 12px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 36px;
}

/* ── LOCATION LINE ── */
.zzc-loc-line {
    font-size: 10px;
    font-weight: 600;
    color: var(--zzc-text-main);
    display: flex;
    align-items: flex-start;
    gap: 8px;
    letter-spacing: 0.5px;
    min-height: 28px;
}

.zzc-loc-text {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.zzc-loc-line i {
    background: #ffffff;
    color: var(--zzc-red);
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 11px;
    flex-shrink: 0;
}

/* ── DIVIDER ── */
.zzc-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.06);
    margin: 15px 0 12px 0;
}

/* ── FOOTER (INLINE SPECS) ── */
.zzc-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
}

.zzc-f-left {
    display: flex;
    align-items: center;
}

.zzc-specs-inline {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.zzc-specs-inline .pflistingitem-subelement {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    color: var(--zzc-text-main) !important;
    font-family: var(--zzc-font-body) !important;
    background: none !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.zzc-specs-inline .pflistingitem-subelement i {
    background: #ffffff !important;
    color: var(--zzc-red) !important;
    width: 24px !important;
    height: 24px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 50% !important;
    font-size: 11px !important;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2) !important;
}

.zzc-specs-inline .pf-ftext {
    font-weight: 400 !important;
    color: var(--zzc-text-main) !important;
}

.zzc-specs-inline .pf-ftitle {
    display: none !important;
}

/* ── FOOTER TOOLS ── */
.zzc-f-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.zzc-tool-btn {
    background: #ffffff !important;
    color: var(--zzc-red) !important;
    width: 26px !important;
    height: 26px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 50% !important;
    font-size: 12px !important;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2) !important;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

/* Favorites Button States */
.pf-favorites-link[data-pf-active="false"] i.fa-heart {
    font-weight: 400 !important;
    /* Empty Heart */
}

.pf-favorites-link[data-pf-active="true"] i.fa-heart {
    font-weight: 900 !important;
    /* Filled Heart */
    color: var(--zzc-red) !important;
}

/* Spinner overriding */
.zzc-tool-btn i.fa-spinner {
    font-weight: 900 !important;
}

.zzc-tool-btn:hover {
    transform: scale(1.1);
    background: var(--zzc-red) !important;
    color: #ffffff !important;
}

.zzc-tool-btn:hover i {
    color: #ffffff !important;
}

@media (max-width: 480px) {
    .zzc-media {
        aspect-ratio: 4/3;
    }

    .zzc-title {
        font-size: 15px;
    }

    .zzc-price-overlay-br {
        font-size: 13px;
    }
}