:root {
  --bg: #faf8f5;
  --ink: #1a1a1a;
  --muted: #6b6b6b;
  --line: #e4ddd2;
  --accent: #8b6f4e;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --max: 1400px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  font-weight: 300;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 248, 245, 0.92);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 18px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}
.nav-brand {
  font-family: var(--serif);
  font-size: 22px;
  letter-spacing: 0.02em;
}
.nav-links {
  display: flex;
  gap: 28px;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.nav-links a { color: var(--muted); transition: color 0.2s; }
.nav-links a:hover { color: var(--ink); }

/* Hero — full-bleed across any viewport */
.hero {
  position: relative;
  height: 88vh;
  min-height: 600px;
  overflow: hidden;
  max-width: none;
  width: 100%;
  margin: 0;
  padding: 0;
}
.hero-image {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(180deg, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.55) 100%),
    url('https://images.unsplash.com/photo-1613490493576-7fde63acd811?w=2400');
  background-size: cover;
  background-position: center;
}
.hero-overlay {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 64px 32px;
  color: #fff;
  max-width: var(--max);
  margin: 0 auto;
}
.hero-eyebrow {
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 16px;
  opacity: 0.9;
}
.hero-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(40px, 7vw, 88px);
  line-height: 1;
  letter-spacing: -0.01em;
  margin-bottom: 16px;
}
.hero-sub {
  font-size: 17px;
  letter-spacing: 0.04em;
  margin-bottom: 32px;
  opacity: 0.95;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 16px 32px;
  font-size: 13px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border: 1px solid currentColor;
  transition: all 0.25s;
  cursor: pointer;
}
.btn-light { color: #fff; }
.btn-light:hover { background: #fff; color: var(--ink); }
.btn-dark { color: var(--bg); background: var(--ink); border-color: var(--ink); }
.btn-dark:hover { background: var(--accent); border-color: var(--accent); }

/* Quick stats */
.quick-stats {
  max-width: var(--max);
  margin: 0 auto;
  padding: 56px 32px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
  border-bottom: 1px solid var(--line);
}
.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
}
.stat-num {
  font-family: var(--serif);
  font-size: 44px;
  font-weight: 400;
  color: var(--ink);
}
.stat-label {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Sections */
section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 96px 32px;
}
.section-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(32px, 4.5vw, 52px);
  margin-bottom: 48px;
  text-align: center;
}

/* Intro */
.intro-body {
  max-width: 720px;
  margin: 0 auto;
  font-size: 19px;
  line-height: 1.8;
  color: #333;
  text-align: center;
}

/* Gallery — tabbed sections with hero + thumbnail strip */
.gallery-intro {
  text-align: center;
  color: var(--muted);
  font-size: 17px;
  margin-top: -32px;
  margin-bottom: 48px;
  font-family: var(--serif);
  font-style: italic;
}

/* Tabs — subtle, modern, underline-on-active */
.tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 40px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 0;
}
.tab {
  padding: 16px 22px;
  background: none;
  border: 0;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
  white-space: nowrap;
}
.tab:hover { color: var(--ink); }
.tab[aria-selected="true"] {
  color: var(--ink);
  border-bottom-color: var(--accent);
}
.tab:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Viewer: hero photo + thumbnail strip below */
.viewer-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  background: #111;
  overflow: hidden;
  border-radius: 4px;
}
.viewer-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.25s ease;
}
.viewer-img.swapping { opacity: 0; }
.viewer-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(8px);
  border: 0;
  color: var(--ink);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.15s;
  opacity: 0;
}
.viewer-stage:hover .viewer-nav { opacity: 1; }
.viewer-nav:hover { background: #fff; }
.viewer-nav:active { transform: translateY(-50%) scale(0.92); }
.viewer-prev { left: 24px; }
.viewer-next { right: 24px; }
.viewer-tools {
  position: absolute;
  top: 20px;
  right: 24px;
  display: flex;
  gap: 8px;
  opacity: 0;
  transition: opacity 0.2s;
}
.viewer-stage:hover .viewer-tools { opacity: 1; }
.viewer-tool {
  height: 44px;
  padding: 0 16px;
  border-radius: 22px;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.18);
  color: #fff;
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
.viewer-tool:hover { background: rgba(0,0,0,0.8); }
.viewer-tool:active { transform: scale(0.96); }
.viewer-tool[id="viewerExpand"] {
  width: 44px;
  padding: 0;
  justify-content: center;
  font-size: 18px;
}
.look-around .tool-icon {
  font-size: 16px;
  display: inline-block;
  animation: spin360 6s linear infinite;
}
@keyframes spin360 { to { transform: rotate(360deg); } }
@media (max-width: 700px) {
  .viewer-tools { opacity: 1; top: 12px; right: 12px; gap: 6px; }
  .viewer-tool { height: 38px; padding: 0 12px; font-size: 12px; }
  .look-around .tool-label { display: none; }
  .look-around { width: 38px; padding: 0; justify-content: center; }
}

/* 360° tour modal */
.tour-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: #000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 24px 24px;
  animation: fadeIn 0.3s ease;
}
.tour-modal[hidden] { display: none; }
.tour-modal-frame {
  width: 100%;
  height: 100%;
  max-width: 1600px;
  position: relative;
}
.tour-modal-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 4px;
  background: #111;
}
.tour-modal-close {
  position: absolute;
  top: 20px;
  right: 28px;
  z-index: 1;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  border: 1px solid rgba(255,255,255,0.25);
  cursor: pointer;
  transition: background 0.2s;
}
.tour-modal-close:hover { background: rgba(255,255,255,0.25); }
.tour-modal-hint {
  margin-top: 16px;
  color: rgba(255,255,255,0.55);
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.viewer-meta {
  position: absolute;
  left: 28px;
  bottom: 24px;
  color: #fff;
  text-shadow: 0 2px 12px rgba(0,0,0,0.6);
  display: flex;
  align-items: baseline;
  gap: 16px;
  pointer-events: none;
}
.viewer-section {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 400;
}
.viewer-count {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.85;
}

/* Thumbnail strip */
.viewer-thumbs {
  display: flex;
  gap: 6px;
  margin-top: 12px;
  overflow-x: auto;
  padding: 4px 2px 12px;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}
.viewer-thumbs::-webkit-scrollbar { height: 6px; }
.viewer-thumbs::-webkit-scrollbar-thumb { background: var(--line); border-radius: 3px; }
.thumb {
  flex: 0 0 auto;
  width: 92px;
  height: 64px;
  padding: 0;
  border: 2px solid transparent;
  background: #eee;
  cursor: pointer;
  overflow: hidden;
  border-radius: 2px;
  transition: border-color 0.2s, opacity 0.2s;
  opacity: 0.6;
}
.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.thumb:hover { opacity: 1; }
.thumb[aria-current="true"] {
  opacity: 1;
  border-color: var(--accent);
}

@media (max-width: 700px) {
  .tabs { gap: 0; }
  .tab { padding: 14px 14px; font-size: 11px; letter-spacing: 0.12em; }
  .viewer-nav { width: 44px; height: 44px; font-size: 22px; opacity: 1; background: rgba(255,255,255,0.7); }
  .viewer-prev { left: 12px; }
  .viewer-next { right: 12px; }
  .viewer-expand { opacity: 1; background: rgba(0,0,0,0.5); }
  .viewer-meta { left: 16px; bottom: 14px; gap: 10px; }
  .viewer-section { font-size: 18px; }
  .thumb { width: 72px; height: 50px; }
}

/* Photo lightbox — large image with prev/next/close + counter */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 150;
  background: rgba(0, 0, 0, 0.96);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 80px 60px;
  animation: fadeIn 0.2s ease;
}
.lightbox[hidden] { display: none; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.lightbox-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  user-select: none;
  box-shadow: 0 20px 80px rgba(0,0,0,0.5);
}
.lightbox-btn {
  position: absolute;
  background: rgba(255,255,255,0.08);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.18);
  font-size: 32px;
  line-height: 1;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--sans);
}
.lightbox-btn:hover { background: rgba(255,255,255,0.2); }
.lightbox-btn:active { transform: scale(0.95); }
.lightbox-close { top: 24px; right: 28px; font-size: 28px; }
.lightbox-prev { left: 24px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 24px; top: 50%; transform: translateY(-50%); }
.lightbox-prev:active { transform: translateY(-50%) scale(0.95); }
.lightbox-next:active { transform: translateY(-50%) scale(0.95); }
.lightbox-counter {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.7);
  font-size: 13px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
@media (max-width: 700px) {
  .lightbox { padding: 60px 16px 50px; }
  .lightbox-prev, .lightbox-next { width: 44px; height: 44px; font-size: 26px; }
  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
}


/* Features */
.features { background: #fff; max-width: none; }
.features .section-title,
.features .features-grid { max-width: var(--max); margin-left: auto; margin-right: auto; }
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
}
.feature-col h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 24px;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--accent);
  color: var(--accent);
}
.feature-col ul {
  list-style: none;
}
.feature-col li {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
  color: #333;
}

/* Neighborhood */
.neighborhood-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.neighborhood-copy p {
  font-size: 17px;
  line-height: 1.8;
  color: #333;
  margin-bottom: 24px;
}
.amenity-list {
  list-style: none;
}
.amenity-list li {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
  letter-spacing: 0.02em;
}
.map-wrap {
  aspect-ratio: 4 / 3;
  border-radius: 4px;
  overflow: hidden;
}
.map-wrap iframe {
  width: 100%; height: 100%; border: 0;
}

/* Contact */
.contact { background: var(--ink); color: var(--bg); max-width: none; }
.contact-grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.realtor-card {
  text-align: left;
}
.realtor-photo {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  margin-bottom: 24px;
  background: linear-gradient(135deg, var(--accent) 0%, #5d4a35 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(255,255,255,0.15);
}
.realtor-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.realtor-photo img + .realtor-initials { display: none; }
.realtor-initials {
  font-family: var(--serif);
  font-size: 48px;
  font-weight: 400;
  color: #fff;
  letter-spacing: 0.04em;
}
.realtor-name {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 32px;
  margin-bottom: 4px;
}
.realtor-title {
  color: var(--accent);
  font-size: 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.realtor-bio {
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 24px;
  opacity: 0.85;
}
.realtor-contact {
  list-style: none;
}
.realtor-contact li {
  padding: 8px 0;
  font-size: 15px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.realtor-contact a:hover { color: var(--accent); }

/* Form */
.lead-form {
  background: rgba(255,255,255,0.04);
  padding: 40px;
  border: 1px solid rgba(255,255,255,0.12);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.form-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 26px;
  margin-bottom: 8px;
}
.lead-form label {
  display: flex;
  flex-direction: column;
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  gap: 6px;
}
.lead-form input,
.lead-form textarea {
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255,255,255,0.25);
  padding: 10px 0;
  color: var(--bg);
  font-family: inherit;
  font-size: 16px;
  outline: none;
  transition: border-color 0.2s;
}
.lead-form input:focus,
.lead-form textarea:focus {
  border-bottom-color: var(--accent);
}
.lead-form textarea { resize: vertical; }
.lead-form .btn {
  margin-top: 12px;
  align-self: flex-start;
}
.form-status {
  color: var(--accent);
  font-size: 14px;
  margin-top: 8px;
}

/* Footer */
.footer {
  text-align: center;
  padding: 32px;
  background: #111;
  color: rgba(255,255,255,0.6);
  font-size: 13px;
}
.footer-fine {
  margin-top: 6px;
  font-size: 11px;
  opacity: 0.7;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 40px;
}
.lightbox[hidden] { display: none; }
.form-status[hidden] { display: none; }
.lightbox img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.lightbox-close {
  position: absolute;
  top: 24px;
  right: 32px;
  color: #fff;
  font-size: 40px;
  line-height: 1;
}

/* Responsive */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .quick-stats { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: 1fr; gap: 32px; }
  .neighborhood-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  section { padding: 64px 24px; }
  .hero-overlay { padding: 40px 24px; }
}
