:root {
  --te-green: #0b4d3b;
  --te-deep: #0a3f32;
  --te-accent: #e86f3e;
  --te-cream: #f6efe7;
  --te-text: #222;
  --te-muted: #6b7280;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  color: var(--te-text);
  background: #fff;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== ENHANCED HEADER STYLES ===== */
.te-header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

/* Transparent blur when scrolled */
.te-header.scrolled {
  background: rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(2.5px);
  -webkit-backdrop-filter: blur(2.5px);
}

/* Topbar */
.te-topbar {
  position: relative;
  background: #f3f4f6;
  color: var(--te-text);
  font-size: 14px;
}
.topbar-inner { display:flex; align-items:center; justify-content:space-between; height:36px; }
.topbar-left { display:flex; align-items:center; gap:8px; }
.phone-icon { width:14px; height:14px; fill: var(--te-green); }
.topbar-phone { color: var(--te-green); text-decoration:none; font-weight:600; }
.topbar-right { display:flex; gap:12px; }
.social-link { color: var(--te-green); text-decoration:none; font-weight:700; display:inline-flex; align-items:center; }
.social-link .icon { fill: var(--te-green); display:block; }

@media (max-width: 768px) {
  .topbar-inner { padding: 0 12px; }
}

.menu-toggle {
  display: none;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 700;
  font-size: 24px;
  color: var(--te-green);
}

.logo-text {
  font-family: 'Georgia', 'Times New Roman', serif;
  font-weight: 700;
  font-size: 24px;
  background: linear-gradient(135deg, #0b4d3b 0%, #e86f3e 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: #0b4d3b; /* Fallback for browsers that don't support background-clip */
  letter-spacing: -0.5px;
}

/* Mobile responsive logo */
@media (max-width: 768px) {
  .logo-text {
    font-size: 18px;
    letter-spacing: -0.3px;
  }
}

.main-nav {
  display: flex;
  gap: 32px;
  align-items: center;
}

.nav-group {
  position: relative;
}

.nav-link, .main-nav > a {
  background: transparent;
  border: none;
  font: inherit;
  color: var(--te-text);
  cursor: pointer;
  padding: 8px 0;
  text-decoration: none;
  font-weight: 500;
  font-size: 16px;
  transition: all 0.3s ease;
  position: relative;
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link:hover, .main-nav > a:hover,
.nav-link.active, .main-nav > a.active {
  color: var(--te-accent);
}

/* ===== ENHANCED MEGA MENU ===== */
.mega-menu {
  position: absolute;
  left: 50%;
  top: 100%;
  width: 220px;
  margin-left: -110px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 0 0 16px 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,.15);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px) scale(0.98);
  pointer-events: none;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  z-index: 1000;
}

/* Add invisible bridge to prevent gap */
.mega-menu::before {
  content: '';
  position: absolute;
  top: -10px;
  left: 0;
  right: 0;
  height: 10px;
  background: transparent;
}

/* Arrow pointing up */
.mega-menu::after {
  content: '';
  position: absolute;
  top: -8px;
  left: 50%;
  margin-left: -8px;
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-bottom: 8px solid #fff;
}

.nav-group:hover .mega-menu,
.nav-group.open .mega-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.mega-inner { display:grid; grid-template-columns: 1fr; }

.mega-col {
  padding: 28px;
}

.mega-col.border-left {
  border-left: 1px solid #f0f0f0;
  background: #fafafa;
}

.mega-title {
  margin: 0 0 20px;
  font-size: 18px;
  font-weight: 700;
  color: var(--te-green);
}

.mega-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.mega-list li {
  transform: translateY(20px);
  opacity: 0;
  animation: slideInUp 0.5s ease forwards;
}

.mega-list li:nth-child(2) { animation-delay: 0.1s; }
.mega-list li:nth-child(3) { animation-delay: 0.2s; }
.mega-list li:nth-child(4) { animation-delay: 0.3s; }

.mega-list a {
  display: block;
  padding: 12px 16px;
  color: var(--te-text);
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.3s ease;
  font-weight: 500;
}

.mega-list a:hover {
  background: var(--te-green);
  color: white;
  transform: translateX(8px);
}

.mega-all {
  display: inline-block;
  margin-top: 16px;
  color: var(--te-accent);
  text-decoration: none;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.mega-all:hover {
  background: var(--te-accent);
  color: white;
}

/* ===== DISTRICTS SECTION IN MEGA MENU ===== */
.districts-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.districts-list li {
  padding: 8px 12px;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
  cursor: pointer;
  transform: translateY(20px);
  opacity: 0;
  animation: slideInUp 0.5s ease forwards;
}

.districts-list li:nth-child(2) { animation-delay: 0.1s; }
.districts-list li:nth-child(3) { animation-delay: 0.2s; }
.districts-list li:nth-child(4) { animation-delay: 0.3s; }
.districts-list li:nth-child(5) { animation-delay: 0.4s; }
.districts-list li:nth-child(6) { animation-delay: 0.5s; }

.districts-list li:hover {
  background: var(--te-green);
  color: white;
  transform: translateY(0) scale(1.02);
}

/* ===== DROPDOWN ARROW ANIMATION ===== */
.dropdown-arrow {
  transition: transform 0.3s ease;
}

.nav-group:hover .dropdown-arrow,
.nav-group.open .dropdown-arrow {
  transform: rotate(180deg);
}

/* ===== KEYFRAMES ===== */
@keyframes slideInUp {
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* ===== HEADER ACTIONS ===== */
.header-actions {
  display: flex;
  gap: 16px;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 8px;
  border: 1px solid transparent;
  padding: 12px 24px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 14px;
}

.btn-primary {
  background: var(--te-accent);
  color: #fff;
}

.btn-primary:hover {
  background: #d65a2a;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(232, 111, 62, 0.3);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-1px);
}

.btn-white {
  background: #fff;
  color: var(--te-accent);
  font-weight: 600;
}

.btn-outline {
  background: transparent;
  color: #fff;
  border: 2px solid #fff;
}

.btn.small {
  padding: 10px 16px;
  font-size: 13px;
  margin-top: 12px;
}

.lang-select {
  height: 44px;
  border: 1px solid #e1e5e9;
  border-radius: 8px;
  padding: 0 12px;
  font-weight: 500;
  background: white;
  cursor: pointer;
}

/* hide nav-embedded language on desktop */
.main-nav .nav-lang { display:none; }

/* ===== HERO SECTION ===== */
.te-hero {
  position: relative;
  height: 80vh;
  min-height: 560px;
  overflow: hidden;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, rgba(11, 77, 59, 0.8) 0%, rgba(11, 77, 59, 0.6) 50%, rgba(232, 111, 62, 0.4) 100%), 
              url('../images/hero/hero2.jpg') center/cover no-repeat;
  background-attachment: fixed;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  background: url('../images/hero/hero2.jpg') center/cover no-repeat;
}

.hero-background img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.7) contrast(1.1);
  display: block;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(11, 77, 59, 0.6) 0%, rgba(11, 77, 59, 0.4) 50%, rgba(232, 111, 62, 0.3) 100%);
  z-index: -1;
}

.hero-content {
  position: relative;
  z-index: 10;
  color: white;
  max-width: 600px;
}

.hero-content h1 {
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1.1;
  margin: 0 0 16px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--te-accent);
  margin: 0 0 20px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.hero-description {
  font-size: 0.98rem;
  line-height: 1.6;
  margin: 0 0 32px;
  color: rgba(255, 255, 255, 0.95);
  max-width: 500px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

/* ===== SEARCH FORM ===== */
.search-container {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.search-form {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 12px;
  align-items: center;
}

.search-input {
  height: 56px;
  border: 2px solid #e1e5e9;
  border-radius: 12px;
  padding: 0 20px;
  font-size: 16px;
  color: var(--te-text);
  background: white;
  transition: border-color 0.2s ease;
}

.search-input:focus {
  outline: none;
  border-color: var(--te-accent);
}

.search-input::placeholder {
  color: var(--te-muted);
}

.search-select {
  height: 56px;
  border: 2px solid #e1e5e9;
  border-radius: 12px;
  padding: 0 20px;
  font-size: 16px;
  color: var(--te-text);
  background: white;
  min-width: 160px;
  cursor: pointer;
}

.search-btn {
  height: 56px;
  padding: 0 32px;
  background: var(--te-accent);
  color: white;
  border: none;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  min-width: 120px;
}

.search-btn:hover {
  background: #d65a2a;
  transform: translateY(-1px);
}

/* ===== WHATSAPP FLOAT BUTTON ===== */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  left: 30px;
  z-index: 1000;
  width: 60px;
  height: 60px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  cursor: pointer;
  transition: transform 0.2s ease;
}

.whatsapp-float:hover {
  transform: scale(1.1);
}

.whatsapp-float svg {
  width: 32px;
  height: 32px;
  fill: white;
}

/* ===== SECTIONS ===== */
.section {
  padding: 60px 0;
}

.section-header h2 {
  margin: 0 0 24px;
  font-size: 32px;
  font-weight: 700;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

/* ===== SLIDER ===== */
.slider {
  position: relative;
  padding: 10px 56px;
}

.slider-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 60px)/3);
  gap: 30px;
  overflow: hidden;
  scroll-behavior: smooth;
}

.slider-btn {
  position: absolute;
  top: 45%;
  transform: translateY(-50%);
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  width: 48px;
  height: 48px;
  font-size: 22px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(0,0,0,.18);
  z-index: 3;
}

.slider-btn.prev {
  left: 6px;
}

.slider-btn.next {
  right: 6px;
}

.property-card {
  border: 1px solid #eee;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.property-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0,0,0,.1);
}

.card-media {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.property-card:hover .card-media img {
  transform: scale(1.05);
}

.badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: #fff;
  color: var(--te-green);
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid #e5e7eb;
}

.badge-buy {
  background: var(--te-green);
  color: #fff;
  border-color: transparent;
}

.card-body {
  padding: 20px;
}

.card-body h3 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 600;
}

/* Make slider cards fully clickable without underline */
.ap-card-link { text-decoration: none; color: inherit; display: block; }
.ap-card-link h3 { text-decoration: none; }

.price {
  margin: 0 0 8px;
  font-weight: 700;
  color: var(--te-green);
  font-size: 18px;
}

.meta {
  margin: 0;
  color: var(--te-muted);
  font-size: 14px;
}

/* ===== CATEGORIES SECTION ===== */
.categories-section {
  background: var(--te-deep);
  color: #fff;
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.category-card {
  position: relative;
  height: 360px;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.category-card.tall {
  height: 420px;
}

.category-card:hover {
  transform: translateY(-8px);
}

.category-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.category-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.7) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
}

.category-title {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 8px;
  color: #fff;
}

.scale-on-hover {
  transform-origin: left bottom;
  transition: transform .25s ease;
}

.category-card:hover .scale-on-hover {
  transform: scale(1.06);
}

.category-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: #fff;
  color: #111;
  border-radius: 999px;
  padding: 8px 12px;
  font-weight: 800;
}

.category-desc {
  font-size: 14px;
  color: rgba(255,255,255,0.9);
  margin: 0 0 12px;
}

.category-btn {
  background: var(--te-accent);
  color: #fff;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 12px;
  cursor: pointer;
  align-self: flex-start;
  text-decoration: none;
}

/* ===== DISTRICTS SECTION ===== */
.districts-section {
  background: #f8fafc;
}

.districts-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.districts-image {
  border-radius: 16px;
  overflow: hidden;
}

.districts-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

/* ===== WHY SECTION ===== */
.section-why {
  background: var(--te-deep);
  color: #eaf1ee;
}

.section-why h2 {
  color: #fff;
  text-align: center;
  margin-bottom: 40px;
}

.why-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.why-image {
  border-radius: 16px;
  overflow: hidden;
}

.why-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

.why-text h3 {
  color: #fff;
  font-size: 24px;
  margin-bottom: 20px;
}

.why-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.why-list li {
  background: #0f614c;
  border: 1px solid #0d5643;
  padding: 16px 20px;
  border-radius: 12px;
  margin-bottom: 12px;
  position: relative;
  padding-left: 50px;
}

.why-list li::before {
  content: '✓';
  position: absolute;
  left: 20px;
  top: 16px;
  color: var(--te-accent);
  font-weight: bold;
  font-size: 18px;
}

/* ===== CTA SECTION ===== */
.cta-section {
  background: var(--te-accent);
  color: #fff;
  text-align: center;
}

.cta-content h2 {
  font-size: 36px;
  margin-bottom: 16px;
}

.cta-content p {
  font-size: 18px;
  margin-bottom: 24px;
  opacity: 0.9;
}

.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
}

/* ===== MEDIA SECTION ===== */
.media-section {
  text-align: center;
}

.media-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  opacity: 0.6;
}

.media-logos img {
  height: 40px;
  filter: grayscale(100%);
  transition: all 0.3s ease;
}

.media-logos img:hover {
  filter: grayscale(0%);
  opacity: 1;
}

/* ===== FOOTER ===== */
.te-footer {
  background: var(--te-deep);
  color: #cfe4db;
  padding: 40px 0 16px;
}

.footer-grid { display:grid; grid-template-columns: 1.2fr 1fr 1fr 1fr; gap:28px; margin-bottom: 24px; }

.footer-logo { width:160px; height:40px; border-radius:10px; background:#0e5a47; display:flex; align-items:center; justify-content:center; font-weight:800; margin-bottom:10px; }

.footer-section h4 { color:#fff; margin-bottom:12px; font-weight:700; font-size:16px; }

.footer-list { list-style:none; padding:0; margin:0; display:grid; gap:6px; }

.footer-list a {
  color: #cfe4db;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-list a:hover {
  color: #fff;
}

.footer-bottom { border-top:1px solid #0f614c; padding-top:12px; text-align:center; color:#9dcab8; font-size:13px; }

/* Footer social icons */
.footer-social { display:flex; gap:12px; margin-top:10px; }
.footer-social .icon { fill: #ffffff; }

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1024px) {
  .hero-content h1 {
    font-size: 3rem;
  }
  
  .search-form {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  
  .search-input,
  .search-select,
  .search-btn {
    width: 100%;
    height: 48px;
    font-size: 16px; /* Prevents zoom on iOS */
    display: block !important;
  }
  
  .search-form {
    display: grid !important;
  }
  
  .search-container {
    display: block !important;
    position: relative;
    z-index: 5;
  }
  
  .search-input {
    border-radius: 8px;
  }
  
  .search-select {
    border-radius: 8px;
    background-size: 16px;
    padding-right: 40px;
  }
  
  .search-btn {
    border-radius: 8px;
    font-weight: 600;
    min-height: 48px;
  }
  
  .categories-grid {
    grid-template-columns: 1fr;
  }
  
  .districts-content,
  .why-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  
  .slider {
    padding: 10px 48px;
  }
  
  .slider-track {
    grid-auto-columns: calc((100% - 30px)/2);
  }
}

/* ===== MOBILE NAVIGATION STYLES ===== */
.mobile-nav {
  display: none;
}

.desktop-nav {
  display: flex;
}

@media (max-width: 768px) {
  /* ===== MOBILE HEADER ===== */
  .te-header { position: sticky; }
  .te-hero { background-attachment: scroll; }
  
  /* Hide desktop nav on mobile */
  .desktop-nav {
    display: none !important;
  }
  
  /* Show mobile nav */
  .mobile-nav {
    display: block;
    position: fixed;
    top: 77px; /* topbar (36) + header (80) */
    left: 0;
    right: 0;
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    z-index: 99999;
    max-height: calc(100vh - 116px);
    overflow-y: auto;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
  }
  
  .mobile-nav.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  
  .mobile-nav-content {
    padding: 20px;
  }
  
  .mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 0;
    border-bottom: 1px solid #f1f5f9;
    text-decoration: none;
    color: var(--te-text);
    font-weight: 500;
    font-size: 16px;
    transition: all 0.2s ease;
  }
  
  .mobile-nav-link:hover,
  .mobile-nav-link.active {
    color: var(--te-accent);
    background: #f8fafc;
    margin: 0 -20px;
    padding-left: 20px;
    padding-right: 20px;
  }
  
  .mobile-nav-group {
    margin: 20px 0;
  }
  
  .mobile-nav-label {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    color: var(--te-green);
    font-size: 16px;
    padding: 12px 0 8px 0;
  }
  
  .mobile-nav-submenu {
    padding-left: 24px;
  }
  
  .mobile-nav-sublink {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 0;
    text-decoration: none;
    color: var(--te-muted);
    font-size: 15px;
    transition: color 0.2s ease;
  }
  
  .mobile-nav-sublink:hover {
    color: var(--te-accent);
  }
  
  .mobile-lang-form {
    margin-top: 8px;
  }
  
  .mobile-lang-select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #f8fafc;
    font-size: 15px;
    color: var(--te-text);
  }
  
  .mobile-nav-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--te-accent);
    color: white;
    padding: 16px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    margin-top: 24px;
    transition: all 0.2s ease;
  }
  
  .mobile-nav-cta:hover {
    background: #d65a2a;
    transform: translateY(-1px);
  }
  
  body.no-scroll { 
    overflow: hidden; 
  }
  
  /* Mobile menu overlay backdrop */
  .mobile-nav.open::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: -1;
    animation: fadeIn 0.3s ease;
  }
  
  @keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
  }

  /* Disable hover-open for mega on mobile; open only via tap which adds .open */
  .nav-group:hover .mega-menu { opacity: 1; visibility: visible; transform:none; }
  .nav-group .mega-menu { display:none; opacity:1; visibility:visible; transform:none; position:static; width:auto; border:none; box-shadow:none; background:#f8f9fa; margin-top:4px; }
  .nav-group.open .mega-menu { display:block; }
  
  .mega-menu {
    position: static;
    width: auto;
    border: none;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    pointer-events: auto;
    border-radius: 0;
    margin-top: 8px;
    background: #f8f9fa;
  }
  
  .mega-inner {
    grid-template-columns: 1fr;
  }
  
  .menu-toggle {
    display: inline-flex;
    border: none;
    background: transparent;
    font-size: 24px;
    cursor: pointer;
    color: var(--te-text);
  }
  
  /* Hide header-top language select outside burger */
  .header-actions #langForm { display:none; }
  /* Show the nav embedded language selector */
  .main-nav .nav-lang { display:block; }
  /* Hide header contact button on mobile header bar */
  .header-actions .btn-primary { display:none; }

  .header-actions {
    gap: 10px;
  }
  
  /* ===== MOBILE HERO ===== */
  .hero-content {
    text-align: center;
    max-width: 100%;
    padding-top: 215px;
  }
  
  .hero-content h1 {
    font-size: 2.5rem;
    display: block;
    color: #fff;
    margin-top: 8px;
  }
  
  .hero-subtitle {
    font-size: 1.25rem;
  }
  
  .hero-description {
    font-size: 1rem;
  }
  
  .hero-buttons {
    justify-content: center;
  }
  
  .search-container {
    padding: 20px;
    margin: 0 -10px; /* Extend to screen edges on mobile */
    display: block !important; /* Ensure it's visible on mobile */
    position: relative;
    z-index: 1;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(15px);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  }
  
  .search-form {
    gap: 10px;
    display: grid !important;
  }
  
  .te-hero {
    min-height: 600px;
  }
  
  /* ===== MOBILE SLIDER ===== */
  .slider {
    padding: 10px;
  }
  
  .slider-track {
    grid-auto-columns: 100%;
  }
  
  /* ===== MOBILE GENERAL ===== */
  .districts-list {
    grid-template-columns: 1fr;
  }
  
  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .footer-grid { grid-template-columns: 1fr; gap: 16px; }
  
  .section-header h2 {
    font-size: 24px;
  }
  
  .cta-content h2 {
    font-size: 28px;
  }
  
  .media-logos {
    flex-wrap: wrap;
    gap: 20px;
  }
}

@media (max-width: 480px) {
  .hero-content h1 {
    font-size: 2rem;
  }
  
  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .btn {
    width: 100%;
    justify-content: center;
    max-width: 280px;
  }
  
  .mega-menu {
    margin: 8px -20px 0;
    border-radius: 0;
  }
  
  .mega-col {
    padding: 20px;
  }
  
  /* Enhanced search form for very small screens */
  .search-container {
    padding: 15px;
    margin: 0 -16px;
    border-radius: 0;
    display: block !important; /* Force visibility on very small screens */
    position: relative;
    z-index: 10;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
  }
  
  .search-input,
  .search-select,
  .search-btn {
    height: 44px;
    font-size: 16px;
    border-radius: 6px;
    display: block !important;
    width: 100%;
  }
  
  .search-form {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 8px;
  }
  
  .search-input {
    padding: 0 12px;
  }
  
  .search-select {
    padding: 0 12px;
    padding-right: 36px;
  }
  
  .search-btn {
    padding: 0 20px;
    font-size: 14px;
    font-weight: 600;
  }
  
  .container {
    padding: 0 15px;
  }
}

/* ===== MOBILE CONTACT VISIBILITY ===== */
@media (max-width: 768px) {
  .header-actions .btn-primary { display: none; }
  .main-nav.open + .header-actions .btn-primary { display: none; }
}

/* ===== UTILITY CLASSES ===== */
.text-center {
  text-align: center;
}

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }

.d-none { display: none; }
.d-block { display: block; }
.d-flex { display: flex; }
.d-grid { display: grid; }

.opacity-0 { opacity: 0; }
.opacity-50 { opacity: 0.5; }
.opacity-100 { opacity: 1; }

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ===== FOCUS STYLES ===== */
.nav-link:focus,
.main-nav a:focus,
.btn:focus,
.lang-select:focus,
.search-input:focus,
.search-select:focus,
.search-btn:focus {
  outline: 2px solid var(--te-accent);
  outline-offset: 2px;
}

/* ===== PRINT STYLES ===== */
@media print {
  .te-header,
  .whatsapp-float,
  .btn,
  .search-container {
    display: none !important;
  }
  
  body {
    font-size: 12pt;
    line-height: 1.4;
  }
  
  .section {
    page-break-inside: avoid;
  }
}

/* Map iframe container styling */
.map-iframe-container {
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.map-iframe-container iframe {
  width: 100% !important;
  height: 300px !important;
  border: 0;
  border-radius: 12px;
}

@media (max-width: 768px) {
  .map-iframe-container iframe {
    height: 250px !important;
  }
}