/* ============================================================
   LISTING SEARCH — additions to search.css (Oct 28, 2026)
   Photo placeholder (etched register), data stamp, staging
   banner, detail view. Loaded only by the IDX search pages.
   ============================================================ */

/* ---------- data stamp ---------- */
.idx-stamp{font-family:var(--sans);font-size:14.5px;letter-spacing:.6px;
  color:var(--mut);margin-top:14px}
.idx-stamp b{color:var(--gold-light);font-weight:700}

/* ---------- staging banner (preview path only) ---------- */
.idx-staging{border:2px solid var(--gold);border-radius:12px;
  background:rgba(214,172,95,.14);color:#D6AC5F;font-family:var(--sans);
  font-size:15px;letter-spacing:.4px;padding:13px 18px;margin:0 0 24px}
.idx-staging b{letter-spacing:1.5px}

.lcard-photo{text-decoration:none}
.lcard-nophoto span{text-decoration:none}

/* ---------- photo placeholder: crystal/etched panel ---------- */
.lcard-nophoto{display:flex;flex-direction:column;align-items:center;
  justify-content:center;gap:12px;width:100%;height:230px;
  background:
    radial-gradient(120% 90% at 20% 0%, rgba(214,172,95,.16), transparent 55%),
    linear-gradient(128deg,#0A2E2A 0%,#241430 72%,#341128 100%);
  border-bottom:1px solid rgba(214,172,95,.45)}
.lcard-nophoto img{width:74px;height:74px;object-fit:contain;
  filter:drop-shadow(0 4px 14px rgba(0,0,0,.45))}
.lcard-nophoto span{font-family:var(--sans);font-size:12.5px;font-weight:700;
  letter-spacing:2.2px;color:var(--gold-light);text-transform:uppercase}
.lcard-photo .lcard-nophoto{height:230px}
.lcard.list .lcard-nophoto{height:100%;min-height:230px}

/* ---------- detail view ---------- */
.idx-detail-photo{position:relative;border:1px solid var(--line);
  border-radius:var(--radius);overflow:hidden;line-height:0;
  box-shadow:var(--shadow)}
.idx-detail-photo>img{width:100%;max-height:560px;object-fit:cover}
.idx-detail-photo .lcard-nophoto{height:420px}
.idx-thumbs{display:flex;gap:10px;flex-wrap:nowrap;overflow-x:auto;
  margin-top:12px;padding:6px 2px 10px;scrollbar-width:thin;
  scrollbar-color:rgba(214,172,95,.55) transparent}
.idx-thumbs::-webkit-scrollbar{height:8px}
.idx-thumbs::-webkit-scrollbar-thumb{background:rgba(214,172,95,.55);
  border-radius:4px}
.idx-thumbs::-webkit-scrollbar-track{background:rgba(244,237,223,.06)}
.idx-thumbs button{flex:0 0 auto;padding:0;border:2px solid transparent;
  border-radius:10px;overflow:hidden;line-height:0;background:none;
  cursor:pointer;opacity:.72;transition:opacity .15s ease,
  border-color .15s ease}
.idx-thumbs button:hover{opacity:1}
.idx-thumbs button.sel{border-color:var(--gold);opacity:1}
.idx-thumbs img{width:104px;height:70px;object-fit:cover}

/* ---------- gallery navigation (arrows + counter over the main photo) -- */
.gal-nav{position:absolute;top:50%;transform:translateY(-50%);z-index:3;
  width:52px;height:52px;border-radius:50%;display:flex;
  align-items:center;justify-content:center;padding:0;
  background:rgba(8,26,23,.62);-webkit-backdrop-filter:blur(6px);
  backdrop-filter:blur(6px);border:1px solid rgba(214,172,95,.65);
  color:var(--gold-bright);cursor:pointer;
  transition:background .15s ease,color .15s ease,border-color .15s ease}
.gal-nav:hover{background:rgba(8,26,23,.9);color:#F4EDDF;
  border-color:var(--gold)}
.gal-prev{left:14px}
.gal-next{right:14px}
.gal-count{position:absolute;right:14px;bottom:14px;z-index:3;line-height:1;
  font-family:var(--sans);font-size:13.5px;font-weight:700;
  letter-spacing:1.4px;color:#F4EDDF;background:rgba(8,26,23,.66);
  -webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);
  border:1px solid rgba(214,172,95,.5);border-radius:999px;
  padding:8px 14px}
@media (max-width:560px){
  .gal-nav{width:46px;height:46px}
  .gal-prev{left:8px}
  .gal-next{right:8px}
  .gal-count{right:8px;bottom:8px}
  .idx-thumbs img{width:78px;height:54px}
}
.idx-facts{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));
  gap:14px;margin:22px 0}
.idx-fact{border:1px solid var(--line);border-radius:12px;
  background:var(--glass);padding:14px 16px}
.idx-fact .k{font-family:var(--sans);font-size:11.5px;font-weight:700;
  letter-spacing:1.8px;color:var(--gold-light);text-transform:uppercase}
.idx-fact .v{font-size:21px;font-weight:700;color:var(--ivory);margin-top:4px}
.idx-remarks{font-size:17.5px;line-height:1.65;color:var(--cream);
  white-space:pre-wrap}
.idx-detail-courtesy{margin-top:26px;border-top:1px solid var(--line-soft);
  padding-top:16px;font-size:15px}
.form-done{display:none}
.hp-field{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}

/* ---------- results range line + pagination ---------- */
.idx-range{font-family:var(--sans);font-size:17px;font-weight:600;
  letter-spacing:.4px;color:var(--cream);margin:0 0 18px}
.idx-pager{display:flex;align-items:center;gap:10px;flex-wrap:wrap;
  margin-top:28px}
.pg-btn{min-width:52px;min-height:52px;padding:10px 16px;
  font-family:var(--sans);font-size:17px;font-weight:700;letter-spacing:.4px;
  color:var(--ivory);background:rgba(8,26,23,.55);
  border:1px solid rgba(214,172,95,.55);border-radius:10px;cursor:pointer}
.pg-btn:hover:not(:disabled){border-color:var(--gold);color:#F4EDDF}
.pg-btn.cur{background:linear-gradient(160deg,var(--gold-bright),var(--gold));
  color:#241A02;border-color:var(--gold)}
.pg-btn:disabled{opacity:.38;cursor:default}
.pg-gap{font-size:17px;color:var(--mut);padding:0 2px}

/* ---- gallery pills filled solid logo gold (2026-10-31, Ian) ---- */
.gal-count{background:var(--logo-gold);color:#241A02;border-color:#8A6420}
.gal-nav{background:var(--logo-gold);color:#241A02;border-color:#8A6420}
.gal-nav:hover{background:#C79F45;color:#1E1208;border-color:#C79F45}

/* ---- crystal bevel rim on the gallery pills (2026-10-31, Ian's pick) ----
   Same recipe as style.css: 1px bronze seat (#7A5C1E), bright top inner
   highlight, bronze bottom inner shade; fills and ink unchanged. Both
   seats replace a 1px border, so the arrows and counter keep their size. */
.gal-count{border:1px solid #7A5C1E;box-shadow:inset 0 2px 1px rgba(255,243,205,.95), inset 0 -3px 2px rgba(88,65,22,.85), inset 3px 0 3px rgba(255,243,205,.35), inset -3px 0 3px rgba(88,65,22,.35), 0 3px 7px rgba(0,0,0,.35)}
.gal-nav{border:1px solid #7A5C1E;box-shadow:inset 0 2px 1px rgba(255,243,205,.95), inset 0 -3px 2px rgba(88,65,22,.85), inset 3px 0 3px rgba(255,243,205,.35), inset -3px 0 3px rgba(88,65,22,.35), 0 3px 7px rgba(0,0,0,.35)}
.gal-nav:hover{border-color:#7A5C1E;box-shadow:inset 0 2px 1px rgba(255,243,205,.95), inset 0 -3px 2px rgba(88,65,22,.85), inset 3px 0 3px rgba(255,243,205,.35), inset -3px 0 3px rgba(88,65,22,.35), 0 3px 7px rgba(0,0,0,.35)}

/* ---- results bottom bar + per-page pill selector (2026-10-31, Ian) ----
   One row under the results: page numbers on the left, a PER PAGE pill
   group on the right (5 · 10 · 25 · 50 · 100). The pills carry the site
   standard: solid logo-gold fill, dark ink, the Crystal Bevel rim (1px
   bronze seat #7A5C1E + modeled inset light/shade, same recipe as the
   search chips above); the selected value takes the deeper gold #B9903F,
   the established selected state on this page. The pager keeps its own
   show/hide logic inside the bar, so the selector stays reachable even
   when the results fit on a single page. */
.idx-bottombar{display:flex;align-items:center;justify-content:space-between;
  gap:16px;flex-wrap:wrap;margin-top:28px}
.idx-bottombar .idx-pager{margin-top:0}
.idx-perpage{display:flex;align-items:center;gap:8px;flex-wrap:wrap;
  margin-left:auto}
.idx-perpage-l{font-family:var(--sans);font-size:12px;font-weight:700;
  letter-spacing:1.5px;color:var(--gold-light);margin-right:2px}
.per-pill{min-width:52px;min-height:48px;padding:10px 16px;border-radius:999px;
  font-family:var(--sans);font-size:15px;font-weight:700;letter-spacing:.4px;
  background:var(--logo-gold);color:#241A02;cursor:pointer;
  border:1px solid #7A5C1E;box-shadow:inset 0 2px 1px rgba(255,243,205,.95), inset 0 -3px 2px rgba(88,65,22,.85), inset 3px 0 3px rgba(255,243,205,.35), inset -3px 0 3px rgba(88,65,22,.35), 0 3px 7px rgba(0,0,0,.35)}
.per-pill:hover{background:#C79F45;color:#1E1208}
.per-pill.sel{background:#B9903F;color:#1E1208}
@media (max-width:560px){
  .idx-bottombar{justify-content:center}
  .idx-bottombar .idx-pager{justify-content:center}
  .idx-perpage{margin-left:0;justify-content:center}
}

/* ---- four-across results grid on desktop (2026-10-31, Ian) ----
   Scoped to the search page's grid via .lcards-4 so no other surface
   changes; below 1200px the standing auto-fill collapse is untouched. */
@media (min-width:1200px){
  .lcards.lcards-4{grid-template-columns:repeat(4,1fr)}
}

/* ---- map view (2026-11-03) — Leaflet/OpenStreetMap results map ----
   Toggle lives in the results toolbar (.idx-view-toggle, search.css);
   these rules cover only the map frame, its note line, and pin popups,
   so no other surface is affected. */
.idx-map-wrap{margin:0 0 10px}
.idx-map{width:100%;height:560px;z-index:0;border:1px solid var(--line);
  border-radius:var(--radius);overflow:hidden;background:#0A2E2A;
  box-shadow:var(--shadow)}
.idx-map-note{font-family:var(--sans);font-size:14.5px;letter-spacing:.3px;
  color:var(--mut);margin:12px 2px 0}
.leaflet-popup-content{margin:0;line-height:1.4}
.mpop{min-width:200px;font-family:var(--sans)}
.mpop-photo{width:100%;height:128px;object-fit:cover;display:block}
.mpop-body{padding:11px 14px 13px}
.mpop-price{font-size:21px;font-weight:700;color:#0A2E2A;line-height:1.1}
.mpop-addr{font-size:14.5px;font-weight:600;color:#222;margin-top:3px}
.mpop-city{font-size:13.5px;color:#555}
.mpop-facts{font-size:13.5px;color:#333;margin-top:5px}
.mpop-link{display:inline-block;margin-top:9px;font-size:12.5px;
  font-weight:700;letter-spacing:1.2px;color:#7A5C1E;text-decoration:none}
.mpop-link:hover{text-decoration:underline}
@media (max-width:560px){
  .idx-map{height:64vh}
}
