/* ── Navbar offset (fixed-top navbar) ──────────── */
body.page-search { padding-top: var(--nav-h, 86px); }

/* Плавно скриване на навбара при скрол надолу (JS добавя transform).
   will-change за по-гладка анимация; navbar-ът остава fixed-top. */
body.page-search #mainNav { will-change: transform; }

/* ── H1 заглавие на страницата ────────────────── */
.sr-h1 {
    font-size: 1.35rem;
    font-weight: 700;
    color: #1a2633;
    margin: .5rem 1rem .1rem;
    line-height: 1.25;
}
@media (min-width: 1024px) {
    .sr-h1 { font-size: 1.6rem; margin: .6rem 1.5rem .2rem; }
}

/* ── Navbar always solid on search (not transparent) ──── */
body.page-search .navbar-parcel {
    background: #1a1f2e !important;
    box-shadow: 0 2px 10px rgba(0,0,0,.15);
}
body.page-search .navbar-parcel__brand,
body.page-search .navbar-parcel .nav-link,
body.page-search .navbar-parcel__tld {
    color: #fff !important;
}
body.page-search .navbar-parcel__toggler span {
    background: #fff !important;
}

/* ── Clear (x) button in location input ───────────────── */
.sr-loc-clear {
    position: absolute;
    right: .5rem;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    border: none;
    background: #e2e8f0;
    color: #666;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: .7rem;
    line-height: 1;
    padding: 0;
    z-index: 2;
}
.sr-loc-clear:hover { background: #cbd2db; color: #333; }
.sr-loc-clear.show { display: flex; }
.sr-loc-in { padding-right: 1.9rem; }


/* ═══════════════════════════════════════════════
   search.css — parcel.bocom
   Mobile-first | Page-level scroll | Sticky bar+map
═══════════════════════════════════════════════ */

/* ── Filter bar ─────────────────────────────── */
.sr-bar {
    background: #fff;
    border-bottom: 1px solid #e2e8f0;
    padding: .85rem 1.2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,.07);
    position: sticky;
    top: var(--nav-h, 86px);   /* set by JS */
    z-index: 1100;             /* над Leaflet controls (~1000), за да не се крие филтърът */
}
.sr-bar-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .6rem;
}
.sr-g { display: flex; flex-direction: column; gap: .15rem; }
.sr-g--loc { flex: 1; min-width: 200px; max-width: 520px; }
.sr-lbl { font-size: .63rem; font-weight: 700; color: #888;
    text-transform: uppercase; letter-spacing: .5px; line-height: 1; }

/* Location autocomplete — flex row: icon | chip | input inline */
.sr-loc-wrap {
    display: flex;
    align-items: center;
    border: 1px solid var(--border, rgba(26,31,46,.1));
    background: #fff;
    height: 42px;
    padding: 0 .6rem 0 .55rem;
    transition: border-color .15s;
}
.sr-loc-wrap:focus-within { border-color: var(--gold, #c9a227); }
.sr-loc-icon {
    color: #aaa; font-size: .8rem; flex-shrink: 0;
    pointer-events: none; margin-right: .4rem;
}
/* Chip — inline flex child, gold pale, без заобляне (като hero) */
.sr-loc-chip {
    display: none;
    align-items: center;
    gap: .25rem;
    background: var(--gold-pale, #F5EDD6);
    border: 1px solid var(--border-gold, rgba(201,168,76,.35));
    padding: 2px 5px 2px 8px;
    font-size: .75rem;
    font-weight: 500;
    color: var(--text-dark, #1a1f2e);
    white-space: nowrap;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    flex-shrink: 0;
    border-radius: 0;
    margin-right: .35rem;
}
.sr-loc-chip__label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sr-loc-chip__x {
    background: none; border: none; padding: 0 2px;
    cursor: pointer; color: var(--text-muted, #8890a8);
    font-size: 15px; line-height: 1; flex-shrink: 0;
    display: flex; align-items: center;
}
.sr-loc-chip__x:hover { color: var(--text-dark, #1a1f2e); }
.sr-loc-in {
    flex: 1; min-width: 60px;
    border: none; outline: none; background: transparent;
    font-size: .88rem; font-family: inherit;
    color: var(--text-dark, #1a1f2e); padding: 0;
    height: 100%;
}
.sr-loc-in::placeholder { color: #aaa; }

/* iOS Safari зуумира автоматично при фокус, ако font-size на input е под 16px */
@media (max-width: 767px) {
    .sr-loc-in { font-size: 16px; }
}

/* Controls */
.sr-ctrl {
    border: 1.5px solid #dee2e6; border-radius: 8px;
    padding: .48rem .75rem; font-size: .86rem; outline: none;
    background: #fff; height: 42px; font-family: inherit;
    color: #333; box-shadow: none; -webkit-appearance: none;
    transition: border-color .15s;
}
.sr-ctrl:focus { border-color: var(--accent, #1a6b4a); }

/* Chips */
.sr-chip { position: relative; }
.sr-chip-btn {
    display: inline-flex; align-items: center; gap: .3rem;
    padding: 0 .85rem; border: 1.5px solid #dee2e6;
    border-radius: 50px; background: #fff;
    font-size: .79rem; font-weight: 600; color: #444;
    cursor: pointer; height: 42px; white-space: nowrap;
    font-family: inherit; line-height: 1; -webkit-appearance: none;
    transition: all .12s;
}
.sr-chip-btn:hover { border-color: var(--accent, #1a6b4a); color: var(--accent, #1a6b4a); }
.sr-chip-btn.filled { background: var(--accent, #1a6b4a); color: #fff; border-color: var(--accent, #1a6b4a); }
.sr-chip-btn .arr { font-size: .55rem; transition: transform .2s; display: inline-block; }
.sr-chip-btn.open .arr { transform: rotate(180deg); }
.sr-chip-drop {
    position: absolute; top: calc(100% + 6px); left: 0;
    background: #fff; border: 1.5px solid #dee2e6;
    border-radius: 12px; box-shadow: 0 8px 28px rgba(0,0,0,.13);
    padding: .9rem; z-index: 1050; min-width: 210px; display: none;
}
.sr-chip-drop.open { display: block; }
.sr-chip-dl { font-size: .67rem; font-weight: 700; color: #888;
    text-transform: uppercase; letter-spacing: .5px; margin-bottom: .45rem; }
.sr-chip-drop select,
.sr-chip-drop input[type="number"] {
    width: 100%; border: 1.5px solid #dee2e6; border-radius: 8px;
    padding: .36rem .6rem; font-size: .8rem; outline: none;
    margin-bottom: .45rem; font-family: inherit; color: #333;
    background: #fff; -webkit-appearance: none; height: auto;
    box-shadow: none; transition: border-color .15s;
}
.sr-chip-drop select:focus,
.sr-chip-drop input[type="number"]:focus { border-color: var(--accent, #1a6b4a); }
.sr-chip-row { display: flex; gap: .4rem; }
.sr-chip-row input { margin-bottom: 0 !important; flex: 1; }
.sr-apply {
    display: block; width: 100%; margin-top: .4rem;
    background: var(--accent, #1a6b4a); color: #fff; border: none;
    border-radius: 8px; padding: .42rem; font-size: .79rem;
    font-weight: 700; cursor: pointer; font-family: inherit;
    line-height: 1.5; -webkit-appearance: none;
}
.sr-apply:hover { filter: brightness(.9); }
.sr-search-btn {
    background: var(--accent, #1a6b4a); color: #fff; border: none;
    border-radius: 8px; padding: 0 1.3rem; height: 42px;
    font-size: .88rem; font-weight: 700; cursor: pointer;
    font-family: inherit; display: inline-flex; align-items: center;
    gap: .4rem; -webkit-appearance: none; white-space: nowrap;
}
.sr-search-btn:hover { filter: brightness(.9); }
.sr-search-btn:disabled { opacity: .5; cursor: not-allowed; }

/* View toggle */
.sr-view {
    display: inline-flex; border: 1.5px solid #dee2e6;
    border-radius: 8px; overflow: hidden; margin-left: auto; flex-shrink: 0;
}
.sr-vbtn {
    padding: 0 1rem; height: 42px; font-size: .82rem; font-weight: 600;
    border: none; border-right: 1px solid #dee2e6;
    background: #fff; color: #666; cursor: pointer;
    display: inline-flex; align-items: center; gap: .3rem;
    font-family: inherit; -webkit-appearance: none; transition: all .12s;
}
.sr-vbtn:last-child { border-right: none; }
.sr-vbtn.active { background: var(--accent, #1a6b4a); color: #fff; }
.sr-pin-count {
    background: rgba(255,255,255,.28); border-radius: 20px;
    padding: .05rem .38rem; font-size: .7rem; font-weight: 700;
}

/* ── Layout — mobile first ───────────────────── */
.sr-wrap { display: flex; flex-direction: column; width: 100%; }
.sr-results { width: 100%; padding: .8rem .9rem; }

/* Map panel */
.sr-map-col {
    width: 100%; height: 65vw; min-height: 300px; max-height: 460px;
    border-top: 2px solid #e2e8f0;
    display: none; flex-direction: column;
}
.sr-map-col.show { display: flex; }
.sr-map-hdr {
    padding: .38rem .75rem; font-size: .74rem; font-weight: 600;
    color: #555; border-bottom: 1px solid #e9ecef;
    display: flex; align-items: center; justify-content: space-between;
    flex-shrink: 0; background: #f8f9fa;
}
.sr-map-hint { color: #999; font-weight: 400; font-size: .71rem; }
#srMap { flex: 1; min-height: 0; }

/* Leaflet вътрешните слоеве да не изскачат над sticky bar-а (филтрите).
   По подразбиране controls са z-index ~1000; ограничаваме ги под .sr-bar. */
#srMap .leaflet-pane      { z-index: auto; }
#srMap .leaflet-top,
#srMap .leaflet-bottom    { z-index: 800; }
#srMap .leaflet-control   { z-index: 800; }

/* Status */
.sr-status {
    display: flex; align-items: center; gap: .5rem; flex-wrap: wrap;
    padding: .25rem 0 .7rem; font-size: .81rem; color: #6c757d;
    border-bottom: 1px solid #f0f0f0; margin-bottom: .8rem;
}
.sr-status strong { color: #333; }
.sr-seo-title {
    margin-left: auto; font-size: .74rem; color: #bbb;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 280px;
}
.sr-spin {
    display: none; width: 14px; height: 14px; flex-shrink: 0;
    border: 2px solid #dee2e6; border-top-color: var(--accent, #1a6b4a);
    border-radius: 50%; animation: srSpin .7s linear infinite;
}
@keyframes srSpin { to { transform: rotate(360deg); } }

/* Grid — mobile 1 col */
.sr-grid { display: grid; grid-template-columns: 1fr; gap: .85rem; }

/* ── Cards ───────────────────────────────────── */
.sc {
    border-radius: 10px; overflow: hidden; background: #fff;
    border: 1px solid #e2e8f0; display: flex; flex-direction: column;
    transition: box-shadow .18s, border-color .18s; cursor: pointer;
    text-decoration: none; color: inherit;
}
.sc:hover { text-decoration: none; color: inherit; }
.sc:hover, .sc.highlight {
    box-shadow: 0 4px 18px rgba(0,0,0,.1); border-color: var(--accent, #1a6b4a);
}
.sc__img-wrap {
    position: relative; aspect-ratio: 16/9; overflow: hidden;
    background: #edf0f4; display: block; flex-shrink: 0; text-decoration: none;
}
.sc__img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sc__img-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: #ccc; }
.sc__badge {
    position: absolute; top: .5rem; left: .5rem;
    background: rgba(0,0,0,.52); color: #fff;
    font-size: .62rem; font-weight: 700; padding: .15rem .48rem;
    border-radius: 20px; backdrop-filter: blur(3px); line-height: 1.4;
}
.sc__disc {
    position: absolute; top: .5rem; right: 2.5rem;
    background: #c0392b; color: #fff; font-size: .6rem; font-weight: 700;
    padding: .13rem .44rem; border-radius: 20px; line-height: 1.4;
}
.sc__mapbtn {
    position: absolute; top: .5rem; right: .5rem;
    width: 26px; height: 26px; background: rgba(255,255,255,.9);
    border: none; border-radius: 6px; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    color: var(--accent, #1a6b4a); box-shadow: 0 1px 4px rgba(0,0,0,.2);
    padding: 0; transition: background .12s;
}
.sc__mapbtn:hover { background: #fff; }

/* ── Мини слайдър (до 3 снимки) вътре в .sc__img-wrap ──────────
   Само стрелките сменят снимката (preventDefault+stopPropagation в
   srCardNav). Навсякъде другаде върху снимката си остава линк към
   офертата — умишлено НЯМА swipe/drag на самия track. */
.sc__img-track {
    display: flex;
    width: 100%; height: 100%;
    transition: transform .3s ease;
    will-change: transform;
}
.sc__img-track .sc__img { flex: 0 0 100%; width: 100%; }

.sc__nav {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 26px; height: 26px;
    border: none; border-radius: 50%;
    background: rgba(255,255,255,.85); color: #1a2633;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; padding: 0;
    opacity: 0; transition: opacity .18s, background .18s;
    z-index: 3;
}
.sc__img-wrap:hover .sc__nav { opacity: 1; }
.sc__nav:hover { background: #fff; }
.sc__nav--prev { left: 8px; }
.sc__nav--next { right: 8px; }
.sc__nav svg { width: 13px; height: 13px; }
@media (hover: none) {
    .sc__nav { opacity: .55; width: 34px; height: 34px; }
    .sc__nav svg { width: 16px; height: 16px; }
}

.sc__dots {
    position: absolute; bottom: 8px; left: 0; right: 0;
    display: flex; justify-content: center; gap: 4px;
    z-index: 3; pointer-events: none;
}
.sc__dot {
    width: 5px; height: 5px; border-radius: 50%;
    background: rgba(255,255,255,.55);
    transition: background .18s, transform .18s;
}
.sc__dot.is-active { background: #fff; transform: scale(1.3); }

.sc__body { padding: .7rem .85rem; flex: 1; display: flex; flex-direction: column; gap: .25rem; }
.sc__title {
    font-size: .855rem; font-weight: 600; color: #1a2633; line-height: 1.38;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden; margin: 0;
}
.sc__title a { color: inherit; text-decoration: none; }
.sc:hover .sc__title { color: var(--accent, #1a6b4a); }
.sc__loc { font-size: .73rem; color: #6c757d; display: flex; align-items: center; gap: .25rem; margin: 0; }
.sc__loc--btn {
    display: flex; align-items: center; gap: .25rem;
    background: none; border: none; padding: .2rem 0; width: 100%;
    font-family: inherit; font-size: inherit; color: inherit; text-align: left; cursor: pointer;
    appearance: none; -webkit-appearance: none; -moz-appearance: none;
    border-radius: 0; box-shadow: none; outline-offset: 2px;
    transition: color .12s;
}
.sc__loc--btn:hover { color: var(--accent, #1a6b4a); }
@media (hover: none) {
    .sc__loc--btn { padding: .4rem 0; }
}
.sc__meta { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: auto; padding-top: .2rem; }
.sc__mi { font-size: .71rem; color: #555; display: flex; align-items: center; gap: .2rem; }
.sc__ref { font-size: .68rem; color: #bbb; margin-left: auto; }
.sc__foot {
    padding: .55rem .85rem; border-top: 1px solid #f0f0f0;
    display: flex; align-items: center; justify-content: space-between; gap: .4rem;
}
.sc__price { font-size: .95rem; font-weight: 700; color: var(--accent, #1a6b4a); display: block; }
.sc__old { font-size: .7rem; color: #aaa; text-decoration: line-through; display: block; line-height: 1.2; }
.sc__btn {
    font-size: .72rem; font-weight: 600; color: var(--accent, #1a6b4a);
    border: 1.5px solid var(--accent, #1a6b4a); border-radius: 6px;
    padding: .26rem .65rem; text-decoration: none; white-space: nowrap;
    flex-shrink: 0; display: inline-block; line-height: 1.4; transition: all .12s;
}
.sc__btn:hover { background: var(--accent, #1a6b4a); color: #fff; text-decoration: none; }

/* Pagination */
.sr-pg {
    display: flex; align-items: center; justify-content: center;
    gap: .35rem; margin: 1.2rem 0; flex-wrap: wrap;
}
.sr-pg a, .sr-pg-disabled, .sr-pg-dots {
    min-width: 33px; height: 33px; border: 1.5px solid #dee2e6;
    border-radius: 7px; background: #fff; font-size: .8rem; font-weight: 600;
    color: #444; cursor: pointer; font-family: inherit; text-decoration: none;
    display: inline-flex; align-items: center; justify-content: center;
    padding: 0 .5rem; -webkit-appearance: none; transition: all .12s;
}
.sr-pg a:hover { border-color: var(--accent, #1a6b4a); color: var(--accent, #1a6b4a); }
.sr-pg a.on { background: var(--accent, #1a6b4a); color: #fff; border-color: var(--accent, #1a6b4a); cursor: default; }
.sr-pg-disabled { opacity: .3; cursor: not-allowed; border-color: transparent; background: transparent; pointer-events: none; }
.sr-pg-dots { border: none; background: none; color: #999; min-width: auto; padding: 0 .2rem; cursor: default; }
.sr-empty { text-align: center; padding: 2.5rem 1rem; color: #6c757d; grid-column: 1/-1; }
.sr-empty i { font-size: 2.5rem; display: block; margin-bottom: .8rem; opacity: .25; }
.sr-seo { margin-top: 1.5rem; padding: 1.25rem; background: #f8f9fa;
    border-radius: 10px; font-size: .875rem; color: #555; line-height: 1.7; }

/* ── Leaflet popup — card style ──────────────────────── */
.lf-popup-wrap .leaflet-popup-content-wrapper {
    border-radius: 10px;
    box-shadow: 0 6px 24px rgba(0,0,0,.13);
    padding: 0 !important;
    overflow: hidden;
    width: 220px;
}
.lf-popup-wrap .leaflet-popup-content {
    margin: 0 !important;
    width: 220px !important;
    min-width: 0 !important;
}
.lf-popup-wrap .leaflet-popup-tip-container { margin-top: -1px; }

.lf-pop { width: 220px; font-size: .8rem; line-height: 1.4; }
.lf-pop__img { line-height: 0; }
.lf-pop__img img { display: block; width: 100%; height: 130px; object-fit: cover; }
.lf-pop__body { padding: .55rem .65rem .65rem; }
.lf-pop__title { font-size: .81rem; font-weight: 700; color: #1a2633; line-height: 1.25;
    margin-bottom: .3rem; display: -webkit-box; -webkit-line-clamp: 2;
    -webkit-box-orient: vertical; overflow: hidden; }
.lf-pop__price { color: var(--accent, #1a6b4a); font-size: .95rem; font-weight: 800;
    margin-bottom: .35rem; }
.lf-pop__meta { display: flex; flex-direction: column; gap: .2rem; margin-bottom: .5rem; }
.lf-pop__row { display: flex; align-items: center; gap: .3rem; color: #555; font-size: .74rem; }
.lf-pop__ic { width: 12px; height: 12px; fill: var(--accent, #1a6b4a); flex-shrink: 0; }
.lf-pop__btn { display: block; text-align: center; background: var(--accent, #1a6b4a);
    color: #fff !important; padding: .4rem; border-radius: 6px; font-size: .78rem;
    font-weight: 700; text-decoration: none; transition: opacity .15s; }
.lf-pop__btn:hover { opacity: .85; text-decoration: none; }

/* ── Skeleton loader ─────────────────────────────── */
.lf-sk { background: linear-gradient(90deg,#edf0f4 25%,#e0e5eb 50%,#edf0f4 75%);
    background-size: 200% 100%; animation: lf-shimmer 1.3s infinite; border-radius: 4px; }
@keyframes lf-shimmer { 0%{background-position:200% 0} 100%{background-position:-200% 0} }
.lf-sk-img   { width: 100%; height: 130px; border-radius: 0; }
.lf-sk-title { height: 11px; margin: .55rem .65rem .3rem; width: 88%; }
.lf-sk-price { height: 14px; margin: 0 .65rem .35rem; width: 42%; }
.lf-sk-row   { height: 10px; margin: 0 .65rem .2rem; width: 70%; }
.lf-sk-btn   { height: 30px; margin: .4rem .65rem .65rem; width: calc(100% - 1.3rem); border-radius: 6px; }





/* ── Filter button & panel ───────────────────── */
.sr-filter-btn {
    display: inline-flex; align-items: center; gap: .35rem;
    padding: 0 .95rem; height: 42px;
    border: 1.5px solid #dee2e6; border-radius: 8px;
    background: #fff; font-size: .81rem; font-weight: 600; color: #444;
    cursor: pointer; font-family: inherit; white-space: nowrap;
    -webkit-appearance: none; transition: all .12s;
    position: relative;
}
.sr-filter-btn:hover,
.sr-filter-btn.open { border-color: var(--accent, #1a6b4a); color: var(--accent, #1a6b4a); }
.sr-filter-btn .arr  { font-size: .55rem; transition: transform .2s; }
.sr-filter-btn.open .arr { transform: rotate(180deg); }
.sr-filter-badge {
    display: none;               /* показва се само когато има съдържание */
    align-items: center; justify-content: center;
    min-width: 17px; height: 17px; padding: 0 4px;
    background: #fff; color: var(--gold-dark, #8b6914);
    border: 1px solid var(--gold, #c9a227);
    border-radius: 999px; font-size: .66rem; font-weight: 400;
    line-height: 1; font-family: inherit;
    position: absolute; top: -6px; right: -6px;
}
/* Показва се само ако JS е добавил .show И има числово съдържание.
   :empty пази срещу стар кеширан badge с точка/празен span. */
.sr-filter-badge.show:not(:empty) { display: inline-flex; }

/* Panel */
.sr-filter-panel {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    background: #fff;
    border: 1.5px solid #dee2e6;
    border-radius: 14px;
    box-shadow: 0 10px 36px rgba(0,0,0,.14);
    padding: 1.1rem 1.25rem;
    z-index: 1050;
    min-width: 300px;
    display: none;
}
.sr-filter-panel.open { display: block; }

.sr-fp-close {
    position: absolute;
    top: .6rem;
    right: .6rem;
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    color: #8890a8;
    font-size: 1.3rem;
    line-height: 1;
    cursor: pointer;
    border-radius: 0;
    transition: background .15s, color .15s;
}
.sr-fp-close:hover {
    background: #f5f2e8;
    color: #c9a227;
}
.sr-fp-close:focus-visible {
    outline: 2px solid #c9a227;
    outline-offset: 1px;
}

/* Panel anchor — wrapper around button+panel */
.sr-filter-wrap { position: relative; }

.sr-fp-row {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin-bottom: .75rem;
}
.sr-fp-row--multi {
    flex-direction: column;
    align-items: stretch;
    gap: .4rem;
}
.sr-fp-lbl--full {
    width: auto;
}
.sr-fp-lbl {
    width: 80px;
    flex-shrink: 0;
    font-size: .76rem;
    font-weight: 600;
    color: #555;
    margin: 0;
    line-height: 1;
}
.sr-fp-ctrl {
    flex: 1;
    border: 1.5px solid #dee2e6;
    border-radius: 8px;
    padding: .38rem .65rem;
    font-size: .82rem;
    outline: none;
    background: #fff;
    height: 35px;
    font-family: inherit;
    color: #333;
    -webkit-appearance: none;
    box-shadow: none;
    transition: border-color .15s;
}
.sr-fp-ctrl:focus { border-color: var(--accent, #1a6b4a); }
.sr-fp-range {
    display: flex; align-items: center; gap: .4rem; flex: 1;
}
.sr-fp-range .sr-fp-ctrl { flex: 1; min-width: 0; }
.sr-fp-dash { color: #aaa; flex-shrink: 0; font-size: .85rem; }
.sr-fp-footer {
    display: flex; align-items: center; justify-content: space-between;
    margin-top: .9rem; padding-top: .8rem; border-top: 1px solid #f0f0f0;
}
.sr-fp-clear {
    background: none; border: none; color: #999; font-size: .79rem;
    cursor: pointer; font-family: inherit; padding: 0;
}
.sr-fp-clear:hover { color: #555; }
.sr-fp-apply {
    background: var(--accent, #1a6b4a); color: #fff; border: none;
    border-radius: 8px; padding: .42rem 1.1rem; font-size: .82rem;
    font-weight: 700; cursor: pointer; font-family: inherit;
    display: inline-flex; align-items: center; gap: .35rem;
    -webkit-appearance: none;
}
.sr-fp-apply:hover { filter: brightness(.9); }
.sr-btn-lbl { display: none; }

/* ── Responsive ──────────────────────────────── */

/* ── Mobile/Tablet (< 1024px): БЕЗ карта ─────────────────────────────
   Картата няма пинове на офертите (agency policy), затова на телефон е
   безсмислена — крием я изцяло, крием и toggle-а "Списък/Карта", и винаги
   показваме списъка. ЦЯЛАТА JS логика остава непокътната — за да се пусне
   картата отново на mobile, просто изтрий/коментирай този media блок.

   ⚠️ За да върнеш картата на mobile по-късно (когато има пинове):
      махни правилата за .sr-map-col / .sr-view по-долу. */
@media (max-width: 1023px) {
    /* Карта — скрита при всякакъв режим (list или map-mode) */
    .sr-map-col,
    .sr-wrap.map-mode .sr-map-col { display: none !important; }

    /* Toggle "Списък/Карта" — скрит (само списък на телефон) */
    .sr-view { display: none !important; }

    /* Резултатите винаги видими, дори ако map-mode класът е активен */
    .sr-wrap.map-mode .sr-results,
    .sr-wrap .sr-results { display: block; width: 100%; }

    /* Ако map-mode е бил активен от desktop сесия — неутрализирай grid-а.
       На таблет (≥560px) го връщаме на 2 колони точно под този блок. */
    .sr-wrap.map-mode .sr-grid { grid-template-columns: 1fr; }
}

/* ── Tablet 2-col ────────────────────────────── */
@media (min-width: 560px) {
    .sr-grid,
    .sr-wrap.map-mode .sr-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 600px) {
    .sr-vbtn-lbl { display: inline; }
    .sr-btn-lbl  { display: inline; }
    .sr-filter-panel { min-width: 360px; }
}

@media (min-width: 1024px) {
    .sr-bar { padding: .6rem 1.2rem; }
    .sr-wrap { flex-direction: row; align-items: flex-start; }
    .sr-results { flex: 1; min-width: 0; padding: 1rem 1.2rem; }

    /* List mode: 4-col, centered */
    .sr-grid { grid-template-columns: repeat(4, 1fr); }
    .sr-wrap:not(.map-mode) .sr-results { max-width: 86%; margin: 0 auto; }
    .sr-map-col {
        width: 46%; max-width: 560px; flex-shrink: 0;
        height: calc(100vh - var(--nav-h, 86px) - var(--bar-h, 60px));
        min-height: 400px; max-height: none;
        border-top: none; border-left: 2px solid #e2e8f0;
        position: sticky;
        top: calc(var(--nav-h, 86px) + var(--bar-h, 60px));
        display: none; /* hidden until user clicks Карта */
    }
    .sr-map-col.show { display: flex; }

    /* Map mode: narrower cards, wider map */
    .sr-wrap.map-mode .sr-results { flex: 1; }
    .sr-wrap.map-mode .sr-grid    { grid-template-columns: repeat(2, 1fr); }
    .sr-wrap.map-mode .sr-map-col { flex: 1; width: auto; max-width: none; }
}

@media (min-width: 1400px) {
    .sr-wrap.map-mode .sr-results { flex: 1; }
}




/* Multi-select type list */
.sr-fp-multi {
    height: auto !important;
    min-height: 110px;
    padding: .3rem !important;
}
.sr-fp-multi option {
    padding: .35rem .5rem;
    border-radius: 5px;
    font-size: .8rem;
    cursor: pointer;
}
.sr-fp-multi option:checked {
    background: var(--accent, #1a6b4a) linear-gradient(0deg, var(--accent, #1a6b4a), var(--accent, #1a6b4a));
    color: #fff;
}
.sr-fp-row
.sr-fp-row.sr-fp-row--multi .sr-fp-lbl { padding-top: .4rem; }


/* ── Panel title ─────────────────────────────── */
.sr-fp-title {
    font-size: .85rem;
    font-weight: 700;
    color: #1a2633;
    padding: .1rem 0 .6rem;
    border-bottom: 1px solid #e8ecf0;
    margin-bottom: .5rem;
    letter-spacing: .01em;
}

/* ── Order select in bar ─────────────────────── */
.sr-order-ctrl {
    height: 38px;
    padding: 0 .6rem;
    border: 1px solid #dde3ea;
    border-radius: 8px;
    background: #fff;
    font-size: .8rem;
    color: #1a2633;
    cursor: pointer;
    white-space: nowrap;
}
.sr-order-ctrl:focus { outline: none; border-color: var(--accent, #1a6b4a); }

/* ── Filter panel mobile fullwidth ─────────────── */
@media (max-width: 599px) {
    .sr-filter-wrap { position: static; }
    .sr-filter-panel {
        position: fixed;
        top: auto;
        left: 0; right: 0; bottom: 0;
        width: 100%;
        min-width: 0;
        border-radius: 16px 16px 0 0;
        max-height: 80vh;
        overflow-y: auto;
        box-shadow: 0 -4px 24px rgba(0,0,0,.18);
        z-index: 2000;
    }
    .sr-filter-panel.open { display: block; }
    .sr-fp-lbl { width: 70px; }
}


/* ── Map button on card ─────────────────────── */
/* На обикновена страница картичките нямат пин бутон */
body.page-search:not(.is-map-search) .sc__mapbtn { display: none !important; }

/* ── Carousel card adaptation (home) ─────────── */
.listing-card { display: flex; flex-direction: column; }
.listing-card .sc { height: 100%; border-radius: 0; border: none; box-shadow: none; }
.listing-card .sc__mapbtn { display: none; }
/* ── Type checkbox list ─────────────────────────────── */
.sr-type-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    max-height: 280px;
    overflow-y: auto;
}

.sr-type-row {
    display: flex;
    align-items: center;
    border-radius: 5px;
    transition: background .1s;
    cursor: pointer;
}

.sr-type-row:hover {
    background: #f4f6f8;
}

.sr-type-row input[type="checkbox"] {
    display: none;
}

.sr-type-row label {
    display: flex;
    align-items: center;
    width: 100%;
    padding: .42rem .6rem .42rem 2.2rem;
    font-size: .86rem;
    color: #333;
    cursor: pointer;
    position: relative;
    border-radius: 5px;
    user-select: none;
    line-height: 1.3;
}

/* Custom checkbox box */
.sr-type-row label::before {
    content: '';
    position: absolute;
    left: .7rem;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    border: 1.5px solid #ccc;
    border-radius: 4px;
    background: #fff;
    transition: all .12s;
    flex-shrink: 0;
}

/* Checkmark */
.sr-type-row label::after {
    content: '';
    position: absolute;
    left: 1.1rem;
    top: 50%;
    transform: translateY(-62%) rotate(45deg);
    width: 5px;
    height: 10px;
    border: 2px solid transparent;
    border-top: none;
    border-left: none;
    transition: all .12s;
}

.sr-type-row input[type="checkbox"]:checked + label::before {
    background: var(--accent, #1a5c35);
    border-color: var(--accent, #1a5c35);
}

.sr-type-row input[type="checkbox"]:checked + label::after {
    border-color: #fff;
}


/* ── Hero search panel overflow fix ─────────────────── */
.search-panel,
.search-panel__body,
.search-panel__fields {
    overflow: visible !important;
}

/* ── Hero type Bootstrap dropdown ───────────────────── */
.hero-type-btn {
    display: flex;
    align-items: center;
    gap: .5rem;
    width: 100%;
    text-align: left;
    background: #fff;
    border: 1.5px solid #dee2e6;
    border-radius: 8px;
    padding: 0 1rem;
    height: 46px;
    font-size: .88rem;
    font-family: inherit;
    color: #444;
    cursor: pointer;
    white-space: nowrap;
    -webkit-appearance: none;
}
.hero-type-btn::after { display: none; } /* скрий Bootstrap caret */
.hero-type-btn:focus,
.hero-type-btn.show {
    border-color: var(--accent, #1a5c35);
    color: var(--accent, #1a5c35);
    box-shadow: none;
    outline: none;
}
.hero-type-btn span { flex: 1; }

.hero-type-menu {
    min-width: 240px;
    padding: .4rem .4rem 0;
    border: 1.5px solid #dee2e6;
    border-radius: 10px;
    box-shadow: 0 10px 36px rgba(0,0,0,.14);
    z-index: 9999 !important;
}
.hero-type-menu .sr-type-list {
    max-height: 220px;
    overflow-y: auto;
}
.hero-type-footer {
    display: flex;
    gap: .5rem;
    padding: .6rem .4rem;
    border-top: 1px solid #eee;
    margin-top: .3rem;
}
.hero-type-clear {
    flex: 1;
    padding: .4rem;
    border: 1.5px solid #dee2e6;
    border-radius: 7px;
    background: #fff;
    font-size: .82rem;
    font-family: inherit;
    color: #666;
    cursor: pointer;
}
.hero-type-clear:hover { border-color: #bbb; color: #333; }
.hero-type-ok {
    flex: 1;
    padding: .4rem;
    border: none;
    border-radius: 7px;
    background: var(--accent, #1a5c35);
    font-size: .82rem;
    font-weight: 700;
    font-family: inherit;
    color: #fff;
    cursor: pointer;
}
.hero-type-ok:hover { filter: brightness(.9); }

/* ── Search panel ad-type tabs (above white panel, on hero) ── */

/* .search-panel__tabs вече е в parcel.css — тук само sp-tab бутоните */
.sp-tab {
    padding: 10px 28px;
    border: none;
    background: rgba(15, 18, 28, 0.45);
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.78rem;
    font-weight: 600;
    font-family: inherit;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s, color 0.15s;
    -webkit-tap-highlight-color: transparent;
    line-height: 1.4;
}

/* разделител между двата */
.sp-tab + .sp-tab {
    border-left: 1.5px solid rgba(255, 255, 255, 0.4);
}

.sp-tab:hover {
    background: rgba(15, 18, 28, 0.65);
    color: #fff;
}

/* Активен — бял фон, тъмен текст — ясен избор */
.sp-tab--active {
    background: #fff;
    color: #1a1f2e;
    font-weight: 700;
}

.sp-tab--active:hover {
    background: #f5f5f0;
    color: #1a1f2e;
}

@media (max-width: 479px) {
    .search-panel__tabs {
        display: flex;
        width: 100%;
        border-radius: 6px 6px 0 0;
    }
    .sp-tab {
        flex: 1;
        text-align: center;
        padding: 11px 10px;
        font-size: 0.72rem;
    }
}
/* ── Ad-type pills За продажба / Под наем ─────────────────── */
.sr-adtype-pills {
    display: inline-flex;
    flex-shrink: 0;
    overflow: hidden;
}
.sr-adtype-pill {
    padding: 0 1rem;
    height: 42px;
    border: 1px solid var(--border, rgba(26,31,46,.1));
    background: #fff;
    font-family: var(--sans, 'DM Sans', sans-serif);
    font-size: .72rem;
    font-weight: 500;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--text-muted, #8890a8);
    cursor: pointer;
    white-space: nowrap;
    transition: background .15s, color .15s, border-color .15s;
    border-radius: 0;
    line-height: 1;
}
.sr-adtype-pill + .sr-adtype-pill { border-left: none; }
.sr-adtype-pill.is-active {
    background: rgba(201,168,76,.15);
    border-color: var(--gold, #c9a227);
    color: var(--gold-dark, #8b6914);
    font-weight: 600;
}
.sr-adtype-pill:not(.is-active):hover {
    background: var(--gold-pale, #f5edd6);
    color: var(--text-dark, #1a1f2e);
    border-color: var(--border-gold, rgba(201,168,76,.3));
}

/* ── Mobile bar: компактно подреждане на контролите ───────── */
@media (max-width: 599px) {
    .sr-bar { padding: .6rem .7rem; }
    .sr-bar-inner { gap: .45rem; }
    /* Pills + локация на първи ред (пълна ширина), останалото под тях */
    .sr-adtype-pills { order: 1; }
    .sr-g--loc { order: 2; flex: 1 1 100%; min-width: 0; max-width: none; }
    .sr-filter-wrap { order: 3; }
    .sr-order-ctrl  { order: 4; flex: 1; min-width: 0; }
    .sr-search-btn  { order: 5; }
    .sr-view        { order: 6; margin-left: 0; }
    /* Pills да заемат наличната ширина 50/50 на тесни екрани */
    .sr-adtype-pills { flex: 1 1 100%; }
    .sr-adtype-pill  { flex: 1; text-align: center; justify-content: center; }
}

/* ── Трохички (breadcrumbs) ───────────────────────────────── */
/* DOM редът вече е: search bar → breadcrumbs → H1 → wrap (desktop подредба
   по подразбиране, без нужда от order). На mobile местим трохичките най-долу
   (над футъра) чрез order, за да не се пречкат до закованата търсачка. */
.sr-page {
    display: flex;
    flex-direction: column;
}

.sr-breadcrumbs {
    padding: .55rem 1rem .5rem;
    background: #fff;
    font-size: .76rem;
    line-height: 1.3;
}
.sr-bc-list {
    list-style: none;
    margin: 0; padding: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0;
}
.sr-bc-item {
    display: inline-flex;
    align-items: center;
}
.sr-bc-link {
    color: var(--text-muted, #8890a8);
    text-decoration: none;
    transition: color .15s;
}
.sr-bc-link:hover {
    color: var(--gold-dark, #8b6914);
    text-decoration: underline;
}
.sr-bc-current {
    color: var(--text-dark, #1a1f2e);
    font-weight: 600;
}
.sr-bc-sep {
    margin: 0 .45rem;
    color: #ccc;
    font-size: .8rem;
    user-select: none;
}
@media (max-width: 599px) {
    /* На телефон трохичките отиват НАЙ-ДОЛУ (над футъра), за да не се
       пречкат горе до закованата търсачка. Хоризонтален скрол за дълги пътеки. */
    .sr-page > .sr-breadcrumbs { order: 99; }
    .sr-breadcrumbs {
        padding: .7rem .7rem .75rem;
        font-size: .72rem;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        border-top: 1px solid #ececec;   /* отделя ги от резултатите отгоре */
        background: #fafafa;
    }
    .sr-bc-list { flex-wrap: nowrap; white-space: nowrap; }
    .sr-bc-sep { margin: 0 .3rem; }
    .sr-bc-item { flex-shrink: 0; }
}

/* ── Explore links (SEO "Разгледай по..." акордиони) ──────────────────── */
#srExplore {
    padding: 1.5rem 1.2rem 2rem;
    border-top: 1px solid #ececec;
    background: #fafafa;
}
.sr-explore__group + .sr-explore__group {
    border-top: 1px solid #e8e5de;
}
.sr-explore__toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .6rem;
    padding: .85rem .2rem;
    background: none;
    border: none;
    cursor: pointer;
    font-family: 'DM Sans', sans-serif;
    font-size: .88rem;
    font-weight: 500;
    color: #1a1f2e;
    text-align: left;
}
.sr-explore__toggle:hover { color: #c9a227; }
.sr-explore__chevron {
    flex-shrink: 0;
    color: #8890a8;
    transition: transform .2s ease, color .2s ease;
}
.sr-explore__toggle:hover .sr-explore__chevron { color: #c9a227; }
.sr-explore__toggle[aria-expanded="true"] .sr-explore__chevron {
    transform: rotate(180deg);
}
.sr-explore__body {
    padding: 0 .2rem 1.1rem;
}
.sr-explore__links {
    font-size: .82rem;
    line-height: 1.9;
    color: #555;
}
.sr-explore__links a {
    color: #3a5a7a;
    text-decoration: none;
    white-space: nowrap;
}
.sr-explore__links a:hover {
    color: #c9a227;
    text-decoration: underline;
}
.sr-explore__cnt {
    color: #aaa;
    font-size: .78rem;
}
.sr-explore__sep {
    margin: 0 .5rem;
    color: #ccc;
    user-select: none;
}

@media (max-width: 599px) {
    /* На mobile inline-flow с separators се пренася грозно на много редове —
       минаваме на чист вертикален списък, по един линк на ред. */
    #srExplore { padding: 1.2rem .9rem 1.6rem; }
    .sr-explore__toggle { padding: .8rem 0; font-size: .85rem; }
    .sr-explore__links {
        display: flex;
        flex-direction: column;
        gap: .55rem;
        font-size: .82rem;
        line-height: 1.4;
    }
    .sr-explore__links a {
        white-space: normal;
        display: block;
    }
    .sr-explore__sep { display: none; }
}
/* ── Мобилен map popup за .sc картичка (когато .sr-map-col е скрита) ── */
.sc-map-popup {
    display: none;
    position: fixed; inset: 0; z-index: 10000;
    align-items: center; justify-content: center;
}
.sc-map-popup.is-open { display: flex; }
.sc-map-popup__backdrop {
    position: absolute; inset: 0; background: rgba(15,18,28,.72);
}
.sc-map-popup__panel {
    position: relative; z-index: 1;
    width: 92%; max-width: 480px;
    background: #fff; border-radius: 10px; overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,.35);
}
.sc-map-popup__close {
    position: absolute; top: 8px; right: 8px; z-index: 3;
    width: 30px; height: 30px; border-radius: 50%;
    background: rgba(255,255,255,.92); border: none;
    font-size: 20px; line-height: 1; color: #1a2633; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
}
.sc-map-popup__close:hover { background: #fff; }
.sc-map-popup__frame-wrap {
    position: relative; width: 100%; height: 320px; background: #f0f4f0;
}
.sc-map-popup__frame { width: 100%; height: 100%; border: none; display: block; }
.sc-map-popup__loading {
    position: absolute; inset: 0; z-index: 2;
    display: flex; align-items: center; justify-content: center;
    background: #f0f4f0; color: #6b7280;
    font-size: .82rem; font-family: 'DM Sans', sans-serif;
}
/* Кръгла прозрачна зона + тъмно навън — приблизителна локация, не точна */
.sc-map-popup__circle {
    position: absolute; top: 50%; left: 50%;
    transform: translate(-50%, -55%);
    width: auto; aspect-ratio: 1/1; height: 78%;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,.5);
    box-shadow: 0 0 0 1200px rgba(0,0,0,.42);
    pointer-events: none; z-index: 1;
}
.sc-map-popup__blocker {
    position: absolute; inset: 0; z-index: 2; cursor: default; background: transparent;
}
.sc-map-popup__disclaimer {
    margin: 0; padding: .6rem .9rem;
    font-size: .72rem; color: #9ca3af; font-family: 'DM Sans', sans-serif;
}