/* ─── Variables ─────────────────────────────────────── */
:root {
  --black:    #080808;
  --dark:     #111111;
  --charcoal: #1e1e1e;
  --mid:      #2a2a2a;
  --gold:     rgba(255,255,255,0.62);
  --gold-lt:  rgba(255,255,255,0.08);
  --white:    #ffffff;
  --off-white:#f2f0ed;
  --muted:    rgba(255,255,255,0.45);
  --serif:    'Cormorant Garamond', Georgia, serif;
  --sans:     'Work Sans', sans-serif;
  --red:      #cc1c22;
}

/* ─── Reset & Base ──────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--sans); background: var(--black); color: var(--white); overflow-x: hidden; }
img  { display: block; max-width: 100%; }
a    { color: inherit; text-decoration: none; }

/* ─── Utility ───────────────────────────────────────── */
.label {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.78rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--gold);
  font-family: var(--sans);
  font-weight: 500;
}
.label::before {
  content: '';
  display: block;
  width: 36px;
  height: 1px;
  background: var(--gold);
  flex-shrink: 0;
}
.divider {
  width: 50px;
  height: 1px;
  background: var(--gold);
  margin: 1.25rem 0;
}
.divider.center { margin: 1.25rem auto; }

/* ─── NAV ───────────────────────────────────────────── */
#nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 900;
  padding: 1.75rem 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.4s, padding 0.4s, backdrop-filter 0.4s;
}
#nav.scrolled {
  background: rgba(8,8,8,0.96);
  backdrop-filter: blur(10px);
  padding: 1rem 3rem;
}
.nav-logo img { height: 52px; }

.nav-links {
  display: flex;
  list-style: none;
  gap: 2.5rem;
}
.nav-links a {
  font-size: 0.82rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  font-weight: 500;
  color: rgba(255,255,255,0.75);
  transition: color 0.3s;
}
.nav-links a:hover { color: var(--white); }

.nav-cta {
  border: 1px solid rgba(255,255,255,0.35);
  padding: 0.55rem 1.6rem;
  font-size: 0.78rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}
.nav-cta:hover { background: var(--white); color: var(--black); border-color: var(--white); }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}
.hamburger span { display: block; width: 22px; height: 1.5px; background: white; transition: all 0.3s; }

/* Mobile nav drawer */
#mobileMenu {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--black);
  z-index: 800;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
}
#mobileMenu.open { display: flex; }
#mobileMenu a {
  font-family: var(--serif);
  font-size: 2.5rem;
  font-weight: 300;
  letter-spacing: 2px;
  color: var(--white);
  transition: color 0.3s;
}
#mobileMenu a:hover { color: var(--red); }
#mobileClose {
  position: absolute;
  top: 2rem; right: 3rem;
  font-size: 2rem;
  cursor: pointer;
  color: var(--muted);
}

/* ─── HERO ──────────────────────────────────────────── */
.hero {
  height: 100svh;
  min-height: 600px;
  background: url('assets/images/148MontereyBlvd-01_web.webp') center / cover no-repeat;
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 5rem 4rem 5rem;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.88) 0%,
    rgba(0,0,0,0.45) 45%,
    rgba(0,0,0,0.15) 100%
  );
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
}
.hero-content .label { margin-bottom: 1.25rem; }
.hero-content h1 {
  font-family: var(--serif);
  font-size: clamp(3.5rem, 8vw, 7rem);
  font-weight: 300;
  line-height: 1.0;
  margin-bottom: 1rem;
  letter-spacing: -0.5px;
}
.hero-content h1 em {
  font-style: italic;
  color: rgba(255,255,255,0.7);
}
.hero-tagline {
  font-family: var(--serif);
  font-size: clamp(1.1rem, 3vw, 1.5rem);
  font-style: italic;
  font-weight: 300;
  color: rgba(255,255,255,0.9);
  margin-bottom: 0.75rem;
}
.hero-sub {
  font-size: 0.82rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin-bottom: 2.5rem;
  font-weight: 400;
}
.hero-scroll {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 0.78rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  cursor: pointer;
  transition: color 0.3s;
}
.hero-scroll::after {
  content: '';
  display: block;
  width: 36px;
  height: 1px;
  background: currentColor;
}
.hero-scroll:hover { color: var(--gold); }

/* ─── STATS STRIP ───────────────────────────────────── */
.stats-strip {
  background: var(--charcoal);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-top: 1px solid rgba(255,255,255,0.06);
}
.stat {
  padding: 2.5rem 2rem;
  border-right: 1px solid rgba(255,255,255,0.06);
  text-align: center;
}
.stat:last-child { border-right: none; }
.stat-num {
  font-family: var(--serif);
  font-size: 2.8rem;
  font-weight: 300;
  line-height: 1;
  color: var(--white);
}
.stat-lbl {
  font-size: 0.75rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 0.4rem;
}

/* ─── DETAILS ───────────────────────────────────────── */
.details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 85vh;
}
.details-img {
  background: url('assets/images/148MontereyBlvd-02_web.webp') center / cover no-repeat;
  min-height: 500px;
}
.details-body {
  background: var(--dark);
  padding: 6rem 5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.details-body h2 {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 300;
  line-height: 1.2;
  margin: 1rem 0 0.4rem;
}
.details-body .addr {
  font-size: 0.78rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 2.5rem;
}
.details-body p {
  font-size: 1.05rem;
  line-height: 1.85;
  color: rgba(255,255,255,0.6);
  margin-bottom: 0.9rem;
}

/* Units table */
.units {
  margin-top: 2.5rem;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.units-head {
  display: grid;
  grid-template-columns: 60px 1fr 1fr;
  padding: 0.8rem 0;
  font-size: 0.75rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.unit-row {
  display: grid;
  grid-template-columns: 60px 1fr 1fr;
  padding: 0.9rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  font-size: 0.98rem;
  color: rgba(255,255,255,0.65);
  align-items: center;
}
.unit-row .unit-id {
  font-family: var(--serif);
  font-size: 1.1rem;
  color: var(--white);
}
.unit-row .rent { color: var(--white); font-weight: 500; }

/* ─── GALLERY ───────────────────────────────────────── */
.gallery-section { background: var(--black); padding-bottom: 5rem; }

.gallery-head {
  text-align: center;
  padding: 6rem 2rem 3.5rem;
}
.gallery-head .label { justify-content: center; }
.gallery-head h2 {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 300;
  margin-top: 1rem;
}

/* Fotorama wrapper */
.fotorama-wrap {
  max-width: 75%;
  margin: 0 auto;
}
@media (max-width: 900px) { .fotorama-wrap { max-width: 95%; } }

.gallery-btn-row {
  text-align: center;
  padding: 2.5rem;
}

/* Full grid */
#fullGrid {
  display: none;
  padding: 0 4rem 4rem;
}
.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 6px;
  max-width: 1300px;
  margin: 0 auto 3rem;
}
.photo-grid a {
  display: block;
  overflow: hidden;
  aspect-ratio: 4/3;
}
.photo-grid img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease, filter 0.4s ease;
  filter: brightness(0.92);
}
.photo-grid a:hover img {
  transform: scale(1.04);
  filter: brightness(1);
}

/* Shared button style */
.btn-ghost {
  display: inline-block;
  border: 1px solid rgba(255,255,255,0.3);
  padding: 0.75rem 2.5rem;
  font-size: 0.78rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s;
  font-family: var(--sans);
  color: var(--white);
  background: transparent;
}
.btn-ghost:hover { background: var(--white); color: var(--black); border-color: var(--white); }

.btn-gold {
  display: inline-block;
  background: var(--red);
  color: var(--black);
  padding: 0.9rem 2.8rem;
  font-size: 0.78rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s;
}
.btn-gold:hover { background: var(--white); }

/* ─── CONTACT ───────────────────────────────────────── */
.contact-section {
  position: relative;
  background: url('assets/images/148MontereyBlvd-07_web.webp') center / cover no-repeat;
  padding: 9rem 4rem;
}
.contact-section::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.82);
}
.contact-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7rem;
  max-width: 1100px;
  margin: 0 auto;
}
.agent-col img {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--gold);
  margin-top: 1.5rem;
  margin-bottom: 1.75rem;
}
.agent-col h3 {
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 400;
  margin: 0.8rem 0 0.3rem;
}
.agent-col .title-line {
  font-size: 0.78rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 2rem;
}
.contact-items { list-style: none; }
.contact-items li {
  padding: 0.7rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  font-size: 1rem;
  color: rgba(255,255,255,0.65);
  display: flex;
  align-items: center;
  gap: 1rem;
}
.contact-items li svg { flex-shrink: 0; opacity: 0.5; }
.contact-items a:hover { color: var(--red); }

.cta-col { display: flex; flex-direction: column; justify-content: center; }
.cta-col h3 {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 300;
  line-height: 1.3;
  margin: 1rem 0 1.25rem;
}
.cta-col p {
  font-size: 1rem;
  line-height: 1.85;
  color: rgba(255,255,255,0.55);
  margin-bottom: 2.5rem;
}

/* ─── CONTACT FORM ──────────────────────────────────── */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 0.5rem;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.15);
  color: var(--white);
  font-family: var(--sans);
  font-size: 0.88rem;
  padding: 0.75rem 1rem;
  outline: none;
  transition: border-color 0.3s;
  resize: none;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: rgba(255,255,255,0.35); }
.contact-form input:focus,
.contact-form textarea:focus { border-color: rgba(255,255,255,0.45); }
.contact-form .btn-gold { border: none; width: 100%; font-family: var(--sans); color: var(--white); }
.form-success-msg {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-style: italic;
  color: rgba(255,255,255,0.8);
  margin-top: 1rem;
}
@media (max-width: 700px) {
  .form-row { grid-template-columns: 1fr; }
}

/* ─── FOOTER ────────────────────────────────────────── */
footer {
  background: var(--black);
  border-top: 1px solid rgba(255,255,255,0.07);
  padding: 3rem 4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  text-align: center;
}
.footer-logos {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}
.footer-logos img { opacity: 0.85; }
.footer-logos img:first-child { height: 64px; }
.footer-logos img:last-child { height: 72px; }
.copyright {
  font-size: 0.78rem;
  letter-spacing: 1px;
  color: rgba(255,255,255,0.45);
}

/* ─── CUSTOM LIGHTBOX ───────────────────────────────── */
#lb {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.96);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}
#lb.open { display: flex; }
#lbImg {
  max-width: 100vw;
  max-height: 100svh;
  object-fit: contain;
  display: block;
  user-select: none;
}
#lbClose {
  position: fixed;
  top: 1.25rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: rgba(255,255,255,0.7);
  font-size: 1.75rem;
  cursor: pointer;
  z-index: 10001;
  line-height: 1;
  padding: 0.25rem 0.5rem;
  transition: color 0.2s;
}
#lbClose:hover { color: var(--white); }
#lbPrev, #lbNext {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: rgba(255,255,255,0.6);
  font-size: 4rem;
  cursor: pointer;
  z-index: 10001;
  line-height: 1;
  padding: 0 1rem;
  transition: color 0.2s;
  user-select: none;
}
#lbPrev { left: 0.5rem; }
#lbNext { right: 0.5rem; }
#lbPrev:hover, #lbNext:hover { color: var(--white); }
#lbCounter {
  position: fixed;
  top: 1.25rem;
  left: 1.5rem;
  font-size: 0.78rem;
  letter-spacing: 3px;
  color: rgba(255,255,255,0.65);
  z-index: 10001;
  font-family: var(--sans);
  text-transform: uppercase;
}
@media (max-width: 700px) {
  #lbPrev, #lbNext { font-size: 2.5rem; padding: 0 0.5rem; }
}

/* ─── MLS MODE ──────────────────────────────────────── */
.mls-hide { display: none !important; }

/* ─── RESPONSIVE ────────────────────────────────────── */
@media (max-width: 1000px) {
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }
  .details { grid-template-columns: 1fr; }
  .details-img { min-height: 55vw; }
  .details-body { padding: 4rem 2.5rem; }
  .contact-inner { grid-template-columns: 1fr; gap: 3.5rem; }
  footer { padding: 2rem 1.5rem; }
}
@media (max-width: 700px) {
  #nav { padding: 1.25rem 1.5rem; }
  #nav.scrolled { padding: 0.9rem 1.5rem; }
  .hero { padding: 4rem 1.5rem; }
  .stats-strip { grid-template-columns: repeat(6, 1fr); }
  .stats-strip .stat { grid-column: span 2; }
  .stats-strip .stat:nth-child(4),
  .stats-strip .stat:nth-child(5) { grid-column: span 3; }
  .contact-section { padding: 5rem 1.5rem; }
  #fullGrid { padding: 0 1rem 3rem; }
  footer { padding: 2rem 1.5rem; }
  .photo-grid { grid-template-columns: repeat(2, 1fr); gap: 4px; }
  .gallery-btn-row { display: none; }
}

