/* ================================================================
   HABIXTA v2 — WARM IVORY / SAND / COPPER THEME
   Advanced animations, real Dubai imagery
   ================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,700;1,400;1,500&family=Jost:wght@300;400;500;600&family=Cormorant:ital,wght@0,300;0,400;1,300;1,400&display=swap');

:root {
  /* ── Palette: Warm Ivory + Sand + Deep Copper ── */
  --ivory:     #FAF7F2;
  --cream:     #F3EDE3;
  --sand:      #E8DDD0;
  --sand-dk:   #D4C4B0;
  --copper:    #B8763A;
  --copper-lt: #D4924E;
  --copper-dk: #8A5520;
  --sienna:    #6B3F1E;
  --espresso:  #2A1A0E;
  --brown:     #3D2510;
  --text:      #2A1A0E;
  --text-md:   #6B4F35;
  --text-lt:   #9E7D60;
  --white:     #FFFFFF;
  --border:    rgba(184,118,58,0.18);
  --border-lt: rgba(184,118,58,0.10);
  --shadow:    0 24px 60px rgba(42,26,14,0.18);
  --shadow-sm: 0 8px 24px rgba(42,26,14,0.10);
  --nav-h:     72px;
  --ease:      cubic-bezier(0.23,1,0.32,1);
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; -webkit-text-size-adjust: 100%; }
body { font-family: 'Jost', sans-serif; background: var(--ivory); color: var(--text); overflow-x: hidden; line-height: 1.65; }
img  { display: block; max-width: 100%; height: auto; }
a    { text-decoration: none; color: inherit; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, select, textarea { font-family: inherit; }
ul, ol { list-style: none; }

::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--cream); }
::-webkit-scrollbar-thumb { background: var(--copper); border-radius: 2px; }

.container { max-width: 1300px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 480px)  { .container { padding: 0 22px; } }
@media (min-width: 768px)  { .container { padding: 0 32px; } }
@media (min-width: 1024px) { .container { padding: 0 48px; } }

/* ================================================================
   LOADING SCREEN
   ================================================================ */
.hx-loader {
  position: fixed; inset: 0; z-index: 99999;
  background: var(--espresso);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 24px;
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.hx-loader.done { opacity: 0; pointer-events: none; }
.hx-loader-logo {
  font-family: 'Playfair Display', serif;
  font-size: clamp(32px, 6vw, 56px);
  font-weight: 400; letter-spacing: 12px;
  color: var(--copper-lt); text-transform: uppercase;
}
.hx-loader-logo span { color: var(--ivory); }
.hx-loader-bar-wrap { width: 200px; height: 1px; background: rgba(255,255,255,0.1); overflow: hidden; }
.hx-loader-bar { height: 100%; background: linear-gradient(90deg, var(--copper), var(--copper-lt)); width: 0%; transition: width 1.4s var(--ease); }
.hx-loader-text { font-size: 10px; letter-spacing: 4px; text-transform: uppercase; color: rgba(255,255,255,0.4); }

/* ================================================================
   NAVIGATION
   ================================================================ */
.hx-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 900;
  height: var(--nav-h);
  transition: all 0.4s var(--ease);
}
.hx-nav::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(250,247,242,0.9) 0%, transparent 100%);
  backdrop-filter: blur(0px);
  transition: all 0.4s;
}
.hx-nav.scrolled::before {
  background: rgba(250,247,242,0.97);
  backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 var(--border), var(--shadow-sm);
}

.hx-nav-inner {
  position: relative; z-index: 1;
  height: 100%; display: flex; align-items: center;
  justify-content: space-between;
  padding: 0 20px; gap: 12px;
  max-width: 1400px; margin: 0 auto;
}
@media (min-width: 768px)  { .hx-nav-inner { padding: 0 32px; } }
@media (min-width: 1024px) { .hx-nav-inner { padding: 0 48px; } }

.hx-logo {
  font-family: 'Playfair Display', serif;
  font-size: 20px; font-weight: 400; letter-spacing: 6px;
  color: var(--copper); text-transform: uppercase;
  white-space: nowrap; flex-shrink: 0; cursor: pointer;
}
@media (min-width: 480px) { .hx-logo { font-size: 22px; } }
@media (min-width: 768px) { .hx-logo { font-size: 24px; } }
.hx-logo span { color: var(--espresso); }

.hx-nav-menu { display: none; }
@media (min-width: 1024px) {
  .hx-nav-menu { display: block; flex: 1; margin-left: 20px; }
  .hx-menu-list { display: flex; align-items: center; gap: 0; }
  .hx-menu-list li a,
  .hx-menu-list li span {
    display: block; padding: 6px 12px;
    font-size: 11px; font-weight: 500; letter-spacing: 2px; text-transform: uppercase;
    color: var(--text-md); transition: color 0.25s; cursor: pointer; position: relative;
  }
  .hx-menu-list li a::after,
  .hx-menu-list li span::after {
    content: ''; position: absolute; bottom: 0; left: 12px; right: 12px;
    height: 1px; background: var(--copper);
    transform: scaleX(0); transition: transform 0.3s var(--ease);
  }
  .hx-menu-list li a:hover,
  .hx-menu-list li span:hover { color: var(--copper); }
  .hx-menu-list li a:hover::after,
  .hx-menu-list li span:hover::after { transform: scaleX(1); }
}

.hx-nav-menu.open {
  display: block !important; position: fixed;
  top: var(--nav-h); left: 0; right: 0;
  background: rgba(250,247,242,0.99);
  border-bottom: 1px solid var(--border);
  padding: 12px 16px 20px;
  animation: slideDown 0.3s var(--ease);
  max-height: calc(100vh - var(--nav-h));
  overflow-y: auto; z-index: 899;
  backdrop-filter: blur(20px);
}
@keyframes slideDown { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }
.hx-nav-menu.open .hx-menu-list { display: flex !important; flex-direction: column; gap: 0; }
.hx-nav-menu.open .hx-menu-list li a,
.hx-nav-menu.open .hx-menu-list li span {
  display: block; padding: 13px 16px;
  font-size: 12px; font-weight: 500; letter-spacing: 2px; text-transform: uppercase;
  color: var(--text); border-bottom: 1px solid var(--border-lt);
  transition: color 0.2s, padding-left 0.2s; cursor: pointer;
}
.hx-nav-menu.open .hx-menu-list li a:hover,
.hx-nav-menu.open .hx-menu-list li span:hover { color: var(--copper); padding-left: 22px; }

.hx-nav-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

.hx-btn { display: inline-flex; align-items: center; justify-content: center; font-size: 10.5px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; transition: all 0.3s var(--ease); cursor: pointer; white-space: nowrap; }
.hx-btn-copper  { background: var(--copper); color: var(--white); border: 1.5px solid var(--copper); padding: 9px 18px; }
.hx-btn-copper:hover  { background: var(--copper-dk); border-color: var(--copper-dk); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(184,118,58,0.35); }
.hx-btn-outline { background: none; border: 1.5px solid var(--border); color: var(--text); padding: 9px 16px; }
.hx-btn-outline:hover { border-color: var(--copper); color: var(--copper); }
.hx-btn-full { width: 100%; padding: 14px 20px; font-size: 12px; justify-content: center; }
.hx-btn-lg   { padding: 15px 36px; font-size: 12px; }
@media (min-width: 480px) { .hx-btn-lg { padding: 16px 44px; } }
.hx-btn-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.hx-ham { display: flex; flex-direction: column; gap: 5px; padding: 8px 5px; cursor: pointer; flex-shrink: 0; }
@media (min-width: 1024px) { .hx-ham { display: none; } }
.hx-ham span { display: block; width: 22px; height: 1.5px; background: var(--espresso); transition: all 0.3s; }
.hx-ham.open span:nth-child(1) { transform: rotate(45deg) translate(4.5px, 4.5px); }
.hx-ham.open span:nth-child(2) { opacity: 0; }
.hx-ham.open span:nth-child(3) { transform: rotate(-45deg) translate(4.5px, -4.5px); }

/* ================================================================
   HERO — FULL BLEED WITH REAL DUBAI IMAGE
   ================================================================ */
.hx-hero {
  position: relative; height: 100svh; min-height: 600px;
  overflow: hidden; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding-bottom: 60px; padding-top: 80px;
}

/* Dubai skyline background */
.hx-hero-img {
  position: absolute; inset: 0; z-index: 0;
  background:
    url('https://images.unsplash.com/photo-1512453979798-5ea266f8880c?w=1920&q=85&auto=format&fit=crop') center/cover no-repeat;
  transform-origin: center;
  animation: heroZoom 20s ease-in-out infinite alternate;
  will-change: transform;
}
@keyframes heroZoom {
  from { transform: scale(1.0); }
  to   { transform: scale(1.08); }
}
.hx-hero-img::after {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(
      to bottom,
      rgba(20,12,5,0.35) 0%,
      rgba(20,12,5,0.30) 30%,
      rgba(20,12,5,0.72) 60%,
      rgba(20,12,5,0.93) 85%,
      rgba(20,12,5,0.97) 100%
    ),
    linear-gradient(
      160deg,
      rgba(212,146,78,0.08) 0%,
      transparent 60%
    );
}

/* Animated particles */
.hx-particles { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.hx-particle {
  position: absolute; width: 2px; height: 2px;
  background: rgba(212,146,78,0.6); border-radius: 50%;
  animation: particleFloat linear infinite;
}
@keyframes particleFloat {
  0%   { transform: translateY(100vh) translateX(0); opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { transform: translateY(-20vh) translateX(40px); opacity: 0; }
}

/* Hero text content */
.hx-hero-content {
  position: relative; z-index: 2;
  text-align: center; padding: 0 16px;
  max-width: 860px; width: 100%;
}
@media (min-width: 480px) { .hx-hero-content { padding: 0 24px; } }

.hx-hero-badge {
  display: inline-flex; align-items: center; gap: 10px;
  background: rgba(212,146,78,0.20);
  border: 1px solid rgba(212,146,78,0.65);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 0 24px rgba(212,146,78,0.18), inset 0 1px 0 rgba(255,255,255,0.08);
  padding: 9px 24px; margin-bottom: 28px;
  font-size: 10px; font-weight: 700; letter-spacing: 3.5px; text-transform: uppercase;
  color: rgba(255,205,120,1);
  text-shadow: 0 1px 8px rgba(0,0,0,0.5);
  opacity: 0; transform: translateY(20px);
  animation: revealUp 0.9s 1.8s var(--ease) forwards;
}
.hx-pulse { width: 6px; height: 6px; background: var(--copper-lt); border-radius: 50%; animation: pulse 2s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: .4; transform: scale(1.7); } }

.hx-hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(38px, 8vw, 96px);
  font-weight: 700; line-height: 1.05;
  color: #ffffff; letter-spacing: -0.5px;
  text-shadow:
    0 2px 40px rgba(0,0,0,0.85),
    0 4px 80px rgba(0,0,0,0.60),
    0 1px 0 rgba(0,0,0,0.4);
  opacity: 0; transform: translateY(30px);
  animation: revealUp 1s 2.0s var(--ease) forwards;
}
.hx-hero-title em { font-style: italic; color: var(--copper-lt); display: block;
  text-shadow: 0 2px 30px rgba(0,0,0,0.7), 0 0 60px rgba(212,146,78,0.3); }

.hx-hero-sub {
  margin-top: 20px; font-size: 15px; font-weight: 400;
  color: rgba(255,250,245,0.92); line-height: 1.8;
  max-width: 520px; margin-left: auto; margin-right: auto;
  text-shadow: 0 1px 16px rgba(0,0,0,0.9), 0 2px 32px rgba(0,0,0,0.6);
  letter-spacing: 0.2px;
  opacity: 0; transform: translateY(20px);
  animation: revealUp 0.9s 2.2s var(--ease) forwards;
}
@media (min-width: 480px) { .hx-hero-sub { font-size: 16px; margin-top: 24px; } }

@keyframes revealUp {
  to { opacity: 1; transform: translateY(0); }
}

/* Hero Search */
.hx-hero-search {
  margin-top: 36px; width: 100%;
  opacity: 0; transform: translateY(24px);
  animation: revealUp 0.9s 2.4s var(--ease) forwards;
}
@media (min-width: 480px) { .hx-hero-search { margin-top: 44px; } }

.hx-stabs { display: flex; margin-bottom: 0; overflow-x: auto; scrollbar-width: none; border-radius: 0; }
.hx-stabs::-webkit-scrollbar { display: none; }
.hx-stab {
  padding: 10px 18px; font-size: 10px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase;
  color: rgba(250,247,242,0.55); cursor: pointer; border: none; background: rgba(42,26,14,0.4);
  backdrop-filter: blur(10px); border-bottom: 2px solid transparent;
  transition: all 0.25s; white-space: nowrap; flex-shrink: 0;
}
@media (min-width: 480px) { .hx-stab { padding: 11px 22px; font-size: 10.5px; } }
.hx-stab.active { color: var(--copper-lt); border-bottom-color: var(--copper-lt); background: rgba(42,26,14,0.55); }

.hx-sbar {
  display: flex; flex-direction: column;
  background: rgba(250,247,242,0.97);
  backdrop-filter: blur(20px);
  box-shadow: 0 20px 60px rgba(42,26,14,0.4);
}
@media (min-width: 640px) { .hx-sbar { flex-direction: row; align-items: stretch; } }

.hx-sfield {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 18px; border-bottom: 1px solid var(--border);
}
@media (min-width: 640px) { .hx-sfield { flex: 1; border-bottom: none; border-right: 1px solid var(--border); padding: 0 20px; min-height: 62px; } }
.hx-sfield svg { color: var(--copper); flex-shrink: 0; }
.hx-sfield input { background: none; border: none; outline: none; color: var(--text); font-size: 14px; width: 100%; }
.hx-sfield input::placeholder { color: var(--text-lt); font-size: 13px; }

.hx-sselects { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--border); }
@media (min-width: 640px) { .hx-sselects { display: contents; } }
.hx-ssel {
  padding: 12px 12px; background: none; border: none;
  border-right: 1px solid var(--border);
  color: var(--text); font-size: 12px; outline: none; cursor: pointer; width: 100%;
}
@media (min-width: 640px) { .hx-ssel { flex: 0 0 auto; min-width: 135px; border-right: 1px solid var(--border); border-bottom: none; padding: 0 14px; min-height: 62px; } }
.hx-ssel:last-child { border-right: none; }
.hx-ssel option { background: var(--ivory); color: var(--text); }

.hx-sgo {
  padding: 16px; background: var(--copper); color: var(--white);
  font-size: 12px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase;
  transition: background 0.3s; display: flex; align-items: center; justify-content: center;
  gap: 8px; min-height: 56px; width: 100%;
}
@media (min-width: 640px) { .hx-sgo { flex: 0 0 auto; width: auto; padding: 0 32px; min-height: 62px; } }
.hx-sgo:hover { background: var(--copper-dk); }

.hx-qtags { display: flex; gap: 8px; margin-top: 16px; flex-wrap: wrap; justify-content: center; }
.hx-qtag { padding: 5px 14px; background: rgba(42,26,14,0.35); backdrop-filter: blur(8px); border: 1px solid rgba(212,146,78,0.3); font-size: 10.5px; color: rgba(250,247,242,0.8); cursor: pointer; border-radius: 99px; transition: all 0.25s; }
.hx-qtag:hover { background: rgba(184,118,58,0.4); color: var(--ivory); border-color: var(--copper-lt); }

/* Scroll indicator */
.hx-scroll-ind {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  z-index: 2; opacity: 0; animation: revealUp 0.9s 2.8s var(--ease) forwards;
}
.hx-scroll-mouse { width: 22px; height: 34px; border: 1.5px solid rgba(250,247,242,0.5); border-radius: 11px; display: flex; justify-content: center; padding-top: 5px; }
.hx-scroll-dot { width: 3px; height: 6px; background: var(--copper-lt); border-radius: 2px; animation: scrollDot 2s ease-in-out infinite; }
@keyframes scrollDot { 0%,100% { transform: translateY(0); opacity: 1; } 60% { transform: translateY(10px); opacity: 0; } }
.hx-scroll-txt { font-size: 8px; letter-spacing: 3px; text-transform: uppercase; color: rgba(250,247,242,0.4); }

/* ================================================================
   STATS STRIPE
   ================================================================ */
.hx-stats {
  background: var(--espresso);
  display: grid; grid-template-columns: repeat(2, 1fr);
  position: relative; overflow: hidden;
}
@media (min-width: 640px) { .hx-stats { grid-template-columns: repeat(4, 1fr); } }
.hx-stats::before {
  content: '';
  position: absolute; inset: 0;
  background: url('https://images.unsplash.com/photo-1582672060674-bc2bd808a8b5?w=1920&q=60&auto=format') center/cover;
  opacity: 0.08;
}
.hx-stat {
  padding: 28px 20px; text-align: center;
  border-right: 1px solid rgba(255,255,255,0.08);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  position: relative; z-index: 1; transition: background 0.3s;
}
@media (min-width: 640px) { .hx-stat { border-bottom: none; padding: 36px 24px; } }
.hx-stat:last-child { border-right: none; }
.hx-stat:nth-child(2n) { border-right: none; }
@media (min-width: 640px) { .hx-stat:nth-child(2n) { border-right: 1px solid rgba(255,255,255,0.08); } }
.hx-stat:nth-child(3), .hx-stat:nth-child(4) { border-bottom: none; }
.hx-stat:hover { background: rgba(184,118,58,0.08); }
.hx-stat-n {
  font-family: 'Playfair Display', serif;
  font-size: clamp(28px, 5vw, 44px); font-weight: 400;
  color: var(--copper-lt); line-height: 1;
}
.hx-stat-l { font-size: 9.5px; letter-spacing: 2.5px; text-transform: uppercase; color: rgba(255,255,255,0.45); margin-top: 6px; }

/* ================================================================
   TICKER
   ================================================================ */
.hx-ticker { background: var(--copper); padding: 12px 0; overflow: hidden; }
.hx-ticker-track { display: flex; width: max-content; animation: ticker 28s linear infinite; }
.hx-ticker-track:hover { animation-play-state: paused; }
.hx-titem { padding: 0 28px; font-size: 10.5px; font-weight: 600; letter-spacing: 3px; text-transform: uppercase; color: var(--white); white-space: nowrap; }
.hx-tdot { display: inline-block; width: 4px; height: 4px; background: rgba(255,255,255,0.5); border-radius: 50%; margin-left: 28px; vertical-align: middle; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ================================================================
   SECTION COMMONS
   ================================================================ */
.hx-section { padding: 80px 0; }
@media (min-width: 640px)  { .hx-section { padding: 110px 0; } }
@media (min-width: 1024px) { .hx-section { padding: 140px 0; } }

.hx-sec-label { display: inline-flex; align-items: center; gap: 14px; font-size: 9.5px; font-weight: 600; letter-spacing: 4px; text-transform: uppercase; color: var(--copper); margin-bottom: 16px; }
.hx-sec-label::before { content: ''; width: 32px; height: 1px; background: var(--copper); }
.hx-sec-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(28px, 5vw, 62px); font-weight: 400; line-height: 1.1;
  color: var(--espresso);
}
.hx-sec-title em { font-style: italic; color: var(--copper); }
.hx-sec-sub { font-size: 15px; color: var(--text-md); max-width: 520px; line-height: 1.8; margin-top: 14px; }

.hx-link-all { display: inline-flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: var(--copper); transition: gap 0.25s; cursor: pointer; border-bottom: 1px solid rgba(184,118,58,0.3); padding-bottom: 3px; }
.hx-link-all:hover { gap: 14px; }

.hx-sec-head { display: flex; flex-direction: column; gap: 14px; margin-bottom: 40px; }
@media (min-width: 640px) { .hx-sec-head { flex-direction: row; align-items: flex-end; justify-content: space-between; } }

/* ================================================================
   FEATURED PROPERTIES
   ================================================================ */
.hx-props-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 520px) { .hx-props-grid { grid-template-columns: repeat(2, 1fr); gap: 22px; } }
@media (min-width: 900px) { .hx-props-grid { grid-template-columns: repeat(3, 1fr); gap: 26px; } }

/* ── Property Card ── */
.hx-pcard {
  background: var(--white);
  border: 1px solid var(--border-lt);
  overflow: hidden; cursor: pointer;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease), border-color 0.3s;
  position: relative; display: flex; flex-direction: column;
  box-shadow: var(--shadow-sm);
}
@media (hover: hover) { .hx-pcard:hover { transform: translateY(-8px); box-shadow: var(--shadow); border-color: var(--copper); } }

.hx-pcard-img {
  position: relative; overflow: hidden;
  height: 200px; flex-shrink: 0;
}
@media (min-width: 480px) { .hx-pcard-img { height: 220px; } }
@media (min-width: 768px) { .hx-pcard-img { height: 240px; } }

.hx-pcard-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.7s var(--ease);
}
@media (hover: hover) { .hx-pcard:hover .hx-pcard-img img { transform: scale(1.08); } }

.hx-pcard-img::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(42,26,14,0.6) 100%);
}

.hx-pbadge {
  position: absolute; top: 14px; left: 14px; z-index: 1;
  background: var(--copper); color: var(--white);
  font-size: 8.5px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase;
  padding: 5px 12px;
}
.hx-pbadge.rent    { background: rgba(250,247,242,0.95); color: var(--copper); border: 1px solid var(--copper); }
.hx-pbadge.offplan { background: rgba(42,100,60,0.9); color: #fff; }

.hx-pfav {
  position: absolute; top: 14px; right: 14px; z-index: 1;
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(250,247,242,0.9); backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-lt); font-size: 15px; cursor: pointer;
  transition: all 0.25s; box-shadow: 0 2px 10px rgba(42,26,14,0.15);
}
.hx-pfav:hover, .hx-pfav.faved { color: #c0392b; background: var(--white); }

.hx-pcard-body { padding: 18px 20px 22px; display: flex; flex-direction: column; flex: 1; }
@media (min-width: 480px) { .hx-pcard-body { padding: 20px 22px 24px; } }

.hx-ploc { display: flex; align-items: center; gap: 4px; font-size: 10px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; color: var(--copper); margin-bottom: 7px; }
.hx-ploc svg { flex-shrink: 0; }

.hx-pname { font-family: 'Playfair Display', serif; font-size: 18px; font-weight: 400; color: var(--espresso); line-height: 1.3; margin-bottom: 12px; flex: 1; }
@media (min-width: 480px) { .hx-pname { font-size: 20px; } }

.hx-pspecs { display: flex; gap: 14px; flex-wrap: wrap; font-size: 11px; color: var(--text-md); border-top: 1px solid var(--border-lt); border-bottom: 1px solid var(--border-lt); padding: 10px 0; margin-bottom: 12px; }
.hx-pspec { display: flex; align-items: center; gap: 4px; }

.hx-pfoot { display: flex; align-items: center; justify-content: space-between; }
.hx-pprice { font-family: 'Playfair Display', serif; font-size: 20px; font-weight: 400; color: var(--copper-dk); }
@media (min-width: 480px) { .hx-pprice { font-size: 22px; } }
.hx-pprice small { font-family: 'Jost', sans-serif; font-size: 10.5px; color: var(--text-lt); }
.hx-parrow {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--cream); display: flex; align-items: center; justify-content: center;
  color: var(--copper); font-size: 15px; flex-shrink: 0; transition: all 0.3s;
}
@media (hover: hover) { .hx-pcard:hover .hx-parrow { background: var(--copper); color: var(--white); } }

/* Filter bar */
.hx-fbar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; padding: 16px; background: var(--cream); border: 1px solid var(--border-lt); }
.hx-fsel { flex: 1 1 calc(50% - 4px); min-width: 110px; padding: 9px 12px; background: var(--white); border: 1px solid var(--border); color: var(--text); font-size: 12px; outline: none; cursor: pointer; transition: border-color 0.25s; }
.hx-fsel:focus { border-color: var(--copper); }
.hx-fsel option { background: var(--ivory); }
.hx-fclr { flex: 1 1 calc(50% - 4px); padding: 9px 12px; background: none; border: 1px solid var(--border); color: var(--text-lt); font-size: 11px; letter-spacing: 1px; transition: all 0.25s; cursor: pointer; }
.hx-fclr:hover { border-color: #c0392b; color: #c0392b; }
@media (min-width: 768px) { .hx-fsel, .hx-fclr { flex: 1 1 auto; } }
.hx-rcount { font-size: 13px; color: var(--text-md); margin-bottom: 16px; }
.hx-rcount strong { color: var(--espresso); }

/* Pagination */
.hx-pages { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 40px 0 0; flex-wrap: wrap; }
.hx-pgbtn { width: 38px; height: 38px; border: 1px solid var(--border); background: none; color: var(--text-md); cursor: pointer; font-size: 13px; transition: all 0.25s; display: flex; align-items: center; justify-content: center; }
.hx-pgbtn:hover, .hx-pgbtn.active { background: var(--copper); border-color: var(--copper); color: var(--white); }
.hx-pgdots { color: var(--text-lt); padding: 0 2px; }

/* ================================================================
   PARALLAX IMAGE BAND
   ================================================================ */
.hx-imgband {
  position: relative; height: 400px; overflow: hidden;
}
@media (min-width: 768px) { .hx-imgband { height: 520px; } }
.hx-imgband-bg {
  position: absolute; inset: -15%;
  background: url('https://images.unsplash.com/photo-1546412414-8035e1776c9a?w=1920&q=85&auto=format&fit=crop') center/cover no-repeat;
  will-change: transform;
}
.hx-imgband-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(42,26,14,0.80) 0%, rgba(184,118,58,0.45) 100%);
  display: flex; align-items: center; justify-content: center;
  padding: 40px 24px;
}
.hx-imgband-text { text-align: center; max-width: 700px; }
.hx-imgband-text h2 { font-family: 'Playfair Display', serif; font-size: clamp(28px,5vw,56px); font-weight: 400; color: var(--ivory); line-height: 1.2; margin-bottom: 18px; }
.hx-imgband-text h2 em { font-style: italic; color: var(--copper-lt); }
.hx-imgband-text p { font-size: 15px; color: rgba(250,247,242,0.8); line-height: 1.8; max-width: 480px; margin: 0 auto 32px; }

/* ================================================================
   AREAS — MAGAZINE LAYOUT
   ================================================================ */
.hx-areas-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto;
  gap: 12px;
}
@media (min-width: 640px) { .hx-areas-grid { grid-template-columns: repeat(3, 1fr); gap: 14px; } }
@media (min-width: 900px)  { .hx-areas-grid { grid-template-columns: repeat(4, 1fr); gap: 16px; } }

.hx-area {
  position: relative; overflow: hidden; cursor: pointer;
  min-height: 160px;
}
@media (min-width: 480px) { .hx-area { min-height: 200px; } }
@media (min-width: 900px) { .hx-area:first-child { grid-row: span 2; min-height: 420px; } }
@media (hover: hover) { .hx-area:hover .hx-area-img { transform: scale(1.08); } }

.hx-area-img {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  transition: transform 0.7s var(--ease);
}
.hx-area-img::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(42,26,14,0.1) 0%, rgba(42,26,14,0.8) 100%);
  transition: opacity 0.3s;
}
@media (hover: hover) { .hx-area:hover .hx-area-img::after { opacity: 1.2; } }

.hx-area-info { position: absolute; bottom: 0; left: 0; right: 0; padding: 16px; z-index: 1; }
@media (min-width: 480px) { .hx-area-info { padding: 20px; } }
.hx-area-name { font-family: 'Playfair Display', serif; font-size: 17px; font-weight: 400; color: var(--ivory); margin-bottom: 3px; }
@media (min-width: 480px) { .hx-area-name { font-size: 20px; } }
@media (min-width: 900px) { .hx-area:first-child .hx-area-name { font-size: 28px; } }
.hx-area-cnt { font-size: 9px; letter-spacing: 2px; text-transform: uppercase; color: var(--copper-lt); }
.hx-area-arrow { position: absolute; top: 14px; right: 14px; width: 32px; height: 32px; background: rgba(184,118,58,0.25); border: 1px solid rgba(212,146,78,0.4); display: flex; align-items: center; justify-content: center; color: var(--copper-lt); font-size: 13px; opacity: 0; transition: opacity 0.25s; }
@media (hover: hover) { .hx-area:hover .hx-area-arrow { opacity: 1; } }

/* Real Dubai area images */
.area-dt   { background-image: url('https://images.unsplash.com/photo-1512453979798-5ea266f8880c?w=800&q=80&auto=format&fit=crop'); }
.area-pl   { background-image: url('https://images.unsplash.com/photo-1614088685112-0a760b71a3c8?w=800&q=80&auto=format&fit=crop'); }
.area-ma   { background-image: url('https://images.unsplash.com/photo-1582672060674-bc2bd808a8b5?w=800&q=80&auto=format&fit=crop'); }
.area-bb   { background-image: url('https://images.unsplash.com/photo-1596386461350-326ccb383e9f?w=800&q=80&auto=format&fit=crop'); }
.area-jbr  { background-image: url('https://images.unsplash.com/photo-1548073049-3bc20400b83b?w=800&q=80&auto=format&fit=crop'); }
.area-jvc  { background-image: url('https://images.unsplash.com/photo-1545324418-cc1a3fa10c00?w=800&q=80&auto=format&fit=crop'); }
.area-crk  { background-image: url('https://images.unsplash.com/photo-1604999565976-8913ad2ddb7c?w=800&q=80&auto=format&fit=crop'); }

/* ================================================================
   WHY HABIXTA
   ================================================================ */
.hx-why-wrap { background: var(--espresso); position: relative; overflow: hidden; }
.hx-why-wrap::before { content: ''; position: absolute; inset: 0; background: url('https://images.unsplash.com/photo-1561361513-2d000a50f0dc?w=1600&q=60&auto=format&fit=crop') center/cover; opacity: 0.07; }
.hx-why-grid { display: grid; grid-template-columns: 1fr; gap: 16px; position: relative; z-index: 1; }
@media (min-width: 520px)  { .hx-why-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .hx-why-grid { grid-template-columns: repeat(4, 1fr); } }

.hx-why-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.10);
  padding: 28px 22px;
  transition: border-color 0.3s, background 0.3s, transform 0.4s var(--ease);
  position: relative; overflow: hidden;
}
.hx-why-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--copper-lt), transparent); transform: scaleX(0); transition: transform 0.4s; }
@media (hover: hover) { .hx-why-card:hover { border-color: rgba(212,146,78,0.35); background: rgba(184,118,58,0.08); transform: translateY(-5px); } }
@media (hover: hover) { .hx-why-card:hover::before { transform: scaleX(1); } }
.hx-why-icon  { font-size: 28px; margin-bottom: 16px; display: block; }
.hx-why-title { font-family: 'Playfair Display', serif; font-size: 17px; font-weight: 400; color: var(--ivory); margin-bottom: 10px; }
.hx-why-desc  { font-size: 13px; color: rgba(255,255,255,0.55); line-height: 1.75; }

/* ================================================================
   MORTGAGE CALCULATOR
   ================================================================ */
.hx-calc-section { background: var(--cream); }
.hx-calc-grid { display: grid; grid-template-columns: 1fr; gap: 28px; }
@media (min-width: 1024px) { .hx-calc-grid { grid-template-columns: 1fr 1.1fr; gap: 48px; } }

.hx-calc-box { background: var(--white); border: 1px solid var(--border); padding: 28px; box-shadow: var(--shadow-sm); }
@media (min-width: 480px) { .hx-calc-box { padding: 36px 40px; } }
.hx-calc-title { font-family: 'Playfair Display', serif; font-size: 26px; font-weight: 400; color: var(--espresso); margin-bottom: 28px; }

.hx-rng-grp { margin-bottom: 24px; }
.hx-rng-lbl { display: flex; justify-content: space-between; align-items: center; font-size: 10px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: var(--text-md); margin-bottom: 10px; }
.hx-rng-val { font-family: 'Playfair Display', serif; font-size: 18px; color: var(--copper); }
input[type=range].hx-rng { width: 100%; -webkit-appearance: none; height: 2px; background: var(--sand); outline: none; cursor: pointer; }
input[type=range].hx-rng::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; border-radius: 50%; background: var(--copper); cursor: pointer; border: 3px solid var(--white); box-shadow: 0 2px 8px rgba(184,118,58,0.4); }
input[type=range].hx-rng::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: var(--copper); cursor: pointer; border: 3px solid var(--white); }
.hx-rng-mm { display: flex; justify-content: space-between; font-size: 9.5px; color: var(--text-lt); margin-top: 6px; }

.hx-fg { margin-bottom: 16px; }
.hx-fg label { display: block; font-size: 9.5px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: var(--text-md); margin-bottom: 7px; }
.hx-fg input, .hx-fg textarea, .hx-fg select { width: 100%; background: var(--cream); border: 1px solid var(--border); color: var(--text); font-size: 14px; padding: 10px 13px; outline: none; transition: border-color 0.25s; font-family: inherit; }
.hx-fg input:focus, .hx-fg textarea:focus, .hx-fg select:focus { border-color: var(--copper); }
.hx-fg input::placeholder, .hx-fg textarea::placeholder { color: var(--text-lt); }
.hx-fg textarea { resize: vertical; min-height: 90px; }
.hx-fg select option { background: var(--ivory); }
.hx-frow { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 420px) { .hx-frow { grid-template-columns: 1fr; } }
.hx-fnote { font-size: 11px; color: var(--text-lt); margin-top: 10px; line-height: 1.6; }

.hx-res-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 14px; }
.hx-res-box { background: var(--cream); border: 1px solid var(--border); padding: 18px 20px; position: relative; overflow: hidden; transition: border-color 0.3s; }
.hx-res-box::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--copper), var(--copper-lt)); }
.hx-res-box.main { background: var(--espresso); grid-column: 1 / -1; }
.hx-res-box.main .hx-res-lbl { color: rgba(255,255,255,0.5); }
.hx-res-box.main .hx-res-val { color: var(--copper-lt); }
.hx-res-lbl { font-size: 9px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: var(--text-md); margin-bottom: 8px; }
.hx-res-val { font-family: 'Playfair Display', serif; font-size: 28px; font-weight: 400; color: var(--copper-dk); }
.hx-res-sm  { font-size: 19px; }
.hx-res-note { font-size: 10px; color: var(--text-lt); margin-top: 4px; }

.hx-bar-box { background: var(--white); border: 1px solid var(--border); padding: 16px 20px; margin-bottom: 12px; }
.hx-bar-lbls { display: flex; gap: 20px; flex-wrap: wrap; font-size: 11px; color: var(--text-md); margin-bottom: 10px; }
.hx-dot-cop { display: inline-block; width: 10px; height: 10px; background: var(--copper); border-radius: 50%; margin-right: 5px; }
.hx-dot-snd { display: inline-block; width: 10px; height: 10px; background: var(--sand); border-radius: 50%; margin-right: 5px; border: 1px solid var(--sand-dk); }
.hx-bar-bg   { height: 10px; background: var(--sand); overflow: hidden; }
.hx-bar-fill { height: 100%; background: linear-gradient(90deg, var(--copper), var(--copper-lt)); transition: width 0.6s var(--ease); }

.hx-sch-box { background: var(--white); border: 1px solid var(--border); }
.hx-sch-hdr { padding: 12px 18px; font-size: 9.5px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: var(--text-md); border-bottom: 1px solid var(--border-lt); }
.hx-sch-wrap { overflow-x: auto; max-height: 230px; overflow-y: auto; }
.hx-sch-tbl { width: 100%; border-collapse: collapse; font-size: 11.5px; min-width: 380px; }
.hx-sch-tbl th { text-align: left; padding: 9px 13px; font-size: 9px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: var(--text-md); border-bottom: 1px solid var(--border); background: var(--cream); }
.hx-sch-tbl td { padding: 9px 13px; border-bottom: 1px solid var(--border-lt); color: var(--text-md); }
.hx-sch-tbl tr:hover td { background: var(--cream); color: var(--text); }

/* ================================================================
   TESTIMONIALS
   ================================================================ */
.hx-testi-section { background: var(--ivory); }
.hx-testi-wrap { position: relative; overflow: hidden; margin-top: 50px; }
.hx-testi-wrap::before, .hx-testi-wrap::after { content: ''; position: absolute; top: 0; bottom: 0; width: 80px; z-index: 1; pointer-events: none; }
.hx-testi-wrap::before { left: 0; background: linear-gradient(90deg, var(--ivory), transparent); }
.hx-testi-wrap::after  { right: 0; background: linear-gradient(-90deg, var(--ivory), transparent); }
.hx-testi-track { display: flex; gap: 20px; width: max-content; animation: testiScroll 40s linear infinite; }
.hx-testi-track:hover { animation-play-state: paused; }
@keyframes testiScroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.hx-tcard { background: var(--white); border: 1px solid var(--border-lt); padding: 28px 30px; width: 300px; flex-shrink: 0; transition: all 0.3s; box-shadow: var(--shadow-sm); }
@media (min-width: 480px) { .hx-tcard { width: 340px; padding: 32px 36px; } }
.hx-tcard:hover { border-color: var(--copper); box-shadow: var(--shadow); transform: translateY(-4px); }
.hx-tcard-stars { color: var(--copper); font-size: 13px; letter-spacing: 2px; margin-bottom: 14px; }
.hx-tcard-quote { font-family: 'Cormorant', serif; font-size: 17px; font-style: italic; color: var(--text); line-height: 1.7; margin-bottom: 20px; }
.hx-tcard-author { display: flex; align-items: center; gap: 12px; }
.hx-tcard-av { width: 42px; height: 42px; border-radius: 50%; background: var(--sand); border: 2px solid var(--border); display: flex; align-items: center; justify-content: center; font-family: 'Playfair Display', serif; font-size: 18px; color: var(--copper); flex-shrink: 0; }
.hx-tcard-name { font-size: 13px; font-weight: 600; color: var(--espresso); }
.hx-tcard-role { font-size: 10.5px; color: var(--text-lt); margin-top: 2px; }

/* ================================================================
   CONTACT
   ================================================================ */
.hx-contact-section { background: var(--cream); }
.hx-contact-layout { display: grid; grid-template-columns: 1fr; gap: 36px; }
@media (min-width: 900px) { .hx-contact-layout { grid-template-columns: 1fr 1.2fr; gap: 64px; align-items: start; } }
.hx-contact-img {
  position: relative; overflow: hidden; min-height: 300px;
}
@media (min-width: 900px) { .hx-contact-img { min-height: 500px; } }
.hx-contact-img img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.hx-contact-img::after { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(184,118,58,0.3) 0%, transparent 60%); }
.hx-contact-info-box { padding: 32px; background: rgba(42,26,14,0.85); backdrop-filter: blur(10px); position: absolute; bottom: 24px; left: 24px; right: 24px; z-index: 1; }
@media (min-width: 640px) { .hx-contact-info-box { right: auto; min-width: 300px; } }
.hx-cib-label { font-size: 9.5px; font-weight: 600; letter-spacing: 3px; text-transform: uppercase; color: var(--copper-lt); margin-bottom: 10px; }
.hx-cib-item { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 10px; }
.hx-cib-icon { font-size: 15px; flex-shrink: 0; margin-top: 1px; }
.hx-cib-val { font-size: 13px; color: rgba(250,247,242,0.85); line-height: 1.5; }
.hx-cib-val a { color: rgba(250,247,242,0.85); transition: color 0.2s; }
.hx-cib-val a:hover { color: var(--copper-lt); }

.hx-form-box { background: var(--white); border: 1px solid var(--border); padding: 28px; box-shadow: var(--shadow-sm); }
@media (min-width: 480px) { .hx-form-box { padding: 40px 44px; } }
.hx-form-title { font-family: 'Playfair Display', serif; font-size: 28px; font-weight: 400; color: var(--espresso); margin-bottom: 28px; }

/* ================================================================
   CTA BAND
   ================================================================ */
.hx-cta {
  position: relative; overflow: hidden; text-align: center;
  padding: 100px 0;
}
@media (min-width: 768px) { .hx-cta { padding: 140px 0; } }
.hx-cta-bg {
  position: absolute; inset: 0;
  background: url('https://images.unsplash.com/photo-1545324418-cc1a3fa10c00?w=1920&q=85&auto=format&fit=crop') center/cover;
  transform: scale(1.05);
  transition: transform 0.6s var(--ease);
}
.hx-cta-bg::after { content: ''; position: absolute; inset: 0; background: rgba(42,26,14,0.82); }
.hx-cta-inner { position: relative; z-index: 1; }
.hx-cta-line { width: 1px; height: 60px; background: linear-gradient(180deg, transparent, var(--copper-lt)); margin: 0 auto 36px; }
.hx-cta-h { font-family: 'Playfair Display', serif; font-size: clamp(30px, 7vw, 76px); font-weight: 400; color: var(--ivory); line-height: 1.0; margin-bottom: 18px; }
.hx-cta-h em { font-style: italic; color: var(--copper-lt); }
.hx-cta-p { font-size: 15px; color: rgba(250,247,242,0.7); max-width: 400px; margin: 0 auto 36px; line-height: 1.8; }

/* ================================================================
   FOOTER
   ================================================================ */
.hx-footer { background: var(--espresso); }
.hx-footer-top { padding: 64px 0 48px; border-bottom: 1px solid rgba(255,255,255,0.08); }
@media (min-width: 768px) { .hx-footer-top { padding: 80px 0 60px; } }
.hx-footer-grid { display: grid; grid-template-columns: 1fr; gap: 40px; }
@media (min-width: 560px) { .hx-footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; } }
@media (min-width: 900px) { .hx-footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; gap: 56px; } }
.hx-footer-logo { font-family: 'Playfair Display', serif; font-size: 24px; font-weight: 400; letter-spacing: 6px; color: var(--copper-lt); text-transform: uppercase; display: block; margin-bottom: 16px; cursor: pointer; }
.hx-footer-logo span { color: var(--ivory); }
.hx-footer-desc { font-size: 13px; color: rgba(255,255,255,0.45); line-height: 1.8; margin-bottom: 22px; max-width: 270px; }
.hx-footer-clist { display: flex; flex-direction: column; gap: 10px; margin-bottom: 22px; }
.hx-footer-citem { display: flex; align-items: flex-start; gap: 8px; font-size: 12px; color: rgba(255,255,255,0.5); transition: color 0.2s; }
.hx-footer-citem:hover { color: var(--copper-lt); }
.hx-footer-citem-icon { flex-shrink: 0; font-size: 13px; margin-top: 1px; }
.hx-socials { display: flex; gap: 8px; flex-wrap: wrap; }
.hx-social { width: 36px; height: 36px; border: 1px solid rgba(255,255,255,0.12); display: flex; align-items: center; justify-content: center; font-size: 13px; color: rgba(255,255,255,0.45); cursor: pointer; transition: all 0.25s; text-decoration: none; }
.hx-social:hover { border-color: var(--copper-lt); color: var(--copper-lt); }
.hx-fcol h5 { font-size: 9.5px; font-weight: 600; letter-spacing: 3px; text-transform: uppercase; color: var(--copper-lt); margin-bottom: 18px; }
.hx-fcol ul { display: flex; flex-direction: column; gap: 10px; }
.hx-fcol ul li a, .hx-fcol ul li span { font-size: 13px; color: rgba(255,255,255,0.45); transition: color 0.2s; cursor: pointer; }
.hx-fcol ul li a:hover, .hx-fcol ul li span:hover { color: var(--copper-lt); }
.hx-footer-bottom { padding: 22px 0; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
.hx-footer-bottom p { font-size: 11px; color: rgba(255,255,255,0.3); }
.hx-footer-bottom a { color: rgba(255,255,255,0.3); transition: color 0.2s; }
.hx-footer-bottom a:hover { color: var(--copper-lt); }

/* ================================================================
   MODAL
   ================================================================ */
.hx-overlay { position: fixed; inset: 0; background: rgba(42,26,14,0.82); backdrop-filter: blur(12px); z-index: 9000; display: flex; align-items: flex-end; justify-content: center; padding: 0; opacity: 0; pointer-events: none; transition: opacity 0.3s; }
@media (min-width: 640px) { .hx-overlay { align-items: center; padding: 24px; } }
.hx-overlay.open { opacity: 1; pointer-events: all; }
.hx-modal { background: var(--ivory); border: 1px solid var(--border); width: 100%; max-width: 600px; padding: 28px 22px; position: relative; transform: translateY(24px); transition: transform 0.35s var(--ease); max-height: 92vh; overflow-y: auto; box-shadow: var(--shadow); }
@media (min-width: 480px) { .hx-modal { padding: 36px 32px; } }
@media (min-width: 640px) { .hx-modal { padding: 44px; } }
.hx-overlay.open .hx-modal { transform: translateY(0); }
.hx-modal-prop { max-width: 980px; }
.hx-modal-close { position: absolute; top: 14px; right: 14px; width: 32px; height: 32px; border: 1px solid var(--border); background: none; color: var(--text-lt); cursor: pointer; font-size: 16px; display: flex; align-items: center; justify-content: center; transition: all 0.25s; }
.hx-modal-close:hover { border-color: #c0392b; color: #c0392b; }
.hx-modal-title { font-family: 'Playfair Display', serif; font-size: 26px; font-weight: 400; color: var(--espresso); margin-bottom: 24px; }

/* Detail layout inside modal */
.hx-det-layout { display: grid; grid-template-columns: 1fr; gap: 22px; }
@media (min-width: 720px) { .hx-det-layout { grid-template-columns: 1fr 300px; } }

.hx-gal { overflow: hidden; border: 1px solid var(--border); }
.hx-gal-main { height: 240px; position: relative; overflow: hidden; cursor: pointer; }
@media (min-width: 480px) { .hx-gal-main { height: 280px; } }
@media (min-width: 720px) { .hx-gal-main { height: 320px; } }
.hx-gal-main img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.hx-gal-main:hover img { transform: scale(1.04); }
.hx-gal-nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 38px; height: 38px; background: rgba(250,247,242,0.9); border: 1px solid var(--border); color: var(--copper-dk); font-size: 17px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.25s; }
.hx-gal-prev { left: 10px; }
.hx-gal-next { right: 10px; }
.hx-gal-nav:hover { background: var(--copper); border-color: var(--copper); color: var(--white); }
.hx-gal-cnt { position: absolute; bottom: 10px; right: 10px; background: rgba(42,26,14,0.65); padding: 3px 11px; font-size: 11px; color: var(--ivory); }
.hx-gthumbs { display: flex; gap: 5px; padding: 6px; background: var(--cream); }
.hx-gthumb { flex: 1; height: 58px; overflow: hidden; border: 2px solid transparent; cursor: pointer; transition: border-color 0.2s; }
.hx-gthumb.active { border-color: var(--copper); }
.hx-gthumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.hx-gthumb:hover img { transform: scale(1.07); }

.hx-det-price { background: var(--espresso); padding: 20px 22px; margin-bottom: 12px; }
.hx-det-badge { display: inline-block; font-size: 8.5px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--copper-lt); border: 1px solid var(--copper); padding: 3px 10px; margin-bottom: 12px; }
.hx-det-val { font-family: 'Playfair Display', serif; font-size: 32px; font-weight: 400; color: var(--copper-lt); margin-bottom: 4px; }
.hx-det-vnote { font-size: 10.5px; color: rgba(255,255,255,0.45); }
.hx-det-name { font-family: 'Playfair Display', serif; font-size: 20px; font-weight: 400; color: var(--ivory); margin: 14px 0 6px; }
.hx-det-loc { display: flex; align-items: center; gap: 4px; font-size: 11.5px; color: rgba(255,255,255,0.55); margin-bottom: 16px; }
.hx-det-specs { display: grid; grid-template-columns: repeat(3,1fr); gap: 7px; }
.hx-dspec { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); padding: 10px 6px; text-align: center; }
.hx-dspec-v { font-family: 'Playfair Display', serif; font-size: 19px; color: var(--copper-lt); display: block; }
.hx-dspec-l { font-size: 8px; letter-spacing: 1.5px; text-transform: uppercase; color: rgba(255,255,255,0.4); margin-top: 2px; display: block; }

.hx-dtabs { display: flex; border-bottom: 1px solid var(--border); overflow-x: auto; scrollbar-width: none; background: var(--white); }
.hx-dtabs::-webkit-scrollbar { display: none; }
.hx-dtab { padding: 11px 16px; font-size: 10.5px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; color: var(--text-lt); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; transition: all 0.25s; white-space: nowrap; background: none; }
.hx-dtab.active { color: var(--copper); border-bottom-color: var(--copper); }
.hx-dtab-p { display: none; padding: 20px; font-size: 13px; color: var(--text-md); line-height: 1.85; background: var(--white); }
.hx-dtab-p.active { display: block; }
.hx-amenlist { display: grid; grid-template-columns: repeat(2,1fr); gap: 8px; margin-top: 14px; }
@media (min-width: 480px) { .hx-amenlist { grid-template-columns: repeat(3,1fr); } }
.hx-amen { display: flex; align-items: center; gap: 7px; font-size: 12px; color: var(--text); padding: 8px 12px; border: 1px solid var(--border-lt); background: var(--cream); }
.hx-amen::before { content: '✓'; color: var(--copper); font-size: 10px; font-weight: 700; flex-shrink: 0; }

/* ================================================================
   TOAST
   ================================================================ */
.hx-toast { position: fixed; bottom: 16px; right: 16px; z-index: 9999; background: var(--white); border: 1px solid var(--border); padding: 13px 18px; display: flex; align-items: center; gap: 10px; min-width: 220px; max-width: calc(100vw - 32px); box-shadow: var(--shadow); transform: translateY(16px); opacity: 0; transition: all 0.3s; font-size: 13px; }
@media (min-width: 480px) { .hx-toast { bottom: 24px; right: 24px; } }
.hx-toast.show { transform: translateY(0); opacity: 1; }
.hx-toast.ok  { border-left: 3px solid #2ecc71; }
.hx-toast.err { border-left: 3px solid #e74c3c; }

/* ================================================================
   SCROLL REVEAL
   ================================================================ */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.d1 { transition-delay: 0.08s; }
.d2 { transition-delay: 0.16s; }
.d3 { transition-delay: 0.24s; }
.d4 { transition-delay: 0.32s; }
.d5 { transition-delay: 0.40s; }

/* ================================================================
   RESPONSIVE OVERRIDES
   ================================================================ */
.hide-mob { display: none !important; }
@media (min-width: 900px) { .hide-mob { display: inline-flex !important; } }

@media (max-width: 380px) {
  .hx-stab { padding: 8px 10px; font-size: 9.5px; }
  .hx-hero-title { font-size: 36px; }
}

@media print {
  .hx-nav, .hx-toast, .hx-overlay, .hx-ticker { display: none !important; }
  body { background: white; color: black; }
}

/* ================================================================
   MOBILE RESPONSIVE — COMPREHENSIVE OVERHAUL
   Breakpoints: 380px | 480px | 640px | 768px | 900px | 1024px
   ================================================================ */

/* ── Base touch improvements ── */
html {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
button, a, [onclick] {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

/* ── NAVIGATION: Mobile-first fixes ── */
@media (max-width: 1023px) {
  .hx-nav-inner {
    padding: 0 16px;
    gap: 8px;
  }
  .hx-logo {
    font-size: 18px;
    letter-spacing: 4px;
  }
  /* Hide "List Property" text on very small screens, show icon */
  .hx-btn-copper {
    padding: 8px 12px;
    font-size: 9.5px;
    letter-spacing: 1.5px;
  }
}
@media (max-width: 479px) {
  .hx-logo { font-size: 16px; letter-spacing: 3px; }
  .hx-btn-copper { padding: 7px 11px; font-size: 9px; }
  .hx-nav-inner { padding: 0 12px; }
}

/* Mobile menu: better padding, bigger tap targets */
.hx-nav-menu.open .hx-menu-list li a,
.hx-nav-menu.open .hx-menu-list li span {
  padding: 15px 18px;
  font-size: 11px;
  min-height: 50px;
  display: flex;
  align-items: center;
}

/* ── HERO: Mobile adjustments ── */
@media (max-width: 639px) {
  .hx-hero {
    justify-content: flex-end;
    padding-bottom: 70px;
    padding-top: 90px;
  }
  .hx-hero-content {
    padding: 0 18px;
  }
  .hx-hero-badge {
    font-size: 8.5px;
    letter-spacing: 2.5px;
    padding: 7px 16px;
    margin-bottom: 18px;
  }
  .hx-hero-title {
    font-size: clamp(32px, 10vw, 52px);
    line-height: 1.08;
    letter-spacing: -0.3px;
  }
  .hx-hero-sub {
    font-size: 13px;
    margin-top: 14px;
    line-height: 1.75;
  }
  .hx-scroll-ind { display: none; } /* hide on small screens to save space */
}

/* Search bar: fully vertical on mobile */
@media (max-width: 479px) {
  .hx-hero-search { margin-top: 24px; }
  .hx-stabs { justify-content: flex-start; }
  .hx-stab { padding: 9px 12px; font-size: 9px; letter-spacing: 1.5px; }
  .hx-sfield { padding: 12px 14px; }
  .hx-sfield input { font-size: 13px; }
  .hx-sfield input::placeholder { font-size: 12px; }
  .hx-sselects { grid-template-columns: 1fr; }
  .hx-ssel { padding: 11px 14px; border-right: none; border-bottom: 1px solid var(--border); font-size: 12px; }
  .hx-ssel:last-child { border-bottom: none; }
  .hx-sgo { min-height: 50px; font-size: 11px; }
  .hx-qtags { gap: 6px; margin-top: 12px; }
  .hx-qtag { font-size: 9.5px; padding: 5px 11px; }
}

/* ── STATS: fix 2-col on mobile, ensure bottom borders ── */
@media (max-width: 639px) {
  .hx-stats { grid-template-columns: 1fr 1fr; }
  .hx-stat { padding: 24px 16px; }
  .hx-stat:nth-child(2n) { border-right: none; }
  .hx-stat:nth-child(1),
  .hx-stat:nth-child(2) { border-bottom: 1px solid rgba(255,255,255,0.08); }
  .hx-stat:nth-child(3),
  .hx-stat:nth-child(4) { border-bottom: none; }
  .hx-stat-n { font-size: clamp(24px, 7vw, 38px); }
  .hx-stat-l { font-size: 8.5px; letter-spacing: 2px; }
}

/* ── TICKER ── */
@media (max-width: 479px) {
  .hx-ticker { padding: 10px 0; }
  .hx-titem { font-size: 9.5px; letter-spacing: 2.5px; padding: 0 20px; }
}

/* ── SECTION COMMONS ── */
@media (max-width: 479px) {
  .hx-section { padding: 60px 0; }
  .hx-sec-title { font-size: clamp(24px, 7vw, 36px); }
  .hx-sec-sub { font-size: 13.5px; }
  .hx-sec-head { margin-bottom: 28px; gap: 10px; }
  .hx-sec-label { font-size: 9px; letter-spacing: 3px; margin-bottom: 10px; }
}

/* ── PROPERTY CARDS ── */
@media (max-width: 519px) {
  .hx-props-grid { grid-template-columns: 1fr; gap: 16px; }
  .hx-pcard-img { height: 210px; }
  .hx-pcard-body { padding: 16px 18px 20px; }
  .hx-pname { font-size: 17px; margin-bottom: 10px; }
  .hx-pprice { font-size: 19px; }
  .hx-pspecs { gap: 10px; font-size: 10.5px; }
}
@media (min-width: 520px) and (max-width: 767px) {
  .hx-props-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .hx-pcard-img { height: 180px; }
  .hx-pname { font-size: 15px; }
  .hx-pprice { font-size: 17px; }
}

/* Filter bar: stack vertically on mobile */
@media (max-width: 479px) {
  .hx-fbar { flex-direction: column; gap: 8px; padding: 12px; }
  .hx-fsel, .hx-fclr { flex: 1 1 100%; min-width: 0; padding: 10px 12px; font-size: 13px; }
}

/* Pagination: larger touch targets */
@media (max-width: 479px) {
  .hx-pgbtn { width: 42px; height: 42px; font-size: 14px; }
  .hx-pages { gap: 5px; padding: 28px 0 0; }
}

/* ── IMAGE BAND ── */
@media (max-width: 479px) {
  .hx-imgband { height: 340px; }
  .hx-imgband-overlay { padding: 28px 18px; }
  .hx-imgband-text h2 { font-size: clamp(22px, 7vw, 32px); margin-bottom: 12px; }
  .hx-imgband-text p { font-size: 13px; max-width: 100%; margin-bottom: 22px; }
  .hx-btn-lg { padding: 13px 28px; font-size: 11px; }
}

/* ── AREAS GRID ── */
@media (max-width: 479px) {
  .hx-areas-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .hx-area { min-height: 160px; }
  .hx-area:first-child { min-height: 220px; } /* hero area bigger */
  .hx-area-info { padding: 14px 16px; }
  .hx-area-name { font-size: 16px; }
  .hx-area-cnt { font-size: 8.5px; }
}
@media (min-width: 480px) and (max-width: 639px) {
  .hx-areas-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .hx-area { min-height: 150px; }
}

/* ── WHY HABIXTA ── */
@media (max-width: 479px) {
  .hx-why-card { padding: 22px 18px; }
  .hx-why-icon { font-size: 24px; margin-bottom: 12px; }
  .hx-why-title { font-size: 15px; margin-bottom: 8px; }
  .hx-why-desc { font-size: 12.5px; }
}
@media (max-width: 519px) {
  .hx-why-grid { grid-template-columns: 1fr; gap: 12px; }
}

/* ── MORTGAGE CALCULATOR ── */
@media (max-width: 479px) {
  .hx-calc-box { padding: 22px 18px; }
  .hx-calc-title { font-size: 22px; margin-bottom: 20px; }
  .hx-rng-grp { margin-bottom: 20px; }
  .hx-rng-lbl { font-size: 9px; }
  .hx-rng-val { font-size: 16px; }
  .hx-res-grid { grid-template-columns: 1fr; }
  .hx-res-box { padding: 14px 16px; }
  .hx-res-val { font-size: 24px; }
  .hx-res-box.main { grid-column: 1; }
  .hx-sch-tbl { font-size: 11px; }
  .hx-sch-tbl th, .hx-sch-tbl td { padding: 8px 10px; }
  .hx-frow { grid-template-columns: 1fr; gap: 10px; }
  .hx-fg label { font-size: 9px; }
  .hx-fg input, .hx-fg textarea, .hx-fg select { font-size: 15px; padding: 11px 12px; }
}

/* ── TESTIMONIALS ── */
@media (max-width: 479px) {
  .hx-tcard { width: 280px; padding: 22px 20px; }
  .hx-tcard-quote { font-size: 15px; }
  .hx-testi-wrap::before, .hx-testi-wrap::after { width: 40px; }
  .hx-testi-wrap { margin-top: 32px; }
}

/* ── CONTACT ── */
@media (max-width: 479px) {
  .hx-contact-img { min-height: 260px; }
  .hx-contact-info-box {
    padding: 20px 18px;
    bottom: 16px; left: 16px; right: 16px;
  }
  .hx-cib-label { font-size: 8.5px; letter-spacing: 2.5px; }
  .hx-cib-val { font-size: 12px; }
  .hx-form-box { padding: 22px 18px; }
  .hx-form-title { font-size: 22px; margin-bottom: 20px; }
}
@media (max-width: 899px) {
  .hx-contact-layout { gap: 24px; }
}

/* ── CTA BAND ── */
@media (max-width: 479px) {
  .hx-cta { padding: 70px 0; }
  .hx-cta-line { height: 40px; margin-bottom: 24px; }
  .hx-cta-h { font-size: clamp(26px, 8vw, 40px); line-height: 1.1; margin-bottom: 14px; }
  .hx-cta-p { font-size: 13.5px; max-width: 100%; padding: 0 8px; margin-bottom: 26px; }
  .hx-btn-row { gap: 10px; padding: 0 16px; }
  .hx-btn-lg { padding: 13px 24px; font-size: 11px; letter-spacing: 1.5px; }
}

/* ── FOOTER ── */
@media (max-width: 559px) {
  .hx-footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .hx-footer-top { padding: 48px 0 36px; }
  .hx-footer-desc { max-width: 100%; }
  .hx-footer-logo { font-size: 20px; letter-spacing: 5px; }
  .hx-footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding: 18px 0;
  }
  .hx-footer-bottom p { font-size: 10.5px; }
  .hx-socials { gap: 6px; }
  .hx-social { width: 40px; height: 40px; font-size: 14px; }
}
@media (min-width: 560px) and (max-width: 899px) {
  .hx-footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
}

/* ── MODAL ── */
@media (max-width: 479px) {
  .hx-modal { padding: 22px 16px; max-height: 95vh; }
  .hx-modal-title { font-size: 20px; margin-bottom: 18px; }
  .hx-gal-main { height: 200px; }
  .hx-gal-nav { width: 32px; height: 32px; font-size: 14px; }
  .hx-gal-prev { left: 6px; }
  .hx-gal-next { right: 6px; }
  .hx-gthumbs { gap: 3px; padding: 4px; }
  .hx-gthumb { height: 48px; }
  .hx-det-price { padding: 16px 18px; }
  .hx-det-val { font-size: 26px; }
  .hx-det-name { font-size: 17px; }
  .hx-det-specs { grid-template-columns: repeat(3,1fr); gap: 5px; }
  .hx-dspec { padding: 8px 4px; }
  .hx-dspec-v { font-size: 16px; }
  .hx-amenlist { grid-template-columns: 1fr 1fr; gap: 6px; }
  .hx-amen { font-size: 11px; padding: 7px 10px; }
  .hx-dtab { padding: 10px 12px; font-size: 9.5px; }
  .hx-dtab-p { padding: 16px 14px; font-size: 12.5px; }
}

/* ── TOAST ── */
@media (max-width: 479px) {
  .hx-toast {
    bottom: 12px; right: 12px; left: 12px;
    max-width: 100%;
    min-width: 0;
  }
}

/* ── LOADING SCREEN ── */
@media (max-width: 479px) {
  .hx-loader-logo { font-size: clamp(26px, 9vw, 40px); letter-spacing: 8px; }
  .hx-loader-bar-wrap { width: 160px; }
}

/* ── UTILITY: prevent horizontal scroll everywhere ── */
.hx-hero-content,
.hx-sec-head,
.hx-props-grid,
.hx-areas-grid,
.hx-why-grid,
.hx-calc-grid,
.hx-contact-layout,
.hx-footer-grid {
  max-width: 100%;
}

/* ── Touch-friendly: bigger tap areas for small buttons ── */
@media (max-width: 639px) {
  .hx-pfav { width: 40px; height: 40px; font-size: 17px; }
  .hx-parrow { width: 42px; height: 42px; }
  .hx-pgbtn { width: 44px; height: 44px; }
  .hx-modal-close { width: 40px; height: 40px; top: 12px; right: 12px; font-size: 18px; }
  .hx-ham { padding: 10px 6px; }
  .hx-ham span { width: 24px; }
}

/* ── Safe area insets for notched phones ── */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
  .hx-nav { top: env(safe-area-inset-top, 0); }
  .hx-toast { bottom: calc(12px + env(safe-area-inset-bottom, 0)); }
  .hx-overlay { padding-bottom: env(safe-area-inset-bottom, 0); }
}

/* ── Prevent font size inflation on iOS ── */
@media (max-width: 639px) {
  input, select, textarea {
    font-size: 16px !important; /* prevents iOS zoom on focus */
  }
}
