/* ── RESET & BASE ─────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --orange: #E07A3A;
  --orange-dark: #c96a2c;
  --navy: #1a1a2e;
  --navy-mid: #16213e;
  --navy-deep: #0f3460;
  --text: #1a1a1a;
  --text-sec: #6b7280;
  --border: #e5e7eb;
  --border-light: #f3f4f6;
  --bg: #ffffff;
  --bg-sec: #f9fafb;
  --radius: 3px;
  --radius-sm: 2px;
  --radius-pill: 20px;
}
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  font-size: 14px;
  line-height: 1.5;
}

/* ── NAV ──────────────────────────────────────────────── */
nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 28px; background: var(--navy);
  position: sticky; top: 0; z-index: 100;
}
.logo {
  font-family: 'Fraunces', Georgia, serif; font-weight: 500;
  font-size: 19px; letter-spacing: -0.2px; cursor: pointer; color: #fff;
}
.logo span { color: var(--orange); }
.nav-links { display: flex; gap: 4px; }
.nav-links button {
  background: none; border: none; font-size: 11px; color: rgba(255,255,255,0.65);
  cursor: pointer; padding: 8px 12px; border-radius: var(--radius-sm);
  font-family: inherit; text-transform: uppercase; letter-spacing: 0.8px;
  transition: color 0.15s;
}
.nav-links button:hover { color: #fff; }
.nav-links button.active { color: #fff; font-weight: 600; }
.nav-toggle {
  display: none; background: none; border: none; font-size: 20px;
  cursor: pointer; color: #fff; padding: 4px 8px;
}

/* ── PAGES ────────────────────────────────────────────── */
.page { display: none; }
.page.active { display: block; }

/* ── HERO ─────────────────────────────────────────────── */
.hero {
  background:
    radial-gradient(ellipse 900px 500px at 50% 15%, rgba(11,22,45,0.55) 0%, rgba(15,28,56,0.72) 48%, rgba(10,18,38,0.88) 100%),
    url('images/walkway.jpg') center 30% / cover no-repeat;
  padding: 88px 24px 72px; text-align: center; color: white;
}
.hero-eyebrow {
  font-size: 12px; font-weight: 600; text-transform: uppercase;
  letter-spacing: 2.2px; color: var(--orange); margin-bottom: 22px;
}
.hero h1 {
  font-family: 'Fraunces', Georgia, serif; font-weight: 400;
  font-size: 40px; margin: 0 auto 16px;
  letter-spacing: -0.2px; line-height: 1.2;
}
.hero h1 em, .section-heading em { font-style: italic; font-weight: 500; color: var(--orange); }
.hero p { font-size: 15px; opacity: 0.65; margin-bottom: 38px; letter-spacing: 0.2px; }
.hero-btns { display: flex; gap: 22px; justify-content: center; align-items: center; flex-wrap: wrap; }
.btn-primary {
  background: var(--orange); color: white; border: none;
  padding: 13px 28px; border-radius: var(--radius-sm);
  font-size: 13px; font-weight: 600; letter-spacing: 0.3px;
  cursor: pointer; font-family: inherit; transition: background 0.15s;
}
.btn-primary:hover { background: var(--orange-dark); }
.btn-secondary {
  background: none; border: none; color: rgba(255,255,255,0.85);
  padding: 13px 4px; border-bottom: 1px solid rgba(255,255,255,0.35);
  font-size: 13px; font-weight: 600; letter-spacing: 0.3px;
  cursor: pointer; font-family: inherit; transition: color 0.15s, border-color 0.15s;
}
.btn-secondary:hover { color: var(--orange); border-color: var(--orange); }
.hero-note {
  max-width: 420px; margin: 44px auto 0; padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,0.12);
  font-size: 12px; line-height: 1.7; color: rgba(255,255,255,0.5);
}

/* ── SECTION ──────────────────────────────────────────── */
.section { padding: 48px 24px; max-width: 900px; margin: 0 auto; }
.section-head { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.section-eyebrow {
  font-size: 11px; font-weight: 600; color: var(--orange);
  text-transform: uppercase; letter-spacing: 1.4px; margin-bottom: 10px;
}
.section-heading {
  font-family: 'Fraunces', Georgia, serif; font-weight: 500;
  font-size: 32px; letter-spacing: -0.2px; line-height: 1.15; margin-bottom: 8px;
}
.section-sub { font-size: 14px; line-height: 1.7; color: var(--text-sec); margin-bottom: 28px; }

/* ── FEATURE GRID ─────────────────────────────────────── */
.feature-grid {
  display: grid; grid-template-columns: repeat(5, 1fr);
  gap: 16px; margin-top: 20px;
}
.amenities-grid { grid-template-columns: repeat(3, 1fr); }
.feature-card {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 18px;
}
.feature-icon { font-size: 20px; margin-bottom: 8px; }
.feature-title { font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.feature-body { font-size: 12px; color: var(--text-sec); line-height: 1.5; }

/* ── PHOTO GRID ───────────────────────────────────────── */
.photo-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 160px; grid-auto-flow: dense; gap: 12px; margin-top: 20px;
}
.photo-grid button {
  padding: 0; border: none; cursor: pointer; background: none;
  border-radius: var(--radius); overflow: hidden;
}
.photo-grid img {
  width: 100%; height: 100%; object-fit: cover;
  display: block; background: var(--bg-sec);
  transition: transform 0.2s;
}
.photo-grid button:hover img { transform: scale(1.04); }
.photo-grid .tall { grid-row: span 2; }
.photo-grid .wide { grid-column: span 2; }
.photo-grid .courtyard-thumb { object-position: center 25%; }

/* ── LIGHTBOX ─────────────────────────────────────────── */
.lightbox {
  display: none; position: fixed; inset: 0; z-index: 1000;
  background: rgba(10,10,15,0.92);
  align-items: center; justify-content: center;
}
.lightbox.open { display: flex; }
.lightbox-img {
  max-width: 88vw; max-height: 84vh; object-fit: contain;
  border-radius: var(--radius);
}
.lightbox-close {
  position: absolute; top: 20px; right: 24px;
  background: none; border: none; color: #fff; font-size: 22px;
  cursor: pointer; padding: 8px; line-height: 1;
}
.lightbox-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,0.1); border: none; color: #fff;
  font-size: 30px; width: 48px; height: 48px; border-radius: 50%;
  cursor: pointer; line-height: 1; transition: background 0.15s;
}
.lightbox-arrow:hover { background: rgba(255,255,255,0.22); }
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }
.lightbox-count {
  position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%);
  color: rgba(255,255,255,0.6); font-size: 12px; letter-spacing: 0.4px;
}

.placeholder-note {
  margin-top: 20px; padding: 12px 14px; font-size: 12px; line-height: 1.6;
  color: var(--text-sec); background: var(--bg-sec);
  border: 1px dashed var(--border); border-radius: var(--radius-sm);
}

/* ── ABOUT ────────────────────────────────────────────── */
.about-lede {
  font-size: 15px; line-height: 1.8; color: var(--text-sec);
  max-width: 620px; margin-top: 12px; margin-bottom: 8px;
}
.about-facts { margin-top: 28px; border-top: 1px solid var(--border); max-width: 620px; }
.about-fact {
  display: flex; justify-content: space-between; align-items: baseline; gap: 24px;
  padding: 15px 0; border-bottom: 1px solid var(--border);
}
.about-fact-label { font-size: 12px; color: var(--text-sec); flex-shrink: 0; }
.about-fact-value { font-size: 14px; text-align: right; }

/* ── CONTACT ──────────────────────────────────────────── */
.contact-grid {
  display: grid; grid-template-columns: repeat(auto-fit,minmax(200px,1fr));
  gap: 16px; margin-bottom: 20px;
}
.contact-card {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 18px;
}
.contact-label {
  font-size: 11px; font-weight: 600; color: var(--text-sec);
  text-transform: uppercase; letter-spacing: 0.4px; margin-bottom: 6px;
}
.contact-value { font-size: 14px; line-height: 1.6; }
.contact-link { color: var(--orange); text-decoration: none; font-size: 13px; }
.contact-link:hover { text-decoration: underline; }
.map-embed {
  border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; height: 280px;
}
.map-embed iframe { width: 100%; height: 100%; border: none; }

/* ── UNIT CARDS ───────────────────────────────────────── */
.units-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px,1fr));
  gap: 16px;
}
.unit-card {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px;
  display: flex; flex-direction: column; gap: 12px;
}
.unit-card-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.unit-type { font-size: 16px; font-weight: 600; line-height: 1.3; }
.unit-avail-badge {
  display: inline-block; font-size: 11px; padding: 3px 9px;
  border-radius: var(--radius-pill); font-weight: 500; white-space: nowrap; flex-shrink: 0;
}
.badge-available { background: #EAF3DE; color: #3B6D11; }
.badge-waitlist  { background: #FCEBEB; color: #A32D2D; }
.badge-occupied  { background: #EBEBEB; color: #555; }
.unit-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.unit-floor { font-size: 12px; color: var(--text-sec); display: flex; align-items: center; gap: 4px; }
.style-pill { font-size: 11px; font-weight: 500; padding: 2px 8px; border-radius: var(--radius-pill); }
.style-classic   { background: #F1EFE8; color: #5F5E5A; }
.style-upgraded  { background: #E6F1FB; color: #185FA5; }
.style-renovated { background: #EEEDFE; color: #534AB7; }
.unit-price-row { display: flex; align-items: baseline; gap: 4px; }
.unit-price { font-size: 22px; font-weight: 600; color: var(--orange); }
.unit-price-label { font-size: 12px; color: var(--text-sec); }
.unit-btn {
  width: 100%; padding: 9px; background: var(--orange); color: white;
  border: none; border-radius: var(--radius-sm); font-size: 13px;
  font-weight: 500; cursor: pointer; font-family: inherit; margin-top: auto;
  transition: background 0.15s;
}
.unit-btn:hover { background: var(--orange-dark); }
.unit-btn.waitlist {
  background: none; border: 1px solid var(--border); color: var(--text);
}
.unit-btn.waitlist:hover { background: var(--bg-sec); }
.empty-state {
  font-size: 14px; color: var(--text-sec); padding: 40px 0;
  text-align: center; grid-column: 1/-1;
}
.loading-state {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; color: var(--text-sec); padding: 40px 0; grid-column: 1/-1;
}
.spinner {
  width: 16px; height: 16px; border: 2px solid var(--border);
  border-top-color: var(--orange); border-radius: 50%;
  animation: spin 0.8s linear infinite; flex-shrink: 0;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── TOUR SCHEDULER ───────────────────────────────────── */
.scheduler-wrap { max-width: 560px; }
.form-group { margin-bottom: 18px; }
.form-label {
  font-size: 12px; font-weight: 600; color: var(--text-sec);
  text-transform: uppercase; letter-spacing: 0.4px;
  margin-bottom: 7px; display: block;
}
.form-input {
  width: 100%; padding: 10px 12px; border: 1px solid var(--border);
  border-radius: var(--radius-sm); font-size: 14px; font-family: inherit;
  background: var(--bg); color: var(--text); transition: border-color 0.15s;
}
.form-input:focus { outline: none; border-color: var(--orange); }
.form-input::placeholder { color: var(--text-sec); }
.form-input.invalid { border-color: #A32D2D; }
.form-divider { border: none; border-top: 1px solid var(--border); margin: 22px 0; }
.field-error {
  font-size: 12px; color: #A32D2D; margin-top: 6px; display: none;
}
.field-error.show { display: block; }

/* Calendar */
.cal-wrap { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.cal-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 16px; border-bottom: 1px solid var(--border);
}
.cal-month { font-size: 14px; font-weight: 600; }
.cal-nav {
  background: none; border: none; cursor: pointer; color: var(--text-sec);
  font-size: 18px; padding: 2px 8px; border-radius: var(--radius-sm);
  font-family: inherit; transition: background 0.12s;
}
.cal-nav:hover { background: var(--bg-sec); color: var(--text); }
.cal-grid { display: grid; grid-template-columns: repeat(7,1fr); gap: 2px; padding: 12px; }
.cal-day-name { font-size: 11px; color: var(--text-sec); text-align: center; padding: 6px 0; font-weight: 500; }
.cal-day {
  font-size: 13px; text-align: center; padding: 8px 4px;
  border-radius: var(--radius-sm); cursor: pointer; border: none;
  background: none; font-family: inherit; color: var(--text); width: 100%;
  transition: background 0.12s;
}
.cal-day:hover:not(:disabled) { background: var(--bg-sec); }
.cal-day.today { font-weight: 600; color: var(--orange); }
.cal-day.selected { background: var(--orange) !important; color: white !important; font-weight: 600; }
.cal-day:disabled { color: var(--text-sec); opacity: 0.3; cursor: default; }
.cal-day.empty { cursor: default; }

/* Time slots */
.time-section { margin-top: 18px; }
.time-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; margin-top: 10px; }
.time-slot {
  padding: 9px 6px; border: 1px solid var(--border); border-radius: var(--radius-sm);
  font-size: 13px; text-align: center; cursor: pointer; background: none;
  font-family: inherit; color: var(--text); transition: all 0.12s;
}
.time-slot:hover { border-color: var(--orange); color: var(--orange); }
.time-slot.selected { background: var(--orange); border-color: var(--orange); color: white; }
.time-loading, .time-empty {
  grid-column: 1 / -1; font-size: 13px; color: var(--text-sec);
  padding: 10px 2px;
}
.time-loading .loading-spinner {
  border-color: rgba(0,0,0,0.15); border-top-color: var(--orange);
}

.selected-display {
  margin-top: 14px; padding: 10px 14px; background: var(--bg-sec);
  border-radius: var(--radius-sm); font-size: 13px; color: var(--text-sec); display: none;
}
.selected-display.show { display: block; }
.submit-btn {
  width: 100%; padding: 12px; background: var(--orange); color: white;
  border: none; border-radius: var(--radius-sm); font-size: 14px;
  font-weight: 600; cursor: pointer; font-family: inherit; margin-top: 24px;
  transition: background 0.15s;
}
.submit-btn:hover:not(:disabled) { background: var(--orange-dark); }
.submit-btn:disabled { opacity: 0.45; cursor: default; }
.danger-btn { background: none; border: 1px solid #A32D2D; color: #A32D2D; }
.danger-btn:hover:not(:disabled) { background: #FCEBEB; }
.loading-spinner {
  display: inline-block; width: 14px; height: 14px;
  border: 2px solid rgba(255,255,255,0.35); border-top-color: white;
  border-radius: 50%; animation: spin 0.7s linear infinite;
  vertical-align: -2px; margin-right: 8px;
}
.success-box { text-align: center; padding: 40px 24px; }
.success-icon { font-size: 40px; margin-bottom: 16px; }
.success-title { font-size: 20px; font-weight: 600; margin-bottom: 8px; }
.success-sub { font-size: 14px; color: var(--text-sec); line-height: 1.6; }
.success-detail {
  margin-top: 16px; padding: 14px; background: var(--bg-sec);
  border-radius: var(--radius); font-size: 13px; text-align: left; line-height: 1.9;
}
.tour-error {
  font-size: 13px; color: #A32D2D; background: #FCEBEB;
  padding: 10px 14px; border-radius: var(--radius-sm); margin-top: 12px; display: none;
}
.tour-error.show { display: block; }

.sent-notice {
  display: none; font-size: 12px; color: #3B6D11; padding: 7px 11px;
  background: #EAF3DE; border-radius: var(--radius-sm); margin-top: 8px;
}
.sent-notice.show { display: block; }

/* ── ADMIN ────────────────────────────────────────────── */
.login-wrap { display: flex; align-items: center; justify-content: center; min-height: 380px; }
.login-box {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 30px; width: 300px; text-align: center;
}
.login-box h2 { font-size: 17px; font-weight: 600; margin-bottom: 6px; }
.login-box p { font-size: 13px; color: var(--text-sec); margin-bottom: 20px; }
.login-box input {
  width: 100%; padding: 9px 12px; border: 1px solid var(--border);
  border-radius: var(--radius-sm); font-size: 13px; font-family: inherit;
  background: var(--bg-sec); color: var(--text); margin-bottom: 10px;
}
.login-box input:focus { outline: none; border-color: var(--orange); }
.login-btn {
  width: 100%; padding: 9px; background: var(--navy); color: white; border: none;
  border-radius: var(--radius-sm); font-size: 13px; font-weight: 600;
  cursor: pointer; font-family: inherit;
}
.login-error { font-size: 12px; color: #A32D2D; margin-top: 8px; display: none; }
.logout-btn {
  font-size: 12px; color: var(--text-sec); background: none;
  border: 1px solid var(--border); padding: 5px 10px;
  border-radius: var(--radius-sm); cursor: pointer; font-family: inherit;
}
.admin-hint {
  font-size: 12px; color: var(--text-sec); margin-bottom: 14px;
  padding: 10px 14px; background: var(--bg-sec); border-radius: var(--radius-sm);
  line-height: 1.5;
}
.admin-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.admin-table th {
  text-align: left; font-size: 11px; font-weight: 600; color: var(--text-sec);
  text-transform: uppercase; letter-spacing: 0.3px; padding: 8px 10px;
  border-bottom: 1px solid var(--border);
}
.admin-table td { padding: 8px 10px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr.occ-row td { opacity: 0.45; }
.building-tag { font-size: 11px; font-weight: 500; padding: 2px 8px; border-radius: var(--radius-pill); }
.tag-4585 { background: #fdf0e6; color: #c96a2c; }
.tag-1707 { background: #e6eef7; color: #0f3460; }

/* ── FOOTER ───────────────────────────────────────────── */
footer { background: var(--navy); color: rgba(255,255,255,0.8); }
.footer-inner {
  max-width: 900px; margin: 0 auto; padding: 44px 24px 32px;
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px;
}
.footer-logo {
  font-family: 'Fraunces', Georgia, serif; font-size: 18px; color: #fff; margin-bottom: 6px;
}
.footer-logo span { color: var(--orange); }
.footer-tagline { font-size: 12px; color: rgba(255,255,255,0.55); }
.footer-label {
  font-size: 11px; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.6px; color: rgba(255,255,255,0.45); margin-bottom: 8px;
}
.footer-value { font-size: 13px; line-height: 1.8; }
.footer-value a { color: rgba(255,255,255,0.85); text-decoration: none; }
.footer-value a:hover { color: var(--orange); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12); padding: 16px 24px;
  text-align: center; font-size: 11px; color: rgba(255,255,255,0.45);
}

/* ── RESPONSIVE ───────────────────────────────────────── */
@media (max-width: 640px) {
  nav { flex-wrap: wrap; }
  .nav-links {
    display: none; width: 100%; flex-direction: column; gap: 2px;
    order: 3; padding-top: 8px; border-top: 1px solid rgba(255,255,255,0.15); margin-top: 10px;
  }
  .nav-links.open { display: flex; }
  .nav-links button { text-align: left; padding: 10px 8px; }
  .nav-toggle { display: block; }
  .hero h1 { font-size: 28px; }
  .time-grid { grid-template-columns: repeat(2,1fr); }
  .section-heading { font-size: 24px; }
  .about-fact { flex-direction: column; align-items: flex-start; gap: 4px; }
  .about-fact-value { text-align: left; }
  .photo-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 130px; }
  .photo-grid .wide { grid-column: span 2; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .neighborhood-grid .feature-card:nth-child(5) { grid-column: 1 / -1; max-width: 260px; margin: 0 auto; }
  .footer-inner { grid-template-columns: 1fr; gap: 24px; }
}
