/* Listings widget for realtyarmani.com. Colours and type follow the page; override the variables to restyle. */
.sa-root {
  --sa-bg: #0a0a0a;
  --sa-surface: #141414;
  --sa-line: rgba(255, 255, 255, .16);
  --sa-text: #f4f3ef;
  --sa-mute: #a3a29c;
  --sa-accent: #ffffff;
  --sa-font: inherit;
  --sa-display: inherit;
  color: var(--sa-text);
  font-family: var(--sa-font);
  -webkit-font-smoothing: antialiased;
}
.sa-root *, .sa-root *::before, .sa-root *::after { box-sizing: border-box; }
.sa-root button, .sa-root input, .sa-root select { font: inherit; color: inherit; }
.sa-root img { display: block; max-width: none; }
.sa-vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.sa-loading, .sa-empty { color: var(--sa-mute); padding: 40px 0; text-align: center; letter-spacing: .04em; }
.sa-noscroll { overflow: hidden; }

/* ---------- cards ---------- */
.sa-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 28px 22px; transition: opacity .2s; }
.sa-grid.sa-busy { opacity: .45; }
.sa-grid > .sa-empty { grid-column: 1 / -1; }
.sa-card { all: unset; cursor: pointer; display: flex; flex-direction: column; background: transparent; color: var(--sa-text); }
.sa-card:focus-visible { outline: 1px solid var(--sa-accent); outline-offset: 4px; }
.sa-card-img { position: relative; display: block; aspect-ratio: 3 / 2; overflow: hidden; background: var(--sa-surface); }
.sa-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2, .7, .2, 1); }
.sa-card:hover .sa-card-img img { transform: scale(1.04); }
.sa-noimg { display: grid; place-items: center; height: 100%; color: var(--sa-mute); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; }
.sa-badge { position: absolute; top: 14px; left: 14px; padding: 6px 12px; background: rgba(10, 10, 10, .78); border: 1px solid var(--sa-line);
  font-size: 10px; letter-spacing: .24em; text-transform: uppercase; }
.sa-badge-sold { background: var(--sa-text); color: var(--sa-bg); border-color: transparent; }
.sa-card-body { display: flex; flex-direction: column; gap: 4px; padding: 16px 2px 0; }
.sa-addr { font-family: var(--sa-display); font-size: 15px; font-weight: 400; letter-spacing: .14em; text-transform: uppercase; line-height: 1.35; }
.sa-city { color: var(--sa-mute); font-size: 12px; letter-spacing: .18em; text-transform: uppercase; }
.sa-card-foot { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 10px; padding-top: 12px; border-top: 1px solid var(--sa-line); }
.sa-price { font-size: 17px; font-weight: 300; letter-spacing: .06em; }
.sa-was { color: var(--sa-mute); font-size: 12px; letter-spacing: .06em; margin-right: auto; }
.sa-specs { color: var(--sa-mute); font-size: 11px; letter-spacing: .16em; white-space: nowrap; }
.sa-specs i { font-style: normal; margin: 0 7px; opacity: .6; }

/* ---------- featured carousel ---------- */
.sa-feat { position: relative; overflow: hidden; background: var(--sa-bg); }
.sa-feat-track { display: flex; transition: transform .9s cubic-bezier(.65, 0, .35, 1); }
.sa-slide { all: unset; cursor: pointer; position: relative; flex: 0 0 100%; aspect-ratio: 21 / 9; min-height: 420px; max-height: 82vh; overflow: hidden; }
.sa-slide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sa-slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0, 0, 0, .72), rgba(0, 0, 0, 0) 55%); }
.sa-slide-text { position: absolute; z-index: 1; left: clamp(20px, 5vw, 72px); bottom: clamp(28px, 6vw, 72px); display: flex; flex-direction: column; gap: 6px; color: #fff; }
.sa-slide-addr { font-family: var(--sa-display); font-size: clamp(20px, 2.6vw, 34px); font-weight: 300; letter-spacing: .14em; text-transform: uppercase; }
.sa-slide-city { font-size: 12px; letter-spacing: .3em; text-transform: uppercase; opacity: .8; }
.sa-slide-price { margin-top: 14px; font-size: clamp(18px, 1.8vw, 24px); font-weight: 300; letter-spacing: .08em; }
.sa-feat-nav { all: unset; cursor: pointer; position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 48px; height: 48px; display: grid; place-items: center;
  color: #fff; font-size: 34px; line-height: 1; border: 1px solid rgba(255, 255, 255, .4); background: rgba(0, 0, 0, .25); transition: background .2s; }
.sa-feat-nav:hover { background: rgba(0, 0, 0, .6); }
.sa-feat .sa-prev { left: 18px; } .sa-feat .sa-next { right: 18px; }
.sa-feat-dots { position: absolute; z-index: 2; right: clamp(20px, 5vw, 72px); bottom: clamp(28px, 6vw, 72px); display: flex; gap: 8px; }
.sa-feat-dots button { all: unset; cursor: pointer; width: 22px; height: 2px; background: rgba(255, 255, 255, .35); }
.sa-feat-dots button.on { background: #fff; }

/* ---------- quick search ---------- */
.sa-quick { display: flex; width: min(760px, 100%); margin: 0 auto; border: 1px solid rgba(255, 255, 255, .5); background: rgba(0, 0, 0, .35); backdrop-filter: blur(6px); }
.sa-quick input, .sa-quick select { min-width: 0; border: 0; background: transparent; padding: 16px 18px; font-size: 14px; letter-spacing: .04em; outline: none; }
.sa-quick input { flex: 1; }
.sa-quick input::placeholder { color: rgba(255, 255, 255, .7); }
.sa-quick select { border-left: 1px solid rgba(255, 255, 255, .3); max-width: 230px; }
.sa-quick select option { color: #111; }
.sa-quick button { all: unset; cursor: pointer; padding: 0 28px; background: #fff; color: #0a0a0a; font-size: 12px; letter-spacing: .26em; text-transform: uppercase; }
@media (max-width: 600px) { .sa-quick { flex-wrap: wrap; } .sa-quick input { flex-basis: 100%; } .sa-quick select { flex: 1; max-width: none; border-left: 0; border-top: 1px solid rgba(255, 255, 255, .3); } .sa-quick button { padding: 14px 22px; } }

/* ---------- search ---------- */
.sa-filters { display: grid; grid-template-columns: repeat(12, 1fr); gap: 1px; background: var(--sa-line); border: 1px solid var(--sa-line); }
.sa-f { grid-column: span 2; display: flex; flex-direction: column; gap: 4px; padding: 12px 16px; background: var(--sa-bg); min-width: 0; }
.sa-f-q { grid-column: span 4; }
.sa-f-s { grid-column: span 1; }
.sa-f span { font-size: 10px; letter-spacing: .24em; text-transform: uppercase; color: var(--sa-mute); }
.sa-f input, .sa-f select { border: 0; background: transparent; padding: 2px 0; font-size: 15px; outline: none; width: 100%; -webkit-appearance: none; appearance: none; }
.sa-f select { background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 9px) 55%, calc(100% - 5px) 55%; background-size: 4px 4px; background-repeat: no-repeat; padding-right: 18px; cursor: pointer; }
.sa-f select option, .sa-sort select option { color: #111; }
.sa-f input::placeholder { color: rgba(244, 243, 239, .45); }
.sa-types { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 16px; background: var(--sa-bg); }
.sa-types button, .sa-views button { all: unset; cursor: pointer; padding: 7px 16px; border: 1px solid var(--sa-line); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--sa-mute); transition: all .15s; }
.sa-types button:hover, .sa-views button:hover { color: var(--sa-text); border-color: var(--sa-text); }
.sa-types button[aria-pressed="true"], .sa-views button[aria-pressed="true"] { background: var(--sa-text); color: var(--sa-bg); border-color: var(--sa-text); }
.sa-types button:focus-visible, .sa-views button:focus-visible { outline: 1px solid var(--sa-accent); outline-offset: 2px; }
.sa-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 26px 0 22px; }
.sa-count { margin: 0; font-size: 12px; letter-spacing: .24em; text-transform: uppercase; color: var(--sa-mute); }
.sa-count-wrap { display: flex; align-items: baseline; gap: 18px; flex-wrap: wrap; }
.sa-deep { all: unset; cursor: pointer; font-size: 12px; letter-spacing: .06em; color: var(--sa-text); border-bottom: 1px solid var(--sa-line); }
.sa-deep[hidden] { display: none; }
.sa-deep:hover { border-color: var(--sa-text); }
.sa-deep:focus-visible { outline: 1px solid var(--sa-accent); outline-offset: 3px; }
.sa-bar-r { display: flex; align-items: center; gap: 14px; }
.sa-sort select { border: 1px solid var(--sa-line); background: transparent; padding: 7px 12px; font-size: 12px; letter-spacing: .1em; outline: none; cursor: pointer; }
.sa-views { display: flex; }
.sa-views button + button { border-left: 0; }
.sa-note { margin: -6px 0 22px; padding: 12px 16px; border-left: 2px solid var(--sa-text); background: var(--sa-surface); color: var(--sa-mute); font-size: 13px; line-height: 1.5; }
.sa-map { height: min(70vh, 620px); margin-bottom: 28px; background: var(--sa-surface); }
.sa-map .leaflet-tile-pane { filter: grayscale(1) invert(1) brightness(.85) contrast(.9); }
.sa-map .leaflet-control-attribution { background: rgba(10, 10, 10, .7); color: var(--sa-mute); }
.sa-map .leaflet-control-attribution a { color: var(--sa-text); }
.sa-pin span { display: inline-block; transform: translate(-50%, -100%); padding: 4px 8px; background: var(--sa-text); color: var(--sa-bg); font: 600 11px/1 system-ui, sans-serif; letter-spacing: .04em; white-space: nowrap; box-shadow: 0 2px 8px rgba(0, 0, 0, .5); cursor: pointer; }
.sa-pin:hover span { background: #000; color: #fff; outline: 1px solid #fff; }
.sa-more-wrap { text-align: center; margin: 40px 0 10px; }
.sa-more, .sa-btn { all: unset; cursor: pointer; display: inline-block; padding: 14px 34px; border: 1px solid var(--sa-text); font-size: 12px; letter-spacing: .26em; text-transform: uppercase; transition: all .2s; text-align: center; }
.sa-more:hover, .sa-btn:hover { background: var(--sa-text); color: var(--sa-bg); }
.sa-more[hidden] { display: none; }
.sa-legal { margin: 34px 0 0; color: var(--sa-mute); font-size: 11px; line-height: 1.6; opacity: .8; }
@media (max-width: 1100px) {
  .sa-filters { grid-template-columns: repeat(6, 1fr); }
  .sa-f { grid-column: span 2; }
  .sa-f-q { grid-column: 1 / -1; }
  .sa-f-s { grid-column: span 3; }
}
@media (max-width: 560px) {
  .sa-f, .sa-f-s { grid-column: span 3; }
  .sa-f-q, .sa-filters .sa-f:nth-child(2) { grid-column: 1 / -1; }
  .sa-bar { align-items: flex-start; flex-direction: column; }
}

/* ---------- detail panel ---------- */
.sa-modal { position: fixed; inset: 0; z-index: 100000; background: rgba(0, 0, 0, .82); overflow-y: auto; -webkit-overflow-scrolling: touch; animation: sa-fade .25s ease; }
@keyframes sa-fade { from { opacity: 0; } }
.sa-modal-box { position: relative; width: min(1180px, 100%); margin: 4vh auto; background: var(--sa-bg); border: 1px solid var(--sa-line); }
.sa-close { all: unset; cursor: pointer; position: absolute; top: 12px; right: 14px; z-index: 3; width: 42px; height: 42px; display: grid; place-items: center; font-size: 30px; color: #fff; background: rgba(0, 0, 0, .45); }
.sa-gal { position: relative; background: #000; }
.sa-gal-main { aspect-ratio: 16 / 9; max-height: 72vh; width: 100%; }
.sa-gal-main img { width: 100%; height: 100%; object-fit: cover; }
.sa-gal-nav { all: unset; cursor: pointer; position: absolute; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; display: grid; place-items: center; font-size: 32px; color: #fff; background: rgba(0, 0, 0, .4); }
.sa-gal .sa-prev { left: 12px; } .sa-gal .sa-next { right: 12px; }
.sa-gal-count { position: absolute; right: 14px; bottom: 12px; padding: 4px 10px; background: rgba(0, 0, 0, .55); color: #fff; font-size: 11px; letter-spacing: .16em; }
.sa-gal-count:empty { display: none; }
.sa-d { padding: clamp(22px, 4vw, 48px); }
.sa-d-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; flex-wrap: wrap; }
.sa-d-addr { margin: 0; font-family: var(--sa-display); font-size: clamp(22px, 3vw, 34px); font-weight: 300; letter-spacing: .14em; text-transform: uppercase; line-height: 1.2; color: var(--sa-text); }
.sa-d-city { margin: 8px 0 0; color: var(--sa-mute); font-size: 12px; letter-spacing: .26em; text-transform: uppercase; }
.sa-d-price { font-size: clamp(22px, 2.6vw, 30px); font-weight: 300; letter-spacing: .06em; text-align: right; }
.sa-d-price small { display: block; margin-top: 4px; color: var(--sa-mute); font-size: 13px; }
.sa-d-specs { display: flex; flex-wrap: wrap; gap: 0; list-style: none; margin: 30px 0; padding: 0; border-top: 1px solid var(--sa-line); border-bottom: 1px solid var(--sa-line); }
.sa-d-specs li { flex: 1 1 120px; padding: 18px 0; display: flex; flex-direction: column; gap: 4px; }
.sa-d-specs li + li { padding-left: 22px; border-left: 1px solid var(--sa-line); }
.sa-d-specs b { font-weight: 300; font-size: 22px; letter-spacing: .04em; }
.sa-d-specs span { color: var(--sa-mute); font-size: 10px; letter-spacing: .24em; text-transform: uppercase; }
.sa-d-specs:empty { display: none; }
.sa-d-body { display: grid; grid-template-columns: 1.6fr 1fr; gap: 40px; }
.sa-d-body > :only-child { grid-column: 1 / -1; }
.sa-d-remarks { margin: 0; font-size: 15px; line-height: 1.8; color: rgba(244, 243, 239, .86); white-space: pre-line; }
.sa-d-facts { margin: 0; }
.sa-d-facts div { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--sa-line); font-size: 13px; }
.sa-d-facts dt { color: var(--sa-mute); letter-spacing: .14em; text-transform: uppercase; font-size: 11px; }
.sa-d-facts dd { margin: 0; text-align: right; }
.sa-d-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 36px; }
.sa-btn:not(.sa-btn-ghost) { background: var(--sa-text); color: var(--sa-bg); }
.sa-btn:not(.sa-btn-ghost):hover { background: transparent; color: var(--sa-text); }
.sa-d-attr { margin: 26px 0 0; color: var(--sa-mute); font-size: 11px; letter-spacing: .12em; }
@media (max-width: 760px) {
  .sa-modal-box { margin: 0; min-height: 100%; border: 0; }
  .sa-d-body { grid-template-columns: 1fr; gap: 24px; }
  .sa-d-price { text-align: left; }
  .sa-slide { aspect-ratio: auto; min-height: 520px; }
  .sa-slide-text { bottom: 52px; }
  .sa-feat-nav { display: none; }
  .sa-feat-dots { left: 20px; right: 20px; bottom: 24px; }
  .sa-feat-dots button { flex: 1; }
}
