/* ================= Listing page ================= */
.page-listing .container { max-width: 1600px; }
.sr { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

/* ---------- Search band under the nav ---------- */
.l-search { padding: 18px 0; border-bottom: 1px solid #efefed; }
.l-search .search { max-width: none; margin: 0; }

/* ---------- Title, sort, chips ---------- */
.results-wrap { max-width: 1600px; margin: 0 auto; padding-left: 32px; }
.results-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; padding: 30px 32px 0 0; }
.rt-title { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 16px; }
.rt-title h1 { font-family: var(--font-display); font-size: clamp(24px, 2.3vw, 31px); font-weight: 800; letter-spacing: -.035em; margin: 0; }
.rt-title .count { font-size: 12px; color: var(--muted-2); }
.sort { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.sort select {
  appearance: none; -webkit-appearance: none;
  padding: 7px 28px 7px 11px;
  border: 1px solid #e3e3e1; border-radius: 8px;
  font: inherit; font-size: 12px; font-weight: 600; color: var(--ink);
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 9.5h10l-5 6z'/%3E%3C/svg%3E") no-repeat right 9px center / 11px;
  cursor: pointer;
}

.chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; padding-right: 32px; }
.fchip {
  display: inline-flex; align-items: center; gap: 6px;
  height: 32px; padding: 0 14px;
  border: 1px solid #dcdcda; border-radius: 999px; background: #fff;
  font-size: 12.5px; font-weight: 500; white-space: nowrap;
  transition: border-color .15s, background .15s;
}
.fchip:hover { border-color: #9a9a9f; }
.fchip.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.fchip.applied { border-color: var(--ink); font-weight: 600; }
.fchip svg { width: 12px; height: 12px; }
.fchip .x { width: 10px; height: 10px; color: var(--muted); }
.m-filters { display: none; }

/* ---------- Dropdown filter bar (shown on mid-size screens instead of the sidebar) ---------- */
.fbar { display: none; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 16px; padding-right: 32px; }
.dd { position: relative; }
.dd-t { color: var(--ink); }
.dd-t.applied { border-color: #dcdcda; font-weight: 500; color: #8a8a8f; }
.dd-t b { font-weight: 700; color: var(--ink); }
.dd-t svg { width: 9px !important; height: 9px !important; transition: transform .15s; }
.dd.open .dd-t { border-color: #3fc2b6; background: var(--mint-soft); color: var(--ink); }
.dd.open .dd-t svg { transform: rotate(180deg); }
.dd-pop {
  position: absolute; top: calc(100% + 10px); left: 0; z-index: 90;
  display: none; width: 212px; padding: 16px 16px 14px;
  border: 1px solid #ececea; border-radius: 12px; background: #fff;
  box-shadow: 0 18px 40px -16px rgba(0,0,0,.28);
}
.dd-pop.to-left { left: auto; right: 0; }
.dd.open .dd-pop { display: block; }
.dd-kicker { display: block; margin: 0 0 8px; font-size: 9px; letter-spacing: .2em; text-transform: uppercase; color: #8d8d90; }
.dd-opt { position: relative; display: flex; align-items: center; gap: 9px; padding: 5px 0; font-size: 12.5px; cursor: pointer; }
.dd-opt input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.dd-opt .dot { width: 14px; height: 14px; border: 1.5px solid #c9c9cc; border-radius: 50%; flex-shrink: 0; }
.dd-opt input:checked + .dot { background: var(--mint); border-color: #3fc2b6; box-shadow: inset 0 0 0 2px #fff; }
.dd-opt .box { width: 14px; height: 14px; border: 1.5px solid #c9c9cc; border-radius: 3px; display: grid; place-items: center; flex-shrink: 0; color: var(--ink); }
.dd-opt .box svg { width: 9px; height: 9px; opacity: 0; }
.dd-opt input:checked + .box { background: var(--mint); border-color: #3fc2b6; }
.dd-opt input:checked + .box svg { opacity: 1; }
.dd-opt input:checked ~ * { font-weight: 600; }
.dd-opt input:focus-visible + span { outline: 2px solid var(--teal); outline-offset: 2px; }
.dd-opt em { margin-left: auto; font-style: normal; font-size: 10.5px; font-weight: 400 !important; color: #a0a0a5; }
.dd-pop:not(.expanded) .dd-more { display: none; }
.dd-seeall { display: inline-flex; align-items: center; gap: 4px; margin-top: 6px; font-size: 12px; font-weight: 700; }
.dd-seeall svg { width: 8px; height: 8px; transition: transform .15s; }
.dd-seeall:hover { color: var(--teal); }
.dd-pop.expanded .dd-seeall svg { transform: rotate(180deg); }
.dd-price { margin: 4px 0; }
.dd-price span { height: 34px; font-size: 12.5px; }
.dd-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; padding-top: 14px; border-top: 1px solid #ececea; }
.dd-foot a { font-size: 12px; color: #8a8a8f; }
.dd-foot a:hover { color: var(--ink); }
.dd-foot .btn { height: 32px; padding: 0 18px; border-radius: 8px; font-size: 12.5px; }
.fbar-clear { margin-left: auto; font-size: 12.5px; color: #8a8a8f; }
.fbar-clear:hover { color: var(--ink); }

/* ---------- Layout ---------- */
.results-grid { display: grid; grid-template-columns: 200px minmax(0, 1fr) clamp(340px, 36%, 600px); column-gap: 30px; align-items: start; margin-top: 26px; }

/* ---------- Filters sidebar ---------- */
.filters-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-bottom: 6px; }
.filters-head h2 { margin: 0; font-size: 15px; font-weight: 700; }
.filters-head a { font-size: 11.5px; color: var(--muted); }
.filters-head a:hover { color: var(--ink); }
.filters-close { display: none; }
.f-group { padding: 18px 0; border-bottom: 1px solid #eeeeec; }
.f-group:last-of-type { border-bottom: 0; }
.f-label { margin-bottom: 12px; font-size: 9.5px; color: #8d8d90; }
.f-group:not(.expanded) .f-more { display: none; }

.f-trust { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.f-trust span {
  display: grid; place-items: center; height: 30px;
  border: 1px solid #dcdcda; border-radius: 6px;
  font-size: 12px; font-weight: 500; cursor: pointer;
  transition: background .15s, border-color .15s;
}
.f-trust span:hover { border-color: #9a9a9f; }
.f-trust input:checked + span { background: var(--mint); border-color: #3fc2b6; font-weight: 600; }

.f-check, .f-radio { display: flex; align-items: center; gap: 9px; padding: 5px 0; font-size: 12.5px; cursor: pointer; }
.f-check .box { width: 15px; height: 15px; border: 1.5px solid #c4c4c2; border-radius: 3px; display: grid; place-items: center; color: #fff; flex-shrink: 0; transition: background .15s, border-color .15s; }
.f-check .box svg { width: 10px; height: 10px; opacity: 0; }
.f-check input:checked + .box { background: var(--teal); border-color: var(--teal); }
.f-check input:checked + .box svg { opacity: 1; }
.f-check .n { margin-left: auto; font-size: 11px; color: var(--muted-2); }
.f-radio .dot { width: 15px; height: 15px; border-radius: 50%; border: 1.5px solid #c4c4c2; flex-shrink: 0; transition: background .15s, border-color .15s; }
.f-radio input:checked + .dot { background: var(--mint); border-color: #3fc2b6; }
.f-check input:checked ~ .lbl, .f-radio input:checked ~ .lbl { font-weight: 600; }
.f-radio small { font-size: 10.5px; color: var(--muted-2); }
.f-radio select { border: 0; background: transparent; font: inherit; font-size: 11.5px; color: var(--muted); cursor: pointer; }
.sr:focus-visible + span, .sr:focus-visible + .box, .sr:focus-visible + .dot { outline: 2px solid var(--teal); outline-offset: 2px; }
.see-all { margin-top: 8px; font-size: 11.5px; font-weight: 700; }
.see-all:hover { color: var(--teal); }

.f-price { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid #dcdcda; border-radius: 6px; overflow: hidden; }
.f-price span { display: grid; place-items: center; height: 30px; border-left: 1px solid #dcdcda; font-size: 12px; font-weight: 600; color: var(--muted); cursor: pointer; transition: background .15s; }
.f-price label:first-child span { border-left: 0; }
.f-price input:checked + span { background: var(--ink); color: #fff; }

.f-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.f-tags span { display: inline-flex; align-items: center; height: 27px; padding: 0 10px; border: 1px solid #dcdcda; border-radius: 6px; font-size: 11.5px; font-weight: 500; cursor: pointer; transition: background .15s, border-color .15s; }
.f-tags span:hover { border-color: #9a9a9f; }
.f-tags input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.f-apply { display: none; width: 100%; margin-top: 14px; }

/* ---------- Result cards ---------- */
.results { min-width: 0; }
.lcards { display: grid; gap: 14px; }
.lcard {
  display: grid; grid-template-columns: minmax(170px, 38%) minmax(0, 1fr); gap: 22px;
  padding: 10px; border: 1px solid #e3e3e1; border-radius: 14px; background: #fff;
  scroll-margin-top: 100px;
  transition: box-shadow .2s, border-color .2s;
}
.lcard--premium { border: 1.5px solid #6fe3d6; }
.lcard:hover, .lcard.is-active { border-color: #3fc2b6; box-shadow: 0 16px 34px -20px rgba(0,0,0,.35); }
.lcard-media { position: relative; min-height: 270px; border-radius: 10px; overflow: hidden; background: #ddd; }
.lcard-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.lcard .badge-verified { top: 10px; left: 10px; font-size: 11px; }
.lcard .badge-free { top: 10px; left: 10px; font-size: 11px; }
.lcard .claim { top: 10px; left: 10px; right: 10px; padding: 8px 11px; border-radius: 8px; font-size: 11.5px; }

.lcard-body { display: flex; flex-direction: column; min-width: 0; padding: 10px 12px 6px 0; }
.lcard-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.lcard-head h3 { margin: 0; font-family: var(--font-display); font-size: 21px; font-weight: 700; letter-spacing: -.025em; line-height: 1.2; }
.call-ic { width: 30px; height: 30px; border-radius: 50%; border: 1px solid #e3e3e1; display: grid; place-items: center; flex-shrink: 0; transition: background .15s, border-color .15s; }
.call-ic:hover { background: var(--mint); border-color: var(--mint); }
.call-ic svg { width: 13px; height: 13px; }
.lc-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 12px; margin-top: 8px; font-size: 12.5px; color: var(--muted); }
.lc-rating { color: var(--ink); }
.lc-rating b { font-weight: 700; }
.lc-rating span { color: var(--muted-2); }
.lc-sk { width: 70px; height: 9px; border-radius: 5px; }
.lcard .tags { margin-top: 12px; }
.lcard .tag { padding: 3px 10px; border-color: #dcdcda; font-size: 11.5px; }
.lcard .quote { margin-top: 12px; font-size: 13px; }
.lcard .ai-box { margin-top: 14px; }
.ai-box--pill .ai-box-head .mono { padding: 3px 8px; border: 1px solid #dcdcda; border-radius: 5px; background: #fff; }
.lcard .card-foot { padding-top: 14px; }
.lc-actions { display: flex; align-items: center; gap: 8px; }
.call-now { display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 10px; border: 1.5px solid var(--ink); border-radius: 6px; font-size: 12px; font-weight: 700; color: var(--ink); transition: background .15s; }
.call-now svg { width: 12px; height: 12px; }
.call-now:hover { background: var(--mint); }

.empty { padding: 64px 30px; border: 1px dashed #d6d6d4; border-radius: 14px; text-align: center; }
.empty h3 { margin: 0; font-family: var(--font-display); font-size: 20px; letter-spacing: -.02em; }
.empty p { margin: 10px 0 22px; font-size: 14px; color: var(--muted); }

.pager { display: flex; align-items: center; gap: 8px; margin-top: 26px; }
.pager a, .pager span { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 32px; height: 32px; padding: 0 10px; border: 1px solid #e3e3e1; border-radius: 7px; font-size: 12.5px; font-weight: 600; transition: border-color .15s; }
.pager a:hover { border-color: #9a9a9f; }
.pager .cur { background: var(--ink); border-color: var(--ink); color: #fff; }
.pager .disabled { color: var(--muted-2); }
.results-end { height: 80px; }

/* ---------- Map ---------- */
.map-col { position: sticky; top: 80px; height: calc(100vh - 80px); min-height: 480px; background: #e8edef; }
#map { position: absolute; inset: 0; z-index: 0; }
.map-move {
  position: absolute; top: 14px; left: 14px; z-index: 500;
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 11px; border-radius: 7px; background: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,.15);
  font-size: 11.5px; font-weight: 500; cursor: pointer;
}
.map-move input { margin: 0; accent-color: var(--teal); }
.map-caption {
  position: absolute; left: 50%; bottom: 20px; z-index: 500; transform: translateX(-50%);
  padding: 7px 14px; border-radius: 999px; background: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,.15);
  font-size: 11px; color: var(--muted); white-space: nowrap;
}
.map-close { display: none; }
.map-fallback { position: absolute; inset: 0; display: grid; place-items: center; font-size: 13px; color: var(--muted); }

.map-pin { display: flex; align-items: center; justify-content: center; }
.map-pin span {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 34px; height: 24px; padding: 0 8px;
  border: 2px solid #fff; border-radius: 8px;
  background: var(--ink); color: #fff;
  font: 700 12px var(--font);
  box-shadow: 0 3px 10px rgba(0,0,0,.3);
  transition: transform .15s, background .15s, color .15s;
}
.map-pin.is-active span, .map-pin:hover span { background: var(--mint); border-color: var(--ink); color: var(--ink); transform: scale(1.15); }
.map-pin.is-empty span { width: 16px; min-width: 16px; height: 16px; padding: 0; border-radius: 50%; background: #8d8d90; }

.leaflet-container { font-family: var(--font); }
.leaflet-popup-content-wrapper { border-radius: 12px; box-shadow: 0 12px 30px -10px rgba(0,0,0,.35); }
.leaflet-popup-content { margin: 10px; }
/* Pin popup card */
.pin-pop .leaflet-popup-content-wrapper { padding: 0; overflow: hidden; border-radius: 14px; box-shadow: 0 18px 40px -14px rgba(0,0,0,.4); }
.pin-pop .leaflet-popup-content { width: 236px !important; margin: 0; line-height: 1.4; }
.map-pop { display: block; color: var(--ink) !important; }
.mp-img { position: relative; display: block; height: 110px; background: #ddd; }
.mp-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mp-img .badge-verified, .mp-img .badge-free { top: 9px; left: 9px; padding: 3px 9px 3px 4px; font-size: 10.5px; gap: 4px; }
.mp-img .badge-verified svg { width: 14px; height: 14px; }
.mp-img .badge-free { padding: 4px 9px; }
.mp-claim { position: absolute; top: 9px; left: 9px; padding: 4px 9px; border-radius: 999px; background: var(--amber); font-size: 10.5px; font-weight: 600; }
.mp-body { display: block; padding: 12px 14px 14px; }
.mp-body > b { display: block; font-family: var(--font-display); font-size: 14.5px; letter-spacing: -.02em; }
.mp-rating { display: block; margin-top: 4px; font-size: 11px; font-weight: 700; }
.mp-rating em { font-style: normal; font-weight: 400; color: var(--muted-2); }
.mp-none { font-weight: 400; color: var(--muted-2); }
.mp-meta { display: block; margin-top: 4px; font-size: 11px; color: var(--muted); }
.mp-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; }
.mp-trust { padding: 5px 10px; border-radius: 6px; background: var(--ink); color: #fff; font-size: 11px; font-weight: 700; }
.mp-pending { background: var(--beige); color: var(--muted); font-weight: 500; }
.mp-go { font-size: 11.5px; font-weight: 700; }
.map-pop:hover .mp-go { text-decoration: underline; }

.map-fab { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1280px) {
  .results-wrap { padding-right: 32px; }
  .results-top, .chip-row { padding-right: 0; }
  .results-grid { grid-template-columns: 200px minmax(0, 1fr); }
  .map-col { display: none; }
  .map-col.open { display: block; position: fixed; inset: 0; z-index: 100; height: auto; }
  .map-col.open .map-close {
    position: absolute; top: 14px; right: 14px; z-index: 600;
    display: grid; place-items: center; width: 40px; height: 40px;
    border-radius: 50%; background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,.2);
  }
  .map-fab {
    position: fixed; left: 50%; bottom: 22px; z-index: 60; transform: translateX(-50%);
    display: inline-flex; align-items: center; gap: 8px;
    height: 44px; padding: 0 22px; border-radius: 999px;
    background: var(--ink); color: #fff; font-size: 14px; font-weight: 600;
    box-shadow: 0 10px 24px -8px rgba(0,0,0,.5);
  }
}
@media (max-width: 900px) {
  .results-grid { grid-template-columns: minmax(0, 1fr); }
  .m-filters { display: inline-flex; }
  .filters {
    position: fixed; top: 0; bottom: 0; left: 0; z-index: 110;
    width: min(320px, 86vw); padding: 20px 20px 28px;
    background: #fff; overflow-y: auto;
    box-shadow: 10px 0 30px -10px rgba(0,0,0,.3);
    transform: translateX(-105%); transition: transform .25s ease;
  }
  .filters.open { transform: none; }
  .filters-close { display: grid; place-items: center; width: 34px; height: 34px; margin-left: 4px; border-radius: 50%; background: var(--beige); }
  .filters-close svg { width: 14px; height: 14px; }
  .filters-head a { margin-left: auto; }
  .filters-backdrop { position: fixed; inset: 0; z-index: 105; background: rgba(0,0,0,.35); opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s; }
  .filters-backdrop.open { opacity: 1; visibility: visible; }
  .f-apply { display: flex; }
}
@media (max-width: 720px) {
  .results-wrap { padding: 0 16px; }
  .l-search { padding: 12px 0; }
  .results-top { flex-direction: column; align-items: flex-start; padding-top: 22px; }
  .chip-row { flex-wrap: nowrap; overflow-x: auto; margin-right: -16px; padding-right: 16px; scrollbar-width: none; }
  .chip-row::-webkit-scrollbar { display: none; }
  .lcard { grid-template-columns: 1fr; gap: 12px; }
  .lcard-media { min-height: 200px; }
  .lcard-body { padding: 4px 6px 6px; }
  .map-caption { white-space: normal; width: calc(100% - 32px); text-align: center; border-radius: 12px; }
}

/* Mid-size screens: dropdown chips replace the sidebar (design 1440 layout). */
@media (min-width: 901px) and (max-width: 1535px) {
  .chip-row, .filters { display: none; }
  .fbar { display: flex; }
  /* 1440 board: list column lines up with the page container, map runs to the right edge (642px at 1440). */
  .results-wrap { padding-left: max(32px, calc((100vw - 1314px) / 2)); }
  .results-grid { grid-template-columns: minmax(0, 1fr) 44.6vw; }
  .fbar, .results-top { padding-right: max(32px, calc((100vw - 1298px) / 2)); }
}
@media (min-width: 901px) and (max-width: 1280px) {
  .fbar, .results-top { padding-right: 0; }
  .results-grid { grid-template-columns: minmax(0, 1fr); }
}

/* Soften OpenStreetMap colours to match the light UI. */
.leaflet-tile-pane { filter: saturate(.7) brightness(1.03) contrast(.95); }
.map-col.open .leaflet-top.leaflet-right { top: 58px; }
