/* ============================================
   NICE PROPERTY MANAGEMENT — Pioneer Style V5
   Clean · Minimal · Premium · Light Theme
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

/* Campton custom font — same as pioneerproperty.in */
@font-face {
  font-family: 'Campton';
  src: url('https://fonts.cdnfonts.com/s/15339/CamptonBook.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Campton';
  src: url('https://fonts.cdnfonts.com/s/15339/CamptonMedium.woff') format('woff');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --white:        #ffffff;
  --bg:           #f7f8fa;
  --bg2:          #eef0f3;
  --text:         #111827;
  --text2:        #4b5563;
  --text3:        #9ca3af;
  --border:       #e5e7eb;
  --border2:      #d1d5db;
  --primary:       #111111;
  --primary-lt:    #333333;
  --primary-bg:    #f9f9f9;
  --primary-bd:    #e5e5e5;
  --sans:         'Poppins', system-ui, sans-serif;
  --serif:        'Campton', 'Poppins', Georgia, sans-serif;
  --radius:       8px;
  --radius-lg:    14px;
  --radius-xl:    20px;
  --shadow-xs:    0 1px 2px rgba(0,0,0,0.05);
  --shadow-sm:    0 1px 4px rgba(0,0,0,0.07);
  --shadow:       0 4px 20px rgba(0,0,0,0.08);
  --shadow-lg:    0 12px 40px rgba(0,0,0,0.12);
  --ease:         cubic-bezier(0.4, 0, 0.2, 1);
  --t:            0.2s;
}

html { scroll-behavior: smooth; overflow-x: hidden !important; width: 100%; }
body {
  font-family: var(--sans);
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden !important;
  width: 100%;
}

a { text-decoration: none; color: inherit; }

/* ---- UTILITIES ---- */
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 28px; }
.sec-pad { padding: 80px 0; }
.bg-gray { background: var(--bg); }

.label {
  display: inline-block;
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--primary);
  margin-bottom: 0.6rem;
}
.sec-title {
  font-family: 'Campton', var(--sans);
  font-size: clamp(1.9rem, 3vw, 2.25rem); /* 36px like Pioneer */
  font-weight: 400; /* Book weight — clean & light like Pioneer */
  color: var(--text);
  line-height: 1.2;
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}
.sec-sub {
  font-size: 0.9rem; color: var(--text2); line-height: 1.75;
  max-width: 520px;
}
.sec-header { margin-bottom: 2rem; }
.sec-header.center { text-align: center; }
.sec-header.center .sec-sub { margin: 0 auto; }
.flex-jb { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }

/* Button */
.btn {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 10px 22px; border-radius: var(--radius);
  font-family: var(--sans); font-size: 0.85rem; font-weight: 600;
  cursor: pointer; border: 1.5px solid transparent;
  transition: all var(--t) var(--ease); text-decoration: none;
}
.btn-primary { background: var(--primary); color: var(--white); border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-lt); border-color: var(--primary-lt); transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--text); border-color: var(--border2); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-sm { padding: 8px 16px; font-size: 0.8rem; }
.btn-lg { padding: 13px 28px; font-size: 0.92rem; }

/* View all link */
.view-all {
  font-size: 0.82rem; font-weight: 600; color: var(--primary);
  display: inline-flex; align-items: center; gap: 4px;
  transition: gap var(--t) var(--ease);
}
.view-all:hover { gap: 8px; }

/* ============================================================
   HEADER — Single Row (Pioneer Style)
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 1000;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.header-main-inner {
  display: flex; align-items: center; gap: 1.25rem; height: 75px; /* Slightly taller for Pioneer feel */
}
.logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; flex-shrink: 0;
}
.logo-icon {
  width: 38px; height: 38px;
  background: var(--primary); border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
}
.logo-icon svg { width: 22px; height: 22px; fill: white; }
.logo-name strong {
  display: block; font-size: 0.95rem; font-weight: 800;
  color: var(--text); letter-spacing: -0.02em; line-height: 1.2;
}
.logo-name span {
  font-size: 0.6rem; font-weight: 500; color: var(--text3);
  text-transform: uppercase; letter-spacing: 0.07em;
}

/* Header center search (simplistic Pioneer style) */
.header-search {
  flex: 1; max-width: 480px; position: relative;
  margin: 0 auto; margin-right: 1.5rem;
}
.header-search input {
  width: 100%; padding: 11px 48px 11px 18px;
  border: 1px solid var(--border2);
  border-radius: 4px; font-family: var(--sans);
  font-size: 0.85rem; color: var(--text);
  background: white; outline: none;
  transition: border-color var(--t);
}
.header-search input:focus { border-color: var(--primary); }
.header-search-icon {
  position: absolute; right: 0; top: 0; bottom: 0;
  width: 44px; background: var(--primary); border: none;
  border-radius: 0 4px 4px 0; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.header-search-icon svg { width: 16px; height: 16px; fill: white; }

.header-actions { display: flex; align-items: center; gap: 1.5rem; flex-shrink: 0; }
.header-phone {
  text-decoration: none; display: flex; align-items: center; gap: 8px;
  color: var(--text); transition: opacity var(--t);
}
.header-phone:hover { opacity: 0.8; }


.hamburger {
  display: flex; flex-direction: column;
  cursor: pointer; border: none; background: none;
  color: var(--text); transition: color var(--t); margin-left: 0.5rem;
}
.hamburger:hover { color: var(--primary-lt); }

/* Mobile drawer */
.mobile-nav {
  display: none; position: fixed; inset: 0; z-index: 9999;
}
.mobile-nav.open { display: block; }
.mobile-nav-bg { position: absolute; inset: 0; background: rgba(0,0,0,0.5); }
.mobile-nav-panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: 280px;
  background: white; overflow-y: auto; padding: 1.5rem;
  transform: translateX(100%); transition: transform 0.35s var(--ease);
  display: flex; flex-direction: column;
}
.mobile-nav.open .mobile-nav-panel { transform: translateX(0); }
.mobile-nav-close {
  align-self: flex-start; background: none; border: none;
  font-size: 1.5rem; cursor: pointer; color: var(--text);
  margin-bottom: 1.25rem; line-height: 1;
}
.mobile-nav-links { display: flex; flex-direction: column; }
.mobile-nav-links a {
  font-size: 0.95rem; font-weight: 500; color: var(--text);
  padding: 11px 12px; border-bottom: 1px solid var(--border);
  transition: color var(--t);
}
.mobile-nav-links a:hover { color: var(--primary); }
.mobile-nav-cta { margin-top: auto; padding-top: 1.5rem; display: flex; flex-direction: column; gap: 0.75rem; }
.mobile-nav-cta a { font-size: 0.88rem; font-weight: 600; color: var(--primary); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  height: 70vh; max-height: 560px; min-height: 420px;
  overflow: hidden; background: #0f0f0f;
}
/* Slides */
.hero-slide {
  position: absolute; inset: 0;
  opacity: 0; transition: opacity 1.4s ease;
}
.hero-slide.active { opacity: 1; }
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover !important; background-position: right top !important; background-repeat: no-repeat;
}
.hero-slide.active .hero-bg { }
.hero-overlay-gradient {
  position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(17, 17, 17, 0.85) 0%, rgba(17, 17, 17, 0.4) 50%, transparent 100%);
}
.slide-caption {
  position: absolute; bottom: 35px; right: 35px;
  background: rgba(10, 10, 10, 0.5); backdrop-filter: blur(8px);
  padding: 10px 20px; border-radius: 4px;
  color: white; font-family: var(--sans); font-size: 0.85rem; font-weight: 500;
  letter-spacing: 0.04em; z-index: 2; border: 1px solid rgba(255,255,255,0.15);
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

/* Hero content area */
.hero-content {
  position: absolute; top: 0; bottom: 0; left: 0; right: 0;
  z-index: 2; display: flex; align-items: flex-end;
  padding-bottom: 20px;
}
.hero-text-box {
  width: 100%; max-width: 850px;
  margin-left: auto;
  display: flex; flex-direction: column; align-items: flex-end;
}
.pioneer-title {
  font-family: var(--sans);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 700; color: white; line-height: 1.2;
  border-top: 1px solid rgba(255,255,255,0.4);
  border-bottom: 1px solid rgba(255,255,255,0.4);
  padding: 1rem 0; margin-bottom: 2rem;
  letter-spacing: -0.01em;
}

/* Slide dots */
.hero-dots {
  position: absolute; bottom: 30px; left: 50%;
  transform: translateX(-50%); display: flex; gap: 8px; z-index: 3;
}
.hero-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: rgba(255,255,255,0.4); border: none; cursor: pointer;
  transition: all 0.3s;
}
.hero-dot.active { width: 14px; border-radius: 4px; background: white; }

/* Filter Widget Pioneer Style */
.hero-filter-widget {
  display: flex; align-items: stretch; gap: 8px;
  max-width: 750px; width: 100%;
}
.filter-group {
  flex: 1; padding: 12px 16px; background: white;
  display: flex; align-items: center; border-radius: 2px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}
.filter-select {
  width: 100%; border: none; background: transparent;
  font-family: var(--sans); font-size: 0.95rem; color: var(--text2);
  outline: none; cursor: pointer; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23666'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right center;
  padding-right: 20px;
  white-space: nowrap; text-overflow: ellipsis;
}
.filter-submit-btn {
  background: var(--text); border: none; padding: 0 25px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--t); border-radius: 2px;
}
.filter-submit-btn:hover { background: var(--primary); }
.filter-submit-btn svg { width: 22px; height: 22px; stroke: white; }

/* Google Rating */
.google-rating {
  margin-top: 2rem; color: white; display: flex; align-items: center; gap: 10px;
}
.google-rating strong { font-size: 1.2rem; font-family: var(--sans); letter-spacing: -0.5px; }
.google-rating .stars { font-size: 0.9rem; font-weight: 600; display: flex; align-items: center; gap: 4px; }

/* ============================================================
   STATS STRIP
   ============================================================ */
.stats-strip { border-bottom: 1px solid var(--border); }
.stats-inner { display: flex; }
.stat-item {
  flex: 1; padding: 1.5rem 1rem; text-align: center;
  border-right: 1px solid var(--border);
}
.stat-item:last-child { border-right: none; }
.stat-num {
  font-family: var(--serif); font-size: 2rem; font-weight: 700;
  color: var(--text); line-height: 1; display: block; margin-bottom: 4px;
}
.stat-num em { color: var(--primary); font-style: normal; }
.stat-lbl {
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--text3);
}

/* ============================================================
   CLIENT MARQUEE
   ============================================================ */
.marquee-wrap {
  background: var(--bg); border-bottom: 1px solid var(--border);
  overflow: hidden; padding: 14px 0; user-select: none;
}
.marquee-track {
  display: flex; gap: 3rem; align-items: center;
  animation: marqueeRun 28s linear infinite; white-space: nowrap;
}
.marquee-track:hover { animation-play-state: paused; }
.marquee-item {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--text3);
  display: flex; align-items: center; gap: 8px; flex-shrink: 0;
}
.marquee-item::before { content: '◆'; color: var(--primary); font-size: 0.45rem; }
@keyframes marqueeRun { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ============================================================
   PROPERTY CARD — Pioneer Minimal Carousel Style
   ============================================================ */
.pcard {
    border-radius: 2px; overflow: hidden;
    background: #111; border: none;
    box-shadow: 0 4px 16px rgba(0,0,0,0.18);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    display: block; text-decoration: none; position: relative;
  }
.pcard:hover { box-shadow: 0 6px 24px rgba(0,0,0,0.10); transform: translateY(-4px); }

/* Property Card Image Slider */
.pcard-img-wrap {
  position: relative; height: 210px; overflow: hidden;
  background: #f8f8f8;
}
.card-slider {
  display: flex; height: 100%; transition: transform 0.4s ease-in-out;
}
.slide-item {
  min-width: 100%; height: 100%;
  background-size: cover; background-position: center;
}

/* Slider Controls */
.slider-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: transparent; border: none; border-radius: 0;
  width: 32px; height: 32px; display: flex; align-items: center; justify-content: center;
  cursor: pointer; opacity: 0.85; transition: opacity 0.3s, transform 0.3s; z-index: 10;
  color: #fff; font-size: 24px; font-weight: 300;
  text-shadow: 0 2px 5px rgba(0,0,0,0.6);
}
.pcard-img-wrap:hover .slider-btn, .lcard-img:hover .slider-btn { opacity: 1; }
.slider-btn.prev { left: 8px; }
.slider-btn.next { right: 8px; }
.slider-btn:hover { background: transparent; transform: translateY(-50%) scale(1.15); opacity: 1; text-shadow: 0 2px 8px rgba(0,0,0,0.9); }

/* Dots */
.card-carousel-dots {
  position: absolute; bottom: 10px; left: 0; right: 0;
  display: flex; justify-content: center; gap: 6px;
  pointer-events: none;
}
.card-dot {
  width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,0.5);
  transition: all 0.3s;
}
.card-dot.active {
  background: #fff; transform: scale(1.2);
}
.cdot { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,0.4); }
.cdot.active { background: white; }

/* Badge */
.pcard-badge {
  position: absolute; top: 12px; left: 12px;
  background: #c00000; color: white; /* Pioneer Red */
  font-size: 0.65rem; font-weight: 600; letter-spacing: 0.05em;
  padding: 3px 8px; border-radius: 2px; z-index: 2;
}

/* Pioneer-style: text overlaid on image with gradient shadow */
.pcard-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 2rem 1rem 1rem;
  background: linear-gradient(to top, rgba(0,0,0,0.82) 0%, rgba(0,0,0,0.5) 55%, transparent 100%);
  z-index: 3;
  transition: background 0.35s ease;
}
.pcard:hover .pcard-overlay {
  background: linear-gradient(to top, rgba(0,0,0,0.42) 0%, rgba(0,0,0,0.18) 55%, transparent 100%);
}
.pcard-overlay .pcard-loc {
  font-size: 0.72rem; color: rgba(255,255,255,0.80); margin-bottom: 3px; font-weight: 400;
}
.pcard-overlay .pcard-name {
  font-size: 1rem; font-weight: 700; color: #fff; line-height: 1.25; margin-bottom: 4px;
}
.pcard-overlay .pcard-price {
  font-size: 0.82rem; font-weight: 600; color: #fff; margin-bottom: 2px;
}
.pcard-overlay .pcard-poss {
  font-size: 0.72rem; color: rgba(255,255,255,0.65);
}
/* Placeholder */
.pcard-placeholder {
  position: absolute; inset: 0; display: flex;
  flex-direction: column; align-items: center; justify-content: center;
  gap: 0.5rem; background: linear-gradient(135deg, #2a2a3a, #1a1a2a);
}
.pcard-placeholder svg { width: 40px; height: 40px; fill: rgba(255,255,255,0.2); }
.pcard-placeholder span { font-size: 0.65rem; color: rgba(255,255,255,0.4); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }

/* ============================================================
   PROPERTY GRID
   ============================================================ */
.properties-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem;
}
@media (max-width: 900px) {
  .properties-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .properties-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   LISTING CARD — Pioneer Style (Properties Page)
   ============================================================ */
.lcard {
  display: block; text-decoration: none;
  border-radius: 4px; overflow: hidden;
  background: #fff; border: 1px solid var(--border);
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.lcard:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,0.10); }
.lcard-img {
  position: relative; height: 210px; overflow: hidden; background: #f0f0f0;
}
.lcard-img .card-slider { display: flex; height: 100%; transition: transform 0.4s ease; }
.lcard-img .slide-item {
  min-width: 100%; height: 100%;
  background-size: cover; background-position: center;
  transition: transform 0.5s ease;
}
.lcard:hover .lcard-img .slide-item { transform: scale(1.04); }
.lcard-placeholder {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: #e8e8e8;
}
.lcard-placeholder svg { width: 40px; height: 40px; fill: #aaa; }
.lcard-body { padding: 14px 16px 16px; border-top: 2px solid var(--primary); }
.lcard-top {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 0.5rem; margin-bottom: 6px;
}
.lcard-name { font-size: 1rem; font-weight: 700; color: var(--text); line-height: 1.3; flex: 1; }
.lcard-price { font-size: 0.82rem; font-weight: 700; color: var(--primary); white-space: nowrap; flex-shrink: 0; }
.lcard-price.muted { color: var(--text2); font-weight: 500; }
.lcard-loc { font-size: 0.78rem; color: var(--text2); margin-bottom: 4px; }
.lcard-size { font-size: 0.75rem; color: var(--text3); }
.lcard-poss { font-size: 0.72rem; color: var(--text3); margin-top: 5px; border-top: 1px solid var(--border); padding-top: 6px; }

.slider-track::-webkit-scrollbar { display: none; }
.slider-track .pcard { min-width: 268px; flex-shrink: 0; }

.slider-nav { display: flex; gap: 0.5rem; align-items: center; }
.nav-btn {
  width: 38px; height: 38px; border-radius: 50%;
  border: 1.5px solid var(--border);
  background: white; cursor: pointer; display: flex;
  align-items: center; justify-content: center;
  transition: all var(--t) var(--ease);
}
.nav-btn svg { width: 14px; height: 14px; stroke: var(--text2); fill: none; transition: stroke var(--t); }
.nav-btn:hover { background: var(--primary); border-color: var(--primary); }
.nav-btn:hover svg { stroke: white; }

/* ============================================================
   NEW LAUNCHES / TRENDING SECTIONS
   ============================================================ */
.launches-sec, .trending-sec { padding: 80px 0; }
.launches-sec { background: var(--white); }
.trending-sec { background: var(--bg); }

/* ============================================================
   POPULAR LOCATIONS
   ============================================================ */
.locations-sec { background: var(--white); padding: 80px 0; }
.locations-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.loc-card {
  display: flex; align-items: center; gap: 1rem;
  padding: 1.1rem 1.25rem; border: 1.5px solid var(--border);
  border-radius: var(--radius-lg); background: white;
  text-decoration: none; transition: all var(--t) var(--ease); cursor: pointer;
}
.loc-card:hover { border-color: var(--primary); background: var(--primary-bg); transform: translateX(5px); }
.loc-icon {
  width: 50px; height: 50px; border-radius: 10px;
  background: var(--bg2); display: flex; align-items: center;
  justify-content: center; font-size: 1.5rem; flex-shrink: 0;
}
.loc-info strong { display: block; font-size: 0.92rem; font-weight: 700; color: var(--text); }
.loc-info span { font-size: 0.72rem; color: var(--text3); margin-top: 2px; display: block; }
.loc-arrow { margin-left: auto; color: var(--text3); font-size: 1rem; transition: all var(--t); }
.loc-card:hover .loc-arrow { color: var(--primary); transform: translateX(3px); }

/* ============================================================
   PROPERTY CATEGORIES
   ============================================================ */
.categories-sec { background: var(--bg); padding: 80px 0; }
/* Pioneer Categories Grid */
  .pioneer-cat-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
    margin-top: 2rem;
  }
  .p-cat-card {
    height: 180px; width: 100%;
    position: relative; display: flex; align-items: flex-end; justify-content: center;
    text-decoration: none; padding-bottom: 20px;
    background-size: cover; background-position: center; background-repeat: no-repeat;
    background-clip: padding-box;
    border: 3px solid transparent; box-sizing: border-box;
    transition: transform 0.3s var(--ease), border-color 0.3s;
  }
  .p-cat-card:hover {
    transform: translateY(-5px);
    border-color: #333;
    border-style: solid;
  }
  .p-cat-name {
    color: white; font-family: var(--sans); font-size: 1.1rem;
    font-weight: 500; text-shadow: 0 2px 4px rgba(0,0,0,0.8);
    z-index: 2; position: relative;
  }
  @media (max-width: 1024px) {
    .pioneer-cat-grid { grid-template-columns: repeat(3, 1fr); }
  }
  @media (max-width: 600px) {
    .pioneer-cat-grid { grid-template-columns: repeat(2, 1fr); }
    .p-cat-card { height: 140px; }
    .p-cat-name { font-size: 0.95rem; }
  }
/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testi-sec { background: var(--white); padding: 80px 0; }
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.testi-card {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 1.75rem 1.5rem;
  position: relative; transition: all 0.25s var(--ease);
}
.testi-card:hover { box-shadow: var(--shadow); background: white; border-color: var(--border2); }
.testi-quote-mark {
  font-family: var(--serif); font-size: 4rem; color: var(--border2);
  line-height: 1; position: absolute; top: 1rem; left: 1.25rem;
  pointer-events: none;
}
.testi-stars { color: #f59e0b; letter-spacing: 2px; font-size: 0.85rem; margin-bottom: 0.9rem; position: relative; }
.testi-text {
  font-size: 0.88rem; color: var(--text2); line-height: 1.8;
  font-style: italic; margin-bottom: 1.25rem; position: relative;
}
.testi-author { display: flex; align-items: center; gap: 0.75rem; }
.testi-av {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--primary); color: white;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.9rem; flex-shrink: 0;
}
.testi-nm strong { font-size: 0.85rem; font-weight: 700; display: block; color: var(--text); }
.testi-nm span { font-size: 0.72rem; color: var(--text3); }

/* ============================================================
   GET IN TOUCH / LEAD BAR — Light Beige (Pioneer Style)
   ============================================================ */
.lead-bar { background: #f5f5f0; border-top: 1px solid var(--border); padding: 3rem 0; }
.lead-bar-inner { display: flex; align-items: center; gap: 3rem; flex-wrap: wrap; }
.lead-bar-left { flex-shrink: 0; }
.lead-bar-left h2 {
  font-family: var(--serif); font-size: 1.9rem; font-weight: 700;
  color: var(--text); margin-bottom: 0.35rem; line-height: 1.25;
}
.lead-bar-left p { font-size: 0.82rem; color: var(--text2); }
.lead-bar-form {
  flex: 1; min-width: 0; display: flex;
  gap: 0.75rem; align-items: center; flex-wrap: wrap;
}
.lb-field { flex: 1; min-width: 140px; }
.lb-field input, .lb-field select {
  width: 100%; padding: 12px 14px;
  border: 1.5px solid var(--border2);
  border-radius: var(--radius); background: white;
  font-family: var(--sans); font-size: 0.85rem;
  color: var(--text); outline: none; transition: border-color var(--t);
}
.lb-field input::placeholder { color: var(--text3); }
.lb-field input:focus, .lb-field select:focus { border-color: var(--primary); }
.lb-submit {
  padding: 12px 26px; background: var(--text); color: white;
  border: none; border-radius: var(--radius);
  font-family: var(--sans); font-size: 0.85rem; font-weight: 700;
  cursor: pointer; flex-shrink: 0; transition: all var(--t);
}
.lb-submit:hover { background: var(--primary); transform: translateY(-1px); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: #0d0d0d; padding: 3.5rem 0 1.5rem; }
.footer-grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr;
  gap: 2.5rem; padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  margin-bottom: 1.75rem;
}
.footer-brand p {
  font-size: 0.82rem; color: rgba(255,255,255,0.4);
  line-height: 1.8; margin-top: 1rem; max-width: 240px;
}
.footer-socials { display: flex; gap: 0.5rem; margin-top: 1.25rem; }
.footer-socials a {
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255,255,255,0.06); display: flex;
  align-items: center; justify-content: center;
  text-decoration: none; transition: all var(--t);
}
.footer-socials a:hover { background: var(--primary); }
.footer-socials svg { width: 14px; height: 14px; fill: rgba(255,255,255,0.5); }
.footer-socials a:hover svg { fill: white; }
.footer-col h4 {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: rgba(255,255,255,0.45);
  margin-bottom: 1.1rem;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.55rem; }
.footer-col ul li a {
  font-size: 0.82rem; color: rgba(255,255,255,0.45);
  text-decoration: none; transition: color var(--t);
}
.footer-col ul li a:hover { color: white; }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 1rem;
}
.footer-copy { font-size: 0.74rem; color: rgba(255,255,255,0.25); }
.footer-links { display: flex; gap: 1.25rem; }
.footer-links a { font-size: 0.74rem; color: rgba(255,255,255,0.25); text-decoration: none; transition: color var(--t); }
.footer-links a:hover { color: rgba(255,255,255,0.6); }

/* ============================================================
   FLOATING WHATSAPP
   ============================================================ */
.wa-fab {
  position: fixed; bottom: 28px; right: 28px; z-index: 8000;
}
.wa-fab a {
  width: 54px; height: 54px; border-radius: 50%;
  background: #25D366; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  text-decoration: none; transition: all 0.25s;
  animation: waPulse 2.5s ease-in-out infinite;
}
.wa-fab a:hover { transform: scale(1.1); }
.wa-fab svg { width: 26px; height: 26px; fill: white; }
@keyframes waPulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(37,211,102,0.4); }
  50% { box-shadow: 0 4px 30px rgba(37,211,102,0.6), 0 0 0 8px rgba(37,211,102,0.08); }
}

/* Scroll to top */
.scroll-top-btn {
  position: fixed; bottom: 200px; right: 30px; z-index: 7999;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--primary); border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow); opacity: 0; pointer-events: none;
  transition: all 0.3s; color: white;
}
.scroll-top-btn.show { opacity: 1; pointer-events: all; }
.scroll-top-btn:hover { background: var(--primary-lt); transform: translateY(-2px); }
.scroll-top-btn svg { width: 16px; height: 16px; stroke: white; fill: none; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .categories-grid { grid-template-columns: repeat(3, 1fr); }
  .locations-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

@media (max-width: 768px) {
  .header-top, .header-nav, .header-phone { display: none; }
  .hamburger { display: flex; }
  .hero { height: 75vh; }
  .hero-content { padding-bottom: 120px; }
  .hero-search-inner { flex-wrap: wrap; }
  .hs-fields { flex-wrap: wrap; }
  .hs-field { min-width: calc(50% - 1px); border-bottom: 1px solid var(--border); }
  .hs-search-btn { width: 100%; min-height: 52px; flex-direction: row; gap: 8px; }
  .stats-inner { flex-wrap: wrap; }
  .stat-item { flex: 1 1 calc(50% - 1px); border-right: none; border-bottom: 1px solid var(--border); }
  .testi-grid { grid-template-columns: 1fr; }
  .locations-grid { grid-template-columns: 1fr; }
  .categories-grid { grid-template-columns: repeat(3, 1fr); }
  .lead-bar-inner { flex-direction: column; align-items: flex-start; gap: 1.5rem; }
  .lead-bar-form { width: 100%; }
  .lb-field { min-width: calc(50% - 0.375rem); }
  .footer-grid { grid-template-columns: 1fr; gap: 1.75rem; }
  .sec-pad { padding: 56px 0; }
}

@media (max-width: 480px) {
  .wrap { padding: 0 16px; }
  .categories-grid { grid-template-columns: repeat(2, 1fr); }
  .slider-track .pcard { min-width: 230px; }
  .lb-field { min-width: 100%; }
  .hero-btns { flex-direction: column; align-items: flex-start; }
  .hero-dots { bottom: 160px; }
}

/* ===== DESKTOP NAVIGATION ===== */
.desktop-nav {
  display: flex !important;
  gap: 1.5rem !important;
  align-items: center;
}

@media (max-width: 1024px) {
  .desktop-nav { display: none !important; }
}

.dnav-item {
  position: relative;
  display: flex;
  align-items: center;
  height: 100%;
}

.dnav-link {
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text);
  text-decoration: none;
  padding: 10px 0;
  cursor: pointer;
  transition: color var(--ease) var(--t);
  display: flex;
  align-items: center;
  gap: 4px;
}

.dnav-link:hover {
  color: var(--primary);
}

.dnav-link .chev {
  width: 10px;
  height: 6px;
  stroke: currentColor;
  transition: transform var(--t) var(--ease);
}

.dnav-item:hover .chev {
  transform: rotate(180deg);
}

/* Dropdown styling - Pioneer Style (clean white box) */
.desktop-nav .dropdown {
  position: absolute;
  top: 100%;
  left: -15px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 4px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.08);
  min-width: 220px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all var(--t) var(--ease);
  z-index: 100;
  padding: 10px 0;
  display: flex;
  flex-direction: column;
}

/* Show dropdown on hover */
.dnav-item:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.desktop-nav .ditem {
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  padding: 10px 20px;
  transition: all 0.2s ease;
  display: block;
}

.desktop-nav .ditem:hover {
  background: var(--bg2);
  color: var(--primary);
  padding-left: 24px;
}

/* Triangle pointer for dropdown */
.desktop-nav .dropdown::before {
  content: '';
  position: absolute;
  top: -6px;
  left: 25px;
  width: 12px;
  height: 12px;
  background: var(--white);
  border-left: 1px solid var(--border);
  border-top: 1px solid var(--border);
  transform: rotate(45deg);
}

/* Alternate section backgrounds (legacy naming support) */
.bg-cream { background: var(--bg2); }
.bg-dark { background: var(--text); color: var(--white); }

/* Override global heading weights to match Pioneer's elegant thin style */
h1, h2, h3 {
  font-weight: 400 !important;
  letter-spacing: -0.01em;
}

h4, h5, h6 {
  font-weight: 500 !important;
}

/* Ensure italic emphasis maintains the sleek look */
h1 em, h2 em, h3 em {
  font-style: italic;
  font-weight: 400;
  color: var(--text2);
}

/* Properties listing page grid */
.prop-page-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem;
}
@media (max-width: 900px) { .prop-page-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .prop-page-grid { grid-template-columns: 1fr; } }

/* ============================================================
   PREMIUM FILTER BUTTONS — Properties Page
   ============================================================ */
.prop-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
  margin-bottom: 2.5rem;
  padding: 1.25rem 1.5rem;
  background: #f7f7f5;
  border-radius: 12px;
  border: 1px solid #e8e8e4;
}
.pf-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 18px;
  border: 1.5px solid #ddd;
  border-radius: 50px;
  background: #fff;
  color: #444;
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.pf-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: #fff5f5;
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(124,29,29,0.10);
}
.pf-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  box-shadow: 0 3px 12px rgba(124,29,29,0.25);
}
.pf-btn.active:hover { transform: none; }
.pf-icon { font-size: 1rem; line-height: 1; }
.pf-label { letter-spacing: 0.01em; }

/* ============================================================
   PROPERTY DETAILS PAGE (Pioneer Layout)
   ============================================================ */
.pd-hero-container {
  width: 100%; height: 60vh; min-height: 400px;
  position: relative; overflow: hidden; background: #000;
}
.pd-hero-slider { width: 100%; height: 100%; }
.pd-hero-image {
  width: 100%; height: 100%; object-fit: cover; opacity: 0.75;
}
.pd-hero-overlay {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 100%);
  padding: 60px 0 30px;
}
.pd-hero-overlay .pd-title {
  font-size: 2.5rem; color: #fff; margin-bottom: 8px; font-weight: 700;
}
.pd-hero-overlay .pd-loc {
  font-size: 1.1rem; color: #ddd; display: flex; align-items: center; gap: 8px;
}

.pd-layout {
  display: flex; gap: 40px; align-items: flex-start;
}
.pd-main { flex: 1; min-width: 0; }
.pd-sidebar { width: 350px; flex-shrink: 0; }

.pd-tab-btn {
  background: none; border: none; padding: 15px 25px;
  font-size: 1.05rem; font-weight: 600; color: #666; cursor: pointer;
  border-bottom: 3px solid transparent; transition: all 0.3s;
  white-space: nowrap;
}
.pd-tab-btn:hover { color: #111; }
.pd-tab-btn.active {
  color: #1a365d; border-bottom-color: #1a365d;
}

.pd-section {
  background: #fff; padding: 30px; border-radius: 8px;
  margin-bottom: 30px; box-shadow: 0 2px 15px rgba(0,0,0,0.03);
}
.pd-sec-title {
  font-size: 1.6rem; color: #111; margin-bottom: 20px;
  border-bottom: 1px solid #eaeaea; padding-bottom: 15px;
}

.pd-specs-item {
  display: flex; flex-direction: column; gap: 5px;
}
.pd-specs-label { font-size: 0.85rem; color: #777; font-weight: 500; }
.pd-specs-val { font-size: 1rem; color: #111; font-weight: 700; }

@media (max-width: 900px) {
  .pd-layout { flex-direction: column; }
  .pd-sidebar { width: 100%; position: static !important; }
  .pd-hero-container { height: 40vh; min-height: 250px; }
  .pd-hero-overlay { display: none; } /* Hide overlay title on mobile, show embedded title instead */
  .pd-header-mobile-only { display: block; }
}


  /* Pioneer Filter Bar */
  .pioneer-filter-bar {
    display: flex;
    flex-wrap: wrap;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 4px;
    box-shadow: var(--shadow-sm);
  }
  .pf-group {
    flex: 1;
    min-width: 150px;
    padding: 1rem 1.5rem;
    border-right: 1px solid var(--border);
    display: flex;
    align-items: center;
    position: relative;
    cursor: pointer;
  }
  .pf-group:last-child {
    border-right: none;
  }
  .pf-icon {
    color: #cc0000;
    margin-right: 10px;
    font-size: 1.1rem;
  }
  .pf-select {
    width: 100%;
    border: none;
    outline: none;
    background: transparent;
    font-family: var(--sans);
    color: var(--text2);
    font-size: 0.95rem;
    cursor: pointer;
    appearance: none;
    padding-right: 20px;
  }
  .pf-caret {
    color: #cc0000;
    position: absolute;
    right: 15px;
    pointer-events: none;
    font-size: 0.8rem;
  }
  .pf-submit {
    flex: 0 0 60px;
    background: #fff;
    border: none;
    border-left: 1px solid var(--border);
    color: #cc0000;
    font-size: 1.2rem;
    cursor: pointer;
    transition: 0.2s;
  }
  .pf-submit:hover {
    background: #fdf2f2;
  }
  @media (max-width: 800px) {
    .pf-group { min-width: 50%; border-bottom: 1px solid var(--border); }
    .pf-group:nth-child(even) { border-right: none; }
    .pf-submit { min-width: 100%; border-left: none; padding: 15px; }
  }

/* ============================================================
   OUR PARTNERS & CLIENTS (PIONEER STYLE)
   ============================================================ */
.logo-sec { padding: 2rem 0; background: #fff; }
.logo-sec.bg-light { background: #f8f9fb; }

.logo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.logo-card {
  background: #fff;
  border: 1px solid #eeeeee;
  border-radius: 4px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem;
  transition: all 0.3s var(--ease);
  box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}

.logo-card:hover {
  border-color: #004b87;
  box-shadow: 0 4px 12px rgba(0,75,135,0.06);
  transform: translateY(-2px);
}

.logo-card img, .logo-card svg {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* Client logos specific - more rounded like Pioneer */
.client-grid {
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 0.75rem;
}

.client-card {
  height: 55px;
  border-radius: 50px; /* Pill shape like Pioneer */
  background: #ffffff; /* Solid white background for clear visibility */
  border: 1px solid #eaeaea;
  box-shadow: 0 3px 8px rgba(0,0,0,0.03);
  padding: 8px 15px; /* Creates inner 'cropping' space */
}

.client-card:hover {
  background: #fff;
  border-color: #004b87;
}

@media (max-width: 768px) {
  .logo-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 0.75rem; }
  .client-grid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
}

/* ============================================================
   NICE GENIE CHATBOT
   ============================================================ */

.cg-trigger {
  position: fixed;
  bottom: 25px;
  right: 25px;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}

.cg-tooltip {
  background: white;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #333;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  position: relative;
  white-space: nowrap;
}
.cg-tooltip::after {
  content: '';
  position: absolute;
  top: 50%;
  right: -6px;
  transform: translateY(-50%);
  border-width: 6px 0 6px 6px;
  border-style: solid;
  border-color: transparent transparent transparent white;
}

.cg-icon {
  width: 52px;
  height: 52px;
  background: #004b87;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.cg-trigger {
  position: fixed;
  bottom: 90px;
  right: 10px;
  z-index: 10001;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
}

.cg-trigger.show {
  opacity: 1;
  pointer-events: all;
}

.cg-trigger.show .cg-icon {
  animation: cgPopIn 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes cgPopIn {
  from { opacity: 0; transform: scale(0.5) translateY(20px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.cg-trigger:hover .cg-icon { background: #003366; transform: scale(1.05); }

/* CHAT WINDOW */
.cg-window {
  position: fixed;
  bottom: 110px;
  right: 15px;
  width: 300px;
  height: 380px;
  max-width: calc(100vw - 20px);
  max-height: calc(100vh - 170px);
  background: #f7f7f7;
  border-radius: 14px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.18);
  z-index: 10001;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px) scale(0.95);
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  transform-origin: bottom right;
}

.cg-window.open {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0) scale(1);
}

/* HEADER */
.cg-header {
  background: #004b87;
  color: white;
  padding: 12px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-radius: 18px 18px 0 0;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  z-index: 2;
}
.cg-header-title { 
  font-weight: 600; 
  font-size: 1.05rem; 
  display: flex; 
  align-items: center; 
  gap: 10px; 
}
.cg-header-avatar {
  width: 38px;
  height: 38px;
  background: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #004b87;
  font-weight: 800;
  font-size: 1.2rem;
  position: relative;
}
.cg-header-avatar::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 10px;
  height: 10px;
  background: #25D366; /* Online indicator */
  border: 2px solid #004b87;
  border-radius: 50%;
}
.cg-header-title-text {
  display: flex; 
  flex-direction: column;
}
.cg-header-title-sub {
  font-size: 0.7rem;
  font-weight: 400;
  opacity: 0.9;
}
.cg-header-actions { display: flex; gap: 10px; }
.cg-header-actions button {
  background: transparent;
  color: white;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s;
}
.cg-header-actions button:hover { opacity: 0.7; }

/* BODY */
.cg-body {
  flex: 1;
  padding: 16px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cg-body::-webkit-scrollbar { width: 5px; }
.cg-body::-webkit-scrollbar-thumb { background: #ccc; border-radius: 5px; }

/* CHAT BUBBLES */
.cg-msg {
  display: flex;
  margin-bottom: 6px;
  animation: fadeIn 0.3s ease;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
.cg-msg.bot { justify-content: flex-start; }
.cg-msg.user { justify-content: flex-end; }
.cg-bubble {
  max-width: 85%;
  padding: 10px 14px;
  font-size: 0.95rem;
  line-height: 1.4;
  box-shadow: 0 1px 2px rgba(0,0,0,0.1);
  position: relative;
}
.cg-msg.bot .cg-bubble {
  background: #ffffff;
  color: #303030;
  border-radius: 0 14px 14px 14px;
  border-top-left-radius: 0;
}
.cg-msg.user .cg-bubble {
  background: #e1ffd4; /* WhatsApp user color */
  color: #303030;
  border-radius: 14px 0 14px 14px;
}
.cg-opts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
  margin-left: 0;
  max-width: 90%;
}
.cg-opt-btn {
  padding: 8px 16px;
  border: 1px solid #004b87;
  background: transparent;
  color: #004b87;
  border-radius: 20px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s;
  background: white;
}
.cg-opt-btn:hover {
  background: #004b87;
  color: white;
}

/* FOOTER INPUT */
.cg-footer {
  padding: 12px 16px;
  background: white;
  border-top: 1px solid #eee;
  display: flex;
  align-items: center;
  gap: 10px;
}
#cg-input {
  flex: 1;
  background: #f1f3f4;
  border: none;
  border-radius: 20px;
  padding: 12px 16px;
  font-size: 0.9rem;
  outline: none;
  font-family: inherit;
  transition: background 0.2s;
}
#cg-input:focus { background: #e8eaed; }
#cg-send {
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: rotate(0deg);
  transition: transform 0.2s;
  flex-shrink: 0;
}
#cg-send:hover {
  transform: translateX(3px);
}
#cg-send svg { fill: #111; }

/* ===== BOTTOM CONTACT BAR ===== */
.bottom-contact-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: #f5ede0;
  border-top: 2px solid #c8a96e;
  padding: 0;
  box-shadow: 0 -4px 18px rgba(0,0,0,0.12);
  z-index: 9800;
  box-sizing: border-box;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.bottom-contact-bar.show {
  transform: translateY(0);
}

.bcb-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 6px 80px 6px 20px; /* right padding for the chatbot button */
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
}

.bcb-title {
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 4px;
  color: #333;
  align-self: flex-start;
}

.bcb-form {
  display: flex;
  gap: 8px;
  width: 100%;
  margin-bottom: 4px;
}

.bcb-form input {
  flex: 1;
  padding: 7px 10px;
  border: 1px solid #b0a080;
  border-radius: 2px;
  font-size: 0.82rem;
  background: #fff;
  outline: none;
  min-width: 0;
}
.bcb-form input:focus {
  border-color: #004b87;
}

.bcb-form button {
  background: #111;
  color: #fff;
  border: none;
  padding: 7px 28px;
  font-weight: 700;
  font-size: 0.85rem;
  border-radius: 2px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s;
}
.bcb-form button:hover {
  background: #333;
}

.bcb-terms {
  font-size: 0.65rem;
  color: #666;
  display: flex;
  align-items: flex-start;
  gap: 5px;
  align-self: flex-start;
  line-height: 1.4;
}

.bcb-terms input { margin-top: 2px; flex-shrink: 0; }

.bcb-terms a {
  color: #004b87;
  text-decoration: underline;
}

/* Chatbot trigger sits at right edge of the bar */
.cg-trigger {
  position: fixed;
  bottom: 30px;
  right: 15px;
  z-index: 10001;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.cg-trigger.show {
  opacity: 1;
  pointer-events: all;
}

.cg-trigger.show .cg-icon {
  animation: cgPopIn 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes cgPopIn {
  from { opacity: 0; transform: scale(0.5) translateY(20px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.cg-trigger:hover .cg-icon { transform: scale(1.05); }

.cg-icon {
  width: 64px;
  height: 64px;
  background: #004b87;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: transform 0.3s;
}

.cg-tooltip {
  background: white;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #333;
  box-shadow: 0 3px 8px rgba(0,0,0,0.1);
  white-space: nowrap;
}

/* CHAT WINDOW */
.cg-window {
  position: fixed;
  bottom: 80px;
  right: 10px;
  width: 300px;
  height: 380px;
  max-width: calc(100vw - 20px);
  max-height: calc(100vh - 100px);
  background: #f7f7f7;
  border-radius: 14px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.18);
  z-index: 10001;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px) scale(0.95);
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  transform-origin: bottom right;
}

.cg-window.open {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0) scale(1);
}

@media (max-width: 768px) {
  .bcb-inner { padding: 6px 70px 6px 10px; }
  .bcb-form { flex-wrap: wrap; }
  .bcb-form input { min-width: calc(50% - 4px); flex: 1 1 calc(50% - 4px); }
  .bcb-title { font-size: 0.8rem; }
  .bcb-form button { width: 100%; padding: 7px 10px; }
}


/* ========================================================
   COMPREHENSIVE MOBILE RESPONSIVE CSS — Nice Property
   ======================================================== */

/* Base mobile fixes */
@media (max-width: 768px) {

  /* ---- Utilities ---- */
  .wrap { padding: 0 16px; }
  .sec-pad { padding: 48px 0; }
  .sec-title { font-size: 1.5rem; }

  /* ---- Header ---- */
  .site-header { padding: 0; }
  .desktop-nav { display: none !important; }
  .header-phone span { display: none; }
  .header-phone svg { display: block; }

  /* ---- Hero ---- */
  .hero { height: 70vw; min-height: 280px; max-height: 420px; }
  .hero-content { padding: 16px; }
  .hero-text-box h1 { font-size: 1.3rem; line-height: 1.3; }
  .hero-text-box p { font-size: 0.85rem; }
  .hero-search-bar { 
    flex-direction: column; 
    gap: 8px; 
    padding: 12px;
    margin-top: 10px;
  }
  .hero-search-bar select,
  .hero-search-bar .search-field { 
    width: 100%; 
    min-width: unset;
    font-size: 0.85rem;
  }
  .hero-search-bar button { width: 100%; padding: 10px; }
  .hero-search-filters { flex-wrap: wrap; gap: 6px; }
  .google-rating { font-size: 0.75rem; padding: 5px 10px; bottom: 8px; right: 8px; }

  /* ---- Sections ---- */
  .section-header { flex-direction: column; align-items: flex-start; gap: 8px; }
  
  /* ---- Property Grid ---- */
  .prop-grid, .properties-grid { 
    grid-template-columns: 1fr !important; 
    gap: 16px;
  }
  .prop-card { border-radius: 10px; }
  .prop-card-img { height: 200px; }
  .prop-card-body { padding: 14px; }
  
  /* ---- Stats / Counters ---- */
  .stats-grid { 
    grid-template-columns: 1fr 1fr !important;
    gap: 12px;
  }
  .stat-item { padding: 16px 12px; }
  .stat-number { font-size: 1.8rem; }

  /* ---- Category Cards ---- */
  .cat-grid, .category-grid { 
    grid-template-columns: 1fr 1fr !important; 
    gap: 10px;
  }
  .cat-card { border-radius: 8px; }
  .cat-card-img { height: 120px; }

  /* ---- Logo Slider / Developer Logos ---- */
  .logos-track { gap: 20px; }
  .logo-item img { max-height: 40px; max-width: 100px; }

  /* ---- Service Inner Pages ---- */
  .page-hero { padding: 60px 16px 30px; }
  .page-hero h1 { font-size: 1.6rem; }
  .inner-grid { grid-template-columns: 1fr !important; }
  .service-features { grid-template-columns: 1fr !important; }
  
  /* ---- Contact Page ---- */
  .contact-grid { grid-template-columns: 1fr !important; gap: 20px; }
  .contact-form input, 
  .contact-form textarea, 
  .contact-form select { font-size: 16px; } /* Prevents zoom on iOS */

  /* ---- About / Team ---- */
  .team-grid { grid-template-columns: 1fr 1fr !important; gap: 16px; }
  .about-grid { grid-template-columns: 1fr !important; gap: 24px; }

  /* ---- Footer ---- */
  .footer-grid { 
    grid-template-columns: 1fr 1fr !important; 
    gap: 24px;
  }
  .footer-col:first-child { grid-column: 1 / -1; }
  .footer-bottom { 
    flex-direction: column; 
    gap: 10px; 
    text-align: center;
    padding: 16px;
  }
  .footer-copy, .footer-links { font-size: 0.75rem; }

  /* ---- Mobile Nav Panel Improvements ---- */
  .mobile-nav-panel { width: 280px !important; max-width: 85vw; }
  .mobile-nav-links a { 
    font-size: 1rem;
    padding: 12px 20px;
    border-bottom: 1px solid #f0f0f0;
    display: block;
  }
  .mobile-nav-links a:hover { background: #f5f5f5; }

  /* ---- Chatbot — compact on mobile ---- */
  .cg-window {
    width: calc(100vw - 40px) !important;
    height: 55vh !important;
    max-height: 420px !important;
    bottom: 90px !important;
    right: 12px !important;
    border-radius: 12px !important;
  }
  .cg-trigger {
    bottom: 160px !important;
    right: 12px !important;
  }
  .cg-icon { width: 60px !important; height: 60px !important; }
  .cg-tooltip { font-size: 0.72rem !important; padding: 3px 8px !important; }

  /* ---- Bottom Contact Bar — mobile ---- */
  .bottom-contact-bar { padding: 0; }
  .bcb-inner { padding: 8px 60px 8px 10px; }
  .bcb-title { font-size: 0.78rem; }
  .bcb-form { 
    flex-direction: column; 
    gap: 6px;
    margin-bottom: 4px;
  }
  .bcb-form input { width: 100%; padding: 6px 8px; font-size: 0.8rem; }
  .bcb-form button { 
    width: 100%; 
    padding: 8px;
    font-size: 0.85rem;
  }
  .bcb-terms { font-size: 0.6rem; }

  /* ---- Property Details ---- */
  .prop-details-grid { grid-template-columns: 1fr !important; gap: 20px; }
  .prop-details-main { padding: 0; }
  .prop-enquiry-box { 
    position: static !important;
    margin-top: 20px;
    width: 100% !important;
  }
  .prop-gallery { grid-template-columns: 1fr 1fr !important; }
  .amenities-grid { grid-template-columns: 1fr 1fr !important; }

  /* ---- Scroll to top ---- */
  .scroll-top-btn { 
    width: 36px; height: 36px; 
    bottom: 110px !important; right: 20px;
    display: flex !important;
  }

  /* ---- Generic two column → one column ---- */
  [style*="grid-template-columns: 1fr 1fr"],
  [style*="display: grid"] { 
    grid-template-columns: 1fr !important; 
  }

  /* ---- Overflow prevention ---- */
  section, div { max-width: 100vw; }
  table { display: block; overflow-x: auto; }
  pre { overflow-x: auto; }
}

/* Extra small phones */
@media (max-width: 400px) {
  .hero-text-box h1 { font-size: 1.1rem; }
  .section-title, .sec-title { font-size: 1.3rem; }
  .cat-grid, .category-grid { grid-template-columns: 1fr !important; }
  .team-grid { grid-template-columns: 1fr !important; }
  .footer-grid { grid-template-columns: 1fr !important; }
}


/* ===== FILTER PANEL ===== */
.header-filter-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  color: #333;
  border-radius: 50%;
  transition: background 0.2s;
}
.header-filter-btn:hover { background: #f0f0f0; }

@media (max-width: 768px) {
  .header-filter-btn { display: flex; align-items: center; justify-content: center; }
}

.filter-panel-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 10500;
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s;
}
.filter-panel-overlay.open { opacity: 1; pointer-events: all; }

.filter-panel {
  position: fixed;
  top: 0; right: 0;
  width: 320px;
  max-width: 90vw;
  height: 100vh;
  background: #fff;
  z-index: 10501;
  display: flex !important;
  flex-direction: column;
  box-shadow: -10px 0 30px rgba(0,0,0,0.3);
  transform: translateX(100%) !important;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
  visibility: hidden;
  pointer-events: none;
}
.filter-panel.open { 
  transform: translateX(0) !important; 
  visibility: visible;
  pointer-events: all;
}

.fpanel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  border-bottom: 1px solid #eee;
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 2;
}
.fpanel-header h3 { font-size: 1.1rem; font-weight: 700; color: #004b87; margin: 0; }
.fpanel-header button {
  background: none; border: none; font-size: 1.2rem;
  cursor: pointer; color: #666; padding: 4px 8px; border-radius: 4px;
}
.fpanel-header button:hover { background: #f0f0f0; }

.fpanel-body { padding: 20px; flex: 1; }

.fp-group { margin-bottom: 20px; }
.fp-group label {
  display: block; font-size: 0.78rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: #333; margin-bottom: 8px;
}
.fp-group select {
  width: 100%; padding: 10px 14px;
  border: 1.5px solid #ddd; border-radius: 6px;
  font-size: 0.9rem; background: #fff; outline: none;
  transition: border-color 0.2s;
}
.fp-group select:focus { border-color: #004b87; }

.fp-radio-group { display: flex; gap: 16px; }
.fp-radio-group label {
  font-size: 0.9rem; font-weight: 500; text-transform: none;
  letter-spacing: 0; cursor: pointer; display: flex; align-items: center; gap: 6px;
}

.fp-search-btn {
  width: 100%; padding: 13px;
  background: #004b87; color: #fff;
  border: none; border-radius: 8px;
  font-size: 0.95rem; font-weight: 700;
  cursor: pointer; display: flex;
  align-items: center; justify-content: center;
  gap: 8px; transition: background 0.2s;
  margin-top: 10px;
}
.fp-search-btn:hover { background: #003366; }

/* ===== PREMIUM MOBILE UPGRADE ===== */
:root {
  --p-blue: #004b87;
  --p-gold: #c8a96e;
  --p-bg: #f5ede0;
}

/* Header Action Icons */
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px !important;
}

@media (max-width: 768px) {
  .header-filter-btn, .hamburger {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    width: 42px;
    height: 42px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    border-radius: 10px !important;
    color: #1e293b !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0 !important;
  }
}
.header-filter-btn { display: none; }
.hamburger { display: none; }

.header-filter-btn:active, .hamburger:active {
  transform: scale(0.92);
  background: #f1f5f9 !important;
}

/* Improved Mobile Nav Drawer */
.mobile-nav-panel {
  width: 330px !important;
  max-width: 90vw;
  display: flex;
  flex-direction: column;
  background: #fff !important;
  box-shadow: -10px 0 30px rgba(0,0,0,0.15) !important;
}

.mnp-header {
  padding: 20px 24px !important;
  border-bottom: 1px solid #f1f5f9;
  background: #fff;
  display: flex !important;
  justify-content: space-between;
  align-items: center;
}

.mobile-nav-close {
  background: #f1f5f9;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  cursor: pointer;
}

.mobile-nav-links {
  padding: 0 !important;
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.mnl-section {
  padding: 24px;
}

.mnl-section.grey-bg {
  background: #f8fafc;
  border-top: 1px solid #f1f5f9;
  border-bottom: 1px solid #f1f5f9;
}

.mnl-sec-title {
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #94a3b8;
  margin-bottom: 16px;
}

.mnl-grid-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.mnl-box {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: all 0.2s;
}

.mnl-box:hover {
  border-color: var(--p-blue);
  background: #f0f7ff;
}

.mnl-icon { font-size: 1.4rem; }
.mnl-text { font-size: 0.82rem; font-weight: 600; color: #1e293b; }

.mnl-list-item {
  display: block;
  padding: 12px 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: #334155;
  border-bottom: 1px solid #f1f5f9;
  text-decoration: none;
}
.mnl-list-item:last-child { border-bottom: none; }

.mnl-footer-cta {
  padding: 24px;
  background: #fff;
  border-top: 1px solid #f1f5f9;
}

.mnl-btn-primary {
  display: block;
  width: 100%;
  background: var(--p-blue);
  color: #fff;
  text-align: center;
  padding: 14px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 16px;
}

.mnl-social-row {
  display: flex;
  gap: 10px;
}

.mnl-btn-outline {
  flex: 1;
  text-align: center;
  padding: 10px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #475569;
}

.mnl-btn-outline.whatsapp {
  border-color: #25d366;
  color: #059669;
  background: #ecfdf5;
}

/* Filter Panel Polish */
.filter-panel {
  /* Panel specificity fix */
}
.fpanel-header {
  background: var(--p-bg) !important;
  padding: 20px !important;
}
.fp-group select {
  height: 48px;
  border-radius: 8px;
  background-color: #f8fafc;
}



/* Pioneer Style Mobile Nav CSS Overrides */
.mobile-nav-panel {
  background-color: #ededed !important; 
  width: 75vw !important;
  max-width: 260px !important;
  left: auto !important;
  right: -100% !important;
  transition: right 0.3s ease !important;
  transform: none !important;
  box-shadow: -2px 0 10px rgba(0,0,0,0.1) !important;
}

.mobile-nav.open .mobile-nav-panel {
  right: 0 !important;
}

.mnp-header {
  background-color: #ededed !important;
  border-bottom: none !important;
  padding: 8px 15px !important;
}

.mnp-logo {
  flex-grow: 1;
}

.mobile-nav-links {
  padding: 0 !important;
  margin: 0 !important;
  display: block !important;
}

.mnl-item {
  display: block !important;
  padding: 8px 15px !important;
  font-size: 14px !important;
  color: #000 !important;
  background: transparent !important;
  border-bottom: 1px solid #ddd !important;
  text-decoration: none !important;
  margin: 0 !important;
  border-radius: 0 !important;
  font-weight: 300 !important; 
}

.mnl-item:last-child {
  border-bottom: 1px solid #ddd !important;
}

.mnl-item:hover {
  background: rgba(0,0,0,0.05) !important;
  color: #000 !important;
}

.mnl-section, .mnl-footer-cta {
  display: none !important;
}

/* Modal Style for Filter Panel */
.filter-panel {
  position: fixed !important;
  top: 50% !important; 
  left: 50% !important;
  right: auto !important;
  bottom: auto !important;
  width: 75vw !important;
  max-width: 260px !important;
  height: auto !important;
  max-height: 90vh !important;
  border-radius: 8px !important;
  background: #fff !important;
  z-index: 10501 !important;
  box-shadow: 0 10px 40px rgba(0,0,0,0.3) !important;
  transform: translate(-50%, -50%) scale(0.95) !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transition: all 0.3s ease !important;
}

.filter-panel.open { 
  transform: translate(-50%, -50%) scale(1) !important; 
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: all !important;
}

.fpanel-header {
  background: #fff !important;
  border-bottom: 1px solid #eee !important;
}

.fpanel-body {
  padding: 20px !important;
}

.fp-group label {
  color: #000 !important;
  font-weight: normal !important;
  font-size: 14px !important;
  text-transform: none !important;
  letter-spacing: normal !important;
  margin-bottom: 5px !important;
}

.fp-group select {\n  height: 34px !important;
  border: 1px solid #ccc !important;
  background: #fff !important;
  border-radius: 4px !important;
  font-size: 16px !important;
}


/* Testimonial Mobile Fix */
@media (max-width: 768px) {
  .testi-mobile-fix {
    padding: 1.5rem 1.2rem !important;
    min-height: auto !important;
  }
  .review-slide p {
    font-size: 0.95rem !important;
    line-height: 1.6 !important;
    margin-bottom: 1.2rem !important;
  }
  .review-slide hr {
    margin-bottom: 1rem !important;
  }
  .review-slide > div:first-child {
    margin-bottom: 0.5rem !important;
  }
  .review-slide > div:first-child > div:first-child {
    font-size: 3rem !important;
    height: 1.5rem !important;
  }
  #testimonials .wrap > button {
    display: none !important; /* Hide arrows on mobile to save space, or make them smaller */
  }
}
\n
/* Get In Touch Mobile Fixes */
@media (max-width: 768px) {
  .get-in-touch-sec {
    padding: 2rem 0 !important;
  }
  .get-in-touch-sec .wrap > div {
    grid-template-columns: 1fr !important;
  }
  .get-in-touch-sec .wrap > div > div {
    padding: 1.5rem !important;
  }
  #contact-form-inline > div:first-of-type {
    grid-template-columns: 1fr !important;
  }
  #contact-form-inline > div:nth-of-type(2) {
    flex-wrap: wrap !important;
  }
  #contact-form-inline > div:nth-of-type(2) input {
    flex: 1 1 100% !important;
  }
  #contact-form-inline > div:nth-of-type(2) button {
    flex: 1 1 100% !important;
    padding: 14px 20px !important;
    border-radius: 6px !important;
  }
  #contact-form-inline label {
    align-items: flex-start !important;
  }
}
\n
/* Get In Touch Safe Grid */
.git-safe-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr;
  background: #fff;
  box-shadow: 0 10px 40px rgba(0,0,0,0.06);
  border-radius: 4px;
  overflow: hidden;
}
.git-safe-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}
.git-safe-flex {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  align-items: stretch;
}

@media (max-width: 768px) {
  .git-safe-grid {
    grid-template-columns: 1fr !important;
  }
  .git-safe-row {
    grid-template-columns: 1fr !important;
  }
  .git-safe-flex {
    flex-wrap: wrap !important;
  }
  .git-safe-flex input {
    flex: 1 1 100% !important;
  }
  .git-safe-flex button {
    flex: 1 1 100% !important;
    padding: 14px 20px !important;
    width: 100% !important;
    margin-top: -10px;
  }
}
\n
/* Pioneer Collapsible Mobile Bottom Bar */
.bcb-close-btn { display: none; }
@media (max-width: 768px) {
  .bottom-contact-bar { 
    transition: all 0.3s ease; 
    border-radius: 16px 16px 0 0 !important;
  }
  .bottom-contact-bar:not(.bcb-open) .bcb-form,
  .bottom-contact-bar:not(.bcb-open) .bcb-terms {
    display: none !important;
  }
  .bottom-contact-bar:not(.bcb-open) .bcb-title {
    margin-bottom: 0 !important;
    padding: 10px 0 !important;
    cursor: pointer;
    text-align: center;
    width: 100%;
    color: #4e3612 !important;
    font-size: 1rem !important;
    font-weight: 700 !important;
  }
  .bottom-contact-bar:not(.bcb-open) {
    border-top: none !important;
    box-shadow: 0 -4px 15px rgba(0,0,0,0.15) !important;
  }
  .bottom-contact-bar:not(.bcb-open) .bcb-inner {
    padding: 0 !important;
  }
  
  /* When Open */
  .bottom-contact-bar.bcb-open {
    padding-bottom: 20px !important;
  }
  .bottom-contact-bar.bcb-open .bcb-title {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100% !important;
    margin-bottom: 15px !important;
    padding: 15px 0 10px 0 !important;
    border-bottom: 1px solid rgba(0,0,0,0.1) !important;
    font-size: 1.1rem !important;
  }
  .bottom-contact-bar.bcb-open .bcb-close-btn {
    display: block !important;
    font-size: 24px;
    color: #333;
    background: #e9e0d1;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    line-height: 32px;
    text-align: center;
    cursor: pointer;
  }
  
  /* Form inner when open */
  .bottom-contact-bar.bcb-open .bcb-form {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
  }
  .bottom-contact-bar.bcb-open .bcb-form input {
    flex: 1 1 100% !important;
    width: 100% !important;
    margin-bottom: 0 !important;
    box-sizing: border-box;
  }
  .bottom-contact-bar.bcb-open .bcb-form button {
    flex: 1 1 100% !important;
    width: 100% !important;
    margin-top: 4px !important;
    padding: 14px !important;
  }
}

/* ===== HERO MOBILE OVERRIDE (Pioneer Style) ===== */
@media (max-width: 768px) {
  .hero {
    height: 100vw !important;
    max-height: none !important;
    min-height: none !important;
  }
  .hero-bg {
    background-position: right top !important;
  }
  .hero-dots {
    bottom: 14px !important;
    z-index: 5;
  }
}

/* ============================================================
   PARTNER / CLIENT LOGO SECTIONS
   ============================================================ */
.logo-sec {
  padding: 4.5rem 0;
  background: var(--white);
}
.logo-sec.bg-light {
  background: var(--bg);
}
.logo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-top: 2.5rem;
}
.logo-card {
  background: white;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 90px;
  transition: all 0.3s var(--ease);
}
.logo-card:hover {
  border-color: rgba(0,75,135,0.2);
  box-shadow: 0 6px 20px rgba(0,0,0,0.06);
  transform: translateY(-3px);
}
.logo-card img {
  max-width: 100%;
  max-height: 50px;
  object-fit: contain;
  filter: grayscale(30%);
  opacity: 0.85;
  transition: all 0.3s ease;
}
.logo-card:hover img {
  filter: grayscale(0%);
  opacity: 1;
  transform: scale(1.05);
}
.logo-grid.client-grid {
  grid-template-columns: repeat(6, 1fr);
  gap: 1rem;
}
.logo-card.client-card {
  padding: 1.25rem 1rem;
  min-height: 70px;
  border-radius: 10px;
}
.logo-card.client-card img {
  max-height: 36px;
  transform: none !important;
}
@media (max-width: 1024px) {
  .logo-grid { grid-template-columns: repeat(3, 1fr); }
  .logo-grid.client-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 640px) {
  .logo-grid { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
  .logo-grid.client-grid { grid-template-columns: repeat(3, 1fr); gap: 0.75rem; }
  .logo-card { min-height: 70px; padding: 1rem; }
  .logo-card.client-card { min-height: 55px; padding: 0.75rem; }
  .logo-sec { padding: 3rem 0; }
}

/* ============================================================
   POST YOUR PROPERTY SECTION
   ============================================================ */
.post-prop-sec {
  padding: 5rem 0;
  background: linear-gradient(135deg, #f0f7ff 0%, #f8f9fb 50%, #f0f4f8 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.pps-container {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3.5rem;
  align-items: center;
}
.pps-image {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(0,75,135,0.12);
}
.pps-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  min-height: 400px;
}
.pps-image-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: #004b87;
  color: white;
  padding: 8px 18px;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  box-shadow: 0 4px 12px rgba(0,75,135,0.3);
}
.pps-image-badge span {
  background: white;
  color: #004b87;
  padding: 2px 8px;
  border-radius: 20px;
  font-weight: 800;
  font-size: 0.75rem;
  margin-right: 4px;
}
.pps-label {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #004b87;
  margin-bottom: 0.75rem;
  background: rgba(0,75,135,0.06);
  padding: 5px 14px;
  border-radius: 50px;
}
.pps-title {
  font-family: var(--serif);
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  font-weight: 500;
  color: var(--text);
  line-height: 1.25;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}
.pps-title em {
  font-style: italic;
  color: #6b7280;
}
.pps-desc {
  font-size: 0.92rem;
  color: #6b7280;
  line-height: 1.8;
  margin-bottom: 1.75rem;
  max-width: 480px;
}

/* Property Type Mini Cards */
.pps-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
  margin-bottom: 1.75rem;
}
.pps-card {
  background: white;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 1.1rem 0.85rem;
  text-align: center;
  transition: all 0.3s ease;
  cursor: default;
}
.pps-card:hover {
  border-color: #004b87;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0,75,135,0.1);
}
.pps-card-icon {
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
}
.pps-card strong {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 2px;
}
.pps-card span {
  font-size: 0.68rem;
  color: #9ca3af;
  font-weight: 500;
}

/* Benefits Grid */
.pps-benefits {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
  margin-bottom: 2rem;
}
.pps-benefit {
  font-size: 0.82rem;
  font-weight: 600;
  color: #374151;
  padding: 6px 0;
}
.pps-benefit::first-letter {
  color: #00b4b4;
}

/* CTA Buttons */
.pps-cta {
  display: flex;
  gap: 0.85rem;
  align-items: center;
  flex-wrap: wrap;
}
.pps-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #004b87;
  color: white;
  padding: 13px 28px;
  border-radius: 10px;
  font-family: var(--sans);
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  letter-spacing: 0.01em;
  box-shadow: 0 4px 16px rgba(0,75,135,0.25);
}
.pps-btn-primary:hover {
  background: #003866;
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0,75,135,0.35);
}
.pps-btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #004b87;
  padding: 12px 24px;
  border-radius: 10px;
  border: 1.5px solid #004b87;
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}
.pps-btn-outline:hover {
  background: #004b87;
  color: white;
  transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 900px) {
  .pps-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .pps-image img {
    min-height: 250px;
    max-height: 300px;
  }
}
@media (max-width: 600px) {
  .post-prop-sec { padding: 3rem 0; }
  .pps-cards { grid-template-columns: repeat(3, 1fr); gap: 0.5rem; }
  .pps-card { padding: 0.85rem 0.5rem; }
  .pps-card-icon { font-size: 1.3rem; }
  .pps-card strong { font-size: 0.72rem; }
  .pps-card span { font-size: 0.6rem; }
  .pps-benefits { grid-template-columns: 1fr; }
  .pps-btn-primary { width: 100%; justify-content: center; }
  .pps-btn-outline { width: 100%; justify-content: center; }
}

/* ===== PREMIUM ANIMATIONS (REVEAL ON SCROLL) ===== */
.reveal {
  opacity: 0;
  transition: all 0.8s var(--ease);
  will-change: transform, opacity;
}

.reveal-up {
  transform: translateY(30px);
}

.reveal-in {
  transform: scale(0.98);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Stagger Logic for grids */
.stagger-children > * {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s var(--ease);
}

.stagger-children.active > * {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delays (up to 6 items) */
.stagger-children.active > *:nth-child(1) { transition-delay: 0.1s; }
.stagger-children.active > *:nth-child(2) { transition-delay: 0.2s; }
.stagger-children.active > *:nth-child(3) { transition-delay: 0.3s; }
.stagger-children.active > *:nth-child(4) { transition-delay: 0.4s; }
.stagger-children.active > *:nth-child(5) { transition-delay: 0.5s; }
.stagger-children.active > *:nth-child(6) { transition-delay: 0.6s; }

/* Hero Specific Animations */
.hero-content {
  animation: heroFadeUp 1.2s var(--ease) forwards;
}

@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.google-rating {
  animation: floatRating 3s ease-in-out infinite;
}

@keyframes floatRating {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

/* Hover Enhancements */
.pcard:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* CATEGORY BACKGROUNDS */
.cat-new { background-image: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.65)), url("assets/img/cat_new_launches.jpg") !important; }
.cat-trend { background-image: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.65)), url("assets/img/sulakshana_patna_1.jpg") !important; }
.cat-res { background-image: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.65)), url("assets/img/prop_res_royal.jpg") !important; }
.cat-office { background-image: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.65)), url("assets/img/cat_office.jpg") !important; }
.cat-prem { background-image: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.65)), url("assets/img/prop_res_orchid.jpg") !important; }
.cat-bung { background-image: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.65)), url("assets/img/prop_res_gulmohar.jpg") !important; }
.cat-retail { background-image: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.65)), url("assets/img/jdmall_real_1.jpg") !important; }
.cat-ware { background-image: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.65)), url("assets/img/cat_warehouse.jpg") !important; }
.cat-pre { background-image: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.65)), url("assets/img/prop_city.jpg") !important; }
.cat-land { background-image: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.65)), url("assets/img/cat_land.jpg") !important; }

/* ===== CORPORATE HEADQUARTERS SECTION ===== */
.office-hq-sec .hq-header-card {
  position: relative;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.office-hq-sec .hq-header-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 25px 50px rgba(197, 168, 123, 0.25);
}
.hq-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}
.hq-img-box {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  cursor: pointer;
}
.hq-img-box img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.hq-img-box:hover img {
  transform: scale(1.08);
}
.hq-img-box .hq-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2rem 1.5rem 1rem;
  background: linear-gradient(to top, rgba(0,30,60,0.85), transparent);
  color: #fff;
  font-weight: 600;
  font-size: 1.1rem;
  font-family: var(--sans);
  letter-spacing: 0.02em;
  transform: translateY(10px);
  opacity: 0.9;
  transition: all 0.4s ease;
}
.hq-img-box:hover .hq-caption {
  transform: translateY(0);
  opacity: 1;
}

@media (max-width: 768px) {
  .office-hq-sec .hq-header-content {
    padding: 2rem;
  }
  .office-hq-sec .hq-header-content h2 {
    font-size: 2rem !important;
  }
  .office-hq-sec .hq-header-card img { height: 280px !important;
  }
}

/* ===== AESTHETIC UPGRADES FOR HQ SECTION ===== */

/* Override grid to be strictly 2 columns on desktop/tablet */
.hq-gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 2rem;
}

/* Mobile responsive fix for header card (stacked design to prevent text overlap) */
@media (max-width: 768px) {
  /* Restructure the header card to stack on mobile */
  .office-hq-sec .hq-header-card {
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    background: #001932; /* Match the gradient base for seamless transition */
  }
  
  /* Reset absolute positioning for image to stack naturally */
  .office-hq-sec .hq-header-card img { position: relative; height: 240px !important;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
  }
  
  /* Remove gradient overlay covering the image on mobile if it exists */
  /* Removed buggy first-child rule */
  
  /* Stack content below image, not floating over it */
  .office-hq-sec .hq-header-content {
    position: relative !important;
    background: transparent !important;
    padding: 2.5rem 2rem !important;
  }
  
  /* Switch to 1 column for the gallery on very small screens, 2 columns is too squished */
  .hq-gallery-grid {
    grid-template-columns: 1fr !important;
    gap: 1.5rem;
  }
}

/* ===== AUTHENTIC HQ SECTION STYLING ===== */
.office-hq-sec .hq-header-card {
  position: relative;
  background: #001932; /* Deep corporate blue background for text box */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(0,0,0,0.1);
  margin-bottom: 3rem;
  display: flex;
  flex-direction: column; /* By default stack them to guarantee no overlap */
}

/* Image Wrapper */
.hq-mandir-img-wrap {
  width: 100%;
  position: relative;
}

/* Aesthetic Image Enhancements */
.hq-enhanced-img {
  width: 100%;
  object-fit: cover;
  display: block;
  /* CSS Instagram-style filter to enhance original photos */
  /* filter removed because i2i images are naturally perfect */
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.hq-mandir-img-wrap img { height: 280px;
}

/* Text Content Area */
.office-hq-sec .hq-header-content {
  padding: 3rem;
  color: #fff;
  background: #001932;
}

.office-hq-sec .hq-header-content h2 {
  font-family: 'Times New Roman', serif; 
  font-size: 2.5rem; 
  margin-bottom: 1rem; 
  font-weight: 300; 
  letter-spacing: -0.01em;
}

.office-hq-sec .hq-header-content p {
  font-family: var(--sans); 
  font-size: 1.15rem; 
  color: rgba(255,255,255,0.9); 
  max-width: 800px; 
  line-height: 1.6; 
  font-weight: 300; 
  border-left: 4px solid #c5a87b; 
  padding-left: 1.5rem;
}

/* Strict 2-Column Grid for Desktop */
.hq-gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 2rem;
}

.hq-img-box {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.08); /* Stronger shadow to make images pop */
  background: #000; /* Black background behind image to deepen contrast */
}

.hq-img-box img { height: 200px; }

.hq-img-box:hover .hq-enhanced-img {
  transform: scale(1.05);
}

.hq-img-box .hq-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2rem 1.5rem 1rem;
  background: linear-gradient(to top, rgba(0,25,50,0.9), transparent);
  color: #fff;
  font-weight: 600;
  font-size: 1.05rem;
  font-family: var(--sans);
}

/* Desktop/Tablet Override for Header Card Overlay Effect (if room allows) */
@media (min-width: 1024px) {
  .office-hq-sec .hq-header-card {
    flex-direction: column; /* Keep stacked on desktop too, looks much cleaner with large images */
  }
  .hq-mandir-img-wrap img { height: 280px;
  }
}

/* Mobile Strict Overrides */
@media (max-width: 768px) {
  .hq-gallery-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1rem;
    gap: 1.5rem;
  }
  .hq-mandir-img-wrap img {
    height: 300px;
  }
  .office-hq-sec .hq-header-content {
      padding: 2rem;
  }
  .office-hq-sec .hq-header-content h2 {
      font-size: 2rem;
  }
}


@media (max-width: 768px) {
  .hq-gallery-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.8rem;
  }
  .hq-img-box img {
    height: 150px; /* Shorter for mobile 2-col */
  }
  .hq-img-box .hq-caption {
    padding: 1rem 0.5rem 0.5rem;
    font-size: 0.8rem;
    line-height: 1.2;
  }
}

/* ===== GLOBAL SCROLL FIXES ===== */
html, body {
  overflow-x: hidden !important; 
  width: 100% !important;
  position: relative;
  touch-action: pan-y pinch-zoom; /* explicitly allow vertical scrolling */
  overscroll-behavior-y: auto; /* ensure bounce scroll isn't trapped */
}

/* Ensure the hero section doesn't trap touches */
.hero {
  touch-action: pan-y !important; /* Forces the browser to allow vertical scroll even if touched here */
}

/* Ensure mobile nav bg doesn't trap scroll when closed */
.mobile-nav {
  pointer-events: none; /* Make sure it's dead when closed */
}
.mobile-nav.open {
  pointer-events: auto; /* Re-enable when open */
}

/* ===== HQ FINAL SIZE OVERRIDE - DESIGN CONSISTENT ===== */
.hq-mandir-img-wrap img {
  height: 320px !important;
  object-fit: cover !important;
  object-position: center center !important;
}
.hq-enhanced-img,
.hq-img-box img {
  height: 200px !important;
  object-fit: cover !important;
}
.office-hq-sec .hq-header-content {
  padding: 2rem 2.5rem !important;
}
.office-hq-sec .hq-header-content h2 {
  font-size: 2rem !important;
  margin-bottom: 0.75rem !important;
}
.office-hq-sec .hq-header-content p {
  font-size: 1rem !important;
  line-height: 1.6 !important;
}
.hq-gallery-grid {
  gap: 1.5rem !important;
}
@media (max-width: 768px) {
  .hq-mandir-img-wrap img { height: 220px !important; }
  .hq-enhanced-img, .hq-img-box img { height: 130px !important; }
  .hq-gallery-grid { gap: 0.8rem !important; }
  .office-hq-sec .hq-header-content { padding: 1.25rem 1.5rem !important; }
  .office-hq-sec .hq-header-content h2 { font-size: 1.5rem !important; }
  .office-hq-sec .hq-header-content p { font-size: 0.9rem !important; }
  .hq-img-box .hq-caption { font-size: 0.72rem !important; padding: 0.8rem 0.5rem 0.3rem !important; }
}


/* ===== PIONEER STYLE HORIZONTAL FILTER ===== */
.h-filter-sec {
  background: #f8fafc;
  padding: 2rem 0;
  border-bottom: 1px solid #e2e8f0;
}
.h-filter-bar {
  display: flex;
  align-items: center;
  background: var(--white);
  border: 1px solid #e2e8f0;
  border-radius: 50px;
  padding: 0.6rem 0.6rem 0.6rem 2rem;
  box-shadow: 0 10px 25px rgba(0,0,0,0.05);
  gap: 2rem;
}
.hf-group {
  display: flex;
  flex-direction: column;
  flex: 1;
  border-right: 1px solid #e2e8f0;
}
.hf-group:last-of-type {
  border-right: none;
}
.hf-group label {
  font-size: 0.75rem;
  font-weight: 700;
  color: #ef4444; /* Pioneer subtle red label */
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.2rem;
  display: flex;
  align-items: center;
  gap: 6px;
}
.hf-group label::before {
  content: "◎";
  color: #ef4444;
  font-size: 14px;
}
.hf-group select {
  border: none;
  background: transparent;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 600;
  color: #334155;
  outline: none;
  cursor: pointer;
  padding: 0;
  width: 100%;
}
.hf-search-btn {
  background: #004b87;
  color: #fff;
  border: none;
  padding: 1rem 2.5rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
}
.hf-search-btn:hover {
  background: #ef4444;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(239, 68, 68, 0.3);
}

@media (max-width: 900px) {
  .h-filter-bar {
    flex-direction: column;
    border-radius: 16px;
    padding: 1.5rem;
    gap: 1.5rem;
  }
  .hf-group {
    border-right: none;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 1rem;
    width: 100%;
  }
  .hf-search-btn {
    width: 100%;
    justify-content: center;
  }
}


/* DYNAMIC PIONEER-STYLE FILTERS (CLEAN DESIGN) */
.dyn-filter-sec {
  background: transparent;
  padding: 1rem 0;
  margin-top: -10px;
}
.dyn-filter-bar {
  display: flex;
  align-items: center;
  background: transparent;
  gap: 0.5rem;
  max-width: 900px;
  flex-wrap: wrap;
  border: none;
  box-shadow: none;
  padding: 0;
}
.dyn-filter-sec .hf-group {
  display: flex;
  background: #fff;
  flex: 1;
  min-width: 140px;
  padding: 0.5rem 0.75rem;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  border: 1px solid rgba(0,0,0,0.04);
}
.dyn-filter-sec .hf-group select {
  border: none;
  background: transparent;
  font-family: var(--font);
  font-size: 0.85rem;
  font-weight: 500;
  color: #444;
  outline: none;
  cursor: pointer;
  width: 100%;
}
.dyn-search-btn.btn-square {
  background: #fff;
  color: #cc0000;
  border: 1px solid rgba(0,0,0,0.04);
  border-radius: 4px;
  width: 45px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  transition: all 0.2s ease;
}
.dyn-search-btn.btn-square:hover {
  background: #cc0000;
  color: #fff;
}

@media(max-width: 768px) {
  .dyn-filter-sec { padding: 0.25rem 0.5rem 0 0.5rem; background: #fdfdfd; }
  .dyn-filter-bar { 
    display: flex;
    flex-wrap: wrap;
    gap: 6px; 
    padding: 0;
    align-items: center;
    border-radius: 0;
    box-shadow: none;
    justify-content: flex-start;
  }
  .dyn-filter-sec .hf-group { 
    flex: 1 1 45%; 
    padding: 0.5rem 0.4rem; 
    border: 1px solid rgba(0,0,0,0.06);
    background: #fff;
    min-width: 0;
    margin: 0;
  }
  .dyn-filter-sec .hf-group select {
    font-size: 0.75rem; 
    width: 100%;
    color: #475569;
  }
  .dyn-search-btn.btn-square { 
    flex: 0 0 45px; 
    height: 40px;
    margin-left: auto; 
  }
}


/* ==========================================================================
   SCROLL ANIMATIONS (Added dynamically)
   ========================================================================== */
.fade-up { opacity: 0; transform: translateY(40px); transition: opacity 0.8s ease-out, transform 0.8s ease-out; }
.fade-in { opacity: 0; transition: opacity 1s ease-out; }
.slide-left { opacity: 0; transform: translateX(50px); transition: opacity 0.8s ease-out, transform 0.8s ease-out; }
.slide-right { opacity: 0; transform: translateX(-50px); transition: opacity 0.8s ease-out, transform 0.8s ease-out; }

/* The active class toggled by JS */
.anim-active { opacity: 1 !important; transform: translate(0) !important; }

/* Stagger children for grids */
.stagger-children.anim-active > * { opacity: 0; animation: fadeUpStagger 0.6s ease-out forwards; }
.stagger-children > * { opacity: 0; }
@keyframes fadeUpStagger {
  0% { opacity: 0; transform: translateY(30px); }
  100% { opacity: 1; transform: translateY(0); }
}
.stagger-children.anim-active > *:nth-child(1) { animation-delay: 0.1s; }
.stagger-children.anim-active > *:nth-child(2) { animation-delay: 0.2s; }
.stagger-children.anim-active > *:nth-child(3) { animation-delay: 0.3s; }
.stagger-children.anim-active > *:nth-child(4) { animation-delay: 0.4s; }
.stagger-children.anim-active > *:nth-child(5) { animation-delay: 0.5s; }
.stagger-children.anim-active > *:nth-child(6) { animation-delay: 0.6s; }
.stagger-children.anim-active > *:nth-child(7) { animation-delay: 0.7s; }
.stagger-children.anim-active > *:nth-child(8) { animation-delay: 0.8s; }
