/* OLI – Your Island REALTOR®  ·  site styles (design v2, dark) */
:root {
  --ground: #1B2223;
  --deep: #141A1B;
  --panel: #263031;
  --line: #34403F;
  --line-soft: #2C3637;
  --text: #EEF0EC;
  --text-body: #DDE2DE;
  --muted: #B9C4C4;
  --faint: #8E9A9A;
  --accent: #9DB5D6;
  --accent-hover: #C3D3E8;
  --button: #416490;
  --button-hover: #4F75A5;
  --cream: #F7F5EE;
  --charcoal: #2B3434;
  --font: "Montserrat", Arial, Helvetica, sans-serif;
  --wrap: 1240px;
  --radius: 8px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--ground); color: var(--text); font-family: var(--font); font-size: 16px; line-height: 1.6; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
h1, h2, h3 { font-weight: 600; line-height: 1.15; margin: 0; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 32px; }
.narrow { max-width: 820px; }
.section { padding: 96px 0; }
.section--tight { padding: 64px 0; }
.section--deep { background: var(--deep); }
.section--panel { background: var(--panel); }
.center { text-align: center; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--cream); color: var(--charcoal); padding: 10px 16px; border-radius: 4px; }
.skip:focus { left: 8px; }

.eyebrow { margin: 0 0 8px; font-size: 13px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); }
.h1 { font-size: clamp(36px, 6vw, 64px); letter-spacing: -.01em; }
.h2 { font-size: clamp(28px, 3.6vw, 36px); margin-bottom: 40px; }
.lead { font-size: 18px; line-height: 1.65; color: var(--muted); max-width: 640px; }
.prose { font-size: 17px; line-height: 1.75; color: var(--text-body); }
.prose h2 { font-size: 26px; margin: 48px 0 16px; color: var(--text); }
.prose h3 { font-size: 20px; margin: 32px 0 12px; color: var(--text); }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .4em; }
.prose img { border-radius: var(--radius); margin: 24px 0; }
.prose blockquote { margin: 24px 0; padding-left: 20px; border-left: 2px solid var(--accent); color: var(--muted); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 14px 28px; border-radius: 4px; border: 1px solid transparent; font: 600 14px/1.2 var(--font); letter-spacing: .1em; text-transform: uppercase; text-decoration: none; cursor: pointer; }
.btn--primary { background: var(--button); color: #fff; }
.btn--primary:hover { background: var(--button-hover); color: #fff; }
.btn--ghost { border-color: var(--accent); color: var(--accent); background: transparent; }
.btn--ghost:hover { color: var(--accent-hover); border-color: var(--accent-hover); }
.btn--cream { background: var(--cream); color: var(--charcoal); }
.btn--cream:hover { background: #fff; color: var(--charcoal); }
.btn--outline-light { border-color: var(--cream); color: #fff; }
.btn--outline-light:hover { color: #fff; background: rgba(255,255,255,.08); }
.btn-row { display: flex; flex-wrap: wrap; gap: 16px; }
.text-link { font-size: 14px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }

/* Header */
.site-header { background: var(--deep); border-bottom: 1px solid var(--line-soft); position: sticky; top: 0; z-index: 50; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 12px; padding-bottom: 12px; }
.brand img { height: 56px; width: auto; }
.nav { display: flex; align-items: center; gap: 26px; font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.nav a { color: var(--text); text-decoration: none; padding: 8px 0; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--accent); }
.nav .nav-phone { color: var(--accent); }
.nav .nav-signin { background: var(--button); color: #fff; padding: 12px 20px; border-radius: 4px; }
.nav .nav-signin:hover { background: var(--button-hover); color: #fff; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); color: var(--text); border-radius: 4px; width: 48px; height: 48px; cursor: pointer; }
@media (max-width: 1060px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--deep); flex-direction: column; align-items: stretch; gap: 0; padding: 8px 32px 24px; border-bottom: 1px solid var(--line-soft); }
  .nav.is-open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line-soft); }
  .nav .nav-signin { margin-top: 16px; text-align: center; border-bottom: 0; }
}

/* Hero (homepage) */
.hero { background: linear-gradient(180deg, rgba(29,38,40,.35), rgba(29,38,40,.7)), var(--hero-img) center / cover no-repeat; padding: 140px 0 120px; color: #fff; }
.hero { --hero-img: url(/assets/img/hero-2400.webp); }
@media (max-width: 900px) { .hero { --hero-img: url(/assets/img/hero-1200.webp); } }
.hero .lead { color: #EDEBE3; margin: 22px 0 40px; max-width: 560px; }
.hero-links { display: flex; flex-wrap: wrap; gap: 24px; margin-top: 20px; font-size: 14px; }
.hero-links a { color: #fff; }

/* Page banner (inner pages) */
.page-hero { background: var(--deep); padding: 88px 0 64px; border-bottom: 1px solid var(--line-soft); }
.page-hero--photo { background: linear-gradient(180deg, rgba(20,26,27,.35), rgba(20,26,27,.8)), var(--hero-img) center / cover no-repeat; padding: 160px 0 72px; border: 0; }
.page-hero .lead { margin: 18px 0 0; }
.page-hero--photo .lead { color: #E3E7E3; }

/* Search bar */
.searchbar { display: flex; flex-wrap: wrap; max-width: 760px; background: #fff; border-radius: 6px; overflow: hidden; box-shadow: 0 12px 32px rgba(0,0,0,.25); }
.searchbar input { flex: 1 1 320px; min-width: 0; border: 0; padding: 22px 24px; font: 16px var(--font); color: var(--charcoal); }
.searchbar input:focus { outline: none; }
.searchbar:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.searchbar button { flex: 0 0 auto; border: 0; background: var(--button); color: #fff; padding: 0 34px; min-height: 64px; font: 600 14px var(--font); letter-spacing: .12em; text-transform: uppercase; cursor: pointer; }
.searchbar button:hover { background: var(--button-hover); }
@media (max-width: 560px) { .searchbar button { flex: 1 1 100%; } }

/* Grids and cards */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 1000px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 28px; color: var(--text); }
a.card { display: block; text-decoration: none; transition: border-color .15s, transform .15s; }
a.card:hover { border-color: var(--accent); color: var(--text); transform: translateY(-2px); }
.card h3 { margin: 18px 0 8px; font-size: 16px; letter-spacing: .06em; text-transform: uppercase; }
.card p { margin: 0; font-size: 15px; color: var(--muted); }
.card svg { display: block; }

.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 32px; }
.section-head .h2 { margin: 0; }

/* Listing placeholder cards */
.listing { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.listing-photo { aspect-ratio: 16 / 10; background: var(--line); display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; text-align: center; padding: 16px; }
.listing-body { padding: 22px 24px 26px; }
.listing-price { margin: 0; font-size: 24px; font-weight: 600; }
.listing-addr { margin: 6px 0 14px; font-size: 15px; color: var(--muted); }
.listing-facts { margin: 0; font-size: 13px; color: var(--muted); letter-spacing: .04em; }
.listing-mls { margin: 14px 0 0; font-size: 11px; color: var(--faint); }
.slider { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 48px) / 3); gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; scrollbar-color: var(--line) transparent; }
.slider > * { scroll-snap-align: start; }
@media (max-width: 1000px) { .slider { grid-auto-columns: calc((100% - 24px) / 2); } }
@media (max-width: 640px) { .slider { grid-auto-columns: 85%; } }
.slider-controls { display: flex; gap: 8px; }
.icon-btn { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--panel); color: var(--text); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.icon-btn:hover { border-color: var(--accent); }
.placeholder-note { margin: 16px 0 0; font-size: 13px; color: var(--faint); }

/* About band */
.about { display: flex; flex-wrap: wrap; align-items: center; gap: 64px; }
.about-photo { flex: 0 1 400px; min-width: 260px; border-radius: var(--radius); overflow: hidden; background: var(--panel); }
.about-photo img { width: 100%; height: 560px; object-fit: cover; object-position: center 20%; }
.about-text { flex: 1 1 480px; min-width: 0; }
.about-text h2 { font-size: clamp(34px, 4vw, 44px); margin-bottom: 6px; }
.about-role { margin: 0 0 28px; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 640px) { .about { gap: 40px; } .about-photo img { height: 440px; } }

/* Testimonials */
.quote { margin: 0; border-top: 2px solid #7E9CC2; padding-top: 24px; }
.quote blockquote { margin: 0; font-size: 18px; line-height: 1.65; color: var(--cream); }
.quote figcaption { margin-top: 18px; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: #C9D3DE; }
.quote--card { background: var(--panel); border: 1px solid var(--line); border-top: 2px solid #7E9CC2; border-radius: 0 0 var(--radius) var(--radius); padding: 28px; }

/* Community tiles */
.tile { position: relative; display: flex; align-items: flex-end; height: 280px; border-radius: var(--radius); padding: 24px; color: #fff; text-decoration: none; font-size: 24px; font-weight: 600; overflow: hidden; background: var(--panel); isolation: isolate; }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .4s; }
.tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 45%, rgba(20,28,30,.8)); z-index: -1; }
.tile:hover { color: #fff; }
.tile:hover img { transform: scale(1.04); }
.tile--map { flex-direction: column; justify-content: flex-end; align-items: flex-start; background: var(--button); }
.tile--map::after { display: none; }
.tile--map span { font-size: 14px; font-weight: 400; margin-top: 6px; color: #E1E8F1; }

/* Awards */
.awards { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; }
.award { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 28px; min-width: 220px; text-align: center; }
.award strong { display: block; font-size: 16px; }
.award span { font-size: 14px; color: var(--muted); }

/* Blog */
.post-card { display: flex; flex-direction: column; gap: 10px; }
.post-card time { font-size: 13px; color: var(--faint); letter-spacing: .06em; text-transform: uppercase; }
.post-card h3 { margin: 0; font-size: 20px; letter-spacing: 0; text-transform: none; }
.post-meta { color: var(--muted); font-size: 14px; letter-spacing: .06em; text-transform: uppercase; }
.draft-badge { display: inline-block; background: #7A5C1E; color: #fff; font-size: 11px; padding: 2px 8px; border-radius: 3px; letter-spacing: .1em; text-transform: uppercase; }

/* CTA band */
.cta { background: var(--button); color: #fff; text-align: center; padding: 88px 0; }
.cta h2 { font-size: clamp(30px, 4vw, 40px); margin-bottom: 16px; }
.cta p { font-size: 18px; color: #E1E8F1; margin: 0 auto 32px; max-width: 620px; }
.cta .btn-row { justify-content: center; }

/* Forms */
.form { display: grid; gap: 18px; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label, .field legend { font-size: 13px; font-weight: 600; letter-spacing: .06em; color: var(--text); }
.field input, .field select, .field textarea { width: 100%; background: var(--ground); border: 1px solid var(--line); border-radius: 4px; color: var(--text); padding: 13px 14px; font: 15px var(--font); min-height: 48px; }
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.field small { color: var(--faint); font-size: 12px; }
.form-msg { padding: 14px 16px; border-radius: 4px; background: #23344A; border: 1px solid var(--button); color: var(--text); font-size: 15px; }
.form-msg[hidden] { display: none; }
.form-msg--error { background: #3A2A22; border-color: #B9774A; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--muted); }
.check input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--button); }

/* Calculators */
.calc { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; }
.calc h3 { font-size: 20px; margin-bottom: 6px; }
.calc .calc-intro { color: var(--muted); font-size: 15px; margin-bottom: 24px; }
.calc-result { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.calc-result dl { margin: 0; display: grid; grid-template-columns: 1fr auto; gap: 8px 16px; font-size: 15px; }
.calc-result dt { color: var(--muted); }
.calc-result dd { margin: 0; text-align: right; font-weight: 600; }
.calc-result .big { font-size: 28px; color: var(--text); }
.calc-note { margin: 16px 0 0; font-size: 12px; color: var(--faint); }

/* Search page */
.filters { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; align-items: end; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
@media (max-width: 1000px) { .filters { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px) { .filters { grid-template-columns: 1fr 1fr; } }
.toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin: 24px 0; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; }
.seg button { background: transparent; color: var(--text); border: 0; padding: 10px 18px; min-height: 44px; font: 600 13px var(--font); letter-spacing: .08em; text-transform: uppercase; cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--button); color: #fff; }
.map-placeholder { min-height: 420px; border-radius: var(--radius); border: 1px dashed var(--line); background: repeating-linear-gradient(45deg, #222B2C 0 12px, #1F2728 12px 24px); display: flex; align-items: center; justify-content: center; text-align: center; padding: 32px; color: var(--muted); }

/* Listing detail placeholder */
.gallery { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; gap: 8px; height: 480px; }
.gallery > div { background: var(--line); border-radius: 6px; display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.gallery > div:first-child { grid-row: span 2; }
@media (max-width: 640px) { .gallery { grid-template-columns: 1fr; grid-template-rows: auto; height: auto; } .gallery > div { height: 200px; } .gallery > div:first-child { grid-row: auto; height: 280px; } }
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.facts div { background: var(--panel); padding: 18px; }
.facts dt { font-size: 12px; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; }
.facts dd { margin: 4px 0 0; font-size: 18px; font-weight: 600; }
@media (max-width: 640px) { .facts { grid-template-columns: 1fr 1fr; } }

/* Partners */
.partner-group { margin-bottom: 48px; }
.partner-group h2 { font-size: 14px; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); margin-bottom: 16px; }
.partner h3 { margin: 0 0 4px; font-size: 18px; letter-spacing: 0; text-transform: none; }
.partner p { margin: 0 0 12px; }
.partner .links { display: flex; flex-wrap: wrap; gap: 16px; font-size: 14px; }

/* Community page */
.two-col { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 56px; align-items: start; }
@media (max-width: 900px) { .two-col { grid-template-columns: 1fr; } }
.side-photo { border-radius: var(--radius); overflow: hidden; }
.side-box { margin-top: 24px; }
.side-box h3 { font-size: 16px; letter-spacing: .06em; text-transform: uppercase; margin: 0 0 8px; }

/* Footer (cream, so the RE/MAX logo sits on a neutral background) */
.site-footer { background: var(--cream); color: var(--charcoal); padding: 64px 0 40px; }
.site-footer a { color: #475657; }
.site-footer a:hover { color: var(--button); }
.footer-cols { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 40px; }
.footer-cols > div { flex: 1 1 220px; }
.footer-cols h2 { margin: 0 0 12px; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; }
.footer-cols p, .footer-cols ul { margin: 0; font-size: 15px; line-height: 1.9; color: #475657; }
.footer-cols ul { list-style: none; padding: 0; }
.footer-logo { height: 72px; width: auto; }
.remax-logo { height: 64px; width: auto; margin: 4px 0 12px; }
.legal { margin: 48px 0 0; padding-top: 24px; border-top: 1px solid #E4E1D6; font-size: 11px; line-height: 1.7; color: #5E6868; }
.legal p { margin: 0 0 8px; }
.legal a { color: #5E6868; }

/* ---------- Listings (phase 2) ---------- */
.listing-photo { position: relative; overflow: hidden; padding: 0; }
.listing-photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.listing:hover .listing-photo img { transform: scale(1.03); }
.listing-price a { color: inherit; text-decoration: none; }
.listing-price a:hover, .listing-price a:focus-visible { color: var(--accent); }
.listing { display: flex; flex-direction: column; }
.listing--loading .listing-photo { background: linear-gradient(90deg, var(--line) 0%, #3d4a49 50%, var(--line) 100%); background-size: 200% 100%; animation: shimmer 1.6s infinite linear; }
.listing--loading p { background: var(--line); border-radius: 3px; width: 70%; }
.listing--loading .listing-addr { width: 90%; }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .listing--loading .listing-photo { animation: none; } .listing:hover .listing-photo img { transform: none; } }
.listings-empty { grid-column: 1 / -1; color: var(--muted); padding: 24px 0; margin: 0; }
.slider .listings-empty { min-width: 100%; }
.pager { display: flex; justify-content: center; margin-top: 32px; }

.search-map { height: min(70vh, 640px); min-height: 420px; border-radius: var(--radius); border: 1px solid var(--line); overflow: hidden; background: #222B2C; }
.listing-map { height: 320px; border-radius: var(--radius); border: 1px solid var(--line); overflow: hidden; background: #222B2C; }
.maplibregl-popup-content { background: var(--panel); color: var(--text); border: 1px solid var(--line); border-radius: 6px; font: 14px/1.5 var(--font); padding: 12px 30px 12px 14px; }
.maplibregl-popup-content a { color: var(--accent); }
.maplibregl-popup-close-button { color: var(--muted); font-size: 18px; width: 28px; height: 28px; }
.maplibregl-popup-anchor-bottom .maplibregl-popup-tip { border-top-color: var(--panel); }
.maplibregl-popup-anchor-top .maplibregl-popup-tip { border-bottom-color: var(--panel); }

/* Listing page photos */
.gallery { position: relative; }
.gallery-item { padding: 0; border: 0; background: var(--line); border-radius: 6px; overflow: hidden; cursor: zoom-in; }
.gallery-item:first-child { grid-row: span 2; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery--few { grid-template-columns: 1fr; grid-template-rows: 1fr; }
.gallery--few .gallery-item:not(:first-child) { display: none; }
.gallery-empty { background: var(--line); border-radius: 6px; display: flex; align-items: center; justify-content: center; color: var(--muted); }
.gallery-more { position: absolute; right: 16px; bottom: 16px; background: rgba(20,26,27,.85); color: #fff; border: 1px solid rgba(255,255,255,.3); border-radius: 4px; padding: 10px 16px; min-height: 44px; font: 600 13px var(--font); letter-spacing: .06em; cursor: pointer; }
.gallery-more:hover { background: var(--button); }
@media (max-width: 640px) { .gallery-item { height: 200px; } .gallery-item:first-child { grid-row: auto; height: 280px; } .gallery-item:nth-child(3) { display: none; } }
.photo-strip { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; margin-top: 16px; }
.photo-strip button { padding: 0; border: 0; border-radius: 4px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--line); cursor: zoom-in; }
.photo-strip img { width: 100%; height: 100%; object-fit: cover; display: block; }

.details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; margin: 0; }
.details div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.details dt { color: var(--muted); }
.details dd { margin: 0; text-align: right; font-weight: 500; }
@media (max-width: 640px) { .details { grid-template-columns: 1fr; } }
.table-wrap { overflow-x: auto; }
.rooms { width: 100%; border-collapse: collapse; font-size: 15px; }
.rooms th, .rooms td { text-align: left; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); }
.rooms th { color: var(--muted); font-weight: 500; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.listing-source { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--line); }
.listing-source p { margin: 0; font-size: 12px; color: var(--muted); flex: 1 1 280px; }
.realtor-badge { display: inline-block; background: #fff; padding: 6px 10px; border-radius: 4px; line-height: 0; }

.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(10,13,14,.94); display: flex; align-items: center; justify-content: center; padding: 56px 64px; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 4px; }
.lightbox button { position: absolute; background: rgba(38,48,49,.9); color: #fff; border: 1px solid var(--line); border-radius: 50%; width: 48px; height: 48px; font-size: 28px; line-height: 1; cursor: pointer; }
.lightbox button:hover, .lightbox button:focus-visible { background: var(--button); }
.lightbox-close { top: 16px; right: 16px; }
.lightbox-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 12px; top: 50%; transform: translateY(-50%); }
.lightbox-count { position: absolute; bottom: 14px; left: 0; right: 0; text-align: center; color: var(--muted); margin: 0; font-size: 13px; }
@media (max-width: 640px) { .lightbox { padding: 64px 8px; } .lightbox-prev, .lightbox-next { top: auto; bottom: 8px; transform: none; } }
.listing-tag { position: absolute; top: 12px; left: 12px; z-index: 1; background: var(--button); color: #fff; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; padding: 5px 10px; border-radius: 3px; }

/* ---- Accounts: save hearts, nudge, account page ---- */
.listing { position: relative; }
.save-heart { position: absolute; top: 10px; right: 10px; z-index: 2; width: 40px; height: 40px; border-radius: 50%; border: 0; display: grid; place-items: center; cursor: pointer; background: rgba(20, 26, 27, .72); color: #fff; transition: transform .15s ease, background .15s ease; }
.save-heart:hover { background: rgba(20, 26, 27, .9); transform: scale(1.06); }
.save-heart svg, .save-big svg { fill: none; stroke: currentColor; stroke-width: 2; }
.save-heart[aria-pressed="true"] { color: #E8A0A8; }
.save-heart[aria-pressed="true"] svg, .save-big[aria-pressed="true"] svg { fill: currentColor; }
.save-big { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; }
.save-big[aria-pressed="true"] { border-color: #E8A0A8; color: #E8A0A8; }
.toast { position: fixed; z-index: 80; left: 50%; bottom: 24px; transform: translateX(-50%); width: min(560px, calc(100% - 32px)); background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; box-shadow: 0 12px 40px rgba(0, 0, 0, .45); color: var(--text); }
.toast[hidden] { display: none; }
.toast p { margin: 0; font-size: 15px; }
.toast-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.toast-actions .btn { padding: 10px 16px; font-size: 13px; }
.toast-phone { margin-top: 14px; }
.toast-phone input { width: 100%; background: var(--ground); border: 1px solid var(--line); border-radius: 4px; color: var(--text); padding: 12px 14px; font: 15px var(--font); min-height: 46px; }
.toast-phone input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.toast-phone small { display: block; margin-top: 8px; font-size: 13px; }
.toast-phone small:empty { display: none; }
.account-head { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between; padding: 24px 28px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.account-signin { display: flex; justify-content: center; }
.muted { color: var(--muted); }
.account-phone { margin-top: 20px; padding: 24px 28px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); max-width: 640px; }
.account-phone-row { display: flex; gap: 12px; flex-wrap: wrap; }
.account-phone-row input { flex: 1 1 220px; width: auto; }

/* Listing alerts and Street Match */
.form-note { font-size: 14px; color: var(--muted); margin: 0; }
.alert-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; max-width: 760px; }
.alert-item { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; justify-content: space-between; padding: 16px 20px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.alert-item p { margin: 0; }
.alert-kind { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent, #9DB5D6); }

/* Social links (footer and Contact page) */
.social { list-style: none; margin: 16px 0 0; padding: 0; display: flex; gap: 10px; }
.social a { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 50%; border: 1px solid currentColor; color: var(--accent); transition: background .15s, color .15s; }
.social a:hover { background: var(--button); border-color: var(--button); color: #fff; }
.social svg { width: 20px; height: 20px; stroke: currentColor; }
.site-footer .social a { color: #475657; }
.site-footer .social a:hover { color: #fff; }
