/* /search: filters, list and the area map (harmony-ops#697 day 4), on the day 3 design system (easyproperty-listing.css: ink #12303a,
   teal #146c75, page #f4f7f9, lines #cbd8de, muted #4b6670). Mobile first: a list or a map with a toggle and a filter sheet;
   from 992px the list and the map sit side by side and the filters open as a panel under the search bar. */

.sr { padding: 12px 0 64px; }
.sr section { padding: 0; }   /* the theme pads every <section> 80px */
.sr-wrap { max-width: 1440px; margin: 0 auto; padding: 0 16px; }
.sr-head h1 { font-size: 22px; line-height: 1.25; margin: 4px 0 2px; }
.sr-count { margin: 0 0 12px; color: #4b6670; font-size: 15px; }
.sr-count strong { color: #12303a; }
.sr-hint { color: #4b6670; font-size: 13px; font-weight: 400; }

/* the search bar */
.sr-bar { display: grid; gap: 10px; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "tabs tabs" "where filters" "main main"; align-items: center; }
.sr-main { grid-area: main; min-width: 0; }
.sr-main .sf-row { margin: 0; }
.sr-tabs { grid-area: tabs; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.sr-tabs::-webkit-scrollbar { display: none; }
.sr-tab { margin: 0; flex: 0 0 auto; }
.sr-tab input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.sr-tab span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border: 2px solid #cbd8de; border-radius: 999px; background: #fff; color: #12303a; font-weight: 600; font-size: 15px; cursor: pointer; white-space: nowrap; }
.sr-tab input:checked + span { background: #12303a; border-color: #12303a; color: #fff; }
.sr-tab input:focus-visible + span { outline: 3px solid #f2a541; outline-offset: 2px; }
.sr-where { grid-area: where; display: flex; min-width: 0; }
.sr-where input { flex: 1 1 auto; min-width: 0; min-height: 48px; border: 2px solid #cbd8de; border-right: 0; border-radius: 10px 0 0 10px; padding: 0 12px; font-size: 16px; color: #12303a; background: #fff; }
.sr-where input:focus { outline: none; border-color: #146c75; }
.sr-where .sr-go { border-radius: 0 10px 10px 0; padding: 0 14px; }
.sr-filters-btn { grid-area: filters; white-space: nowrap; }
.sr-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: #146c75; color: #fff; font-size: 13px; }

/* the filters: a full-screen sheet on phones, a panel from 992px; hidden until opened (the button's #sr-filters link opens it without JavaScript) */
.sr-filters { display: none; }
.sr-filters:target, .sr-filters.is-open { display: block; position: fixed; inset: 0; z-index: 1060; background: #fff; overflow-y: auto; padding: 0 16px 96px; }
.sr-sheet-head { display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; background: #fff; padding: 12px 0; border-bottom: 1px solid #cbd8de; z-index: 1; }
.sr-sheet-head h2 { font-size: 20px; margin: 0; }
.sr-sheet-close { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; font-size: 30px; line-height: 1; color: #12303a !important; text-decoration: none !important; border-radius: 10px; }
.sr-grid { display: grid; gap: 4px 20px; }
.sr-f { border: 0; margin: 0; padding: 12px 0; min-width: 0; border-bottom: 1px solid #e3eaee; }
.sr-f legend { font-size: 16px; font-weight: 700; color: #12303a; margin: 0 0 6px; float: left; width: 100%; }
.sr-f label { display: block; font-size: 14px; font-weight: 600; color: #12303a; margin: 8px 0 4px; clear: both; }
.sr-f select, .sr-price input { width: 100%; min-height: 44px; border: 2px solid #cbd8de; border-radius: 10px; padding: 0 10px; font-size: 16px; background: #fff; color: #12303a; }
.sr-f select:disabled { background: #eef2f4; color: #4b6670; }
.sr-f select:focus, .sr-price input:focus { outline: 3px solid #f2a541; outline-offset: 1px; border-color: #146c75; }
.sr-price { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; clear: both; }
.sr-price label { margin: 0; }
.sr-price span { display: block; font-size: 13px; color: #4b6670; margin-bottom: 2px; }
.sr-presets { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 4px; }
.sr-preset { display: inline-flex; align-items: center; min-height: 36px; padding: 0 10px; border: 1px solid #cbd8de; border-radius: 999px; background: #f4f7f9; color: #12303a !important; font-size: 14px; text-decoration: none !important; }
.sr-preset.is-on { background: #146c75; border-color: #146c75; color: #fff !important; }
.sr-check { display: flex !important; gap: 10px; align-items: flex-start; font-weight: 600; min-height: 44px; }
.sr-check input { width: 22px; height: 22px; margin-top: 2px; flex: 0 0 auto; accent-color: #146c75; }
.sr-check small { display: block; font-weight: 400; color: #4b6670; font-size: 13px; }
.sr-sheet-foot { position: fixed; left: 0; right: 0; bottom: 0; display: flex; gap: 12px; align-items: center; justify-content: space-between; padding: 12px 16px; background: #fff; border-top: 1px solid #cbd8de; }
.sr-sheet-foot .lp-btn { flex: 1 1 auto; max-width: 260px; }
.sr-reset { font-weight: 600; display: inline-flex; align-items: center; min-height: 44px; }   /* 44px tap target (visual check) */
body.sr-locked { overflow: hidden; }

/* chips, list / map toggle, sort */
.sr-chips { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 12px 0 0; padding: 0; }
.sr-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 12px; border-radius: 999px; background: #e6f6f7; color: #0f555c !important; font-size: 14px; font-weight: 600; text-decoration: none !important; }
.sr-chip-clear { display: inline-flex; align-items: center; min-height: 44px; padding: 0 6px; font-size: 14px; font-weight: 600; }
.sr-tools { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 14px 0 12px; }
.sr-toggle { display: inline-flex; border: 2px solid #12303a; border-radius: 10px; overflow: hidden; }
.sr-toggle a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; font-weight: 700; color: #12303a !important; text-decoration: none !important; background: #fff; }
.sr-toggle a[aria-current] { background: #12303a; color: #fff !important; }
.sr-sort { display: flex; align-items: center; gap: 8px; margin: 0; }
.sr-sort label { margin: 0; font-weight: 600; font-size: 14px; }
.sr-sort select { min-height: 44px; border: 2px solid #cbd8de; border-radius: 10px; padding: 0 8px; font-size: 15px; background: #fff; color: #12303a; max-width: 190px; }

/* list or map on phones */
.sr-view-list .sr-mapbox { display: none; }
.sr-view-map .sr-results { display: none; }

/* the cards */
/* every card the same shape (owner, 4 Nov 2026): a fixed 4:3 photo frame (cover, centred), a title of at most 2 lines, then the facts; the
   cards in a row are the same height and nothing in them stretches */
.sr-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(256px, 1fr)); align-items: stretch; }
.sr-list > li { display: flex; min-width: 0; }
.sr-card { position: relative; background: #fff; border: 1px solid #cbd8de; border-radius: 16px; overflow: hidden; flex: 1 1 auto; width: 100%; min-width: 0; height: auto; display: flex; flex-direction: column; padding: 0; margin: 0; box-shadow: none; }
.sr-card:hover { box-shadow: 0 6px 18px rgba(18, 48, 58, .12); }
.sr-card-img { position: relative; display: block; flex: 0 0 auto; width: 100%; aspect-ratio: 4 / 3; overflow: hidden; background: #dfe8ec; }
.sr-card-img img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: center; display: block; }
.sr-noimg { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.sr-noimg { display: flex; align-items: center; justify-content: center; height: 100%; color: #4b6670; font-weight: 600; }
.sr-card-tag, .sr-card-photos { position: absolute; top: 10px; left: 10px; background: rgba(10, 29, 35, .85); color: #fff; font-size: 13px; font-weight: 700; border-radius: 999px; padding: 3px 10px; }
.sr-card-photos { top: auto; bottom: 10px; left: auto; right: 10px; font-weight: 600; }
.sr-card-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 4px; flex: 1 1 auto; }
.sr-card-price { font-size: 21px; font-weight: 800; color: #12303a; margin: 0; }
.sr-card-price span { font-size: 14px; font-weight: 600; color: #4b6670; }
.sr-card-title { font-size: 16px; line-height: 24px; margin: 0; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; overflow-wrap: anywhere; max-height: 48px; }
.sr-card-title a { color: #12303a !important; }
.sr-card-title a::after { content: ""; position: absolute; inset: 0; }   /* the whole card opens the listing */
.sr-card-facts { display: flex; flex-wrap: wrap; gap: 4px 12px; margin: 0; font-size: 14px; color: #12303a; }
.sr-card-facts span + span::before { content: "·"; margin-right: 12px; color: #4b6670; }
.sr-card-where { margin: 0; font-size: 14px; color: #4b6670; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; }
.sr-card-badges { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 0; }
.sr-card-badges:empty { display: none; }
.sr-b { font-size: 12px; font-weight: 700; border-radius: 999px; padding: 2px 8px; background: #eef2f4; color: #12303a; }
.sr-b-ok { background: #e3f5e9; color: #10462a; }
.sr-b-offer { background: #fff4de; color: #5a3600; }
.sr-save { position: absolute; top: 8px; right: 8px; z-index: 2; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 999px; background: rgba(255, 255, 255, .95); color: #b42318 !important; font-size: 22px; text-decoration: none !important; }
.sr-card a:focus-visible { outline: 3px solid #f2a541; outline-offset: 2px; }

.sr-pages { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin: 24px 0 8px; }
.sr-pages a, .sr-pages span { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 12px; border: 2px solid #cbd8de; border-radius: 10px; background: #fff; font-weight: 700; color: #12303a !important; text-decoration: none !important; }
.sr-pages span[aria-current] { background: #12303a; border-color: #12303a; color: #fff !important; }

/* empty result */
.sr-empty { text-align: left; background: #fff; border: 1px solid #cbd8de; border-radius: 14px; padding: 20px 16px; }
.sr-empty h2 { font-size: 20px; margin: 0 0 6px; }
.sr-empty h3 { font-size: 16px; margin: 16px 0 6px; }
.sr-widen, .sr-nearby { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; }
.sr-widen a { font-weight: 700; }
.sr-widen span { color: #4b6670; font-size: 14px; }
.sr-nearby { display: flex; flex-wrap: wrap; gap: 6px; }
.sr-nearby a { display: inline-flex; align-items: center; min-height: 36px; padding: 0 12px; border-radius: 999px; background: #e6f6f7; color: #0f555c !important; font-size: 14px; font-weight: 600; text-decoration: none !important; }
.sr-empty-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 4px; }

/* the map */
.sr-map { height: 64vh; min-height: 320px; border-radius: 14px; border: 1px solid #cbd8de; background: #dfe8ec; z-index: 0; }
.sr-map-note { font-size: 13px; color: #4b6670; margin: 8px 0 0; }
.sr-map-list { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.sr-map-list li { display: inline-flex; align-items: center; gap: 6px; background: #fff; border: 1px solid #cbd8de; border-radius: 999px; padding: 4px 10px; font-size: 14px; }
.sr-map-list span { font-weight: 700; color: #12303a; }
.sr-map.is-live + .sr-map-note + .sr-map-list { display: none; }   /* the list stands in for the map when it cannot load */
.sr-pin { background: transparent; border: 0; }
.sr-pin b { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 32px; padding: 0 8px; border-radius: 8px; background: #fff; color: #1c2529; font: 700 14px/1 system-ui, sans-serif; border: 1px solid #5f6b70; box-shadow: 0 1px 3px rgba(0, 0, 0, .3); transform: translate(-50%, -50%); white-space: nowrap; }   /* neutral pins (design rule, 31 Oct) */
.sr-pin:focus-visible b, .sr-pin:hover b { background: #1c2529; color: #fff; }
.sr-pop { font-size: 14px; color: #12303a; }
.sr-pop strong { display: block; font-size: 15px; }
.sr-pop a { display: inline-block; margin-top: 6px; font-weight: 700; color: #146c75; }

@media (min-width: 600px) {
	.sr-bar { grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "tabs where filters" "main main main"; }
	.sr-head h1 { font-size: 26px; }
}

@media (min-width: 992px) {
	.sr-filters:target, .sr-filters.is-open { position: static; inset: auto; z-index: auto; overflow: visible; padding: 4px 18px 16px; margin: 12px 0 0; border: 1px solid #cbd8de; border-radius: 14px; }
	.sr-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr 1.3fr; }
	.sr-f { border-bottom: 0; }
	.sr-sheet-head { position: static; padding: 10px 0 0; border-bottom: 0; }
	.sr-sheet-foot { position: static; padding: 8px 0 0; border-top: 0; justify-content: flex-end; }
	.sr-toggle { display: none; }
	.sr-tools { justify-content: flex-end; }
	.sr-view-list .sr-mapbox, .sr-view-map .sr-results { display: block; }
	.sr-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 44%); gap: 20px; align-items: start; }
	/* the map stays in view while the list scrolls (owner, 4 Nov 2026). The site sets overflow-x: hidden on body and main, which makes them scroll
	   boxes that never scroll, so position: sticky never stuck; clip hides sideways overflow the same way without making a scroll box. */
	body, .lp.sr { overflow-x: clip !important; }   /* main.lp has overflow-x: hidden too (critical CSS) */
	.sr-mapbox { position: sticky; top: 96px; }   /* under the fixed header (81 px), on the 8 px grid */
	.sr-map { height: calc(100vh - 112px); height: calc(100dvh - 112px); min-height: 420px; }   /* the viewport minus the header and 16 px below */
}

/* the "Developer" badge on cards of verified property developers (harmony-ops#713 slice 3) */
.sr-b-dev { background: #e6f2f3; color: #146c75; font-weight: 700; }
/* tap target of 44 px (QA pass batch 3, harmony-ops#697): the area links beside the map; the negative margin keeps the pill its size */
.sr-map-list li a { padding: 12px 0; margin: -12px 0; background-clip: content-box; }

/* one card, aligned rows (owner, 7 Nov 2026, Featured: the BIU Sapele Road card sat lower than its neighbours): equal heights in a row (the
   grid stretches each li, the card fills it), a 4:3 cover, the title held at 2 lines, the location and the info line at 1, the badges
   pinned to the bottom, so price, title, location and badges line up across a row */
.sr-list { align-items: stretch; }
.sr-list > li > .sr-card { height: 100%; }
.sr-card-title { min-height: 48px; }
.sr-card-where { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; -webkit-line-clamp: 1; line-clamp: 1; }
.sr-card-info { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sr-card-badges { margin-top: auto; padding-top: 4px; }
