/* ==========================================================================
   Guild House & Swain Court — shared stylesheet
   Brand: navy #023B47 / gold #A68444 / cream #F5F2EC
   Font: Sora (Google Fonts)
   ========================================================================== */

:root {
  --navy: #023B47;
  --navy-dark: #012830;
  --gold: #A68444;
  --gold-light: #C7A968;
  --cream: #F5F2EC;
  --cream-2: #EFEBE2;
  --ink: #16201F;
  --grey: #5B6462;
  --white: #ffffff;
  --border: #DCD6C8;
  --radius: 4px;
  --max: 1180px;
  --shadow: 0 12px 34px rgba(2, 30, 37, 0.14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Sora', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: color 0.18s ease; }
ul { margin: 0; padding: 0; }
button { font-family: inherit; cursor: pointer; }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 28px;
}

h1, h2, h3, h4 {
  font-weight: 500;
  margin: 0 0 16px;
  line-height: 1.15;
  letter-spacing: 0.2px;
}

h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); }
h2 {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  padding-bottom: 14px;
  border-bottom: 2px solid var(--gold);
  display: inline-block;
}
h2.no-rule { border-bottom: none; padding-bottom: 0; }
h3 { font-size: 1.15rem; }

p { margin: 0 0 14px; color: var(--ink); }
.lede { color: var(--grey); }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 2.5px;
  font-size: 0.72rem;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 10px;
  display: block;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.3px;
  transition: all 0.18s ease;
}
.btn-gold { background: var(--gold); color: var(--white); }
.btn-gold:hover { background: var(--navy); }
.btn-outline { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-outline:hover { background: var(--navy); color: var(--white); }
.btn-outline-light { border-color: rgba(255,255,255,0.6); color: var(--white); }
.btn-outline-light:hover { background: var(--white); color: var(--navy); }
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(2,30,37,0.16); }
.btn:active { transform: translateY(0); box-shadow: none; }

/* ==================== HEADER / NAV ==================== */
.site-header {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 40;
  padding: 22px 0;
}
.site-header.solid {
  position: sticky;
  background: var(--navy);
  box-shadow: 0 2px 14px rgba(0,0,0,0.15);
  padding: 14px 0;
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; max-width: none; padding: 0 40px; }
.site-header .wrap.no-brand { justify-content: flex-end; }
.home-scroll-top { display: none; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--white); font-weight: 600; letter-spacing: 1px; font-size: 1.05rem; text-transform: uppercase; }
.brand img { height: 64px; width: auto; border-radius: 3px; }

.main-nav { display: flex; align-items: center; gap: 30px; }
.main-nav a {
  color: var(--white);
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.3px;
  opacity: 0.92;
  padding: 6px 0;
  border-bottom: 1px solid transparent;
}
.main-nav a:hover { border-bottom-color: var(--gold); opacity: 1; }
.main-nav a.nav-cta {
  border-bottom: none; padding: 10px 24px; margin-left: 6px;
}
.main-nav a.nav-cta:hover { opacity: 1; }
.main-nav a.nav-residents {
  margin-left: auto;
}
.nav-toggle { display: none; position: relative; z-index: 60; background: none; border: none; color: var(--white); font-size: 1.6rem; line-height: 1; }
.nav-backdrop {
  display: none; position: fixed; inset: 0; z-index: 45;
  background: rgba(1,25,30,0.45); opacity: 0; pointer-events: none;
  transition: opacity 0.28s ease;
}
.nav-backdrop.open { display: block; opacity: 1; pointer-events: auto; }

@media (max-width: 780px) {
  .main-nav {
    position: fixed; inset: 0 0 0 auto; width: 78%; max-width: 320px; z-index: 50;
    background: var(--navy-dark); flex-direction: column; align-items: flex-start;
    padding: 90px 32px; gap: 22px; transform: translateX(100%);
    transition: transform 0.28s ease; box-shadow: -10px 0 30px rgba(0,0,0,0.3);
  }
  .main-nav.open { transform: translateX(0); }
  .main-nav a.nav-residents { margin-left: 0; }
  .main-nav a.nav-cta { margin-left: 0; }
  .nav-toggle { display: block; }
  .site-header .wrap.no-brand { justify-content: space-between; }
  .home-scroll-top {
    display: flex; align-items: center; justify-content: center;
    background: none; border: none; padding: 0; margin: 0; cursor: pointer;
    line-height: 0;
  }
  .home-scroll-top img { height: 34px; width: auto; display: block; }
}

/* ==================== HERO ==================== */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: flex-end;
  background-size: cover;
  background-position: center;
  color: var(--white);
}
.hero::after {
  content: "";
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(1,25,30,0.15) 0%, rgba(1,25,30,0.05) 40%, rgba(1,25,30,0.55) 100%);
}
.hero-inner { position: relative; z-index: 2; width: 100%; padding-bottom: 56px; }

/* Drone hero: a slow, subtle drift/zoom on the aerial photo, like the drone is still hovering */
.hero-drone { overflow: hidden; }
.hero-drone .hero-bg {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%; object-fit: cover;
  transform-origin: center center;
  animation: droneDrift 26s ease-in-out infinite alternate;
  will-change: transform;
}
@keyframes droneDrift {
  0%   { transform: scale(1.08) translate(0%, 0%); }
  50%  { transform: scale(1.15) translate(-1.8%, -1.2%); }
  100% { transform: scale(1.1) translate(1.6%, 1%); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-drone .hero-bg { animation: none; transform: scale(1.02); }
}

/* Full-bleed homepage hero — logo badge, headline, stat bar, dual CTAs */
.hero-full { align-items: center; padding-top: 90px; }
.hero-full::after {
  background: linear-gradient(100deg, rgba(1,25,30,0.72) 0%, rgba(1,25,30,0.45) 42%, rgba(1,25,30,0.18) 75%);
}
.hero-full .hero-inner { padding-bottom: 0; }
.hero-logo-badge {
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 26px;
}
.hero-logo-badge img { height: 140px; width: auto; display: block; }
.hero-content { max-width: 640px; }
.hero-tenure {
  display: inline-flex; flex-direction: column; line-height: 1.15; color: var(--white);
  border-left: 3px solid var(--gold); padding-left: 14px; margin-bottom: 18px;
}
.hero-tenure span:first-child { font-size: 0.8rem; letter-spacing: 1px; text-transform: uppercase; opacity: 0.85; }
.hero-tenure span:last-child { font-size: 1.15rem; font-weight: 700; color: var(--gold-light); text-transform: uppercase; letter-spacing: 0.5px; }
.hero-headline {
  color: var(--white); font-size: 3rem; line-height: 1.08; margin-bottom: 12px;
  text-transform: none; letter-spacing: -0.5px;
}
.hero-subline { color: rgba(255,255,255,0.92); font-size: 1.05rem; margin-bottom: 10px; }
.hero-subline .subline-break { display: none; }
.hero-tag {
  color: var(--gold-light); font-size: 0.85rem; font-weight: 600;
  letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 30px;
  text-shadow: 0 2px 6px rgba(0,0,0,0.55);
}
.hero-stats {
  display: flex; align-items: stretch; gap: 26px; margin-bottom: 32px;
  padding-bottom: 30px; border-bottom: 1px solid rgba(255,255,255,0.25);
}
.hero-stat {
  display: flex; flex-direction: column; gap: 2px;
  padding-right: 26px; border-right: 1px solid rgba(199,169,104,0.55);
}
.hero-stat:last-child { border-right: none; padding-right: 0; }
.hero-stat strong { color: var(--white); font-size: 1.5rem; font-weight: 700; line-height: 1; }
.hero-stat span { color: rgba(255,255,255,0.75); font-size: 0.78rem; letter-spacing: 0.5px; text-transform: uppercase; }
.availability-tag {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 18px; margin: 0 0 22px; border-radius: 999px;
  font-size: 0.92rem; font-weight: 600; line-height: 1.2;
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.35);
  color: var(--white); backdrop-filter: blur(2px);
}
.availability-tag[hidden] { display: none; }
.availability-tag .dot {
  width: 9px; height: 9px; border-radius: 50%; flex: 0 0 auto;
  background: var(--grey);
}
.availability-tag.is-available {
  background: rgba(63, 167, 114, 0.16); border-color: rgba(63, 167, 114, 0.55);
}
.availability-tag.is-available .dot { background: #3FA772; box-shadow: 0 0 0 3px rgba(63,167,114,0.25); }
.availability-tag.is-unavailable {
  background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.3);
}
.availability-tag.is-unavailable .dot { background: rgba(255,255,255,0.55); }
@media (max-width: 480px) {
  .availability-tag { font-size: 0.82rem; padding: 9px 14px; }
}
.hero-ctas { display: flex; gap: 16px; margin-bottom: 30px; flex-wrap: wrap; }
.hero-socials { display: flex; gap: 12px; }
.hero-socials a {
  width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,0.14);
  display: flex; align-items: center; justify-content: center; color: var(--white);
  transition: background 0.18s ease, color 0.18s ease;
}
.hero-socials a:hover { background: var(--gold); }
.hero-socials svg { display: block; }

@media (max-width: 780px) {
  .hero-full { padding-top: 46px; align-items: flex-start; }
  .hero-logo-badge { margin-bottom: 12px; }
  .hero-logo-badge img { height: 68px; }
  .hero-headline { font-size: 2.1rem; margin-bottom: 8px; }
  .hero-subline { margin-bottom: 6px; }
  .hero-tag { margin-bottom: 16px; }
  .hero-stats { gap: 16px; flex-wrap: wrap; margin-bottom: 18px; padding-bottom: 16px; }
  .hero-stat { padding-right: 16px; }
  .hero-stat:last-child { flex-direction: row; align-items: baseline; gap: 6px; }
  .hero-subline .subline-break { display: inline; }
  .hero-ctas { flex-wrap: nowrap; gap: 10px; margin-bottom: 20px; }
  .hero-ctas .btn { flex: 1 1 0; padding: 12px 8px; font-size: 0.8rem; white-space: normal; }
  .hero-socials { margin-top: 0; }
}
@media (max-width: 480px) {
  .hero-stats { gap: 14px 20px; }
  .hero-stat { min-width: 40%; border-right: none; padding-right: 0; }
}

.hero-card {
  background: rgba(245, 242, 236, 0.97);
  color: var(--ink);
  padding: 34px 40px;
  max-width: 560px;
  box-shadow: var(--shadow);
}
.hero-card .rule { width: 60px; height: 2px; background: var(--navy); margin-bottom: 18px; }
.hero-card h1 { text-transform: uppercase; margin-bottom: 6px; }
.hero-card .addr { color: var(--grey); font-size: 0.98rem; margin-bottom: 18px; }
.hero-card .socials { display: flex; gap: 10px; }
.hero-card .socials a {
  width: 36px; height: 36px; border-radius: 50%; background: #E2DED4;
  display: flex; align-items: center; justify-content: center; color: var(--navy);
  transition: background 0.18s ease, color 0.18s ease;
}
.hero-card .socials a:hover { background: var(--gold); color: var(--white); }
.hero-card .socials svg { display: block; }

/* smaller hero used on inner pages */
.hero.hero-sm { min-height: 62vh; align-items: center; justify-content: center; text-align: center; }
.hero.hero-sm .hero-card { max-width: 640px; margin: 0 auto; text-align: center; }
.hero.hero-sm .hero-card .rule { margin-left: auto; margin-right: auto; }
.hero.hero-sm .hero-card .socials { justify-content: center; }

/* ==================== INTRO / TWO COL ==================== */
.section { padding: 88px 0; }
.section.tight { padding: 56px 0; }
.two-col {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 60px;
  align-items: center;
}
.two-col.reverse { direction: rtl; }
.two-col.reverse > * { direction: ltr; }
.two-col img, .two-col .frame { border-radius: var(--radius); box-shadow: var(--shadow); }
@media (max-width: 860px) {
  .two-col { grid-template-columns: 1fr; gap: 32px; }
  .two-col.reverse { direction: ltr; }
}
@media (max-width: 780px) {
  /* The full photo gallery further down the page already covers this
     room, so on mobile we skip straight to the page-break photo. */
  .welcome-photo { display: none; }
}

.feature-list { list-style: none; margin: 22px 0; }
.feature-list li {
  position: relative; padding-left: 30px; margin-bottom: 12px; font-size: 1.02rem;
}
.feature-list li::before {
  content: "";
  position: absolute; left: 0; top: 9px;
  width: 8px; height: 8px; background: var(--gold);
}

/* ==================== DARK PANEL (specs) ==================== */
.panel-dark {
  background: var(--navy);
  color: var(--white);
}
.panel-dark h2 { border-bottom-color: var(--gold-light); }
.panel-dark .lede { color: rgba(255,255,255,0.72); }
.spec-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px 40px;
  margin-top: 20px;
}
.spec-block .eyebrow { color: var(--gold-light); }
.spec-block ul { list-style: none; }
.spec-block li {
  font-size: 0.92rem; color: rgba(255,255,255,0.85);
  padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,0.09);
}
.spec-q {
  width: 100%; text-align: left; background: none; border: none; cursor: default;
  padding: 0; display: flex; align-items: center; justify-content: space-between; gap: 14px;
}
.spec-q .plus { display: none; font-size: 1.3rem; color: var(--gold-light); transition: transform 0.2s ease; flex-shrink: 0; }
.spec-a { max-height: none; overflow: visible; }
.spec-a-inner { padding-top: 14px; }
@media (max-width: 900px) { .spec-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .spec-grid { grid-template-columns: 1fr; } }
@media (max-width: 780px) {
  .spec-block { border-bottom: 1px solid rgba(255,255,255,0.14); padding-bottom: 6px; }
  .spec-q { cursor: pointer; padding: 16px 2px; }
  .spec-q .plus { display: block; }
  .spec-block.open .spec-q .plus { transform: rotate(45deg); }
  .spec-a { max-height: 0; overflow: hidden; transition: max-height 0.25s ease; }
  .spec-a-inner { padding: 0 2px 18px; }
}

.spec-gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 40px; }
.spec-gallery img { border-radius: var(--radius); }
@media (max-width: 780px) {
  /* The full photo gallery further down the page already covers these
     rooms, so on mobile we skip straight to the page-break photo. */
  .spec-gallery { display: none; }
}

/* ==================== FLOORPLANS ==================== */
.plan-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 30px;
}
.plan-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 22px;
  text-align: center;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.plan-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.plan-card .icon {
  width: 52px; height: 52px; margin: 0 auto 16px;
  border-radius: 50%; background: var(--cream-2);
  display: flex; align-items: center; justify-content: center; color: var(--gold);
}
.plan-card h3 { margin-bottom: 4px; }
.plan-card span.note { font-size: 0.82rem; color: var(--grey); }
@media (max-width: 780px) { .plan-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .plan-grid { grid-template-columns: 1fr; } }

.plan-disclaimer {
  margin-top: 26px; font-size: 0.85rem; color: var(--grey); font-style: italic;
}

/* ==================== MAP ==================== */
.map-frame {
  border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow);
}
.map-frame iframe { width: 100%; height: 340px; border: 0; display: block; }

/* ==================== PETERBOROUGH ==================== */
.city-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 34px 46px; margin-top: 10px;
}
.city-item h3 { color: var(--navy); margin-bottom: 6px; }
.city-item p { font-size: 0.95rem; color: var(--grey); }
@media (max-width: 780px) { .city-grid { grid-template-columns: 1fr; } }

/* ==================== CONTACT / AGENTS ==================== */
.agent-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 34px;
}
.agent-card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 30px 26px; text-align: center;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.agent-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.agent-card h3 { color: var(--navy); }
.agent-card a.tel { display: block; font-weight: 600; color: var(--navy); margin-top: 10px; }
.agent-card a.mail { display: block; font-size: 0.88rem; color: var(--grey); margin-top: 4px; word-break: break-word; }
@media (max-width: 860px) { .agent-grid { grid-template-columns: 1fr; } }
.enquiry-note {
  margin-top: 26px; padding-top: 26px; border-top: 1px solid var(--border);
}
.enquiry-note-label {
  display: block; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.8px;
  text-transform: uppercase; color: var(--grey); margin-bottom: 6px;
}
.enquiry-note a.mail { font-size: 0.95rem; color: var(--navy); font-weight: 600; }

/* ==================== FOOTER ==================== */
.site-footer {
  background: var(--navy-dark); color: rgba(255,255,255,0.75);
  padding: 40px 0; font-size: 0.85rem;
}
.site-footer .wrap { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px; }
.site-footer a:hover { color: var(--gold-light); }

/* ==================== TENANT PAGE SPECIFIC ==================== */
.gate-screen {
  position: fixed; inset: 0; z-index: 100;
  background: var(--navy);
  display: none; align-items: center; justify-content: center;
  padding: 24px;
}
.gate-screen.open { display: flex; }
.gate-box {
  background: var(--cream);
  max-width: 420px; width: 100%;
  padding: 44px 38px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;
  position: relative;
}
.gate-box img.logo { height: 46px; margin: 0 auto 22px; }
.gate-box h1 { font-size: 1.5rem; margin-bottom: 6px; }
.gate-box p.sub { color: var(--grey); font-size: 0.92rem; margin-bottom: 26px; }
.gate-box input[type="password"] {
  width: 100%; padding: 13px 16px; font-size: 1rem;
  border: 1px solid var(--border); border-radius: var(--radius);
  margin-bottom: 14px; font-family: inherit; background: var(--white);
}
.gate-box input[type="password"]:focus { outline: 2px solid var(--gold); border-color: var(--gold); }
.gate-box .btn { width: 100%; justify-content: center; }
.gate-error {
  color: #A93E3E; font-size: 0.86rem; margin-top: 12px; min-height: 18px;
}
.gate-hint { margin-top: 20px; font-size: 0.8rem; color: var(--grey); }

#tenant-content { display: none; }
#tenant-content.unlocked { display: block; }
/* The sticky header overlaps whatever scrolls to the very top of the
   viewport, so without this the "Welcome to your new home" heading lands
   half-hidden behind it right after the password unlocks the page. */
#tenant-content { scroll-margin-top: 112px; }
.emergency .phone-nowrap { white-space: nowrap; }

.addr-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin: 26px 0;
}
.addr-card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px 26px;
}
.addr-card h3 { color: var(--navy); margin-bottom: 8px; }
@media (max-width: 780px) { .addr-grid { grid-template-columns: 1fr; } }

.download-list { list-style: none; margin: 18px 0; }
.download-list li {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 13px 18px; margin-bottom: 8px;
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  font-size: 0.94rem;
}
.download-list a.dl-link {
  color: var(--navy); font-weight: 600; display: inline-flex; align-items: center; gap: 8px;
}
.download-list a.dl-link:hover { color: var(--gold); }

.guide-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 24px;
}
.guide-card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow);
  transition: transform 0.2s ease;
}
.guide-card:hover { transform: translateY(-3px); }
.guide-card video { display: block; width: 100%; aspect-ratio: 9 / 16; height: auto; background: #000; object-fit: contain; }
.guide-card h3 { padding: 14px 16px; font-size: 0.98rem; color: var(--navy); }
@media (max-width: 900px) { .guide-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) {
  .guide-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 16px; }
  .guide-card h3 { padding: 8px 10px; font-size: 0.8rem; }
}

.faq-list { margin-top: 20px; }
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-q {
  width: 100%; text-align: left; background: none; border: none;
  padding: 20px 4px; font-size: 1.02rem; font-weight: 600; color: var(--navy);
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
}
.faq-q .plus { font-size: 1.3rem; color: var(--gold); transition: transform 0.2s ease; flex-shrink: 0; }
.faq-item.open .faq-q .plus { transform: rotate(45deg); }
.faq-a {
  max-height: 0; overflow: hidden; transition: max-height 0.25s ease;
  font-size: 0.95rem; color: var(--grey);
}
.faq-a-inner { padding: 0 4px 20px; }
.faq-a p, .faq-a ul { margin-bottom: 10px; }
.faq-a ul { padding-left: 20px; }
.faq-a a { color: var(--navy); text-decoration: underline; }

.notice-band {
  background: var(--cream-2); border-left: 3px solid var(--gold);
  padding: 16px 20px; font-size: 0.92rem; color: var(--grey); margin: 22px 0;
}

/* utility */
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.section-head { max-width: 640px; margin: 0 auto 40px; text-align: center; }

/* ==================== PAGE BREAK BANDS ==================== */
.page-break-img { width: 100%; height: 220px; overflow: hidden; }
.page-break-img img { display: block; width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 780px) { .page-break-img { height: 140px; } }

/* ==================== GALLERY ==================== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 30px;
}
.gallery-item {
  display: block; width: 100%; padding: 0; margin: 0; border: none; background: none;
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  aspect-ratio: 4 / 3; cursor: pointer;
}
.gallery-item img {
  width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease;
}
.gallery-item:hover img { transform: scale(1.05); }
@media (max-width: 860px) { .gallery-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .gallery-grid { grid-template-columns: 1fr; } }

/* ==================== LIGHTBOX (floorplans + gallery) ==================== */
.lb-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(1, 20, 25, 0.88);
  display: none; align-items: center; justify-content: center;
  padding: 30px 20px;
}
.lb-overlay.open { display: flex; }
.lb-inner {
  position: relative;
  max-width: 960px; width: 100%; max-height: 90vh;
  display: flex; flex-direction: column; align-items: center; gap: 14px;
}
.lb-title { color: var(--white); margin: 0; text-align: center; }
.lb-stage {
  position: relative; width: 100%; max-width: 840px; height: 64vh;
  margin: 0 auto;
  display: flex; align-items: center; justify-content: center;
}
.lb-img {
  max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain;
  border-radius: var(--radius); box-shadow: var(--shadow); background: var(--white);
}
/* Arrows are anchored to the fixed-size stage, not to the image itself, so
   they stay in exactly the same screen position no matter how the current
   image's aspect ratio differs from the last one (important when clicking
   through floorplans of different shapes without moving the mouse). */
.lb-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  background: rgba(2, 59, 71, 0.65); border: none; color: var(--white);
  width: 46px; height: 46px; border-radius: 50%; font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  cursor: pointer; transition: background 0.18s ease;
  box-shadow: 0 2px 10px rgba(0,0,0,0.25);
}
.lb-nav:hover { background: var(--gold); }
.lb-nav.lb-prev { left: 0; }
.lb-nav.lb-next { right: 0; }
.lb-close {
  position: absolute; top: -6px; right: 0; background: none; border: none;
  color: var(--white); font-size: 2rem; line-height: 1; cursor: pointer; padding: 6px 10px;
}
.lb-caption { color: rgba(255,255,255,0.8); font-size: 0.88rem; text-align: center; min-height: 18px; }
.lb-tabs { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; max-width: 100%; }
.lb-tab {
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2); color: var(--white);
  padding: 8px 16px; border-radius: 20px; font-size: 0.82rem; font-family: inherit; cursor: pointer;
  transition: all 0.18s ease;
}
.lb-tab:hover { background: rgba(255,255,255,0.2); }
.lb-tab.active { background: var(--gold); border-color: var(--gold); }
@media (max-width: 600px) {
  .lb-nav { width: 38px; height: 38px; font-size: 0.95rem; }
  .lb-stage { height: 52vh; }
}

/* ==================== MATTERPORT ==================== */
.matterport-frame {
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  max-width: 960px; margin: 0 auto;
}
.matterport-frame iframe { width: 100%; height: 480px; border: 0; display: block; }
@media (max-width: 700px) { .matterport-frame iframe { height: 320px; } }

.tour-tabs { display: flex; gap: 10px; justify-content: center; margin-bottom: 18px; }
.tour-tab {
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2); color: var(--white);
  padding: 8px 20px; border-radius: 20px; font-size: 0.85rem; font-family: inherit; cursor: pointer;
  transition: all 0.18s ease;
}
.tour-tab:hover { background: rgba(255,255,255,0.2); }
.tour-tab.active { background: var(--gold); border-color: var(--gold); }

/* ==================== PETERBOROUGH LANDMARK STRIP ==================== */
.landmark-strip {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
  margin: 8px 0 40px;
}
.landmark-strip figure { margin: 0; overflow: hidden; border-radius: var(--radius); box-shadow: var(--shadow); }
.landmark-strip img {
  height: 190px; width: 100%; object-fit: cover; transition: transform 0.35s ease;
}
.landmark-strip figure:hover img { transform: scale(1.06); }
.landmark-strip figcaption {
  text-align: center; margin-top: 10px; font-size: 0.85rem; color: var(--grey);
}
@media (max-width: 780px) { .landmark-strip { grid-template-columns: 1fr; } }

/* ==================== TENANT LANDING PAGE ==================== */
.landing-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 26px; margin-top: 10px;
}
.landing-card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 38px 32px; text-align: center; display: flex; flex-direction: column;
}
.landing-card h3 { color: var(--navy); margin-bottom: 10px; }
.landing-card p { color: var(--grey); font-size: 0.94rem; margin-bottom: 22px; flex-grow: 1; }
.landing-card .btn { width: 100%; justify-content: center; }
@media (max-width: 780px) { .landing-grid { grid-template-columns: 1fr; } }

.contact-block {
  background: var(--navy); color: var(--white);
  border-radius: var(--radius); padding: 30px 32px; margin-top: 40px; text-align: center;
}
.contact-block h3 { color: var(--gold-light); margin-bottom: 10px; }
.contact-block p { color: rgba(255,255,255,0.85); margin-bottom: 4px; }

/* ==================== REVIEWS WIDGET (Mirror embed) ==================== */
.reviews-widget-wrap { margin-top: 34px; }

/* ==================== HERO GOOGLE RATING BADGE ==================== */
.hero-review-badge {
  position: absolute; z-index: 3; right: 40px; bottom: 40px;
  display: flex; align-items: center; gap: 10px;
  background: rgba(245, 242, 236, 0.96);
  padding: 10px 18px; border-radius: 999px;
  box-shadow: var(--shadow); text-decoration: none;
}
.hero-review-badge .hero-review-text { display: flex; flex-direction: column; line-height: 1.2; }
.hero-review-badge strong { color: var(--ink); font-size: 1rem; font-weight: 700; }
.hero-review-badge .stars { color: #F4B400; font-size: 0.8rem; letter-spacing: 1px; }
.hero-review-badge .review-count { color: var(--grey); font-size: 0.72rem; }
@media (max-width: 780px) {
  .hero-review-badge { display: none; }
}
.contact-block a { color: var(--white); text-decoration: underline; }
.contact-block .emergency { color: var(--gold-light); font-weight: 600; }

/* ==================== REQUEST ACCESS MODAL ==================== */
.request-modal {
  position: fixed; inset: 0; z-index: 110;
  background: rgba(1, 25, 30, 0.6);
  display: none; align-items: center; justify-content: center; padding: 24px;
}
.request-modal.open { display: flex; }
.request-modal-inner {
  background: var(--cream); max-width: 480px; width: 100%;
  padding: 40px 36px; border-radius: var(--radius); box-shadow: var(--shadow);
  position: relative; max-height: 90vh; overflow-y: auto;
}
.request-modal-close {
  position: absolute; top: 14px; right: 16px; background: none; border: none;
  font-size: 1.7rem; color: var(--grey); line-height: 1; cursor: pointer;
}
.request-modal h3 { color: var(--navy); }
.request-modal form label {
  display: block; font-size: 0.85rem; font-weight: 600; color: var(--navy); margin-bottom: 16px;
}
.request-modal form input, .request-modal form textarea {
  width: 100%; margin-top: 6px; padding: 11px 14px; border: 1px solid var(--border);
  border-radius: var(--radius); font-family: inherit; font-size: 0.95rem; background: var(--white);
  resize: vertical;
}
.request-modal form input:focus, .request-modal form textarea:focus {
  outline: 2px solid var(--gold); border-color: var(--gold);
}

/* ==================== FLOORPLAN CARDS AS TRIGGERS ==================== */
.plan-card { cursor: pointer; }

/* ==================== DISABLED / COMING SOON DOWNLOAD LINKS ==================== */
.download-list a.dl-link.disabled {
  color: var(--grey); font-weight: 500; cursor: default; pointer-events: none;
  display: inline-flex; align-items: center; gap: 6px;
}
.download-list li.pending { opacity: 0.75; }
.dl-badge {
  font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.5px;
  background: var(--cream-2); color: var(--grey); padding: 3px 9px; border-radius: 12px;
  border: 1px solid var(--border);
}

/* ==================== SCROLL REVEAL ==================== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.in-view { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ==================== HEADER SCROLL SHADOW ==================== */
.site-header.solid.scrolled { box-shadow: 0 4px 20px rgba(0,0,0,0.28); }
