:root {
  --bg: #ffffff;
  --panel: #f5f6f8;
  --panel-2: #e6e9ee;
  --line: rgba(20, 24, 31, 0.10);
  --cream: #16191f;
  --text-soft: #565c66;
  --gold: #16191f;
  --gold-soft: #e6e8ec;
  --gold-hover: #000000;
  --on-gold: #ffffff;
  --ink: #0e0f12;
  --shadow: 0 20px 50px rgba(16, 20, 28, 0.12);
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

html { scroll-behavior: smooth; }
html[lang="ko"] body { word-break: keep-all; overflow-wrap: break-word; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--cream);
  font-family: 'Montserrat', sans-serif;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .logo-word {
  font-family: 'Cormorant Garamond', serif;
  margin: 0;
  font-weight: 600;
}

p { color: var(--text-soft); line-height: 1.75; margin: 0 0 1.2em; }

a { color: inherit; text-decoration: none; }

.eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1em;
}
.eyebrow.center { display: block; text-align: center; }

.section-title {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  text-align: center;
  margin-bottom: 0.5em;
}
.section-sub {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 3rem;
}

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 1.5rem; }

/* Nav */
.nav {
  --bg: #000000;
  --panel: #141518;
  --panel-2: #22242a;
  --cream: #f4f5f7;
  --text-soft: #a9adb5;
  --gold: #ffffff;
  --line: rgba(244, 245, 247, 0.14);
  color: var(--cream);
  position: sticky;
  top: 0;
  z-index: 100;
  background: #000;
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0.7rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo { white-space: nowrap; display: flex; flex-direction: column; line-height: 1.1; color: var(--cream); }
.logo-word { font-size: 1.4rem; letter-spacing: 0.04em; color: var(--cream); }
.brand { display: flex; flex-direction: column; line-height: 1.15; flex-shrink: 0; margin-right: 2rem; }
.nav-motto { font-size: 0.68rem; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; color: var(--cream); margin-bottom: 0.3rem; white-space: nowrap; }
.nav-phone { font-size: 1.15rem; font-weight: 700; letter-spacing: 0.06em; color: #fff; margin-top: 0.15rem; white-space: nowrap; transition: opacity 0.2s; }
.nav-phone:hover { opacity: 0.8; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 2.4rem;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.nav-links a { white-space: nowrap; position: relative; padding-bottom: 4px; color: var(--cream); transition: color 0.2s; }
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.25s;
}
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }
.nav-links a.active { color: var(--gold); }
.nav-toggle { display: none; background: none; border: none; color: var(--cream); font-size: 1.4rem; cursor: pointer; min-width: 44px; min-height: 44px; padding: 0.4rem; }

.lang-switch { position: relative; margin-left: 1.6rem; padding-left: 1.6rem; border-left: 1px solid var(--line); }
.lang-current {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  background: none;
  border: none;
  color: var(--cream);
  cursor: pointer;
  font-size: 1.05rem;
  padding: 0.2em 0.1em;
}
.lang-arrow { font-size: 0.6rem; color: var(--text-soft); transition: transform 0.2s; }
.lang-current[aria-expanded="true"] .lang-arrow { transform: rotate(180deg); }
.lang-menu {
  position: absolute;
  top: calc(100% + 0.8rem);
  right: 0;
  min-width: 150px;
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  z-index: 200;
  display: flex;
  flex-direction: column;
}
.lang-menu[hidden] { display: none; }
.lang-option {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  background: none;
  border: none;
  color: var(--cream);
  text-align: left;
  padding: 0.75em 1em;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  cursor: pointer;
}
.lang-option:hover { background: var(--panel-2); }
.lang-option.active { color: var(--gold); }

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.95em 2.1em;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.25s;
}
.btn-gold { background: var(--gold); color: var(--on-gold); }
.btn-gold:hover { background: var(--gold-hover); }
.btn-outline { background: transparent; color: var(--cream); border-color: rgba(22, 25, 31, 0.22); }
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }
.btn.full { width: 100%; font-family: inherit; }

/* Page banner (non-home pages) */
.banner {
  position: relative;
  padding: 7rem 1.5rem 5rem;
  text-align: center;
  background-color: var(--ink);
  background-size: cover;
  background-position: center 60%;
}
.banner h1 { font-size: clamp(2.4rem, 5vw, 3.4rem); color: #fff; text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35); }
.banner .eyebrow { color: var(--gold-soft); }
.banner p { color: rgba(255, 255, 255, 0.88); }
.banner .banner-credit, .hero .banner-credit {
  position: absolute;
  right: 1rem;
  bottom: 0.6rem;
  margin: 0;
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.7);
}
.banner .banner-credit a, .hero .banner-credit a { text-decoration: underline; }

/* Hero (home) */
.hero {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 5rem 1.5rem 4rem;
  background-image:
    linear-gradient(180deg, rgba(10,14,22,0.28), rgba(10,14,22,0.5)),
    url('../images/hero-home.jpg');
  background-size: cover, cover;
  background-position: center, center 60%;
  background-repeat: no-repeat, no-repeat;
  overflow: hidden;
}
.hero-inner { max-width: 780px; position: relative; z-index: 2; }
.hero h1 {
  font-size: clamp(2.8rem, 6.5vw, 4.6rem);
  line-height: 1.15;
  margin-bottom: 0.9em;
}
.hero h1 { color: #fff; font-weight: 500; text-shadow: 0 2px 24px rgba(0, 0, 0, 0.4); }
.hero h1 em { font-style: italic; color: #fff; }
.hero-name {
  margin: 0 0 0.9rem;
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(1.05rem, 2.4vw, 1.6rem);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.5);
}
.hero-name::after {
  content: "";
  display: block;
  width: 3.5rem;
  height: 1px;
  margin: 0.9rem auto 0;
  background: rgba(255, 255, 255, 0.7);
}
.hero .eyebrow { color: rgba(255, 255, 255, 0.85); font-size: clamp(0.72rem, 1.2vw, 0.85rem); font-weight: 500; letter-spacing: 0.22em; margin-bottom: 1.4em; text-shadow: 0 1px 12px rgba(0, 0, 0, 0.45); }
.hero-sub { max-width: 540px; margin: 0 auto 2.4rem; font-size: 1.05rem; color: rgba(255, 255, 255, 0.92); text-shadow: 0 1px 12px rgba(0, 0, 0, 0.45); }
.hero .btn-outline { color: #fff; border-color: rgba(255, 255, 255, 0.6); }
.hero .btn-outline:hover { color: #fff; border-color: #fff; background: rgba(255, 255, 255, 0.12); }
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* Stats */
.stats {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--panel);
}
.stats-grid {
  max-width: 1000px;
  margin: 0 auto;
  padding: 3.5rem 1.5rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  text-align: center;
}
.stat-num { font-family: 'Cormorant Garamond', serif; font-weight: 600; font-size: 2.4rem; line-height: 1.2; color: var(--gold); margin: 0 0 0.2em; }
.stat p:not(.stat-num) { font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; margin: 0; }

/* Listings grid */
.listings-section { padding: 6rem 1.5rem; }
.listings-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 1180px;
  margin: 0 auto;
}
.listing-card {
  background: var(--panel);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: transform 0.3s, border-color 0.3s;
}
.listing-photo {
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, #f5f6f8, #e6e9ee);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.listing-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.listing-photo span:not(.sold-badge) {
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-soft);
}
.listing-photo--empty { background: var(--ink); }
.listing-photo--empty .sold-badge { background: #fff; color: #16191f; }
.listing-photo span.listing-photo-city {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.6rem;
  letter-spacing: 0.02em;
  text-transform: none;
  color: #fff;
  text-align: center;
  padding: 0 1.5rem;
}
.carousel-track {
  display: flex;
  width: 100%;
  height: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-track { transition: opacity 0.25s ease; }
.carousel-track.is-fading { opacity: 0; }
.listing-photo.carousel { background: var(--ink); }
.carousel-track img { flex: 0 0 100%; scroll-snap-align: start; }
.carousel-track:focus-visible { outline: 2px solid #fff; outline-offset: -4px; }
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.9);
  color: #16191f;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 0 3px;
  opacity: 0.85;
  transition: opacity 0.2s;
}
.carousel-btn:hover, .carousel-btn:focus-visible { opacity: 1; }
.carousel-prev { left: 10px; }
.carousel-next { right: 10px; }
.listing-photo span.carousel-count {
  position: absolute;
  right: 12px;
  bottom: 12px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: none;
  padding: 0.3em 0.7em;
}
.sold-badge {
  position: absolute;
  top: 14px; left: 14px;
  background: var(--gold);
  color: var(--on-gold);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 0.35em 0.8em;
}
.listing-body { padding: 1.6rem; }
.listing-price { font-size: 1.5rem; color: var(--gold); margin-bottom: 0.2em; }
.listing-address { font-size: 1rem; font-weight: 600; margin-bottom: 0.1em; color: var(--cream); }
.listing-city { font-size: 0.85rem; color: var(--text-soft); margin-bottom: 0.9em; }
.listing-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  color: var(--text-soft);
  border-top: 1px solid var(--line);
  padding-top: 0.9em;
  margin-top: 0.9em;
}

.view-all-wrap { text-align: center; margin-top: 3rem; }

/* Listing tabs (Active / Sold) */
.listing-tabs { display: flex; justify-content: center; gap: 1rem; margin-bottom: 3rem; }
.tab-btn {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--text-soft);
  padding: 0.8em 1.8em;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.25s;
}
.tab-btn:hover { border-color: var(--gold); color: var(--gold); }
.tab-btn.active { background: var(--gold); border-color: var(--gold); color: var(--on-gold); }
.tab-panel[hidden] { display: none; }
#idx-widget-container {
  max-width: 1180px;
  margin: 0 auto 5rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.idx-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.4rem 1.5rem;
  padding: 1.1rem 1.6rem;
  background: var(--ink);
  border-bottom: 3px solid var(--gold-soft);
}
.idx-header-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.6rem;
  font-weight: 600;
  color: #f8f5ee;
}
.idx-header-note {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-soft);
}
#idx-widget-container iframe {
  display: block;
  width: 100%;
  height: 1100px;
  max-height: 85vh;
  min-height: 600px;
  border: 0;
}

.empty-state {
  max-width: 500px;
  margin: 0 auto;
  text-align: center;
  border: 1px dashed var(--line);
  padding: 3rem 2rem;
}
.empty-state p { margin: 0; }
.empty-state a { color: var(--gold); text-decoration: underline; }

/* About page */
.about-grid {
  max-width: 1100px;
  margin: 0 auto;
  padding: 6rem 1.5rem;
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 3.5rem;
  align-items: start;
}
.about-photo {
  aspect-ratio: 3 / 4;
  background: linear-gradient(135deg, #f5f6f8, #e6e9ee);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-soft);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  overflow: hidden;
}
.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.about-photo { position: relative; overflow: visible; margin-bottom: 1.4rem; }
.about-photo::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1.1rem;
  height: 3px;
  background: var(--gold);
}
.credentials {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  display: grid;
  gap: 0.8rem;
}
.credentials li {
  padding-left: 1.3em;
  position: relative;
  font-size: 0.95rem;
  color: var(--cream);
}
.credentials li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--gold);
}
.quote-block {
  background: var(--panel);
  border-top: 3px solid var(--gold);
  padding: 2.5rem 3rem;
  margin: 0 auto;
  max-width: 800px;
  text-align: center;
}
.quote-block p {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  font-style: italic;
  color: var(--cream);
  margin: 0;
}
.quote-block span {
  display: block;
  margin-top: 1rem;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
}

/* CTA band */
.cta-band {
  text-align: center;
  padding: 6rem 1.5rem;
  background: var(--panel);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.cta-band h2 { font-size: clamp(1.9rem, 3.5vw, 2.6rem); line-height: 1.2; margin-bottom: 0.6em; }
.cta-band p { max-width: 480px; margin: 0 auto 2rem; }

/* Contact page */
.contact-grid {
  max-width: 1000px;
  margin: 0 auto;
  padding: 6rem 1.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}
.contact-form {
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 2.5rem;
}
.field { margin-bottom: 1.4rem; display: flex; flex-direction: column; }
.field label { font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); margin-bottom: 0.6em; }
.field input, .field textarea, .field select {
  font-family: inherit;
  font-size: 1rem;
  padding: 0.85em 1em;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--cream);
  resize: vertical;
}
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--gold); }
.about-text h2 { font-size: 2rem; line-height: 1.2; margin-bottom: 1rem; }
.contact-info h2 { font-size: 1.6rem; margin-bottom: 1em; }
.info-row .value a:hover { color: var(--gold); text-decoration: underline; }
.info-row { margin-bottom: 1.6rem; }
.info-row .label { font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); margin-bottom: 0.3em; display: block; }
.info-row .value { font-size: 1.05rem; color: var(--cream); }

/* Buyer guide page */
.buyer-content { max-width: 760px; margin: 0 auto; padding: 6rem 1.5rem 2rem; }
.buyer-content h2 { font-size: 1.7rem; margin: 2.6rem 0 1rem; }
.buyer-content h2:first-of-type { margin-top: 2rem; }
.buyer-content ul { margin: 0 0 1.5rem; padding: 0; list-style: none; }
.buyer-content ul li { padding-left: 1.4em; position: relative; margin-bottom: 0.9em; color: var(--text-soft); }
.buyer-content ul li::before { content: "→"; position: absolute; left: 0; color: var(--gold); }
.buyer-content ul li strong { color: var(--cream); }
.callout {
  background: var(--panel);
  border-left: 3px solid var(--gold);
  padding: 1.2rem 1.6rem;
  margin: 1.5rem 0 2rem;
  font-size: 0.95rem;
  color: var(--text-soft);
}
.callout strong { color: var(--gold); }
.buyer-next {
  text-align: center;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}

/* Accessibility widget */
.a11y-widget { position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 500; }
#a11y-toggle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--on-gold);
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: center;
}
#a11y-toggle:hover { background: var(--gold-hover); }
.a11y-panel {
  position: absolute;
  bottom: calc(100% + 0.8rem);
  right: 0;
  width: 250px;
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: 1.4rem;
}
.a11y-panel[hidden] { display: none; }
.a11y-panel-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  margin: 0 0 1rem;
  color: var(--cream);
}
.a11y-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  font-size: 0.82rem;
  color: var(--text-soft);
}
.a11y-btn-group { display: flex; gap: 0.3rem; }
.a11y-btn {
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--cream);
  width: 30px;
  height: 30px;
  font-size: 0.72rem;
  cursor: pointer;
}
.a11y-btn.active { border-color: var(--gold); color: var(--gold); }
.a11y-switch {
  width: 40px;
  height: 22px;
  border-radius: 11px;
  background: var(--bg);
  border: 1px solid var(--line);
  position: relative;
  cursor: pointer;
  padding: 0;
}
.a11y-switch::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--text-soft);
  transition: transform 0.2s, background 0.2s;
}
.a11y-switch[aria-pressed="true"] { border-color: var(--gold); }
.a11y-switch[aria-pressed="true"]::after { transform: translateX(18px); background: var(--gold); }
.a11y-reset {
  width: 100%;
  background: none;
  border: 1px solid var(--line);
  color: var(--text-soft);
  padding: 0.6em;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}
.a11y-reset:hover { border-color: var(--gold); color: var(--gold); }

html.a11y-text-large { font-size: 112.5%; }
html.a11y-text-xlarge { font-size: 125%; }

html.a11y-contrast {
  --bg: #000000;
  --panel: #0a0a0a;
  --panel-2: #141414;
  --line: rgba(255, 255, 255, 0.45);
  --cream: #ffffff;
  --text-soft: #ececec;
  --gold: #ffd54a;
  --gold-soft: #ffe38a;
  --gold-hover: #ffe38a;
  --on-gold: #000000;
}

html.a11y-underline-links a:not(.btn):not(.a11y-btn):not(.lang-option):not(.tab-btn):not(.lang-current) {
  text-decoration: underline;
}

@media (max-width: 640px) {
  .a11y-widget { bottom: 1rem; right: 1rem; }
  .a11y-panel { width: calc(100vw - 2rem); right: -0.5rem; }
}

/* Accessibility */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--gold);
  color: var(--on-gold);
  padding: 1em 1.5em;
  z-index: 1000;
  font-weight: 600;
  letter-spacing: 0.06em;
}
.skip-link:focus {
  left: 1rem;
  top: 1rem;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* Testimonials (home) */
.testimonials-section { padding: 6rem 1.5rem 0; }
.about-reviews { padding: 0 1.5rem 6rem; }
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 370px));
  justify-content: center;
  gap: 2rem;
  max-width: 1180px;
  margin: 0 auto;
}
.testimonial {
  margin: 0;
  background: var(--panel);
  border-top: 3px solid var(--gold);
  padding: 2rem;
}
.testimonial blockquote {
  margin: 0 0 1.2rem;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.25rem;
  font-style: italic;
  line-height: 1.5;
  color: var(--cream);
}
.testimonial figcaption { font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); }

/* "Get new listings" box on the listings page */
.listing-alert {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
  background: var(--panel);
  border: 1px solid var(--line);
  border-top: 3px solid var(--gold-soft);
  border-radius: 10px;
  padding: 3rem 2.5rem;
  box-shadow: 0 10px 30px rgba(16, 20, 28, 0.08);
}
.listing-alert .eyebrow { margin-bottom: 0.8rem; }
.listing-alert h2 { font-size: 1.8rem; line-height: 1.25; margin-bottom: 0.6em; }

/* Contact form extras */
.field .optional { text-transform: none; letter-spacing: 0; color: var(--text-soft); }
.form-status { margin: 1.2rem 0 0; font-size: 0.95rem; color: var(--cream); }
.form-status a { color: var(--gold); text-decoration: underline; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* Home value: homepage teaser */
.value-teaser { background: var(--ink); color: #fff; padding: 4rem 1.5rem; }
.value-teaser-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 3rem;
  align-items: center;
}
.value-teaser .eyebrow { color: rgba(255, 255, 255, 0.7); }
.value-teaser h2 { font-size: clamp(2rem, 3.5vw, 2.8rem); color: #fff; margin-bottom: 0.4em; }
.value-teaser p { color: rgba(255, 255, 255, 0.8); margin: 0; }
.value-teaser-form { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; }
.value-teaser-form .teaser-full { grid-column: 1 / -1; }
.value-teaser-form [hidden] { display: none; }
.teaser-status { margin: 0.4rem 0 0; color: #fff; font-size: 0.95rem; }
.teaser-status.is-error { color: #ffd7d7; }
.teaser-status a { text-decoration: underline; }
.value-teaser-form input {
  min-width: 0;
  padding: 1rem 1.1rem;
  font: inherit;
  font-size: 0.95rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: #fff;
  color: #16191f;
}
.value-teaser-form .btn { background: #fff; color: #16191f; white-space: nowrap; }
.value-teaser-form .btn:hover { background: #e6e8ec; }

/* Home value page */
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.value-info p { margin-bottom: 1.8rem; }
.value-steps { list-style: none; padding: 0; margin: 0 0 2.2rem; counter-reset: step; }
.value-steps li {
  counter-increment: step;
  position: relative;
  padding-left: 3rem;
  margin-bottom: 1.2rem;
  display: flex;
  flex-direction: column;
}
.value-steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--gold);
  color: var(--on-gold);
  font-size: 0.85rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}
.value-steps strong { color: var(--cream); font-weight: 600; }
.value-steps span { color: var(--text-soft); font-size: 0.9rem; }

/* Current listings + language badge */
.for-sale-section { padding-bottom: 0; }
.listings-grid.for-sale-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 380px)); justify-content: center; }
.for-sale-block { margin-bottom: 4rem; }
.sale-badge { background: #fff; color: #16191f; }
.listing-photo--empty .sale-badge { background: #fff; color: #16191f; }
.listing-cta { margin-top: 1.2rem; }
.lang-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin: 1.8rem 0 0;
  padding: 0.45rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 999px;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.92);
  text-shadow: none;
}
.lang-badge-langs { font-weight: 600; color: #fff; }

.value-address-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.4rem 0.8rem;
  margin: 0 0 1.6rem;
  padding: 1rem 1.2rem;
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--cream);
}
.value-address-summary[hidden] { display: none; }
.value-address-summary .label { font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-soft); width: 100%; }
.value-address-summary strong { font-weight: 600; font-size: 1.05rem; }
.link-btn { background: none; border: none; padding: 0; font: inherit; font-size: 0.85rem; color: var(--gold); text-decoration: underline; cursor: pointer; }

/* Footer social icons */
.footer-social { display: flex; justify-content: center; gap: 1.2rem; margin: 0 0 1.4rem; }
.footer-social a { width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--cream); transition: background 0.2s, color 0.2s; }
.footer-social a:hover { background: #fff; color: #000; }
.footer-social svg { width: 18px; height: 18px; }

/* Contact page map */
.office-map { max-width: 1000px; margin: 0 auto; padding: 0 1.5rem 6rem; }
.map-frame { border: 1px solid var(--line); aspect-ratio: 16 / 7; background: var(--panel); }
.map-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.map-link { text-align: center; margin-top: 1.2rem; }
.map-link a { text-decoration: underline; color: var(--cream); }

/* Top 1.5% badge */
.stats-badge { text-align: center; margin: -1.5rem 0 0; padding: 0 1.5rem 2.8rem; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--cream); }
.stats-badge-mark { margin-right: 0.3rem; }

/* Market updates signup */
.updates-signup { padding: 5rem 1.5rem; border-top: 1px solid var(--line); }
.updates-inner { max-width: 1000px; margin: 0 auto; display: grid; grid-template-columns: 1.2fr 1fr; gap: 3rem; align-items: center; }
.updates-inner h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); margin-bottom: 0.4em; }
.updates-inner p { margin: 0; }
.updates-form { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.updates-form input { flex: 1 1 220px; min-width: 0; padding: 1rem 1.1rem; font: inherit; font-size: 0.95rem; border: 1px solid var(--line); background: #fff; color: #16191f; }
.updates-form [hidden] { display: none; }
.updates-status { flex-basis: 100%; margin: 0.4rem 0 0; color: var(--cream); }
.updates-status.is-error { color: #a32d2d; }
@media (max-width: 760px) {
  .updates-inner { grid-template-columns: 1fr; gap: 1.6rem; }
  .map-frame { aspect-ratio: 4 / 3; }
}

/* Blog */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 360px)); justify-content: center; gap: 2rem; max-width: 1180px; margin: 0 auto; }
.blog-card { display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line); transition: transform 0.25s, box-shadow 0.25s; }
.blog-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.blog-card-photo { aspect-ratio: 16 / 10; overflow: hidden; background: var(--ink); }
.blog-card-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.blog-card-body { padding: 1.6rem 1.6rem 1.8rem; display: flex; flex-direction: column; flex: 1; }
.blog-card-date { font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-soft); margin: 0 0 0.6rem; }
.blog-card h3 { font-size: 1.45rem; line-height: 1.25; margin-bottom: 0.6rem; color: var(--cream); }
.blog-card p { font-size: 0.92rem; margin-bottom: 1rem; }
.blog-card-more { margin-top: auto; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--cream); }
.home-blog { padding-top: 6rem; }
.post-banner .eyebrow a { color: inherit; }
.post-banner h1 { max-width: 900px; margin: 0 auto; }
.post-meta { margin: 1rem 0 0; font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; }
.post-body { max-width: 720px; margin: 0 auto; padding: 4.5rem 1.5rem 4rem; }
.post-body p, .post-body li { font-size: 1.08rem; line-height: 1.85; }
.post-body h2 { font-size: 1.8rem; margin: 2.4rem 0 0.8rem; }
.post-body ul { padding-left: 1.2rem; margin: 0 0 1.4rem; }
.post-body li { color: var(--text-soft); margin-bottom: 0.6rem; }
.post-body strong { color: var(--cream); }
.more-posts { border-top: 1px solid var(--line); }

/* Reviews */
.testimonial-stars { color: var(--gold); letter-spacing: 0.15em; font-size: 1rem; margin-bottom: 0.9rem; }
.testimonial-source { display: block; margin-top: 0.4rem; color: var(--text-soft); letter-spacing: 0.08em; }
.reviews-more { text-align: center; margin-top: 2.5rem; }

/* Reviews page */
.reviews-page { max-width: 1180px; margin: 0 auto; padding: 5rem 1.5rem 6rem; }
.reviews-summary { text-align: center; margin-bottom: 3.5rem; }
.reviews-score { font-family: 'Cormorant Garamond', serif; font-size: 4rem; line-height: 1; color: var(--cream); }
.reviews-summary-stars { font-size: 1.4rem; margin: 0.6rem 0 0.4rem; }
.reviews-summary p { margin-bottom: 1.6rem; }
.reviews-links { display: flex; gap: 0.8rem; justify-content: center; flex-wrap: wrap; }
.reviews-all { columns: 3 320px; column-gap: 2rem; }
.reviews-all .testimonial { break-inside: avoid; margin-bottom: 2rem; }
.reviews-all .testimonial blockquote { font-size: 1.1rem; }

/* Call / Text bar on phones */
.mobile-cta { display: none; }
@media (max-width: 640px) {
  .mobile-cta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 400;
    background: #000;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding-bottom: env(safe-area-inset-bottom);
  }
  .mobile-cta a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 56px;
    color: #fff;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
  }
  .mobile-cta a + a { border-left: 1px solid rgba(255, 255, 255, 0.15); }
  .mobile-cta svg { width: 18px; height: 18px; }
  body.has-mobile-cta { padding-bottom: calc(56px + env(safe-area-inset-bottom)); }
  body.has-mobile-cta .a11y-widget { bottom: calc(56px + 1rem + env(safe-area-inset-bottom)); }
  .value-teaser-inner { grid-template-columns: 1fr; gap: 1.8rem; }
  .value-teaser-form { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
}
@media (min-width: 641px) and (max-width: 1060px) {
  .value-teaser-inner { grid-template-columns: 1fr; gap: 2rem; }
}

/* Community pages */
.community-content { max-width: 1180px; margin: 0 auto; padding: 5rem 1.5rem 2rem; }
.community-lead { font-size: 1.1rem; max-width: 760px; color: var(--cream); }
.community-content > p { max-width: 760px; }
.county-links { display: flex; flex-wrap: wrap; gap: 1rem; margin: 2rem 0 1rem; }
.community-group { font-size: 1.9rem; margin: 3rem 0 1.5rem; }
.community-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.community-card {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 2rem 1.8rem;
  transition: border-color 0.25s, transform 0.25s;
}
.community-card:hover { border-color: var(--gold); transform: translateY(-3px); }
.community-region { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); }
.community-name { font-family: 'Cormorant Garamond', serif; font-size: 1.7rem; font-weight: 600; color: var(--cream); }
.community-more { font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-soft); margin-top: 0.6rem; }
.community-back a { color: var(--gold); text-decoration: underline; }
.community-search {
  max-width: 760px;
  margin: 2rem auto 6rem;
  padding: 3rem 2rem;
  text-align: center;
  background: var(--panel);
  border: 1px solid var(--line);
}
.community-search h2 { font-size: 1.9rem; line-height: 1.2; margin-bottom: 0.6em; }

/* IDX Broker wrapper: keeps IDX pages in the site's fonts and colors */
.idx-wrapper { max-width: 1280px; margin: 0 auto; padding: 3rem 1.5rem 5rem; min-height: 60vh; }
.idx-wrapper a { color: var(--gold); }
.idx-wrapper button, .idx-wrapper input[type="submit"] { font-family: inherit; }

/* Senior downsizing page */
.downsize-content { font-size: 1.06rem; }
.downsize-content > p, .downsize-content li, .downsize-content .callout { line-height: 1.8; }
.steps { list-style: none; counter-reset: step; margin: 0 0 2rem; padding: 0; }
.steps li {
  counter-increment: step;
  position: relative;
  padding: 0 0 1.6rem 3.6rem;
  margin: 0;
  border-left: 1px solid var(--line);
  margin-left: 1.2rem;
}
.steps li:last-child { border-left-color: transparent; padding-bottom: 0.4rem; }
.steps li::before {
  content: counter(step);
  position: absolute;
  left: -1.2rem;
  top: -0.1rem;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  background: var(--gold);
  color: var(--on-gold);
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}
.steps h3 { font-size: 1.35rem; margin: 0.2rem 0 0.4rem; }
.steps p { margin: 0; }
.buyer-content ul.checklist li::before { content: "☐"; font-size: 1.1em; top: -0.05em; }
.fine-print { font-size: 0.88rem; font-style: italic; }
.faq-list { display: grid; gap: 0.8rem; margin-bottom: 2rem; }
.faq { background: var(--panel); border: 1px solid var(--line); padding: 1.1rem 1.4rem; }
.faq summary { cursor: pointer; font-weight: 600; color: var(--cream); }
.faq summary:hover { color: var(--gold); }
.faq p { margin: 0.8rem 0 0; }

/* Footer */
.footer {
  --bg: #000000;
  --panel: #141518;
  --panel-2: #22242a;
  --cream: #f4f5f7;
  --text-soft: #a9adb5;
  --gold: #ffffff;
  --line: rgba(244, 245, 247, 0.14);
  color: var(--cream);
  background: #000000;
  padding: 3.5rem 1.5rem 2.5rem;
  text-align: center;
  border-top: 1px solid var(--line);
}
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem 2rem; margin: 1.5rem 0; font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; }
.footer-links a { white-space: nowrap; }
.footer-links a:hover { color: var(--gold); }
.footer small { color: var(--text-soft); font-size: 0.78rem; display: block; }
.footer .footer-broker { color: var(--cream); letter-spacing: 0.04em; margin-top: 0.6rem; }
.footer .footer-disclaimer { font-size: 0.7rem; margin-top: 0.2rem; }
.footer-contact { margin: 0 0 1.2rem; font-size: 0.9rem; color: var(--cream); }
.footer-contact a:hover { color: var(--gold); }

/* Responsive */
@media (max-width: 1400px) {
  .nav-links { gap: 1.3rem; font-size: 0.74rem; }
  .lang-switch { margin-left: 1rem; padding-left: 1rem; }
  .nav-motto { white-space: normal; max-width: 17rem; line-height: 1.5; font-size: 0.6rem; letter-spacing: 0.14em; }
}
@media (max-width: 1200px) {
  .nav-motto { white-space: nowrap; max-width: none; font-size: 0.68rem; letter-spacing: 0.18em; }
  .nav-links {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    gap: 0;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    visibility: hidden;
    transition: max-height 0.3s, visibility 0s 0.3s;
  }
  .nav-links.open {
    max-height: 80vh;
    overflow-y: auto;
    padding: 1rem 0;
    visibility: visible;
    transition: max-height 0.3s;
  }
  .nav-links a { padding: 0.9em 1.5rem; width: 100%; display: block; }
  .nav-toggle { display: block; }
  .lang-switch { margin: 0.5rem 0 0; padding: 1em 0 0; border-left: none; border-top: 1px solid var(--line); display: flex; justify-content: center; }
  .lang-menu { position: static; margin-top: 0.5rem; border: none; box-shadow: none; background: transparent; }
}
@media (max-width: 1060px) {
  .listings-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; }
  .about-photo { max-width: 260px; margin: 0 auto; }
  .contact-grid { grid-template-columns: 1fr; }
  .community-grid { grid-template-columns: repeat(2, 1fr); }

}
@media (max-width: 640px) {
  .nav-motto { font-size: 0.55rem; letter-spacing: 0.1em; line-height: 1.5; max-width: 14rem; white-space: normal; }
  .hero-name span { display: block; font-size: 0.8em; letter-spacing: 0.2em; margin-top: 0.2rem; }
  .listings-grid { grid-template-columns: 1fr; }
  .community-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-links { flex-wrap: wrap; gap: 1rem 1.5rem; }
}

/* Community photos */
.community-card { overflow: hidden; }
.community-thumb {
  display: block;
  width: calc(100% + 3.6rem);
  max-width: none;
  margin: -2rem -1.8rem 1.2rem;
  aspect-ratio: 3 / 2;
  height: auto;
  object-fit: cover;
  transition: transform 0.5s;
}
.community-card:hover .community-thumb { transform: scale(1.04); }
.home-communities { padding: 6rem 1.5rem; max-width: 1280px; margin: 0 auto; }
.home-community-grid { grid-template-columns: repeat(4, 1fr); }
.footer-credits { margin-top: 0.4rem; }
.footer-credits a { text-decoration: underline; }
.credits-content li { overflow-wrap: anywhere; }
.credits-content a { color: var(--gold); text-decoration: underline; }
@media (max-width: 1060px) { .home-community-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) {
  .home-community-grid { grid-template-columns: 1fr; }
}
.community-thumb-blank {
  background: linear-gradient(135deg, var(--panel-2), var(--panel));
}
.community-card:hover .community-thumb-blank { transform: none; }
@media (max-width: 640px) {
  .banner { padding: 5rem 1.25rem 3.5rem; }
  .banner .banner-credit { left: 1rem; text-align: right; }
}


/* How I Price a Home */
.method-section { padding: 6rem 1.5rem 5rem; max-width: 1180px; margin: 0 auto; }
.method-steps { list-style: none; padding: 0; margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.method-steps li { border-top: 3px solid var(--ink); padding-top: 1.4rem; }
.method-num { display: block; font-family: 'Cormorant Garamond', serif; font-size: 2.6rem; line-height: 1; color: var(--ink); margin-bottom: 0.8rem; }
.method-steps h3 { font-size: 1.5rem; margin-bottom: 0.5rem; color: var(--cream); }
.method-steps p { margin: 0; }

/* Moving anywhere (Sotheby's network) */
.network-section { background: var(--ink); color: #fff; padding: 5rem 1.5rem; text-align: center; }
.network-inner { max-width: 720px; margin: 0 auto; }
.network-section .eyebrow { color: rgba(255,255,255,.7); }
.network-section h2 { color: #fff; font-size: clamp(1.9rem, 3.5vw, 2.6rem); margin-bottom: 0.6em; }
.network-section p { color: rgba(255,255,255,.82); }
.network-section .btn { margin-top: 0.8rem; background: #fff; color: #16191f; border-color: #fff; }
.network-section .btn:hover { background: #e6e8ec; }

.hero-lang { display: block; margin-top: 0.5em; }

@media (max-width: 760px) {
  .method-steps { grid-template-columns: 1fr; }
}
.hero-sep { display: none; }
.hero-line { display: block; margin-top: 0.4em; }

/* Awards & Honors */
.awards-section { padding: 6rem 1.5rem; max-width: 1240px; margin: 0 auto; }
.awards-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; margin-top: 1rem; }
.award { border: 1px solid var(--line); background: var(--panel); padding: 2.4rem 1.6rem 2rem; text-align: center; }
.award-big { font-family: 'Cormorant Garamond', serif; font-size: 3.2rem; line-height: 1; color: var(--ink); margin: 0 0 1rem; font-weight: 600; }
.award h3 { font-size: 0.95rem; font-family: 'Montserrat', sans-serif; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--cream); margin: 0 0 0.7rem; padding-top: 1rem; border-top: 2px solid var(--ink); display: inline-block; }
.award p:last-child { margin: 0; font-size: 0.92rem; line-height: 1.6; }
.awards-note { text-align: center; max-width: 640px; margin: 2rem auto 0; font-size: 0.92rem; }
@media (max-width: 1060px) { .awards-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .awards-grid { grid-template-columns: 1fr; } }
