/* CarSwitch 100% Responsive Design System CSS for Islamabad Estates */
:root {
  --color-electric-blue: #0454F2;
  --color-royal-blue: #0038A7;
  --color-midnight-navy: #141652;
  --color-dark-indigo: #1E3B8B;
  --color-light-ice-blue: #EFF4FF;
  --color-coral-red: #FF5450;
  --color-whatsapp-green: #25D366;
  --font-primary: 'Segoe UI', Inter, Arial, -apple-system, BlinkMacSystemFont, sans-serif;
  --font-arabic: Tahoma, Arial, sans-serif;
}

/* Base Mobile Reset */
html, body {
  font-family: var(--font-primary);
  background-color: #FFFFFF;
  color: #1C1D26;
  overflow-x: hidden;
  width: 100%;
  -webkit-tap-highlight-color: transparent;
  scroll-behavior: smooth;
}

.font-changa {
  font-family: var(--font-arabic);
}

/* Hero Radial & Linear Gradient Header */
.carswitch-hero-bg {
  background-color: #141652;
  background-image: radial-gradient(ellipse 90% 55% at 62% 8%, #0454F2 0%, rgba(3,66,191,0.85) 35%, transparent 72%), linear-gradient(180deg, #1E3B8B 0%, #141652 100%);
}

.carswitch-hero-arc {
  border-bottom-left-radius: 50% 36px;
  border-bottom-right-radius: 50% 36px;
}

@media (min-width: 640px) {
  .carswitch-hero-arc {
    border-bottom-left-radius: 50% 48px;
    border-bottom-right-radius: 50% 48px;
  }
}

@media (min-width: 1024px) {
  .carswitch-hero-arc {
    border-bottom-left-radius: 50% 56px;
    border-bottom-right-radius: 50% 56px;
  }
}

/* Floating White Pill Header */
.carswitch-pill-navbar {
  background-color: #FFFFFF;
  border-radius: 9999px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.02);
  padding: 0.6rem 1.25rem;
  transition: all 0.3s ease;
}

@media (max-width: 640px) {
  .carswitch-pill-navbar {
    padding: 0.5rem 1rem;
    border-radius: 1.25rem;
  }
}

/* CarSwitch Property Card Styling (Mobile & Desktop) */
.carswitch-card {
  background: #FFFFFF;
  border-radius: 1.5rem; /* rounded-3xl equivalent */
  border: 1px solid #E5E8F0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.carswitch-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 30px -10px rgba(4, 84, 242, 0.14);
  border-color: #D6E5FF;
}

@media (max-width: 640px) {
  .carswitch-card {
    border-radius: 1.25rem;
  }
  .carswitch-card:hover {
    transform: none; /* Smooth touch response on mobile */
  }
}

/* High-Contrast Badges */
.badge-inspection-green {
  background-color: #C9F76F;
  color: #141652;
  font-weight: 800;
  font-size: 0.7rem;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  white-space: nowrap;
}

.badge-coral-red {
  background-color: #FF5450;
  color: #FFFFFF;
  font-weight: 800;
  font-size: 0.7rem;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  white-space: nowrap;
}

.badge-ice-blue {
  background-color: #EFF4FF;
  color: #0454F2;
  font-weight: 800;
  font-size: 0.7rem;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  white-space: nowrap;
}

/* Primary CTA Button */
.btn-primary-blue {
  background-color: #0454F2;
  color: #FFFFFF;
  font-weight: 800;
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.btn-primary-blue:hover {
  background-color: #0038A7;
  box-shadow: 0 8px 20px rgba(4, 84, 242, 0.3);
}

.btn-primary-blue:active {
  transform: scale(0.98);
}

/* Secondary Button */
.btn-outline-navy {
  border: 2px solid #0038A7;
  color: #0038A7;
  font-weight: 700;
  padding: 0.6rem 1.25rem;
  border-radius: 0.75rem;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-outline-navy:hover {
  background-color: #EFF4FF;
  color: #0454F2;
}

/* WhatsApp Floating Button */
.btn-whatsapp-pill {
  background-color: #25D366;
  color: #FFFFFF;
  font-weight: 800;
  padding: 0.6rem 1.25rem;
  border-radius: 9999px;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.2s ease;
}

.btn-whatsapp-pill:hover {
  background-color: #20BD5A;
  transform: translateY(-1px);
}

/* Touch Friendly Mobile Inputs */
input, select, textarea, button {
  font-family: inherit;
}

@media (max-width: 640px) {
  input[type="text"], input[type="number"], input[type="email"], select {
    font-size: 14px !important; /* Prevents auto-zoom on iOS safari */
  }
}


/* =========================================================
   Responsive hardening & alignment fixes (2026-08-24)
   Keeps the theme fully usable when external CDNs are blocked.
   ========================================================= */
*, *::before, *::after {
  box-sizing: border-box;
}

img {
  max-width: 100%;
}

a, button, input, select, textarea {
  -webkit-tap-highlight-color: transparent;
}

/* Consistent button geometry so CTAs do not sit up/down from each other. */
.btn-primary-blue,
.btn-outline-navy,
.btn-whatsapp-pill,
.ui-pill-btn {
  min-height: 40px;
  line-height: 1.15;
  vertical-align: middle;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary-blue i,
.btn-outline-navy i,
.btn-whatsapp-pill i,
.ui-pill-btn i {
  line-height: 1;
  flex: 0 0 auto;
}

/* Header */
.site-navbar {
  min-height: 64px;
}
.site-brand {
  min-width: 0;
  flex: 1 1 auto;
}
.site-brand-copy {
  min-width: 0;
}
.site-brand-title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.header-actions {
  flex: 0 0 auto;
}
.mobile-menu-panel a {
  min-height: 44px;
  display: flex;
  align-items: center;
}

/* Hero */
.hero-copy {
  min-width: 0;
}
.hero-cta-row > a {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.hero-search-tabs {
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scrollbar-width: none;
}
.hero-search-tabs::-webkit-scrollbar {
  display: none;
}
.hero-search-tabs > a {
  flex: 0 0 auto;
  min-height: 36px;
  white-space: nowrap;
}
.hero-search-form select,
.hero-search-form button {
  min-height: 42px;
}

/* Home/card alignment */
.section-heading-row > * {
  min-width: 0;
}
.property-grid > * {
  min-width: 0;
}
.home-property-card {
  min-width: 0;
  height: 100%;
}
.home-property-card .property-media {
  background: #eef3ff;
}
.home-property-card .property-body {
  min-width: 0;
  height: 100%;
}
.home-property-card .property-title {
  overflow-wrap: anywhere;
}
.home-property-card .property-price-box {
  margin-top: auto;
}
.home-property-card .property-footer {
  margin-top: auto;
  min-height: 44px;
  gap: 12px;
}
.home-property-card .property-footer > * {
  min-width: 0;
}
.home-property-card .property-footer .btn-whatsapp-pill,
.home-property-card .property-footer .btn-outline-navy {
  flex: 0 0 auto;
}

.society-grid > a {
  min-width: 0;
  height: 100%;
}

.construction-feature .btn-primary-blue {
  min-height: 52px;
}

.calculator-split > div,
.roi-row > span {
  min-width: 0;
}

/* Public footer */
.footer-badges {
  flex-wrap: wrap;
  justify-content: center;
}
.footer-badges > span {
  min-height: 32px;
}

/* Admin pages: mobile first, no fixed 256px sidebar crushing the page. */
.admin-page {
  width: 100%;
  min-width: 0;
  flex-direction: column;
  font-family: var(--font-primary);
}
.admin-sidebar {
  width: 100% !important;
  padding: 14px 16px !important;
  flex: 0 0 auto !important;
}
.admin-sidebar > div:first-child {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.admin-sidebar nav {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
}
.admin-sidebar nav::-webkit-scrollbar {
  display: none;
}
.admin-sidebar nav a {
  flex: 0 0 auto;
  white-space: nowrap;
  min-height: 42px;
}
.admin-sidebar > div:last-child {
  display: none;
}
.admin-main {
  width: 100%;
  min-width: 0;
  padding: 16px !important;
  overflow: visible !important;
}
.admin-topbar {
  align-items: flex-start !important;
  gap: 16px;
  flex-wrap: wrap;
}
.admin-topbar > div:first-child {
  min-width: 0;
  flex: 1 1 260px;
}
.admin-topbar h1 {
  overflow-wrap: anywhere;
}
.admin-main table {
  min-width: 720px;
}

@media (max-width: 767px) {
  .carswitch-hero-arc {
    border-bottom-left-radius: 42% 26px;
    border-bottom-right-radius: 42% 26px;
  }

  .site-navbar {
    min-height: 58px;
    padding: 0.5rem 0.75rem;
    gap: 8px !important;
  }
  .site-brand {
    gap: 8px !important;
  }
  .site-brand img {
    width: 34px !important;
    height: 34px !important;
    border-radius: 10px !important;
  }
  .site-brand-title {
    font-size: 0.9rem !important;
    max-width: 150px;
  }
  .site-brand-subtitle {
    display: none !important;
  }
  .header-actions {
    gap: 6px !important;
  }
  .header-whatsapp {
    width: 40px;
    height: 40px;
    min-height: 40px;
    padding: 0 !important;
    justify-content: center;
  }
  #mobileMenuBtn {
    width: 40px;
    height: 40px;
    padding: 0 !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  #mobileMenuBtn i {
    display: none;
  }
  #mobileMenuBtn::before {
    content: "☰";
    font-size: 1.35rem;
    line-height: 1;
    font-weight: 800;
  }
  .header-whatsapp i {
    display: none;
  }
  .header-whatsapp-fallback {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    font-size: 0.66rem;
    font-weight: 900;
    letter-spacing: -0.03em;
  }

  .hero-section {
    padding-top: 2rem !important;
    padding-bottom: 1.5rem !important;
  }
  .hero-title {
    font-size: clamp(2.1rem, 10vw, 3rem) !important;
    line-height: 1.05 !important;
  }
  .hero-subtitle {
    font-size: 0.9rem !important;
    line-height: 1.55 !important;
  }
  .hero-cta-row {
    gap: 10px !important;
  }
  .hero-cta-row > a {
    width: 100% !important;
    padding-inline: 18px !important;
  }
  .hero-search-card {
    border-radius: 20px !important;
    padding: 14px !important;
  }
  .hero-search-tabs {
    margin-inline: -2px;
    padding-inline: 2px;
  }
  .hero-search-tabs {
    gap: 6px !important;
  }
  .hero-search-tabs > a {
    flex: 1 1 0;
    min-width: 0;
    padding: 8px 7px !important;
    justify-content: center;
    font-size: 0.67rem !important;
  }
  .hero-search-tabs > a i {
    display: none;
  }

  .public-main {
    margin-top: 20px !important;
    row-gap: 2.75rem !important;
  }
  .section-heading-row {
    margin-bottom: 20px !important;
    gap: 10px !important;
  }
  .section-heading-row h2 {
    font-size: 1.45rem !important;
    line-height: 1.18 !important;
  }

  .carswitch-card {
    border-radius: 18px;
  }
  .home-property-card .property-media {
    height: 210px !important;
    width: 100% !important;
  }
  .home-property-card .property-body {
    width: 100% !important;
    padding: 18px !important;
  }
  .home-property-card .property-footer {
    flex-wrap: wrap;
  }

  .societies-panel,
  .construction-feature,
  .calculator-card {
    padding: 20px !important;
    border-radius: 20px !important;
  }
  .societies-panel h2,
  .construction-feature h2 {
    font-size: 1.6rem !important;
    line-height: 1.2 !important;
  }
  .society-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }
  .society-grid > a {
    padding: 14px 8px !important;
  }
  .construction-feature {
    align-items: stretch !important;
  }
  .construction-feature .construction-points {
    grid-template-columns: 1fr !important;
  }
  .construction-feature .construction-cta {
    width: 100% !important;
    text-align: left !important;
  }
  .construction-feature .btn-primary-blue {
    width: 100%;
  }
  .calculator-card {
    padding: 20px !important;
  }
  .calculator-split {
    grid-template-columns: 1fr !important;
  }
  .roi-row {
    align-items: flex-start !important;
    flex-direction: column;
    gap: 6px;
  }

  footer {
    margin-top: 3rem !important;
    padding-top: 2.5rem !important;
  }
  .footer-badges {
    width: 100%;
    gap: 8px !important;
  }
  .footer-badges > span {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .admin-main .p-8,
  .admin-main .md\:p-12,
  .admin-main .md\:p-14 {
    padding: 18px !important;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .site-brand-title {
    max-width: 190px;
  }
  .public-main {
    row-gap: 3.5rem !important;
  }
  .property-grid {
    grid-template-columns: 1fr !important;
  }
  .home-property-card .property-media {
    min-height: 260px;
  }
}

@media (min-width: 1024px) {
  .admin-page {
    flex-direction: row;
    align-items: stretch;
  }
  .admin-sidebar {
    width: 16rem !important;
    min-height: 100vh;
    position: sticky;
    top: 0;
    height: 100vh;
    padding: 24px !important;
  }
  .admin-sidebar > div:first-child {
    display: block;
  }
  .admin-sidebar nav {
    display: block;
    overflow: visible;
    padding-bottom: 0;
  }
  .admin-sidebar nav a {
    white-space: normal;
  }
  .admin-sidebar > div:last-child {
    display: block;
  }
  .admin-main {
    padding: 32px !important;
    overflow-y: auto !important;
  }
}

/* =========================================================
   Mobile theme parity + legacy browser hardening (m3)
   ========================================================= */
/* Plain-color fallbacks override modern OKLCH palette values from Tailwind v4. */
:root {
  --color-red-50:#fef2f2; --color-red-100:#fee2e2; --color-red-500:#ef4444; --color-red-700:#b91c1c;
  --color-green-50:#f0fdf4; --color-green-100:#dcfce7; --color-green-300:#86efac; --color-green-500:#22c55e; --color-green-600:#16a34a; --color-green-700:#15803d;
  --color-emerald-50:#ecfdf5; --color-emerald-100:#d1fae5; --color-emerald-500:#10b981; --color-emerald-600:#059669; --color-emerald-700:#047857; --color-emerald-800:#065f46;
  --color-blue-50:#eff6ff; --color-blue-100:#dbeafe; --color-blue-200:#bfdbfe; --color-blue-300:#93c5fd; --color-blue-700:#1d4ed8; --color-blue-900:#1e3a8a;
  --color-indigo-50:#eef2ff;
  --color-gray-50:#f9fafb; --color-gray-100:#f3f4f6; --color-gray-200:#e5e7eb; --color-gray-300:#d1d5db; --color-gray-400:#9ca3af; --color-gray-500:#6b7280; --color-gray-600:#4b5563; --color-gray-700:#374151; --color-gray-800:#1f2937;
}

/* Do not rely on Tailwind v4 OKLAB gradient interpolation on mobile. */
.societies-panel {
  background-color: #141652;
  background-image: linear-gradient(135deg, #141652 0%, #1E3B8B 100%) !important;
}

@media (max-width: 767px) {
  /* Keep the same desktop visual language on phones instead of hiding it. */
  .carswitch-hero-bg {
    background-color: #141652 !important;
    background-image:
      radial-gradient(ellipse 105% 42% at 68% 0%, #0454F2 0%, #0648C9 38%, rgba(4,84,242,0) 74%),
      linear-gradient(180deg, #1E3B8B 0%, #141652 100%) !important;
  }

  .hero-section > .grid {
    gap: 22px !important;
  }

  .hero-visual {
    display: flex !important;
    justify-content: center !important;
    width: 100% !important;
    margin-top: 2px;
  }
  .hero-visual > div {
    width: 100% !important;
    max-width: 360px !important;
  }
  .hero-visual img {
    display: block !important;
    width: 100% !important;
    aspect-ratio: 16 / 9;
    object-fit: cover !important;
    border-radius: 18px !important;
    animation: none !important;
  }

  /* Navbar keeps the desktop pill character while fitting a 320px device. */
  .carswitch-pill-navbar {
    border-radius: 22px !important;
    box-shadow: 0 10px 28px rgba(0,0,0,.12) !important;
  }
  .site-brand-title {
    color: #141652 !important;
    font-weight: 800 !important;
  }
  .header-whatsapp,
  #mobileMenuBtn {
    flex: 0 0 40px !important;
  }

  /* Search card and controls use a consistent desktop-style radius/alignment. */
  .hero-search-card {
    box-shadow: 0 18px 45px rgba(7,20,79,.24) !important;
    border: 1px solid #eef2f7 !important;
  }
  .hero-search-form {
    gap: 10px !important;
  }
  .hero-search-form select,
  .hero-search-form button {
    width: 100% !important;
    min-height: 44px !important;
    border-radius: 12px !important;
  }

  /* Property cards retain the same navy/blue visual hierarchy as desktop. */
  .home-property-card {
    box-shadow: 0 7px 24px rgba(20,22,82,.08) !important;
    border-color: #e4e9f3 !important;
  }
  .home-property-card .property-media {
    height: 210px !important;
  }
  @supports (aspect-ratio: 16 / 9) {
    .home-property-card .property-media {
      aspect-ratio: 16 / 9;
      height: auto !important;
    }
  }
  .home-property-card .property-price-box {
    border-radius: 14px !important;
  }
  .home-property-card .property-footer {
    width: 100%;
    align-items: center !important;
  }
  .home-property-card .property-footer .btn-whatsapp-pill,
  .home-property-card .property-footer .btn-outline-navy {
    min-height: 38px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .societies-panel {
    box-shadow: 0 16px 36px rgba(20,22,82,.18) !important;
  }

  /* Footer stays visually structured instead of collapsing into a plain text block. */
  footer .max-w-7xl > .grid {
    gap: 28px !important;
  }
  footer h4 {
    margin-bottom: 12px !important;
  }
}

/* Extra narrow phones */
@media (max-width: 359px) {
  .site-brand-title { font-size: .78rem !important; max-width: 118px !important; }
  .site-brand img { width: 32px !important; height: 32px !important; }
  .header-whatsapp, #mobileMenuBtn { flex-basis: 36px !important; width: 36px !important; height: 36px !important; min-height: 36px !important; }
  .hero-title { font-size: 2rem !important; }
  .hero-search-tabs > a { font-size: .6rem !important; padding-inline: 5px !important; }
}

/* =========================================================
   Client feedback update - 2026-08-26 (m4)
   Responsive logo strip + Faisal Mosque curved hero artwork
   ========================================================= */

/* Header strip: desktop/laptop has its own elongated profile. */
.site-navbar {
  position: relative;
  isolation: isolate;
}

.site-brand-strip {
  position: relative;
  z-index: 2;
  max-width: 320px;
  padding: 6px 30px 6px 6px;
  border: 1px solid rgba(4, 84, 242, 0.13);
  background: linear-gradient(90deg, #f2f6ff 0%, #ffffff 74%);
  border-radius: 999px 30px 30px 999px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 4px 14px rgba(20,22,82,.05);
}

.site-brand-strip::after {
  content: "";
  position: absolute;
  z-index: -1;
  top: 7px;
  right: -10px;
  width: 26px;
  height: calc(100% - 14px);
  border-radius: 0 999px 999px 0;
  background: linear-gradient(180deg, var(--color-electric-blue), var(--color-royal-blue));
  transform: skewX(-14deg);
  box-shadow: 5px 0 13px rgba(4,84,242,.16);
}

.site-brand-strip img {
  flex: 0 0 auto;
  box-shadow: 0 6px 16px rgba(20,22,82,.13);
}

@media (min-width: 1024px) {
  .carswitch-pill-navbar {
    border-radius: 999px 30px 30px 999px;
    padding: .55rem .95rem .55rem .6rem;
    border: 1px solid rgba(255,255,255,.72);
    box-shadow: 0 14px 35px -14px rgba(5,18,67,.32), 0 4px 10px rgba(5,18,67,.05);
  }

  .site-brand-strip {
    min-width: 275px;
  }
}

/* Faisal Mosque: the image sits inside the blue curve, not as a plain card. */
.faisal-curve-stage {
  position: relative;
  width: min(100%, 500px);
  min-height: 430px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px 12px 30px 20px;
}

.faisal-curve-glow {
  position: absolute;
  inset: 9% 1% 5% 6%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 58% 48%, rgba(201,247,111,.27) 0%, rgba(4,84,242,.22) 48%, rgba(4,84,242,0) 72%);
  filter: blur(18px);
  pointer-events: none;
}

.faisal-curve-frame {
  position: relative;
  z-index: 2;
  width: min(100%, 425px);
  aspect-ratio: 4 / 5;
  padding: 10px;
  overflow: hidden;
  background: linear-gradient(145deg, #4ab9ff 0%, #0454F2 48%, #0038A7 100%);
  border: 1px solid rgba(255,255,255,.34);
  border-radius: 46% 54% 30% 70% / 17% 18% 82% 83%;
  box-shadow:
    0 28px 55px rgba(1,18,72,.34),
    0 0 0 8px rgba(4,84,242,.08),
    inset 0 1px 0 rgba(255,255,255,.45);
}

.faisal-curve-frame::before {
  content: "";
  position: absolute;
  z-index: 4;
  inset: 8px;
  border: 1px solid rgba(255,255,255,.26);
  border-radius: inherit;
  pointer-events: none;
}

.faisal-curve-frame::after {
  content: "";
  position: absolute;
  z-index: 5;
  width: 72%;
  height: 28%;
  right: -12%;
  top: -7%;
  border: 6px solid rgba(97,188,255,.86);
  border-left-color: transparent;
  border-bottom-color: transparent;
  border-radius: 50%;
  transform: rotate(10deg);
  pointer-events: none;
}

.faisal-mosque-photo {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: auto !important;
  object-fit: cover !important;
  object-position: 50% 45% !important;
  border-radius: 44% 52% 28% 68% / 15% 16% 80% 82% !important;
  transform: scale(1.015);
  animation: none !important;
}

.faisal-curve-sheen {
  position: absolute;
  z-index: 3;
  inset: 10px;
  border-radius: inherit;
  background: linear-gradient(122deg, rgba(255,255,255,.13) 0%, rgba(255,255,255,0) 35%, rgba(4,84,242,.08) 100%);
  pointer-events: none;
}

.faisal-location-chip {
  position: absolute;
  z-index: 7;
  right: 5%;
  bottom: 4%;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 8px 13px;
  border: 1px solid rgba(255,255,255,.32);
  border-radius: 999px;
  background: rgba(255,255,255,.94);
  color: #141652;
  font-size: .72rem;
  font-weight: 800;
  box-shadow: 0 12px 30px rgba(2,17,68,.25);
  backdrop-filter: blur(8px);
}

.faisal-location-chip i {
  color: var(--color-electric-blue);
}

/* Tablet keeps the full header strip but switches to a compact asymmetric profile. */
@media (min-width: 768px) and (max-width: 1023px) {
  .hero-visual {
    display: flex !important;
    width: 100% !important;
    justify-content: center !important;
  }

  .faisal-curve-stage {
    width: min(100%, 470px);
    min-height: 390px;
  }

  .faisal-curve-frame {
    width: min(100%, 390px);
  }

  .carswitch-pill-navbar {
    border-radius: 22px 22px 34px 16px !important;
    padding: .55rem .75rem !important;
    border-left: 4px solid var(--color-electric-blue);
  }

  .site-brand-strip {
    max-width: 250px;
    padding-right: 20px;
    border-radius: 18px 8px 24px 18px;
  }

  .site-brand-strip::after {
    right: -7px;
    width: 18px;
  }
}

/* Mobile gets a deliberately separate strip shape instead of a scaled desktop pill. */
@media (max-width: 767px) {
  .carswitch-pill-navbar {
    position: relative;
    border-radius: 18px 18px 30px 12px !important;
    border: 1px solid rgba(4,84,242,.13);
    border-left: 4px solid var(--color-electric-blue);
    padding: .48rem .55rem !important;
    box-shadow: 0 12px 30px rgba(5,18,67,.17) !important;
  }

  .carswitch-pill-navbar::after {
    content: "";
    position: absolute;
    left: 22px;
    right: 88px;
    bottom: -3px;
    height: 4px;
    border-radius: 0 0 999px 999px;
    background: linear-gradient(90deg, var(--color-electric-blue), rgba(4,84,242,0));
    pointer-events: none;
  }

  .site-brand-strip {
    flex: 1 1 auto;
    max-width: min(58vw, 205px);
    padding: 4px 10px 4px 4px;
    border-radius: 15px 7px 22px 15px;
    background: linear-gradient(100deg, #eff4ff 0%, #ffffff 88%);
    box-shadow: none;
  }

  .site-brand-strip::after {
    display: none;
  }

  .site-brand-strip .site-brand-copy {
    min-width: 0;
  }

  .site-brand-strip .site-brand-title {
    max-width: 130px !important;
    font-size: .82rem !important;
    letter-spacing: -.025em;
  }

  .hero-visual {
    margin-top: 6px !important;
  }

  .hero-visual > .faisal-curve-stage {
    width: 100% !important;
    max-width: 370px !important;
  }

  .faisal-curve-stage {
    min-height: 0;
    padding: 10px 6px 22px;
  }

  .faisal-curve-frame {
    width: min(100%, 350px);
    aspect-ratio: 16 / 10;
    padding: 7px;
    border-radius: 24px 68px 30px 64px;
    box-shadow: 0 20px 42px rgba(1,18,72,.30), 0 0 0 6px rgba(4,84,242,.07);
    animation: none !important;
  }

  .faisal-curve-frame::before {
    inset: 6px;
    border-radius: 19px 61px 24px 57px;
  }

  .faisal-curve-frame::after {
    width: 58%;
    height: 32%;
    top: -12%;
    right: -8%;
    border-width: 4px;
  }

  .hero-visual .faisal-mosque-photo {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    aspect-ratio: auto !important;
    object-fit: cover !important;
    object-position: 50% 43% !important;
    border-radius: 19px 61px 24px 57px !important;
  }

  .faisal-location-chip {
    right: 2%;
    bottom: 1%;
    min-height: 30px;
    padding: 6px 10px;
    font-size: .66rem;
  }
}

@media (max-width: 359px) {
  .site-brand-strip {
    max-width: 158px;
  }

  .site-brand-strip .site-brand-title {
    max-width: 100px !important;
    font-size: .72rem !important;
  }

  .site-brand-strip img {
    width: 30px !important;
    height: 30px !important;
  }
}

/* =========================================================
   Multi-page service journey + refined hero/footer treatment
   Client specification implementation - 2026-08-27 (p1)
   ========================================================= */

/* Synchronize the main hero curve on both ends. */
.carswitch-hero-arc {
  border-bottom-left-radius: 48% 54px !important;
  border-bottom-right-radius: 48% 54px !important;
}

.site-masthead { position: relative; z-index: 20; }
.masthead-panel {
  min-height: 64px;
  padding: 9px 12px 9px 10px !important;
  border-radius: 22px !important;
  background: rgba(255,255,255,.97) !important;
  border: 1px solid rgba(255,255,255,.78) !important;
  box-shadow: 0 16px 42px rgba(2,17,68,.18) !important;
  backdrop-filter: blur(14px);
}
.masthead-brand {
  min-width: 0;
  flex: 1 1 auto;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}
.masthead-brand::after { display: none !important; }
.masthead-brand img {
  flex: 0 0 auto;
  border: 1px solid #e7ecf6;
  box-shadow: 0 6px 15px rgba(20,22,82,.12);
}
.masthead-brand .site-brand-title { color: #141652 !important; }
.masthead-brand .site-brand-subtitle { color: #0454F2 !important; margin-top: 4px; display: block; }
.header-location {
  min-height: 40px;
  padding: 0 13px;
  border-radius: 999px;
  background: #f4f7fd;
  border: 1px solid #e3e9f3;
  color: #334155;
}
.header-location i { color: #0454F2; }
.header-whatsapp,
.menu-toggle {
  min-height: 42px;
  height: 42px;
  border-radius: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  transition: .2s ease;
}
.header-whatsapp {
  padding: 0 14px;
  gap: 7px;
  color: #087f3e;
  background: #effbf4;
  border: 1px solid #ccefd9;
  box-shadow: none;
}
.header-whatsapp:hover { background: #e3f8eb; color: #067239; }
.header-whatsapp i { font-size: 1.15rem; }
.header-whatsapp-fallback { display: none; }
.menu-toggle {
  width: 42px;
  padding: 0;
  color: #0454F2;
  background: #eff4ff;
  border: 1px solid #d7e4ff;
}
.menu-toggle:hover { background: #e4edff; }
.menu-fallback { display: none; font-size: 1.15rem; line-height: 1; }

.mobile-menu-wrap { margin-top: 10px; }
.mobile-menu-panel {
  display: grid;
  grid-template-columns: repeat(5, minmax(0,1fr));
  gap: 8px;
  padding: 10px;
  border-radius: 18px;
  background: rgba(255,255,255,.98);
  border: 1px solid #e6ebf4;
  box-shadow: 0 18px 40px rgba(2,17,68,.16);
}
.mobile-menu-panel a {
  min-height: 44px;
  padding: 9px 10px;
  border: 0 !important;
  border-radius: 12px;
  background: #f7f9fc;
  color: #334155;
  font-size: .75rem;
  font-weight: 800;
  justify-content: center;
  gap: 6px;
  text-align: center;
}
.mobile-menu-panel a span { color: #0454F2; font-size: .66rem; }
.mobile-menu-panel a.is-active { background: #0454F2; color: #fff; }
.mobile-menu-panel a.is-active span { color: #c9f76f; }

.hero-section { position: relative; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.08);
  color: #d9e7ff;
  font-size: .69rem;
  line-height: 1;
  font-weight: 900;
  letter-spacing: .12em;
}
.hero-title span { color: #c9f76f; }
.hero-subtitle { color: #dce7ff !important; line-height: 1.65; }
.hero-primary-cta,
.hero-secondary-cta {
  width: auto;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: .82rem;
  font-weight: 900;
  text-align: center;
}
.hero-primary-cta { background: #c9f76f; color: #141652; box-shadow: 0 14px 28px rgba(5,18,67,.22); }
.hero-primary-cta:hover { background: #d5fb8a; transform: translateY(-1px); }
.hero-secondary-cta { background: rgba(255,255,255,.96); color: #141652; border: 1px solid rgba(255,255,255,.5); }
.hero-secondary-cta:hover { background: #fff; }
.hero-trust-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 9px;
  color: #c9d7f7;
  font-size: .72rem;
  font-weight: 700;
}
.hero-trust-row span {
  display: inline-flex;
  gap: 5px;
  align-items: center;
  min-height: 30px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.1);
  background: rgba(8,24,83,.28);
}
.hero-trust-row b { color: #fff; }

/* Refined, symmetrical shield: decorative bubbles/arcs removed. */
.faisal-shield-stage {
  position: relative;
  width: min(100%, 430px) !important;
  min-height: 430px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 10px 30px;
}
.faisal-shield-halo {
  position: absolute;
  inset: 15% 9% 10%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201,247,111,.17) 0%, rgba(4,84,242,.18) 45%, rgba(4,84,242,0) 72%);
  filter: blur(20px);
}
.faisal-shield-frame {
  position: relative;
  z-index: 2;
  width: min(100%, 360px);
  aspect-ratio: 4 / 5;
  overflow: hidden;
  clip-path: polygon(50% 0, 93% 12%, 93% 67%, 50% 100%, 7% 67%, 7% 12%);
  background: #0454f2;
  filter: drop-shadow(0 25px 30px rgba(1,16,63,.34));
}
.faisal-shield-frame::before {
  content: "";
  position: absolute;
  z-index: 4;
  inset: 8px;
  clip-path: polygon(50% 0, 93% 12%, 93% 67%, 50% 100%, 7% 67%, 7% 12%);
  border: 2px solid rgba(255,255,255,.58);
  pointer-events: none;
}
.faisal-shield-frame::after { display: none !important; }
.faisal-shield-frame .faisal-mosque-photo,
.hero-visual .faisal-shield-frame .faisal-mosque-photo {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: cover !important;
  object-position: 65% 48% !important;
  border-radius: 0 !important;
  transform: scale(1.03) !important;
  animation: none !important;
}
.faisal-shield-overlay {
  position: absolute;
  z-index: 3;
  inset: 0;
  background: linear-gradient(180deg, rgba(4,84,242,.02) 25%, rgba(1,20,73,.14) 100%);
  pointer-events: none;
}
.faisal-location-chip {
  left: 50% !important;
  right: auto !important;
  bottom: 4px !important;
  transform: translateX(-50%);
  white-space: nowrap;
  border: 1px solid rgba(255,255,255,.35);
  background: #fff;
  color: #141652;
}

/* Main service pages */
.service-page {
  margin-top: -26px;
  padding-bottom: 20px;
}
.journey-shell {
  position: relative;
  z-index: 10;
  padding: 18px;
  border-radius: 24px;
  background: #fff;
  border: 1px solid #e5eaf3;
  box-shadow: 0 18px 50px rgba(20,22,82,.11);
}
.journey-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
  padding: 0 3px;
}
.journey-heading .journey-kicker {
  color: #0454f2;
  font-size: .68rem;
  font-weight: 900;
  letter-spacing: .11em;
  text-transform: uppercase;
}
.journey-heading strong { color: #141652; font-size: .92rem; }
.journey-track {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 10px;
}
.journey-card {
  position: relative;
  min-width: 0;
  min-height: 86px;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px 13px;
  border: 1px solid #e5eaf3;
  border-radius: 17px;
  background: #f8faff;
  color: #334155;
  transition: .2s ease;
}
.journey-card:hover { border-color: #c8d9ff; transform: translateY(-1px); }
.journey-card.is-active {
  background: linear-gradient(135deg,#0454f2,#0038a7);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 12px 24px rgba(4,84,242,.22);
}
.journey-number {
  position: absolute;
  top: 8px;
  right: 10px;
  color: #a8b3c7;
  font-size: .62rem;
  font-weight: 900;
  letter-spacing: .08em;
}
.is-active .journey-number { color: #bcd2ff; }
.journey-icon {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #eaf1ff;
  color: #0454f2;
}
.is-active .journey-icon { background: rgba(255,255,255,.14); color: #c9f76f; }
.journey-copy { min-width: 0; display: flex; flex-direction: column; line-height: 1.2; }
.journey-copy small { color: #7a879d; font-size: .61rem; font-weight: 900; text-transform: uppercase; }
.journey-copy b { color: #141652; margin-top: 2px; font-size: .85rem; overflow-wrap: anywhere; }
.journey-copy em { color: #728096; margin-top: 3px; font-size: .66rem; font-style: normal; font-weight: 600; line-height: 1.3; }
.is-active .journey-copy small,.is-active .journey-copy em { color: #d9e6ff; }
.is-active .journey-copy b { color: #fff; }
.journey-arrow { margin-left: auto; color: #91a0b8; font-weight: 900; }
.is-active .journey-arrow { color: #c9f76f; }

.service-intro-grid {
  margin-top: 42px;
  display: grid;
  grid-template-columns: minmax(0,1.25fr) minmax(0,.75fr);
  gap: 28px;
  align-items: center;
  padding: 28px 30px;
  border: 1px solid #e8edf5;
  border-radius: 24px;
  background: linear-gradient(135deg,#ffffff 0%,#f6f9ff 100%);
}
.service-intro-copy { max-width: 690px; }
.service-kicker {
  display: inline-block;
  margin-bottom: 8px;
  color: #0454f2;
  font-size: .68rem;
  font-weight: 900;
  letter-spacing: .11em;
}
.service-intro-copy h2 { color: #141652; font-size: clamp(1.7rem,3vw,2.4rem); line-height: 1.12; font-weight: 900; letter-spacing: -.025em; }
.service-intro-copy p { margin-top: 10px; color: #64748b; font-size: .9rem; line-height: 1.75; }
.service-stat-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 9px; }
.service-stat-grid div { min-height: 96px; padding: 15px 12px; border-radius: 16px; background: #fff; border: 1px solid #e4eaf5; display: flex; flex-direction: column; justify-content: center; text-align: center; }
.service-stat-grid strong { color: #141652; font-size: 1.35rem; font-weight: 900; }
.service-stat-grid span { margin-top: 4px; color: #748196; font-size: .67rem; font-weight: 700; line-height: 1.35; }
.installment-intro { background: linear-gradient(135deg,#ffffff 0%,#eef4ff 100%); }
.construction-intro { background: linear-gradient(135deg,#ffffff 0%,#f4f7ff 62%,#f5fde8 100%); }

.listing-layout {
  margin-top: 34px;
  display: grid;
  grid-template-columns: 280px minmax(0,1fr);
  gap: 24px;
  align-items: start;
}
.filter-panel {
  position: sticky;
  top: 16px;
  padding: 20px;
  border-radius: 22px;
  background: #fff;
  border: 1px solid #e5eaf3;
  box-shadow: 0 10px 30px rgba(20,22,82,.055);
}
.filter-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-bottom: 14px; border-bottom: 1px solid #edf0f5; }
.filter-heading small { display: block; color: #8b98ab; font-size: .6rem; font-weight: 900; letter-spacing: .1em; }
.filter-heading h3 { color: #141652; margin-top: 2px; font-size: 1.03rem; font-weight: 900; }
.filter-icon { width: 38px; height: 38px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; background: #eff4ff; color: #0454f2; }
.filter-form { display: grid; gap: 14px; padding-top: 16px; }
.filter-form label > span { display: block; margin-bottom: 6px; color: #58657a; font-size: .7rem; font-weight: 800; }
.filter-form select,.filter-form input { width: 100%; min-height: 44px; padding: 0 12px; border-radius: 12px; border: 1px solid #dfe5ee; background: #f8fafc; color: #25314a; font-size: .76rem !important; font-weight: 700; outline: none; }
.filter-form select:focus,.filter-form input:focus { border-color: #8eb3ff; box-shadow: 0 0 0 3px rgba(4,84,242,.08); }
.filter-submit { min-height: 44px; padding: 0 14px; border: 0; border-radius: 12px; background: #0454f2; color: #fff; font-size: .74rem; font-weight: 900; cursor: pointer; }
.filter-submit:hover { background: #0038a7; }
.filter-reset { min-height: 38px; display: flex; align-items: center; justify-content: center; border-radius: 10px; background: #f4f6f9; color: #5f6b7e; font-size: .7rem; font-weight: 800; }
.filter-help { margin-top: 16px; padding: 12px; border-radius: 13px; background: #f8faff; border: 1px solid #e8eef9; display: flex; gap: 8px; color: #69758a; }
.filter-help i { color: #0454f2; margin-top: 2px; }
.filter-help p { font-size: .67rem; line-height: 1.5; }

.listing-content { min-width: 0; }
.listing-toolbar { min-height: 66px; margin-bottom: 14px; padding: 12px 16px; border-radius: 17px; border: 1px solid #e7ebf2; background: #fff; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.listing-toolbar div { min-width: 0; }
.listing-toolbar small { display: block; color: #8995a7; font-size: .59rem; font-weight: 900; letter-spacing: .1em; }
.listing-toolbar strong { display: block; margin-top: 2px; color: #141652; font-size: .9rem; }
.listing-toolbar > span { min-height: 32px; padding: 7px 10px; border-radius: 999px; background: #eff4ff; color: #0454f2; font-size: .67rem; font-weight: 900; white-space: nowrap; }
.dedicated-listings { display: grid; gap: 16px; }
.dedicated-property-card { display: grid; grid-template-columns: minmax(230px,36%) minmax(0,1fr); min-height: 260px; border-radius: 22px; }
.dedicated-property-media { position: relative; min-height: 260px; overflow: hidden; background: #eef3fb; }
.dedicated-property-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.dedicated-property-card:hover .dedicated-property-media img { transform: scale(1.035); }
.listing-badge,.listing-type-tag { position: absolute; z-index: 2; min-height: 28px; display: inline-flex; align-items: center; gap: 5px; padding: 6px 9px; border-radius: 999px; font-size: .62rem; font-weight: 900; box-shadow: 0 5px 15px rgba(2,17,68,.12); }
.listing-badge { top: 12px; left: 12px; }
.listing-badge-green { background: #c9f76f; color: #141652; }
.listing-badge-blue { background: #eaf1ff; color: #0454f2; }
.listing-type-tag { left: 12px; bottom: 12px; background: rgba(20,22,82,.9); color: #fff; backdrop-filter: blur(8px); }
.dedicated-property-body { min-width: 0; padding: 20px; display: flex; flex-direction: column; }
.property-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: #64748b; font-size: .68rem; font-weight: 800; }
.property-meta i { color: #0454f2; margin-right: 3px; }
.dedicated-property-body h3 { margin-top: 7px; color: #141652; font-size: 1.14rem; line-height: 1.3; font-weight: 900; }
.dedicated-property-body h3 a:hover { color: #0454f2; }
.property-location { margin-top: 4px; color: #8a95a6; font-size: .69rem; font-weight: 600; }
.cash-price-row { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 14px; border-radius: 15px; background: #f7f9fc; border: 1px solid #e8ecf2; }
.cash-price-row small,.installment-price-grid small { display: block; color: #8793a5; font-size: .58rem; line-height: 1.3; font-weight: 900; text-transform: uppercase; }
.cash-price-row strong { display: block; margin-top: 2px; color: #141652; font-size: 1.15rem; font-weight: 900; }
.cash-price-row > span { padding: 6px 8px; border-radius: 999px; background: #eaf8ef; color: #087f3e; font-size: .61rem; font-weight: 900; }
.installment-price-grid { margin-top: auto; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; }
.installment-price-grid > div { padding: 12px; border-radius: 14px; background: #f4f7ff; border: 1px solid #e0e8fb; }
.installment-price-grid strong { display: block; margin-top: 4px; color: #141652; font-size: .78rem; font-weight: 900; line-height: 1.25; }
.property-card-actions { margin-top: 13px; padding-top: 13px; border-top: 1px solid #edf0f4; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.property-details-btn,.property-wa-btn { min-height: 38px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; border-radius: 11px; padding: 0 12px; font-size: .68rem; font-weight: 900; }
.property-details-btn { color: #0454f2; background: #eff4ff; }
.property-details-btn:hover { background: #e2ecff; }
.property-wa-btn { color: #087f3e; background: #effbf4; border: 1px solid #d2f0de; }
.empty-state { padding: 44px 24px; border: 1px dashed #cfd8e6; border-radius: 20px; background: #fafcff; text-align: center; }
.empty-state > i { color: #9ab4ec; font-size: 2rem; }
.empty-state h3 { margin-top: 10px; color: #141652; font-size: 1.15rem; font-weight: 900; }
.empty-state p { margin: 6px auto 16px; max-width: 420px; color: #718096; font-size: .78rem; }

.content-depth-section { margin-top: 52px; padding: 34px; border-radius: 26px; background: #141652; color: #fff; overflow: hidden; }
.depth-heading { max-width: 680px; }
.depth-heading.centered { margin: 0 auto 24px; text-align: center; }
.depth-heading > span { color: #c9f76f; font-size: .66rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.depth-heading h2 { margin-top: 7px; color: inherit; font-size: clamp(1.65rem,3vw,2.3rem); line-height: 1.13; font-weight: 900; letter-spacing: -.02em; }
.depth-heading p { margin-top: 8px; color: #c7d2ea; font-size: .82rem; line-height: 1.65; }
.process-grid { margin-top: 25px; display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; }
.process-grid article { position: relative; min-height: 190px; padding: 18px; border-radius: 18px; border: 1px solid rgba(255,255,255,.1); background: rgba(255,255,255,.07); }
.process-grid article > span { position: absolute; top: 12px; right: 12px; color: rgba(255,255,255,.35); font-size: .62rem; font-weight: 900; }
.process-grid article i { width: 38px; height: 38px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; background: rgba(201,247,111,.12); color: #c9f76f; }
.process-grid h3 { margin-top: 22px; color: #fff; font-size: .93rem; font-weight: 900; }
.process-grid p { margin-top: 6px; color: #c7d2ea; font-size: .69rem; line-height: 1.55; }
.installment-depth { background: linear-gradient(135deg,#141652,#0038a7); }

.buyer-confidence,.installment-explainer,.quality-strip { margin-top: 22px; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
.confidence-card,.installment-explainer > div,.quality-strip > div { min-height: 105px; padding: 17px; border-radius: 18px; background: #fff; border: 1px solid #e6eaf1; display: flex; align-items: center; gap: 13px; }
.confidence-card > i,.quality-strip > div > i { width: 42px; height: 42px; flex: 0 0 42px; border-radius: 13px; display: inline-flex; align-items: center; justify-content: center; background: #eff4ff; color: #0454f2; }
.confidence-card strong,.installment-explainer h3,.quality-strip strong { display: block; color: #141652; font-size: .84rem; font-weight: 900; }
.confidence-card p,.installment-explainer p,.quality-strip small { margin-top: 3px; color: #748196; font-size: .67rem; line-height: 1.45; }
.installment-explainer > div { align-items: flex-start; flex-direction: column; }
.explainer-number { width: 32px; height: 32px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; background: #0454f2; color: #fff; font-size: .72rem; font-weight: 900; }

/* Construction page */
.construction-packages-section { margin-top: 52px; }
.construction-packages-section .depth-heading { color: #141652; }
.construction-packages-section .depth-heading p { color: #718096; }
.construction-package-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 13px; }
.construction-package { position: relative; min-height: 300px; padding: 20px; border-radius: 20px; background: #fff; border: 1px solid #e5eaf2; box-shadow: 0 10px 28px rgba(20,22,82,.055); display: flex; flex-direction: column; }
.package-no { position: absolute; top: 14px; right: 14px; color: #b0b9c8; font-size: .63rem; font-weight: 900; }
.package-icon { width: 46px; height: 46px; border-radius: 14px; display: flex; align-items: center; justify-content: center; background: #eff4ff; color: #0454f2; }
.construction-package h3 { margin-top: 20px; color: #141652; font-size: .98rem; line-height: 1.3; font-weight: 900; }
.construction-package p { margin-top: 8px; color: #748196; font-size: .71rem; line-height: 1.6; }
.package-rate { margin-top: auto; padding-top: 16px; border-top: 1px solid #edf0f5; }
.package-rate small { display: block; color: #8b96a8; font-size: .59rem; font-weight: 900; text-transform: uppercase; }
.package-rate strong { display: block; margin-top: 3px; color: #0454f2; font-size: .91rem; font-weight: 900; }
.construction-estimator { margin-top: 38px; padding: 32px; border-radius: 26px; background: linear-gradient(135deg,#141652,#1e3b8b); display: grid; grid-template-columns: minmax(0,1fr) minmax(320px,.78fr); gap: 28px; align-items: center; }
.estimator-copy > span { color: #c9f76f; font-size: .65rem; font-weight: 900; letter-spacing: .12em; }
.estimator-copy h2 { margin-top: 7px; color: #fff; font-size: clamp(1.65rem,3vw,2.3rem); font-weight: 900; line-height: 1.15; }
.estimator-copy p { margin-top: 9px; max-width: 600px; color: #cad5ed; font-size: .8rem; line-height: 1.7; }
.estimator-points { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 8px; }
.estimator-points span { padding: 7px 9px; border-radius: 999px; background: rgba(255,255,255,.08); color: #e4ecff; font-size: .64rem; font-weight: 800; }
.estimator-points i { color: #c9f76f; margin-right: 3px; }
.estimator-card { padding: 18px; border-radius: 20px; background: #fff; display: grid; gap: 12px; box-shadow: 0 18px 42px rgba(1,15,58,.22); }
.estimator-card label > span { display: block; margin-bottom: 5px; color: #5f6b7e; font-size: .68rem; font-weight: 800; }
.estimator-card select { width: 100%; min-height: 44px; padding: 0 11px; border-radius: 11px; border: 1px solid #dde4ee; background: #f8fafc; color: #27344d; font-size: .73rem !important; font-weight: 700; }
.estimator-total { padding: 14px; border-radius: 14px; background: #eff4ff; border: 1px solid #dce7ff; }
.estimator-total small { display: block; color: #64748b; font-size: .6rem; font-weight: 900; text-transform: uppercase; }
.estimator-total strong { display: block; margin-top: 3px; color: #0454f2; font-size: 1.22rem; font-weight: 900; }
.estimator-total em { display: block; margin-top: 2px; color: #8792a3; font-size: .6rem; font-style: normal; }
.estimator-card button { min-height: 44px; border: 0; border-radius: 12px; background: #25d366; color: #fff; font-size: .73rem; font-weight: 900; cursor: pointer; }
.estimator-card button:hover { background: #20bd5a; }
.construction-process { margin-top: 38px; }
.quality-strip > div { background: #f8faff; }
.quality-strip span { min-width: 0; }

/* Bottom page pager */
.page-pager { margin-top: 42px; padding: 22px; border-radius: 22px; background: #f6f8fc; border: 1px solid #e4e9f1; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.page-pager-copy span { display: block; color: #0454f2; font-size: .62rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.page-pager-copy strong { display: block; margin-top: 4px; color: #141652; font-size: .94rem; }
.page-pager-actions { display: flex; gap: 8px; }
.pager-link { min-height: 42px; padding: 0 13px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; font-size: .68rem; font-weight: 900; }
.pager-prev { background: #fff; border: 1px solid #dfe5ef; color: #334155; }
.pager-next { background: #0454f2; color: #fff; box-shadow: 0 8px 18px rgba(4,84,242,.2); }

/* Authorized dealerships / society / commercial project strip at page bottom. */
.partner-network { margin-top: 0; padding: 0 16px; background: #fff; }
.partner-network-inner { max-width: 1280px; margin: 0 auto; padding: 24px 22px; border-top: 1px solid #e7ebf2; border-bottom: 1px solid #e7ebf2; }
.partner-network-heading { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin-bottom: 15px; }
.partner-network-heading span { color: #0454f2; font-size: .62rem; font-weight: 900; letter-spacing: .12em; }
.partner-network-heading strong { color: #141652; font-size: .88rem; }
.partner-logo-rail { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); gap: 8px; }
.partner-logo { min-width: 0; min-height: 70px; padding: 9px; border: 1px solid #e6eaf1; border-radius: 14px; background: #fafcff; display: flex; align-items: center; gap: 9px; transition: .2s ease; }
.partner-logo:hover { border-color: #cbdcff; background: #f4f8ff; transform: translateY(-1px); }
.partner-mark { width: 38px; height: 38px; flex: 0 0 38px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: #141652; color: #fff; font-size: .59rem; font-weight: 900; letter-spacing: -.02em; box-shadow: inset 0 0 0 2px rgba(255,255,255,.14); }
.partner-logo:nth-child(2n) .partner-mark { background: #0454f2; }
.partner-logo:nth-child(3n) .partner-mark { background: #0038a7; }
.partner-logo b { min-width: 0; color: #334155; font-size: .68rem; line-height: 1.3; font-weight: 900; overflow-wrap: anywhere; }
.partner-logo-commercial .partner-mark { background: #c9f76f !important; color: #141652; }
.partner-placeholder-note { margin-top: 10px; color: #9aa4b3; font-size: .59rem; text-align: right; }

/* Main site navigation remains in the header. */
.footer-grid h4 { margin-bottom: 10px; color: #fff; font-size: .79rem; font-weight: 900; }
.footer-grid p { max-width: 620px; color: #aeb9ce; font-size: .73rem; line-height: 1.7; }
.footer-grid ul { display: grid; gap: 8px; color: #aeb9ce; font-size: .7rem; }
.footer-grid a:hover { color: #fff; }
.footer-socials { margin-top: 14px; display: flex; gap: 7px; }
.footer-socials a { width: 34px; height: 34px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; background: rgba(255,255,255,.08); color: #fff; }
.footer-contact li { display: flex; align-items: flex-start; gap: 8px; }
.footer-contact i { color: #6fa0ff; margin-top: 2px; }
.footer-legal { padding-top: 18px; display: flex; align-items: center; justify-content: space-between; gap: 12px; color: #7f8ba3; font-size: .64rem; }
.footer-legal div { display: flex; gap: 13px; }
.footer-legal a:hover { color: #fff; }

@media (min-width: 1024px) {
  .hero-trust-row { justify-content: flex-start; }
  .menu-toggle { display: none; }
}

@media (max-width: 1023px) {
  .mobile-menu-panel { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .construction-package-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .process-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .partner-logo-rail { grid-template-columns: repeat(3,minmax(0,1fr)); }
}

@media (max-width: 767px) {
  .carswitch-hero-arc {
    border-bottom-left-radius: 46% 30px !important;
    border-bottom-right-radius: 46% 30px !important;
  }
  .site-masthead { padding-top: 10px !important; }
  .masthead-panel { min-height: 56px !important; padding: 7px 8px !important; border-radius: 16px !important; gap: 6px !important; }
  .masthead-brand { max-width: none !important; gap: 7px !important; }
  .masthead-brand img { width: 34px !important; height: 34px !important; border-radius: 10px !important; }
  .masthead-brand .site-brand-title { max-width: 128px !important; font-size: .8rem !important; }
  .masthead-brand .site-brand-subtitle { display: none !important; }
  .header-actions { gap: 5px !important; }
  .header-whatsapp,.menu-toggle { width: 38px !important; height: 38px !important; min-height: 38px !important; flex: 0 0 38px !important; padding: 0 !important; border-radius: 11px !important; }
  .header-whatsapp i { display: inline-block !important; font-size: 1rem !important; }
  .header-whatsapp-fallback { display: none !important; }
  .menu-toggle i { display: inline-block !important; font-size: .98rem !important; }
  .menu-fallback { display: none !important; }
  .mobile-menu-wrap { margin-top: 7px; }
  .mobile-menu-panel { grid-template-columns: 1fr; gap: 5px; padding: 8px; border-radius: 14px; }
  .mobile-menu-panel a { justify-content: flex-start; min-height: 40px; font-size: .72rem; }

  .hero-section { padding-top: 30px !important; padding-bottom: 52px !important; }
  .hero-section > .grid { gap: 18px !important; }
  .hero-badge { font-size: .58rem; letter-spacing: .08em; }
  .hero-title { font-size: clamp(2rem,10vw,2.8rem) !important; line-height: 1.06 !important; }
  .hero-subtitle { font-size: .82rem !important; }
  .hero-cta-row { width: 100%; }
  .hero-primary-cta,.hero-secondary-cta { width: 100% !important; min-height: 45px; padding: 0 15px; }
  .hero-trust-row { gap: 6px; }
  .hero-trust-row span { flex: 1 1 calc(50% - 6px); justify-content: center; min-width: 130px; font-size: .62rem; }
  .hero-visual { display: flex !important; margin-top: 4px !important; }
  .hero-visual > .faisal-shield-stage { width: 100% !important; max-width: 310px !important; min-height: 320px !important; padding: 5px 5px 28px !important; }
  .faisal-shield-frame { width: min(100%,270px) !important; aspect-ratio: 4 / 5 !important; border-radius: 0 !important; }
  .hero-visual .faisal-shield-frame .faisal-mosque-photo { border-radius: 0 !important; object-position: 65% 48% !important; }
  .faisal-location-chip { min-height: 29px; padding: 6px 9px; font-size: .6rem; }

  .service-page { margin-top: -20px; }
  .journey-shell { padding: 12px; border-radius: 18px; }
  .journey-heading { display: block; margin-bottom: 9px; }
  .journey-heading strong { display: block; margin-top: 3px; font-size: .8rem; }
  .journey-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 7px; padding-bottom: 2px; scrollbar-width: none; }
  .journey-track::-webkit-scrollbar { display: none; }
  .journey-card { flex: 0 0 82%; min-height: 78px; scroll-snap-align: start; padding: 10px; border-radius: 14px; }
  .journey-icon { width: 34px; height: 34px; flex-basis: 34px; }
  .journey-copy b { font-size: .79rem; }
  .journey-copy em { font-size: .61rem; }

  .service-intro-grid { margin-top: 26px; grid-template-columns: 1fr; gap: 18px; padding: 21px 18px; border-radius: 20px; }
  .service-intro-copy h2 { font-size: 1.65rem; }
  .service-intro-copy p { font-size: .78rem; line-height: 1.65; }
  .service-stat-grid { gap: 6px; }
  .service-stat-grid div { min-height: 82px; padding: 11px 6px; }
  .service-stat-grid strong { font-size: 1.05rem; }
  .service-stat-grid span { font-size: .58rem; }

  .listing-layout { margin-top: 22px; grid-template-columns: 1fr; gap: 16px; }
  .filter-panel { position: static; padding: 17px; border-radius: 18px; }
  .listing-toolbar { min-height: 60px; padding: 10px 12px; }
  .listing-toolbar > span { font-size: .6rem; }
  .dedicated-property-card { grid-template-columns: 1fr; min-height: 0; border-radius: 18px; }
  .dedicated-property-media { min-height: 205px; max-height: 240px; }
  .dedicated-property-body { padding: 17px; }
  .dedicated-property-body h3 { font-size: 1.02rem; }
  .cash-price-row { margin-top: 14px; }
  .installment-price-grid { margin-top: 14px; grid-template-columns: 1fr; }
  .property-card-actions { flex-direction: column; align-items: stretch; }
  .property-details-btn,.property-wa-btn { width: 100%; }

  .content-depth-section { margin-top: 34px; padding: 22px 18px; border-radius: 20px; }
  .depth-heading h2 { font-size: 1.6rem; }
  .process-grid { grid-template-columns: 1fr; gap: 8px; }
  .process-grid article { min-height: 148px; }
  .process-grid h3 { margin-top: 16px; }
  .buyer-confidence,.installment-explainer,.quality-strip { grid-template-columns: 1fr; gap: 8px; }

  .construction-packages-section { margin-top: 34px; }
  .construction-package-grid { grid-template-columns: 1fr; gap: 9px; }
  .construction-package { min-height: 245px; }
  .construction-estimator { margin-top: 26px; padding: 22px 17px; grid-template-columns: 1fr; gap: 18px; border-radius: 20px; }
  .estimator-copy h2 { font-size: 1.6rem; }
  .estimator-card { padding: 14px; border-radius: 16px; }

  .page-pager { margin-top: 30px; padding: 16px; border-radius: 17px; flex-direction: column; align-items: stretch; }
  .page-pager-actions { flex-direction: column; }
  .pager-link { width: 100%; }

  .partner-network { margin-top: 0; padding: 0 10px; }
  .partner-network-inner { padding: 18px 8px; }
  .partner-network-heading { align-items: flex-start; flex-direction: column; }
  .partner-logo-rail { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 7px; padding-bottom: 3px; scrollbar-width: none; }
  .partner-logo-rail::-webkit-scrollbar { display: none; }
  .partner-logo { flex: 0 0 57%; min-height: 64px; scroll-snap-align: start; }
  .partner-placeholder-note { text-align: left; line-height: 1.4; }

  .site-footer { padding-top: 0 !important; }
  .footer-grid { gap: 25px !important; padding-top: 30px !important; padding-bottom: 30px !important; }
  .footer-legal { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 359px) {
  .masthead-brand .site-brand-title { max-width: 100px !important; font-size: .7rem !important; }
  .header-whatsapp,.menu-toggle { width: 35px !important; height: 35px !important; min-height: 35px !important; flex-basis: 35px !important; }
  .hero-trust-row span { flex-basis: 100%; }
  .journey-card { flex-basis: 91%; }
  .service-stat-grid { grid-template-columns: 1fr; }
  .partner-logo { flex-basis: 72%; }
}

/* =========================================================
   Header navigation restoration + client screenshot correction
   2026-08-27 (p2)
   Main menu stays in the header. Bottom area is only for partner/dealership branding.
   ========================================================= */
.desktop-primary-nav {
  display: none;
  min-width: 0;
}

@media (min-width: 1024px) {
  .masthead-panel {
    gap: 14px !important;
  }
  .masthead-brand {
    flex: 0 1 auto !important;
    max-width: 245px;
  }
  .desktop-primary-nav {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
  }
  .desktop-primary-nav a {
    min-height: 40px;
    padding: 0 10px;
    border-radius: 11px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #475569;
    font-size: .68rem;
    line-height: 1;
    font-weight: 850;
    white-space: nowrap;
    transition: background .18s ease, color .18s ease, transform .18s ease;
  }
  .desktop-primary-nav a:hover {
    background: #f2f6ff;
    color: #0454f2;
    transform: translateY(-1px);
  }
  .desktop-primary-nav a.is-active {
    background: #eaf1ff;
    color: #0454f2;
    box-shadow: inset 0 0 0 1px #d9e6ff;
  }
  #mobileMenu {
    display: none !important;
  }
}

.mobile-menu-wrap {
  position: relative;
  z-index: 40;
  margin-top: 9px;
  padding: 10px;
  border-radius: 18px;
  background: rgba(255,255,255,.985);
  border: 1px solid rgba(226,232,240,.95);
  box-shadow: 0 22px 48px rgba(2,17,68,.22);
  backdrop-filter: blur(16px);
}
.mobile-menu-wrap:not(.hidden) {
  animation: psMenuIn .18s ease-out both;
}
@keyframes psMenuIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}
.mobile-menu-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 4px 4px 10px;
  border-bottom: 1px solid #eef2f7;
}
.mobile-menu-head strong {
  color: #141652;
  font-size: .78rem;
  font-weight: 900;
}
.mobile-menu-head span {
  color: #94a3b8;
  font-size: .58rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.mobile-menu-panel {
  margin-top: 8px;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 7px;
}
.mobile-menu-panel a {
  min-width: 0;
  min-height: 46px;
  padding: 8px 10px;
  border-radius: 12px !important;
  background: #f7f9fd;
  border: 1px solid #edf1f7 !important;
  color: #334155;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  text-align: left;
  font-size: .7rem;
  font-weight: 800;
}
.mobile-menu-panel a span {
  width: 25px;
  height: 25px;
  flex: 0 0 25px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #eaf1ff;
  color: #0454f2;
  font-size: .56rem;
  font-weight: 900;
}
.mobile-menu-panel a b {
  min-width: 0;
  overflow-wrap: anywhere;
}
.mobile-menu-panel a.is-active {
  background: #0454f2;
  border-color: #0454f2 !important;
  color: #fff;
}
.mobile-menu-panel a.is-active span {
  background: #c9f76f;
  color: #141652;
}
.menu-toggle.is-open {
  background: #141652 !important;
  border-color: #141652 !important;
  color: #fff !important;
}

/* Keep the client-marked header as one clean visual surface on phones. */
@media (max-width: 767px) {
  .site-masthead {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }
  .masthead-panel {
    min-height: 58px !important;
    padding: 7px 8px !important;
    border-radius: 18px !important;
    background: #fff !important;
    border: 1px solid rgba(226,232,240,.92) !important;
    box-shadow: 0 12px 30px rgba(2,17,68,.18) !important;
  }
  .masthead-brand {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    max-width: none !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }
  .masthead-brand img {
    width: 36px !important;
    height: 36px !important;
    border-radius: 10px !important;
  }
  .masthead-brand .site-brand-title {
    max-width: 150px !important;
    font-size: .82rem !important;
    line-height: 1.08 !important;
  }
  .header-actions {
    flex: 0 0 auto !important;
    gap: 6px !important;
  }
  .header-whatsapp,
  .menu-toggle {
    width: 40px !important;
    height: 40px !important;
    min-height: 40px !important;
    flex: 0 0 40px !important;
    padding: 0 !important;
    border-radius: 12px !important;
  }
  .header-whatsapp {
    background: #eafaf0 !important;
    border-color: #d4f2df !important;
    color: #07833f !important;
  }
  .menu-toggle {
    background: #f2f6ff !important;
    border-color: #dce7ff !important;
    color: #141652 !important;
  }
  .menu-toggle.is-open {
    background: #141652 !important;
    border-color: #141652 !important;
    color: #fff !important;
  }
  .header-whatsapp i,
  .menu-toggle i {
    display: none !important;
  }
  .header-whatsapp-fallback,
  .menu-fallback {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
  }
  .header-whatsapp-fallback {
    font-size: .66rem !important;
    font-weight: 900 !important;
  }
  .menu-fallback {
    font-size: 1.12rem !important;
    font-weight: 900 !important;
    line-height: 1 !important;
  }
  .mobile-menu-wrap {
    margin-top: 8px !important;
    border-radius: 16px !important;
  }
  .mobile-menu-panel {
    grid-template-columns: repeat(2,minmax(0,1fr)) !important;
  }

  /* Symmetric landmark shield; crop the accidental left-side placeholder lettering. */
  .hero-visual > .faisal-shield-stage {
    max-width: 320px !important;
    min-height: 330px !important;
    padding-bottom: 30px !important;
  }
  .faisal-shield-frame {
    width: min(100%,276px) !important;
    aspect-ratio: 3 / 4 !important;
    clip-path: polygon(50% 0, 94% 10%, 94% 70%, 50% 100%, 6% 70%, 6% 10%) !important;
    filter: drop-shadow(0 18px 24px rgba(1,16,63,.28)) !important;
  }
  .faisal-shield-frame::before {
    inset: 7px !important;
    clip-path: polygon(50% 0, 94% 10%, 94% 70%, 50% 100%, 6% 70%, 6% 10%) !important;
    border-color: rgba(255,255,255,.72) !important;
  }
  .hero-visual .faisal-shield-frame .faisal-mosque-photo {
    position: absolute !important;
    inset: 0 auto 0 0 !important;
    width: 122% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: 70% 48% !important;
    transform: translateX(-10%) scale(1.04) !important;
    transform-origin: center !important;
  }
  .faisal-location-chip {
    bottom: 3px !important;
    font-size: .58rem !important;
  }
}

@media (max-width: 380px) {
  .masthead-brand .site-brand-title {
    max-width: 112px !important;
    font-size: .72rem !important;
  }
  .header-whatsapp,
  .menu-toggle {
    width: 37px !important;
    height: 37px !important;
    min-height: 37px !important;
    flex-basis: 37px !important;
  }
  .mobile-menu-panel {
    grid-template-columns: 1fr !important;
  }
}
