@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400&display=swap');

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

:root {
  --navy: #1C2952;
  --blue: #3B6EE8;
  --black: #0A0A0A;
  --mid: #555;
  --light: #888;
  --border: #E8E8E8;
}

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: var(--black);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

/* ─── NAV ─────────────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid var(--border);
  height: 80px;
  display: flex;
  align-items: center;
}

.nav__inner {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.nav__logo-img {
  height: 52px;
  width: 52px;
  display: block;
  flex-shrink: 0;
}

.nav__wordmark {
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1;
}

.nav__word-top {
  font-size: 9.5px;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: 3.5px;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.nav__word-bottom {
  font-family: 'Cormorant Garamond', serif;
  font-size: 18px;
  font-weight: 500;
  color: var(--navy);
  letter-spacing: 2.5px;
  text-transform: uppercase;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}

.nav__links a {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  transition: color .2s;
}

.nav__links a:hover { color: #C9A84C; }

.nav__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
}

.nav__actions a {
  font-size: 12px;
  font-weight: 500;
  color: var(--mid);
  text-decoration: none;
  letter-spacing: 0.3px;
  transition: color .2s;
}

.nav__actions a:hover { color: var(--navy); }

.nav__sep { color: var(--border); }

.nav__login { font-weight: 600 !important; color: var(--navy) !important; }

.nav__search-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--mid);
  display: flex;
  align-items: center;
  padding: 0;
  transition: color .2s;
}

.nav__search-btn:hover { color: var(--navy); }

/* ─── HERO ─────────────────────────────────────────────────────── */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
  margin-top: 80px;
}

.hero__vid {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transition: opacity 1.8s ease;
  z-index: 0;
}
.hero__vid--active { opacity: 1; }

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,.10) 0%,
    rgba(0,0,0,.38) 45%,
    rgba(0,0,0,.55) 100%
  );
}

.hero__content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 24px;
  padding-top: 40px;
}

.hero__headline {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(36px, 5vw, 68px);
  font-weight: 300;
  color: #fff;
  letter-spacing: 1px;
  line-height: 1.1;
  max-width: 900px;
  margin-bottom: 52px;
}

.hero__cta-group {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

.hero__cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 22px 52px;
  background: rgba(255,255,255,.17);
  border: 1.5px solid rgba(255,255,255,.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  text-decoration: none;
  transition: background .25s, border-color .25s;
  min-width: 240px;
  cursor: pointer;
}

.hero__cta:hover {
  background: rgba(255,255,255,.30);
  border-color: #fff;
}

.hero__cta-label {
  font-size: 12.5px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 1.8px;
  text-transform: uppercase;
}

.hero__cta-count {
  font-size: 11px;
  font-weight: 400;
  color: rgba(255,255,255,.78);
  letter-spacing: 0.3px;
}

/* ─── SEARCH BAR ─────────────────────────────────────────────────── */
.search-section {
  background: var(--navy);
  padding: 28px 0;
}

.search-bar {
  display: flex;
  align-items: stretch;
  background: #fff;
  max-width: 860px;
  margin: 0 auto;
}

.search-bar input {
  flex: 1;
  padding: 16px 22px;
  border: none;
  outline: none;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 14px;
  color: var(--black);
}

.search-bar input::placeholder { color: #bbb; }

.search-bar__divider {
  width: 1px;
  background: var(--border);
  margin: 10px 0;
}

.search-bar select {
  padding: 16px 20px;
  border: none;
  outline: none;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 13px;
  color: var(--mid);
  background: #fff;
  cursor: pointer;
  appearance: none;
  min-width: 150px;
}

.search-bar__submit {
  padding: 16px 32px;
  background: #C9A84C;
  border: none;
  color: var(--navy);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .2s;
  white-space: nowrap;
}

.search-bar__submit:hover { background: #e0c06a; }

/* ─── COMMON SECTION ──────────────────────────────────────────────── */
.section { padding: 72px 0 80px; }
.section--grey { background: #F7F7F5; }

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 32px;
}

.section__header {
  text-align: center;
  margin-bottom: 40px;
}

.section__title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(26px, 3vw, 40px);
  font-weight: 400;
  color: var(--navy);
  letter-spacing: 0.5px;
}

.section__subtitle {
  font-size: 12.5px;
  color: var(--light);
  margin-top: 10px;
  letter-spacing: 0.3px;
}

/* ─── LISTING GRID ──────────────────────────────────────────────── */
.listing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.listing-card {
  cursor: pointer;
  text-decoration: none;
  display: block;
  border: 1px solid var(--border);
  background: #fff;
  transition: box-shadow .25s, transform .25s;
}

.listing-card:hover {
  box-shadow: 0 6px 28px rgba(0,0,0,.10);
  transform: translateY(-2px);
}

.listing-card__img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
}

.listing-card__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s;
}

.listing-card:hover .listing-card__img-wrap img {
  transform: scale(1.04);
}

.listing-card__badge {
  position: absolute;
  bottom: 0;
  right: 0;
  background: rgba(28,41,82,.85);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  padding: 5px 9px;
}

.listing-card__body {
  padding: 13px 15px 15px;
}

.listing-card__address {
  font-size: 11px;
  font-weight: 700;
  color: var(--black);
  letter-spacing: 0.7px;
  text-transform: uppercase;
  margin-bottom: 2px;
}

.listing-card__hood {
  font-size: 11.5px;
  color: var(--mid);
  margin-bottom: 10px;
}

.listing-card__price {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 3px;
}

.listing-card__details {
  font-size: 11.5px;
  color: var(--light);
}

.section__cta-wrap {
  text-align: center;
  margin-top: 40px;
}

.btn-view-all {
  display: inline-block;
  padding: 15px 44px;
  background: #C9A84C;
  color: var(--navy);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  text-decoration: none;
  transition: background .2s;
}

.btn-view-all:hover { background: #e0c06a; }

/* ─── NEIGHBOURHOOD STRIP ────────────────────────────────────────── */
.neighbourhood-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
}

.neighbourhood-item {
  position: relative;
  aspect-ratio: 2/3;
  overflow: hidden;
  cursor: pointer;
  text-decoration: none;
  display: block;
}

.neighbourhood-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s;
  display: block;
}

.neighbourhood-item:hover img { transform: scale(1.06); }

.neighbourhood-item__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.68) 0%, transparent 55%);
}

.neighbourhood-item__body {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 14px;
}

.neighbourhood-item__name {
  color: #fff;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.neighbourhood-item__count {
  font-size: 10.5px;
  font-weight: 400;
  color: rgba(255,255,255,.72);
  margin-top: 2px;
}

/* ─── STATS BAR ──────────────────────────────────────────────────── */
.stats-bar {
  background: var(--navy);
  padding: 44px 0;
}

.stats-bar__inner {
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
  gap: 32px;
}

.stat-item { text-align: center; }

.stat-item__num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 46px;
  font-weight: 400;
  color: #fff;
  line-height: 1;
}

.stat-item__label {
  font-size: 10.5px;
  font-weight: 500;
  color: rgba(255,255,255,.55);
  letter-spacing: 1.8px;
  text-transform: uppercase;
  margin-top: 8px;
}

/* ─── FOOTER ──────────────────────────────────────────────────────── */
.footer {
  background: var(--navy);
  padding: 56px 0 28px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer__brand-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 24px;
  font-weight: 400;
  color: #fff;
  margin-bottom: 6px;
}

.footer__tagline {
  font-size: 10px;
  color: rgba(255,255,255,.45);
  letter-spacing: 1.8px;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.footer__desc {
  font-size: 12.5px;
  line-height: 1.85;
  color: rgba(255,255,255,.55);
  max-width: 280px;
}

.footer__col-title {
  font-size: 10px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 2.2px;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.footer__col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__col ul a {
  font-size: 12.5px;
  color: rgba(255,255,255,.50);
  text-decoration: none;
  transition: color .2s;
}

.footer__col ul a:hover { color: #fff; }

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.10);
  padding-top: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: rgba(255,255,255,.30);
}

/* ─── NAV CTA BUTTON ─────────────────────────────────────────────── */
.nav__cta-btn {
  padding: 11px 24px;
  background: #C9A84C;
  color: var(--navy) !important;
  font-size: 11.5px !important;
  font-weight: 700 !important;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  text-decoration: none;
  transition: background .2s;
  white-space: nowrap;
}
.nav__cta-btn:hover { background: #e0c06a !important; }

/* ─── APPLY CTA BANNER ───────────────────────────────────────────── */
.apply-cta {
  background: var(--navy);
  padding: 52px 0;
}
.apply-cta__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.apply-cta__title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 400;
  color: #fff;
  margin-bottom: 8px;
}
.apply-cta__sub {
  font-size: 13px;
  color: rgba(255,255,255,.60);
  max-width: 480px;
  line-height: 1.7;
}
.apply-cta__btn {
  display: inline-block;
  padding: 16px 40px;
  background: #C9A84C;
  color: var(--navy);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background .2s;
}
.apply-cta__btn:hover { background: #e0c06a; }

/* ─── PROPERTY MODAL ────────────────────────────────────────────── */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.72);
  z-index: 300;
  align-items: center;
  justify-content: center;
  padding: 24px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.modal-overlay.open { display: flex; }

.modal {
  background: #fff;
  width: 100%;
  max-width: 1080px;
  max-height: 90vh;
  display: flex;
  overflow: hidden;
  position: relative;
}

.modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 10;
  background: rgba(0,0,0,.55);
  border: none;
  color: #fff;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s;
}
.modal__close:hover { background: rgba(0,0,0,.85); }

.modal__gallery {
  flex: 0 0 56%;
  display: flex;
  flex-direction: column;
  background: #111;
}

.modal__main-img {
  flex: 1;
  min-height: 0;
  overflow: hidden;
}
.modal__main-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity .25s;
}

.modal__thumbs {
  display: flex;
  gap: 4px;
  padding: 5px;
  background: #000;
  flex-shrink: 0;
}
.modal__thumb {
  flex: 1;
  height: 68px;
  overflow: hidden;
  cursor: pointer;
  opacity: .55;
  transition: opacity .2s;
  border: 2px solid transparent;
  transition: opacity .2s, border-color .2s;
}
.modal__thumb.active,
.modal__thumb:hover { opacity: 1; border-color: #C9A84C; }
.modal__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

.modal__details {
  flex: 1;
  overflow-y: auto;
  padding: 32px 28px 36px;
  display: flex;
  flex-direction: column;
}

.modal__badge-chip {
  display: inline-block;
  background: var(--navy);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 4px 10px;
  margin-bottom: 14px;
  align-self: flex-start;
}

.modal__address {
  font-size: 12px;
  font-weight: 700;
  color: var(--black);
  letter-spacing: 0.8px;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.modal__hood-line {
  font-size: 13px;
  color: var(--light);
  margin-bottom: 16px;
}

.modal__price-line {
  font-family: 'Cormorant Garamond', serif;
  font-size: 32px;
  font-weight: 400;
  color: var(--navy);
  margin-bottom: 16px;
}

.modal__specs-row {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.modal__spec { display: flex; flex-direction: column; gap: 3px; }
.modal__spec-val { font-size: 17px; font-weight: 700; color: var(--black); }
.modal__spec-key { font-size: 9.5px; font-weight: 700; color: var(--light); letter-spacing: 1.2px; text-transform: uppercase; }

.modal__hr { border: none; border-top: 1px solid var(--border); margin: 16px 0; }

.modal__desc-text { font-size: 13px; line-height: 1.9; color: var(--mid); margin-bottom: 20px; }

.modal__amenities-title { font-size: 9.5px; font-weight: 700; color: var(--navy); letter-spacing: 1.8px; text-transform: uppercase; margin-bottom: 10px; }
.modal__amenities-list { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 18px; }
.modal__amenity { font-size: 11.5px; color: var(--mid); background: #F7F7F5; padding: 5px 11px; border: 1px solid var(--border); }

.modal__avail { font-size: 11.5px; color: var(--light); margin-bottom: 22px; }

.modal__cta-btn {
  display: block;
  padding: 15px 24px;
  background: #C9A84C;
  color: var(--navy);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.3px;
  text-transform: uppercase;
  text-decoration: none;
  text-align: center;
  transition: background .2s;
  margin-top: auto;
}
.modal__cta-btn:hover { background: #e0c06a; }

/* ─── RESPONSIVE ──────────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .listing-grid { grid-template-columns: repeat(2, 1fr); }
  .neighbourhood-grid { grid-template-columns: repeat(3, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav__links { display: none; }
  .listing-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .neighbourhood-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-bar__inner { gap: 28px; }
  .footer__grid { grid-template-columns: 1fr; }
  .hero__cta-group { flex-direction: column; align-items: center; }
  .hero__cta { min-width: 280px; }
  .search-bar { flex-direction: column; }
  .modal { flex-direction: column; max-height: 95vh; }
  .modal__gallery { flex: 0 0 auto; }
  .modal__main-img { height: 230px; flex: none; }
  .modal__thumbs { height: 58px; }
  .modal__thumb { height: 50px; }
  .modal__details { padding: 22px 18px 28px; }
}
