/* Kippy Ellis Group - map.css (batch KEG-11).  Loaded by /homes/map/ only. */
.ms { padding-top: 0; }
.ms-bar { border-bottom: 1px solid var(--line); background: #fff; }
.ms-bar-in { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; padding: 10px var(--gutter); }
.ms-title { font-family: var(--display); font-weight: 500; font-size: 1.35rem; margin: 0; }
.ms-filters { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; flex: 1; }
.ms-filters select { min-height: 40px; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 6px 10px; background: #fff; font-size: .93rem; }
.ms-chk { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: .93rem; }
.ms-chk input { width: 18px; height: 18px; accent-color: var(--navy); }
.ms-listlink { margin-left: auto; font-weight: 700; font-size: .93rem; }
.ms-body { display: grid; grid-template-columns: 420px minmax(0, 1fr); height: calc(100vh - var(--header-h) - 62px); min-height: 480px; position: relative; }
.ms-list { overflow-y: auto; padding: 14px 16px 24px; border-right: 1px solid var(--line); background: var(--mist); }
.ms-count { font-weight: 700; color: var(--navy); margin: 0 0 12px; font-size: .95rem; }
.ms-cards { display: grid; gap: 12px; }
.ms-card { display: grid; grid-template-columns: 132px minmax(0, 1fr); background: #fff; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.ms-card.on { border-color: var(--navy); box-shadow: 0 0 0 2px var(--navy); }
.ms-card-img { display: block; background: var(--mist-2); min-height: 104px; position: relative; }
.ms-card-img img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.ms-noimg { position: absolute; inset: 0; display: grid; place-items: center; font-size: .75rem; color: var(--muted); text-align: center; }
.ms-card-body { padding: 10px 12px; min-width: 0; }
.ms-card-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.ms-card-price { font-weight: 700; font-size: 1.08rem; color: var(--navy); }
.ms-save { border: 1px solid var(--line); background: #fff; border-radius: 999px; font-size: .75rem; font-weight: 700; padding: 3px 10px; cursor: pointer; color: var(--navy); min-height: 28px; }
.ms-save.is-on { background: var(--danger); border-color: var(--danger); color: #fff; }
.ms-card-specs { margin: 2px 0; font-size: .85rem; color: var(--ink); }
.ms-card-addr { display: block; font-size: .88rem; color: var(--navy); font-weight: 600; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ms-tag { display: inline-block; margin-top: 4px; background: var(--lake); color: #fff; font-size: .68rem; font-weight: 700; border-radius: 999px; padding: 1px 8px; }
.ms-card-court { margin: 4px 0 0; font-size: .66rem; color: var(--muted); line-height: 1.3; }
.ms-disclaimer { margin-top: 18px; }
.ms-mapwrap { position: relative; min-width: 0; }
.ms-map { position: absolute; inset: 0; background: var(--mist-2); z-index: 0; }
.ms-loading { position: absolute; left: 50%; top: 12px; transform: translateX(-50%); z-index: 500; background: var(--navy); color: #fff; font-size: .82rem; font-weight: 700; padding: 5px 14px; border-radius: 999px; margin: 0; }
.ms-pinwrap { overflow: visible; }
.ms-pin { position: absolute; transform: translate(-50%, -100%); background: var(--navy); color: #fff; font: 700 12px/1 var(--sans); padding: 5px 8px; border-radius: 6px; white-space: nowrap; border: 2px solid #fff; box-shadow: 0 2px 6px rgba(0,0,0,.35); }
.ms-pin.water { background: var(--lake); }
.ms-pin.on { background: var(--gold); color: var(--navy); }
.ms-cluster { background: var(--navy); color: #fff; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 2px 8px rgba(0,0,0,.35); display: grid; place-items: center; font: 700 14px/1 var(--sans); }
.ms-cluster.big { background: var(--gold); color: var(--navy); }
.ms-popup .leaflet-popup-content-wrapper { border-radius: 10px; padding: 0; overflow: hidden; }
.ms-popup .leaflet-popup-content { margin: 0; width: 240px !important; }
.ms-pop { display: block; text-decoration: none; color: var(--ink); }
.ms-pop img { width: 100%; height: 130px; object-fit: cover; }
.ms-pop-body { display: block; padding: 10px 12px 12px; }
.ms-pop-body span { display: block; }
.ms-pop-price { font-weight: 700; font-size: 1.1rem; color: var(--navy); }
.ms-pop-specs, .ms-pop-addr { font-size: .85rem; }
.ms-pop-court { font-size: .68rem; color: var(--muted); margin-top: 4px; }
.ms-toggle { display: none; }
@media (max-width: 860px) {
  .ms-title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .ms-bar-in { padding: 8px 12px; }
  .ms-filters { flex-wrap: nowrap; overflow-x: auto; gap: 8px; -webkit-overflow-scrolling: touch; }
  .ms-filters select, .ms-chk, .ms-listlink { flex: 0 0 auto; white-space: nowrap; }
  .ms-body { grid-template-columns: 1fr; height: calc(100vh - var(--header-h) - 57px); height: calc(100dvh - var(--header-h) - 57px); min-height: 380px; }
  .ms-list { display: none; border-right: 0; }
  .ms-show-list .ms-list { display: block; }
  .ms-show-list .ms-mapwrap { display: none; }
  .ms-toggle { display: block; position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 600; background: var(--navy); color: #fff; border: 0; border-radius: 999px; padding: 12px 22px; font-weight: 700; box-shadow: 0 6px 18px rgba(0,0,0,.35); }
  .ms-listlink { margin-left: 0; }
}
