/* ============================================================
   MH Property Hub — Main Stylesheet (Mobile-First)
   Base styles = mobile. Larger screens override with min-width queries.
   ============================================================ */

/* ---- Google Fonts ---- */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=Inter:wght@300;400;500;600&display=swap');

/* ============================================================
   CSS VARIABLES
   ============================================================ */
:root {
  --primary:        #0F172A;
  --secondary:      #1E293B;
  --accent:         #2563EB;
  --accent-light:   #3B82F6;
  --accent-dark:    #1D4ED8;
  --bg:             #F8FAFC;
  --bg-alt:         #F1F5F9;
  --text:           #334155;
  --text-light:     #64748B;
  --text-muted:     #94A3B8;
  --white:          #FFFFFF;
  --border:         #E2E8F0;
  --card-bg:        #FFFFFF;
  --success:        #10B981;
  --danger:         #EF4444;

  --shadow-sm:  0 1px 3px rgba(0,0,0,0.10), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md:  0 4px 6px rgba(0,0,0,0.07), 0 2px 4px rgba(0,0,0,0.06);
  --shadow-lg:  0 10px 25px rgba(0,0,0,0.10), 0 4px 10px rgba(0,0,0,0.06);
  --shadow-xl:  0 20px 40px rgba(0,0,0,0.15), 0 8px 16px rgba(0,0,0,0.06);
  --shadow-accent: 0 8px 25px rgba(37,99,235,0.30);

  --radius-sm:   8px;
  --radius-md:   12px;
  --radius-lg:   16px;
  --radius-xl:   24px;
  --radius-full: 9999px;

  --transition:        all 0.3s cubic-bezier(0.4,0,0.2,1);
  --transition-bounce: all 0.4s cubic-bezier(0.34,1.56,0.64,1);

  /* Mobile navbar height */
  --navbar-height: 60px;

  --font-heading: 'Outfit', sans-serif;
  --font-body:    'Inter', sans-serif;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--primary);
  line-height: 1.25;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: var(--transition);
}
a:hover { color: var(--accent-dark); }

img { max-width: 100%; height: auto; display: block; }
ul  { list-style: none; }

/* ============================================================
   LOADING SCREEN
   ============================================================ */
#loading-screen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
#loading-screen.hidden {
  opacity: 0;
  visibility: hidden;
}
.loader-ring {
  width: 56px;
  height: 56px;
  border: 4px solid rgba(255,255,255,0.1);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ============================================================
   BACK TO TOP
   ============================================================ */
#back-to-top {
  position: fixed;
  bottom: 24px;
  right: 20px;
  z-index: 999;
  width: 44px;
  height: 44px;
  background: var(--accent);
  color: var(--white);
  border: none;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: var(--shadow-accent);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: var(--transition);
}
#back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
#back-to-top:hover {
  background: var(--accent-dark);
  transform: translateY(-4px);
}

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar-main {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--navbar-height);
  transition: var(--transition);
}
.navbar-main.transparent { background: transparent; }
.navbar-main.scrolled {
  background: rgba(15,23,42,0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 4px 30px rgba(0,0,0,0.3);
}

.navbar-inner {
  height: var(--navbar-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  gap: 12px;
  max-width: 1280px;
  margin: 0 auto;
}

/* Brand / Logo */
.navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}
.navbar-logo {
  width: 38px;
  height: 38px;
  background: var(--accent);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: white;
  flex-shrink: 0;
}
.navbar-site-name {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.05rem;
  color: white;
  line-height: 1.1;
  letter-spacing: -0.01em;
}
.navbar-site-name span { color: var(--accent-light); }

/* Desktop nav links — hidden on mobile */
.navbar-nav {
  display: none;
  align-items: center;
  gap: 6px;
}
.nav-link-custom {
  color: rgba(255,255,255,0.85);
  font-weight: 500;
  font-size: 0.925rem;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  transition: var(--transition);
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-link-custom:hover,
.nav-link-custom.active {
  color: var(--white);
  background: rgba(255,255,255,0.1);
}
.nav-link-custom.active::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 18px;
  height: 2px;
  background: var(--accent-light);
  border-radius: 2px;
}

/* Navbar CTA Button — hidden on mobile (lives in mobile menu) */
.btn-nav-cta {
  display: none;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #25D366, #128C7E);
  color: white;
  font-weight: 600;
  font-size: 0.875rem;
  padding: 9px 20px;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(37,211,102,0.3);
  transition: var(--transition);
  white-space: nowrap;
  text-decoration: none;
}
.btn-nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37,211,102,0.4);
  color: white;
}

/* Hamburger — visible on mobile */
.hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-shrink: 0;
}
.hamburger span {
  width: 24px;
  height: 2px;
  background: white;
  border-radius: 2px;
  transition: var(--transition);
  display: block;
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile Menu Dropdown */
.mobile-menu {
  display: none;
  position: fixed;
  top: var(--navbar-height);
  left: 0;
  right: 0;
  background: rgba(15,23,42,0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 16px 20px 24px;
  flex-direction: column;
  gap: 6px;
  border-top: 1px solid rgba(255,255,255,0.1);
  z-index: 998;
  box-shadow: 0 8px 30px rgba(0,0,0,0.4);
}
.mobile-menu.open { display: flex; }

.mobile-menu .nav-link-custom {
  padding: 12px 16px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
}
.mobile-menu .nav-link-custom:hover {
  background: rgba(255,255,255,0.1);
}

/* CTA inside mobile menu — always show, full width */
.mobile-menu .btn-nav-cta {
  display: flex !important;
  width: 100%;
  justify-content: center;
  margin-top: 8px;
  padding: 13px 20px;
  font-size: 1rem;
  border-radius: var(--radius-md);
}

/* ============================================================
   LAYOUT HELPERS
   ============================================================ */
.container-custom {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 16px;
}

.section { padding: 60px 0; }
.section-alt { background: var(--bg-alt); }

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(37,99,235,0.1);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(37,99,235,0.2);
  margin-bottom: 12px;
}
.section-title {
  font-size: clamp(1.6rem, 5vw, 2.6rem);
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 14px;
}
.section-subtitle {
  font-size: 1rem;
  color: var(--text-light);
  max-width: 560px;
  line-height: 1.7;
}
.section-header { margin-bottom: 40px; }
.section-header.center { text-align: center; }
.section-header.center .section-subtitle { margin: 0 auto; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn-primary-custom {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: white;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 11px 24px;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  box-shadow: var(--shadow-accent);
  transition: var(--transition-bounce);
}
.btn-primary-custom:hover {
  background: var(--accent-dark);
  color: white;
  transform: translateY(-2px);
}

.btn-outline-custom {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 10px 24px;
  border-radius: var(--radius-full);
  border: 2px solid var(--accent);
  cursor: pointer;
  transition: var(--transition);
}
.btn-outline-custom:hover {
  background: var(--accent);
  color: white;
  transform: translateY(-2px);
}

.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(135deg, #25D366, #128C7E);
  color: white;
  font-weight: 700;
  font-size: 1rem;
  padding: 14px 28px;
  border-radius: var(--radius-full);
  box-shadow: 0 8px 25px rgba(37,211,102,0.35);
  transition: var(--transition-bounce);
  width: 100%;
}
.btn-whatsapp:hover {
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(37,211,102,0.5);
}

.btn-sm-custom {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.825rem;
  padding: 8px 16px;
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero-section {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: var(--navbar-height);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('../images/hero-bg.jpg');
  background-size: cover;
  background-position: center;
  animation: heroZoom 20s ease-in-out infinite alternate;
  transform-origin: center;
}
@keyframes heroZoom {
  from { transform: scale(1); }
  to   { transform: scale(1.08); }
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    100deg,
    rgba(15,23,42,0.88) 0%,
    rgba(30,41,59,0.78) 50%,
    rgba(15,23,42,0.92) 100%
  );
}
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 860px;
  margin: 0 auto;
  padding: 40px 20px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(37,99,235,0.2);
  border: 1px solid rgba(37,99,235,0.4);
  color: #93C5FD;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 20px;
  animation: fadeInDown 0.8s ease both;
}
.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 8vw, 4.5rem);
  font-weight: 900;
  color: white;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  animation: fadeInUp 0.9s ease 0.15s both;
}
.hero-title .accent { color: var(--accent-light); }
.hero-subtitle {
  font-size: clamp(0.95rem, 3vw, 1.15rem);
  color: rgba(255,255,255,0.8);
  font-weight: 400;
  margin-bottom: 32px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  animation: fadeInUp 0.9s ease 0.3s both;
}
.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  animation: fadeInUp 0.9s ease 0.45s both;
}
.btn-hero-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--accent);
  color: white;
  font-weight: 700;
  font-size: 1rem;
  padding: 14px 28px;
  border-radius: var(--radius-full);
  box-shadow: 0 8px 30px rgba(37,99,235,0.4);
  transition: var(--transition-bounce);
}
.btn-hero-primary:hover {
  background: var(--accent-dark);
  color: white;
  transform: translateY(-3px);
}
.btn-hero-secondary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: white;
  font-weight: 600;
  font-size: 1rem;
  padding: 14px 28px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255,255,255,0.25);
  transition: var(--transition-bounce);
}
.btn-hero-secondary:hover {
  background: rgba(255,255,255,0.2);
  color: white;
  transform: translateY(-3px);
}

/* Hero stats */
.hero-stats {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  flex-wrap: wrap;
  animation: fadeInUp 0.9s ease 0.6s both;
}
.hero-stat { text-align: center; }
.hero-stat-number {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 800;
  color: white;
  line-height: 1;
}
.hero-stat-label {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.6);
  margin-top: 4px;
}

/* Scroll indicator */
.hero-scroll-indicator {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: none; /* hidden on mobile */
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.5);
  font-size: 0.75rem;
  animation: float 3s ease-in-out infinite;
}
.scroll-mouse {
  width: 24px;
  height: 38px;
  border: 2px solid rgba(255,255,255,0.4);
  border-radius: 12px;
  position: relative;
}
.scroll-mouse::before {
  content: '';
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 7px;
  background: rgba(255,255,255,0.6);
  border-radius: 2px;
  animation: scrollDot 2s ease infinite;
}
@keyframes scrollDot {
  0%   { opacity: 1; transform: translateX(-50%) translateY(0); }
  100% { opacity: 0; transform: translateX(-50%) translateY(10px); }
}

/* ============================================================
   PROPERTY CARDS
   ============================================================ */
.properties-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
.property-card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  border: 1px solid var(--border);
  position: relative;
}
.property-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: rgba(37,99,235,0.2);
}
.property-card-img {
  position: relative;
  overflow: hidden;
  height: 200px;
}
.property-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.property-card:hover .property-card-img img { transform: scale(1.06); }

.property-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  border-radius: var(--radius-full);
}
.badge-available { background: rgba(16,185,129,0.9); color: white; }
.badge-sold      { background: rgba(239,68,68,0.9);  color: white; }

.badge-category {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(15,23,42,0.75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: white;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-full);
}
.property-card-body { padding: 16px 18px; }

.property-type-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(37,99,235,0.08);
  color: var(--accent);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 3px 10px;
  border-radius: 4px;
  margin-bottom: 8px;
}
.property-card-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.property-meta {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 12px;
}
.property-meta-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.825rem;
  color: var(--text-light);
}
.property-meta-item i {
  color: var(--accent);
  margin-top: 2px;
  flex-shrink: 0;
  font-size: 0.78rem;
  width: 14px;
}
.property-desc {
  font-size: 0.825rem;
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.property-contact-strip {
  background: var(--bg-alt);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  margin-bottom: 14px;
  font-size: 0.82rem;
}
.property-contact-strip .label {
  color: var(--text-muted);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}
.property-contact-strip a { color: var(--primary); font-weight: 600; }
.property-contact-strip a:hover { color: var(--accent); }

.property-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.property-share-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-size: 0.875rem;
  cursor: pointer;
  transition: var(--transition);
  flex-shrink: 0;
}
.property-share-btn:hover {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

/* ============================================================
   WHY CHOOSE US
   ============================================================ */
.feature-cards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.feature-card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
  transform: scaleX(0);
  transition: var(--transition);
}
.feature-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.feature-card:hover::before { transform: scaleX(1); }
.feature-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 16px;
  background: linear-gradient(135deg, rgba(37,99,235,0.12), rgba(59,130,246,0.08));
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--accent);
  transition: var(--transition);
}
.feature-card:hover .feature-icon {
  background: var(--accent);
  color: white;
  transform: scale(1.1);
}
.feature-title { font-size: 0.95rem; font-weight: 700; margin-bottom: 8px; }
.feature-desc  { font-size: 0.825rem; color: var(--text-light); line-height: 1.6; }

/* ============================================================
   CTA SECTION
   ============================================================ */
.cta-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 50%, #162544 100%);
  padding: 70px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%232563EB' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.cta-content { position: relative; z-index: 1; }
.cta-title {
  font-size: clamp(1.6rem, 5vw, 2.8rem);
  font-weight: 800;
  color: white;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}
.cta-subtitle {
  color: rgba(255,255,255,0.7);
  font-size: 1rem;
  margin-bottom: 32px;
}

/* ============================================================
   SEARCH & FILTER BAR  (properties.php)
   ============================================================ */
.search-filter-section {
  background: var(--primary);
  padding: 20px 0 16px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
  /* NOT sticky on mobile — stays in flow */
}

.search-bar-wrapper {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.search-input-group {
  position: relative;
  width: 100%;
}
.search-input-group i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}
.search-input-main {
  width: 100%;
  padding: 12px 14px 12px 42px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-md);
  color: white;
  font-size: 0.9rem;
  transition: var(--transition);
  outline: none;
  font-family: var(--font-body);
}
.search-input-main::placeholder { color: rgba(255,255,255,0.4); }
.search-input-main:focus {
  background: rgba(255,255,255,0.12);
  border-color: var(--accent-light);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.2);
}

.filter-select {
  width: 100%;
  padding: 12px 36px 12px 14px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-md);
  color: white;
  font-size: 0.875rem;
  cursor: pointer;
  outline: none;
  transition: var(--transition);
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7' viewBox='0 0 12 7'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2394A3B8' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  font-family: var(--font-body);
}
.filter-select:focus {
  border-color: var(--accent-light);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.2);
}
.filter-select option { background: var(--secondary); }

.btn-search {
  width: 100%;
  padding: 12px 20px;
  background: var(--accent);
  color: white;
  font-weight: 600;
  font-size: 0.9rem;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
}
.btn-search:hover { background: var(--accent-dark); }

/* Filter row */
.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
  align-items: center;
}
.filter-select-sm {
  flex: 1 1 calc(50% - 4px);
  min-width: 0;
  padding: 10px 32px 10px 12px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-md);
  color: white;
  font-size: 0.85rem;
  cursor: pointer;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7' viewBox='0 0 12 7'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2394A3B8' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  font-family: var(--font-body);
}
.filter-select-sm:focus {
  border-color: var(--accent-light);
}
.filter-select-sm option { background: var(--secondary); }

.filter-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.75);
  font-size: 0.82rem;
  padding: 8px 14px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition);
  font-family: var(--font-body);
}
.filter-chip:hover,
.filter-chip.active {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}

.results-count {
  color: rgba(255,255,255,0.6);
  font-size: 0.85rem;
  text-align: center;
  width: 100%;
}

/* ============================================================
   PROPERTIES PAGE LAYOUT
   ============================================================ */
.properties-main {
  padding-top: var(--navbar-height);
}
.properties-page { padding: 28px 0 60px; }

.no-results {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-light);
}
.no-results i { font-size: 3rem; color: var(--border); margin-bottom: 16px; display: block; }
#properties-container { min-height: 200px; position: relative; }

.ajax-loader {
  display: none;
  position: absolute;
  inset: 0;
  background: rgba(248,250,252,0.85);
  backdrop-filter: blur(4px);
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-lg);
  z-index: 10;
}
.ajax-loader.active { display: flex; }

/* Pagination */
.pagination-wrapper {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 40px;
  gap: 6px;
}
.page-btn {
  min-width: 40px;
  height: 40px;
  padding: 0 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--card-bg);
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  font-family: var(--font-body);
}
.page-btn:hover,
.page-btn.active {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

/* ============================================================
   PROPERTY DETAIL PAGE
   ============================================================ */
.detail-page { padding: 24px 0 60px; }

.detail-grid {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

/* Gallery */
.gallery-main .swiper { border-radius: var(--radius-lg); overflow: hidden; }
.gallery-main-img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  cursor: zoom-in;
}
.gallery-thumbs { margin-top: 10px; }
.gallery-thumb-img {
  width: 100%;
  height: 70px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
}
.gallery-thumb-img.active { border-color: var(--accent); }
.swiper-button-next,
.swiper-button-prev {
  color: white;
  background: rgba(0,0,0,0.4);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  backdrop-filter: blur(6px);
}
.swiper-button-next::after,
.swiper-button-prev::after { font-size: 14px; }

/* Detail info */
.property-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 5px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 12px;
}
.detail-title {
  font-size: clamp(1.4rem, 5vw, 2rem);
  font-weight: 800;
  color: var(--primary);
  line-height: 1.25;
  margin-bottom: 18px;
}
.detail-meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 20px;
}
.detail-meta-item {
  background: var(--bg-alt);
  border-radius: var(--radius-md);
  padding: 12px 14px;
}
.detail-meta-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 5px;
}
.detail-meta-value { font-weight: 700; color: var(--primary); font-size: 0.9rem; }

.detail-section-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.detail-section-title::before {
  content: '';
  width: 4px;
  height: 18px;
  background: var(--accent);
  border-radius: 2px;
  flex-shrink: 0;
}
.detail-description {
  color: var(--text);
  line-height: 1.8;
  font-size: 0.925rem;
  margin-bottom: 24px;
}

/* Contact Box */
.contact-box {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 20px;
  color: white;
}
.contact-box-title {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.6);
  margin-bottom: 6px;
}
.contact-box-heading { font-size: 1.05rem; font-weight: 700; color: white; margin-bottom: 18px; }
.contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.contact-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  color: var(--accent-light);
}
.contact-item-label { font-size: 0.7rem; color: rgba(255,255,255,0.55); }
.contact-item-value { font-weight: 600; color: white; }
.contact-item-value a { color: white; }
.contact-item-value a:hover { color: var(--accent-light); }

.btn-call-now {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 13px;
  background: var(--accent);
  color: white;
  font-weight: 700;
  border-radius: var(--radius-md);
  margin-top: 6px;
  transition: var(--transition);
  text-decoration: none;
  font-size: 1rem;
}
.btn-call-now:hover { background: var(--accent-light); color: white; transform: translateY(-2px); }

/* Share card */
.share-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
}
.share-card-title { font-size: 0.9rem; font-weight: 700; margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.share-buttons { display: flex; gap: 8px; flex-wrap: wrap; }
.share-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 9px 14px;
  border-radius: var(--radius-md);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  text-decoration: none;
}
.share-btn:hover { transform: translateY(-2px); opacity: 0.9; }
.share-wa   { background: #25D366; color: white; }
.share-fb   { background: #1877F2; color: white; }
.share-tg   { background: #229ED9; color: white; }
.share-tw   { background: #000000; color: white; }
.share-copy { background: var(--bg-alt); color: var(--text); border: 1px solid var(--border); }
.share-copy.copied { background: var(--success); color: white; border-color: var(--success); }

/* ============================================================
   LIGHTBOX
   ============================================================ */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9990;
  background: rgba(0,0,0,0.95);
  align-items: center;
  justify-content: center;
}
.lightbox.open { display: flex; }
.lightbox-img {
  max-width: 92vw;
  max-height: 88vh;
  border-radius: var(--radius-md);
  object-fit: contain;
}
.lightbox-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  border: none;
  color: white;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.lightbox-close:hover { background: rgba(255,255,255,0.2); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--primary);
  color: rgba(255,255,255,0.75);
  padding: 56px 0 0;
}
.footer-grid {
  display: flex;
  flex-direction: column;
  gap: 36px;
  margin-bottom: 40px;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.footer-logo-icon {
  width: 44px;
  height: 44px;
  background: var(--accent);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: white;
  flex-shrink: 0;
}
.footer-site-name {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 800;
  color: white;
}
.footer-site-name span { color: var(--accent-light); }
.footer-tagline { font-size: 0.875rem; line-height: 1.7; margin-bottom: 20px; }
.footer-social { display: flex; gap: 10px; }
.social-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.7);
  font-size: 1rem;
  transition: var(--transition);
  text-decoration: none;
}
.social-icon:hover { transform: translateY(-3px); }
.social-icon.wa:hover { background: #25D366; border-color: #25D366; color: white; }
.social-icon.fb:hover { background: #1877F2; border-color: #1877F2; color: white; }
.social-icon.ig:hover { background: linear-gradient(45deg,#f09433,#e6683c,#dc2743,#cc2366,#bc1888); border-color: transparent; color: white; }
.social-icon.yt:hover { background: #FF0000; border-color: #FF0000; color: white; }

.footer-heading {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: white;
  margin-bottom: 16px;
  letter-spacing: 0.02em;
}
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a {
  color: rgba(255,255,255,0.65);
  font-size: 0.875rem;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 8px;
}
.footer-links a i { color: var(--accent-light); font-size: 0.75rem; }
.footer-links a:hover { color: white; padding-left: 4px; }

.footer-contact-list { display: flex; flex-direction: column; gap: 14px; }
.footer-contact-item { display: flex; align-items: flex-start; gap: 12px; }
.footer-contact-icon {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  background: rgba(37,99,235,0.15);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-light);
  font-size: 0.875rem;
}
.footer-contact-text { font-size: 0.86rem; }
.footer-contact-text strong { color: white; font-weight: 600; display: block; margin-bottom: 2px; }
.footer-contact-text a { color: rgba(255,255,255,0.65); }
.footer-contact-text a:hover { color: white; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 20px 0;
  text-align: center;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.4);
}
.footer-bottom-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.footer-admin-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,0.25);
  font-size: 0.78rem;
  text-decoration: none;
  transition: var(--transition);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  border: 1px solid transparent;
}
.footer-admin-link:hover {
  color: var(--accent-light);
  border-color: rgba(37,99,235,0.35);
  background: rgba(37,99,235,0.1);
}

/* ============================================================
   SHARE PANEL (slide-up on mobile)
   ============================================================ */
#share-panel-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 8999;
  background: rgba(0,0,0,0.5);
}
#share-panel {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9000;
  background: white;
  border-radius: 24px 24px 0 0;
  padding: 28px 20px;
  box-shadow: 0 -10px 40px rgba(0,0,0,0.15);
  transition: transform 0.3s ease;
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes float {
  0%,100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(-10px); }
}
@keyframes shimmer {
  0%   { background-position: -468px 0; }
  100% { background-position:  468px 0; }
}

/* Skeleton */
.skeleton {
  background: linear-gradient(90deg, #e2e8f0 25%, #f1f5f9 50%, #e2e8f0 75%);
  background-size: 468px 100%;
  animation: shimmer 1.2s ease infinite;
  border-radius: var(--radius-sm);
}

/* ============================================================
   AOS SAFETY — mobile: disable AOS transforms so cards show
   ============================================================ */
@media (max-width: 767px) {
  [data-aos] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* ============================================================
   TABLET  (min-width: 600px)
   ============================================================ */
@media (min-width: 600px) {
  .container-custom { padding: 0 20px; }
  .properties-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
  .hero-actions {
    flex-direction: row;
    justify-content: center;
  }
  .btn-whatsapp { width: auto; }
  .filter-row .filter-select-sm { flex: 1 1 calc(50% - 4px); }
}

/* ============================================================
   DESKTOP  (min-width: 768px)
   ============================================================ */
@media (min-width: 768px) {
  :root { --navbar-height: 70px; }

  .container-custom { padding: 0 24px; }
  .section { padding: 90px 0; }
  .section-header { margin-bottom: 56px; }
  .cta-section { padding: 90px 0; }

  /* Navbar: show links, show CTA, hide hamburger */
  .navbar-inner { padding: 0 24px; }
  .navbar-nav   { display: flex; }
  .btn-nav-cta  { display: flex; }
  .hamburger    { display: none; }
  .mobile-menu  { display: none !important; }

  /* Hero */
  .hero-scroll-indicator { display: flex; }
  .hero-stats { gap: 40px; }
  .hero-stat-number { font-size: 2rem; }
  .gallery-main-img { height: 380px; }
  .gallery-thumb-img { height: 90px; }

  /* Search bar: horizontal on desktop */
  .search-filter-section {
    position: sticky;
    top: var(--navbar-height);
    z-index: 100;
    padding: 28px 0;
  }
  .search-bar-wrapper {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 12px;
  }
  .search-input-group { flex: 1 1 260px; }
  .filter-select {
    width: auto;
    flex: 1 1 150px;
  }
  .btn-search { width: auto; flex-shrink: 0; padding: 12px 28px; }
  .results-count { width: auto; margin-left: auto; text-align: right; }
  .filter-row .filter-select-sm { flex: 0 1 160px; }

  /* Properties grid */
  .properties-grid { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 28px; }
  .properties-page { padding: 50px 0 90px; }
  .property-card-img { height: 220px; }

  /* Feature cards */
  .feature-cards-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 24px; }

  /* Detail page */
  .detail-grid { flex-direction: row; align-items: start; gap: 40px; }
    .detail-left { flex: 1; min-width: 0; }
  .detail-right { width: 360px; flex-shrink: 0; }
  .gallery-main-img { height: 420px; }
  .detail-page { padding: 40px 0 80px; }

  /* Footer */
  .footer-grid { flex-direction: row; gap: 48px; margin-bottom: 50px; }
  .footer-brand { flex: 2; }
  .footer-bottom-inner { flex-direction: row; justify-content: space-between; }
}

/* ============================================================
   LARGE DESKTOP  (min-width: 1024px)
   ============================================================ */
@media (min-width: 1024px) {
  .properties-grid { grid-template-columns: repeat(3, 1fr); }
  .feature-cards-grid { grid-template-columns: repeat(4, 1fr); }
}

/* ============================================================
   SHARE PANEL
   ============================================================ */
#share-panel-overlay {
  position: fixed;
  inset: 0;
  z-index: 8999;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
#share-panel-overlay.open {
  opacity: 1;
  visibility: visible;
}

#share-panel {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9000;
  background: var(--white);
  border-radius: 24px 24px 0 0;
  padding: 28px 20px 32px;
  box-shadow: 0 -10px 50px rgba(0, 0, 0, 0.2);
  transform: translateY(100%);
  visibility: hidden;
  transition: transform 0.35s cubic-bezier(0.34, 1.2, 0.64, 1), visibility 0.35s ease;
}
#share-panel.open {
  transform: translateY(0);
  visibility: visible;
}

.share-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.share-panel-header h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary);
  margin: 0;
}
#close-share-panel {
  background: var(--bg-alt);
  border: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 1rem;
  cursor: pointer;
  color: var(--text-light);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
#close-share-panel:hover {
  background: var(--border);
  color: var(--primary);
}

.share-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 18px;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: var(--transition);
  white-space: nowrap;
}
.share-wa  { background: #E8FBF0; color: #128C7E; }
.share-wa:hover  { background: #25D366; color: white; }
.share-fb  { background: #EBF1FF; color: #1877F2; }
.share-fb:hover  { background: #1877F2; color: white; }
.share-tg  { background: #E8F4FD; color: #229ED9; }
.share-tg:hover  { background: #229ED9; color: white; }
.share-tw  { background: #F1F5F9; color: var(--primary); }
.share-tw:hover  { background: var(--primary); color: white; }
.share-copy { background: var(--bg-alt); color: var(--text); border: 1px solid var(--border); }
.share-copy:hover { background: var(--accent); color: white; border-color: var(--accent); }
.share-copy.copied { background: var(--success); color: white; border-color: var(--success); }

@media (min-width: 480px) {
  #share-panel { padding: 32px 28px 36px; }
  .share-btn { padding: 11px 20px; font-size: 0.9rem; }
}
