/* ============ Additional styles for multi-page site ============ */

/* HERO SEARCH BAR (homepage) */
.hero-search {
  margin-top: 40px;
  max-width: 900px;
}
.search-row {
  display: grid;
  grid-template-columns: 140px 1fr 140px 160px auto;
  gap: 10px;
  background: rgba(246, 242, 236, 0.95);
  padding: 16px;
  backdrop-filter: blur(12px);
}
.search-row select,
.search-row input {
  padding: 14px 16px;
  border: 1px solid #d9cfbf;
  background: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: #14110f;
  width: 100%;
}
.search-row select:focus,
.search-row input:focus { outline: none; border-color: #7d5a22; }
.search-row button {
  padding: 14px 34px;
  background: #14110f;
  color: #f6f2ec;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background .3s ease;
}
.search-row button:hover { background: #7d5a22; }
.search-quick {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 16px;
  font-size: 12px;
  color: #ede4d2;
  letter-spacing: 0.06em;
}
.search-quick span { opacity: 0.75; }
.search-quick a {
  color: #e6cf9e;
  border-bottom: 1px solid rgba(230, 207, 158, 0.4);
  padding-bottom: 2px;
  transition: color .3s ease;
}
.search-quick a:hover { color: #fff; border-color: #fff; }

@media (max-width: 900px) {
  .hero-search { margin-top: 24px; }
  .search-row {
    grid-template-columns: 1fr 1fr;
    padding: 12px;
    gap: 8px;
  }
  .search-row select, .search-row input {
    padding: 11px 12px;
    font-size: 13px;
  }
  /* Address input spans full width */
  .search-row input[name="q"] { grid-column: 1 / -1; }
  /* Search button spans full width at bottom */
  .search-row button {
    grid-column: 1 / -1;
    padding: 12px;
    font-size: 11px;
  }
  .search-quick { font-size: 11px; gap: 12px; margin-top: 12px; }
}

/* PAGE HEADER (used on all subpages) */
.page-header {
  padding: 180px 0 80px;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  text-align: center;
}
.page-header .overline { margin-bottom: 20px; }
.page-header h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(48px, 7vw, 88px);
  line-height: 1.02;
  font-weight: 400;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}
.page-header h1 em { font-style: italic; color: var(--gold); }
.page-header p {
  font-size: 18px;
  color: var(--ink-soft);
  max-width: 640px;
  margin: 0 auto;
}

/* CTA BAND */
.cta-band {
  background: var(--ink);
  color: var(--ivory);
  padding: 100px 0;
  text-align: center;
}
.cta-band h2 {
  font-size: clamp(38px, 5vw, 60px);
  line-height: 1.05;
  margin-bottom: 34px;
}
.cta-band h2 em { font-style: italic; color: #e6cf9e; }
.cta-band-actions {
  display: flex; gap: 14px; justify-content: center; flex-wrap: wrap;
}

/* TEAM (About page) */
.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 60px;
  margin-top: 30px;
}
.team-member {
  text-align: center;
}
.team-photo {
  aspect-ratio: 3/4;
  overflow: hidden;
  background: var(--paper);
  margin-bottom: 30px;
}
.team-photo img { width: 100%; height: 100%; object-fit: cover; }
.team-member h3 {
  font-size: 40px;
  margin-bottom: 8px;
}
.team-member .title {
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}
.team-member .bio {
  color: var(--ink-soft);
  font-size: 15px;
  margin: 0 auto 24px;
  max-width: 460px;
}
@media (max-width: 720px) {
  .team-grid { grid-template-columns: 1fr; gap: 60px; }
}

/* LISTINGS SEARCH PAGE */
.listings-toolbar {
  background: var(--paper);
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 68px;
  z-index: 50;
}
.toolbar-row {
  display: grid;
  grid-template-columns: 160px 1fr 140px 140px 140px 140px auto;
  gap: 10px;
  align-items: center;
}
.toolbar-row select, .toolbar-row input {
  padding: 12px 14px;
  border: 1px solid var(--line);
  background: var(--ivory);
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: var(--ink);
}
.toolbar-row button {
  padding: 12px 24px;
  background: var(--ink);
  color: var(--ivory);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border: none; cursor: pointer;
}
.toolbar-row button:hover { background: var(--gold); }
.listings-status {
  padding: 12px 0 0;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.08em;
}
@media (max-width: 960px) {
  .toolbar-row { grid-template-columns: 1fr 1fr; }
}

.listings-main {
  padding: 60px 0 120px;
  background: var(--ivory);
}

/* SINGLE LISTING */
.listing-detail {
  padding: 120px 0 100px;
  background: var(--ivory);
}

/* Rich detail additions */
.listing-section {
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
}
.listing-section h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 32px;
  font-weight: 400;
  margin-bottom: 24px;
  line-height: 1.1;
}
.listing-section h2 em { font-style: italic; color: var(--gold); }
.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px 40px;
}
.features-grid .row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.features-grid .k {
  color: var(--muted);
  letter-spacing: 0.06em;
}
.features-grid .v {
  color: var(--ink);
  font-weight: 500;
  text-align: right;
}
@media (max-width: 720px) {
  .features-grid { grid-template-columns: 1fr; }
}

.agent-card {
  background: var(--paper);
  padding: 24px 26px;
  margin-top: 30px;
  border-left: 3px solid var(--gold);
}
.agent-card .k {
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}
.agent-card .name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  color: var(--ink);
}
.agent-card .org {
  font-size: 13px;
  color: var(--ink-soft);
  margin-top: 2px;
}

.open-house {
  background: var(--gold);
  color: var(--ivory);
  padding: 14px 22px;
  display: inline-block;
  margin-bottom: 20px;
  font-size: 13px;
  letter-spacing: 0.06em;
}
.open-house strong {
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  font-size: 10px;
  display: block;
  margin-bottom: 2px;
}

.share-row {
  display: flex;
  gap: 12px;
  margin: 24px 0;
  padding: 20px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.share-row a {
  padding: 10px 18px;
  border: 1px solid var(--line);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-soft);
  transition: all .3s ease;
}
.share-row a:hover {
  border-color: var(--ink);
  color: var(--ink);
}
.listing-gallery {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 8px;
  height: 560px;
  margin-bottom: 60px;
}
.listing-gallery img {
  width: 100%; height: 100%; object-fit: cover;
}
.listing-gallery img:first-child {
  grid-row: 1 / span 2;
}
.listing-body {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 60px;
}
.listing-info h1 {
  font-size: clamp(36px, 4vw, 54px);
  line-height: 1.05;
  margin-bottom: 8px;
}
.listing-info .addr {
  color: var(--muted);
  font-size: 15px;
  margin-bottom: 30px;
}
.listing-info .price {
  font-family: 'Cormorant Garamond', serif;
  font-size: 44px;
  color: var(--gold);
  margin-bottom: 30px;
}
.listing-facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding: 30px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: 40px;
}
.listing-facts div { text-align: left; }
.listing-facts .n {
  font-family: 'Cormorant Garamond', serif;
  font-size: 32px;
  color: var(--ink);
}
.listing-facts .l {
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 4px;
}
.listing-desc {
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.75;
}
.listing-cta {
  background: var(--paper);
  padding: 40px;
  position: sticky;
  top: 100px;
  height: fit-content;
}
.listing-cta h3 { font-size: 26px; margin-bottom: 20px; }
.listing-cta input, .listing-cta textarea {
  width: 100%; padding: 12px 14px;
  border: 1px solid var(--line); background: var(--ivory);
  font-family: 'Inter', sans-serif; font-size: 14px;
  color: var(--ink); margin-bottom: 10px;
}
.listing-cta textarea { min-height: 80px; }
.listing-cta button {
  width: 100%; padding: 14px;
  background: var(--ink); color: var(--ivory);
  border: none; font-size: 11px; letter-spacing: 0.24em;
  text-transform: uppercase; cursor: pointer;
}
.listing-cta button:hover { background: var(--gold); }
@media (max-width: 960px) {
  .listing-body { grid-template-columns: 1fr; }
  .listing-gallery { grid-template-columns: 1fr; height: auto; }
  .listing-gallery img { height: 300px; }
  .listing-gallery img:first-child { grid-row: auto; }
  .listing-facts { grid-template-columns: repeat(2, 1fr); }
}

/* LISTING DETAIL — extra styles */
.listing-facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding: 30px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: 40px;
}
@media (max-width: 720px) { .listing-facts { grid-template-columns: repeat(2, 1fr); } }

.listing-desc { margin-bottom: 40px; }
.listing-desc h3 { font-size: 26px; margin-bottom: 16px; }
.listing-desc p { color: var(--ink-soft); line-height: 1.75; font-size: 16px; }

.listing-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}
.listing-features .feat-block h3 { font-size: 22px; margin-bottom: 12px; }
.listing-features .feat-block p { color: var(--ink-soft); font-size: 15px; }
@media (max-width: 720px) { .listing-features { grid-template-columns: 1fr; } }

.open-house {
  background: var(--gold);
  color: var(--ivory);
  padding: 16px 20px;
  margin-bottom: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.open-house .oh-label {
  font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase;
}
.open-house .oh-time {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  font-style: italic;
}

/* Gallery images clickable */
.listing-gallery img { cursor: pointer; transition: opacity .2s; }
.listing-gallery img:hover { opacity: 0.9; }

/* CTA — Mike as contact */
.cta-contact {
  display: flex; align-items: center; gap: 14px;
  padding-bottom: 20px; border-bottom: 1px solid var(--line);
}
.cta-headshot {
  width: 60px; height: 60px; object-fit: cover; border-radius: 50%;
  border: 2px solid var(--gold);
}
.cta-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  line-height: 1;
  margin-bottom: 4px;
}
.cta-role {
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Lightbox */
.lightbox {
  position: fixed; inset: 0;
  background: rgba(20, 17, 15, 0.95);
  z-index: 999;
  display: flex; align-items: center; justify-content: center;
  padding: 40px;
}
.lightbox img {
  max-width: 90vw; max-height: 90vh;
  object-fit: contain;
}
.lightbox .lb-close, .lightbox .lb-prev, .lightbox .lb-next {
  position: absolute;
  background: rgba(246, 242, 236, 0.15);
  color: var(--ivory);
  border: 1px solid rgba(230, 207, 158, 0.4);
  width: 50px; height: 50px;
  font-size: 24px;
  cursor: pointer;
  transition: background .2s;
  display: flex; align-items: center; justify-content: center;
}
.lightbox .lb-close:hover, .lightbox .lb-prev:hover, .lightbox .lb-next:hover {
  background: var(--gold);
  border-color: var(--gold);
}
.lightbox .lb-close { top: 30px; right: 30px; }
.lightbox .lb-prev { left: 30px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 30px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-count {
  position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%);
  color: var(--ivory);
  font-size: 12px; letter-spacing: 0.24em; text-transform: uppercase;
  opacity: 0.75;
}

/* NEIGHBORHOODS FULL PAGE */
.neigh-full {
  padding: 100px 0;
  background: var(--ivory);
}
.neigh-full .neigh-grid {
  grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 960px) { .neigh-full .neigh-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .neigh-full .neigh-grid { grid-template-columns: 1fr; } }

/* VALUATION EDUCATIONAL */
.val-info {
  background: var(--ivory);
  padding: 100px 0;
}
.val-info-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px;
  margin-top: 40px;
}
.val-info-card {
  padding: 30px;
  background: var(--paper);
  border-top: 3px solid var(--gold);
}
.val-info-card h3 { font-size: 24px; margin-bottom: 12px; }
.val-info-card p { color: var(--ink-soft); font-size: 14px; }
@media (max-width: 900px) { .val-info-grid { grid-template-columns: 1fr; } }

/* TESTIMONIALS PAGE */
.test-full {
  padding: 100px 0;
  background: var(--ivory);
}
.test-full .test-grid {
  grid-template-columns: repeat(2, 1fr);
  gap: 60px 50px;
}
.test-full .test { color: var(--ink); }
.test-full .quote { color: var(--ink-soft); }
.test-full .quote::before { color: var(--gold); }
.test-full .author { color: var(--gold); }
@media (max-width: 720px) { .test-full .test-grid { grid-template-columns: 1fr; } }

/* AUTO-SCROLLING TESTIMONIALS CAROUSEL */
.test-marquee {
  overflow: hidden;
  position: relative;
  padding: 20px 0;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.test-track {
  display: flex;
  gap: 30px;
  width: max-content;
  animation: marquee 60s linear infinite;
}
.test-marquee:hover .test-track { animation-play-state: paused; }
.test-card {
  flex: 0 0 420px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(230,207,158,0.15);
  padding: 34px;
  color: var(--ivory);
}
.test-card .quote {
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px;
  line-height: 1.45;
  font-style: italic;
  color: #ede4d2;
  margin-bottom: 20px;
  min-height: 130px;
}
.test-card .quote::before {
  content: '"';
  color: #e6cf9e;
  font-size: 48px;
  line-height: 0;
  vertical-align: -14px;
  margin-right: 4px;
}
.test-card .author {
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #e6cf9e;
}
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(calc(-50%)); }
}
@media (max-width: 720px) {
  .test-card { flex: 0 0 300px; padding: 24px; }
  .test-card .quote { font-size: 17px; min-height: 150px; }
}

/* CONTACT PAGE */
.contact-full {
  padding: 100px 0;
  background: var(--ivory);
}
.map-embed {
  height: 400px;
  background: var(--paper);
  margin-top: 60px;
  border: 1px solid var(--line);
}
