:root {
  --bg: #faf8f5;
  --bg-alt: #ffffff;
  --bg-dark: #181c20;
  --bg-dark-elevated: #22282e;
  --text: #1f2428;
  --text-muted: #5c646d;
  --text-light: #e8ecf0;
  --accent: #9f7c46;
  --accent-hover: #876736;
  --accent-soft: #f3ece0;
  --border: #e6e0d6;
  --border-dark: #313840;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 12px 32px rgba(24, 28, 32, 0.08);
  --shadow-lg: 0 24px 56px rgba(24, 28, 32, 0.14);
  --font-serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.75rem;
  color: var(--text);
}

p {
  margin: 0 0 1rem;
}

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

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.85em;
  background: rgba(159, 124, 70, 0.12);
  padding: 0.15em 0.45em;
  border-radius: 4px;
}

.container {
  width: min(1160px, 92%);
  margin: 0 auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 248, 245, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  gap: 1rem;
}

.brand {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-family: var(--font-serif);
  font-size: 1.65rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.05;
}

.brand-sub {
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-top: 2px;
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav-desktop a:not(.btn) {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.nav-desktop a:not(.btn):hover {
  color: var(--text);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
}

.nav-mobile {
  display: none;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1rem 4% 1.5rem;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
}

.nav-mobile.open {
  display: flex;
}

.nav-mobile a:not(.btn) {
  padding: 0.5rem 0;
  font-weight: 500;
  border-bottom: 1px solid var(--border);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.55rem;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.2s ease;
}

.btn-sm {
  padding: 0.6rem 1.15rem;
  font-size: 0.86rem;
}

.btn-primary {
  background: var(--bg-dark);
  color: #ffffff;
}

.btn-primary:hover {
  background: #2b323a;
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  border-color: var(--bg-dark);
  color: var(--bg-dark);
}

.btn-outline:hover {
  background: var(--bg-dark);
  color: #ffffff;
}

.btn-gold {
  background: var(--accent);
  color: #ffffff;
}

.btn-gold:hover {
  background: var(--accent-hover);
}

.btn-full {
  width: 100%;
}

/* Eyebrow & Section Headers */
.eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 0.65rem;
}

.eyebrow-gold {
  color: #d6b278;
}

.section {
  padding: 5.5rem 0;
}

.section-light {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-dark {
  background: var(--bg-dark);
  color: var(--text-light);
}

.section-dark h2,
.section-dark h3 {
  color: #ffffff;
}

.section-header {
  max-width: 640px;
  margin-bottom: 3rem;
}

.section-header.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-header h2 {
  font-size: clamp(2rem, 3.6vw, 2.85rem);
}

.section-sub {
  color: var(--text-muted);
  font-size: 1.02rem;
}

/* Hero */
.hero {
  padding: 4.5rem 0 5.5rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3.5rem;
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.6rem, 5vw, 4rem);
  letter-spacing: -0.01em;
  margin-bottom: 1.15rem;
}

.hero-lead {
  font-size: 1.08rem;
  color: var(--text-muted);
  max-width: 540px;
  margin-bottom: 1.85rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 2.5rem;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.metric-value {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text);
}

.metric-label {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Photo Placeholders */
.photo-frame {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  background: #ece5da;
}

.hero-photo {
  aspect-ratio: 4 / 5;
}

.portrait-photo {
  aspect-ratio: 4 / 5;
  max-width: 440px;
}

.photo-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  background:
    radial-gradient(circle at 20% 20%, rgba(159, 124, 70, 0.16), transparent 55%),
    linear-gradient(145deg, #f3ede4 0%, #e4d9c9 100%);
  color: #5b4d3a;
}

.photo-placeholder.portrait {
  background:
    radial-gradient(circle at 75% 20%, rgba(159, 124, 70, 0.18), transparent 55%),
    linear-gradient(160deg, #ede6dc 0%, #dcd0be 100%);
}

.placeholder-icon {
  width: 56px;
  height: 56px;
  margin-bottom: 0.9rem;
  opacity: 0.78;
}

.placeholder-title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.placeholder-hint {
  font-size: 0.82rem;
  color: #6f6250;
}

.hero-badge {
  position: absolute;
  left: 1.25rem;
  right: 1.25rem;
  bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 1.1rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow);
}

.hero-badge strong {
  display: block;
  font-size: 0.95rem;
  line-height: 1.2;
}

.hero-badge span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.badge-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #2f7d4d;
  flex-shrink: 0;
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 3.5rem;
  align-items: center;
}

.about-content h2 {
  font-size: clamp(2rem, 3.4vw, 2.75rem);
  margin-bottom: 1.1rem;
}

.about-content p {
  color: var(--text-muted);
}

.about-highlights {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 2rem;
  display: grid;
  gap: 0.75rem;
}

.about-highlights li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.96rem;
}

.check-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 2px;
}

/* Services */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.service-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.6rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.service-num {
  font-family: var(--font-serif);
  font-size: 1.65rem;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.service-card h3 {
  font-size: 1.45rem;
  margin-bottom: 0.65rem;
}

.service-card p {
  color: var(--text-muted);
  font-size: 0.93rem;
  margin: 0;
}

/* Listings */
.listings-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.listings-top h2 {
  font-size: clamp(2rem, 3.4vw, 2.75rem);
  margin-bottom: 0.35rem;
}

.listings-top .section-sub {
  margin: 0;
}

.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.filter-btn {
  padding: 0.55rem 1.05rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text-muted);
  font-size: 0.86rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-btn:hover {
  border-color: var(--accent);
  color: var(--text);
}

.filter-btn.active {
  background: var(--bg-dark);
  border-color: var(--bg-dark);
  color: #ffffff;
}

.listings-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.listing-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
  cursor: pointer;
}

.listing-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.listing-media {
  position: relative;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, #ebe3d7 0%, #d8cbb8 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #5b4d3a;
  padding: 1rem;
  text-align: center;
  overflow: hidden;
}

.listing-media.has-photo {
  padding: 0;
}

.listing-media img,
.photo-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.photo-placeholder.has-photo {
  padding: 0;
}

.photo-count-pill {
  position: absolute;
  bottom: 0.75rem;
  right: 0.75rem;
  background: rgba(24, 28, 32, 0.78);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.22rem 0.6rem;
  border-radius: 999px;
  z-index: 2;
}

/* Bold SOLD Stamp Overlay */
.sold-stamp {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(24, 28, 32, 0.22);
  pointer-events: none;
  z-index: 3;
}

.sold-stamp span {
  border: 4px solid #c81e1e;
  color: #c81e1e;
  background: rgba(255, 255, 255, 0.92);
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 1.55rem;
  letter-spacing: 0.24em;
  padding: 0.3rem 1.15rem 0.3rem 1.35rem;
  border-radius: 6px;
  transform: rotate(-15deg);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.24);
  text-transform: uppercase;
}

.modal-media {
  position: relative;
  aspect-ratio: 16 / 9;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #ebe3d7 0%, #d8cbb8 100%);
  color: #5b4d3a;
  padding: 1.5rem;
  text-align: center;
  overflow: hidden;
}

.modal-media.has-photo {
  padding: 0;
  background: #14171a;
}

.modal-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.9);
  color: var(--text);
  font-size: 1.25rem;
  cursor: pointer;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-nav.prev { left: 0.75rem; }
.gallery-nav.next { right: 0.75rem; }

.modal-thumbs {
  display: flex;
  gap: 0.45rem;
  padding: 0.6rem 1rem;
  background: #f4f0ea;
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
}

.modal-thumb {
  width: 64px;
  height: 44px;
  border-radius: 6px;
  overflow: hidden;
  border: 2px solid transparent;
  padding: 0;
  cursor: pointer;
  flex-shrink: 0;
  background: #ddd;
}

.modal-thumb.active {
  border-color: var(--accent);
}

.modal-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.listing-media.tone-2 {
  background: linear-gradient(135deg, #e5e8eb 0%, #cfd6dd 100%);
  color: #3d4854;
}

.listing-media.tone-3 {
  background: linear-gradient(135deg, #e7ece7 0%, #cdd8cf 100%);
  color: #3a4f3f;
}

.status-pill {
  display: inline-block;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--bg-dark);
  color: #ffffff;
}

.listing-media .status-pill {
  position: absolute;
  top: 0.9rem;
  left: 0.9rem;
}

.status-pill.lease {
  background: var(--accent);
}

.status-pill.sold {
  background: #5c646d;
}

.listing-body {
  padding: 1.35rem 1.4rem 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.listing-price {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.25rem;
}

.listing-title {
  font-size: 1.15rem;
  margin-bottom: 0.25rem;
}

.listing-address {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.listing-specs {
  margin-top: auto;
  padding-top: 0.9rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  font-size: 0.84rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Communities */
.communities-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.35rem;
}

.community-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.65rem;
}

.community-card h3 {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}

.community-card p {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin: 0;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 3.5rem;
  align-items: start;
}

.contact-info h2 {
  font-size: clamp(2rem, 3.6vw, 2.85rem);
}

.contact-lead {
  color: #b7c0c9;
  margin-bottom: 2rem;
}

.contact-details {
  display: grid;
  gap: 1.1rem;
  border-top: 1px solid var(--border-dark);
  padding-top: 1.5rem;
}

.contact-item {
  display: flex;
  flex-direction: column;
}

.contact-label {
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #d6b278;
  font-weight: 600;
}

.contact-value {
  font-size: 1rem;
  color: #ffffff;
}

.contact-value a:hover {
  text-decoration: underline;
}

.edit-note {
  color: #93a0ad;
  font-size: 0.8rem;
}

.contact-form-wrap {
  background: var(--bg-dark-elevated);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius);
  padding: 2.2rem;
}

.contact-form h3 {
  font-size: 1.65rem;
  margin-bottom: 1.25rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  font-size: 0.84rem;
  color: #cfd6dd;
  margin-bottom: 0.4rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.78rem 0.95rem;
  border-radius: var(--radius-sm);
  border: 1px solid #3c454f;
  background: #181c20;
  color: #ffffff;
  font-family: inherit;
  font-size: 0.94rem;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: 2px solid var(--accent);
  border-color: transparent;
}

.form-status {
  margin-top: 0.9rem;
  margin-bottom: 0;
  font-size: 0.9rem;
  min-height: 1.4em;
}

.form-status.success {
  color: #84d9a5;
}

.form-status.error {
  color: #f39c9c;
}

/* Footer */
.site-footer {
  background: #121518;
  color: #a4aeb8;
  padding: 3rem 0 2.25rem;
  border-top: 1px solid var(--border-dark);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid var(--border-dark);
}

.footer-brand .brand-name {
  color: #ffffff;
}

.footer-note {
  font-size: 0.86rem;
  margin: 0.5rem 0 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.35rem;
  font-size: 0.9rem;
}

.footer-links a:hover,
.trec-links a:hover {
  color: #ffffff;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  padding-top: 1.35rem;
  font-size: 0.8rem;
}

.footer-legal p {
  margin: 0;
}

.trec-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(18, 21, 24, 0.72);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  z-index: 100;
}

.modal-backdrop.open {
  display: flex;
}

.modal-card {
  position: relative;
  width: min(640px, 100%);
  background: var(--bg-alt);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.modal-close {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  z-index: 2;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.92);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

.modal-media {
  aspect-ratio: 16 / 9;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #ebe3d7 0%, #d8cbb8 100%);
  color: #5b4d3a;
  padding: 1.5rem;
  text-align: center;
}

.modal-body {
  padding: 1.75rem;
}

.modal-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.65rem;
}

.modal-price {
  font-family: var(--font-serif);
  font-size: 1.85rem;
  font-weight: 700;
}

.modal-address {
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.modal-specs {
  display: flex;
  gap: 1.5rem;
  padding: 0.85rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 1rem;
  font-size: 0.92rem;
  font-weight: 500;
}

.modal-desc {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

/* Responsive */
@media (max-width: 980px) {
  .hero-grid,
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .listings-grid,
  .communities-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-photo,
  .portrait-photo {
    max-width: 520px;
    margin: 0 auto;
  }
}

@media (max-width: 680px) {
  .nav-desktop {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .services-grid,
  .listings-grid,
  .communities-grid,
  .form-row {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 2.75rem 0 3.75rem;
  }

  .section {
    padding: 3.75rem 0;
  }

  .hero-metrics {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }
}
