/* ==========================================================================
   ERA LUXURY ARCHITECTURAL DESIGN SYSTEM - SALANGPUR GROUP
   Inspired by era-residence.com
   ========================================================================== */

:root {
  /* Color Palette */
  --era-bg: #f8f6f0;
  --era-bg-rgb: 248, 246, 240;
  --era-surface: #efece4;
  --era-surface-rgb: 239, 236, 228;
  --era-surface-light: #ffffff;
  --era-border: rgba(26, 23, 21, 0.1);
  --era-border-light: rgba(255, 255, 255, 0.15);
  
  --era-dark: #181513;
  --era-dark-rgb: 24, 21, 19;
  --era-dark-surface: #221e1a;
  --era-dark-card: #2a2521;
  --era-muted: #78736d;
  --era-muted-light: #a8a39d;
  
  --era-accent: #c5a059;
  --era-accent-hover: #d6b36e;
  --era-wine: #542a40;
  --era-wine-rgb: 84, 42, 64;
  --era-wine-light: #6a3552;

  /* Typography */
  --font-serif: 'Cinzel', 'Playfair Display', Georgia, serif;
  --font-editorial: 'Playfair Display', serif;
  --font-sans: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  /* Spacing & Sizing */
  --header-height: 84px;
  --dur-s: 0.3s;
  --dur-m: 0.6s;
  --dur-l: 1s;
  --ease-out: cubic-bezier(0.25, 1, 0.5, 1);
  --ease-in-out: cubic-bezier(0.76, 0, 0.24, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Base resets & typography */
html {
  scroll-behavior: smooth;
  background-color: var(--era-bg);
  color: var(--era-dark);
}

body {
  font-family: var(--font-sans);
  background-color: var(--era-bg);
  color: var(--era-dark);
  line-height: 1.6;
  font-weight: 400;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Selection */
::selection {
  background: var(--era-dark);
  color: var(--era-bg);
}

/* Editorial Typography */
.font-serif { font-family: var(--font-serif); }
.font-editorial { font-family: var(--font-editorial); }
.font-sans { font-family: var(--font-sans); }
.font-mono { font-family: var(--font-mono); }

.era-display {
  font-family: var(--font-serif);
  font-size: clamp(3rem, 7.5vw, 7.5rem);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

.era-display-italic {
  font-family: var(--font-editorial);
  font-style: italic;
  font-weight: 300;
  text-transform: none;
}

.era-h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.25rem, 5vw, 4.5rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.era-h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 3.5vw, 3rem);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.era-h3 {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 2.2vw, 2rem);
  font-weight: 400;
  line-height: 1.25;
}

.era-label {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--era-muted);
}

.era-caption {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.05em;
}

/* Hairline utilities */
.era-line {
  height: 1px;
  background-color: var(--era-border);
  width: 100%;
}

.era-line-v {
  width: 1px;
  height: 48px;
  background-color: var(--era-border);
  margin: 0 auto;
}

/* ==========================================================================
   NAVIGATION / HEADER (ERA MINIMALIST)
   ========================================================================== */
.era-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 1000;
  transition: background-color var(--dur-s) ease, backdrop-filter var(--dur-s) ease, transform var(--dur-s) ease, border-color var(--dur-s) ease;
  border-bottom: 1px solid transparent;
}

.era-header.is-scrolled {
  background-color: rgba(248, 246, 240, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--era-border);
}

.era-header.theme-night.is-scrolled {
  background-color: rgba(24, 21, 19, 0.92);
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

.era-header.theme-night.is-scrolled .era-nav-link,
.era-header.theme-night.is-scrolled .era-brand-name {
  color: #ffffff;
}

.era-header.theme-night.is-scrolled .era-btn-pill {
  border-color: #ffffff;
  color: #ffffff;
}

.era-header.theme-night.is-scrolled .era-btn-pill:hover {
  background: #ffffff;
  color: var(--era-dark);
}

.era-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding: 0 clamp(1.5rem, 4vw, 4rem);
}

/* Nav Links */
.era-nav-list {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.era-nav-link {
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--era-dark);
  text-decoration: none;
  position: relative;
  padding: 0.5rem 0;
  transition: color var(--dur-s) ease;
}

.era-nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 1px;
  background-color: currentColor;
  transition: width var(--dur-s) var(--ease-out);
}

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

/* Header Brand */
.era-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: var(--era-dark);
}

.era-brand-name {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  transition: color var(--dur-s) ease;
}

.era-brand-sub {
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--era-muted);
}

/* Header Actions */
.era-header-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

/* Consultation Pill Button */
.era-btn-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.65rem 1.4rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid var(--era-dark);
  color: var(--era-dark);
  background: transparent;
  transition: all var(--dur-s) var(--ease-out);
  position: relative;
  overflow: hidden;
}

.era-btn-pill:hover {
  background: var(--era-dark);
  color: var(--era-bg);
  transform: translateY(-1px);
}

.era-btn-pill.btn-accent {
  background: var(--era-wine);
  border-color: var(--era-wine);
  color: #fff;
}

.era-btn-pill.btn-accent:hover {
  background: #3e1e2f;
  border-color: #3e1e2f;
  color: #fff;
}

/* ==========================================================================
   SIDE VERTICAL SCROLL TRACKER (ERA RESIDENCE SIGNATURE)
   ========================================================================== */
.era-scroll-tracker {
  position: fixed;
  left: clamp(1.2rem, 2.5vw, 2.5rem);
  top: 50%;
  transform: translateY(-50%);
  z-index: 90;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  pointer-events: none;
}

@media (max-width: 991px) {
  .era-scroll-tracker {
    display: none;
  }
}

.era-scroll-number {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--era-muted);
}

.era-scroll-line-w {
  width: 1px;
  height: 90px;
  background-color: var(--era-border);
  position: relative;
  overflow: hidden;
}

.era-scroll-line-fill {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0%;
  background-color: var(--era-dark);
  transition: height 0.15s ease-out;
}

/* ==========================================================================
   HERO SECTION WITH DAY / NIGHT MODE
   ========================================================================== */
.era-hero {
  position: relative;
  min-height: 100vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  padding-top: var(--header-height);
  background-color: var(--era-dark);
}

/* Day / Night visual backdrops */
.era-hero-bg-container {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.era-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 1.2s var(--ease-in-out), transform 12s ease-out;
  transform: scale(1.03);
}

.era-hero-bg.is-active {
  opacity: 1;
  transform: scale(1);
}

.era-hero-bg:not(.is-active) {
  opacity: 0;
  pointer-events: none;
}

/* Lighting filters for day / night tone */
.era-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(24, 21, 19, 0.45) 0%, rgba(24, 21, 19, 0.2) 40%, rgba(24, 21, 19, 0.8) 100%);
  z-index: 2;
  transition: background 1.2s var(--ease-in-out);
}

.era-hero.theme-night .era-hero-overlay {
  background: linear-gradient(180deg, rgba(10, 9, 8, 0.75) 0%, rgba(10, 9, 8, 0.45) 40%, rgba(10, 9, 8, 0.95) 100%);
}

/* Hero Content Layers */
.era-hero-content {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  color: #ffffff;
  padding: 3rem 1.5rem 2rem;
  margin-top: auto;
  margin-bottom: auto;
}

.era-hero-subtag {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 1.2rem;
}

.era-hero-title {
  color: #ffffff;
  margin-bottom: 1.5rem;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

/* Day / Night Toggle Pill */
.era-hero-toggle {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  padding: 0.3rem 0.4rem;
  margin-bottom: 2.5rem;
  position: relative;
}

.era-toggle-btn {
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.45rem 1.2rem;
  border-radius: 999px;
  cursor: pointer;
  transition: all var(--dur-s) var(--ease-out);
}

.era-toggle-btn.is-active {
  background: #ffffff;
  color: var(--era-dark);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Rotating SVG Magnetic Circular CTA Button */
.era-btn-circle-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 1rem;
}

.era-btn-circle {
  position: relative;
  width: 140px;
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #ffffff;
  transition: transform var(--dur-m) var(--ease-bounce);
}

.era-btn-circle:hover {
  transform: scale(1.08);
  color: #ffffff;
}

.era-btn-circle-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  animation: eraRotateArc 18s linear infinite;
  transform-origin: center;
}

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

.era-btn-circle-inner {
  text-align: center;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  max-width: 90px;
  line-height: 1.35;
  z-index: 2;
}

/* ==========================================================================
   INTERACTIVE ARCHITECTURAL HOTSPOT PINS
   ========================================================================== */
.era-pin {
  position: absolute;
  z-index: 25;
  transform: translate(-50%, -50%);
  cursor: pointer;
}

.era-pin-btn {
  position: relative;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.95);
  color: var(--era-dark);
  border-radius: 50%;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  transition: all var(--dur-s) var(--ease-bounce);
}

.era-pin:hover .era-pin-btn {
  transform: scale(1.18);
  background: var(--era-accent);
  color: #fff;
}

.era-pin-pulse {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.7);
  animation: eraPulse 2.4s cubic-bezier(0.25, 1, 0.5, 1) infinite;
  pointer-events: none;
}

.era-pin-pulse:nth-child(2) {
  animation-delay: 1.2s;
}

@keyframes eraPulse {
  0% { transform: scale(0.6); opacity: 0.9; }
  100% { transform: scale(1.9); opacity: 0; }
}

/* Pin Tooltip Card */
.era-pin-card {
  position: absolute;
  bottom: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%) translateY(10px) scale(0.95);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--era-dark);
  padding: 1.2rem 1.4rem;
  border-radius: 12px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.25);
  width: 240px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all var(--dur-s) var(--ease-out);
  z-index: 30;
  text-align: left;
}

.era-pin-card::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 6px;
  border-style: solid;
  border-color: rgba(255, 255, 255, 0.96) transparent transparent transparent;
}

.era-pin:hover .era-pin-card,
.era-pin.is-open .era-pin-card {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0) scale(1);
}

.era-pin-card-tag {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--era-accent);
  margin-bottom: 0.35rem;
}

.era-pin-card-title {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
  line-height: 1.25;
}

.era-pin-card-desc {
  font-size: 0.8rem;
  color: var(--era-muted);
  line-height: 1.45;
  margin: 0;
}

/* ==========================================================================
   THREE REASONS / PHILOSOPHY PILLARS (ERA RESIDENCE SIGNATURE)
   ========================================================================== */
.era-section-intro {
  padding: clamp(5rem, 9vw, 9rem) 0 clamp(3rem, 5vw, 5rem);
  text-align: center;
  background-color: var(--era-surface);
  position: relative;
}

/* Circular Rotating Badge */
.era-circle-badge {
  width: 140px;
  height: 140px;
  margin: 0 auto 2.5rem;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.era-circle-badge svg {
  width: 100%;
  height: 100%;
  animation: eraRotateText 24s linear infinite;
}

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

.era-circle-badge-icon {
  position: absolute;
  font-size: 1.3rem;
  color: var(--era-dark);
}

/* Three Pillars Carousel */
.era-pillars-section {
  padding: 0 0 clamp(5rem, 8vw, 8rem);
  background-color: var(--era-surface);
}

.era-pillars-slider {
  position: relative;
  overflow: hidden;
  max-width: 1200px;
  margin: 0 auto;
}

.era-pillars-track {
  display: flex;
  transition: transform var(--dur-m) var(--ease-out);
}

.era-pillar-slide {
  min-width: 100%;
  box-sizing: border-box;
  padding: 0 1.5rem;
}

.era-pillar-content {
  text-align: center;
}

.era-pillar-img-wrap {
  width: 100%;
  max-width: 900px;
  margin: 2rem auto;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
  position: relative;
  aspect-ratio: 16 / 9;
}

.era-pillar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--dur-l) var(--ease-out);
}

.era-pillar-img-wrap:hover .era-pillar-img {
  transform: scale(1.04);
}

.era-pillar-desc {
  max-width: 680px;
  margin: 1.5rem auto 0;
  font-size: 1.15rem;
  color: var(--era-muted);
  line-height: 1.7;
}

/* Slider Controls (ERA Counter + Progress) */
.era-slider-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 3rem;
}

.era-slider-arrow {
  background: transparent;
  border: 1px solid var(--era-border);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--era-dark);
  transition: all var(--dur-s) ease;
}

.era-slider-arrow:hover {
  background: var(--era-dark);
  color: #ffffff;
  border-color: var(--era-dark);
}

.era-slider-num {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  color: var(--era-dark);
}

.era-slider-progress {
  width: 140px;
  height: 2px;
  background-color: var(--era-border);
  position: relative;
  overflow: hidden;
}

.era-slider-progress-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 33.333%;
  background-color: var(--era-dark);
  transition: width var(--dur-m) var(--ease-out);
}

/* ==========================================================================
   EDITORIAL ARCHITECTURAL QUOTE SECTION
   ========================================================================== */
.era-quote-section {
  position: relative;
  background-color: var(--era-wine);
  color: #ffffff;
  padding: clamp(6rem, 10vw, 11rem) 1.5rem;
  overflow: hidden;
}

.era-quote-bg {
  position: absolute;
  inset: 0;
  opacity: 0.18;
  background-size: cover;
  background-position: center;
  filter: grayscale(100%) contrast(120%);
}

.era-quote-container {
  position: relative;
  z-index: 5;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.era-quote-glyph {
  font-family: var(--font-editorial);
  font-size: 4.5rem;
  line-height: 1;
  color: var(--era-accent);
  margin-bottom: 1.5rem;
}

.era-quote-text {
  font-family: var(--font-editorial);
  font-size: clamp(1.6rem, 3.2vw, 2.75rem);
  font-style: italic;
  font-weight: 300;
  line-height: 1.35;
  margin-bottom: 2.5rem;
  color: #ffffff;
}

.era-quote-author {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
}

.era-quote-author-name {
  font-family: var(--font-serif);
  font-size: 1rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--era-accent);
}

.era-quote-author-role {
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}

/* ==========================================================================
   CONCEPT & MASTER PLAN PANORAMIC SHOWCASE
   ========================================================================== */
.era-concept-section {
  padding: clamp(6rem, 10vw, 10rem) 0;
  background-color: var(--era-bg);
}

.era-concept-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 2rem;
  align-items: center;
}

.era-concept-text {
  grid-column: span 5;
}

.era-concept-visual {
  grid-column: span 7;
}

@media (max-width: 991px) {
  .era-concept-text,
  .era-concept-visual {
    grid-column: span 12;
  }
}

.era-concept-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.08);
}

.era-concept-img {
  width: 100%;
  display: block;
  transition: transform var(--dur-l) var(--ease-out);
}

.era-concept-card:hover .era-concept-img {
  transform: scale(1.03);
}

/* Location Connectivity Pills */
.era-connectivity-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.2rem;
  margin-top: 2.5rem;
}

.era-connectivity-item {
  padding: 1.2rem;
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid var(--era-border);
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: all var(--dur-s) ease;
}

.era-connectivity-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
  border-color: var(--era-accent);
}

.era-connectivity-time {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--era-wine);
}

.era-connectivity-info {
  display: flex;
  flex-direction: column;
}

.era-connectivity-place {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--era-dark);
}

.era-connectivity-dist {
  font-size: 0.72rem;
  color: var(--era-muted);
}

/* ==========================================================================
   RESIDENCES & APARTMENT TYPES (INTERACTIVE FLOORPLAN SHOWCASE)
   ========================================================================== */
.era-residences-section {
  padding: clamp(6rem, 10vw, 10rem) 0;
  background-color: var(--era-surface);
}

/* Type Filter Tabs */
.era-residence-tabs {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin: 3rem 0 4rem;
  flex-wrap: wrap;
}

.era-tab-btn {
  padding: 0.75rem 1.8rem;
  border-radius: 999px;
  background: transparent;
  border: 1px solid var(--era-border);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--era-muted);
  cursor: pointer;
  transition: all var(--dur-s) var(--ease-out);
}

.era-tab-btn:hover {
  color: var(--era-dark);
  border-color: var(--era-dark);
}

.era-tab-btn.is-active {
  background: var(--era-dark);
  color: #ffffff;
  border-color: var(--era-dark);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

/* Residence Showcase Card */
.era-residence-display {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 3rem;
  background: #ffffff;
  border-radius: 20px;
  padding: clamp(2rem, 4vw, 4rem);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.06);
  border: 1px solid var(--era-border);
  align-items: center;
}

.era-residence-details {
  grid-column: span 5;
}

.era-residence-preview {
  grid-column: span 7;
}

@media (max-width: 991px) {
  .era-residence-details,
  .era-residence-preview {
    grid-column: span 12;
  }
}

/* Specs Table */
.era-specs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin: 2rem 0 2.5rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--era-border);
  border-bottom: 1px solid var(--era-border);
}

.era-spec-label {
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--era-muted);
  margin-bottom: 0.25rem;
}

.era-spec-val {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--era-dark);
}

.era-floorplan-img-wrap {
  position: relative;
  background: var(--era-bg);
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  cursor: pointer;
  overflow: hidden;
}

.era-floorplan-img {
  max-width: 100%;
  height: auto;
  max-height: 420px;
  object-fit: contain;
  transition: transform var(--dur-m) var(--ease-out);
}

.era-floorplan-img-wrap:hover .era-floorplan-img {
  transform: scale(1.04);
}

.era-floorplan-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(255, 255, 255, 0.9);
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--era-dark);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* ==========================================================================
   RESORT-STYLE AMENITIES (TABBED GALLERY)
   ========================================================================== */
.era-amenities-section {
  padding: clamp(6rem, 10vw, 10rem) 0;
  background-color: var(--era-bg);
}

.era-amenities-gallery {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 2rem;
  margin-top: 3.5rem;
}

.era-amenity-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.07);
}

.era-amenity-card.large {
  grid-column: span 7;
}

.era-amenity-card.medium {
  grid-column: span 5;
}

.era-amenity-card.third {
  grid-column: span 4;
}

@media (max-width: 991px) {
  .era-amenity-card.large,
  .era-amenity-card.medium,
  .era-amenity-card.third {
    grid-column: span 12;
  }
}

.era-amenity-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--dur-l) var(--ease-out);
}

.era-amenity-card:hover .era-amenity-img {
  transform: scale(1.06);
}

.era-amenity-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 40%, rgba(24, 21, 19, 0.85) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem;
  color: #ffffff;
}

.era-amenity-title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  margin-bottom: 0.35rem;
}

.era-amenity-desc {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
}

/* ==========================================================================
   VIP CONCIERGE & APPOINTMENT BOOKING DRAWER / MODAL
   ========================================================================== */
.era-inquiry-section {
  padding: clamp(6rem, 10vw, 10rem) 0;
  background-color: var(--era-surface);
  position: relative;
}

.era-inquiry-box {
  max-width: 800px;
  margin: 0 auto;
  background: #ffffff;
  border-radius: 24px;
  padding: clamp(2.5rem, 5vw, 4.5rem);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--era-border);
  text-align: center;
}

.era-input-group {
  margin-bottom: 1.5rem;
  text-align: left;
}

.era-input-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--era-muted);
  margin-bottom: 0.5rem;
  display: block;
}

.era-input {
  width: 100%;
  padding: 0.9rem 1.2rem;
  background: var(--era-bg);
  border: 1px solid var(--era-border);
  border-radius: 10px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--era-dark);
  transition: all var(--dur-s) ease;
}

.era-input:focus {
  outline: none;
  border-color: var(--era-wine);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(84, 42, 64, 0.1);
}

/* ==========================================================================
   LUXURY EDITORIAL FOOTER
   ========================================================================== */
.era-footer {
  background-color: var(--era-dark);
  color: #ffffff;
  padding: clamp(5rem, 8vw, 8rem) 0 3rem;
  position: relative;
}

.era-footer-top {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 4rem;
  margin-bottom: 3.5rem;
}

.era-footer-headline {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4.5vw, 4rem);
  line-height: 1.1;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.era-footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.era-footer-links li {
  margin-bottom: 0.8rem;
}

.era-footer-links a {
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  font-size: 0.88rem;
  transition: color var(--dur-s) ease;
}

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

.era-footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.8rem;
}

/* Floorplan Lightbox Modal */
.era-modal {
  position: fixed;
  inset: 0;
  background: rgba(10, 9, 8, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur-s) ease;
  padding: 2rem;
}

.era-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.era-modal-close {
  position: absolute;
  top: 2rem;
  right: 2.5rem;
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
}

.era-modal-content {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
}
