/* Malik Property - Premium Real Estate Design System */
/* Colors: Navy #0A1F44, Gold #C9A227, White #FFFFFF, Light Gray #F6F7F9 */
/* Poppins font is loaded asynchronously via <link> in base.html head */

:root {
  --navy: #0A1F44;
  --navy-light: #142a52;
  --gold: #C9A227;
  --gold-light: #e0b94a;
  --white: #FFFFFF;
  --gray: #F6F7F9;
  --gray-dark: #6b7280;
  --shadow: 0 4px 20px rgba(10, 31, 68, 0.08);
  --shadow-hover: 0 8px 30px rgba(10, 31, 68, 0.12);
  --radius: 12px;
  --radius-lg: 20px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* RTL support for Urdu */
html[dir="rtl"] body {
  text-align: right;
}

html[dir="rtl"] .header-inner {
  flex-direction: row-reverse;
}

html[dir="rtl"] .nav-menu {
  flex-direction: row-reverse;
}

html[dir="rtl"] .footer-links a:hover {
  padding-left: 0;
  padding-right: 4px;
}

body {
  font-family: 'Poppins', sans-serif;
  color: var(--navy);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* ========== HEADER ========== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  box-shadow: var(--shadow);
  min-height: 56px;
}

.header-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 16px;
  min-height: 56px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--navy);
}

.logo-text {
  white-space: nowrap;
}

@keyframes logo-flip {
  0%   { transform: rotateY(0deg); }
  20%  { transform: rotateY(180deg); }
  40%  { transform: rotateY(360deg); }
  100% { transform: rotateY(360deg); } /* pause for remaining 60% */
}

.logo-img {
  height: 68px;
  width: auto;
  display: block;
  object-fit: contain;
  animation: logo-flip 2.5s ease-in-out infinite;
  transform-style: preserve-3d;
}

.footer-logo-link {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--white);
  text-decoration: none;
}

.footer-logo-img {
  height: 56px;
  width: auto;
  display: block;
  object-fit: contain;
}

.nav-desktop {
  display: none;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
}

.nav-menu a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--navy);
}

.nav-menu a:hover {
  color: var(--gold);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: inherit;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.2s;
}

.btn-primary {
  background: var(--gold);
  color: var(--navy);
}

.btn-primary:hover {
  background: var(--gold-light);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--navy);
  color: var(--navy);
}

.btn-outline:hover {
  background: var(--navy);
  color: var(--white);
}

.phone-link {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--navy);
  font-weight: 600;
}

.phone-link:hover {
  color: var(--gold);
}

/* Language switcher */
.lang-switcher {
  display: flex;
  align-items: center;
}

.lang-form {
  display: inline;
  margin: 0;
}

.lang-btn {
  padding: 8px 14px;
  font-size: 0.85rem;
  font-weight: 600;
  background: var(--gray);
  border: 1px solid #e5e7eb;
  border-radius: var(--radius);
  color: var(--navy);
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s;
}

.lang-btn:hover {
  background: var(--gold);
  color: var(--navy);
  border-color: var(--gold);
}

.mobile-lang-switcher {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.2);
}

.lang-form-inline {
  display: block;
}

.mobile-lang-switcher .lang-form-inline .mobile-btn {
  width: 100%;
  justify-content: center;
}

.user-dropdown {
  position: relative;
  z-index: 1001;
}

.premium-toggle {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 14px 6px 8px;
  background: var(--gray);
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 1px solid transparent;
}

.premium-toggle:hover {
  background: white;
  border-color: var(--gold);
  box-shadow: 0 4px 15px rgba(201, 162, 39, 0.15);
}

.user-avatar-small {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  border: 2px solid var(--white);
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.username-text {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy);
}

.toggle-icon {
  font-size: 0.8rem;
  color: var(--gray-dark);
}

.premium-glass-menu {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  min-width: 240px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 18px;
  box-shadow: 0 15px 40px rgba(10, 31, 68, 0.15);
  padding: 12px;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(15px) scale(0.95);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  transform-origin: top right;
}

.premium-glass-menu.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.dropdown-header {
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
}

.dropdown-header strong {
  font-size: 0.95rem;
  color: var(--navy);
}

.dropdown-header span {
  font-size: 0.8rem;
  color: var(--gray-dark);
}

.dropdown-divider {
  height: 1px;
  background: rgba(0,0,0,0.05);
  margin: 8px 0;
}

.dropdown-item {
  display: flex !important;
  align-items: center;
  gap: 12px;
  padding: 10px 16px !important;
  border-radius: 12px;
  color: var(--navy) !important;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.dropdown-item:hover {
  background: linear-gradient(90deg, #f8fafc 0%, #f1f5f9 100%);
  color: var(--gold) !important;
  transform: translateX(4px);
}

.item-icon {
  font-size: 1.1rem;
}

.logout-btn {
  width: 100%;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
}

.logout-btn:hover {
  background: #fff1f2 !important;
  color: #e11d48 !important;
}
\n
/* Mobile menu button - hamburger */
.mobile-menu-btn {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  width: 40px;
  height: 40px;
  min-width: 40px;
  min-height: 40px;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
  border-radius: var(--radius);
}

.mobile-menu-btn:hover {
  background: var(--gray);
}

.mobile-menu-btn .hamburger {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--navy);
  transition: all 0.3s ease;
}

.mobile-menu-btn[aria-expanded="true"] .hamburger:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.mobile-menu-btn[aria-expanded="true"] .hamburger:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn[aria-expanded="true"] .hamburger:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* Mobile nav overlay */
.mobile-nav-overlay {
  position: fixed;
  top: 56px;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  min-height: calc(100vh - 56px);
  min-height: calc(100dvh - 56px);
  background: rgba(10, 31, 68, 0.98);
  z-index: 999;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-nav-overlay[aria-hidden="false"] {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.mobile-nav {
  padding: 24px 20px 40px;
  max-width: 400px;
  margin: 0 auto;
}

.mobile-nav-menu {
  list-style: none;
  margin-bottom: 32px;
}

.mobile-nav-menu li {
  border-bottom: 1px solid rgba(255,255,255,0.15);
}

.mobile-nav-menu a {
  display: block;
  padding: 16px 0;
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--white);
}

.mobile-nav-menu a:hover {
  color: var(--gold);
}

.mobile-nav-auth {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mobile-nav-auth .mobile-btn {
  width: 100%;
  justify-content: center;
  padding: 14px 20px;
  border-color: rgba(255,255,255,0.5);
  color: var(--white);
}

.mobile-nav-auth .mobile-btn:hover {
  background: rgba(255,255,255,0.15);
  border-color: var(--white);
}

.mobile-nav-auth .btn-primary {
  background: var(--gold);
  color: var(--navy);
}

.whatsapp-nav {
  background: #25D366 !important;
  color: white !important;
}

/* ========== FOOTER ========== */
.site-footer {
  background: var(--navy);
  color: var(--white);
  padding: 40px 0 0;
  margin-top: 60px;
}

.footer-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 16px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,0.15);
}

.footer-col {
  min-width: 0;
}

.footer-about {
  max-width: 100%;
}

.footer-logo {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.footer-desc {
  color: rgba(255,255,255,0.8);
  font-size: 0.9rem;
  max-width: 100%;
  line-height: 1.6;
}

.footer-title {
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-links {
  list-style: none;
}

.footer-links a {
  color: rgba(255,255,255,0.8);
  font-size: 0.85rem;
  padding: 5px 0;
  display: block;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--gold);
  padding-left: 4px;
}

.footer-contact .footer-contact-item {
  color: rgba(255,255,255,0.8);
  font-size: 0.9rem;
  margin-bottom: 10px;
}

.footer-contact .footer-contact-item a {
  color: inherit;
}

.footer-contact .footer-contact-item a:hover {
  color: var(--gold);
}

.footer-whatsapp-btn {
  display: inline-block;
  margin-top: 12px;
  padding: 12px 24px;
  background: #25D366;
  color: white !important;
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: var(--radius);
  transition: opacity 0.2s;
}

.footer-whatsapp-btn:hover {
  opacity: 0.9;
  color: white !important;
}

.footer-bottom {
  padding: 20px 0;
  text-align: center;
  color: rgba(255,255,255,0.6);
  font-size: 0.8rem;
}

/* ========== HERO ========== */
.hero {
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: var(--white);
  text-align: center;
  padding: 60px 24px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--hero-bg, url('https://images.unsplash.com/photo-1600596542815-ffad4c1539a9?w=1920')) center/cover;
  opacity: 0.25;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 24px;
  line-height: 1.2;
}

.hero p {
  font-size: 1.2rem;
  opacity: 0.9;
  margin-bottom: 40px;
}

.hero-search {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-hover);
}

.hero-search input {
  flex: 1;
  padding: 18px 24px;
  border: none;
  font-size: 1rem;
  font-family: inherit;
}

.hero-search button {
  padding: 18px 32px;
  background: var(--gold);
  color: var(--navy);
  border: none;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
}

/* ========== SECTIONS ========== */
.section {
  padding: 80px 24px;
  max-width: 1400px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-header h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 16px;
}

.section-header p {
  font-size: 1.1rem;
  color: var(--gray-dark);
  max-width: 600px;
  margin: 0 auto;
}

/* ========== CARDS ========== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
}

.property-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all 0.3s;
}

.property-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.property-card-image {
  height: 220px;
  background: var(--gray);
  overflow: hidden;
}

.property-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.restricted-property-image {
  filter: blur(14px);
  transform: scale(1.03);
}

.property-card-body {
  padding: 24px;
}

.property-card-badge {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.badge-sale { background: #d1fae5; color: #065f46; }
.badge-sold { background: #fee2e2; color: #991b1b; }
.badge-rented { background: #e0e7ff; color: #3730a3; }
.badge-new { background: #fef3c7; color: #92400e; }

.property-card-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 8px;
}

.property-card-title {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.property-card-meta {
  display: flex;
  gap: 16px;
  color: var(--gray-dark);
  font-size: 0.9rem;
  margin-bottom: 16px;
}

.property-card .btn {
  width: 100%;
}

/* ========== TEAM CARDS ========== */
.team-card {
  width: 100%;
}
.team-card-image {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

/* ========== STATS ========== */
.stats-section {
  background: var(--navy);
  color: var(--white);
  padding: 60px 24px;
}

.stats-grid {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  text-align: center;
}

.stat-number {
  font-size: 3rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 8px;
}

.stat-label {
  font-size: 1rem;
  opacity: 0.9;
}

/* ========== WHY US ========== */
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.why-card {
  text-align: center;
  padding: 32px 24px;
  background: var(--gray);
  border-radius: var(--radius-lg);
  transition: all 0.2s;
}

.why-card:hover {
  background: var(--white);
  box-shadow: var(--shadow);
}

.why-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  background: var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.why-card h3 {
  font-size: 1.2rem;
  margin-bottom: 12px;
}

.why-card p {
  color: var(--gray-dark);
  font-size: 0.9rem;
}

/* ========== TESTIMONIALS ========== */
.testimonial-card {
  background: var(--white);
  padding: 32px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.testimonial-quote {
  font-size: 1.1rem;
  color: var(--navy);
  margin-bottom: 24px;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 16px;
}

.testimonial-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gray);
}

.testimonial-name {
  font-weight: 600;
}

.testimonial-role {
  font-size: 0.85rem;
  color: var(--gray-dark);
}

/* ========== CTA ========== */
.cta-section {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: var(--white);
  text-align: center;
  padding: 80px 24px;
}

.cta-section h2 {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.cta-section p {
  opacity: 0.9;
  margin-bottom: 32px;
}

.cta-section .btn-primary {
  background: var(--gold);
  color: var(--navy);
}

/* ========== FILTERS (Properties) ========== */
.page-with-filters {
  display: flex;
  gap: 32px;
  padding: 40px 24px;
  max-width: 1400px;
  margin: 0 auto;
  align-items: flex-start;
}

.filters-sidebar {
  width: 280px;
  flex-shrink: 0;
  background: var(--white);
  padding: 24px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.filters-sidebar h3 {
  font-size: 1.1rem;
  margin-bottom: 20px;
}

.filter-group {
  margin-bottom: 24px;
}

.filter-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 8px;
}

.filter-group select,
.filter-group input {
  width: 100%;
  padding: 12px;
  border: 1px solid #e5e7eb;
  border-radius: var(--radius);
  font-family: inherit;
}

.properties-grid {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

/* ========== PROPERTY DETAIL ========== */
.property-detail-hero {
  height: 500px;
  background: var(--gray);
  position: relative;
  overflow: hidden;
}

.property-detail-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ========== PROJECT IMAGE SLIDER ========== */
.project-slider {
  position: relative;
  width: 100%;
  height: 520px;
  background: var(--navy);
  overflow: hidden;
}

.slider-track {
  display: flex;
  height: 100%;
  transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.slider-slide {
  min-width: 100%;
  height: 100%;
  position: relative;
  flex-shrink: 0;
}

.slider-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Gradient overlay at bottom for readability */
.slider-slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.45) 0%, transparent 50%);
  pointer-events: none;
}

/* Caption */
.slider-caption {
  position: absolute;
  bottom: 60px;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 500;
  text-shadow: 0 1px 4px rgba(0,0,0,0.6);
  text-align: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
  white-space: nowrap;
}

.slider-caption.visible { opacity: 1; }

/* Prev / Next Buttons */
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(6px);
  border: 1.5px solid rgba(255,255,255,0.35);
  color: #fff;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.25rem;
  transition: background 0.2s, transform 0.2s;
  z-index: 10;
  user-select: none;
}

.slider-btn:hover {
  background: rgba(255,255,255,0.35);
  transform: translateY(-50%) scale(1.08);
}

.slider-btn-prev { left: 20px; }
.slider-btn-next { right: 20px; }

/* Dot indicators */
.slider-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.slider-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  border: none;
  cursor: pointer;
  transition: background 0.25s, transform 0.25s;
  padding: 0;
}

.slider-dot.active {
  background: var(--gold);
  transform: scale(1.25);
}

/* Image counter badge */
.slider-counter {
  position: absolute;
  top: 18px;
  right: 18px;
  background: rgba(0,0,0,0.5);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 20px;
  z-index: 10;
  letter-spacing: 0.5px;
}

@media (max-width: 480px) {
  .project-slider { height: 280px; }
  .slider-btn { width: 38px; height: 38px; font-size: 1rem; }
  .slider-btn-prev { left: 10px; }
  .slider-btn-next { right: 10px; }
}

.property-detail-body {
  max-width: 1400px;
  margin: -60px auto 0;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

.property-detail-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
}

.property-detail-main {
  background: var(--white);
  padding: 40px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.property-detail-sidebar {
  background: var(--white);
  padding: 32px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  height: fit-content;
  position: sticky;
  top: 100px;
}

.property-price-display {
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 24px;
}

/* ========== FORMS ========== */
.form-card {
  max-width: 600px;
  margin: 0 auto;
  background: var(--white);
  padding: 48px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  font-weight: 500;
  margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 18px;
  border: 1px solid #e5e7eb;
  border-radius: var(--radius);
  font-family: inherit;
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

/* ========== AUTH PAGES (Login, Signup) ========== */
.auth-page {
  min-height: calc(100vh - 56px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
}

.auth-card {
  width: 100%;
  max-width: 440px;
  background: var(--white);
  padding: 40px;
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

.auth-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
  text-align: center;
}

.auth-subtitle {
  color: var(--gray-dark);
  font-size: 0.95rem;
  margin-bottom: 28px;
  text-align: center;
}

.auth-alert {
  background: #fef2f2;
  color: #b91c1c;
  padding: 14px 18px;
  border-radius: var(--radius);
  margin-bottom: 20px;
  font-size: 0.9rem;
}

.auth-alert p {
  margin: 0;
}

.auth-alert-info {
  background: #eff6ff;
  color: #1d4ed8;
}

.auth-form .form-group {
  margin-bottom: 20px;
}

.auth-form .form-group input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.2);
}

.auth-submit {
  width: 100%;
  margin-top: 8px;
  padding: 14px 24px;
  font-size: 1rem;
}

.auth-footer {
  text-align: center;
  margin-top: 24px;
  font-size: 0.95rem;
  color: var(--gray-dark);
}

.auth-footer a {
  color: var(--gold);
  font-weight: 600;
}

.auth-footer a:hover {
  color: var(--navy);
  text-decoration: underline;
}

.auth-divider {
  text-align: center;
  color: var(--gray-dark);
  margin: 20px 0 16px;
  font-size: 0.9rem;
}

.auth-social-divider {
  margin-bottom: 0;
}

.btn-google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 12px 20px;
  background: #fff;
  color: #3c4043;
  border: 1px solid #dadce0;
  border-radius: var(--radius);
  font-weight: 500;
  font-size: 0.95rem;
  transition: background 0.2s, box-shadow 0.2s;
}

.btn-google:hover {
  background: #f8f9fa;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.auth-field-error {
  color: #b91c1c;
  font-size: 0.85rem;
  margin-top: 4px;
}

/* ========== SUBMIT PAGE ========== */
.submit-layout {
  display: flex;
  gap: 48px;
  max-width: 1000px;
  margin: 0 auto;
}

.submit-main {
  flex: 1;
}

.submit-sidebar {
  width: 300px;
  flex-shrink: 0;
}

.submit-sidebar-card {
  background: var(--gray);
  padding: 32px;
  border-radius: var(--radius-lg);
}

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.submit-actions {
  display: flex;
  justify-content: space-between;
  margin-top: 32px;
}

.submit-actions .btn-primary {
  margin-left: auto;
}

/* ========== STEPPER (Sell Property) ========== */
.stepper {
  display: flex;
  justify-content: center;
  margin-bottom: 48px;
  gap: 0;
}

.stepper-step {
  display: flex;
  align-items: center;
}

.stepper-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gray);
  color: var(--gray-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
}

.stepper-step.active .stepper-circle {
  background: var(--gold);
  color: var(--navy);
}

.stepper-step.completed .stepper-circle {
  background: var(--navy);
  color: var(--white);
}

.stepper-line {
  width: 80px;
  height: 2px;
  background: #e5e7eb;
}

.stepper-step.completed .stepper-line {
  background: var(--navy);
}

/* ========== PROJECT TABS ========== */
.tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 40px;
  justify-content: center;
}

.tab-btn {
  padding: 12px 28px;
  border: 2px solid var(--navy);
  background: transparent;
  border-radius: var(--radius);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  color: inherit;
  display: inline-block;
}

.tab-btn.active,
.tab-btn:hover {
  background: var(--navy);
  color: var(--white) !important;
}

/* ========== DASHBOARD SIDEBAR ========== */
.dashboard-layout {
  display: flex;
  min-height: calc(100vh - 56px);
}

.dashboard-sidebar {
  width: 280px;
  background: var(--navy);
  color: var(--white);
  padding: 32px 0;
}

.dashboard-sidebar a {
  display: block;
  padding: 14px 24px;
  color: rgba(255,255,255,0.9);
}

.dashboard-sidebar a:hover,
.dashboard-sidebar a.active {
  background: rgba(255,255,255,0.1);
  color: var(--gold);
}

.dashboard-main {
  flex: 1;
  padding: 40px;
}

/* ========== CONTACT PAGE ========== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.contact-info-card {
  background: var(--gray);
  padding: 40px;
  border-radius: var(--radius-lg);
}

.whatsapp-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #25D366 !important;
  color: white !important;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  margin-top: 16px;
}

.whatsapp-btn:hover {
  opacity: 0.9;
}

/* ========== FLOATING WHATSAPP ========== */
.floating-whatsapp {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background-color: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.floating-whatsapp:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.4);
}

.floating-whatsapp svg {
  width: 35px;
  height: 35px;
}

@media (max-width: 768px) {
  .floating-whatsapp {
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
  }
  .floating-whatsapp svg {
    width: 30px;
    height: 30px;
  }
}

/* ========== UTILITIES ========== */
.text-center { text-align: center; }
.mb-4 { margin-bottom: 24px; }
.mt-4 { margin-top: 24px; }

/* Pagination Component */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: 48px;
  width: 100%;
}

.pagination-btn {
  padding: 10px 18px;
  border-radius: var(--radius);
  border: 1px solid var(--navy-light);
  color: var(--navy);
  font-weight: 500;
  transition: all 0.2s;
  background: transparent;
}

.pagination-btn:hover {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

.pagination-current {
  padding: 10px 18px;
  background: var(--navy);
  color: var(--white);
  border: 1px solid var(--navy);
  border-radius: var(--radius);
  font-weight: 600;
  cursor: default;
}

/* ========== CONTACT INFO CARD (Premium) ========== */
.contact-info-card {
  background: var(--navy);
  color: var(--white);
  padding: 40px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-hover);
}

.contact-info-title {
  font-size: 1.75rem;
  margin-bottom: 32px;
  color: var(--gold);
}

.contact-info-items {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 32px;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.contact-info-icon {
  width: 44px;
  height: 44px;
  background: rgba(201, 162, 39, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 1.2rem;
  flex-shrink: 0;
  border: 1px solid rgba(201, 162, 39, 0.3);
}

.contact-info-text {
  display: flex;
  flex-direction: column;
}

.contact-info-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 4px;
}

.contact-info-value {
  font-size: 1.1rem;
  font-weight: 500;
  line-height: 1.4;
}

.contact-info-footer {
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.whatsapp-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #25D366 !important;
  color: white !important;
  padding: 14px 32px;
  border-radius: var(--radius);
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
  transition: all 0.3s;
}

.whatsapp-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

/* ========== CONTACT MAP ========== */
.contact-map-container {
    height: 450px;
    background: var(--gray);
    border-radius: var(--radius-lg);
    margin-top: 24px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-dark);
}

.contact-map-container iframe {
    width: 100% !important;
    height: 100% !important;
    border: 0;
}

/* Prevent body scroll when mobile menu open */
body.menu-open {
  overflow: hidden;
  position: fixed;
  width: 100%;
}

.contact-map-container {
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 300px;
  background: var(--gray);
}

.contact-map-container iframe {
  width: 100% !important;
  height: 100% !important;
  display: block;
}

/* ========== RESPONSIVE DESIGN ========== */

/* Tablet & Large Mobile (up to 991px) */
@media (max-width: 991px) {
  .header-right .btn-nav,
  .header-right .btn-list,
  .header-right .phone-link {
    display: none !important;
  }
  .header-right .dropdown {
    display: none !important;
  }
  .lang-switcher {
    display: flex !important;
  }
  .header-inner { padding: 0 20px; }
}

/* Medium Mobile (up to 768px) */
@media (max-width: 768px) {
  .section { padding: 48px 16px; }
  .section-header h2 { font-size: 1.75rem; }
  .hero h1 { font-size: 2rem; }
  .hero p { font-size: 1rem; }
  .hero-search { flex-direction: column; }
  .hero-search button { width: 100%; }
  
  .stats-grid { grid-template-columns: 1fr; gap: 32px; }
  .why-grid { grid-template-columns: 1fr; }
  .card-grid { grid-template-columns: 1fr; gap: 20px; }
  
  .page-with-filters { flex-direction: column; padding: 24px 16px; }
  .filters-sidebar { width: 100%; }
  .contact-grid { grid-template-columns: 1fr; }
  
  .dashboard-layout { flex-direction: column; }
  .dashboard-sidebar { width: 100%; }
  .property-card-image { height: 200px; }
  
  .property-detail-grid { grid-template-columns: 1fr; gap: 24px; }
  .property-detail-sidebar { position: static; margin-top: 16px; }
  
  .journey-card { flex-direction: column !important; gap: 12px !important; }
  .journey-card > div:first-child { margin-bottom: 8px; }
  
  /* Submit Page Mobile */
  .submit-layout { flex-direction: column; gap: 32px; }
  .submit-sidebar { width: 100%; }
  .form-grid-2 { grid-template-columns: 1fr; gap: 16px; }
  .stepper-circle { width: 36px; height: 36px; font-size: 0.9rem; }
  .stepper-line { width: 40px; }
  
  .floating-whatsapp { bottom: 20px; right: 20px; width: 50px; height: 50px; }
  .floating-whatsapp svg { width: 30px; height: 30px; }

  /* Center footer on mobile */
  .site-footer { text-align: center; }
  .footer-grid { gap: 40px; }
  .footer-col { display: flex; flex-direction: column; align-items: center; text-align: center; }
  .footer-desc { margin-left: auto; margin-right: auto; max-width: 300px; }
  .footer-links { width: 100%; padding: 0; }
  .footer-links a { padding-left: 0; padding-right: 0; }
  .footer-links a:hover { padding-left: 0; transform: translateY(-2px); }
  .footer-contact-item { width: 100%; justify-content: center; display: flex; gap: 8px; }
}

/* Desktop: Show nav, hide hamburger */
@media (min-width: 992px) {
  .nav-desktop { display: block; }
  .mobile-menu-btn { display: none !important; }
  .mobile-nav-overlay { display: none !important; }

  .header-right .btn-nav,
  .header-right .btn-list,
  .header-right .phone-link,
  .header-right .dropdown {
    display: flex !important;
  }

  .header-inner { padding: 0 24px; gap: 24px; }
  .logo { font-size: 1.4rem; }
  .header-right { gap: 16px; }

  .phone-num { display: inline; }
}

/* Small Mobile (up to 480px) */
@media (max-width: 480px) {
  .site-header { min-height: 52px; }
  .header-inner { min-height: 52px; padding: 0 12px; }
  .mobile-nav-overlay { top: 52px; min-height: calc(100vh - 52px); min-height: calc(100dvh - 52px); }
  
  .logo-text { font-size: 1.1rem; }
  .section { padding: 32px 12px; }
  .hero { min-height: 70vh; padding: 40px 16px; }
  .hero h1 { font-size: 1.75rem; }
  
  .btn { padding: 10px 18px; font-size: 0.9rem; min-height: 44px; }
  .property-detail-hero { height: 280px; }
  .property-detail-body { margin-top: -40px; padding: 0 12px; }
  
  .form-card, .auth-card { padding: 24px 20px; }
  .auth-page { padding: 24px 16px; }
  .cta-section h2 { font-size: 1.5rem; }
  .cta-section { padding: 48px 16px; }
  .stat-number { font-size: 2.5rem; }
}

/* Touch Optmizations */
@media (hover: none) and (pointer: coarse) {
  .footer-links a, .nav-menu a {
    min-height: 44px;
    display: flex;
    align-items: center;
  }
  .mobile-menu-btn {
    min-width: 44px;
    min-height: 44px;
  }
}

/* Large Desktop (min 1200px) */
@media (min-width: 1200px) {
  .header-inner { padding: 0 32px; }
  .logo { font-size: 1.5rem; }
  .nav-menu { gap: 28px; }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 48px; }
  .footer-about { max-width: 300px; }
  .footer-desc { max-width: 280px; }
  .site-footer { padding: 60px 0 0; margin-top: 80px; }
  .footer-bottom { padding: 24px 0; font-size: 0.85rem; }
}
