/* Premium visual identity v3: ivory, navy and restrained gold UI overrides. */
:root {
  color-scheme: light;
  --color-bg: #FAF9F5;
  --color-surface: #FFFFFF;
  --color-primary: #0B1F3A;
  --color-primary-soft: #132B4F;
  --color-accent: #C8A45D;
  --color-accent-soft: #E8D8B5;
  --color-text: #111827;
  --color-muted: #6B7280;
  --color-border: rgba(200, 164, 93, 0.25);
  --color-bg-dark: #050505;
  --color-surface-dark: #111111;
  --color-surface-dark-2: #1A1A1A;
  --color-primary-dark: #D6B36A;
  --color-accent-dark: #BFA15A;
  --color-text-dark: #F5F5F5;
  --color-muted-dark: #A3A3A3;
  --color-border-dark: rgba(214, 179, 106, 0.22);
  --premium-shadow: 0 22px 70px rgba(11, 31, 58, 0.12);
  --premium-shadow-hover: 0 28px 90px rgba(11, 31, 58, 0.18);
  --premium-dark-shadow: 0 28px 90px rgba(0, 0, 0, 0.48);
  --premium-gold-glow: rgba(200, 164, 93, 0.22);
  --premium-navy-glow: rgba(11, 31, 58, 0.18);

  /* Legacy variables are intentionally remapped so old selectors stop rendering red UI. */
  --primary-red: var(--color-primary);
  --primary-red-dark: #08172B;
  --primary-red-soft: var(--color-accent);
  --primary-red-fixed: var(--color-primary);
  --diamond-red: var(--color-accent);
  --diamond-red-soft: rgba(200, 164, 93, 0.2);
  --bg-main: var(--color-bg);
  --bg-secondary: var(--color-bg);
  --bg-card: var(--color-surface);
  --card-bg: var(--color-surface);
  --card-text: var(--color-primary);
  --section-dark: var(--color-primary);
  --footer-premium-bg: linear-gradient(135deg, #07162F 0%, #0A1E3A 55%, #030914 100%);
  --footer-premium-text: #FFFFFF;
  --footer-premium-text-hover: #FFCDD2;
  --footer-bg: var(--footer-premium-bg);
  --text-main: var(--color-text);
  --text-secondary: var(--color-muted);
  --text-inverse: #ffffff;
  --text-strong: var(--color-primary);
  --text-accent: var(--color-primary);
  --text-muted-on-dark: rgba(255, 255, 255, 0.72);
  --accent-primary: var(--color-accent);
  --accent-strong: var(--color-primary);
  --accent-strong-hover: var(--color-accent);
  --accent-soft: rgba(232, 216, 181, 0.76);
  --accent-softest: rgba(232, 216, 181, 0.42);
  --accent-gold: var(--color-accent);
  --accent-gold-soft: var(--color-accent-soft);
  --accent-gold-bright: #F2D48C;
  --button-bg: var(--color-primary);
  --button-hover: var(--color-accent);
  --button-text: #ffffff;
  --nav-mobile-bg: rgba(250, 249, 245, 0.98);
  --header-scrolled: rgba(255, 255, 255, 0.88);
  --glass-card: rgba(255, 255, 255, 0.84);
  --glass-card-strong: rgba(255, 255, 255, 0.94);
  --glass-border: var(--color-border);
  --glass-border-strong: rgba(200, 164, 93, 0.42);
  --accent-shadow: rgba(200, 164, 93, 0.18);
  --accent-shadow-strong: rgba(200, 164, 93, 0.32);
  --color-brand-red: var(--color-primary);
  --action-primary: var(--color-primary);
  --premium-accent: var(--color-accent);
  --luxury-gold: var(--color-accent);
}

body.dark,
body.dark-mode,
[data-theme="dark"] {
  color-scheme: dark;
  --primary-red: var(--color-primary-dark);
  --primary-red-dark: var(--color-accent-dark);
  --primary-red-soft: #E5C477;
  --bg-main: var(--color-bg-dark);
  --bg-secondary: var(--color-bg-dark);
  --bg-card: var(--color-surface-dark-2);
  --card-bg: var(--color-surface-dark-2);
  --card-text: var(--color-text-dark);
  --section-dark: var(--color-surface-dark);
  --footer-bg: var(--footer-premium-bg);
  --text-main: var(--color-text-dark);
  --text-secondary: var(--color-muted-dark);
  --text-inverse: #050505;
  --text-strong: #ffffff;
  --text-accent: var(--color-primary-dark);
  --text-muted-on-dark: var(--color-muted-dark);
  --accent-primary: var(--color-primary-dark);
  --accent-strong: var(--color-accent-dark);
  --accent-strong-hover: #F1D48A;
  --accent-soft: rgba(214, 179, 106, 0.18);
  --accent-softest: rgba(214, 179, 106, 0.1);
  --button-bg: var(--color-primary-dark);
  --button-hover: #F1D48A;
  --button-text: #050505;
  --nav-mobile-bg: rgba(5, 5, 5, 0.98);
  --header-scrolled: rgba(5, 5, 5, 0.82);
  --glass-card: rgba(17, 17, 17, 0.78);
  --glass-card-strong: rgba(26, 26, 26, 0.94);
  --glass-border: var(--color-border-dark);
  --glass-border-strong: rgba(214, 179, 106, 0.34);
  --accent-shadow: rgba(214, 179, 106, 0.18);
  --accent-shadow-strong: rgba(214, 179, 106, 0.32);
  --diamond-red: var(--color-primary-dark);
  --diamond-red-soft: rgba(214, 179, 106, 0.2);
  --color-brand-red: var(--color-primary-dark);
  --action-primary: var(--color-primary-dark);
  --premium-accent: var(--color-primary-dark);
}

html { background: var(--bg-main); }
body {
  background:
    radial-gradient(circle at var(--spotlight-x, 18%) var(--spotlight-y, 10%), rgba(200, 164, 93, 0.13), transparent 26rem),
    linear-gradient(135deg, #FAF9F5 0%, #FFFFFF 44%, #F3EFE4 100%) !important;
  color: var(--text-main) !important;
}
body.dark,
body.dark-mode,
[data-theme="dark"] {
  background:
    radial-gradient(circle at var(--spotlight-x, 78%) var(--spotlight-y, 12%), rgba(214, 179, 106, 0.13), transparent 24rem),
    radial-gradient(circle at 12% 82%, rgba(19, 43, 79, 0.32), transparent 30rem),
    linear-gradient(135deg, #050505 0%, #111111 52%, #050505 100%) !important;
}
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 12% 24%, rgba(200, 164, 93, 0.1), transparent 18rem),
    radial-gradient(circle at 88% 18%, rgba(11, 31, 58, 0.08), transparent 20rem),
    linear-gradient(120deg, transparent, rgba(200, 164, 93, 0.05), transparent);
  background-size: 120% 120%, 130% 130%, 220% 220%;
  animation: premiumAurora 18s ease-in-out infinite alternate;
}
body.dark::before,
body.dark-mode::before,
[data-theme="dark"]::before {
  background:
    radial-gradient(circle at 16% 24%, rgba(214, 179, 106, 0.1), transparent 18rem),
    radial-gradient(circle at 84% 16%, rgba(19, 43, 79, 0.34), transparent 22rem),
    linear-gradient(120deg, transparent, rgba(214, 179, 106, 0.04), transparent);
}
@keyframes premiumAurora {
  0% { background-position: 0% 20%, 100% 0%, 0% 50%; }
  100% { background-position: 18% 0%, 82% 26%, 100% 50%; }
}

main,
.main,
section,
.section { color: var(--text-main) !important; }
section,
.section { background: transparent !important; }
h1, h2, h3, h4, h5, h6 { color: var(--text-strong) !important; }
p, li, label, small { color: inherit; }

.premium-gradient-bg,
.premium-stats-section,
.premium-services-section,
.premium-trust-section,
.home-matched-properties,
.education-main,
.section-properties {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at var(--x, 18%) var(--y, 12%), rgba(200, 164, 93, 0.14), transparent 28rem),
    linear-gradient(135deg, rgba(255, 255, 255, 0.72), rgba(250, 249, 245, 0.56)) !important;
}
body.dark .premium-gradient-bg,
body.dark-mode .premium-gradient-bg,
body.dark .premium-stats-section,
body.dark-mode .premium-stats-section,
body.dark .premium-services-section,
body.dark-mode .premium-services-section,
body.dark .premium-trust-section,
body.dark-mode .premium-trust-section,
body.dark .home-matched-properties,
body.dark-mode .home-matched-properties,
body.dark .education-main,
body.dark-mode .education-main,
body.dark .section-properties,
body.dark-mode .section-properties {
  background:
    radial-gradient(circle at var(--x, 78%) var(--y, 18%), rgba(214, 179, 106, 0.12), transparent 26rem),
    linear-gradient(145deg, rgba(5, 5, 5, 0.96), rgba(26, 26, 26, 0.86)) !important;
}

.site-header,
.home-page .site-header,
body:not(.dark):not(.dark-mode) .site-header,
body:not(.dark):not(.dark-mode) .site-header.scrolled,
body:not(.dark):not(.dark-mode) .site-header.is-scrolled {
  background: rgba(250, 249, 245, 0.9) !important;
  border-bottom: 1px solid var(--color-border) !important;
  box-shadow: 0 16px 38px rgba(11, 31, 58, 0.08) !important;
  backdrop-filter: blur(18px);
}
body.dark .site-header,
body.dark-mode .site-header,
[data-theme="dark"] .site-header,
body.dark .site-header.scrolled,
body.dark-mode .site-header.scrolled,
body.dark .site-header.is-scrolled,
body.dark-mode .site-header.is-scrolled {
  background: rgba(5, 5, 5, 0.86) !important;
  border-bottom: 1px solid var(--color-border-dark) !important;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.46) !important;
}
.brand,
.site-header .brand,
.site-header .brand:hover,
.site-header .brand:focus-visible,
body.dark .site-header .brand,
body.dark-mode .site-header .brand { color: var(--color-primary) !important; background: transparent !important; }
.brand span { display: none !important; }
.brand-logo { max-height: 58px; filter: drop-shadow(0 10px 18px rgba(11, 31, 58, 0.14)); }
.site-nav a {
  color: var(--color-primary) !important;
  position: relative;
  transition: color 240ms ease, transform 240ms ease;
}
body.dark .site-nav a,
body.dark-mode .site-nav a { color: var(--color-text-dark) !important; }
.site-nav a::after {
  content: '';
  position: absolute;
  left: 0.55rem;
  right: 0.55rem;
  bottom: 0.32rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
  opacity: 0;
  transform: scaleX(0.4);
  transition: opacity 240ms ease, transform 240ms ease;
}
.site-nav a:hover,
.site-nav a.active { color: var(--color-accent) !important; transform: translateY(-1px); }
.site-nav a:hover::after,
.site-nav a.active::after { opacity: 1; transform: scaleX(1); }
.menu-toggle,
.theme-toggle {
  border: 1px solid var(--color-border) !important;
  background: rgba(255, 255, 255, 0.72) !important;
  color: var(--color-primary) !important;
  box-shadow: 0 10px 24px rgba(11, 31, 58, 0.08) !important;
}
body.dark .menu-toggle,
body.dark-mode .menu-toggle,
body.dark .theme-toggle,
body.dark-mode .theme-toggle {
  border-color: var(--color-border-dark) !important;
  background: rgba(17, 17, 17, 0.78) !important;
  color: var(--color-primary-dark) !important;
}
@media (max-width: 900px) {
  .site-nav {
    background: var(--nav-mobile-bg) !important;
    border: 1px solid var(--glass-border) !important;
    box-shadow: var(--premium-shadow) !important;
  }
}

.btn,
.button,
button[type="submit"],
.premium-btn,
.hero-search-submit,
.btn-primary-property,
.footer-cta,
.education-cta-button,
.contact-form button,
.search-form button {
  border: 1px solid rgba(200, 164, 93, 0.46) !important;
  background: var(--color-primary) !important;
  color: #ffffff !important;
  box-shadow: 0 14px 32px rgba(11, 31, 58, 0.16) !important;
  transition: transform 260ms ease, background 260ms ease, color 260ms ease, box-shadow 260ms ease, border-color 260ms ease;
}
.btn:hover,
.button:hover,
button[type="submit"]:hover,
.premium-btn:hover,
.hero-search-submit:hover,
.btn-primary-property:hover,
.footer-cta:hover,
.education-cta-button:hover,
.contact-form button:hover,
.search-form button:hover {
  background: var(--color-accent) !important;
  color: var(--color-primary) !important;
  border-color: var(--color-accent) !important;
  transform: translateY(-3px);
  box-shadow: 0 18px 42px rgba(200, 164, 93, 0.26) !important;
}
.premium-btn-secondary,
.btn-secondary,
.button.secondary,
.filters-toggle,
.text-link {
  background: transparent !important;
  color: var(--color-primary) !important;
  border: 1px solid var(--color-border) !important;
}
.premium-btn-secondary:hover,
.btn-secondary:hover,
.button.secondary:hover,
.filters-toggle:hover,
.text-link:hover {
  background: rgba(200, 164, 93, 0.14) !important;
  color: var(--color-primary) !important;
  border-color: var(--color-accent) !important;
}
body.dark .btn,
body.dark-mode .btn,
body.dark .button,
body.dark-mode .button,
body.dark button[type="submit"],
body.dark-mode button[type="submit"],
body.dark .premium-btn,
body.dark-mode .premium-btn,
body.dark .hero-search-submit,
body.dark-mode .hero-search-submit,
body.dark .btn-primary-property,
body.dark-mode .btn-primary-property,
body.dark .footer-cta,
body.dark-mode .footer-cta,
body.dark .education-cta-button,
body.dark-mode .education-cta-button {
  background: var(--color-primary-dark) !important;
  color: #050505 !important;
  border-color: rgba(214, 179, 106, 0.62) !important;
  box-shadow: 0 0 0 1px rgba(214, 179, 106, 0.08), 0 18px 48px rgba(0, 0, 0, 0.38) !important;
}
body.dark .premium-btn-secondary,
body.dark-mode .premium-btn-secondary,
body.dark .btn-secondary,
body.dark-mode .btn-secondary,
body.dark .text-link,
body.dark-mode .text-link {
  background: transparent !important;
  color: var(--color-primary-dark) !important;
}
body.dark .btn:hover,
body.dark-mode .btn:hover,
body.dark .button:hover,
body.dark-mode .button:hover,
body.dark button[type="submit"]:hover,
body.dark-mode button[type="submit"]:hover,
body.dark .premium-btn:hover,
body.dark-mode .premium-btn:hover,
body.dark .hero-search-submit:hover,
body.dark-mode .hero-search-submit:hover {
  box-shadow: 0 0 34px rgba(214, 179, 106, 0.28) !important;
}

.premium-hero,
.hero,
.education-hero {
  background:
    radial-gradient(circle at var(--x, 70%) var(--y, 28%), rgba(200, 164, 93, 0.2), transparent 30rem),
    linear-gradient(120deg, rgba(11, 31, 58, 0.84), rgba(11, 31, 58, 0.48)) !important;
}
.hero-overlay,
.education-hero-overlay {
  background:
    linear-gradient(90deg, rgba(5, 13, 26, 0.78), rgba(5, 13, 26, 0.4)),
    radial-gradient(circle at var(--x, 72%) var(--y, 22%), rgba(200, 164, 93, 0.22), transparent 28rem) !important;
}
.premium-hero .eyebrow,
.eyebrow,
.hero-license,
.section-kicker,
.education-kicker { color: var(--color-accent) !important; }
.premium-hero h1,
.education-hero h1,
.hero h1 { color: #ffffff !important; text-shadow: 0 20px 52px rgba(0, 0, 0, 0.4); }
.premium-hero .hero-static-content .hero-title,
.premium-hero .hero-static-content .hero-title span,
.premium-hero .hero-static-content .hero-title * { color: #ffffff !important; }
.premium-hero .hero-description,
.education-hero p { color: rgba(255, 255, 255, 0.82) !important; }
.premium-search,
.search-form,
.hero-search-content,
.stat-card,
.premium-stats-grid article,
.service-card,
.trust-card,
.highlight-card,
.contact-card,
.agent-card,
.info-card,
.education-step,
.education-card,
.property-card,
#propertiesGrid .property-card,
.home-page #featuredGrid .property-card,
.home-page .home-matched-properties-grid .property-card {
  position: relative;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.9) !important;
  border: 1px solid var(--color-border) !important;
  box-shadow: var(--premium-shadow) !important;
  color: var(--color-text) !important;
}
body.dark .premium-search,
body.dark-mode .premium-search,
body.dark .search-form,
body.dark-mode .search-form,
body.dark .hero-search-content,
body.dark-mode .hero-search-content,
body.dark .stat-card,
body.dark-mode .stat-card,
body.dark .premium-stats-grid article,
body.dark-mode .premium-stats-grid article,
body.dark .service-card,
body.dark-mode .service-card,
body.dark .trust-card,
body.dark-mode .trust-card,
body.dark .highlight-card,
body.dark-mode .highlight-card,
body.dark .contact-card,
body.dark-mode .contact-card,
body.dark .agent-card,
body.dark-mode .agent-card,
body.dark .info-card,
body.dark-mode .info-card,
body.dark .education-step,
body.dark-mode .education-step,
body.dark .education-card,
body.dark-mode .education-card,
body.dark .property-card,
body.dark-mode .property-card {
  background: rgba(26, 26, 26, 0.84) !important;
  border-color: var(--color-border-dark) !important;
  box-shadow: var(--premium-dark-shadow) !important;
  color: var(--color-text-dark) !important;
}
.premium-glow-hover::before,
.premium-card-light::before,
.spotlight-hover::before,
.premium-search::before,
.hero-search-content::before,
.stat-card::before,
.premium-stats-grid article::before,
.service-card::before,
.trust-card::before,
.education-step::before,
.education-card::before,
.property-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  pointer-events: none;
  opacity: 0;
  background:
    radial-gradient(circle at var(--x, 50%) var(--y, 50%), rgba(200, 164, 93, 0.24), transparent 34%),
    linear-gradient(120deg, rgba(255, 255, 255, 0.2), transparent 42%);
  transition: opacity 320ms ease, transform 420ms ease;
  transform: scale(0.98);
  z-index: 0;
}
body.dark .premium-glow-hover::before,
body.dark-mode .premium-glow-hover::before,
body.dark .premium-card-light::before,
body.dark-mode .premium-card-light::before,
body.dark .spotlight-hover::before,
body.dark-mode .spotlight-hover::before,
body.dark .property-card::before,
body.dark-mode .property-card::before,
body.dark .education-card::before,
body.dark-mode .education-card::before {
  background: radial-gradient(circle at var(--x, 50%) var(--y, 50%), rgba(214, 179, 106, 0.22), transparent 36%);
}
.premium-glow-hover:hover::before,
.premium-card-light:hover::before,
.spotlight-hover:hover::before,
.premium-search:hover::before,
.hero-search-content:hover::before,
.stat-card:hover::before,
.premium-stats-grid article:hover::before,
.service-card:hover::before,
.trust-card:hover::before,
.education-step:hover::before,
.education-card:hover::before,
.property-card:hover::before {
  opacity: 1;
  transform: scale(1);
}
.premium-search > *,
.hero-search-content > *,
.stat-card > *,
.premium-stats-grid article > *,
.service-card > *,
.trust-card > *,
.education-step > *,
.education-card > *,
.property-card > * { position: relative; z-index: 1; }
.property-card:hover,
.education-card:hover,
.service-card:hover,
.trust-card:hover,
.premium-stats-grid article:hover {
  transform: translateY(-7px) !important;
  box-shadow: var(--premium-shadow-hover) !important;
}
body.dark .property-card:hover,
body.dark-mode .property-card:hover,
body.dark .education-card:hover,
body.dark-mode .education-card:hover,
body.dark .service-card:hover,
body.dark-mode .service-card:hover {
  box-shadow: 0 0 0 1px rgba(214, 179, 106, 0.2), 0 32px 90px rgba(0, 0, 0, 0.58) !important;
}

.property-card,
#propertiesGrid .property-card,
.home-page #featuredGrid .property-card,
.home-page .home-matched-properties-grid .property-card {
  border-radius: 1.3rem !important;
  max-width: 100%;
}
.home-page #featuredGrid .property-cover,
#propertiesGrid .property-cover,
.property-card > img {
  min-height: 210px !important;
  max-height: 255px !important;
}
.property-card h1,
.property-card h2,
.property-card h3,
#propertiesGrid .property-card h3,
.home-page #featuredGrid .property-card h3 { color: var(--color-primary) !important; }
body.dark .property-card h1,
body.dark-mode .property-card h1,
body.dark .property-card h2,
body.dark-mode .property-card h2,
body.dark .property-card h3,
body.dark-mode .property-card h3 { color: #ffffff !important; }
.property-card .price,
.property-price,
.home-page #featuredGrid .price,
.home-page #featuredGrid .property-price-area { color: var(--color-accent) !important; }
.badge,
.property-badge,
.home-page #featuredGrid .badge {
  background: rgba(200, 164, 93, 0.14) !important;
  color: var(--color-primary) !important;
  border: 1px solid var(--color-border) !important;
}
body.dark .badge,
body.dark-mode .badge,
body.dark .property-badge,
body.dark-mode .property-badge { color: var(--color-primary-dark) !important; background: rgba(214, 179, 106, 0.12) !important; }

input,
select,
textarea {
  background: rgba(255, 255, 255, 0.92) !important;
  color: var(--color-text) !important;
  border: 1px solid var(--color-border) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72) !important;
}
input:focus,
select:focus,
textarea:focus {
  border-color: var(--color-accent) !important;
  box-shadow: 0 0 0 4px rgba(200, 164, 93, 0.16) !important;
}
body.dark input,
body.dark-mode input,
body.dark select,
body.dark-mode select,
body.dark textarea,
body.dark-mode textarea {
  background: rgba(17, 17, 17, 0.9) !important;
  color: var(--color-text-dark) !important;
  border-color: var(--color-border-dark) !important;
}
.hero-operation-tab {
  color: var(--color-primary) !important;
  background: transparent !important;
  border-color: var(--color-border) !important;
}
.hero-operation-tab.is-active,
.hero-operation-tab:hover {
  background: var(--color-primary) !important;
  color: #ffffff !important;
  border-color: var(--color-accent) !important;
}
body.dark .hero-operation-tab { color: var(--color-primary-dark) !important; border-color: var(--color-border-dark) !important; }
body.dark .hero-operation-tab.is-active,
body.dark .hero-operation-tab:hover,
body.dark-mode .hero-operation-tab.is-active,
body.dark-mode .hero-operation-tab:hover { background: var(--color-primary-dark) !important; color: #050505 !important; }

.education-main {
  background:
    radial-gradient(circle at 12% 14%, rgba(200, 164, 93, 0.16), transparent 26rem),
    linear-gradient(180deg, #FAF9F5 0%, #FFFFFF 48%, #F3EFE4 100%) !important;
}
.education-section h2,
.education-step h3,
.education-card h3 { color: var(--color-primary) !important; }
.education-lead,
.education-card p,
.education-step p { color: var(--color-muted) !important; }
.education-card {
  background:
    linear-gradient(#FFFFFF, #FFFFFF) padding-box,
    linear-gradient(135deg, rgba(200, 164, 93, 0.52), rgba(11, 31, 58, 0.08), rgba(200, 164, 93, 0.28)) border-box !important;
  border: 1px solid transparent !important;
}
body.dark .education-main,
body.dark-mode .education-main {
  background:
    radial-gradient(circle at 18% 12%, rgba(214, 179, 106, 0.12), transparent 26rem),
    radial-gradient(circle at 84% 82%, rgba(19, 43, 79, 0.24), transparent 30rem),
    linear-gradient(180deg, #050505 0%, #111111 54%, #050505 100%) !important;
}
body.dark .education-section h2,
body.dark-mode .education-section h2,
body.dark .education-step h3,
body.dark-mode .education-step h3,
body.dark .education-card h3,
body.dark-mode .education-card h3 { color: #ffffff !important; }
body.dark .education-lead,
body.dark-mode .education-lead,
body.dark .education-card p,
body.dark-mode .education-card p,
body.dark .education-step p,
body.dark-mode .education-step p { color: var(--color-muted-dark) !important; }
body.dark .education-card,
body.dark-mode .education-card {
  background:
    linear-gradient(rgba(26, 26, 26, 0.92), rgba(17, 17, 17, 0.92)) padding-box,
    linear-gradient(135deg, rgba(214, 179, 106, 0.42), rgba(255, 255, 255, 0.06), rgba(214, 179, 106, 0.22)) border-box !important;
}
.education-errors-panel,
.education-cta-card {
  background:
    radial-gradient(circle at var(--x, 50%) var(--y, 18%), rgba(200, 164, 93, 0.2), transparent 24rem),
    linear-gradient(120deg, rgba(11, 31, 58, 0.96), rgba(5, 13, 26, 0.92)) !important;
}

.premium-preloader {
  background:
    radial-gradient(circle at 50% 42%, rgba(200, 164, 93, 0.18), transparent 18rem),
    linear-gradient(135deg, #FAF9F5 0%, #FFFFFF 100%) !important;
}
body.dark .premium-preloader,
body.dark-mode .premium-preloader {
  background:
    radial-gradient(circle at 50% 42%, rgba(214, 179, 106, 0.16), transparent 18rem),
    linear-gradient(135deg, #050505 0%, #111111 100%) !important;
}
.premium-preloader-card { filter: drop-shadow(0 20px 45px rgba(11, 31, 58, 0.14)); }
.premium-preloader-text { color: var(--color-accent) !important; }
body.dark .premium-preloader-text,
body.dark-mode .premium-preloader-text { color: var(--color-primary-dark) !important; }
.premium-preloader-line {
  height: 2px !important;
  background: linear-gradient(90deg, transparent, var(--color-accent), transparent) !important;
  box-shadow: 0 0 22px rgba(200, 164, 93, 0.34);
}
body.dark .premium-preloader-line,
body.dark-mode .premium-preloader-line { background: linear-gradient(90deg, transparent, var(--color-primary-dark), transparent) !important; }

.site-footer,
body.dark .site-footer,
body.dark-mode .site-footer,
[data-theme="dark"] .site-footer {
  background: var(--footer-premium-bg) !important;
  border-top: 1px solid rgba(243, 210, 122, 0.34) !important;
}
.site-footer :is(a, a:link, a:visited, a:active),
.site-footer :is(h1, h2, h3, h4, h5, h6, p, span, small, strong, em, li, label),
.site-footer .footer-social-link,
.site-footer .footer-social a {
  color: var(--footer-premium-text) !important;
}
.site-footer :is(a:hover, a:focus-visible),
.site-footer .footer-social-link:is(:hover, :focus-visible),
.site-footer .footer-social a:is(:hover, :focus-visible) {
  color: var(--footer-premium-text-hover) !important;
}
.site-footer .footer-cta,
body.dark .site-footer .footer-cta,
body.dark-mode .site-footer .footer-cta,
[data-theme="dark"] .site-footer .footer-cta {
  background: rgba(5, 5, 5, 0.32) !important;
  border-color: rgba(243, 210, 122, 0.34) !important;
  color: var(--footer-premium-text) !important;
}
.site-footer .footer-cta:is(:hover, :focus-visible),
body.dark .site-footer .footer-cta:is(:hover, :focus-visible),
body.dark-mode .site-footer .footer-cta:is(:hover, :focus-visible),
[data-theme="dark"] .site-footer .footer-cta:is(:hover, :focus-visible) {
  background: rgba(5, 5, 5, 0.52) !important;
  border-color: var(--footer-premium-text-hover) !important;
  color: var(--footer-premium-text-hover) !important;
}
a:hover { color: var(--color-accent) !important; }
::selection { background: rgba(200, 164, 93, 0.34); color: var(--color-primary); }

@media (max-width: 760px) {
  .brand-logo { max-height: 48px; }
  .premium-hero .hero-content,
  .hero-content { gap: 1.6rem !important; }
  .property-card,
  .education-card { border-radius: 1.1rem !important; }
}
@media (prefers-reduced-motion: reduce) {
  body::before { animation: none !important; }
  *, *::before, *::after { scroll-behavior: auto !important; }
}

/* Final mobile navbar and hero advisor button fixes */
@media (max-width: 900px) {
  body:not(.dark):not(.dark-mode) .site-nav,
  body:not(.dark):not(.dark-mode) .site-nav.open,
  body:not(.dark):not(.dark-mode) .site-nav.active,
  body:not(.dark):not(.dark-mode) .main-nav,
  body:not(.dark):not(.dark-mode) .mobile-menu,
  body:not(.dark):not(.dark-mode) .nav-menu,
  body:not(.dark):not(.dark-mode) .nav-wrapper.menu-open {
    background: #f8f3ec !important;
    background-color: #f8f3ec !important;
    border-color: rgba(7, 22, 47, 0.12) !important;
  }

  body:not(.dark):not(.dark-mode) .site-nav a,
  body:not(.dark):not(.dark-mode) .site-nav.open a,
  body:not(.dark):not(.dark-mode) .site-nav.active a,
  body:not(.dark):not(.dark-mode) .main-nav a,
  body:not(.dark):not(.dark-mode) .mobile-menu a,
  body:not(.dark):not(.dark-mode) .nav-menu a {
    color: #07162f !important;
  }

  body.dark .site-nav,
  body.dark-mode .site-nav,
  body.dark .site-nav.open,
  body.dark-mode .site-nav.open,
  body.dark .site-nav.active,
  body.dark-mode .site-nav.active,
  body.dark .main-nav,
  body.dark-mode .main-nav,
  body.dark .mobile-menu,
  body.dark-mode .mobile-menu,
  body.dark .nav-menu,
  body.dark-mode .nav-menu,
  body.dark .nav-wrapper.menu-open,
  body.dark-mode .nav-wrapper.menu-open {
    background: rgba(5, 5, 5, 0.98) !important;
    background-color: rgba(5, 5, 5, 0.98) !important;
  }
}

.home-page .hero .premium-btn-secondary[href*="wa.me"],
.home-page .hero .premium-btn-secondary[href*="wa.me"]:hover,
.home-page .hero .premium-btn-secondary[href*="wa.me"]:focus-visible,
.home-page .hero .btn-secondary[href*="wa.me"],
.home-page .hero .btn-secondary[href*="wa.me"]:hover,
.home-page .hero .btn-secondary[href*="wa.me"]:focus-visible,
.home-page .hero .hero-advisor-button,
.home-page .hero .hero-advisor-button:hover,
.home-page .hero .hero-advisor-button:focus-visible {
  color: #d4af37 !important;
}

/* Hero search primary button: fixed premium gold in light and dark modes */
.home-page .hero-search-content .premium-search .hero-search-submit,
.home-page .hero-search-content .premium-search .hero-search-submit:visited,
body.dark .home-page .hero-search-content .premium-search .hero-search-submit,
body.dark-mode .home-page .hero-search-content .premium-search .hero-search-submit,
[data-theme="dark"] .home-page .hero-search-content .premium-search .hero-search-submit,
body:not(.dark):not(.dark-mode) .home-page .hero-search-content .premium-search .hero-search-submit {
  background: #d4af37 !important;
  background-color: #d4af37 !important;
  color: #07162f !important;
  border-color: #d4af37 !important;
}

.home-page .hero-search-content .premium-search .hero-search-submit:hover,
.home-page .hero-search-content .premium-search .hero-search-submit:focus-visible,
body.dark .home-page .hero-search-content .premium-search .hero-search-submit:hover,
body.dark .home-page .hero-search-content .premium-search .hero-search-submit:focus-visible,
body.dark-mode .home-page .hero-search-content .premium-search .hero-search-submit:hover,
body.dark-mode .home-page .hero-search-content .premium-search .hero-search-submit:focus-visible,
[data-theme="dark"] .home-page .hero-search-content .premium-search .hero-search-submit:hover,
[data-theme="dark"] .home-page .hero-search-content .premium-search .hero-search-submit:focus-visible {
  background: #e3bf63 !important;
  background-color: #e3bf63 !important;
  color: #07162f !important;
  border-color: #e3bf63 !important;
}

/* Diamantes Realty Group red logo identity and graphite dark-mode refinement. */
:root {
  --brand-red: #B00008;
  --brand-red-hover: #C51A22;
  --brand-red-active: #930006;
  --premium-dark-gradient: linear-gradient(180deg, #181818 0%, #222222 50%, #2A2A2A 100%);
  --color-accent: var(--brand-red);
  --color-accent-soft: rgba(176, 0, 8, 0.16);
  --color-border: rgba(176, 0, 8, 0.22);
  --primary-red: var(--brand-red);
  --primary-red-dark: var(--brand-red-active);
  --primary-red-soft: var(--brand-red-hover);
  --diamond-red: var(--brand-red);
  --accent-primary: var(--brand-red);
  --accent-strong: var(--brand-red-active);
  --accent-strong-hover: var(--brand-red-hover);
  --accent-gold: var(--brand-red);
  --accent-gold-soft: var(--brand-red-hover);
  --accent-gold-bright: var(--brand-red-hover);
  --button-bg: var(--brand-red);
  --button-hover: var(--brand-red-hover);
  --button-text: #ffffff;
  --color-brand-red: var(--brand-red);
  --action-primary: var(--brand-red);
  --premium-accent: var(--brand-red);
  --luxury-gold: var(--brand-red);
}

body.dark,
body.dark-mode,
[data-theme="dark"] {
  --color-bg-dark: #181818;
  --color-surface-dark: #222222;
  --color-surface-dark-2: #2A2A2A;
  --color-primary-dark: var(--brand-red);
  --color-accent-dark: var(--brand-red-hover);
  --color-text-dark: #F5F5F5;
  --color-muted-dark: #D4D4D4;
  --color-border-dark: rgba(255, 255, 255, 0.16);
  --bg-main: #181818;
  --bg-secondary: #222222;
  --bg-card: #242424;
  --card-bg: #242424;
  --text-main: #F5F5F5;
  --text-secondary: #D4D4D4;
  --text-inverse: #ffffff;
  --accent-primary: var(--brand-red);
  --accent-strong: var(--brand-red-active);
  --accent-strong-hover: var(--brand-red-hover);
  --button-bg: var(--brand-red);
  --button-hover: var(--brand-red-hover);
  --button-text: #ffffff;
  --nav-mobile-bg: rgba(24, 24, 24, 0.98);
  --header-scrolled: rgba(24, 24, 24, 0.88);
  --glass-card: rgba(34, 34, 34, 0.86);
  --glass-card-strong: rgba(42, 42, 42, 0.94);
}

body.dark,
body.dark-mode,
[data-theme="dark"] {
  background: var(--premium-dark-gradient) !important;
  color: var(--text-main) !important;
}

body.dark main,
body.dark-mode main,
[data-theme="dark"] main,
body.dark section,
body.dark-mode section,
body.dark .section,
body.dark-mode .section,
body.dark .premium-gradient-bg,
body.dark-mode .premium-gradient-bg,
body.dark .premium-stats-section,
body.dark-mode .premium-stats-section,
body.dark .premium-services-section,
body.dark-mode .premium-services-section,
body.dark .premium-trust-section,
body.dark-mode .premium-trust-section,
body.dark .home-matched-properties,
body.dark-mode .home-matched-properties,
body.dark .education-main,
body.dark-mode .education-main,
body.dark .section-properties,
body.dark-mode .section-properties {
  background: var(--premium-dark-gradient) !important;
  color: var(--text-main) !important;
}

body.dark .stat-card,
body.dark-mode .stat-card,
body.dark .premium-stats-grid article,
body.dark-mode .premium-stats-grid article,
body.dark .service-card,
body.dark-mode .service-card,
body.dark .trust-card,
body.dark-mode .trust-card,
body.dark .highlight-card,
body.dark-mode .highlight-card,
body.dark .contact-card,
body.dark-mode .contact-card,
body.dark .property-card,
body.dark-mode .property-card {
  background: var(--premium-dark-gradient) !important;
  border-color: rgba(255, 255, 255, 0.14) !important;
  color: var(--text-main) !important;
}

body.dark .hero-overlay,
body.dark-mode .hero-overlay,
body.dark .premium-hero::before,
body.dark-mode .premium-hero::before {
  background: linear-gradient(90deg, rgba(24, 24, 24, 0.84) 0%, rgba(34, 34, 34, 0.58) 50%, rgba(42, 42, 42, 0.2) 100%) !important;
}

.btn,
.button,
button[type="submit"],
.premium-btn,
.premium-btn-primary,
.hero-search-submit,
.footer-cta,
.education-cta-button,
.btn-primary-property {
  background: var(--brand-red) !important;
  background-color: var(--brand-red) !important;
  border-color: var(--brand-red) !important;
  color: #ffffff !important;
  box-shadow: 0 14px 30px rgba(176, 0, 8, 0.22);
}

.btn:hover,
.button:hover,
button[type="submit"]:hover,
.premium-btn:hover,
.premium-btn-primary:hover,
.hero-search-submit:hover,
.footer-cta:hover,
.education-cta-button:hover,
.btn-primary-property:hover {
  background: var(--brand-red-hover) !important;
  background-color: var(--brand-red-hover) !important;
  border-color: var(--brand-red-hover) !important;
  color: #ffffff !important;
}

.btn:active,
.button:active,
button[type="submit"]:active,
.premium-btn:active,
.premium-btn-primary:active,
.hero-search-submit:active,
.footer-cta:active,
.education-cta-button:active,
.btn-primary-property:active {
  background: var(--brand-red-active) !important;
  background-color: var(--brand-red-active) !important;
  border-color: var(--brand-red-active) !important;
  color: #ffffff !important;
}

.home-page .hero .premium-btn-secondary[href*="wa.me"],
.home-page .hero .premium-btn-secondary[href*="wa.me"]:hover,
.home-page .hero .premium-btn-secondary[href*="wa.me"]:focus-visible,
.home-page .hero .btn-secondary[href*="wa.me"],
.home-page .hero .btn-secondary[href*="wa.me"]:hover,
.home-page .hero .btn-secondary[href*="wa.me"]:focus-visible,
.home-page .hero .hero-advisor-button,
.home-page .hero .hero-advisor-button:hover,
.home-page .hero .hero-advisor-button:focus-visible {
  color: #ffffff !important;
}

.home-page .hero-search-content .premium-search .hero-search-submit,
.home-page .hero-search-content .premium-search .hero-search-submit:visited,
.home-page .premium-search .hero-search-submit,
body.dark .home-page .hero-search-content .premium-search .hero-search-submit,
body.dark-mode .home-page .hero-search-content .premium-search .hero-search-submit,
[data-theme="dark"] .home-page .hero-search-content .premium-search .hero-search-submit,
body:not(.dark):not(.dark-mode) .home-page .hero-search-content .premium-search .hero-search-submit {
  background: var(--brand-red) !important;
  background-color: var(--brand-red) !important;
  color: #ffffff !important;
  border-color: var(--brand-red) !important;
}

.home-page .hero-search-content .premium-search .hero-search-submit:hover,
.home-page .hero-search-content .premium-search .hero-search-submit:focus-visible,
.home-page .premium-search .hero-search-submit:hover,
.home-page .premium-search .hero-search-submit:focus-visible,
body.dark .home-page .hero-search-content .premium-search .hero-search-submit:hover,
body.dark .home-page .hero-search-content .premium-search .hero-search-submit:focus-visible,
body.dark-mode .home-page .hero-search-content .premium-search .hero-search-submit:hover,
body.dark-mode .home-page .hero-search-content .premium-search .hero-search-submit:focus-visible,
[data-theme="dark"] .home-page .hero-search-content .premium-search .hero-search-submit:hover,
[data-theme="dark"] .home-page .hero-search-content .premium-search .hero-search-submit:focus-visible {
  background: var(--brand-red-hover) !important;
  background-color: var(--brand-red-hover) !important;
  color: #ffffff !important;
  border-color: var(--brand-red-hover) !important;
}

/* Premium property pricing typography */
.property-card .price,
.property-price,
.detail-summary-price,
.shared-detail-grid .price,
.home-page #featuredGrid .price,
.home-page .home-matched-properties-grid .price {
  color: #B00008 !important;
  font-family: "Inter", "Montserrat", "Manrope", "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
  font-size: 2rem !important;
  font-weight: 700 !important;
  letter-spacing: -0.5px !important;
  line-height: 1.1 !important;
  text-align: left;
  white-space: pre-line;
}

.price .price-usd,
.property-price .price-usd,
.detail-summary-price .price-usd {
  display: block;
  color: #B00008;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  line-height: 1.1;
}

.price .price-nio,
.property-price .price-nio,
.detail-summary-price .price-nio {
  display: block;
  color: #B00008;
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: -0.5px;
  line-height: 1.1;
  opacity: 0.9;
  margin-top: 0.15rem;
}

/* Compact glassmorphism hero search card refinement. */
.home-page .hero-search-content {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  overflow: visible;
}

.home-page .hero-search-content::before,
.home-page .hero-search-content .premium-search::before {
  content: none !important;
}

.home-page .hero-search-content .premium-search {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.62rem;
  align-items: center;
  margin-top: 0 !important;
  padding: 0.78rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.72) !important;
  border: 1px solid rgba(255, 255, 255, 0.35) !important;
  box-shadow: 0 20px 52px rgba(15, 23, 42, 0.18) !important;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.home-page .hero-search-content .premium-search select,
.home-page .hero-search-content .premium-search input {
  min-height: 44px;
  height: 44px;
  padding: 0.56rem 0.78rem;
  border-radius: 13px;
  border: 1px solid rgba(255, 255, 255, 0.42) !important;
  background: rgba(255, 255, 255, 0.58) !important;
  color: var(--premium-text);
  font-family: var(--premium-ui);
  font-size: 0.91rem;
  font-weight: 600;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.46);
}

.home-page .hero-search-content .premium-search select:focus,
.home-page .hero-search-content .premium-search input:focus {
  outline: none;
  border-color: rgba(176, 0, 8, 0.34) !important;
  box-shadow: 0 0 0 3px rgba(176, 0, 8, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.52);
}

.home-page .hero-search-content .premium-search .hero-search-submit {
  min-height: 44px;
  margin-top: 0;
}

body.dark .home-page .hero-search-content .premium-search,
body.dark-mode .home-page .hero-search-content .premium-search,
[data-theme="dark"] .home-page .hero-search-content .premium-search {
  background: rgba(40, 40, 40, 0.55) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 24px 62px rgba(0, 0, 0, 0.42) !important;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

body.dark .home-page .hero-search-content .premium-search select,
body.dark .home-page .hero-search-content .premium-search input,
body.dark-mode .home-page .hero-search-content .premium-search select,
body.dark-mode .home-page .hero-search-content .premium-search input,
[data-theme="dark"] .home-page .hero-search-content .premium-search select,
[data-theme="dark"] .home-page .hero-search-content .premium-search input {
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
  color: rgba(255, 255, 255, 0.92) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

body.dark .home-page .hero-search-content .premium-search select:focus,
body.dark .home-page .hero-search-content .premium-search input:focus,
body.dark-mode .home-page .hero-search-content .premium-search select:focus,
body.dark-mode .home-page .hero-search-content .premium-search input:focus,
[data-theme="dark"] .home-page .hero-search-content .premium-search select:focus,
[data-theme="dark"] .home-page .hero-search-content .premium-search input:focus {
  border-color: rgba(255, 255, 255, 0.22) !important;
  box-shadow: 0 0 0 3px rgba(176, 0, 8, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

@media (max-width: 960px) {
  .home-page .hero-search-content .premium-search {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .home-page .hero-search-content .premium-search {
    grid-template-columns: 1fr;
    padding: 0.72rem;
    border-radius: 18px;
  }
}

/* Home property slider sizing and responsive card refinements */
.home-page .home-property-slider,
.home-page #featuredGrid.home-property-slider.properties-grid {
  display: flex !important;
  grid-template-columns: none !important;
  grid-auto-flow: initial !important;
  grid-auto-columns: initial !important;
  gap: 24px !important;
  overflow-x: auto !important;
  overflow-y: visible !important;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 0.2rem 0.15rem 12px;
  cursor: grab;
  touch-action: pan-y pinch-zoom;
}

.home-page .home-property-slider::-webkit-scrollbar,
.home-page #featuredGrid.home-property-slider::-webkit-scrollbar {
  display: none;
}

.home-page .home-property-slider.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;
  user-select: none;
}

.home-page .home-property-slider .property-card,
.home-page #featuredGrid.home-property-slider .property-card {
  display: flex !important;
  flex: 0 0 340px !important;
  flex-direction: column;
  flex-shrink: 0 !important;
  width: auto !important;
  min-width: 340px !important;
  max-width: 340px !important;
  height: auto !important;
  min-height: unset !important;
  max-height: none !important;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.home-page .home-property-slider .property-cover,
.home-page #featuredGrid.home-property-slider .property-cover,
.home-page .home-property-slider .property-card > img,
.home-page #featuredGrid.home-property-slider .property-card > img {
  aspect-ratio: auto !important;
  height: 220px !important;
  min-height: 220px !important;
  max-height: 220px !important;
  overflow: hidden;
}

.home-page .home-property-slider .property-cover-image,
.home-page #featuredGrid.home-property-slider .property-cover-image,
.home-page .home-property-slider .property-card > img,
.home-page #featuredGrid.home-property-slider .property-card > img {
  width: 100%;
  height: 100% !important;
  object-fit: cover;
}

.home-page .home-property-slider .property-card-content,
.home-page #featuredGrid.home-property-slider .property-card-content {
  display: flex !important;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 0.48rem !important;
  padding: 0.95rem 1rem 1rem !important;
}

.home-page .home-property-slider .property-card h3,
.home-page #featuredGrid.home-property-slider .property-card h3 {
  display: -webkit-box;
  min-height: 0 !important;
  margin: 0 !important;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-size: 1.22rem !important;
  line-height: 1.2 !important;
}

.home-page .home-property-slider .badge,
.home-page #featuredGrid.home-property-slider .badge,
.home-page .home-property-slider .property-location,
.home-page #featuredGrid.home-property-slider .property-location,
.home-page .home-property-slider .property-price-area,
.home-page #featuredGrid.home-property-slider .property-price-area {
  margin: 0 !important;
}

.home-page .home-property-slider .property-location,
.home-page #featuredGrid.home-property-slider .property-location {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
  font-size: 0.9rem !important;
  line-height: 1.25 !important;
}

.home-page .home-property-slider .price,
.home-page #featuredGrid.home-property-slider .price {
  display: block;
  margin: 0.08rem 0 !important;
  overflow-wrap: anywhere;
  font-size: 1.55rem !important;
  line-height: 1.05 !important;
  white-space: normal !important;
}

.home-page .home-property-slider .price .price-usd,
.home-page #featuredGrid.home-property-slider .price .price-usd {
  font-size: 1.55rem !important;
  line-height: 1.05 !important;
  overflow-wrap: anywhere;
  white-space: normal !important;
}

.home-page .home-property-slider .price .price-nio,
.home-page #featuredGrid.home-property-slider .price .price-nio,
.home-page .home-property-slider .price .price-unavailable,
.home-page #featuredGrid.home-property-slider .price .price-unavailable {
  font-size: 1rem !important;
  line-height: 1.05 !important;
  overflow-wrap: anywhere;
  white-space: normal !important;
}

.home-page .home-property-slider .property-meta.property-meta-icons,
.home-page #featuredGrid.home-property-slider .property-meta.property-meta-icons {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 0.36rem 0.5rem !important;
  margin-top: 0 !important;
  font-size: 0.88rem !important;
}

.home-page .home-property-slider .property-meta-icons span,
.home-page #featuredGrid.home-property-slider .property-meta-icons span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.88rem !important;
  line-height: 1.18 !important;
}

.home-page .home-property-slider .property-meta-icons svg,
.home-page #featuredGrid.home-property-slider .property-meta-icons svg {
  width: 14px !important;
  height: 14px !important;
  flex: 0 0 14px !important;
}

.home-page .home-property-slider .property-card-actions,
.home-page #featuredGrid.home-property-slider .property-card-actions {
  margin-top: auto !important;
}

.home-page .home-property-slider .btn-primary-property,
.home-page #featuredGrid.home-property-slider .btn-primary-property {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100% !important;
  min-height: 42px;
  margin-top: 0 !important;
  padding: 0.72rem 1rem !important;
  line-height: 1.1 !important;
}

@media (min-width: 1440px) {
  .home-page .home-property-slider .property-card,
  .home-page #featuredGrid.home-property-slider .property-card {
    flex-basis: 360px !important;
    min-width: 360px !important;
    max-width: 360px !important;
  }
}

@media (max-width: 980px) {
  .home-page .home-property-slider,
  .home-page #featuredGrid.home-property-slider.properties-grid {
    gap: 20px !important;
  }

  .home-page .home-property-slider .property-card,
  .home-page #featuredGrid.home-property-slider .property-card {
    flex-basis: 300px !important;
    min-width: 300px !important;
    max-width: 300px !important;
  }

  .home-page .home-property-slider .property-cover,
  .home-page #featuredGrid.home-property-slider .property-cover,
  .home-page .home-property-slider .property-card > img,
  .home-page #featuredGrid.home-property-slider .property-card > img {
    height: 200px !important;
    min-height: 200px !important;
    max-height: 200px !important;
  }
}

@media (max-width: 640px) {
  .home-page .home-property-slider,
  .home-page #featuredGrid.home-property-slider.properties-grid {
    gap: 16px !important;
    overflow-y: visible !important;
    padding-inline: 16px !important;
    padding-bottom: 12px !important;
    margin-inline: -16px;
  }

  .home-page .home-property-slider .property-card,
  .home-page #featuredGrid.home-property-slider .property-card {
    flex-basis: 78vw !important;
    min-width: 78vw !important;
    max-width: 78vw !important;
  }

  .home-page .home-property-slider .property-cover,
  .home-page #featuredGrid.home-property-slider .property-cover,
  .home-page .home-property-slider .property-card > img,
  .home-page #featuredGrid.home-property-slider .property-card > img {
    aspect-ratio: auto !important;
    height: 180px !important;
    min-height: 180px !important;
    max-height: 180px !important;
  }

  .home-page .home-property-slider .property-card-content,
  .home-page #featuredGrid.home-property-slider .property-card-content {
    gap: 0.42rem !important;
    padding: 0.86rem 0.9rem 0.95rem !important;
  }

  .home-page .home-property-slider .property-card h3,
  .home-page #featuredGrid.home-property-slider .property-card h3 {
    font-size: 1.1rem !important;
    line-height: 1.18 !important;
  }

  .home-page .home-property-slider .price,
  .home-page #featuredGrid.home-property-slider .price,
  .home-page .home-property-slider .price .price-usd,
  .home-page #featuredGrid.home-property-slider .price .price-usd {
    font-size: 1.35rem !important;
    line-height: 1.05 !important;
  }

  .home-page .home-property-slider .price .price-nio,
  .home-page #featuredGrid.home-property-slider .price .price-nio,
  .home-page .home-property-slider .price .price-unavailable,
  .home-page #featuredGrid.home-property-slider .price .price-unavailable {
    font-size: 0.95rem !important;
    line-height: 1.05 !important;
  }

  .home-page .home-property-slider .property-meta.property-meta-icons,
  .home-page #featuredGrid.home-property-slider .property-meta.property-meta-icons {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 0.32rem 0.44rem !important;
    font-size: 0.88rem !important;
  }

  .home-page .home-property-slider .property-meta-icons span,
  .home-page #featuredGrid.home-property-slider .property-meta-icons span {
    font-size: 0.88rem !important;
  }

  .home-page .home-property-slider .btn-primary-property,
  .home-page #featuredGrid.home-property-slider .btn-primary-property {
    min-height: 40px;
    padding: 0.66rem 0.9rem !important;
  }
}
/* Public property sections: compact, consistent cards without affecting admin/agent dashboard. */
.home-page .section.section-properties.container.premium-properties-v2.home-property-section {
  padding-top: 64px !important;
  padding-bottom: 64px !important;
  margin-block: 0 !important;
  min-height: 0 !important;
  height: auto !important;
}

.properties-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(280px, 340px)) !important;
  justify-content: center !important;
  align-items: stretch !important;
  gap: 24px !important;
  overflow: visible;
}

.property-slider .property-card,
.property-slider.properties-grid .property-card,
.home-property-slider .property-card,
.home-property-slider.properties-grid .property-card {
  flex-shrink: 0 !important;
}

.properties-grid:not(.property-slider):not(.home-property-slider) .property-card {
  width: 100% !important;
  max-width: 340px !important;
  justify-self: center;
}

.property-card,
#propertiesGrid .property-card,
.home-page #featuredGrid .property-card,
.home-page .home-recent-grid .property-card,
.home-page .home-farms-land-grid .property-card,
.home-page .home-matched-properties-grid .property-card {
  display: flex !important;
  flex-direction: column !important;
  width: 100%;
  max-width: 340px !important;
  min-height: 0 !important;
  height: auto !important;
  overflow: hidden;
  overflow-wrap: anywhere;
  word-break: break-word;
  border-radius: 16px !important;
  box-shadow: 0 16px 42px rgba(15, 31, 51, 0.08) !important;
  cursor: default;
}

.property-card:hover,
.home-page .property-card:hover {
  cursor: default;
}

.property-detail-button {
  pointer-events: auto;
  position: relative;
  z-index: 5;
}

.property-cover,
#propertiesGrid .property-cover,
.home-page #featuredGrid .property-cover,
.home-page .home-recent-grid .property-cover,
.home-page .home-farms-land-grid .property-cover,
.home-page .home-matched-properties-grid .property-cover,
.property-card > img {
  width: 100%;
  height: 210px !important;
  min-height: 210px !important;
  max-height: 210px !important;
  aspect-ratio: auto !important;
  overflow: hidden;
}

.property-cover-image {
  width: 100%;
  height: 100% !important;
  object-fit: cover;
}

.property-card > img {
  width: 100%;
  object-fit: cover;
}

.property-card-content,
#propertiesGrid .property-card-content,
.home-page #featuredGrid .property-card-content,
.home-page .home-recent-grid .property-card-content,
.home-page .home-farms-land-grid .property-card-content,
.home-page .home-matched-properties-grid .property-card-content {
  display: flex !important;
  flex: 1 1 auto !important;
  flex-direction: column !important;
  gap: 0.5rem !important;
  padding: 22px !important;
  min-width: 0;
}

.property-card h1,
.property-card h2,
.property-card h3,
#propertiesGrid .property-card h3,
.home-page #featuredGrid .property-card h3,
.home-page .home-recent-grid .property-card h3,
.home-page .home-farms-land-grid .property-card h3,
.home-page .home-matched-properties-grid .property-card h3 {
  display: -webkit-box !important;
  margin: 0 !important;
  min-height: 0 !important;
  overflow: hidden !important;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-size: 1.22rem !important;
  line-height: 1.2 !important;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.property-card .badge,
.property-card p,
.property-location,
.property-price-area {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

.property-card .price,
#propertiesGrid .price,
.home-page #featuredGrid .price,
.home-page .home-recent-grid .price,
.home-page .home-farms-land-grid .price,
.home-page .home-matched-properties-grid .price,
.shared-detail-grid .price {
  display: block;
  margin: 0.08rem 0 !important;
  color: #B00008 !important;
  font-size: 1.55rem !important;
  line-height: 1.05 !important;
  white-space: normal !important;
  overflow-wrap: anywhere;
}

.property-card .price .price-usd,
#propertiesGrid .price .price-usd,
.home-page #featuredGrid .price .price-usd,
.home-page .home-recent-grid .price .price-usd,
.home-page .home-farms-land-grid .price .price-usd,
.home-page .home-matched-properties-grid .price .price-usd {
  font-size: 1.55rem !important;
  line-height: 1.05 !important;
  overflow-wrap: anywhere;
  white-space: normal !important;
}

.property-card .price .price-nio,
.property-card .price .price-unavailable,
#propertiesGrid .price .price-nio,
#propertiesGrid .price .price-unavailable,
.home-page #featuredGrid .price .price-nio,
.home-page #featuredGrid .price .price-unavailable,
.home-page .home-recent-grid .price .price-nio,
.home-page .home-recent-grid .price .price-unavailable,
.home-page .home-farms-land-grid .price .price-nio,
.home-page .home-farms-land-grid .price .price-unavailable,
.home-page .home-matched-properties-grid .price .price-nio,
.home-page .home-matched-properties-grid .price .price-unavailable {
  font-size: 1.05rem !important;
  line-height: 1.08 !important;
  overflow-wrap: anywhere;
  white-space: normal !important;
}

.property-meta.property-meta-icons,
#propertiesGrid .property-meta.property-meta-icons,
.home-page #featuredGrid .property-meta.property-meta-icons,
.home-page .home-recent-grid .property-meta.property-meta-icons,
.home-page .home-farms-land-grid .property-meta.property-meta-icons,
.home-page .home-matched-properties-grid .property-meta.property-meta-icons {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 0.36rem 0.5rem !important;
  margin-top: 0 !important;
  padding-top: 0.65rem !important;
  font-size: 0.88rem !important;
  min-width: 0;
}

.property-meta-icons span,
#propertiesGrid .property-meta-icons span,
.home-page #featuredGrid .property-meta-icons span,
.home-page .home-recent-grid .property-meta-icons span,
.home-page .home-farms-land-grid .property-meta-icons span,
.home-page .home-matched-properties-grid .property-meta-icons span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.88rem !important;
  line-height: 1.18 !important;
}

.property-card-actions,
.property-card-content > .agent-actions,
#propertiesGrid .property-card-actions,
.home-page #featuredGrid .property-card-actions,
.home-page .home-recent-grid .property-card-actions,
.home-page .home-farms-land-grid .property-card-actions,
.home-page .home-matched-properties-grid .property-card-actions {
  width: 100%;
  margin-top: auto !important;
  padding-top: 0.5rem !important;
}

.property-card-content > .btn-primary-property {
  margin-top: auto !important;
}

.btn-primary-property,
#propertiesGrid .btn-primary-property,
.home-page #featuredGrid .btn-primary-property,
.home-page .home-recent-grid .btn-primary-property,
.home-page .home-farms-land-grid .btn-primary-property,
.home-page .home-matched-properties-grid .btn-primary-property {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100% !important;
  min-height: 42px !important;
  padding: 0.72rem 1rem !important;
  line-height: 1.1 !important;
}

.home-page .home-property-slider,
.home-page #featuredGrid.home-property-slider.properties-grid,
.property-slider.properties-grid {
  display: flex !important;
  grid-template-columns: none !important;
  justify-content: flex-start !important;
  gap: 24px !important;
  overflow-x: auto !important;
  overflow-y: visible !important;
}

.home-page .home-property-slider .property-card,
.home-page #featuredGrid.home-property-slider .property-card,
.property-slider .property-card {
  flex: 0 0 340px !important;
  min-width: 340px !important;
  max-width: 340px !important;
  width: 340px !important;
}

.home-page .home-recent-grid,
.home-page .home-farms-land-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 340px)) !important;
  justify-content: center !important;
}

@media (max-width: 640px) {
  .home-page .section.section-properties.container.premium-properties-v2.home-property-section {
    padding-top: 32px !important;
    padding-bottom: 40px !important;
  }

  .properties-grid:not(.property-slider):not(.home-property-slider),
  #propertiesGrid.properties-grid,
  .home-page .home-recent-grid,
  .home-page .home-farms-land-grid {
    grid-template-columns: 1fr !important;
    justify-content: center !important;
    gap: 18px !important;
  }

  .properties-grid:not(.property-slider):not(.home-property-slider) .property-card,
  #propertiesGrid .property-card,
  .home-page .home-recent-grid .property-card,
  .home-page .home-farms-land-grid .property-card {
    max-width: 92vw !important;
    width: 100% !important;
    margin-inline: auto !important;
  }

  .home-page .home-property-slider,
  .home-page #featuredGrid.home-property-slider.properties-grid,
  .property-slider.properties-grid {
    gap: 16px !important;
    padding-inline: 16px !important;
    padding-bottom: 12px !important;
    margin-inline: -16px;
  }

  .home-page .home-property-slider .property-card,
  .home-page #featuredGrid.home-property-slider .property-card,
  .property-slider .property-card {
    flex: 0 0 78vw !important;
    min-width: 78vw !important;
    max-width: 78vw !important;
    width: 78vw !important;
  }

  .property-cover,
  #propertiesGrid .property-cover,
  .home-page #featuredGrid .property-cover,
  .home-page .home-recent-grid .property-cover,
  .home-page .home-farms-land-grid .property-cover,
  .home-page .home-matched-properties-grid .property-cover,
  .property-card > img {
    height: 180px !important;
    min-height: 180px !important;
    max-height: 180px !important;
  }

  .property-card-content,
  #propertiesGrid .property-card-content,
  .home-page #featuredGrid .property-card-content,
  .home-page .home-recent-grid .property-card-content,
  .home-page .home-farms-land-grid .property-card-content,
  .home-page .home-matched-properties-grid .property-card-content {
    gap: 0.42rem !important;
    padding: 18px !important;
  }

  .property-card h1,
  .property-card h2,
  .property-card h3,
  #propertiesGrid .property-card h3,
  .home-page #featuredGrid .property-card h3,
  .home-page .home-recent-grid .property-card h3,
  .home-page .home-farms-land-grid .property-card h3,
  .home-page .home-matched-properties-grid .property-card h3 {
    font-size: 1.08rem !important;
    line-height: 1.18 !important;
  }

  .property-card .price,
  #propertiesGrid .price,
  .home-page #featuredGrid .price,
  .home-page .home-recent-grid .price,
  .home-page .home-farms-land-grid .price,
  .home-page .home-matched-properties-grid .price,
  .property-card .price .price-usd,
  #propertiesGrid .price .price-usd,
  .home-page #featuredGrid .price .price-usd,
  .home-page .home-recent-grid .price .price-usd,
  .home-page .home-farms-land-grid .price .price-usd,
  .home-page .home-matched-properties-grid .price .price-usd {
    font-size: 1.35rem !important;
    line-height: 1.05 !important;
  }

  .property-card .price .price-nio,
  .property-card .price .price-unavailable,
  #propertiesGrid .price .price-nio,
  #propertiesGrid .price .price-unavailable,
  .home-page #featuredGrid .price .price-nio,
  .home-page #featuredGrid .price .price-unavailable,
  .home-page .home-recent-grid .price .price-nio,
  .home-page .home-recent-grid .price .price-unavailable,
  .home-page .home-farms-land-grid .price .price-nio,
  .home-page .home-farms-land-grid .price .price-unavailable,
  .home-page .home-matched-properties-grid .price .price-nio,
  .home-page .home-matched-properties-grid .price .price-unavailable {
    font-size: 0.95rem !important;
    line-height: 1.05 !important;
  }
}

/* === 2026-06-13 Red final CTA + global petroleum footer refresh === */
:root,
body.dark,
body.dark-mode,
[data-theme="dark"] {
  --footer-premium-bg: linear-gradient(135deg, #07162F 0%, #0A1E3A 55%, #030914 100%);
  --footer-premium-text: #FFFFFF;
  --footer-premium-text-secondary: rgba(255, 255, 255, 0.78);
  --footer-premium-text-hover: #FFCDD2;
  --footer-premium-border: rgba(255, 255, 255, 0.34);
  --footer-premium-social-bg: transparent;
  --footer-bg: var(--footer-premium-bg);
}

.premium-final-cta-card,
body.dark .premium-final-cta-card,
body.dark-mode .premium-final-cta-card,
[data-theme="dark"] .premium-final-cta-card {
  background: #B00008 !important;
  background-image: linear-gradient(135deg, #B00008 0%, #8F0006 100%) !important;
  color: #FFFFFF !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  box-shadow: 0 28px 70px rgba(176, 0, 8, 0.24) !important;
}

.premium-final-cta-card .premium-kicker,
.premium-final-cta-card p,
.premium-final-cta-card h1,
.premium-final-cta-card h2,
.premium-final-cta-card h3,
body.dark .premium-final-cta-card .premium-kicker,
body.dark-mode .premium-final-cta-card .premium-kicker,
[data-theme="dark"] .premium-final-cta-card .premium-kicker {
  color: #FFFFFF !important;
}

.premium-final-cta-card .premium-kicker {
  opacity: 0.85 !important;
}

.premium-final-cta-card .premium-btn,
.premium-final-cta-card .premium-btn-primary,
body.dark .premium-final-cta-card .premium-btn,
body.dark-mode .premium-final-cta-card .premium-btn,
[data-theme="dark"] .premium-final-cta-card .premium-btn {
  background: #FFFFFF !important;
  background-color: #FFFFFF !important;
  border-color: #FFFFFF !important;
  color: #B00008 !important;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.18) !important;
}

.premium-final-cta-card .premium-btn:hover,
.premium-final-cta-card .premium-btn:focus-visible,
.premium-final-cta-card .premium-btn-primary:hover,
.premium-final-cta-card .premium-btn-primary:focus-visible,
body.dark .premium-final-cta-card .premium-btn:hover,
body.dark-mode .premium-final-cta-card .premium-btn:hover,
[data-theme="dark"] .premium-final-cta-card .premium-btn:hover {
  background: transparent !important;
  background-color: transparent !important;
  border-color: #FFFFFF !important;
  color: #FFFFFF !important;
}

.site-footer,
body.dark .site-footer,
body.dark-mode .site-footer,
[data-theme="dark"] .site-footer {
  background: var(--footer-premium-bg) !important;
  color: #FFFFFF !important;
  border-top: 1px solid rgba(255, 255, 255, 0.14) !important;
  font-family: Inter, system-ui, sans-serif !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 -18px 48px rgba(3, 9, 20, 0.2) !important;
}

.site-footer .footer-content,
.site-footer .footer-brand-row,
.site-footer .footer-columns,
.site-footer .footer-columns > div {
  font-family: Inter, system-ui, sans-serif !important;
}

.site-footer .footer-brand-row h3,
.site-footer .footer-columns h4 {
  color: #FFFFFF !important;
  font-family: Inter, system-ui, sans-serif !important;
  font-weight: 700 !important;
  letter-spacing: 0.04em !important;
}

.site-footer p,
.site-footer span,
.site-footer small,
.site-footer li,
.site-footer label,
.site-footer .footer-brand-row p,
.site-footer .footer-text {
  color: rgba(255, 255, 255, 0.78) !important;
  font-family: Inter, system-ui, sans-serif !important;
  font-weight: 400 !important;
  line-height: 1.6 !important;
}

.site-footer .footer-text {
  font-size: 0.85rem !important;
  opacity: 0.75 !important;
}

.site-footer a,
.site-footer a:link,
.site-footer a:visited,
.site-footer .footer-legal-link,
.site-footer .footer-columns a {
  color: #FFFFFF !important;
  font-family: Inter, system-ui, sans-serif !important;
  font-weight: 400 !important;
  line-height: 1.6 !important;
  text-decoration-color: transparent !important;
  text-underline-offset: 0.22em !important;
}

.site-footer a:hover,
.site-footer a:focus-visible,
.site-footer .footer-legal-link:hover,
.site-footer .footer-legal-link:focus-visible,
.site-footer .footer-columns a:hover,
.site-footer .footer-columns a:focus-visible {
  color: #FFCDD2 !important;
  text-decoration: underline !important;
  text-decoration-thickness: 1px !important;
  text-decoration-color: rgba(255, 205, 210, 0.72) !important;
}

.site-footer .footer-cta,
body.dark .site-footer .footer-cta,
body.dark-mode .site-footer .footer-cta,
[data-theme="dark"] .site-footer .footer-cta {
  background: #B00008 !important;
  background-color: #B00008 !important;
  border: 1px solid #B00008 !important;
  color: #FFFFFF !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  text-decoration: none !important;
  box-shadow: 0 14px 30px rgba(176, 0, 8, 0.24) !important;
}

.site-footer .footer-cta:hover,
.site-footer .footer-cta:focus-visible,
body.dark .site-footer .footer-cta:hover,
body.dark-mode .site-footer .footer-cta:hover,
[data-theme="dark"] .site-footer .footer-cta:hover {
  background: #930006 !important;
  background-color: #930006 !important;
  border-color: #930006 !important;
  color: #FFFFFF !important;
  text-decoration: none !important;
}

.site-footer .footer-social-link,
.site-footer .footer-social a,
.site-footer .footer-social-link:active,
.site-footer .footer-social a:active {
  background: transparent !important;
  border: 1px solid rgba(255, 255, 255, 0.46) !important;
  color: #FFFFFF !important;
}

.site-footer .footer-social-link svg,
.site-footer .footer-social a svg {
  fill: currentColor !important;
}

.site-footer .footer-social-link:hover,
.site-footer .footer-social-link:focus-visible,
.site-footer .footer-social a:hover,
.site-footer .footer-social a:focus-visible {
  background: #FFFFFF !important;
  border-color: #FFFFFF !important;
  color: #B00008 !important;
  text-decoration: none !important;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.22) !important;
}

@media (max-width: 640px) {
  .site-footer,
  body.dark .site-footer,
  body.dark-mode .site-footer,
  [data-theme="dark"] .site-footer {
    text-align: center !important;
  }

  .site-footer .footer-brand-row,
  .site-footer .footer-columns,
  .site-footer .footer-columns > div {
    align-items: center !important;
    grid-template-columns: 1fr !important;
    text-align: center !important;
  }

  .site-footer .footer-social {
    justify-content: center !important;
  }
}

/* Final home CTA image button override */
.premium-final-cta .premium-final-cta-card,
body.dark .premium-final-cta .premium-final-cta-card,
body.dark-mode .premium-final-cta .premium-final-cta-card,
[data-theme="dark"] .premium-final-cta .premium-final-cta-card {
  display: block;
  padding: clamp(0.65rem, 1.6vw, 1rem) !important;
  overflow: hidden;
  border-radius: 32px !important;
  background: transparent !important;
  background-image: none !important;
  border: 0 !important;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.12) !important;
  line-height: 0;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.premium-final-cta .premium-final-cta-card:hover,
.premium-final-cta .premium-final-cta-card:focus-visible,
body.dark .premium-final-cta .premium-final-cta-card:hover,
body.dark-mode .premium-final-cta .premium-final-cta-card:hover,
[data-theme="dark"] .premium-final-cta .premium-final-cta-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18) !important;
}

.premium-final-cta .premium-final-cta-card:focus-visible {
  outline: 3px solid rgba(176, 0, 8, 0.35);
  outline-offset: 4px;
}

.premium-final-cta-image {
  display: block;
  width: 100%;
  height: clamp(220px, 28vw, 360px);
  border-radius: 24px;
  object-fit: cover;
}

@media (max-width: 768px) {
  .premium-final-cta .premium-final-cta-card,
  body.dark .premium-final-cta .premium-final-cta-card,
  body.dark-mode .premium-final-cta .premium-final-cta-card,
  [data-theme="dark"] .premium-final-cta .premium-final-cta-card {
    width: 100%;
    padding: 0.55rem !important;
    border-radius: 24px !important;
  }

  .premium-final-cta-image {
    height: auto;
    border-radius: 18px;
  }
}

/* === 2026-06-13 Global footer institutional color lock ===
   Footer is intentionally independent from day/night theme selectors. */
.site-footer {
  background: linear-gradient(135deg, #07162F 0%, #0A1E3A 55%, #030914 100%) !important;
  color: #FFFFFF !important;
  border-top: 1px solid rgba(255, 255, 255, 0.34) !important;
}

.site-footer :is(h1, h2, h3, h4, h5, h6, p, span, small, strong, em, li, label),
.site-footer :is(a, a:link, a:visited, a:active),
.site-footer .footer-brand-row h3,
.site-footer .footer-brand-row p,
.site-footer .footer-columns h4,
.site-footer .footer-columns a,
.site-footer .footer-legal-link,
.site-footer .footer-text {
  color: #FFFFFF !important;
  opacity: 1 !important;
}

.site-footer :is(a:hover, a:focus-visible),
.site-footer .footer-legal-link:is(:hover, :focus-visible),
.site-footer .footer-columns a:is(:hover, :focus-visible) {
  color: #FFFFFF !important;
}

.site-footer .footer-cta,
.site-footer .footer-cta:visited,
.site-footer .footer-cta:active {
  background: #C00000 !important;
  background-color: #C00000 !important;
  border-color: #C00000 !important;
  color: #FFFFFF !important;
  opacity: 1 !important;
  text-decoration: none !important;
}

.site-footer .footer-cta:is(:hover, :focus-visible) {
  background: #A80000 !important;
  background-color: #A80000 !important;
  border-color: #A80000 !important;
  color: #FFFFFF !important;
  text-decoration: none !important;
}

.site-footer .footer-social-link,
.site-footer .footer-social a,
.site-footer .footer-social-link:visited,
.site-footer .footer-social a:visited,
.site-footer .footer-social-link:active,
.site-footer .footer-social a:active {
  background: transparent !important;
  border-color: #FFFFFF !important;
  color: #FFFFFF !important;
}

.site-footer .footer-social-link svg,
.site-footer .footer-social a svg {
  fill: currentColor !important;
}

.site-footer .footer-social-link:is(:hover, :focus-visible),
.site-footer .footer-social a:is(:hover, :focus-visible) {
  background: #C00000 !important;
  border-color: #C00000 !important;
  color: #FFFFFF !important;
  text-decoration: none !important;
}

/* Footer fixed text color: keep brand, description, and copyright white in all themes. */
.site-footer,
.site-footer * {
  color-scheme: normal;
}

.site-footer .footer-brand,
.site-footer .footer-brand-title,
.site-footer .footer-description,
.site-footer .footer-copy,
.site-footer .copyright,
.site-footer .footer-bottom,
.site-footer .footer-bottom span,
.site-footer .footer-brand-row h3,
.site-footer .footer-brand-row p,
.site-footer .footer-text,
.site-footer .footer-text span {
  color: #ffffff !important;
}

/* Ensure slider controls and the explicit detail button receive pointer events. */
.property-slider .property-card,
.property-slider .property-card a,
.property-slider .property-card button,
.property-slider .property-detail-button,
.home-property-slider .property-card,
.home-property-slider .property-card a,
.home-property-slider .property-card button,
.home-property-slider .property-detail-button {
  pointer-events: auto;
}

/* Footer fixed colors: independent from light/dark theme */
.site-footer {
  background: #071a33 !important;
  color: #e5e7eb !important;
}

.site-footer h1,
.site-footer h2,
.site-footer h3,
.site-footer .footer-brand-title {
  color: #ffffff !important;
}

.site-footer p,
.site-footer span,
.site-footer li,
.site-footer a,
.site-footer .footer-description,
.site-footer .footer-link,
.site-footer .footer-contact {
  color: #e5e7eb !important;
}

.site-footer .footer-copy,
.site-footer small {
  color: #9ca3af !important;
}

.site-footer svg,
.site-footer i {
  color: #ffffff !important;
  fill: currentColor;
}

.site-footer a:hover {
  color: #ffffff !important;
}

/* Unified clickable public property cards across home/catalog sliders. */
.property-card-link {
  display: flex !important;
  flex-direction: column !important;
  text-decoration: none !important;
  color: inherit !important;
  cursor: default;
  pointer-events: auto;
}

.property-card-link * {
  pointer-events: auto;
}

.property-card::before,
.property-card::after,
.property-card-link::before,
.property-card-link::after {
  pointer-events: none;
}

.slider-arrow,
.slider-control,
.property-slider-arrow,
.home-slider-button,
.home-slider-controls {
  pointer-events: auto;
}

.property-card,
#propertiesGrid .property-card,
.home-page #featuredGrid .property-card,
.home-page #recentPropertiesGrid .property-card,
.home-page #farmsLandGrid .property-card,
.home-page .home-property-slider .property-card,
.home-page .home-recent-grid .property-card,
.home-page .home-farms-land-grid .property-card,
.home-page .home-matched-properties-grid .property-card {
  background: #ffffff !important;
  color: #102a43 !important;
  border: 1px solid rgba(15, 31, 51, 0.08) !important;
}

.property-card h1,
.property-card h2,
.property-card h3,
.property-card p,
.property-card .badge,
.property-card .property-location,
.property-card .property-price-area,
.property-card .property-meta,
.property-card .property-meta span,
.home-page #featuredGrid .property-card h3,
.home-page #recentPropertiesGrid .property-card h3,
.home-page #farmsLandGrid .property-card h3 {
  color: inherit;
}

body.dark .property-card,
body.dark-mode .property-card,
body.dark #propertiesGrid .property-card,
body.dark-mode #propertiesGrid .property-card,
body.dark .home-page #featuredGrid .property-card,
body.dark-mode .home-page #featuredGrid .property-card,
body.dark .home-page #recentPropertiesGrid .property-card,
body.dark-mode .home-page #recentPropertiesGrid .property-card,
body.dark .home-page #farmsLandGrid .property-card,
body.dark-mode .home-page #farmsLandGrid .property-card,
body.dark .home-page .home-property-slider .property-card,
body.dark-mode .home-page .home-property-slider .property-card,
body.dark .home-page .home-recent-grid .property-card,
body.dark-mode .home-page .home-recent-grid .property-card,
body.dark .home-page .home-farms-land-grid .property-card,
body.dark-mode .home-page .home-farms-land-grid .property-card,
body.dark .home-page .home-matched-properties-grid .property-card,
body.dark-mode .home-page .home-matched-properties-grid .property-card {
  background: #102a43 !important;
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.14) !important;
}

body.dark .property-card h1,
body.dark-mode .property-card h1,
body.dark .property-card h2,
body.dark-mode .property-card h2,
body.dark .property-card h3,
body.dark-mode .property-card h3,
body.dark .property-card p,
body.dark-mode .property-card p,
body.dark .property-card .badge,
body.dark-mode .property-card .badge,
body.dark .property-card .property-location,
body.dark-mode .property-card .property-location,
body.dark .property-card .property-price-area,
body.dark-mode .property-card .property-price-area,
body.dark .property-card .property-meta,
body.dark-mode .property-card .property-meta,
body.dark .property-card .property-meta span,
body.dark-mode .property-card .property-meta span {
  color: #ffffff !important;
}

/* Home/public property detail button: the only clickable entry point for property cards. */
.property-detail-button,
.property-card .btn-detail,
.property-card .btn-outline,
.property-card a[href*="propiedad.html"] {
  background: #B00008 !important;
  color: #FFFFFF !important;
  border: 1px solid #B00008 !important;
  pointer-events: auto;
  position: relative;
  z-index: 5;
}

.property-detail-button:hover,
.property-card .btn-detail:hover,
.property-card .btn-outline:hover,
.property-card a[href*="propiedad.html"]:hover {
  background: #930006 !important;
  color: #FFFFFF !important;
  border-color: #930006 !important;
}
