/* ============================================================
   1061 GRANT TER SE — RENTAL LISTING
   Premium property showcase with immersive gallery
   ============================================================ */

/* ---------- Custom Properties ---------- */
:root {
  /* Colors */
  --color-bg-dark: #0f0f1a;
  --color-bg-darker: #0a0a12;
  --color-bg-light: #fafaf7;
  --color-bg-cream: #f5f1eb;
  --color-surface-dark: #1a1a2e;
  --color-surface-darker: #141425;
  --color-surface-light: #ffffff;
  --color-accent: #c9a55c;
  --color-accent-light: #dfc07a;
  --color-accent-dark: #a8873d;
  --color-text-dark: #1a1a2e;
  --color-text-light: #f0ece4;
  --color-text-muted: #8b8b9e;
  --color-text-muted-light: #6b7280;
  --color-border-dark: rgba(255, 255, 255, 0.08);
  --color-border-light: rgba(0, 0, 0, 0.08);
  --color-glass: rgba(15, 15, 26, 0.6);

  /* Typography */
  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Spacing */
  --section-padding: clamp(4rem, 8vw, 8rem);
  --container-max: 1200px;
  --container-padding: clamp(1.25rem, 4vw, 2.5rem);

  /* Transitions */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-back: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --duration-fast: 0.2s;
  --duration-normal: 0.4s;
  --duration-slow: 0.7s;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.07), 0 2px 4px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 25px rgba(0,0,0,0.1), 0 6px 10px rgba(0,0,0,0.08);
  --shadow-xl: 0 20px 50px rgba(0,0,0,0.15), 0 10px 20px rgba(0,0,0,0.1);
  --shadow-glow: 0 0 30px rgba(201, 165, 92, 0.15);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  color: var(--color-text-dark);
  background: var(--color-bg-dark);
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

button {
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
  color: inherit;
}

ul { list-style: none; }

/* ---------- Utilities ---------- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.section {
  padding: var(--section-padding) 0;
  position: relative;
}

.section-dark {
  background: var(--color-bg-dark);
  color: var(--color-text-light);
}

.section-light {
  background: var(--color-bg-light);
  color: var(--color-text-dark);
}

.section-accent {
  background: var(--color-surface-dark);
  color: var(--color-text-light);
}

/* ---------- Section Headers ---------- */
.section-header {
  text-align: center;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.section-label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 1rem;
  position: relative;
  padding: 0 1.5rem;
}

.section-label::before,
.section-label::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 1rem;
  height: 1px;
  background: var(--color-accent);
  opacity: 0.5;
}

.section-label::before { left: 0; }
.section-label::after { right: 0; }

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 0.75rem;
}

.section-subtitle {
  font-size: 1rem;
  opacity: 0.7;
  max-width: 500px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1.25rem 0;
  transition: background var(--duration-normal) var(--ease-smooth),
              padding var(--duration-normal) var(--ease-smooth),
              backdrop-filter var(--duration-normal) var(--ease-smooth);
}

.nav.scrolled {
  background: rgba(15, 15, 26, 0.85);
  backdrop-filter: blur(20px) saturate(1.5);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--color-border-dark);
}

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

.nav-logo {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  font-family: var(--font-display);
  color: var(--color-text-light);
  transition: opacity var(--duration-fast);
}

.nav-logo:hover { opacity: 0.8; }

.nav-logo-number {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-accent);
}

.nav-logo-text {
  font-size: 1.1rem;
  font-weight: 400;
  font-style: italic;
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-link {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--color-text-light);
  opacity: 0.75;
  transition: opacity var(--duration-fast), color var(--duration-fast);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--color-accent);
  transition: width var(--duration-normal) var(--ease-out-expo);
}

.nav-link:hover {
  opacity: 1;
  color: var(--color-accent-light);
}

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

/* Mobile Nav Toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
  z-index: 1001;
}

.nav-toggle-bar {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text-light);
  border-radius: 2px;
  transition: transform var(--duration-normal) var(--ease-out-expo),
              opacity var(--duration-fast);
}

.nav-toggle.active .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.active .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--duration-normal), visibility var(--duration-normal);
}

.nav-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 40%, rgba(201, 165, 92, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse 60% 80% at 80% 20%, rgba(45, 45, 68, 0.5) 0%, transparent 50%),
    radial-gradient(ellipse 50% 50% at 50% 100%, rgba(201, 165, 92, 0.05) 0%, transparent 50%),
    linear-gradient(180deg, #0a0a14 0%, #0f0f1a 30%, #1a1a2e 60%, #0f0f1a 100%);
}

.hero-particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-particle {
  position: absolute;
  width: 2px;
  height: 2px;
  background: var(--color-accent);
  border-radius: 50%;
  opacity: 0;
  animation: particle-float linear infinite;
}

@keyframes particle-float {
  0% {
    opacity: 0;
    transform: translateY(0) scale(0);
  }
  10% {
    opacity: 0.6;
    transform: scale(1);
  }
  90% {
    opacity: 0.2;
  }
  100% {
    opacity: 0;
    transform: translateY(-100vh) scale(0);
  }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(10,10,20,0.3) 0%, transparent 30%, transparent 70%, rgba(10,10,20,0.5) 100%);
}

/* Hero Sticker */
.hero-sticker {
  position: absolute;
  top: 8%;
  right: 4%;
  z-index: 3;
  width: clamp(160px, 24vw, 240px);
  height: clamp(160px, 24vw, 240px);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: stickerEntrance 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) 1s both,
             stickerPulse 3s ease-in-out 2s infinite,
             stickerWobble 6s ease-in-out 2s infinite;
  cursor: default;
  filter: drop-shadow(0 6px 25px rgba(26, 92, 42, 0.55));
  pointer-events: none;
}

.hero-sticker-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  animation: stickerSpin 50s linear infinite;
}

.hero-sticker-text {
  position: relative;
  text-align: center;
  color: #fff;
  line-height: 1;
  transform: rotate(8deg);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.1em;
}

.hero-sticker-line1 {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.4rem, 3.2vw, 2rem);
  font-weight: 800;
  font-style: italic;
  text-shadow: 0 2px 6px rgba(0,0,0,0.35);
}

.hero-sticker-line2 {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: clamp(1rem, 2.2vw, 1.4rem);
  font-weight: 700;
  font-style: italic;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.hero-sticker-line3 {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  font-weight: 900;
  font-style: italic;
  text-shadow: 0 2px 6px rgba(0,0,0,0.35);
  letter-spacing: 0.02em;
}

@keyframes stickerEntrance {
  0% {
    opacity: 0;
    transform: scale(0) rotate(-180deg);
  }
  100% {
    opacity: 1;
    transform: scale(1) rotate(-8deg);
  }
}

@keyframes stickerPulse {
  0%, 100% { transform: scale(1) rotate(-8deg); }
  50% { transform: scale(1.07) rotate(-8deg); }
}

@keyframes stickerWobble {
  0%, 100% { transform: scale(1) rotate(-8deg); }
  25% { transform: scale(1.04) rotate(-4deg); }
  75% { transform: scale(1.04) rotate(-12deg); }
}

@keyframes stickerSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@media (max-width: 640px) {
  .hero-sticker {
    top: 5%;
    right: 3%;
    width: 140px;
    height: 140px;
  }
}

/* Hero with background image */
.hero.has-image .hero-bg {
  background-size: cover;
  background-position: center;
}

.hero.has-image .hero-gradient {
  background: linear-gradient(180deg,
    rgba(10,10,20,0.7) 0%,
    rgba(10,10,20,0.4) 30%,
    rgba(10,10,20,0.3) 50%,
    rgba(10,10,20,0.6) 80%,
    rgba(10,10,20,0.85) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 2rem var(--container-padding);
  max-width: 800px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-accent);
  border: 1px solid rgba(201, 165, 92, 0.3);
  padding: 0.5rem 1.25rem;
  border-radius: 100px;
  margin-bottom: 2rem;
  background: rgba(201, 165, 92, 0.05);
}

.hero-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4ade80;
  animation: pulse-dot 2s ease infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.4); }
  50% { opacity: 0.8; box-shadow: 0 0 0 6px rgba(74, 222, 128, 0); }
}

.hero-title {
  font-family: var(--font-display);
  color: var(--color-text-light);
  margin-bottom: 1.5rem;
}

.hero-title-line {
  display: block;
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.hero-title-accent {
  color: var(--color-accent);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(2.5rem, 6vw, 4rem);
}

.hero-tagline {
  font-family: var(--font-body);
  font-size: clamp(1rem, 2.2vw, 1.35rem);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 1.5rem;
}

.hero-divider {
  width: 60px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
  margin: 0 auto 1.5rem;
}

.hero-rent {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 500;
  color: var(--color-text-light);
  margin-bottom: 1.5rem;
}

.hero-rent-period {
  font-family: var(--font-body);
  font-size: 0.45em;
  font-weight: 300;
  opacity: 0.6;
  margin-left: 0.1em;
}

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  margin-bottom: 2.5rem;
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

.hero-stat {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.hero-stat-icon {
  width: 18px;
  height: 18px;
  opacity: 0.6;
}

.hero-stat-divider {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--color-accent);
  opacity: 0.4;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent);
  border: 1px solid rgba(201, 165, 92, 0.4);
  padding: 0.9rem 2rem;
  border-radius: 100px;
  transition: all var(--duration-normal) var(--ease-out-expo);
  background: rgba(201, 165, 92, 0.05);
}

.hero-cta svg {
  width: 16px;
  height: 16px;
  transition: transform var(--duration-normal) var(--ease-out-expo);
}

.hero-cta:hover {
  background: var(--color-accent);
  color: var(--color-bg-dark);
  border-color: var(--color-accent);
  box-shadow: var(--shadow-glow);
}

.hero-cta:hover svg {
  transform: translateY(3px);
}

/* Scroll Indicator */
.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  opacity: 0;
  animation: fade-in-up 1s 1.5s forwards;
}

.hero-scroll-text {
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.hero-scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(180deg, var(--color-accent), transparent);
  animation: scroll-line 2s ease infinite;
}

@keyframes scroll-line {
  0% { transform: scaleY(0); transform-origin: top; opacity: 1; }
  50% { transform: scaleY(1); transform-origin: top; opacity: 1; }
  50.1% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; opacity: 1; }
}

/* ============================================================
   GALLERY
   ============================================================ */
.gallery-filters {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.filter-btn {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  padding: 0.6rem 1.4rem;
  border-radius: 100px;
  border: 1px solid var(--color-border-dark);
  color: var(--color-text-muted);
  transition: all var(--duration-normal) var(--ease-out-expo);
  background: transparent;
}

.filter-btn:hover {
  border-color: rgba(201, 165, 92, 0.3);
  color: var(--color-text-light);
}

.filter-btn.active {
  background: var(--color-accent);
  color: var(--color-bg-dark);
  border-color: var(--color-accent);
  font-weight: 600;
}

/* Gallery Grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

/* Gallery expand button */
.gallery-expand-wrap {
  display: none;
  justify-content: center;
  margin-top: 2.5rem;
}

.gallery-expand-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 2.2rem;
  background: transparent;
  border: 1px solid var(--color-accent);
  border-radius: 50px;
  color: var(--color-accent);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  overflow: hidden;
}

.gallery-expand-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--color-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  z-index: 0;
  border-radius: 50px;
}

.gallery-expand-btn:hover::before {
  transform: scaleX(1);
}

.gallery-expand-btn:hover {
  color: var(--color-bg-dark);
  border-color: var(--color-accent);
  box-shadow: 0 4px 25px rgba(201, 165, 92, 0.3);
}

.gallery-expand-text,
.gallery-expand-count,
.gallery-expand-icon {
  position: relative;
  z-index: 1;
}

.gallery-expand-count {
  font-size: 0.85rem;
  opacity: 0.7;
  font-weight: 400;
}

.gallery-expand-icon {
  width: 18px;
  height: 18px;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Staggered reveal for expanded gallery items */
.gallery-item-reveal {
  opacity: 0;
  transform: translateY(30px) scale(0.95);
  transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.gallery-item-reveal.showing {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.gallery-item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 4/3;
  background: var(--color-surface-dark);
  transform: translateY(0);
  transition: transform var(--duration-normal) var(--ease-out-expo),
              box-shadow var(--duration-normal) var(--ease-out-expo),
              opacity var(--duration-normal);
}

/* Feature items (every 5th starting from 1st) span 2 columns on larger screens */
@media (min-width: 768px) {
  .gallery-item.featured {
    grid-column: span 2;
    aspect-ratio: 16/9;
  }
}

.gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
  z-index: 1;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-slow) var(--ease-out-expo);
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-item-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    transparent 40%,
    rgba(10, 10, 20, 0.8) 100%
  );
  opacity: 0;
  transition: opacity var(--duration-normal);
  display: flex;
  align-items: flex-end;
  padding: 1.25rem;
}

.gallery-item:hover .gallery-item-overlay {
  opacity: 1;
}

.gallery-item-info {
  color: var(--color-text-light);
}

.gallery-item-caption {
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.gallery-item-category {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent);
  opacity: 0.8;
}

.gallery-item-zoom {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(201, 165, 92, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--duration-normal) var(--ease-out-back);
}

.gallery-item:hover .gallery-item-zoom {
  transform: translate(-50%, -50%) scale(1);
}

.gallery-item-zoom svg {
  width: 20px;
  height: 20px;
  color: var(--color-bg-dark);
}

/* Gallery filtering animation */
.gallery-item.hiding {
  opacity: 0;
  transform: scale(0.8);
  pointer-events: none;
}

/* Gallery Empty State */
.gallery-empty {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--color-text-muted);
}

.gallery-empty-visual {
  width: 120px;
  height: 120px;
  margin: 0 auto 1.5rem;
  opacity: 0.4;
  color: var(--color-accent);
}

.gallery-empty h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--color-text-light);
  margin-bottom: 0.5rem;
}

.gallery-empty p {
  font-size: 0.95rem;
  opacity: 0.6;
}

/* ============================================================
   LIGHTBOX
   ============================================================ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--duration-normal) var(--ease-smooth),
              visibility var(--duration-normal);
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 5, 12, 0.92);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
}

.lightbox-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  z-index: 10;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-light);
  transition: background var(--duration-fast), transform var(--duration-fast);
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: rotate(90deg);
}

.lightbox-close svg {
  width: 20px;
  height: 20px;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-light);
  transition: all var(--duration-fast);
}

.lightbox-nav:hover {
  background: rgba(201, 165, 92, 0.3);
  color: var(--color-accent-light);
}

.lightbox-prev { left: 1.25rem; }
.lightbox-next { right: 1.25rem; }

.lightbox-nav svg {
  width: 22px;
  height: 22px;
}

.lightbox-stage {
  position: relative;
  z-index: 5;
  max-width: 90vw;
  max-height: 75vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-image {
  max-width: 90vw;
  max-height: 75vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  transform: scale(0.85);
  opacity: 0;
  transition: transform var(--duration-slow) var(--ease-out-expo),
              opacity var(--duration-normal);
}

.lightbox.active .lightbox-image {
  transform: scale(1);
  opacity: 1;
}

.lightbox-image.transitioning {
  opacity: 0;
  transform: scale(0.95);
}

.lightbox-footer {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 10;
  padding: 1rem 1.25rem;
  background: linear-gradient(transparent, rgba(5, 5, 12, 0.8));
}

.lightbox-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.lightbox-caption {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text-light);
}

.lightbox-counter {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.lightbox-thumbs {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.2) transparent;
}

.lightbox-thumb {
  flex-shrink: 0;
  width: 60px;
  height: 42px;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  opacity: 0.4;
  transition: opacity var(--duration-fast), outline-color var(--duration-fast);
  outline: 2px solid transparent;
  outline-offset: 2px;
}

.lightbox-thumb:hover {
  opacity: 0.7;
}

.lightbox-thumb.active {
  opacity: 1;
  outline-color: var(--color-accent);
}

.lightbox-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ============================================================
   DETAILS
   ============================================================ */
.details-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 3rem;
  align-items: start;
}

.details-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.stat-card {
  background: var(--color-surface-light);
  border: 1px solid var(--color-border-light);
  border-radius: 12px;
  padding: 1.25rem;
  text-align: center;
  transition: transform var(--duration-normal) var(--ease-out-expo),
              box-shadow var(--duration-normal);
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.stat-card-icon {
  width: 36px;
  height: 36px;
  margin: 0 auto 0.75rem;
  color: var(--color-accent);
}

.stat-card-icon svg {
  width: 100%;
  height: 100%;
}

.stat-card-value {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--color-text-dark);
  margin-bottom: 0.15rem;
}

.stat-card-label {
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted-light);
}

.details-description,
.details-lease {
  margin-bottom: 2rem;
}

.details-description h3,
.details-lease h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--color-text-dark);
}

.details-description p,
.details-lease p {
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--color-text-muted-light);
}

/* Feature Cards */
.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

.feature-card {
  background: var(--color-bg-light);
  border-radius: 12px;
  padding: 1.5rem;
  border-left: 3px solid var(--color-accent);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.feature-card-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-text-dark);
  margin-bottom: 0.5rem;
}

.feature-card-text {
  font-size: 0.88rem;
  line-height: 1.7;
  color: var(--color-text-muted-light);
}

@media (max-width: 640px) {
  .features-grid {
    grid-template-columns: 1fr;
  }
}

/* Sidebar */
.rent-card {
  background: var(--color-surface-dark);
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  margin-bottom: 1.5rem;
  position: sticky;
  top: 100px;
  box-shadow: var(--shadow-xl);
}

.rent-card-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 0.5rem;
}

.rent-card-price {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-accent);
  margin-bottom: 1rem;
  line-height: 1;
}

.rent-card-status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-text-light);
  margin-bottom: 1.5rem;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.status-dot.available {
  background: #4ade80;
  box-shadow: 0 0 8px rgba(74, 222, 128, 0.4);
  animation: pulse-dot 2s ease infinite;
}

.status-dot.unavailable {
  background: #ef4444;
}

.rent-card-btn {
  display: block;
  width: 100%;
  padding: 0.9rem;
  border-radius: 10px;
  background: var(--color-accent);
  color: var(--color-bg-dark);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.03em;
  transition: all var(--duration-normal) var(--ease-out-expo);
}

.rent-card-btn:hover {
  background: var(--color-accent-light);
  box-shadow: var(--shadow-glow);
  transform: translateY(-1px);
}

.amenities-card {
  background: var(--color-surface-light);
  border: 1px solid var(--color-border-light);
  border-radius: 16px;
  padding: 1.5rem;
}

.amenities-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--color-text-dark);
}

.amenities-list {
  display: grid;
  gap: 0.65rem;
}

.amenity-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.85rem;
  color: var(--color-text-muted-light);
}

.amenity-check {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(201, 165, 92, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.amenity-check svg {
  width: 10px;
  height: 10px;
  color: var(--color-accent);
}

/* ============================================================
   NEIGHBORHOOD
   ============================================================ */
.neighborhood-layout {
  max-width: 900px;
  margin: 0 auto;
}

.neighborhood-description {
  text-align: center;
  margin-bottom: 3rem;
}

.neighborhood-description p {
  font-size: 1.05rem;
  line-height: 1.9;
  color: rgba(240, 236, 228, 0.7);
}

.neighborhood-highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.highlight-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem;
  border-radius: 12px;
  border: 1px solid var(--color-border-dark);
  background: rgba(255, 255, 255, 0.02);
  transition: all var(--duration-normal) var(--ease-out-expo);
}

.highlight-card:hover {
  border-color: rgba(201, 165, 92, 0.2);
  background: rgba(201, 165, 92, 0.04);
  transform: translateY(-2px);
}

.highlight-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(201, 165, 92, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.2rem;
  color: var(--color-accent);
}

.highlight-icon svg {
  width: 22px;
  height: 22px;
}

.highlight-text {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text-light);
}

/* ============================================================
   CONTACT / CTA
   ============================================================ */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.contact-info .section-label {
  padding-left: 0;
  text-align: left;
}

.contact-info .section-label::before {
  display: none;
}

.contact-info .section-title {
  text-align: left;
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin-bottom: 1rem;
}

.contact-subtitle {
  font-size: 1rem;
  color: var(--color-text-muted);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-method {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: var(--color-text-light);
  transition: color var(--duration-fast);
}

.contact-method:hover {
  color: var(--color-accent);
}

.contact-method svg {
  width: 20px;
  height: 20px;
  opacity: 0.6;
}

.contact-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--color-border-dark);
  border-radius: 20px;
  overflow: hidden;
}

.contact-card-inner {
  padding: 2rem;
}

.contact-card h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: var(--color-text-light);
}

.form-group {
  margin-bottom: 1rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--color-border-dark);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--color-text-light);
  font-family: var(--font-body);
  font-size: 0.9rem;
  transition: border-color var(--duration-fast), background var(--duration-fast);
  outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--color-text-muted);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--color-accent);
  background: rgba(201, 165, 92, 0.04);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.form-submit {
  width: 100%;
  padding: 0.9rem;
  border-radius: 10px;
  background: var(--color-accent);
  color: var(--color-bg-dark);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.03em;
  transition: all var(--duration-normal) var(--ease-out-expo);
  cursor: pointer;
  border: none;
}

.form-submit:hover {
  background: var(--color-accent-light);
  box-shadow: var(--shadow-glow);
  transform: translateY(-1px);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--color-bg-darker);
  padding: 3rem 0;
  border-top: 1px solid var(--color-border-dark);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  text-align: center;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-text-light);
}

.footer-tagline {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  font-style: italic;
}

.footer-links {
  display: flex;
  gap: 2rem;
}

.footer-links a {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  transition: color var(--duration-fast);
}

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

.footer-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border-dark);
  width: 100%;
}

.footer-bottom p {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  opacity: 0.6;
}

/* ============================================================
   SCROLL REVEAL ANIMATIONS
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s var(--ease-out-expo),
              transform 0.8s var(--ease-out-expo);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delays */
.reveal[data-delay="100"] { transition-delay: 0.1s; }
.reveal[data-delay="200"] { transition-delay: 0.2s; }
.reveal[data-delay="250"] { transition-delay: 0.25s; }
.reveal[data-delay="300"] { transition-delay: 0.3s; }
.reveal[data-delay="350"] { transition-delay: 0.35s; }
.reveal[data-delay="400"] { transition-delay: 0.4s; }
.reveal[data-delay="500"] { transition-delay: 0.5s; }
.reveal[data-delay="600"] { transition-delay: 0.6s; }

/* ============================================================
   LOADING & UTILITY ANIMATIONS
   ============================================================ */
@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(20px);
  }
  to {
    opacity: 0.5;
    transform: translateX(-50%) translateY(0);
  }
}

/* Smooth page load */
body {
  animation: page-load 0.6s ease forwards;
}

@keyframes page-load {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ============================================================
   RESPONSIVE DESIGN
   ============================================================ */

/* Tablet */
@media (max-width: 1024px) {
  .details-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .rent-card {
    position: static;
  }

  .details-sidebar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }

  .contact-layout {
    gap: 3rem;
  }
}

/* Mobile */
@media (max-width: 768px) {
  /* Nav mobile */
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    height: 100dvh;
    background: var(--color-surface-dark);
    flex-direction: column;
    padding: 5rem 2rem 2rem;
    gap: 0;
    z-index: 999;
    transition: right var(--duration-normal) var(--ease-out-expo);
    border-left: 1px solid var(--color-border-dark);
  }

  .nav-links.active {
    right: 0;
  }

  .nav-link {
    font-size: 1.1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--color-border-dark);
    opacity: 1;
  }

  /* Hero mobile */
  .hero-title-line {
    font-size: clamp(2.5rem, 12vw, 3.5rem);
  }

  .hero-title-accent {
    font-size: clamp(2rem, 10vw, 3rem);
  }

  .hero-stats {
    flex-wrap: wrap;
    gap: 0.75rem;
  }

  /* Gallery mobile */
  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 0.75rem;
  }

  .gallery-item.featured {
    grid-column: span 1;
  }

  /* Details mobile */
  .details-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .details-sidebar {
    grid-template-columns: 1fr;
  }

  /* Contact mobile */
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .contact-info .section-title,
  .contact-info .section-label {
    text-align: center;
  }

  .contact-info .section-label::after {
    display: none;
  }

  .contact-subtitle {
    text-align: center;
  }

  .contact-methods {
    align-items: center;
  }

  /* Neighborhood mobile */
  .neighborhood-highlights {
    grid-template-columns: 1fr;
  }

  /* Lightbox mobile */
  .lightbox-nav {
    width: 40px;
    height: 40px;
  }

  .lightbox-prev { left: 0.5rem; }
  .lightbox-next { right: 0.5rem; }

  .lightbox-image {
    max-width: 95vw;
    max-height: 65vh;
  }

  .lightbox-thumbs {
    display: none;
  }
}

/* Small mobile */
@media (max-width: 480px) {
  .hero-badge {
    font-size: 0.65rem;
    padding: 0.4rem 1rem;
  }

  .hero-rent {
    font-size: 1.6rem;
  }

  .details-stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }

  .stat-card {
    padding: 1rem;
  }

  .stat-card-value {
    font-size: 1.1rem;
  }

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

  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
  }
}

/* ============================================================
   PRINT STYLES
   ============================================================ */
@media print {
  .nav, .hero-scroll, .lightbox, .contact-form, .gallery-filters,
  .nav-overlay, .hero-particles { display: none; }

  body { background: white; color: black; }

  .section-dark, .section-accent { background: white; color: black; }

  .hero {
    min-height: auto;
    padding: 2rem;
    background: white;
  }

  .hero-content { color: black; }
  .hero-title-line { color: black; }
}
