/* ==========================================
   ALPHA5MK — Master Stylesheet
   Design: Dark navy + white + gold accent
   Inspired by: Lighthouse Living, K5 Equities,
   Rudin, Timberline, Spinnaker
   ========================================== */

/* ---- RESET & BASE ---- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --navy: #0f1c2e;
  --navy-light: #1a2d47;
  --navy-mid: #243b5c;
  --gold: #c9a96e;
  --gold-light: #dfc28a;
  --cream: #f8f6f1;
  --white: #ffffff;
  --gray-100: #f5f5f5;
  --gray-200: #e8e8e8;
  --gray-300: #d1d1d1;
  --gray-500: #888888;
  --gray-700: #555555;
  --gray-900: #222222;
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --max-width: 1200px;
  --header-height: 80px;
  --transition: 0.3s ease;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--gray-900);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

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

/* ---- PLACEHOLDER IMAGES ---- */
.placeholder-img {
  width: 100%;
  height: 100%;
  min-height: 250px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.3);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  gap: 12px;
}

.placeholder-img svg {
  width: 48px;
  height: 48px;
  opacity: 0.4;
}

.placeholder-img::after {
  content: attr(data-label);
  opacity: 0.5;
}

/* ---- BUTTONS ---- */
.btn {
  display: inline-block;
  padding: 14px 32px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.btn-primary {
  background: var(--gold);
  color: var(--navy);
}

.btn-primary:hover {
  background: var(--gold-light);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.5);
}

.btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--white);
}

.btn-dark {
  background: var(--navy);
  color: var(--white);
}

.btn-dark:hover {
  background: var(--navy-light);
}

.btn-full {
  width: 100%;
  text-align: center;
}

/* ---- SECTION TAGS & HEADINGS ---- */
.section-tag {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}

.section-heading {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 500;
  line-height: 1.2;
  color: var(--navy);
  margin-bottom: 24px;
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

/* ==========================================
   HEADER / NAV
   ========================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--navy);
  transition: box-shadow 0.4s ease;
}

.site-header.scrolled {
  box-shadow: 0 2px 20px rgba(0,0,0,0.15);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-text {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 3px;
}

.logo-accent {
  color: var(--gold);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  transition: var(--transition);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.3s ease;
}

.nav-link:hover {
  color: var(--white);
}

.nav-link:hover::after {
  width: 100%;
}

.nav-cta {
  background: var(--gold);
  color: var(--navy) !important;
  padding: 10px 20px;
  font-weight: 600;
}

.nav-cta::after {
  display: none;
}

.nav-cta:hover {
  background: var(--gold-light);
}

/* Hamburger */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: var(--transition);
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ==========================================
   HERO
   ========================================== */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--navy);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../images/hero-rye.jpg') center/cover no-repeat;
  background-image: image-set(url('../images/hero-rye.webp') type('image/webp'), url('../images/hero-rye.jpg') type('image/jpeg'));
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15,28,46,0.35) 0%, rgba(15,28,46,0.65) 60%, rgba(15,28,46,0.85) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 960px;
  padding: 0 24px;
}

.nowrap {
  white-space: nowrap;
}

.hero-headline {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 500;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 24px;
}

.hero-accent {
  color: var(--gold);
}

.hero-sub {
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  color: rgba(255,255,255,0.75);
  line-height: 1.7;
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.4);
  font-size: 0.7rem;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(180deg, rgba(255,255,255,0.4) 0%, transparent 100%);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(1.3); }
}

/* ==========================================
   STATS BAR
   ========================================== */
.stats-bar {
  background: var(--navy);
  padding: calc(var(--header-height) + 48px) 0 48px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.stats-bar .container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  text-align: center;
}

.stat-number {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 8px;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1, "lnum" 1;
  min-width: 6ch;
  text-align: center;
}

.stat-label {
  display: block;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.6);
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* ==========================================
   ABOUT
   ========================================== */
.about {
  padding: 100px 0;
  background: var(--white);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.about-text p {
  color: var(--gray-700);
  margin-bottom: 20px;
  font-size: 1rem;
  line-height: 1.8;
}

.about-text .btn {
  margin-top: 16px;
}

.about-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.about-img-main {
  grid-column: 1 / -1;
  height: 300px;
  overflow: hidden;
}

.about-img-main img,
.about-img-secondary img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-img-secondary {
  grid-column: 1 / -1;
  height: 200px;
  overflow: hidden;
}

/* ==========================================
   PROPERTIES
   ========================================== */
.properties {
  padding: 100px 0;
  background: var(--cream);
}

/* Filter Tabs */
.filter-tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 48px;
}

.filter-btn {
  padding: 10px 24px;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  background: transparent;
  border: 1px solid var(--gray-300);
  color: var(--gray-700);
  cursor: pointer;
  transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

/* Property Grid */
.property-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.property-card {
  background: var(--white);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.property-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.1);
}

.property-card.hidden {
  display: none;
}

.property-img {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.property-img .placeholder-img {
  min-height: 220px;
}

.property-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.property-card:hover .property-img img {
  transform: scale(1.05);
}

.property-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--gold);
  color: var(--navy);
  padding: 6px 14px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.property-badge.badge-coming {
  background: var(--navy-mid);
  color: var(--white);
}

.property-info {
  padding: 24px;
}

.property-type {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}

.property-name {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 4px;
}

.property-name a {
  color: inherit;
  text-decoration: none;
}

.property-location {
  font-size: 0.85rem;
  color: var(--gray-500);
  margin-bottom: 12px;
}

.property-desc {
  font-size: 0.9rem;
  color: var(--gray-700);
  line-height: 1.6;
  margin-bottom: 16px;
}

.property-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.property-meta span {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  padding: 4px 10px;
  background: var(--cream);
  color: var(--gray-700);
  border-radius: 2px;
}

.property-link {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--navy);
  transition: var(--transition);
}

.property-link:hover {
  color: var(--gold);
}

/* Location Sub-Headers */
.location-header {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 500;
  color: var(--navy);
  margin-top: 48px;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--gold);
  display: inline-block;
}

.location-header:first-of-type {
  margin-top: 0;
}

/* ==========================================
   APPROACH
   ========================================== */
.approach {
  padding: 100px 0;
  background: var(--white);
}

.approach-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.approach-card {
  text-align: center;
  padding: 32px 20px;
}

.approach-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
}

.approach-icon svg {
  width: 40px;
  height: 40px;
}

.approach-card h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 12px;
}

.approach-card p {
  font-size: 0.9rem;
  color: var(--gray-700);
  line-height: 1.7;
}

/* ==========================================
   TESTIMONIALS
   ========================================== */
.testimonials {
  padding: 100px 0;
  background: var(--navy);
  color: var(--white);
}

.testimonials .section-heading {
  color: var(--white);
}

.testimonial-slider {
  position: relative;
  max-width: 700px;
  margin: 0 auto;
  min-height: 180px;
}

.testimonial-card {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  text-align: center;
}

.testimonial-card.active {
  opacity: 1;
  transform: translateY(0);
  position: relative;
}

.testimonial-card blockquote {
  font-family: var(--font-heading);
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  font-weight: 400;
  font-style: italic;
  line-height: 1.7;
  color: rgba(255,255,255,0.9);
  margin-bottom: 24px;
}

.testimonial-card cite {
  font-style: normal;
  font-size: 0.85rem;
  color: var(--gold);
  letter-spacing: 1px;
}

.testimonial-dots {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.3);
  background: transparent;
  cursor: pointer;
  transition: var(--transition);
}

.dot.active {
  background: var(--gold);
  border-color: var(--gold);
}

/* ==========================================
   CONTACT
   ========================================== */
.contact {
  padding: 100px 0;
  background: var(--cream);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.contact-info p {
  color: var(--gray-700);
  line-height: 1.7;
  margin-bottom: 32px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.contact-item svg {
  flex-shrink: 0;
  color: var(--gold);
  margin-top: 3px;
}

.contact-item a {
  color: var(--navy);
  font-weight: 500;
  border-bottom: 1px solid transparent;
  transition: var(--transition);
}

.contact-item a:hover {
  border-bottom-color: var(--gold);
}

/* Form */
.contact-form-wrap {
  background: var(--white);
  padding: 40px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  border: 1px solid var(--gray-200);
  background: var(--gray-100);
  color: var(--gray-900);
  transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--navy);
  background: var(--white);
}

.form-group textarea {
  resize: vertical;
}

.form-submit {
  width: 100%;
}

.hp-field {
  display: none;
}

.form-success {
  background: var(--navy);
  color: var(--gold-light);
  padding: 14px 20px;
  margin-bottom: 24px;
  font-size: 0.95rem;
}

/* ==========================================
   FOOTER
   ========================================== */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.7);
  padding-top: 72px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  align-items: start;
  gap: 56px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand {
  max-width: 340px;
}

.footer-logo {
  display: block;
  margin-bottom: 18px;
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.7;
}

.footer-nav h4,
.footer-properties h4,
.footer-contact h4 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 20px;
}

.footer-nav a,
.footer-properties a {
  display: block;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 10px;
  transition: var(--transition);
}

.footer-nav a:hover,
.footer-properties a:hover {
  color: var(--gold);
}

.footer-contact p {
  font-size: 0.85rem;
  margin-bottom: 12px;
  line-height: 1.6;
}

.footer-contact a {
  font-size: 0.85rem;
  color: var(--gold);
  transition: var(--transition);
}

.footer-contact a:hover {
  color: var(--gold-light);
}

.footer-bottom {
  padding: 20px 0;
}

.footer-bottom .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
  transition: var(--transition);
}

.footer-links a:hover {
  color: rgba(255,255,255,0.7);
}

/* ==========================================
   RESPONSIVE
   ========================================== */
@media (max-width: 1024px) {
  .property-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
  }

  .footer-brand {
    grid-column: 1 / -1;
    max-width: 480px;
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }

  .main-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--navy);
    flex-direction: column;
    justify-content: center;
    gap: 24px;
    padding: 40px;
    transition: right 0.4s ease;
    box-shadow: -4px 0 20px rgba(0,0,0,0.3);
  }

  .main-nav.open {
    right: 0;
  }

  .nav-link {
    font-size: 1rem;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

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

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

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .contact-form-wrap {
    padding: 24px;
  }

  .stats-bar .container {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-brand {
    grid-column: auto;
  }

  .footer-bottom .container {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .filter-tabs {
    flex-wrap: wrap;
  }

  .form-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .hero-headline {
    font-size: 2rem;
  }

  .hero-ctas {
    flex-direction: column;
    align-items: center;
  }

  .stats-bar .container {
    grid-template-columns: 1fr;
  }
}

/* ==========================================
   ANIMATIONS (scroll-triggered via JS)
   ========================================== */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================
   PROPERTY CARD — Clickable hint
   ========================================== */
.property-card[data-gallery] {
  cursor: pointer;
}

.property-card[data-gallery] .property-img::before {
  content: 'View Gallery';
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(15,28,46,0.85);
  color: var(--gold);
  font-size: 0.7rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-weight: 600;
  padding: 7px 12px;
  border-radius: 2px;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 2;
  pointer-events: none;
}

.property-card[data-gallery]:hover .property-img::before {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================
   GALLERY MODAL — Grid + Single views
   ========================================== */
.gallery-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: #0a1220;
  display: none;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.gallery-modal.open {
  display: block;
  animation: galleryFadeIn 0.2s ease;
}

@keyframes galleryFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ---- GRID VIEW ---- */
.gallery-grid-view {
  display: none;
  max-width: 1480px;
  margin: 0 auto;
  padding: 0 28px 80px;
}

.gallery-modal.mode-grid .gallery-grid-view {
  display: block;
}

.gallery-grid-header {
  position: sticky;
  top: 0;
  background: rgba(10, 18, 32, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 22px 0 20px;
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  z-index: 5;
  border-bottom: 1px solid rgba(201,169,110,0.18);
}

.gallery-grid-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--white);
  margin: 0;
  line-height: 1.25;
  letter-spacing: 0.2px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
}

.gallery-thumb {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #111c2e;
  cursor: pointer;
  border: 0;
  padding: 0;
  outline: 1px solid transparent;
  outline-offset: -1px;
  transition: outline-color 0.25s ease, transform 0.25s ease;
}

.gallery-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,18,32,0) 55%, rgba(10,18,32,0.35) 100%);
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.gallery-thumb:hover {
  outline-color: var(--gold);
}

.gallery-thumb:hover img {
  transform: scale(1.04);
}

.gallery-thumb:hover::after {
  opacity: 1;
}

.gallery-thumb:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

/* ---- SINGLE-IMAGE VIEW ---- */
.gallery-single-view {
  display: none;
  position: fixed;
  inset: 0;
  flex-direction: column;
  padding: 72px 80px 88px;
}

.gallery-modal.mode-single .gallery-single-view {
  display: flex;
}

.gallery-stage {
  flex: 1;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-height: 0;
}

.gallery-image-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  position: relative;
}

.gallery-image {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  animation: galleryImgFade 0.3s ease;
  transition: opacity 0.2s ease;
}

.gallery-image.is-loading {
  opacity: 0.35;
}

.gallery-image-wrap::before {
  content: '';
  position: absolute;
  width: 28px;
  height: 28px;
  border: 2px solid rgba(255,255,255,0.15);
  border-top-color: var(--gold);
  border-radius: 50%;
  opacity: 0;
  animation: gallerySpin 0.8s linear infinite;
  pointer-events: none;
}

.gallery-image-wrap:has(.is-loading)::before {
  opacity: 1;
}

@keyframes gallerySpin {
  to { transform: rotate(360deg); }
}

@keyframes galleryImgFade {
  from { opacity: 0; }
  to { opacity: 1; }
}

.gallery-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  color: rgba(255,255,255,0.75);
  padding: 0 4px;
}

.gallery-caption {
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: 0.3px;
  color: rgba(255,255,255,0.9);
}

.gallery-counter {
  font-family: var(--font-heading);
  font-size: 0.82rem;
  letter-spacing: 3px;
  color: var(--gold);
  font-weight: 500;
  white-space: nowrap;
  text-transform: uppercase;
}

.gallery-close {
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  color: var(--white);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  flex-shrink: 0;
}

.gallery-single-view .gallery-close {
  position: absolute;
  top: 20px;
  right: 24px;
  z-index: 10;
}

.gallery-close:hover {
  background: var(--gold);
  color: var(--navy);
  border-color: var(--gold);
}

.gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 50%;
  color: var(--white);
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  z-index: 10;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.gallery-arrow:hover {
  background: var(--gold);
  color: var(--navy);
  border-color: var(--gold);
}

.gallery-prev { left: 28px; }
.gallery-next { right: 28px; }

.gallery-arrow:disabled {
  opacity: 0.2;
  cursor: not-allowed;
}

.gallery-arrow:disabled:hover {
  background: rgba(255,255,255,0.04);
  color: var(--white);
  border-color: rgba(255,255,255,0.15);
}

body.gallery-open {
  overflow: hidden;
}

@media (max-width: 900px) {
  .gallery-grid-view { padding: 0 16px 56px; }
  .gallery-grid-header { padding: 16px 0 14px; margin-bottom: 18px; gap: 12px; }
  .gallery-grid-title { font-size: 1.1rem; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 6px; }
  .gallery-single-view { padding: 56px 16px 68px; }
  .gallery-arrow { width: 40px; height: 40px; }
  .gallery-prev { left: 10px; }
  .gallery-next { right: 10px; }
  .gallery-single-view .gallery-close { top: 14px; right: 14px; }
  .gallery-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
  .gallery-caption { font-size: 0.85rem; }
}

/* ==========================================
   PROPERTY LANDING PAGE
   ========================================== */
body.property-page {
  background: var(--white);
  color: var(--gray-900);
}

/* ---- TOP NAV ---- */
.property-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 40px;
  background: linear-gradient(to bottom, rgba(15,28,46,0.8) 0%, rgba(15,28,46,0) 100%);
  transition: background 0.3s ease;
}

.property-nav a {
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  transition: color 0.2s ease;
}

.property-nav a:hover { color: var(--gold); }

.property-nav-brand {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  letter-spacing: 4px;
  font-weight: 600;
}

/* ---- HERO ---- */
.property-hero {
  position: relative;
  min-height: 100vh;
  background-size: cover;
  background-position: center;
  background-color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  overflow: hidden;
}

.property-hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.property-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15,28,46,0.25) 0%, rgba(15,28,46,0.55) 60%, rgba(15,28,46,0.8) 100%);
  pointer-events: none;
}

.property-hero-inner {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 24px;
  max-width: 1000px;
}

.property-hero-eyebrow {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 24px;
  font-weight: 500;
}

.property-hero-tagline {
  font-family: var(--font-heading);
  font-size: clamp(2.6rem, 7vw, 5.5rem);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.5px;
  margin: 0 0 48px;
  text-shadow: 0 2px 30px rgba(0,0,0,0.3);
}

.property-hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.property-hero-scroll {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  width: 28px;
  height: 46px;
  border: 1px solid rgba(255,255,255,0.5);
  border-radius: 20px;
  z-index: 2;
  display: flex;
  justify-content: center;
  padding-top: 8px;
  transition: border-color 0.2s ease;
}

.property-hero-scroll:hover { border-color: var(--gold); }

.property-hero-scroll span {
  display: block;
  width: 3px;
  height: 8px;
  background: var(--white);
  border-radius: 2px;
  animation: heroScroll 2s ease-in-out infinite;
}

@keyframes heroScroll {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(10px); opacity: 0.3; }
}

/* ---- ABOUT ---- */
.property-about {
  background: var(--white);
  padding: 120px 24px;
}

.property-about-inner {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
}

.property-about-eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}

.property-about-name {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 500;
  color: var(--navy);
  margin-bottom: 12px;
  line-height: 1.1;
}

.property-about-address {
  font-size: 0.95rem;
  color: var(--gray-500);
  margin-bottom: 32px;
  letter-spacing: 0.3px;
}

.property-about-desc {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--gray-700);
  margin-bottom: 40px;
}

.property-about-cta {
  background: var(--navy);
  color: var(--white);
}

.property-about-cta:hover {
  background: var(--navy-light);
  color: var(--white);
}

/* ---- SPECS STRIP ---- */
.property-specs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0;
  background: var(--navy);
  color: var(--white);
  border-top: 1px solid rgba(255,255,255,0.06);
}

.property-spec {
  padding: 36px 20px;
  text-align: center;
  font-family: var(--font-heading);
  font-size: 1.15rem;
  letter-spacing: 0.3px;
  border-right: 1px solid rgba(255,255,255,0.08);
}

.property-spec:last-child { border-right: 0; }

@media (max-width: 720px) {
  .property-spec { border-right: 0; border-bottom: 1px solid rgba(255,255,255,0.08); padding: 24px 16px; font-size: 1rem; }
  .property-spec:last-child { border-bottom: 0; }
}

/* ---- GALLERY SECTION ---- */
.property-gallery {
  background: var(--cream);
  padding: 120px 32px;
}

.property-gallery-inner {
  max-width: 1400px;
  margin: 0 auto;
}

.property-gallery-heading {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3.5vw, 2.5rem);
  font-weight: 500;
  color: var(--navy);
  text-align: center;
  margin-bottom: 48px;
}

.property-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
}

.property-thumb {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--gray-200);
  cursor: pointer;
  border: 0;
  padding: 0;
  outline: 1px solid transparent;
  outline-offset: -1px;
  transition: outline-color 0.25s ease;
}

.property-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.property-thumb:hover {
  outline-color: var(--gold);
}

.property-thumb:hover img {
  transform: scale(1.04);
}

.property-thumb:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

@media (max-width: 900px) {
  .property-gallery { padding: 72px 16px; }
  .property-gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 6px; }
}

/* ---- FOOTER ---- */
.property-footer {
  background: var(--navy);
  color: var(--white);
  padding: 48px 24px;
  text-align: center;
}

.property-footer-inner {
  max-width: 800px;
  margin: 0 auto;
}

.property-footer-brand {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  letter-spacing: 3px;
  margin-bottom: 12px;
}

.property-footer-links {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.5px;
}

.property-footer-links a {
  color: rgba(255,255,255,0.9);
  transition: color 0.2s ease;
}

.property-footer-links a:hover { color: var(--gold); }

/* ---- LIGHTBOX ---- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(10,18,32,0.97);
  display: none;
  align-items: center;
  justify-content: center;
}

.lightbox.open {
  display: flex;
  animation: galleryFadeIn 0.2s ease;
}

body.lightbox-open { overflow: hidden; }

.lightbox-stage {
  max-width: 1200px;
  width: calc(100% - 140px);
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 0;
}

.lightbox-image {
  max-width: 100%;
  max-height: 78vh;
  object-fit: contain;
  align-self: center;
  animation: galleryImgFade 0.3s ease;
  transition: opacity 0.2s ease;
}

.lightbox-image.is-loading { opacity: 0.4; }

.lightbox-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  color: rgba(255,255,255,0.8);
}

.lightbox-caption { font-size: 0.95rem; color: rgba(255,255,255,0.9); }

.lightbox-counter {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  letter-spacing: 3px;
  color: var(--gold);
  text-transform: uppercase;
}

.lightbox-close, .lightbox-arrow {
  position: absolute;
  z-index: 10;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 50%;
  color: var(--white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.lightbox-close {
  top: 20px;
  right: 24px;
  width: 40px;
  height: 40px;
  font-size: 1.4rem;
  line-height: 1;
}

.lightbox-arrow {
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  font-size: 1rem;
}

.lightbox-prev { left: 28px; }
.lightbox-next { right: 28px; }

.lightbox-close:hover,
.lightbox-arrow:hover {
  background: var(--gold);
  color: var(--navy);
  border-color: var(--gold);
}

.lightbox-arrow:disabled {
  opacity: 0.25;
  cursor: not-allowed;
}

.lightbox-arrow:disabled:hover {
  background: rgba(255,255,255,0.04);
  color: var(--white);
  border-color: rgba(255,255,255,0.18);
}

@media (max-width: 900px) {
  .property-nav { padding: 16px 20px; }
  .property-about { padding: 72px 20px; }
  .lightbox-stage { width: calc(100% - 80px); }
  .lightbox-arrow { width: 40px; height: 40px; }
  .lightbox-prev { left: 10px; }
  .lightbox-next { right: 10px; }
  .lightbox-close { top: 14px; right: 14px; }
  .lightbox-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
}
