/* ============================================================
   Property Finder Pro — finder.css
   Matches screenshot: numbered markers, pill filters, split layout
   ============================================================ */

.pfp-wrap {
    --pfp-navy:    #1b2a4a;
    --pfp-blue:    #1e5799;
    --pfp-blue2:   #2563a8;
    --pfp-accent:  #c8960a;
    --pfp-light:   #f5f6fa;
    --pfp-border:  #dde3ef;
    --pfp-text:    #1e2438;
    --pfp-muted:   #6b7280;
    --pfp-white:   #ffffff;
    --pfp-shadow:  0 1px 14px rgba(27,42,74,.08);
    --pfp-rad:     8px;
    --pfp-fh:      'DM Serif Display', Georgia, serif;
    --pfp-fb:      'DM Sans', system-ui, sans-serif;
    --hero-h:      140px;
    --bar-h:       90px;   /* two-row filter bar */
}

.pfp-wrap *, .pfp-wrap *::before, .pfp-wrap *::after {
    box-sizing: border-box; margin: 0; padding: 0;
}
.pfp-wrap { font-family: var(--pfp-fb); color: var(--pfp-text); background: var(--pfp-light); }

/* ════════════════════════════════════════════════════════════
   HERO
════════════════════════════════════════════════════════════ */
.pfp-hero {
    text-align: center;
    padding: 32px 20px 20px;
    background: var(--pfp-white);
    border-bottom: 1px solid var(--pfp-border);
}
.pfp-hero__title {
    font-family: var(--pfp-fh);
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    font-weight: 400;
    color: var(--pfp-navy);
    letter-spacing: -.01em;
    margin-bottom: 4px;
}
.pfp-hero__sub {
    color: var(--pfp-muted);
    font-size: .87rem;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

/* Radius */
.pfp-radius-row {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--pfp-muted);
    font-size: .78rem;
    font-weight: 500;
}
.pfp-slider-wrap {
    display: flex; align-items: center; gap: 7px;
}
.pfp-slider-min { font-size: .75rem; color: var(--pfp-muted); }
.pfp-radius-row input[type=range] {
    width: 100px; accent-color: var(--pfp-navy); cursor: pointer;
}
#pfp-radius-val { color: var(--pfp-navy); font-weight: 700; min-width: 24px; }

/* ════════════════════════════════════════════════════════════
   FILTER BAR — 2 rows
════════════════════════════════════════════════════════════ */
.pfp-filter-bar {
    background: var(--pfp-white);
    border-bottom: 1.5px solid var(--pfp-border);
    position: sticky; top: 0; z-index: 200;
    box-shadow: 0 2px 8px rgba(0,0,0,.05);
}
.pfp-filter-bar__inner {
    max-width: 1320px; margin: 0 auto;
    padding: 8px 16px 6px;
}
.pfp-filters-row {
    display: flex; align-items: center;
    gap: 8px; flex-wrap: wrap;
    padding: 4px 0;
}
.pfp-filters-row--2 {
    border-top: 1px solid var(--pfp-border);
    margin-top: 4px; padding-top: 6px;
}

/* Pill selects */
.pfp-select {
    appearance: none; -webkit-appearance: none;
    background-color: var(--pfp-light);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%236b7280' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 9px center;
    border: 1.5px solid var(--pfp-border);
    border-radius: 20px;
    padding: 6px 26px 6px 12px;
    font-family: var(--pfp-fb);
    font-size: .78rem; font-weight: 600;
    color: var(--pfp-text);
    cursor: pointer; white-space: nowrap;
    transition: all .17s; flex-shrink: 0;
}
.pfp-select:focus { outline: none; border-color: var(--pfp-blue); box-shadow: 0 0 0 3px rgba(30,87,153,.1); }
.pfp-select.is-active {
    border-color: var(--pfp-navy);
    background-color: var(--pfp-navy);
    color: white;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23ffffff' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
}
.pfp-select--sm  { min-width: 70px; }
.pfp-select--region { min-width: 160px; }
.pfp-select--sort   { min-width: 120px; font-size: .75rem; }

/* Size group */
.pfp-size-group {
    display: flex; align-items: center; gap: 6px;
    border: 1.5px solid var(--pfp-border);
    border-radius: 20px; padding: 4px 10px;
    background: var(--pfp-light);
}
.pfp-size-label {
    font-size: .65rem; font-weight: 700;
    color: var(--pfp-muted); line-height: 1.2;
    text-align: center;
}
.pfp-size-group .pfp-select {
    border: none; background: transparent; padding: 2px 20px 2px 4px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%236b7280' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 3px center;
    font-size: .76rem;
}

/* Clear Filters button */
.pfp-clear-btn {
    border: 1.5px solid var(--pfp-border);
    background: var(--pfp-light); color: var(--pfp-muted);
    border-radius: 20px; padding: 4px 12px;
    font-family: var(--pfp-fb); font-size: .72rem; font-weight: 600;
    cursor: pointer; line-height: 1.4; text-align: center;
    white-space: nowrap; transition: all .17s;
}
.pfp-clear-btn:hover { border-color: var(--pfp-navy); color: var(--pfp-navy); background: white; }

/* Grid/Map toggle switch */
.pfp-grid-map-toggle {
    display: flex; align-items: center; gap: 6px;
}
.pfp-gm-label {
    font-size: .67rem; font-weight: 700; color: var(--pfp-muted);
    line-height: 1.2; text-align: center;
}
.pfp-toggle-switch {
    position: relative; display: inline-block; width: 34px; height: 18px;
}
.pfp-toggle-switch input { opacity: 0; width: 0; height: 0; }
.pfp-toggle-slider {
    position: absolute; cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background: var(--pfp-navy); border-radius: 18px;
    transition: .3s;
}
.pfp-toggle-slider::before {
    position: absolute; content: '';
    height: 12px; width: 12px;
    left: 3px; bottom: 3px;
    background: white; border-radius: 50%;
    transition: .3s;
}
.pfp-toggle-switch input:checked + .pfp-toggle-slider::before {
    transform: translateX(16px);
}

/* Map button */
.pfp-map-btn {
    border: 1.5px solid var(--pfp-border);
    background: var(--pfp-light); color: var(--pfp-muted);
    border-radius: 20px; padding: 5px 10px;
    font-family: var(--pfp-fb); font-size: .75rem; font-weight: 600;
    cursor: pointer; display: flex; align-items: center; gap: 5px;
    transition: all .17s;
}
.pfp-map-btn:hover, .pfp-map-btn.active {
    background: var(--pfp-navy); border-color: var(--pfp-navy); color: white;
}

/* Count */
.pfp-count-wrap {
    font-size: .78rem; color: var(--pfp-muted); font-weight: 500;
    margin-left: auto;
}
.pfp-count-wrap #pfp-count { color: var(--pfp-navy); font-weight: 700; }

/* ════════════════════════════════════════════════════════════
   MAIN LAYOUT
════════════════════════════════════════════════════════════ */
.pfp-layout {
    display: grid;
    grid-template-columns: 1fr 420px;
    grid-template-areas: "map list";
    height: calc(100vh - var(--hero-h) - var(--bar-h));
    max-width: 1320px; margin: 0 auto;
    padding: 12px; gap: 12px;
}

/* Split */
.pfp-layout[data-view="split"] .pfp-map-panel  { display: block; grid-area: map; }
.pfp-layout[data-view="split"] .pfp-list-panel { display: flex;  grid-area: list; }

/* Grid */
.pfp-layout[data-view="grid"] {
    grid-template-columns: 1fr;
    grid-template-areas: "list";
    height: auto; min-height: 60vh;
}
.pfp-layout[data-view="grid"] .pfp-map-panel  { display: none !important; }
.pfp-layout[data-view="grid"] .pfp-list-panel { display: flex; }
.pfp-layout[data-view="grid"] .pfp-cards {
    grid-template-columns: repeat(3, 1fr);
    gap: 14px; padding: 14px;
}
.pfp-layout[data-view="grid"] .pfp-card {
    flex-direction: column;
    border: 1.5px solid var(--pfp-border);
    border-radius: var(--pfp-rad);
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,.05);
}
.pfp-layout[data-view="grid"] .pfp-card__img,
.pfp-layout[data-view="grid"] .pfp-card__img-ph { width: 100%; height: 180px; }
.pfp-layout[data-view="grid"] .pfp-card__right  { flex-direction: row; align-items: center; padding: 0 12px 10px; }

/* Map only */
.pfp-layout[data-view="map"] {
    grid-template-columns: 1fr;
    grid-template-areas: "map";
}
.pfp-layout[data-view="map"] .pfp-map-panel  { display: block; }
.pfp-layout[data-view="map"] .pfp-list-panel { display: none !important; }

/* ════════════════════════════════════════════════════════════
   MAP PANEL
════════════════════════════════════════════════════════════ */
.pfp-map-panel {
    border-radius: var(--pfp-rad); overflow: hidden;
    border: 1.5px solid var(--pfp-border);
    box-shadow: var(--pfp-shadow); position: relative;
}
#pfp-map { width: 100%; height: 100%; min-height: 360px; }

.pfp-map-layers {
    position: absolute; top: 10px; left: 10px; z-index: 999;
    display: flex; background: white; border-radius: 5px;
    overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,.12);
}
.pfp-layer-btn {
    border: none; background: transparent;
    padding: 5px 11px; font-family: var(--pfp-fb);
    font-size: .73rem; font-weight: 700; color: var(--pfp-muted);
    cursor: pointer; transition: all .17s;
}
.pfp-layer-btn.active { background: var(--pfp-navy); color: white; }

/* ── Numbered marker (exactly like screenshot: "No.1") ── */
.pfp-num-marker {
    background: var(--pfp-navy);
    color: white;
    font-family: var(--pfp-fb);
    font-size: .68rem;
    font-weight: 700;
    padding: 4px 9px;
    border-radius: 4px;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0,0,0,.25);
    cursor: pointer;
    position: relative;
    transition: background .15s, transform .15s;
    line-height: 1.3;
}
.pfp-num-marker::after {
    content: '';
    position: absolute;
    bottom: -5px; left: 50%; transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: var(--pfp-navy); border-bottom: 0;
}
.pfp-num-marker:hover,
.pfp-num-marker.lit {
    background: var(--pfp-accent);
    transform: scale(1.08);
}
.pfp-num-marker.lit::after  { border-top-color: var(--pfp-accent); }
.pfp-num-marker:hover::after { border-top-color: var(--pfp-accent); }
.pfp-num-marker.under-offer { background: #d97706; }
.pfp-num-marker.under-offer::after { border-top-color: #d97706; }

/* ── Leaflet popup ───────────────────────────────────── */
.leaflet-popup-content-wrapper {
    border-radius: 10px !important;
    box-shadow: 0 4px 22px rgba(0,0,0,.15) !important;
    padding: 0 !important; overflow: hidden;
}
.leaflet-popup-content { margin: 0 !important; width: 230px !important; }
.pfp-popup { font-family: var(--pfp-fb); }
.pfp-popup img { width: 100%; height: 120px; object-fit: cover; display: block; }
.pfp-popup__body { padding: 10px 13px 13px; }
.pfp-popup__num  { font-size: .65rem; font-weight: 800; color: var(--pfp-muted); text-transform: uppercase; letter-spacing: .07em; margin-bottom: 3px; }
.pfp-popup__type { font-size: .67rem; font-weight: 700; color: var(--pfp-muted); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 3px; }
.pfp-popup__title { font-weight: 700; font-size: .9rem; line-height: 1.3; margin-bottom: 3px; }
.pfp-popup__addr  { color: var(--pfp-muted); font-size: .76rem; line-height: 1.4; margin-bottom: 8px; }
.pfp-popup__row   { display: flex; align-items: center; justify-content: space-between; }
.pfp-popup__price { font-family: var(--pfp-fh); font-weight: 400; font-size: 1.05rem; color: var(--pfp-navy); }
.pfp-popup__tenure {
    font-size: .64rem; font-weight: 800;
    background: var(--pfp-navy); color: white;
    padding: 2px 8px; border-radius: 10px;
}
.pfp-popup a.pfp-popup__btn {
    display: block; margin-top: 10px; text-align: center;
    background: var(--pfp-blue); color: white; padding: 7px;
    border-radius: 6px; font-size: .77rem; font-weight: 700;
    text-decoration: none; transition: background .2s;
}
.pfp-popup a.pfp-popup__btn:hover { background: var(--pfp-blue2); }

/* ════════════════════════════════════════════════════════════
   LIST PANEL
════════════════════════════════════════════════════════════ */
.pfp-list-panel {
    flex-direction: column; overflow-y: auto;
    border-radius: var(--pfp-rad); background: var(--pfp-white);
    border: 1.5px solid var(--pfp-border); box-shadow: var(--pfp-shadow);
    scrollbar-width: thin; scrollbar-color: var(--pfp-border) transparent;
}
.pfp-list-panel::-webkit-scrollbar { width: 4px; }
.pfp-list-panel::-webkit-scrollbar-thumb { background: var(--pfp-border); border-radius: 10px; }

/* Cards grid */
.pfp-cards { display: grid; grid-template-columns: 1fr; flex: 1; }

/* ── Individual card (matches screenshot style) ─────── */
.pfp-card {
    display: flex;
    border-bottom: 1px solid var(--pfp-border);
    cursor: pointer; transition: background .15s;
    text-decoration: none; color: inherit; position: relative;
}
.pfp-card:last-child { border-bottom: none; }
.pfp-card:hover { background: #f8f9fd; }
.pfp-card.is-active {
    background: rgba(30,87,153,.04);
    border-left: 3px solid var(--pfp-blue);
}

/* Card image */
.pfp-card__img {
    width: 120px; height: 96px;
    object-fit: cover; display: block; flex-shrink: 0;
}
.pfp-card__img-ph {
    width: 120px; height: 96px; background: #edf0f7;
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}

/* Card body */
.pfp-card__body { padding: 9px 8px 9px 12px; min-width: 0; flex: 1; }

.pfp-card__top {
    font-size: .67rem; font-weight: 700; color: var(--pfp-muted);
    text-transform: uppercase; letter-spacing: .06em;
    display: flex; align-items: center; gap: 4px; flex-wrap: wrap;
    margin-bottom: 4px;
}
/* Size badge in top row — matches screenshot "Industrial | 6,860 Sq ft" */
.pfp-card__size-inline {
    font-size: .67rem; color: var(--pfp-muted);
    font-weight: 600;
}
.pfp-card__top-sep { color: var(--pfp-border); font-size: .8em; }

.pfp-card__title {
    font-weight: 700; font-size: .9rem; line-height: 1.3;
    margin-bottom: 3px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.pfp-card__addr {
    color: var(--pfp-muted); font-size: .74rem; line-height: 1.4;
    overflow: hidden;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}

/* Right column */
.pfp-card__right {
    padding: 9px 12px 9px 6px;
    display: flex; flex-direction: column;
    align-items: flex-end; justify-content: space-between;
    flex-shrink: 0; gap: 4px; min-width: 70px;
}
.pfp-card__tenure-tag {
    font-size: .62rem; font-weight: 800;
    color: var(--pfp-muted); text-transform: uppercase;
    letter-spacing: .05em; white-space: nowrap;
}
.pfp-card__price {
    font-family: var(--pfp-fh); font-weight: 400;
    font-size: .96rem; color: var(--pfp-navy); white-space: nowrap;
}
.pfp-card__under-offer {
    font-size: .61rem; font-weight: 800;
    background: #d97706; color: white;
    padding: 2px 7px; border-radius: 10px; white-space: nowrap;
}
/* Ref number badge (No.1) — matches screenshot */
.pfp-card__num {
    font-size: .68rem; font-weight: 800;
    background: var(--pfp-navy); color: white;
    padding: 2px 8px; border-radius: 4px;
    white-space: nowrap; align-self: flex-end;
}

/* ════════════════════════════════════════════════════════════
   LOADING / EMPTY
════════════════════════════════════════════════════════════ */
.pfp-loading {
    display: flex; flex-direction: column; align-items: center;
    justify-content: center; gap: 14px; padding: 60px 20px;
    color: var(--pfp-muted); font-size: .88rem;
}
.pfp-spinner {
    width: 34px; height: 34px;
    border: 3px solid var(--pfp-border); border-top-color: var(--pfp-blue);
    border-radius: 50%; animation: pfp-spin .75s linear infinite;
}
@keyframes pfp-spin { to { transform: rotate(360deg); } }

.pfp-empty {
    display: none; flex-direction: column; align-items: center;
    justify-content: center; gap: 12px; padding: 60px 20px;
    text-align: center; color: var(--pfp-muted);
}
.pfp-empty h3 { font-family: var(--pfp-fh); color: var(--pfp-text); font-size: 1.1rem; }
.pfp-empty p  { font-size: .83rem; }
.pfp-empty button {
    margin-top: 6px; background: var(--pfp-navy); color: white; border: none;
    padding: 9px 22px; border-radius: 20px;
    font-family: var(--pfp-fb); font-size: .82rem; font-weight: 600;
    cursor: pointer; transition: background .2s;
}
.pfp-empty button:hover { background: var(--pfp-blue); }


/* ── Owl Carousel in cards ───────────────────── */
.pfp-owl {
    width: 100%;
    height: 100%;
}
.pfp-owl-item img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}
.pfp-card__img-wrap .owl-carousel {
    height: 220px;
}

/* Nav arrows */
.pfp-card__img-wrap .owl-nav button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.85) !important;
    border-radius: 50% !important;
    width: 30px !important;
    height: 30px !important;
    font-size: 20px !important;
    line-height: 1 !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    color: #2d3a5a !important;
    opacity: 0;
    transition: opacity 0.2s;
    border: none !important;
    z-index: 10;
}
.pfp-card:hover .pfp-card__img-wrap .owl-nav button { opacity: 1; }
.pfp-card__img-wrap .owl-prev { left: 8px !important; }
.pfp-card__img-wrap .owl-next { right: 8px !important; }
.pfp-card__img-wrap .owl-nav button:hover {
    background: white !important;
    color: #2d3a5a !important;
}

/* Dots */
.pfp-card__img-wrap .owl-dots {
    position: absolute;
    bottom: 8px;
    width: 100%;
    text-align: center;
    z-index: 10;
}
.pfp-card__img-wrap .owl-dot span {
    width: 6px !important;
    height: 6px !important;
    background: rgba(255,255,255,0.5) !important;
    margin: 0 3px !important;
}
.pfp-card__img-wrap .owl-dot.active span {
    background: #fff !important;
}

/* Make img-wrap relative for absolute positioning */
.pfp-card__img-wrap {
    position: relative;
    overflow: hidden;
}


/* ── Autocomplete Dropdown ── */
.pfp-search-dropdown {
    position: absolute;
    top: calc(100% - 6px);
    left: -3px;
    right: 0;
    background: #fff;
    border: 1px solid #e2e5ee;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(45,58,90,0.13);
    z-index: 9999;
    display: none;
    overflow: hidden;
    max-height: 380px;
    overflow-y: auto;
}

.pfp-ac-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    cursor: pointer;
    transition: background 0.15s;
    border-bottom: 1px solid #f0f2f7;
}
.pfp-ac-item:last-child { border-bottom: none; }
.pfp-ac-item:hover, .pfp-ac-item:focus { background: #f5f6fb; outline: none; }

.pfp-ac-thumb {
    width: 52px;
    height: 44px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
    background: #f0f2f7;
    display: flex;
    align-items: center;
    justify-content: center;
}
.pfp-ac-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.pfp-ac-thumb-ph { display: flex; align-items: center; justify-content: center; }

.pfp-ac-title {
    font-size: 13px;
    font-weight: 600;
    color: #2d3a5a;
    line-height: 1.3;
}
.pfp-ac-addr {
    font-size: 11px;
    color: #8a92a8;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 280px;
}

.pfp-card__img-wrap {
    position: relative;
}
.pfp-card__overlay {
    position: absolute;
    inset: 0;
    background: rgba(30, 40, 80, 0.45);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}
.pfp-card__overlay img {
    max-width: 120px;
}

/* ════════════════════════════════════════════════════════════
   RESPONSIVE
════════════════════════════════════════════════════════════ */
@media (max-width: 960px) {
    .pfp-layout {
        grid-template-columns: 1fr;
        grid-template-areas: "map" "list";
        height: auto;
    }
    .pfp-layout[data-view="split"] .pfp-map-panel  { height: 340px; }
    .pfp-layout[data-view="split"] .pfp-list-panel { min-height: 380px; max-height: 65vh; }
    .pfp-layout[data-view="map"]   { height: 70vh; }
}
@media (max-width: 600px) {
    .pfp-hero { padding: 22px 14px 16px; }
    .pfp-filter-bar__inner { padding: 6px 10px; }
    .pfp-count-wrap { display: none; }
    .pfp-card__img, .pfp-card__img-ph { width: 88px; height: 80px; }
    .pfp-layout { padding: 8px; gap: 8px; }
}
.elementor-shortcode .pfp-search-wrap div {
    display: none !important;
}