/**
 * Team Jay Sharma — Brand Override Stylesheet
 * Loaded after main.css to override design tokens and fix all layout issues.
 * Deep Navy + Gold palette matching janetchavezrealtygroup.com reference.
 */

html {
  scroll-behavior: smooth;
  scroll-padding-top: 120px;
}

section {
  scroll-margin-top: 120px;
}

/* ==========================================================================
   1. BRAND DESIGN TOKENS — Deep Navy & Gold
   ========================================================================== */
:root {
  /* Core Brand Colors */
  --color-navy:        #03142B;   /* Deep Navy — primary dark */
  --color-navy-mid:   #091E3A;   /* Mid Navy — cards, footers */
  --color-navy-light: #122B4F;   /* Light Navy — hover states */
  --color-gold:        #C9A35A;   /* Warm Luxury Gold */
  --color-gold-light:  #DFC08A;   /* Light Gold — hover */
  --color-cream:       #F7F4EF;   /* Warm Cream — background */
  --color-white:       #FFFFFF;
  --color-text-dark:   #0D1B2A;   /* Body text on light bg */
  --color-text-mid:    #4A5568;   /* Muted text */
  --color-text-light:  #FFFFFF;   /* Text on dark bg */
  --color-border:      #E2DDD6;   /* Soft warm border */

  /* Override global tokens */
  --accent-gold:         var(--color-gold);
  --bg-dark:             var(--color-navy);
  --bg-light:            var(--color-white);
  --bg-tertiary:         var(--color-cream);
  --font-color-primary:  var(--color-text-dark);
  --font-color-muted:    var(--color-text-mid);
  --font-color-light:    var(--color-text-light);

  /* Typography */
  --font-family-serif: 'Cormorant Garamond', 'Georgia', serif;
  --font-family-sans:  'Montserrat', sans-serif;

  /* Spacing — section padding as per spec */
  --section-pad-desktop: 80px;
  --section-pad-tablet:  48px;
  --section-pad-mobile:  32px;

  /* Layout */
  --container-max-width: 1280px;

  /* Shadows */
  --shadow-card: 0 4px 24px rgba(13, 27, 42, 0.08);
  --shadow-hover: 0 12px 40px rgba(13, 27, 42, 0.16);

  /* Border radius — keep editorial sharpness */
  --border-radius: 2px;
}

/* ==========================================================================
   2. GLOBAL RESETS FOR BRAND
   ========================================================================== */
body {
  font-family: var(--font-family-sans);
  color: var(--color-text-dark);
  background-color: var(--color-white);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6,
.serif-heading {
  font-family: var(--font-family-serif);
  color: var(--color-text-dark);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: 0.01em;
}

.site-container {
  max-width: var(--container-max-width);
  padding-left: 24px;
  padding-right: 24px;
}

/* Section spacing override */
.section-padding {
  padding-top: var(--section-pad-desktop);
  padding-bottom: var(--section-pad-desktop);
}

/* ==========================================================================
   3. HEADER — Transparent & Sticky
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: transparent;
  transition: background 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease;
}
.admin-bar .site-header {
  top: 32px;
}
@media (max-width: 782px) {
  .admin-bar .site-header {
    top: 46px;
  }
}

.header-inner {
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: height 0.4s ease;
}

/* Scrolled state — navy background */
.sticky-header.scrolled {
  background: var(--color-navy) !important;
  box-shadow: 0 2px 20px rgba(13, 27, 42, 0.3);
}
.sticky-header.scrolled .header-inner {
  height: 70px;
}

/* Site title / logo */
.site-branding .site-title a {
  color: var(--color-white);
  font-family: var(--font-family-serif);
  font-size: 1.4rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.site-branding .custom-logo {
  height: 75px;
  width: auto;
  max-height: 80px;
}
.sticky-header.scrolled .custom-logo {
  height: 55px;
}

/* Navigation links */
.main-navigation .nav-menu {
  gap: 0;
}
.main-navigation .nav-link {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-weight: 600;
  color: rgba(255,255,255,0.92);
  padding: 8px 16px;
  position: relative;
  transition: color 0.25s ease;
}
.main-navigation .nav-link::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 16px;
  right: 16px;
  height: 1px;
  background: var(--color-gold);
  transform: scaleX(0);
  transition: transform 0.25s ease;
}
.main-navigation .nav-link:hover {
  color: var(--color-gold);
}
.main-navigation .nav-link:hover::after {
  transform: scaleX(1);
}

/* CTA button in header */
.site-header .btn-outline {
  border-color: var(--color-gold);
  color: var(--color-gold);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  padding: 8px 20px;
}
.site-header .btn-outline:hover {
  background: var(--color-gold);
  color: var(--color-navy);
}

/* Header icon buttons */
.header-icon-btn {
  color: rgba(255,255,255,0.85);
}
.header-icon-btn:hover {
  color: var(--color-gold);
}

/* ==========================================================================
   4. HERO SECTION
   ========================================================================== */
.hero-home-slider {
  height: 100vh;
  min-height: 680px;
  position: relative;
  overflow: hidden;
  background: var(--color-navy);
}

.hero-slide {
  background-size: cover;
  background-position: center top;
}

/* Stronger, more cinematic overlay */
.hero-overlay {
  background: linear-gradient(
    to bottom,
    rgba(13, 27, 42, 0.3) 0%,
    rgba(13, 27, 42, 0.55) 50%,
    rgba(13, 27, 42, 0.8) 100%
  );
}

/* Hero content positioning */
.hero-content-wrapper {
  padding-top: 90px; /* offset for fixed header */
}

.hero-content {
  max-width: 820px;
  text-align: center;
}

/* Eyebrow label */
.hero-eyebrow {
  font-family: var(--font-family-sans);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--color-gold);
  display: block;
  margin-bottom: 20px;
}

/* Hero headline */
.hero-content h1,
.hero-content .serif-heading.size-xxx-large {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 400;
  color: var(--color-white);
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0 0 20px;
}

/* Hero subtitle */
.hero-subtitle {
  font-size: 1rem;
  font-weight: 300;
  color: rgba(255,255,255,0.85);
  letter-spacing: 0.04em;
  line-height: 1.7;
  margin-bottom: 0;
}

/* Gold divider in hero */
.hero-gold-line {
  width: 50px;
  height: 1px;
  background: var(--color-gold);
  margin: 20px auto;
}

/* Hero buttons */
.hero-content .btn-outline {
  border-color: var(--color-gold);
  color: var(--color-gold);
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  padding: 14px 40px;
  margin-top: 32px;
}
.hero-content .btn-outline:hover {
  background: var(--color-gold);
  color: var(--color-navy);
}

/* Slider dots */
.slider-dots {
  bottom: 180px;
  z-index: 15;
}
.slider-dot {
  width: 6px;
  height: 6px;
  border-color: rgba(255,255,255,0.5);
}
.slider-dot.active {
  background: var(--color-gold);
  border-color: var(--color-gold);
  width: 24px;
}

/* Hero search bar — integrated with hero */
.hero-search-wrapper {
  bottom: 0;
  left: 0;
  z-index: 20;
}

.hero-search-form {
  padding: 0;
  background: rgba(13, 27, 42, 0.92);
  backdrop-filter: blur(12px);
  border: none;
  border-top: 2px solid var(--color-gold);
}

.search-field {
  padding: 20px 28px;
}
.search-field.border-left {
  border-left: 1px solid rgba(255,255,255,0.1) !important;
}

.search-field label {
  font-size: 0.6rem;
  letter-spacing: 0.25em;
  color: var(--color-gold);
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 6px;
  display: block;
}

.search-field select.form-control {
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255,255,255,0.3);
  color: var(--color-white);
  font-size: 0.85rem;
  padding: 8px 24px 8px 0;
  border-radius: 0;
  letter-spacing: 0.05em;
}
.search-field select.form-control option {
  background: var(--color-navy-mid);
  color: var(--color-white);
}

.search-action {
  padding: 0;
}
.search-action button {
  height: 100%;
  min-height: 80px;
  padding: 0 40px;
  background: var(--color-gold);
  color: var(--color-navy);
  border: none;
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  font-weight: 700;
  border-radius: 0;
  cursor: pointer;
  transition: background 0.25s ease;
}
.search-action button:hover {
  background: var(--color-gold-light);
}

/* ==========================================================================
   5. SECTION HEADERS — Consistent eyebrow + title + divider
   ========================================================================== */
.section-header {
  margin-bottom: 56px;
}

.section-eyebrow {
  font-family: var(--font-family-sans);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--color-gold);
  display: block;
  margin-bottom: 12px;
}

.section-header h2 {
  font-size: clamp(2rem, 3.5vw, 3rem);
  color: var(--color-navy);
  margin: 0 0 16px;
  font-weight: 400;
}

.section-divider {
  width: 50px;
  height: 2px;
  background: var(--color-gold);
  margin: 0 auto 20px;
}

.section-subtitle {
  font-size: 0.95rem;
  color: var(--color-text-mid);
  line-height: 1.8;
  max-width: 560px;
  margin: 0 auto;
}

/* Override: fix subtitle that was overlapping heading (gold-divider class on p) */
.section-header p.subtitle.gold-divider {
  border: none;
  border-top: none;
  background: none;
  width: auto;
  height: auto;
  margin-top: 16px;
  display: block;
  font-size: 0.95rem;
  color: var(--color-text-mid);
  line-height: 1.8;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

/* ==========================================================================
   6. AGENT INTRO SECTION — Premium Two-Column Layout
   ========================================================================== */
.agent-intro-section {
  background: #000000;
  padding: 120px 0;
  overflow: hidden;
}

/* ── Grid: 60% image | 40% content ────────────────────────────────────── */
.agent-intro-grid {
  display: grid;
  grid-template-columns: 60% 40%;
  align-items: center;
  max-width: 1440px;
  margin: 0 auto;
  gap: 0;
  min-height: 600px;
}

/* ── Image Column ─────────────────────────────────────────────────────── */
.agent-intro__image-col {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.agent-intro__image-wrapper {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.agent-intro__portrait {
  width: 100%;
  height: 100%;
  max-height: 780px;
  object-fit: contain;
  object-position: center center;
  display: block;
}

/* ── Content Column ───────────────────────────────────────────────────── */
.agent-intro__content-col {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 60px 60px 60px 48px;
}

/* Eyebrow */
.agent-intro__eyebrow {
  font-family: var(--font-family-sans, 'Inter', sans-serif);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #C8A46B;
  display: block;
  margin-bottom: 16px;
}

/* H2 Heading */
.agent-intro__heading {
  font-family: var(--font-family-serif, 'Playfair Display', serif);
  font-size: 56px;
  font-weight: 400;
  color: #FFFFFF;
  line-height: 1.1;
  margin: 0 0 20px;
  letter-spacing: -0.01em;
}

/* Gold divider */
.agent-intro__divider {
  width: 60px;
  height: 2px;
  background: #C8A46B;
  margin-bottom: 28px;
}

/* Biography */
.agent-intro__bio {
  font-size: 18px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 16px;
}
.agent-intro__bio p {
  margin: 0 0 16px;
}
.agent-intro__bio p:last-child {
  margin-bottom: 0;
}

/* Tagline */
.agent-intro__tagline {
  font-size: 18px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.8);
  font-style: italic;
  margin: 8px 0 32px;
}

/* ── CTA Button ───────────────────────────────────────────────────────── */
.agent-intro__cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 36px;
  border: 2px solid #C8A46B;
  color: #C8A46B;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease;
  margin-bottom: 40px;
}
.agent-intro__cta:hover {
  background: #C8A46B;
  color: #000000;
  transform: translateY(-2px);
}
.agent-intro__cta svg {
  transition: transform 0.3s ease;
}
.agent-intro__cta:hover svg {
  transform: translateX(4px);
}

/* ── License Info ─────────────────────────────────────────────────────── */
.agent-intro__license {
  display: flex;
  align-items: center;
  gap: 20px;
  padding-bottom: 24px;
  margin-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.agent-intro__license-label {
  font-family: var(--font-family-sans, 'Inter', sans-serif);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #FFFFFF;
}
.agent-intro__license-number {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.05em;
}

/* ── Contact Cards ────────────────────────────────────────────────────── */
.agent-intro__contacts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 28px;
}
.agent-intro__contact-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.agent-intro__contact-name {
  font-family: var(--font-family-sans, 'Inter', sans-serif);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #C8A46B;
  margin-bottom: 4px;
}
.agent-intro__contact-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
  font-weight: 600;
  color: #FFFFFF;
  text-decoration: none;
  transition: color 0.25s ease;
}
.agent-intro__contact-phone:hover {
  color: #C8A46B;
}
.agent-intro__contact-phone svg {
  color: #C8A46B;
  flex-shrink: 0;
}
.agent-intro__contact-role {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.02em;
}

/* ── Social Media Links ───────────────────────────────────────────────── */
.agent-intro__socials {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.agent-intro__social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  color: #FFFFFF;
  text-decoration: none;
  transition: border-color 0.3s ease, color 0.3s ease, background 0.3s ease, transform 0.3s ease;
}
.agent-intro__social-link:hover {
  border-color: #C8A46B;
  color: #C8A46B;
  background: rgba(200, 164, 107, 0.1);
  transform: translateY(-2px);
}
.agent-intro__social-link svg {
  display: block;
}

/* ==========================================================================
   7. FEATURED PROPERTIES SECTION
   ========================================================================== */
.featured-properties-section {
  background: var(--color-cream);
  padding-top: var(--section-pad-desktop);
  padding-bottom: var(--section-pad-desktop);
}

.properties-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  align-items: start;
}

.property-card {
  background: var(--color-white);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-card);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  border-radius: var(--border-radius);
  overflow: hidden;
}
.property-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.card-thumbnail {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  flex-shrink: 0;
}
.card-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.7s ease;
}
.property-card:hover .card-thumbnail img {
  transform: scale(1.06);
}

.card-status-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--color-gold);
  color: var(--color-navy);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 5px 12px;
  z-index: 5;
}

.card-content {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.property-price {
  font-family: var(--font-family-serif);
  font-size: 1.4rem;
  color: var(--color-gold);
  display: block;
  margin-bottom: 6px;
}

.card-title {
  font-size: 1.1rem;
  color: var(--color-navy);
  margin-bottom: 8px;
  line-height: 1.3;
}
.card-title a {
  color: inherit;
  transition: color 0.2s ease;
}
.card-title a:hover {
  color: var(--color-gold);
}

.property-address {
  font-size: 0.78rem;
  color: var(--color-text-mid);
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 16px;
}

.property-specs {
  display: flex;
  gap: 16px;
  border-top: 1px solid var(--color-border);
  padding-top: 14px;
  margin-top: auto;
  font-size: 0.78rem;
  color: var(--color-text-mid);
}

.spec-item {
  display: flex;
  align-items: center;
  gap: 4px;
}
.spec-item strong {
  color: var(--color-navy);
  font-weight: 600;
}

/* ==========================================================================
   8. COMMUNITY SHOWCASE SECTION
   ========================================================================== */
.communities-section {
  background: var(--color-white);
  padding-top: var(--section-pad-desktop);
  padding-bottom: var(--section-pad-desktop);
}

.communities-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  align-items: start;
}

.community-card {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  border-radius: var(--border-radius);
  cursor: pointer;
  box-shadow: var(--shadow-card);
}

.community-card .card-bg-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.6s ease;
}
.community-card:hover .card-bg-img {
  transform: scale(1.06);
}

.community-card .card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    transparent 30%,
    rgba(13, 27, 42, 0.9) 100%
  );
  z-index: 1;
}

.community-card .card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px 20px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.community-card .card-title {
  font-size: 1.15rem;
  color: var(--color-white);
  margin: 0 0 6px;
  line-height: 1.2;
}
.community-card .card-title a {
  color: var(--color-white);
}
.community-card .card-title a:hover {
  color: var(--color-gold);
}

.community-desc {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.8);
  margin: 0;
  line-height: 1.5;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, opacity 0.4s ease;
  opacity: 0;
}
.community-card:hover .community-desc {
  max-height: 60px;
  opacity: 1 !important;
}

.community-gold-tag {
  display: inline-block;
  width: 30px;
  height: 2px;
  background: var(--color-gold);
  margin-bottom: 10px;
}

/* ==========================================================================
   9. TESTIMONIALS SECTION
   ========================================================================== */
.testimonials-section {
  background: var(--color-navy);
  padding-top: var(--section-pad-desktop);
  padding-bottom: var(--section-pad-desktop);
}

.testimonials-section .section-header h2 {
  color: var(--color-white);
}
.testimonials-section .section-eyebrow {
  color: var(--color-gold);
}
.testimonials-section .gold-divider {
  background: var(--color-gold);
  margin: 0 auto 0;
}

.testimonials-slider-container {
  overflow: hidden;
  padding: 10px 0;
  max-width: 760px;
  margin: 0 auto;
}

.testimonial-slide {
  opacity: 0;
  transform: scale(0.97);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.testimonial-slide.active {
  opacity: 1;
  transform: scale(1);
}

.testimonial-quote {
  color: var(--color-white);
  font-size: 1.3rem;
  font-style: italic;
  line-height: 1.7;
  font-weight: 400;
}

.testimonial-stars {
  color: var(--color-gold);
  font-size: 1.1rem;
  letter-spacing: 2px;
}

.testimonial-client strong {
  color: var(--color-white);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.testimonial-client .client-title {
  color: rgba(255,255,255,0.55);
  font-size: 0.72rem;
}

.slider-arrow {
  background: rgba(255,255,255,0.08) !important;
  border: 1px solid rgba(201, 169, 110, 0.4);
  color: var(--color-gold) !important;
  width: 44px;
  height: 44px;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s ease, border-color 0.25s ease;
}
.slider-arrow:hover {
  background: var(--color-gold) !important;
  color: var(--color-navy) !important;
  border-color: var(--color-gold);
}

.slider-pagination .slider-dot {
  background: rgba(255,255,255,0.3);
  border-color: transparent;
}
.slider-pagination .slider-dot.active {
  background: var(--color-gold);
  width: 20px;
}

/* ==========================================================================
   10. MARKET INSIGHTS SECTION
   ========================================================================== */
.market-insights-section {
  background: var(--color-cream);
  padding-top: var(--section-pad-desktop);
  padding-bottom: var(--section-pad-desktop);
}

.reports-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  align-items: start;
}

.report-card {
  background: var(--color-white);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-card);
  overflow: hidden;
  border-radius: var(--border-radius);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.report-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.report-card .card-thumbnail {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  flex-shrink: 0;
}
.report-card .card-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.report-card:hover .card-thumbnail img {
  transform: scale(1.05);
}

.report-stat-overlay {
  position: absolute;
  inset: 0;
  background: rgba(13, 27, 42, 0.88);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.report-card:hover .report-stat-overlay {
  opacity: 1;
}

.stat-number {
  font-family: var(--font-family-serif);
  font-size: 2.2rem;
  color: var(--color-gold);
  line-height: 1;
  display: block;
}
.stat-label {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.8);
  margin-top: 8px;
  display: block;
}

.report-card .card-content {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.report-desc {
  font-size: 0.88rem;
  color: var(--color-text-mid);
  line-height: 1.6;
  margin-bottom: 24px;
}

.report-card .btn-outline {
  margin-top: auto;
  align-self: flex-start;
}

/* ==========================================================================
   11. CTA BANNER SECTION
   ========================================================================== */
.cta-banner-section {
  position: relative;
  background-size: cover;
  background-position: center;
  padding-top: var(--section-pad-desktop);
  padding-bottom: var(--section-pad-desktop);
  text-align: center;
}

.cta-overlay {
  background: linear-gradient(135deg, rgba(13,27,42,0.85), rgba(13,27,42,0.65));
  top: 0;
  left: 0;
}

.cta-banner-section .site-container {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 700px;
}

.cta-banner-section .section-eyebrow {
  color: var(--color-gold);
}

.cta-banner-section h2 {
  color: var(--color-white);
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  margin-bottom: 16px;
}

.cta-banner-section .cta-subtitle {
  color: rgba(255,255,255,0.8);
  font-size: 0.95rem;
  margin-bottom: 36px;
  line-height: 1.8;
}

.cta-banner-section .btn-secondary {
  background: var(--color-gold);
  color: var(--color-navy);
  border: 2px solid var(--color-gold);
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  padding: 16px 44px;
  font-weight: 700;
  text-decoration: none;
}

.cta-banner-section .btn-secondary:hover {
  background: transparent;
  color: var(--color-gold);
}

/* ==========================================================================
   12. CONTACT SECTION — Schedule a Consultation
   ========================================================================== */
.contact-section {
  /* section-padding gives 80px top/bottom by default.
     scroll-margin-top on the section element (see line 11)
     ensures the heading is visible below the fixed header. */
}

.contact-section h2 {
  font-size: clamp(2rem, 3.5vw, 3rem);
  color: var(--color-navy);
  margin-bottom: 0;
}

.contact-info-col {
  max-width: 560px;
}

.contact-details-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-details-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--color-text-dark);
  font-size: 0.9rem;
  line-height: 1.6;
}

.contact-details-list .gold-text {
  flex-shrink: 0;
  margin-top: 2px;
}

.contact-form .form-control {
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  font-family: var(--font-family-sans);
  font-size: 0.875rem;
  padding: 12px 16px;
  transition: border-color 0.25s ease;
}

.contact-form .form-control:focus {
  border-color: var(--color-gold);
  outline: none;
}

.contact-form .btn-primary {
  background: var(--color-gold);
  color: var(--color-navy);
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  padding: 14px 40px;
  font-weight: 700;
  border: none;
}

.contact-form .btn-primary:hover {
  background: var(--color-gold-light);
  color: var(--color-navy);
}

.contact-map-col {
  min-height: 500px;
}

/* ==========================================================================
   13. BRAND FOOTER SECTION — Premium Redesigned Custom Footer
   ========================================================================== */
.custom-luxury-footer-v2 {
  background-color: #03142B;
  background-image: url('https://miracledualbedsheet.com/wp-content/uploads/2026/06/world-map-pattern.png');
  background-size: cover;
  background-position: center;
  color: #F5F5F5;
  padding: 90px 0 50px 0;
  position: relative;
}
.custom-luxury-footer-v2::before {
  content: '';
  position: absolute;
  inset: 0;
  background-color: rgba(3, 20, 43, 0.94); /* 94% opacity deep navy overlay to let texture show subtly */
  z-index: 1;
}
.custom-luxury-footer-v2 > * {
  position: relative;
  z-index: 2;
}

.custom-luxury-footer-v2 .footer-container-v2 {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
}

.custom-luxury-footer-v2 .footer-grid-v2 {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  align-items: start;
  column-gap: 60px;
  row-gap: 40px;
}

.custom-luxury-footer-v2 .footer-col-v2 {
  display: flex;
  flex-direction: column;
}

/* Column 1: Brand */
.custom-luxury-footer-v2 .brand-col-v2 {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.custom-luxury-footer-v2 .footer-logo-v2 {
  max-width: 180px;
  margin-bottom: 24px;
}
.custom-luxury-footer-v2 .footer-logo-v2 img {
  width: 100%;
  height: auto;
}
.custom-luxury-footer-v2 .footer-fallback-logo-v2 {
  color: #C9A35A;
  font-family: var(--font-family-serif);
  font-size: 1.5rem;
  line-height: 1.2;
  margin-bottom: 24px;
  text-transform: uppercase;
}
.custom-luxury-footer-v2 .footer-fallback-logo-v2 span {
  font-size: 0.9rem;
  letter-spacing: 0.1em;
}
.custom-luxury-footer-v2 .footer-desc-v2 {
  color: rgba(255,255,255,0.85);
  font-size: 18px;
  line-height: 1.8;
  margin: 0;
}

/* Typography & Headings */
.custom-luxury-footer-v2 .footer-heading-v2 {
  color: #ffffff;
  font-family: var(--font-family-serif) !important;
  font-size: 28px !important;
  font-weight: 500 !important;
  letter-spacing: 0 !important;
  line-height: 1.3 !important;
  text-transform: uppercase !important;
  margin-bottom: 0 !important;
  padding-bottom: 0;
  border: none;
}
.custom-luxury-footer-v2 .serif-heading {
  font-family: var(--font-family-serif);
}
.custom-luxury-footer-v2 .footer-heading-divider {
  width: 40px;
  height: 2px;
  background-color: #C9A35A;
  margin-top: 16px;
  margin-bottom: 32px;
}

/* Column 2: Quick Links */
.custom-luxury-footer-v2 .footer-quick-links-v2 {
  padding: 0;
  margin: 0;
}
.custom-luxury-footer-v2 .footer-quick-links-v2 a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #ffffff;
  text-decoration: none;
  font-size: 18px !important;
  line-height: 2.2 !important;
  font-weight: 400 !important;
  transition: all 0.3s ease;
}
.custom-luxury-footer-v2 .footer-quick-links-v2 a svg {
  color: #C9A35A;
  width: 16px;
  height: 16px;
  transition: transform 0.3s ease;
}
.custom-luxury-footer-v2 .footer-quick-links-v2 a:hover {
  color: #C9A35A;
}
.custom-luxury-footer-v2 .footer-quick-links-v2 a:hover svg {
  transform: translateX(4px);
}

/* Column 3: Contact Information */
.custom-luxury-footer-v2 .footer-contact-list-v2 {
  padding: 0;
  margin: 0;
}
.custom-luxury-footer-v2 .contact-item-v2 {
  display: flex;
  align-items: center !important;
  gap: 16px;
  margin-bottom: 30px;
}
.custom-luxury-footer-v2 .contact-item-v2:last-child {
  margin-bottom: 0;
}
.custom-luxury-footer-v2 .contact-icon-wrapper {
  width: 24px;
  flex-shrink: 0;
  color: #C9A35A;
  display: flex;
  justify-content: center;
  align-items: center;
}
.custom-luxury-footer-v2 .contact-icon-wrapper svg {
  width: 100%;
  height: auto;
}
.custom-luxury-footer-v2 .contact-text-v2 {
  color: #ffffff;
  font-size: 18px !important;
  line-height: 1.8 !important;
}
.custom-luxury-footer-v2 .contact-text-phone div {
  white-space: nowrap;
}
.custom-luxury-footer-v2 .contact-text-v2 a {
  color: #ffffff;
  text-decoration: none;
  transition: color 0.3s ease;
}
.custom-luxury-footer-v2 .contact-text-v2 a:hover {
  color: #C9A35A;
}

/* Column 4: Newsletter */
.custom-luxury-footer-v2 .footer-subscribe-form-v2 {
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.custom-luxury-footer-v2 .subscribe-input-v2 {
  width: 100%;
  height: 56px;
  background-color: transparent;
  border: 1px solid rgba(201,163,90,0.4);
  color: #ffffff;
  padding: 0 20px;
  font-size: 16px;
  margin-bottom: 0 !important;
  border-radius: 0;
  transition: border-color 0.3s ease;
}
.custom-luxury-footer-v2 .subscribe-input-v2:focus {
  outline: none;
  border-color: #C9A35A;
}
.custom-luxury-footer-v2 .subscribe-btn-v2 {
  width: 100%;
  height: 56px;
  background-color: transparent;
  border: 1px solid #C9A35A;
  color: #C9A35A;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 0;
  transition: all 0.3s ease;
}
.custom-luxury-footer-v2 .subscribe-btn-v2:hover {
  background-color: #C9A35A;
  color: #03142B;
}

/* Social Media */
.custom-luxury-footer-v2 .footer-social-icons-v2 {
  display: flex;
  gap: 16px;
  margin-top: 24px;
}
.custom-luxury-footer-v2 .social-circle-v2 {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px !important;
  height: 48px !important;
  border: 1px solid #C9A35A !important;
  border-radius: 50% !important;
  color: #C9A35A !important;
  transition: all 0.3s ease;
  background: transparent;
}
.custom-luxury-footer-v2 .social-circle-v2 svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
  stroke: currentColor;
}
.custom-luxury-footer-v2 .social-circle-v2[aria-label="Facebook"] svg {
  stroke: none !important;
}
.custom-luxury-footer-v2 .social-circle-v2[aria-label="Instagram"] svg,
.custom-luxury-footer-v2 .social-circle-v2[aria-label="LinkedIn"] svg,
.custom-luxury-footer-v2 .social-circle-v2[aria-label="YouTube"] svg {
  fill: none !important;
}
.custom-luxury-footer-v2 .social-circle-v2[aria-label="Instagram"] svg circle,
.custom-luxury-footer-v2 .social-circle-v2[aria-label="LinkedIn"] svg circle {
  fill: currentColor !important;
}
.custom-luxury-footer-v2 .social-circle-v2[aria-label="YouTube"] svg polygon {
  fill: currentColor !important;
}
.custom-luxury-footer-v2 .social-circle-v2:hover {
  background-color: #C9A35A !important;
  color: #03142B !important;
  transform: translateY(-3px);
}

/* Copyright Section */
.custom-luxury-footer-v2 .footer-copyright-v2 {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 30px;
  text-align: center;
}
.custom-luxury-footer-v2 .footer-copyright-v2 p {
  color: rgba(255,255,255,0.7);
  font-size: 16px;
  margin: 0 0 8px 0;
}
.custom-luxury-footer-v2 .footer-copyright-v2 p:last-child {
  margin-bottom: 0;
}

/* RESPONSIVE LAYOUT */
@media (min-width: 1200px) {
  .custom-luxury-footer-v2 .footer-grid-v2 {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr 1fr;
    align-items: start;
    column-gap: 60px;
  }
}

@media (min-width: 768px) and (max-width: 1199px) {
  .custom-luxury-footer-v2 .footer-grid-v2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
  }
}

@media (max-width: 767px) {
  .custom-luxury-footer-v2 .footer-grid-v2 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: start;
  }
  .custom-luxury-footer-v2 .brand-col-v2 {
    align-items: center;
    text-align: center;
  }
  .custom-luxury-footer-v2 .footer-logo-v2 {
    margin: 0 auto 24px auto;
  }
  .custom-luxury-footer-v2 .footer-heading-v2 {
    text-align: center !important;
  }
  .custom-luxury-footer-v2 .footer-heading-divider {
    margin: 16px auto 32px auto !important;
  }
  .custom-luxury-footer-v2 .footer-social-icons-v2 {
    justify-content: center;
  }
  .custom-luxury-footer-v2 .contact-item-v2 {
    justify-content: center;
    text-align: center;
  }
  .custom-luxury-footer-v2 .contact-text-phone {
    text-align: center;
  }
  .custom-luxury-footer-v2 .footer-desc-v2 {
    text-align: center;
  }
  .custom-luxury-footer-v2 .footer-quick-links-v2 a {
    justify-content: center;
    gap: 10px;
  }
  .custom-luxury-footer-v2 .footer-quick-links-v2 a svg {
    display: none;
  }
}


/* Equal card heights in grids (Antigravity override) */
.properties-grid {
  align-items: stretch !important;
}
.properties-grid .property-card,
.reports-grid .report-card {
  height: 100% !important;
  display: flex !important;
  flex-direction: column !important;
}

/* ==========================================================================
   19. BTN-PRIMARY — Gold filled button
   ========================================================================== */
.btn-primary {
  background-color: var(--color-gold) !important;
  color: var(--color-navy) !important;
  border: 2px solid var(--color-gold) !important;
  font-family: var(--font-family-sans);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 12px 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-decoration: none;
  transition: background-color 0.25s ease, color 0.25s ease, transform 0.2s ease;
  cursor: pointer;
  border-radius: 2px;
}
.btn-primary:hover,
.btn-primary:focus {
  background-color: var(--color-gold-light) !important;
  border-color: var(--color-gold-light) !important;
  color: var(--color-navy) !important;
  transform: translateY(-1px);
  text-decoration: none;
}

/* Card CTA block */
.card-cta {
  margin-top: auto;
}
.card-cta .btn-primary {
  font-size: 0.7rem;
  padding: 10px 16px;
}

/* ==========================================================================
   20. PROPERTIES ARCHIVE PAGE
   ========================================================================== */

/* Archive Hero */
.properties-archive-hero {
  background: linear-gradient(135deg, var(--color-navy) 0%, var(--color-navy-mid) 100%);
  padding: 130px 0 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.properties-archive-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20"><circle cx="1" cy="1" r="1" fill="rgba(255,255,255,0.03)"/></svg>') repeat;
}
.archive-hero-content {
  position: relative;
  z-index: 1;
}
.properties-archive-hero .section-eyebrow {
  color: var(--color-gold);
  font-family: var(--font-family-sans);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 12px;
}
.properties-archive-hero h1 {
  color: var(--color-white);
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin-bottom: 16px;
}
.properties-archive-hero .section-divider {
  width: 60px;
  height: 2px;
  background: var(--color-gold);
  margin: 0 auto 20px;
}
.properties-archive-hero .section-subtitle {
  color: rgba(255,255,255,0.75);
  font-size: 1rem;
  max-width: 640px;
  margin: 0 auto;
}

/* Filter Bar */
.properties-filter-bar {
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border);
  padding: 18px 0;
  position: sticky;
  top: 90px;
  z-index: 90;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.filter-form {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.filter-group {
  display: flex;
  align-items: center;
  gap: 8px;
}
.filter-group label {
  font-family: var(--font-family-sans);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-mid);
  white-space: nowrap;
  font-weight: 600;
}
.filter-group select {
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid var(--color-border);
  padding: 8px 36px 8px 12px;
  font-family: var(--font-family-sans);
  font-size: 0.8rem;
  color: var(--color-text-dark);
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8'><path d='M0 0l6 8 6-8z' fill='%23C9A35A'/></svg>") no-repeat right 10px center / 10px, var(--color-white);
  border-radius: 2px;
  cursor: pointer;
  min-width: 160px;
}
.filter-group select:focus {
  outline: none;
  border-color: var(--color-gold);
}
.filter-results-count {
  margin-left: auto;
  font-family: var(--font-family-sans);
  font-size: 0.8rem;
  color: var(--color-text-mid);
  font-weight: 500;
}
.filter-results-count span {
  background: var(--color-cream);
  padding: 6px 14px;
  border-radius: 20px;
}

/* Archive Main */
.properties-archive-main {
  padding: 60px 0;
  background: var(--color-cream);
  min-height: 60vh;
}

/* Archive Pagination */
.archive-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin: 0 3px;
  border: 1px solid var(--color-border);
  color: var(--color-text-dark);
  text-decoration: none;
  font-family: var(--font-family-sans);
  font-size: 0.8rem;
  transition: all 0.2s ease;
  border-radius: 2px;
}
.archive-pagination .page-numbers.current,
.archive-pagination .page-numbers:hover {
  background: var(--color-gold);
  border-color: var(--color-gold);
  color: var(--color-navy);
}
.archive-pagination .page-numbers.prev,
.archive-pagination .page-numbers.next {
  width: auto;
  padding: 0 16px;
}

/* Archive CTA Section */
.archive-cta-section {
  background: var(--color-navy);
  padding: 80px 0;
  text-align: center;
}
.archive-cta-section h2 {
  color: var(--color-white);
}
.archive-cta-section p.text-muted {
  color: rgba(255,255,255,0.7);
  max-width: 560px;
  margin: 0 auto 32px;
}
.archive-cta-section .btn-primary {
  font-size: 0.8rem;
}


/* ==========================================================================
   21. PROPERTY DETAILS PAGE SPECIFIC STYLES
   ========================================================================== */

/* Gallery top dark gradient overlay to keep transparent header navigation readable */
.property-gallery-banner::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 140px;
  background: linear-gradient(to bottom, rgba(13, 27, 42, 0.75) 0%, rgba(13, 27, 42, 0.4) 50%, transparent 100%);
  z-index: 10;
  pointer-events: none;
}

/* Property slider button fix: remove relative/transform conflict in flex container */
.property-slider-controls .slider-arrow {
  position: static;
  top: auto;
  transform: none;
}

/* Raw/Fallback description tables styled as premium grids */
.property-entry-content h3 {
  font-family: var(--font-family-serif);
  color: var(--color-navy);
  margin-top: 32px;
  margin-bottom: 16px;
  font-size: 1.3rem;
  font-weight: 600;
}
.property-entry-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  border-top: 1px solid var(--color-border);
  border-left: 1px solid var(--color-border);
}
.property-entry-content table tr {
  display: table-row;
}
.property-entry-content table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--color-border);
  border-right: 1px solid var(--color-border);
  font-size: 0.85rem;
  color: var(--color-text-mid);
}
.property-entry-content table td:first-child {
  font-weight: 600;
  color: var(--color-navy);
  width: 35%;
  background: rgba(13, 27, 42, 0.02);
}

/* Quick specs container grid */
.property-quick-specs {
  display: grid !important;
  grid-template-columns: repeat(6, 1fr) !important;
  background: var(--color-cream) !important;
  border: 1px solid var(--color-border) !important;
  border-radius: var(--border-radius) !important;
  padding: 24px 0 !important;
  margin-bottom: 40px !important;
  align-items: center !important;
  gap: 0 !important;
}

.quick-spec-box {
  text-align: center !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: center !important;
  padding: 0 10px !important;
}

.quick-spec-box:not(:first-child) {
  border-left: 1px solid var(--color-border) !important;
}

.quick-spec-box .spec-val {
  font-family: var(--font-family-serif) !important;
  font-size: 1.35rem !important;
  font-weight: 700 !important;
  color: var(--color-navy) !important;
  line-height: 1.2 !important;
}

.quick-spec-box .spec-label {
  font-family: var(--font-family-sans) !important;
  font-size: 0.65rem !important;
  text-transform: uppercase !important;
  letter-spacing: 0.15em !important;
  color: var(--color-text-mid) !important;
  margin-top: 6px !important;
}

/* Property Detail Header */
.property-detail-header {
  border-bottom: 1px solid var(--color-border) !important;
  padding-bottom: 24px !important;
  margin-bottom: 32px !important;
}
.property-detail-title {
  font-size: 2.25rem !important;
  font-weight: 700 !important;
  color: var(--color-navy) !important;
  line-height: 1.15 !important;
}
.property-detail-address {
  font-size: 0.85rem !important;
  color: var(--color-text-mid) !important;
  margin-top: 8px !important;
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
}
.price-val {
  font-size: 2.25rem !important;
  color: var(--color-gold) !important;
  font-weight: 700 !important;
  line-height: 1.15 !important;
}
.price-subtext {
  font-size: 0.65rem !important;
  letter-spacing: 0.2em !important;
  color: var(--color-text-mid) !important;
  text-transform: uppercase !important;
  display: block !important;
  margin-top: 4px !important;
}

/* Gallery Grid */
.property-gallery-grid {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 16px !important;
  margin-top: 24px !important;
}
.gallery-item-image {
  position: relative !important;
  aspect-ratio: 3 / 2 !important;
  overflow: hidden !important;
  background: var(--color-navy) !important;
}
.gallery-item-image img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  transition: transform 0.5s ease !important;
}
.gallery-item-overlay {
  position: absolute !important;
  inset: 0 !important;
  background: rgba(13, 27, 42, 0.6) !important;
  opacity: 0 !important;
  transition: opacity 0.3s ease !important;
}
.gallery-item-link:hover .gallery-item-overlay {
  opacity: 1 !important;
}
.gallery-item-link:hover .gallery-item-image img {
  transform: scale(1.05) !important;
}

/* Lightbox Overlay */
.lightbox-overlay {
  position: fixed !important;
  inset: 0 !important;
  background: rgba(13, 27, 42, 0.95) !important;
  z-index: 9999 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  opacity: 0 !important;
  pointer-events: none !important;
  transition: opacity 0.3s ease !important;
}
.lightbox-overlay.active {
  opacity: 1 !important;
  pointer-events: auto !important;
}
.lightbox-content-container {
  max-width: 85% !important;
  max-height: 80% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}
.lightbox-image {
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
  border-radius: var(--border-radius) !important;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5) !important;
  animation: fadeIn 0.3s ease-out !important;
}
.lightbox-close {
  position: absolute !important;
  top: 30px !important;
  right: 40px !important;
  color: var(--color-white) !important;
  font-size: 3rem !important;
  cursor: pointer !important;
  transition: color 0.2s ease !important;
  line-height: 1 !important;
}
.lightbox-close:hover {
  color: var(--color-gold) !important;
}
.lightbox-nav {
  position: absolute !important;
  width: 100% !important;
  display: flex !important;
  justify-content: space-between !important;
  padding: 0 40px !important;
  box-sizing: border-box !important;
  pointer-events: none !important;
}
.lightbox-prev, .lightbox-next {
  color: var(--color-white) !important;
  font-size: 2.5rem !important;
  cursor: pointer !important;
  pointer-events: auto !important;
  transition: color 0.2s !important;
  user-select: none !important;
}
.lightbox-prev:hover, .lightbox-next:hover {
  color: var(--color-gold) !important;
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

/* Alert Notifications */
.alert {
  padding: 14px 18px !important;
  margin-bottom: 24px !important;
  border-radius: var(--border-radius) !important;
  font-size: 0.8rem !important;
  line-height: 1.5 !important;
  font-family: var(--font-family-sans) !important;
}
.alert-success {
  background-color: #f6f3eb !important;
  border-left: 4px solid var(--color-gold) !important;
  color: var(--color-navy) !important;
}
.alert-danger {
  background-color: #fde8e8 !important;
  border-left: 4px solid #e02424 !important;
  color: #9b1c1c !important;
}

/* Related Properties Section */
.related-properties-section {
  padding-top: 60px !important;
  padding-bottom: 60px !important;
}

/* Card Thumbnail aspect ratio override for consistent 3:2 landscape */
.card-thumbnail {
  aspect-ratio: 3 / 2 !important;
}

/* Responsiveness Media Queries */
@media (max-width: 992px) {
  .property-gallery-banner {
    height: 45vh !important;
    min-height: 300px !important;
  }
  .property-quick-specs {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 20px 0 !important;
    padding: 20px 0 !important;
  }
  .quick-spec-box:nth-child(3n+1) {
    border-left: none !important;
  }
  .quick-spec-box:not(:nth-child(3n+1)) {
    border-left: 1px solid var(--color-border) !important;
  }
  .sticky-sidebar {
    position: static !important;
  }
  .properties-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 24px !important;
  }
}

@media (max-width: 768px) {
  /* Header Brand logo resize */
  .site-branding .custom-logo {
    height: 54px !important;
    width: auto !important;
  }
  .property-gallery-banner {
    height: 35vh !important;
    min-height: 250px !important;
  }
  .property-detail-header {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 16px !important;
  }
  .header-right {
    text-align: left !important;
  }
  .property-gallery-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
  }
}

@media (max-width: 576px) {
  .property-gallery-banner {
    height: 30vh !important;
    min-height: 200px !important;
  }
  .property-quick-specs {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 16px 0 !important;
    padding: 16px 0 !important;
  }
  .quick-spec-box:nth-child(2n+1) {
    border-left: none !important;
  }
  .quick-spec-box:not(:nth-child(2n+1)) {
    border-left: 1px solid var(--color-border) !important;
  }
  .quick-spec-box .spec-val {
    font-size: 1.15rem !important;
  }
  .quick-spec-box .spec-label {
    font-size: 0.6rem !important;
  }
  .properties-grid {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }
  .property-gallery-grid {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }
}

