:root {
  --bg: #07141d;
  --bg-soft: #0e2330;
  --panel: rgba(8, 26, 36, 0.82);
  --panel-strong: #102736;
  --text: #ecf3f7;
  --muted: #acc0cd;
  --line: rgba(214, 231, 239, 0.14);
  --gold: #d9b26f;
  --gold-strong: #efc87f;
  --sea: #57a8b5;
  --shadow: 0 24px 60px rgba(1, 10, 16, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top, rgba(70, 137, 151, 0.28), transparent 30%),
    linear-gradient(180deg, #0a1821 0%, #061018 100%);
}

body.modal-open {
  overflow: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.04), transparent 30%),
    repeating-linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.015) 0,
      rgba(255, 255, 255, 0.015) 1px,
      transparent 1px,
      transparent 90px
    );
  opacity: 0.5;
}

.site-shell {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 72px;
}

.topbar,
.hero-spotlight,
.listing-card,
.viewer-panel,
.contact-strip {
  backdrop-filter: blur(20px);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 20px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(7, 20, 29, 0.68);
  box-shadow: var(--shadow);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: inherit;
  text-decoration: none;
}

.brand-logo-wrap {
  position: relative;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--gold), #926532);
  color: #09131b;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.brand-mark-fallback {
  display: none;
}

.brand-logo {
  display: block;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.24);
}

.brand strong,
.brand small,
.nav a,
.hero-stats span,
.hero-stats strong {
  display: block;
}

.brand strong {
  font-size: 0.98rem;
}

.brand small {
  color: var(--muted);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
}

.hero {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 26px;
  align-items: stretch;
  padding: 72px 0 56px;
}

.eyebrow {
  margin: 0 0 12px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.76rem;
  color: var(--gold);
}

h1,
h2 {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-weight: 600;
  line-height: 0.95;
}

h1 {
  max-width: 10ch;
  font-size: clamp(3.4rem, 9vw, 6.3rem);
}

h2 {
  font-size: clamp(2.3rem, 5vw, 3.8rem);
}

.hero-text,
.section-copy,
.contact-strip p,
.card-summary,
.viewer-subtitle,
.viewer-details p {
  color: var(--muted);
  line-height: 1.75;
}

.hero-text {
  max-width: 60ch;
  margin: 22px 0 0;
  font-size: 1.04rem;
}

.hero-actions,
.viewer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.button,
.action-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.button:hover,
.action-pill:hover {
  transform: translateY(-1px);
}

.button-primary,
.action-pill-primary {
  background: linear-gradient(135deg, var(--gold-strong), #b18041);
  color: #08131a;
}

.button-secondary,
.action-pill {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
}

.hero-stats li {
  min-width: 150px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.025);
}

.hero-stats strong {
  margin-bottom: 4px;
  font-size: 1.2rem;
}

.hero-stats span {
  color: var(--muted);
  font-size: 0.94rem;
}

.hero-spotlight {
  display: grid;
  grid-template-rows: minmax(340px, 1fr) auto;
  border: 1px solid rgba(217, 178, 111, 0.22);
  border-radius: 30px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent 60%),
    linear-gradient(180deg, rgba(10, 34, 48, 0.95), rgba(5, 15, 22, 0.96));
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-spotlight-image {
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.hero-spotlight-copy {
  padding: 24px 26px 28px;
}

.card-label {
  margin: 0 0 10px;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.74rem;
}

.card-price {
  margin: 12px 0 16px;
  font-size: 1.02rem;
  font-weight: 800;
}

.section-heading {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: end;
  padding: 16px 0 20px;
}

.listing-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.listing-card {
  display: grid;
  grid-template-rows: 220px auto;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--panel);
  box-shadow: var(--shadow);
  overflow: hidden;
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.listing-card:hover,
.listing-card.is-active {
  transform: translateY(-2px);
  border-color: rgba(217, 178, 111, 0.42);
  box-shadow: 0 28px 70px rgba(1, 10, 16, 0.46);
}

.listing-card-link {
  color: inherit;
  text-decoration: none;
}

.listing-card.is-active {
  outline: 1px solid rgba(217, 178, 111, 0.3);
}

.listing-card-image {
  position: relative;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.listing-card-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(4, 13, 19, 0.8) 100%);
}

.listing-card-body {
  padding: 18px;
}

.listing-card h3 {
  margin: 0;
  font-size: 1.18rem;
}

.listing-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 14px 0 16px;
}

.listing-meta span {
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-size: 0.84rem;
}

.viewer-panel {
  margin-top: 30px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: linear-gradient(180deg, rgba(12, 30, 41, 0.82), rgba(5, 16, 24, 0.96));
  box-shadow: var(--shadow);
}

.viewer-header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-end;
  padding-bottom: 22px;
}

.viewer-layout {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  gap: 22px;
}

.viewer-details,
.brochure-viewer {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.025);
}

.viewer-details {
  padding: 22px;
}

.viewer-cover {
  min-height: 220px;
  margin-bottom: 22px;
  border-radius: 18px;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.viewer-detail-block + .viewer-detail-block {
  margin-top: 22px;
}

.viewer-detail-block h3 {
  margin: 0 0 8px;
  font-size: 1rem;
}

.viewer-detail-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.viewer-detail-list span {
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-size: 0.84rem;
}

.viewer-empty {
  margin: 0;
}

.brochure-viewer {
  min-height: 920px;
  overflow: hidden;
}

.viewer-status {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 920px;
  padding: 28px;
  text-align: center;
  color: var(--muted);
}

#pdfFrame {
  display: none;
  width: 100%;
  min-height: 920px;
  border: 0;
  background: #fff;
}

.pdf-pages {
  display: none;
  gap: 0;
  padding: 0;
}

.pdf-page {
  padding: 0;
  border-radius: 0;
  background: transparent;
}

.pdf-page-canvas {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0;
  background: #fff;
  box-shadow: none;
}

.pdf-page-placeholder {
  width: 100%;
  aspect-ratio: 0.707 / 1;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.08));
}

.contact-strip {
  margin-top: 28px;
  padding: 34px 28px;
  border-radius: 28px;
  border: 1px solid rgba(87, 168, 181, 0.22);
  background:
    radial-gradient(circle at right top, rgba(87, 168, 181, 0.2), transparent 32%),
    linear-gradient(180deg, rgba(10, 31, 41, 0.88), rgba(8, 20, 28, 0.94));
}

.hero-spotlight-button {
  margin-top: 10px;
}

.viewer-hero {
  padding: 48px 0 26px;
}

.viewer-back-link {
  display: inline-block;
  margin-bottom: 18px;
  color: var(--gold-strong);
  text-decoration: none;
}

.viewer-page-panel {
  margin-top: 0;
}

.viewer-screen {
  min-height: 100vh;
  padding: 18px;
}

.viewer-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0 auto 18px;
  width: min(1400px, 100%);
}

.viewer-topbar-branding {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.brand-viewer strong,
.brand-viewer small {
  display: block;
}

.viewer-topbar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.viewer-stage {
  width: min(1400px, 100%);
  margin: 0 auto;
}

.viewer-titlebar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  padding: 0 0 18px;
}

.viewer-titlebar h1 {
  max-width: none;
  font-size: clamp(2rem, 4vw, 3.5rem);
}

.brochure-viewer-standalone {
  min-height: calc(100vh - 160px);
  border-radius: 28px;
  background: rgba(4, 14, 21, 0.8);
  box-shadow: var(--shadow);
}

.brochure-viewer-standalone .viewer-status,
.brochure-viewer-standalone #pdfFrame,
.brochure-viewer-standalone .pdf-pages {
  min-height: calc(100vh - 160px);
}

.video-modal[hidden] {
  display: none;
}

.video-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
}

.video-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 8, 12, 0.72);
  backdrop-filter: blur(10px);
}

.video-modal-dialog {
  position: relative;
  width: min(960px, calc(100% - 24px));
  margin: min(6vh, 40px) auto;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(10, 26, 36, 0.98), rgba(4, 12, 19, 0.98));
  box-shadow: var(--shadow);
  overflow: hidden;
}

.video-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  font-size: 1.4rem;
  cursor: pointer;
}

.video-modal-media {
  background: #02080c;
}

.video-modal-media iframe,
.video-modal-media video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
}

.video-modal-placeholder {
  display: flex;
  align-items: end;
  min-height: min(70vh, 560px);
  padding: 28px;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.video-modal-placeholder div {
  max-width: 420px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(4, 14, 21, 0.78);
}

.video-modal-placeholder strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1.1rem;
}

.video-modal-placeholder p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.video-modal-copy {
  padding: 22px 24px 26px;
}

.viewer-related {
  margin-top: 28px;
}

.viewer-related-heading {
  padding-top: 0;
}

.viewer-related-grid .listing-card {
  grid-template-rows: 180px auto;
}

.listing-card-compact .listing-card-body {
  padding-bottom: 20px;
}

@media (max-width: 1120px) {
  .listing-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .viewer-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 980px) {
  .hero,
  .section-heading,
  .viewer-header {
    grid-template-columns: 1fr;
  }

  .hero,
  .section-heading {
    grid-template-columns: 1fr;
  }

  .viewer-header {
    display: block;
  }

  .listing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-spotlight {
    grid-template-rows: 280px auto;
  }
}

@media (max-width: 720px) {
  .site-shell {
    width: min(100% - 20px, 1280px);
    padding-top: 12px;
  }

  .topbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero {
    padding-top: 40px;
  }

  .listing-grid {
    grid-template-columns: 1fr;
  }

  .viewer-panel,
  .contact-strip,
  .hero-spotlight {
    border-radius: 22px;
  }

  .viewer-panel,
  .contact-strip {
    padding: 20px;
  }

  .brochure-viewer,
  .viewer-status,
  #pdfFrame,
  .pdf-pages {
    min-height: 620px;
  }

  .pdf-pages {
    padding: 0;
    gap: 0;
  }

  .viewer-topbar,
  .viewer-titlebar {
    flex-direction: column;
    align-items: flex-start;
  }

  .viewer-screen {
    padding: 14px;
  }
}
