/* PJ INFRA — Real Estate Portal Design System */

:root {
  --rosemary: #5b6b52;
  --rosemary-dark: #3d4a38;
  --rosemary-light: #e8ebe4;
  --ceramic: #f5f1eb;
  --ceramic-warm: #ebe4d9;
  --primary: #5b6b52;
  --primary-dark: #3d4a38;
  --primary-light: #e8ebe4;
  --primary-glow: rgba(91, 107, 82, 0.18);
  --brand-blue: #2563eb;
  --brand-blue-dark: #1d4ed8;
  --brand-blue-light: rgba(37, 99, 235, 0.12);
  --brand-blue-glow: rgba(37, 99, 235, 0.35);
  --brand-orange: #f97316;
  --brand-orange-glow: rgba(249, 115, 22, 0.45);
  --accent: #4a5842;
  --white: #ffffff;
  --off-white: #f5f1eb;
  --gray-50: #f0ece6;
  --gray-100: #e4ddd3;
  --gray-200: #d1c9bd;
  --gray-400: #7a756c;
  --gray-600: #4a4742;
  --gray-800: #1a1a1a;
  --gray-900: #111111;
  --footer-bg: #1a1a1a;
  --glass-bg: rgba(255, 255, 255, 0.62);
  --glass-border: rgba(255, 255, 255, 0.45);
  --shadow-sm: 0 1px 3px rgba(26, 26, 26, 0.06);
  --shadow-md: 0 4px 16px rgba(26, 26, 26, 0.08);
  --shadow-lg: 0 8px 32px rgba(26, 26, 26, 0.1);
  --shadow-card: 0 2px 12px rgba(26, 26, 26, 0.06);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --font: "Inter", system-ui, -apple-system, sans-serif;
  --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
  --transition: 0.3s var(--ease);
  --container: min(1280px, 94vw);
  --nav-height: 64px;
  --topbar-height: 36px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  color: var(--gray-900);
  background: var(--ceramic);
  overflow-x: hidden;
}

.glass-card,
.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
ul { list-style: none; margin: 0; padding: 0; }

.container { width: var(--container); margin-inline: auto; }
.hidden { display: none !important; }

/* ——— Top Utility Bar ——— */
.top-bar {
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-100);
  min-height: var(--topbar-height);
  display: flex;
  align-items: center;
  font-size: 12px;
  color: var(--gray-600);
  padding: 0.4rem 0;
}

.top-bar-inner {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.top-bar-links {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: nowrap;
}

.top-bar-links--left {
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.top-bar-links--left::-webkit-scrollbar { display: none; }

.top-bar-links--right {
  flex-shrink: 0;
}

.top-bar-links a {
  transition: color var(--transition);
  white-space: nowrap;
  font-size: 12px;
  line-height: 1.2;
}

.top-bar-phone {
  font-weight: 600;
  color: var(--primary);
}

.top-bar-links a:hover { color: var(--primary); }

.top-bar-badge {
  background: var(--primary);
  color: var(--white);
  font-size: 8px;
  font-weight: 700;
  padding: 2px 5px;
  border-radius: 3px;
  margin-left: 4px;
  vertical-align: middle;
}

@media (max-width: 640px) {
  .top-bar-hide-mobile { display: none; }

  .top-bar {
    padding: 0.5rem 0;
  }

  .top-bar-inner {
    padding-inline: 0.875rem;
  }

  .top-bar-links a {
    font-size: 11px;
  }
}

/* ——— Header ——— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--gray-100);
  transition: box-shadow var(--transition);
}

.site-header.scrolled { box-shadow: var(--shadow-md); }

.nav-inner {
  width: var(--container);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
  gap: 1.5rem;
  padding-inline: 0;
}

.brand-lockup {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  line-height: 0;
}

.brand-logo {
  height: 44px;
  width: auto;
  max-width: 130px;
  object-fit: contain;
  display: block;
}

@media (max-width: 640px) {
  .brand-logo {
    height: 38px;
    max-width: 110px;
  }

  .nav-inner {
    gap: 0.75rem;
    padding-inline: 0.875rem;
    width: 100%;
  }
}

/* legacy text brand — hidden when logo present */
.brand-pj, .brand-infra { display: none; }
.brand-lockup:not(:has(.brand-logo)) .brand-pj,
.brand-lockup:not(:has(.brand-logo)) .brand-infra { display: inline; }
.brand-lockup:not(:has(.brand-logo)) { align-items: baseline; gap: 0.3rem; }
.brand-lockup:not(:has(.brand-logo)) .brand-pj {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}
.brand-lockup:not(:has(.brand-logo)) .brand-infra {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--gray-800);
}

.nav-links {
  display: none;
  align-items: center;
  gap: 0;
}

.nav-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-600);
  padding: 0.5rem 1.25rem;
  position: relative;
  transition: color var(--transition);
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 1.25rem;
  right: 1.25rem;
  bottom: 0;
  height: 3px;
  background: var(--primary);
  border-radius: 3px 3px 0 0;
  transform: scaleX(0);
  transition: transform var(--transition);
}

.nav-link:hover,
.nav-link.is-active { color: var(--primary); }

.nav-link.is-active::after { transform: scaleX(1); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-phone {
  display: none;
  align-items: center;
  gap: 0.4rem;
  font-size: 13px;
  font-weight: 500;
  color: var(--gray-600);
  transition: color var(--transition);
}

.nav-phone svg { width: 14px; height: 14px; color: var(--primary); }
.nav-phone:hover { color: var(--primary); }

.mobile-toggle {
  display: flex;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  background: none;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  color: var(--gray-800);
  cursor: pointer;
}

#mobile-overlay {
  position: fixed;
  inset: 0;
  z-index: 110;
  background: rgba(0,0,0,0.4);
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

#mobile-overlay:not(.hidden) { opacity: 1; visibility: visible; }

#mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: min(320px, 88vw);
  height: 100%;
  z-index: 120;
  background: var(--white);
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  transform: translateX(100%);
  transition: transform 0.4s var(--ease);
  box-shadow: var(--shadow-lg);
}

#mobile-menu.open { transform: translateX(0); }

.mobile-nav-link {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--gray-800);
  padding: 0.875rem 0;
  border-bottom: 1px solid var(--gray-100);
  transition: color var(--transition);
}

.mobile-nav-link:hover { color: var(--primary); }

.mobile-close {
  align-self: flex-end;
  background: none;
  border: none;
  color: var(--gray-600);
  cursor: pointer;
  padding: 0.5rem;
  margin-bottom: 1rem;
}

@media (min-width: 1024px) {
  .nav-links { display: flex; }
  .nav-phone { display: inline-flex; }
  .mobile-toggle { display: none; }
}

/* ——— Buttons ——— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1.5rem;
  font-size: 14px;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand-blue) 0%, var(--brand-blue-dark) 100%);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.btn-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 30%, rgba(249, 115, 22, 0.35) 100%);
  opacity: 0;
  transition: opacity var(--transition);
  pointer-events: none;
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--brand-blue-dark) 0%, #1e40af 100%);
  box-shadow: 0 4px 20px var(--brand-blue-glow), 0 0 0 2px var(--brand-orange-glow);
  transform: translateY(-1px);
}

.btn-primary:hover::after {
  opacity: 1;
}

.btn-outline {
  background: transparent;
  color: var(--brand-blue);
  border: 1.5px solid var(--brand-blue);
}

.btn-outline:hover {
  background: var(--brand-blue-light);
  border-color: var(--brand-orange);
  color: var(--brand-blue-dark);
  box-shadow: 0 0 0 2px var(--brand-orange-glow);
}

.btn-white {
  background: var(--white);
  color: var(--primary);
  font-weight: 700;
}

.btn-white:hover {
  background: var(--gray-50);
  transform: translateY(-1px);
}

.btn-sm { padding: 0.5rem 1rem; font-size: 13px; }

.btn-login {
  background: transparent;
  border: 1.5px solid var(--primary);
  color: var(--primary);
  padding: 0.45rem 1.25rem;
  font-size: 13px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
}

.btn-login:hover { background: var(--primary-light); }

/* ——— Hero ——— */
.hero {
  position: relative;
  min-height: clamp(420px, 72vh, 620px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--gray-900);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  min-height: 100%;
}

.hero-bg img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 100%;
  object-fit: cover;
  object-position: center center;
  filter: brightness(0.72) contrast(1.08) saturate(0.92);
  animation: heroZoom 20s ease-in-out infinite alternate;
}

@media (max-width: 767px) {
  .hero {
    min-height: clamp(380px, 58vh, 520px);
  }

  .hero-bg img {
    object-position: center 30%;
  }
}

@keyframes heroZoom {
  from { transform: scale(1); }
  to { transform: scale(1.06); }
}

.hero-overlay {
  display: block;
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(8, 10, 16, 0.55) 0%, rgba(8, 10, 16, 0.72) 45%, rgba(8, 10, 16, 0.88) 100%),
    linear-gradient(90deg, rgba(8, 10, 16, 0.35) 0%, transparent 50%, rgba(8, 10, 16, 0.35) 100%);
}

.projects-section--plots {
  background: var(--ceramic, #f7f5f2);
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: var(--container);
  margin-inline: auto;
  padding: 3rem 0 0;
  text-align: center;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 700;
  color: var(--white);
  margin: 0 0 0.5rem;
  line-height: 1.15;
  text-shadow: 0 2px 16px rgba(0,0,0,0.55), 0 1px 4px rgba(0,0,0,0.4);
}

.hero-subtitle {
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  color: rgba(255,255,255,0.95);
  margin: 0 0 2rem;
  text-shadow: 0 1px 10px rgba(0,0,0,0.5);
}

/* ——— Search Widget ——— */
.search-widget {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  margin: 0 auto 2.5rem;
  max-width: 900px;
  overflow: hidden;
  animation: slideUp 0.6s var(--ease) both;
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

.search-tabs {
  display: flex;
  border-bottom: 1px solid var(--gray-100);
  overflow-x: auto;
}

.search-tab {
  flex: 1;
  padding: 0.875rem 1rem;
  font-size: 13px;
  font-weight: 500;
  color: var(--gray-600);
  background: none;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  position: relative;
  transition: color var(--transition);
}

.search-tab.is-active {
  color: var(--primary);
  font-weight: 600;
}

.search-tab.is-active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 1rem;
  right: 1rem;
  height: 3px;
  background: var(--primary);
  border-radius: 3px 3px 0 0;
}

.search-body { padding: 1.25rem 1.5rem 1rem; }

.search-row {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.search-input-wrap {
  flex: 1;
  min-width: 200px;
  position: relative;
}

.search-input-wrap svg {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--gray-400);
}

.search-input {
  width: 100%;
  padding: 0.75rem 1rem 0.75rem 2.75rem;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-size: 14px;
  transition: border-color var(--transition);
}

.search-input:focus {
  outline: none;
  border-color: var(--primary);
}

.search-select {
  padding: 0.75rem 2rem 0.75rem 1rem;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-size: 14px;
  background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238a9690' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center;
  appearance: none;
  cursor: pointer;
  min-width: 130px;
}

.search-select:focus { outline: none; border-color: var(--primary); }

.search-find-btn {
  padding: 0.75rem 2rem;
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all var(--transition);
}

.search-find-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

.search-filters {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.875rem;
  flex-wrap: wrap;
}

.search-map-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 13px;
  color: var(--primary);
  font-weight: 500;
  margin-top: 0.75rem;
  transition: gap var(--transition);
}

.search-map-link:hover { gap: 0.5rem; }

/* ——— CTA Banner ——— */
.cta-banner {
  background: var(--primary);
  padding: 1.5rem 0;
}

.cta-banner--card {
  background: var(--off-white);
  padding: 2.5rem 0;
}

.cta-banner-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding: 2rem 2.5rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 50%, #3b82f6 100%);
  box-shadow:
    0 8px 32px rgba(37, 99, 235, 0.28),
    0 2px 8px rgba(30, 58, 138, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.cta-banner-card:hover {
  transform: translateY(-5px);
  box-shadow:
    0 20px 48px rgba(37, 99, 235, 0.38),
    0 4px 12px rgba(30, 58, 138, 0.2);
}

.cta-banner--card .cta-banner-text h3 {
  color: var(--white);
  font-size: 1.35rem;
  font-weight: 700;
  margin: 0 0 0.35rem;
}

.cta-banner--card .cta-banner-text p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
  margin: 0;
}

.cta-banner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn-cta-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 14px;
  color: var(--white);
  background: transparent;
  border: 1.5px solid rgba(255, 255, 255, 0.7);
  transition: background var(--transition), border-color var(--transition), transform var(--transition);
}

.btn-cta-outline:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--white);
  transform: translateY(-2px);
}

.cta-banner--card .btn-white:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

@media (max-width: 640px) {
  .cta-banner-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 1.5rem;
  }

  .cta-banner-actions {
    width: 100%;
  }

  .cta-banner-actions .btn {
    flex: 1;
    justify-content: center;
  }
}

.cta-banner-inner {
  width: var(--container);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.cta-banner-text h3 {
  color: var(--white);
  font-size: 1.15rem;
  font-weight: 600;
  margin: 0 0 0.25rem;
}

.cta-banner-text p {
  color: rgba(255,255,255,0.85);
  font-size: 13px;
  margin: 0;
}

/* ——— Agent + Features Row ——— */
.agent-features {
  padding: 2rem 0;
  background: var(--off-white);
}

.agent-features-inner {
  width: var(--container);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.agent-bar {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1rem 1.25rem;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.agent-avatars {
  display: flex;
}

.agent-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary-light);
  border: 2px solid var(--white);
  margin-left: -8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--primary);
}

.agent-avatar:first-child { margin-left: 0; }

.agent-bar-text {
  flex: 1;
  font-size: 14px;
  color: var(--gray-600);
}

.agent-bar-text strong { color: var(--gray-800); }

.feature-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.feature-card {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: 1.25rem;
  background: var(--primary-light);
  border-radius: var(--radius-md);
  transition: transform var(--transition), box-shadow var(--transition);
}

.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.feature-icon svg { width: 22px; height: 22px; color: var(--primary); }

.feature-card h4 {
  font-size: 14px;
  font-weight: 600;
  margin: 0 0 0.15rem;
  color: var(--gray-800);
}

.feature-card p {
  font-size: 12px;
  color: var(--gray-600);
  margin: 0;
}

@media (min-width: 768px) {
  .agent-features-inner {
    grid-template-columns: 1fr 2fr;
    align-items: center;
  }
}

/* ——— Section Headers ——— */
.section-header {
  text-align: center;
  margin-bottom: 2rem;
}

.section-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--gray-900);
  margin: 0 0 0.5rem;
}

.section-sub {
  color: var(--gray-600);
  font-size: 15px;
  margin: 0;
}

.view-all-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
  transition: gap var(--transition);
}

.view-all-link:hover { gap: 0.55rem; }

.view-all-wrap {
  text-align: center;
  margin-top: 1.25rem;
}

/* ——— Section header with inline search ——— */
.section-header--with-search {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.25rem;
  text-align: left;
  flex-wrap: wrap;
}

.section-header-text {
  flex: 1 1 240px;
  min-width: 0;
}

.section-search {
  flex: 0 1 320px;
  width: 100%;
  max-width: 320px;
}

.section-search-control {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  border-radius: 50px;
  padding: 0 1rem 0 1.1rem;
  min-height: 46px;
  box-shadow: var(--shadow-card);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.section-search-control:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}

.section-search-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--gray-400);
}

.section-search-input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  font-size: 14px;
  color: var(--gray-900);
  padding: 0.65rem 0;
}

.section-search-input:focus { outline: none; }

.section-search-input::placeholder { color: var(--gray-400); }

.section-search-input::-webkit-search-cancel-button,
.section-search-input::-webkit-search-decoration {
  -webkit-appearance: none;
  appearance: none;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.project-card.is-section-hidden,
.listing-card.is-section-hidden {
  display: none !important;
}

.project-card.is-hidden,
.listing-card.is-hidden {
  display: none !important;
}

/* ——— Area Filter Chips ——— */
.area-chips {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 2rem;
}

.area-chip {
  padding: 0.5rem 1.25rem;
  font-size: 13px;
  font-weight: 500;
  border: 1.5px solid var(--gray-200);
  border-radius: 50px;
  background: var(--white);
  color: var(--gray-600);
  cursor: pointer;
  transition: all var(--transition);
}

.area-chip:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.area-chip.is-active {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}

/* ——— Project Cards (Bayut style) ——— */
.projects-section {
  padding: 3.5rem 0;
}

.projects-section.alt-bg { background: var(--off-white); }

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}

@media (min-width: 992px) {
  #ongoing-projects-grid.projects-grid,
  #home-plots-grid.projects-grid,
  #completed-projects-grid.projects-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.project-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: none;
  border: 1px solid var(--gray-100);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
  opacity: 0;
  transform: translateY(20px);
}

.project-card.revealed {
  opacity: 1;
  transform: translateY(0);
  animation: cardFrameStep 0.7s var(--ease) forwards;
  animation-delay: var(--frame-delay, 0s);
}

@keyframes cardFrameStep {
  0% {
    border-color: transparent;
    box-shadow: inset 0 0 0 0 var(--primary);
  }
  45% {
    border-color: var(--primary-light);
    box-shadow: inset 0 0 0 2px var(--primary);
  }
  100% {
    border-color: var(--gray-100);
    box-shadow: var(--shadow-card);
  }
}

.project-card:hover {
  transform: translateY(-4px);
  border-color: var(--brand-blue);
  box-shadow: 0 8px 24px var(--brand-blue-glow), 0 0 0 1px var(--brand-blue);
}

.project-card.is-hidden { display: none; }

.card-media {
  position: relative;
  padding: 0.75rem 0.75rem 0;
}

.card-media-frame {
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--gray-100);
  background: var(--gray-50);
  aspect-ratio: 16 / 9;
}

.card-media-inner {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: transform 0.45s var(--ease);
}

.project-card:hover .card-media-inner { transform: scale(1.04); }

.card-badges {
  position: absolute;
  top: 1.1rem;
  left: 1.1rem;
  display: flex;
  gap: 0.35rem;
}

.badge {
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.badge-sale { background: var(--primary); color: var(--white); }
.badge-ongoing { background: #f59e0b; color: var(--white); }
.badge-completed { background: var(--gray-800); color: var(--white); }
.badge-rera { background: rgba(255,255,255,0.95); color: var(--primary); }

.card-body {
  padding: 0.85rem 1rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.card-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  color: var(--gray-400);
}

.card-icon--sm {
  width: 12px;
  height: 12px;
}

.card-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--gray-900);
  margin: 0;
  line-height: 1.3;
}

.card-location {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 12px;
  color: var(--gray-400);
  margin: 0;
}

.card-location span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card-details {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.85rem;
}

.card-detail {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 11px;
  color: var(--gray-600);
  line-height: 1.3;
}

.card-price {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--primary);
  margin: 0;
  padding-top: 0.15rem;
}

.card-price .card-icon {
  color: var(--primary);
  opacity: 0.7;
}

.card-meta {
  font-size: 12px;
  color: var(--gray-600);
  margin: 0 0 0.5rem;
}

.card-actions {
  display: flex;
  gap: 0.4rem;
  margin-top: 0.25rem;
  padding-top: 0.55rem;
  border-top: 1px solid var(--gray-50);
}

.btn-card {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  padding: 0.45rem 0.6rem;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--brand-blue);
  background: transparent;
  border: 1px solid var(--brand-blue);
  border-radius: 4px;
  cursor: pointer;
  text-decoration: none;
  transition: color 0.2s, border-color 0.2s, background 0.2s, box-shadow 0.2s;
  white-space: nowrap;
}

.btn-card:hover {
  color: var(--white);
  border-color: var(--brand-blue-dark);
  background: var(--brand-blue);
  box-shadow: 0 2px 8px var(--brand-blue-glow);
}

.btn-card--fill {
  color: var(--white);
  background: var(--brand-blue);
  border-color: var(--brand-blue);
}

.btn-card--fill:hover {
  color: var(--white);
  background: var(--brand-blue-dark);
  border-color: var(--brand-blue-dark);
  box-shadow: 0 2px 8px var(--brand-blue-glow);
}

.btn-card--fill .card-icon {
  color: currentColor;
  opacity: 0.85;
}

.card-actions .btn {
  flex: 1;
  padding: 0.55rem 0.75rem;
  font-size: 12px;
}

/* ——— Listing Cards (horizontal) ——— */
.listings-section {
  padding: 3.5rem 0;
  background: var(--off-white);
}

.listings-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.listing-card {
  display: grid;
  grid-template-columns: 200px 1fr auto;
  gap: 1.25rem;
  align-items: stretch;
  min-height: 160px;
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: none;
  border: 2px solid transparent;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
  opacity: 0;
  transform: translateX(-16px);
}

.listing-card.revealed {
  opacity: 1;
  transform: translateX(0);
  animation: cardFrameStep 0.7s var(--ease) forwards;
  animation-delay: var(--frame-delay, 0s);
}

.listing-card:hover {
  transform: translateY(-4px);
  border-color: var(--brand-blue);
  box-shadow: var(--shadow-lg), 0 0 0 1px var(--brand-blue);
}

.listing-image {
  position: relative;
  height: 160px;
  min-height: 160px;
  max-height: 160px;
  overflow: hidden;
  flex-shrink: 0;
  align-self: stretch;
}

.listing-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

@media (max-width: 767px) {
  .listing-image img {
    object-position: center 30%;
  }

  .neighbourhood-card img {
    object-position: center 35%;
  }
}

.listing-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--primary);
  color: var(--white);
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 3px;
  letter-spacing: 0.04em;
}

.listing-body { padding: 1.25rem 0; }

.listing-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--gray-900);
  margin: 0 0 0.25rem;
}

.listing-location {
  font-size: 13px;
  color: var(--gray-400);
  margin: 0 0 0.5rem;
}

.listing-price {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary);
  margin: 0 0 0.5rem;
}

.listing-specs {
  display: flex;
  gap: 1rem;
  font-size: 12px;
  color: var(--gray-600);
  margin-bottom: 0.5rem;
}

.listing-specs span {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.listing-desc {
  font-size: 13px;
  color: var(--gray-600);
  margin: 0;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.listing-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.listing-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition), color var(--transition);
  text-decoration: none;
}

.listing-btn--whatsapp {
  background: #25d366;
  border-color: #25d366;
  color: var(--white);
}

.listing-btn--whatsapp:hover {
  background: #1da851;
  border-color: #1da851;
  color: var(--white);
}

.listing-btn--enquiry {
  background: var(--white);
  border-color: var(--primary);
  color: var(--primary);
}

.listing-btn--enquiry:hover {
  background: var(--primary-light);
}

.listing-agent {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  border-left: 1px solid var(--gray-100);
  gap: 0.5rem;
  min-width: 120px;
}

.agent-photo {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--primary);
  font-size: 14px;
}

.agent-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--gray-800);
  text-align: center;
}

.agent-actions {
  display: flex;
  gap: 0.4rem;
}

.agent-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--gray-200);
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition);
  padding: 0;
  font: inherit;
  color: inherit;
  text-decoration: none;
}

.agent-btn:hover { border-color: var(--primary); color: var(--primary); }

.agent-btn.whatsapp { background: #25d366; border-color: #25d366; color: var(--white); }
.agent-btn.whatsapp:hover { background: #1da851; }

/* ——— Sidebar ——— */
.listings-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.sidebar-box {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-card);
}

.sidebar-box h4 {
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 1rem;
  color: var(--gray-900);
}

.sidebar-search .form-field { margin-bottom: 0.75rem; }

.sidebar-search label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: var(--gray-600);
  margin-bottom: 0.35rem;
}

.sidebar-search select,
.sidebar-search input {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-size: 13px;
}

.sidebar-lead-note {
  font-size: 12px;
  color: var(--gray-600);
  margin: -0.35rem 0 0.85rem;
  line-height: 1.45;
}

.btn-whatsapp-sidebar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  margin-top: 0.65rem;
  padding: 0.65rem 0.85rem;
  background: #25d366;
  color: var(--white);
  border: none;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  transition: background var(--transition);
}

.btn-whatsapp-sidebar:hover {
  background: #1da851;
  color: var(--white);
}

.trending-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0;
  font-size: 13px;
  color: var(--gray-600);
  border-bottom: 1px solid var(--gray-100);
  cursor: pointer;
  transition: color var(--transition);
}

.trending-list li:hover { color: var(--primary); }

.trending-list li svg { width: 14px; height: 14px; color: var(--primary); flex-shrink: 0; }

.featured-mini {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  aspect-ratio: 16/9;
}

.featured-mini img { width: 100%; height: 100%; object-fit: cover; }

.featured-mini-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
  display: flex;
  align-items: flex-end;
  padding: 1rem;
}

.featured-mini-overlay span {
  color: var(--white);
  font-weight: 600;
  font-size: 14px;
}

@media (min-width: 1024px) {
  .listings-layout {
    grid-template-columns: 1fr 300px;
  }

  .listing-card {
    grid-template-columns: 220px 1fr 130px;
  }
}

@media (max-width: 767px) {
  .listing-card {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .listing-image {
    height: 200px;
    min-height: 200px;
    max-height: 200px;
  }

  .listing-agent {
    flex-direction: row;
    border-left: none;
    border-top: 1px solid var(--gray-100);
    justify-content: flex-start;
    padding: 1rem 1.25rem;
  }
}

/* ——— Popular Searches (Adhira-style) ——— */
.popular-section {
  padding: 3.5rem 0;
  background: var(--white);
}

.popular-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  margin-bottom: 1.25rem;
}

.popular-sale-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.85rem;
  background: var(--primary);
  color: var(--white);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  flex-shrink: 0;
}

.popular-area-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  flex: 1 1 100%;
}

.popular-area-chip {
  padding: 0.4rem 0.85rem;
  border: 1px solid var(--gray-200);
  border-radius: 999px;
  background: var(--white);
  color: var(--gray-600);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
}

.popular-area-chip:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.popular-area-chip.is-active {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}

.popular-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.popular-col {
  padding: 1.25rem 1.35rem;
}

.popular-col h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--gray-900);
  margin: 0 0 1rem;
  padding-bottom: 0.65rem;
  border-bottom: 2px solid var(--primary);
}

.popular-col ul li {
  padding: 0.38rem 0;
}

.popular-col ul a {
  font-size: 13px;
  color: var(--gray-600);
  transition: color var(--transition);
}

.popular-col ul a:hover {
  color: var(--primary);
}

/* ——— Neighbourhoods ——— */
.neighbourhoods-section {
  padding: 3.5rem 0;
  background: var(--off-white);
}

.neighbourhoods-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}

.neighbourhood-card {
  position: relative;
  aspect-ratio: 1;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
}

.neighbourhood-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}

.neighbourhood-card:hover img { transform: scale(1.08); }

.neighbourhood-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.65) 0%, transparent 60%);
  display: flex;
  align-items: flex-end;
  padding: 1.25rem;
}

.neighbourhood-overlay h3 {
  color: var(--white);
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0;
  text-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

/* ——— Stats Bar ——— */
.stats-bar {
  background: var(--primary);
  padding: 2.5rem 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.stat-item { text-align: center; }

.stat-number {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1;
  margin-bottom: 0.35rem;
}

.stat-label {
  font-size: 13px;
  color: rgba(255,255,255,0.8);
}

@media (min-width: 768px) {
  .stats-grid { grid-template-columns: repeat(4, 1fr); }
}

/* ——— Testimonials / Reviews marquee ——— */
.testimonials-section {
  padding: 3.5rem 0;
  overflow: hidden;
}

.testimonials-section .google-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.9rem;
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-800);
  margin-bottom: 0.75rem;
}

.testimonials-section .google-g {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: conic-gradient(from -45deg, #ea4335, #fbbc05, #34a853, #4285f4, #ea4335);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 11px;
  color: #fff;
}

@keyframes reviewsMarquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.reviews-marquee-wrap {
  overflow: hidden;
  width: 100%;
  mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}

.reviews-marquee-track {
  display: flex;
  gap: 2rem;
  width: max-content;
  animation: reviewsMarquee 22s linear infinite;
  padding: 0.75rem 0;
  align-items: center;
}

.reviews-marquee-track--fast {
  animation-duration: 18s;
}

.reviews-marquee-wrap:hover .reviews-marquee-track {
  animation-play-state: paused;
}

.review-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  white-space: nowrap;
  flex-shrink: 0;
  padding: 0.55rem 1.1rem;
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  font-size: 13px;
  color: var(--gray-600);
}

.review-pill-stars {
  color: #f59e0b;
  font-size: 12px;
  letter-spacing: -1px;
}

.review-pill strong {
  color: var(--gray-900);
  font-weight: 600;
}

.review-pill em {
  color: var(--primary);
  font-style: normal;
  font-weight: 500;
}

.review-pill-dot {
  color: var(--gray-400);
}

.review-pill-text {
  color: var(--gray-600);
  max-width: 42ch;
  overflow: hidden;
  text-overflow: ellipsis;
}

.testimonial-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  box-shadow: var(--shadow-card);
  height: 100%;
  transition: transform var(--transition);
}

.testimonial-card:hover { transform: translateY(-4px); }

.testimonial-text {
  font-size: 14px;
  color: var(--gray-600);
  line-height: 1.7;
  margin: 0 0 1rem;
  font-style: italic;
}

.testimonial-author {
  font-weight: 700;
  font-size: 14px;
  color: var(--gray-900);
  margin: 0;
}

.testimonial-project {
  font-size: 12px;
  color: var(--primary);
  margin: 0.15rem 0 0.5rem;
}

.testimonial-stars { color: #f59e0b; font-size: 14px; }

.swiper-pagination-bullet-active { background: var(--primary) !important; }

/* ——— Contact Section ——— */
.contact-section {
  padding: 3.5rem 0;
  background: var(--off-white);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}

.contact-form-wrap {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-md);
}

.form-field { margin-bottom: 1rem; }

.form-field label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--gray-600);
  margin-bottom: 0.35rem;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 0.7rem 0.875rem;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-size: 14px;
  transition: border-color var(--transition);
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--primary);
}

.form-success {
  background: var(--primary-light);
  color: var(--primary-dark);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 14px;
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .contact-grid { grid-template-columns: 1fr 1fr; }
}

/* ——— Footer ——— */
.site-footer {
  background: var(--footer-bg);
  color: rgba(255,255,255,0.7);
  padding: 3rem 0 1.25rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr);
  gap: 2rem 1.5rem;
  margin-bottom: 2.5rem;
  align-items: start;
}

.footer-col-brand {
  padding-right: 1rem;
}

.footer-logo-link {
  display: inline-block;
  margin-bottom: 0.75rem;
  background: var(--white);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.75rem;
  line-height: 0;
}

.footer-logo {
  height: 52px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  display: block;
}

.footer-col h4 {
  color: var(--white);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--primary);
  display: inline-block;
}

.footer-col ul li { margin-bottom: 0.55rem; }

.footer-col ul a {
  font-size: 13px;
  line-height: 1.5;
  transition: color var(--transition);
  display: inline-block;
}

.footer-col ul a:hover { color: var(--white); }

.footer-brand-text {
  font-size: 13px;
  line-height: 1.65;
  margin: 0;
  max-width: 280px;
}

.footer-social {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
}

.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}

.footer-social a:hover { background: var(--primary); }
.footer-social svg { width: 16px; height: 16px; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  font-size: 12px;
}

.footer-bottom a { transition: color var(--transition); }
.footer-bottom a:hover { color: var(--white); }

.footer-credit {
  margin: 0;
  color: rgba(255,255,255,0.55);
}

.footer-credit a {
  color: rgba(255,255,255,0.85);
  font-weight: 500;
}

.footer-credit a:hover { color: var(--white); }

.smr-oneway-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.footer-flags {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.footer-flag {
  width: 20px;
  height: 14px;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.2);
  flex-shrink: 0;
}

@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-col-brand {
    grid-column: 1 / -1;
    padding-right: 0;
    margin-bottom: 0.5rem;
  }
}

@media (max-width: 640px) {
  .site-footer { padding: 2.5rem 0 1rem; }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.75rem 1.25rem;
    margin-bottom: 2rem;
  }

  .footer-col-brand {
    grid-column: 1 / -1;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }
}

/* ——— WhatsApp Float ——— */
.whatsapp-float {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 90;
  width: 52px;
  height: 52px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(37,211,102,0.4);
  transition: transform var(--transition);
  animation: pulse 2s infinite;
}

.whatsapp-float:hover { transform: scale(1.1); }
.whatsapp-float svg { width: 28px; height: 28px; color: var(--white); }

/* ——— PJ Chatbot (blue theme) ——— */
#pj-chatbot-root {
  --chat-blue: #1a56db;
  --chat-blue-dark: #1e40af;
  --chat-blue-light: #eff6ff;
  --chat-blue-mid: #3b82f6;
}

.pj-chatbot-toggle {
  position: fixed;
  bottom: 5.75rem;
  right: 1.5rem;
  z-index: 95;
  min-width: 52px;
  height: 52px;
  padding: 0 1rem 0 0.75rem;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--chat-blue) 0%, var(--chat-blue-dark) 100%);
  color: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  box-shadow: 0 4px 20px rgba(26, 86, 219, 0.45);
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
  animation: chatbotPulse 2.5s ease-in-out infinite;
}

.pj-chatbot-toggle-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
}

.pj-chatbot-toggle-icon i {
  font-size: 16px;
}

.pj-chatbot-toggle-label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.pj-chatbot-toggle:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(26, 86, 219, 0.5);
}

.pj-chatbot-panel {
  position: fixed;
  bottom: 9.25rem;
  right: 1.5rem;
  z-index: 96;
  width: min(380px, calc(100vw - 2rem));
  max-height: min(580px, calc(100vh - 10rem));
  background: var(--white);
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.18);
  border: 1px solid #e2e8f0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px) scale(0.96);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
}

.pj-chatbot-panel.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.pj-chatbot-header {
  padding: 0.85rem 1rem;
  background: linear-gradient(135deg, var(--chat-blue) 0%, var(--chat-blue-dark) 100%);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.pj-chatbot-header-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
}

.pj-chatbot-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 16px;
}

.pj-chatbot-header strong {
  display: block;
  font-size: 14px;
}

.pj-chatbot-header span {
  font-size: 11px;
  opacity: 0.92;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.pj-chatbot-online {
  font-size: 7px !important;
  color: #4ade80;
}

.pj-chatbot-close {
  background: rgba(255,255,255,0.15);
  border: none;
  color: var(--white);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pj-chatbot-close i {
  font-size: 14px;
}

.pj-chatbot-recent {
  padding: 0.5rem 0.75rem;
  background: var(--chat-blue-light);
  border-bottom: 1px solid #dbeafe;
  overflow: hidden;
}

.pj-chatbot-recent-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--chat-blue-dark);
  margin: 0 0 0.35rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.pj-chatbot-recent-label i {
  color: var(--chat-blue);
}

.pj-chatbot-recent-track {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  max-height: 52px;
  overflow-y: auto;
}

.pj-chatbot-recent-item {
  font-size: 11px;
  color: #334155;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pj-chatbot-recent-item i {
  color: var(--chat-blue);
  font-size: 10px;
  flex-shrink: 0;
}

.pj-chatbot-recent-item strong {
  color: var(--chat-blue-dark);
}

.pj-chatbot-messages {
  flex: 1;
  overflow-y: auto;
  padding: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  background: #f8fafc;
  min-height: 160px;
  max-height: 220px;
}

.pj-chat-msg {
  max-width: 90%;
  padding: 0.55rem 0.8rem;
  border-radius: 14px;
  font-size: 13px;
  line-height: 1.45;
}

.pj-chat-msg--bot {
  align-self: flex-start;
  background: var(--white);
  color: var(--gray-800);
  border: 1px solid #e2e8f0;
  border-bottom-left-radius: 4px;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.pj-chat-msg-icon {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--chat-blue-light);
  color: var(--chat-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 11px;
}

.pj-chat-msg--user {
  align-self: flex-end;
  background: linear-gradient(135deg, var(--chat-blue) 0%, var(--chat-blue-dark) 100%);
  color: var(--white);
  border-bottom-right-radius: 4px;
}

.pj-chatbot-projects-wrap {
  padding: 0 0.75rem 0.5rem;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
}

.pj-chatbot-projects-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--chat-blue-dark);
  margin: 0 0 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.pj-chatbot-projects-title i {
  color: var(--chat-blue);
}

.pj-chatbot-projects {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.45rem;
  max-height: 220px;
  overflow-y: auto;
  padding-bottom: 0.25rem;
  scrollbar-width: thin;
}

.pj-chatbot-project-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
  padding: 0.45rem;
  border: 1px solid #dbeafe;
  border-radius: 10px;
  background: var(--white);
  cursor: pointer;
  text-align: left;
  text-decoration: none;
  color: inherit;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
  overflow: hidden;
}

.pj-chatbot-project-card:hover {
  border-color: var(--chat-blue);
  box-shadow: 0 4px 12px rgba(26, 86, 219, 0.15);
  transform: translateY(-1px);
}

.pj-chatbot-project-card img {
  width: 100%;
  height: 48px;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 0.15rem;
}

.pj-chatbot-project-icon {
  position: absolute;
  top: 0.35rem;
  right: 0.35rem;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--chat-blue);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  z-index: 1;
}

.pj-chatbot-project-name {
  font-size: 10px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.2;
}

.pj-chatbot-project-loc {
  font-size: 9px;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 0.2rem;
}

.pj-chatbot-project-loc i {
  color: var(--chat-blue);
  font-size: 8px;
}

.pj-chatbot-project-tag {
  font-size: 8px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--chat-blue);
  background: var(--chat-blue-light);
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
}

.pj-chatbot-lead-sheet {
  padding: 0.75rem;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.pj-chatbot-lead-back {
  align-self: flex-start;
  border: none;
  background: transparent;
  color: var(--chat-blue-dark);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0;
}

.pj-chatbot-lead-head {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
}

.pj-chatbot-lead-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--chat-blue) 0%, var(--chat-blue-dark) 100%);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pj-chatbot-lead-kicker {
  margin: 0;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--chat-blue);
}

.pj-chatbot-lead-project {
  display: block;
  font-size: 14px;
  color: #0f172a;
  line-height: 1.25;
}

.pj-chatbot-lead-loc {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 11px;
  color: #64748b;
  margin-top: 0.15rem;
}

.pj-chatbot-lead-form {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.pj-chatbot-lead-field {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.pj-chatbot-lead-field span {
  font-size: 11px;
  font-weight: 600;
  color: #334155;
}

.pj-chatbot-lead-field input {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  padding: 0.55rem 0.7rem;
  font-size: 13px;
  font-family: inherit;
  background: var(--white);
}

.pj-chatbot-lead-field input:focus {
  outline: none;
  border-color: var(--chat-blue);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.pj-chatbot-lead-submit {
  border: none;
  border-radius: 10px;
  padding: 0.65rem 0.85rem;
  background: linear-gradient(135deg, var(--chat-blue) 0%, var(--chat-blue-dark) 100%);
  color: var(--white);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}

.pj-chatbot-lead-submit:disabled {
  opacity: 0.7;
  cursor: wait;
}

.pj-chatbot-lead-note {
  margin: 0;
  font-size: 10px;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.pj-chatbot-lead-note i {
  color: var(--chat-blue);
}

.pj-chatbot-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 0 0.75rem 0.65rem;
  background: #f8fafc;
}

.pj-chatbot-option {
  padding: 0.4rem 0.7rem;
  font-size: 11px;
  font-weight: 600;
  border: 1px solid #bfdbfe;
  background: var(--white);
  color: var(--chat-blue-dark);
  border-radius: 999px;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.pj-chatbot-option i {
  color: var(--chat-blue);
  font-size: 10px;
}

.pj-chatbot-option:hover {
  background: var(--chat-blue);
  color: var(--white);
  border-color: var(--chat-blue);
}

.pj-chatbot-option:hover i {
  color: var(--white);
}

.pj-chatbot-option--ghost {
  background: transparent;
  border-style: dashed;
}

.pj-chatbot-option--primary {
  width: 100%;
  justify-content: center;
  background: linear-gradient(135deg, var(--chat-blue) 0%, var(--chat-blue-dark) 100%);
  color: var(--white);
  border: none;
  padding: 0.55rem 1rem;
  font-size: 12px;
}

.pj-chatbot-option--primary i {
  color: var(--white);
}

.pj-chatbot-input-row {
  display: flex;
  gap: 0.5rem;
  padding: 0.65rem 0.75rem;
  border-top: 1px solid #e2e8f0;
  background: var(--white);
}

.pj-chatbot-input {
  flex: 1;
  padding: 0.55rem 0.75rem;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  font-size: 13px;
  font-family: var(--font);
}

.pj-chatbot-input:focus {
  outline: none;
  border-color: var(--chat-blue);
  box-shadow: 0 0 0 3px rgba(26, 86, 219, 0.12);
}

.pj-chatbot-send {
  width: 40px;
  height: 40px;
  padding: 0;
  background: linear-gradient(135deg, var(--chat-blue) 0%, var(--chat-blue-dark) 100%);
  color: var(--white);
  border: none;
  border-radius: 10px;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pj-chatbot-send:hover {
  filter: brightness(1.08);
}

@keyframes chatbotPulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(26, 86, 219, 0.4); }
  50% { box-shadow: 0 8px 28px rgba(26, 86, 219, 0.6); }
}

@media (max-width: 768px) {
  .popular-section {
    padding: 2rem 0;
  }

  .popular-section .section-header {
    margin-bottom: 0.85rem;
  }

  .popular-toolbar {
    gap: 0.55rem;
    margin-bottom: 1rem;
  }

  .popular-area-chips {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 0.15rem;
    margin: 0 -0.25rem;
    padding-left: 0.25rem;
    padding-right: 0.25rem;
  }

  .popular-area-chips::-webkit-scrollbar {
    display: none;
  }

  .popular-area-chip {
    flex-shrink: 0;
    font-size: 12px;
    padding: 0.35rem 0.75rem;
  }

  .popular-grid {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

  .popular-col {
    padding: 1rem 1.1rem;
  }

  .popular-col h4 {
    font-size: 14px;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
  }

  .popular-col ul a {
    font-size: 12px;
  }

  .pj-chatbot-toggle {
    bottom: 5.25rem;
    right: 1rem;
    height: 48px;
    min-width: 48px;
    padding: 0 0.85rem 0 0.75rem;
  }

  .pj-chatbot-panel {
    right: 1rem;
    bottom: 8.75rem;
  }

  .pj-chatbot-toggle-label {
    font-size: 12px;
  }
}

@media (max-width: 480px) {
  .pj-chatbot-toggle-label {
    display: none;
  }

  .pj-chatbot-toggle {
    width: 48px;
    padding: 0;
    border-radius: 50%;
  }
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 4px 16px rgba(37,211,102,0.4); }
  50% { box-shadow: 0 4px 24px rgba(37,211,102,0.6); }
}

/* ——— Scroll Reveal Animations ——— */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.visible,
.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left,
.reveal-right,
.reveal-zoom {
  opacity: 0;
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal-left { transform: translateX(-24px); }
.reveal-right { transform: translateX(24px); }
.reveal-zoom { transform: scale(0.96); }

.reveal-left.revealed,
.reveal-left.visible,
.reveal-right.revealed,
.reveal-right.visible,
.reveal-zoom.revealed,
.reveal-zoom.visible {
  opacity: 1;
  transform: translateX(0) scale(1);
}

.reveal-stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}

.reveal-stagger.visible > *:nth-child(1) { transition-delay: 0.05s; }
.reveal-stagger.visible > *:nth-child(2) { transition-delay: 0.1s; }
.reveal-stagger.visible > *:nth-child(3) { transition-delay: 0.15s; }
.reveal-stagger.visible > *:nth-child(4) { transition-delay: 0.2s; }

.reveal-stagger.visible > * {
  opacity: 1;
  transform: translateY(0);
}

/* ——— Empty State ——— */
.empty-state {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--gray-400);
}

.empty-state svg { width: 48px; height: 48px; margin: 0 auto 1rem; opacity: 0.5; }

/* ——— Filter Pills ——— */
.filter-pills {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 1rem;
}

.filter-pill {
  padding: 0.4rem 1rem;
  font-size: 13px;
  border: 1.5px solid var(--gray-200);
  border-radius: 50px;
  background: var(--white);
  color: var(--gray-600);
  cursor: pointer;
  transition: all var(--transition);
}

.filter-pill.is-active,
.filter-pill:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-light);
}

.search-results-count {
  text-align: center;
  font-size: 13px;
  color: var(--gray-400);
  margin-top: 1rem;
}

/* ——— Projects Page Overrides ——— */
.projects-page .section-header-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.projects-page .search-panel {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  box-shadow: var(--shadow-card);
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.projects-page .search-panel .search-input-wrap { flex: 1; min-width: 200px; }
.projects-page .search-panel .search-input { padding-left: 1rem; }

/* ——— Page hero (inner pages) ——— */
.page-hero-band {
  background: var(--primary);
  padding: calc(var(--nav-height) + var(--topbar-height) + 2rem) 0 2.5rem;
  text-align: center;
}

.page-hero-band h1 {
  color: var(--white);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  margin: 0 0 0.5rem;
}

.page-hero-band p {
  color: rgba(255,255,255,0.88);
  margin: 0;
  font-size: 15px;
}

.page-pad-top {
  padding-top: calc(var(--nav-height) + var(--topbar-height) + 1.5rem);
}

/* ——— Project detail layout with sidebar ——— */
.detail-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding: 2.5rem 0;
}

.detail-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.detail-sidebar .sidebar-box { position: sticky; top: calc(var(--nav-height) + var(--topbar-height) + 1rem); }

.facts-list { margin: 0; padding: 0; list-style: none; }

.facts-list li {
  display: flex;
  justify-content: space-between;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--gray-100);
  font-size: 14px;
}

.facts-list li span:first-child { color: var(--gray-600); }
.facts-list li span:last-child { font-weight: 600; color: var(--gray-900); }

/* ——— Project detail hero (no Tailwind required) ——— */
.project-hero {
  position: relative;
  background: var(--gray-900);
}

.project-hero-inner {
  position: relative;
  height: min(62vh, 560px);
  min-height: 360px;
  overflow: hidden;
}

.project-hero-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.project-hero-overlay-top {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0.15) 45%, rgba(0,0,0,0.08) 100%);
  pointer-events: none;
  z-index: 1;
}

.project-hero-overlay-bottom {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 50%;
  background: linear-gradient(to top, rgba(0,0,0,0.55), transparent);
  pointer-events: none;
  z-index: 1;
}

.project-hero-caption {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  z-index: 2;
  padding: 1.5rem 0 2rem;
}

.project-hero-caption h1 {
  color: var(--white);
  font-size: clamp(1.75rem, 5vw, 3rem);
  font-weight: 700;
  margin: 0.75rem 0 0.35rem;
  line-height: 1.15;
  text-shadow: 0 2px 10px rgba(0,0,0,0.55);
}

.project-hero-caption .hero-loc {
  color: #7dcea0;
  font-weight: 600;
  font-size: 1.05rem;
  margin: 0.35rem 0;
  text-shadow: 0 2px 6px rgba(0,0,0,0.5);
}

.project-hero-caption .hero-sub {
  color: rgba(255,255,255,0.92);
  margin: 0;
  text-shadow: 0 2px 6px rgba(0,0,0,0.45);
}

@media (max-width: 767px) {
  .project-hero-inner {
    height: clamp(220px, 48vh, 380px);
    min-height: 220px;
  }

  .project-hero-img {
    object-position: center 28%;
  }

  .project-hero-caption {
    padding: 1rem 0 1.25rem;
  }
}

.project-hero-img-wrap {
  position: relative;
  height: min(58vh, 520px);
  min-height: 360px;
  overflow: hidden;
}

.project-hero-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-hero-img-wrap .project-hero-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2rem 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
}

.project-hero-caption .container h1 {
  color: var(--white);
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 700;
  margin: 0.5rem 0 0.25rem;
}

.project-hero-caption .container p { color: rgba(255,255,255,0.9); margin: 0; }

.badge-hero {
  display: inline-block;
  background: var(--primary);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.content-section { padding: 3rem 0; }
.content-section.alt { background: var(--off-white); }

.content-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--gray-100);
}

.content-grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1rem; }
.content-grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; }

.amenity-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 14px;
  color: var(--gray-800);
  padding: 1rem;
  background: var(--white);
  border-radius: var(--radius-sm);
  border: 1px solid var(--gray-100);
  transition: border-color var(--transition), transform var(--transition);
}

.amenity-item:hover { border-color: var(--primary); transform: translateY(-2px); }
.amenity-item svg { color: var(--primary); flex-shrink: 0; width: 18px; height: 18px; }

.stat-box-green {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-100);
}

.stat-box-green strong {
  display: block;
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 0.35rem;
}

.stat-box-green span { font-size: 13px; color: var(--gray-600); }

@media (min-width: 1024px) {
  .detail-layout { grid-template-columns: 1fr 300px; }
  .detail-layout.wide-main { grid-template-columns: 1fr 320px; }
}

/* ——— Inner page tailwind color overrides (when tailwind CDN kept) ——— */
.text-emerald-brand, .text-gold-brand { color: var(--primary) !important; }
.bg-emerald-brand, .bg-gold-brand { background-color: var(--primary) !important; }
.from-emerald-brand { --tw-gradient-from: var(--primary) !important; }
.to-emerald-dark { --tw-gradient-to: var(--primary-dark) !important; }
.btn-primary, .btn-gold {
  background: linear-gradient(135deg, var(--brand-blue) 0%, var(--brand-blue-dark) 100%) !important;
  color: var(--white) !important;
  border: none;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}
.btn-primary:hover, .btn-gold:hover {
  background: linear-gradient(135deg, var(--brand-blue-dark) 0%, #1e40af 100%) !important;
  box-shadow: 0 4px 20px var(--brand-blue-glow), 0 0 0 2px var(--brand-orange-glow) !important;
}

/* ——— Loading overlay ——— */
.pj-loading-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.pj-loading-overlay.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; }

.pj-loading-mark {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.02em;
}

/* ——— Enquiry Popup (green theme) ——— */
.enquiry-popup-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.enquiry-popup-overlay.is-open { opacity: 1; visibility: visible; }

.enquiry-popup {
  background: var(--white);
  border-radius: var(--radius-lg);
  max-width: 440px;
  width: 100%;
  box-shadow: var(--shadow-lg);
  transform: translateY(16px) scale(0.98);
  transition: transform 0.35s var(--ease);
  overflow: hidden;
}

.enquiry-popup-overlay.is-open .enquiry-popup { transform: translateY(0) scale(1); }

.enquiry-popup-inner { padding: 2rem; position: relative; }

.popup-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--gray-50);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  color: var(--gray-600);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}

.popup-close:hover { background: var(--gray-100); color: var(--gray-900); }

.enquiry-popup h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--gray-900);
  margin: 0 0 0.35rem;
}

.enquiry-popup .popup-sub {
  font-size: 14px;
  color: var(--gray-600);
  margin: 0 0 1.25rem;
}

.enquiry-popup .form-input {
  width: 100%;
  padding: 0.7rem 0.875rem;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-size: 14px;
  margin-bottom: 0.75rem;
}

.enquiry-popup .form-input:focus { outline: none; border-color: var(--primary); }

.enquiry-popup .btn-popup-submit {
  width: 100%;
  padding: 0.9rem 1rem;
  background: linear-gradient(135deg, #5f259f 0%, #7b3fe4 100%);
  color: var(--white);
  border: none;
  border-radius: 12px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
  margin-top: 0.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-shadow: 0 8px 22px rgba(95, 37, 159, 0.35);
}

.enquiry-popup .btn-popup-submit:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 10px 26px rgba(95, 37, 159, 0.42);
}

.enquiry-popup .btn-popup-submit:disabled,
.enquiry-popup .btn-popup-submit.is-loading {
  opacity: 0.85;
  cursor: wait;
  transform: none;
}

.popup-success-moment {
  text-align: center;
  padding: 2rem 1rem 1.5rem;
  animation: popupSuccessIn 0.45s ease;
}

.popup-success-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #5f259f 0%, #7b3fe4 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  box-shadow: 0 8px 24px rgba(95, 37, 159, 0.35);
}

.popup-success-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--gray-900);
  margin: 0 0 0.35rem;
}

.popup-success-sub {
  font-size: 14px;
  color: var(--gray-600);
  margin: 0;
}

@keyframes popupSuccessIn {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: scale(1); }
}

.enquiry-popup .popup-enquiry-form.hidden {
  display: none !important;
}

.enquiry-popup .btn-whatsapp {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  margin-top: 0.75rem;
  padding: 0.75rem;
  background: #25d366;
  color: var(--white);
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 14px;
  transition: background var(--transition);
}

.enquiry-popup .btn-whatsapp:hover { background: #1da851; }

/* Program popup slides — green */
.program-popup-panel {
  background: var(--white);
  border-radius: var(--radius-lg);
  max-width: 480px;
  width: 100%;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.program-popup-header {
  background: var(--primary);
  color: var(--white);
  padding: 1.25rem 1.5rem;
}

.program-popup-header h2 { margin: 0; font-size: 1.15rem; font-weight: 700; }

.program-popup-slide {
  padding: 1.5rem;
  text-align: center;
}

.program-popup-slide i { font-size: 2rem; color: var(--primary); margin-bottom: 0.75rem; }
.program-popup-slide h3 { font-size: 1.1rem; margin: 0 0 0.5rem; color: var(--gray-900); }
.program-popup-slide p { font-size: 14px; color: var(--gray-600); margin: 0; }

.program-popup-dots { display: flex; justify-content: center; gap: 0.4rem; padding-bottom: 1rem; }
.program-popup-dots button {
  width: 8px; height: 8px; border-radius: 50%; border: none;
  background: var(--gray-200); cursor: pointer; padding: 0;
}
.program-popup-dots button.is-active { background: var(--primary); width: 20px; border-radius: 4px; }

/* Inner page sections (project detail pages) */
.section-light { background: var(--white); }
.section-muted { background: var(--off-white); }

.glass-card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  box-shadow: var(--shadow-sm);
}

.glass-card.reveal.revealed,
.glass-card.reveal.visible {
  animation: cardFrameStep 0.65s var(--ease) forwards;
}

.enquiry-cta-box {
  text-align: center;
  padding: 2.5rem 2rem;
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-100);
  box-shadow: var(--shadow-card);
}

.enquiry-cta-box h2 {
  margin: 0 0 0.75rem;
  font-size: 1.5rem;
}

.enquiry-cta-box p {
  color: var(--gray-600);
  margin: 0 0 1.5rem;
  font-size: 0.95rem;
}

.enquiry-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.enquiry-cta-actions .btn {
  min-width: 160px;
}

.max-w-7xl {
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
}

.highlight-item { color: var(--gray-700); }
.highlight-item i { color: var(--primary); }

.form-input {
  width: 100%;
  padding: 0.7rem 0.875rem;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-size: 14px;
}

.form-input:focus { outline: none; border-color: var(--primary); }

.form-enquiry-wrap {
  background: var(--white);
  border: 1px solid var(--gray-100);
  box-shadow: var(--shadow-card);
}

.projects-page { background: var(--ceramic); }

/* ——— Inner page hero (about, contact, legal) ——— */
.page-hero {
  padding: 7rem 0 3rem;
  background: linear-gradient(180deg, var(--primary-light) 0%, var(--white) 100%);
  text-align: center;
}

.page-hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800;
  color: var(--gray-900);
  margin: 0.5rem 0;
}

.page-hero p {
  color: var(--gray-600);
  max-width: 36rem;
  margin: 0.75rem auto 0;
}

/* ——— Gallery page ——— */
.gallery-hero {
  padding: 7rem 0 2.5rem;
  background: linear-gradient(180deg, var(--primary-light) 0%, var(--white) 100%);
  text-align: center;
}

.gallery-hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800;
  color: var(--gray-900);
}

.gallery-hero .text-gold-brand {
  color: var(--primary);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.gallery-hero p {
  color: var(--gray-600);
  max-width: 32rem;
  margin: 0.75rem auto 0;
}

.luxury-divider {
  width: 80px;
  height: 3px;
  margin: 1.25rem auto 0;
  border-radius: 3px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
}

.gallery-tabs {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin: 0 auto 2rem;
  flex-wrap: wrap;
}

.gallery-tab {
  padding: 0.65rem 1.5rem;
  border-radius: 999px;
  border: 1.5px solid var(--gray-200);
  background: var(--white);
  color: var(--gray-600);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
}

.gallery-tab:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.gallery-tab.active {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}

.gallery-panel { display: none; }
.gallery-panel.active { display: block; }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--gray-100);
  border: 1px solid var(--gray-100);
  transition: transform var(--transition), box-shadow var(--transition);
}

.gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.gallery-item-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 45%, rgba(0,0,0,0.75));
  display: flex;
  align-items: flex-end;
  padding: 1rem;
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 600;
}

@media (max-width: 640px) {
  .page-hero,
  .gallery-hero {
    padding-top: 6rem;
    padding-bottom: 2rem;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }

  .gallery-item img {
    object-position: center 30%;
  }
}

/* ——— Desktop: tighter section & card spacing ——— */
@media (min-width: 1024px) {
  .hero {
    min-height: clamp(380px, 56vh, 500px);
  }

  .hero-content {
    padding: 1.75rem 0 0;
  }

  .hero-subtitle {
    margin-bottom: 1.15rem;
  }

  .search-widget {
    margin-bottom: 1.35rem;
  }

  .search-body {
    padding: 1rem 1.25rem 0.875rem;
  }

  .search-tab {
    padding: 0.7rem 0.875rem;
  }

  .agent-features {
    padding: 1.25rem 0;
  }

  .agent-features-inner {
    gap: 1rem;
  }

  .agent-bar {
    padding: 0.875rem 1rem;
  }

  .feature-card {
    padding: 0.9rem 1rem;
  }

  .feature-cards {
    gap: 0.75rem;
  }

  .stats-bar {
    padding: 1.65rem 0;
  }

  .stats-grid {
    gap: 1rem;
  }

  .projects-section,
  .listings-section,
  .popular-section,
  .neighbourhoods-section,
  .testimonials-section,
  .contact-section {
    padding: 2.25rem 0;
  }

  .section-header {
    margin-bottom: 1.15rem;
  }

  .section-header--with-search {
    flex-direction: column;
    align-items: stretch;
    gap: 0.85rem;
  }

  .section-search {
    max-width: none;
    flex: 1 1 auto;
  }

  .section-title {
    font-size: 1.65rem;
    margin-bottom: 0.35rem;
  }

  .area-chips {
    margin-bottom: 1.15rem;
  }

  .view-all-wrap {
    margin-top: 1rem;
  }

  .projects-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
  }

  .project-card .card-media {
    padding: 0.45rem 0.45rem 0;
  }

  .project-card .card-media-frame {
    aspect-ratio: 4 / 3;
  }

  .project-card .card-body {
    padding: 0.5rem 0.55rem 0.6rem;
    gap: 0.3rem;
  }

  .project-card .card-location {
    font-size: 9px;
  }

  .project-card .card-title {
    font-size: 0.78rem;
    line-height: 1.2;
  }

  .project-card .card-price {
    font-size: 0.75rem;
  }

  .project-card .card-detail {
    font-size: 8px;
  }

  .project-card .card-icon {
    width: 11px;
    height: 11px;
  }

  .project-card .card-meta {
    font-size: 9px;
    margin-bottom: 0.35rem;
    line-height: 1.35;
  }

  .project-card .card-actions {
    flex-direction: column;
    gap: 0.25rem;
    padding-top: 0.4rem;
    margin-top: 0.1rem;
  }

  .project-card .card-actions .btn-card,
  .project-card .card-actions .btn {
    padding: 0.35rem 0.4rem;
    font-size: 9px;
  }

  .project-card .badge {
    font-size: 8px;
    padding: 2px 6px;
  }

  .project-card .card-badges {
    top: 0.65rem;
    left: 0.65rem;
  }

  .card-body {
    padding: 0.8rem 0.95rem 0.95rem;
  }

  .card-meta {
    margin-bottom: 0.6rem;
  }

  .card-title {
    margin-bottom: 0.35rem;
  }

  .listings-layout {
    gap: 1.15rem;
  }

  .listings-sidebar {
    gap: 0.875rem;
  }

  .listing-card {
    gap: 0.875rem;
    grid-template-columns: 175px 1fr 105px;
    min-height: 140px;
  }

  .listing-image {
    height: 140px;
    min-height: 140px;
    max-height: 140px;
  }

  .listing-body {
    padding: 0.75rem 0;
  }

  .listing-agent {
    padding: 0.65rem;
    min-width: 96px;
  }

  .sidebar-box {
    padding: 1.1rem 1.15rem;
  }

  .sidebar-box h4 {
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
  }

  .popular-grid {
    gap: 1.25rem;
  }

  .popular-col h4 {
    margin-bottom: 0.65rem;
  }

  .neighbourhoods-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
  }

  .neighbourhood-card {
    aspect-ratio: 4 / 3;
  }

  .contact-grid {
    gap: 1.15rem;
  }

  .enquiry-cta-box {
    padding: 1.35rem 1.5rem;
  }

  .testimonial-card {
    padding: 1.25rem;
  }

  .testimonials-swiper {
    padding-bottom: 0.5rem !important;
  }
}

/* ——— Phase 3: Rosemary / Ceramic / Glass ——— */
.projects-hero {
  position: relative;
  min-height: 340px;
  display: flex;
  align-items: flex-end;
  padding: calc(var(--nav-height) + var(--topbar-height) + 3rem) 0 2.5rem;
  overflow: hidden;
}

.projects-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.projects-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

.projects-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(26,26,26,0.35) 0%, rgba(26,26,26,0.72) 100%);
  z-index: 1;
}

.projects-hero-content {
  position: relative;
  z-index: 2;
  color: var(--white);
}

.projects-hero-content h1 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800;
  margin: 0 0 0.5rem;
  max-width: 28rem;
}

.projects-hero-content p {
  margin: 0 0 1.5rem;
  opacity: 0.9;
}

.projects-filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.projects-filter-tab {
  border: 1px solid rgba(255,255,255,0.35);
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(8px);
  color: var(--white);
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background var(--transition), border-color var(--transition);
}

.projects-filter-tab:hover,
.projects-filter-tab.is-active {
  background: var(--rosemary);
  border-color: var(--rosemary);
  color: var(--white);
}

.top-agents-strip {
  padding: 2rem 0;
  background: var(--ceramic-warm);
  border-bottom: 1px solid var(--gray-100);
}

.top-agents-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
  align-items: flex-end;
}

.top-agents-header h2 {
  margin: 0;
  font-size: 1.35rem;
  color: var(--gray-900);
}

.top-agents-header p {
  margin: 0;
  max-width: 28rem;
  font-size: 14px;
  color: var(--gray-600);
}

.top-agents-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.top-agent-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  flex: 1;
  min-width: 260px;
  max-width: 420px;
}

.top-agent-photo {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--gray-100);
}

.top-agent-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.top-agent-info strong {
  color: var(--gray-900);
  font-size: 15px;
}

.top-agent-info span {
  font-size: 12px;
  color: var(--gray-600);
}

.leadership-bar {
  gap: 1rem;
}

.leadership-photo {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--gray-100);
  flex-shrink: 0;
}

.listing-card.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(14px);
  border: 1px solid var(--glass-border);
}

.listing-view-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--rosemary-dark);
  text-decoration: none;
  margin-top: 0.35rem;
  display: inline-block;
}

.listing-view-link:hover { text-decoration: underline; }

.listing-card-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  margin-top: 0.35rem;
}

.listing-brochure-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-700);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.listing-brochure-link:hover { color: var(--rosemary-dark); }

.agent-photo-img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--gray-100);
}

.agent-role-sm {
  font-size: 11px;
  color: var(--rosemary);
  font-weight: 600;
}

.sidebar-featured-agent {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
}

.sidebar-featured-agent img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
}

.sidebar-featured-agent strong {
  display: block;
  font-size: 14px;
  color: var(--gray-900);
}

.sidebar-featured-agent span {
  font-size: 12px;
  color: var(--gray-600);
}

.sidebar-trends-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.sidebar-trend-item {
  display: flex;
  gap: 0.65rem;
  text-decoration: none;
  color: inherit;
  align-items: flex-start;
}

.sidebar-trend-item img {
  width: 64px;
  height: 48px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.sidebar-trend-item strong {
  display: block;
  font-size: 12px;
  line-height: 1.35;
  color: var(--gray-900);
  margin-bottom: 0.15rem;
}

.sidebar-trend-item span {
  font-size: 11px;
  color: var(--gray-400);
}

.trends-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.trend-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.trend-card-image {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.trend-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s var(--ease);
}

.trend-card:hover .trend-card-image img {
  transform: scale(1.04);
}

.trend-card-cat {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--rosemary);
  color: var(--white);
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 3px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.trend-card-body {
  padding: 1.25rem;
}

.trend-card-date {
  font-size: 12px;
  color: var(--gray-400);
}

.trend-card-body h3 {
  margin: 0.35rem 0 0.5rem;
  font-size: 1.1rem;
}

.trend-card-body h3 a {
  color: var(--gray-900);
  text-decoration: none;
}

.trend-card-body h3 a:hover { color: var(--rosemary-dark); }

.trend-card-body p {
  font-size: 14px;
  color: var(--gray-600);
  margin: 0 0 0.75rem;
  line-height: 1.55;
}

.trend-card-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--rosemary-dark);
  text-decoration: none;
}

.trend-card-link:hover { text-decoration: underline; }

.trend-article {
  padding: 2rem 0 3rem;
  border-bottom: 1px solid var(--gray-100);
}

.trend-article h2 {
  font-size: 1.5rem;
  margin: 0 0 0.75rem;
  color: var(--gray-900);
}

.trend-article-meta {
  font-size: 13px;
  color: var(--gray-400);
  margin-bottom: 1rem;
}

.trend-article p {
  color: var(--gray-600);
  line-height: 1.7;
  margin: 0 0 1rem;
}

.contact-page-section {
  padding: 3rem 0 4rem;
}

.contact-cards {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.15rem 1.25rem;
  text-decoration: none;
  color: inherit;
  transition: transform var(--transition);
}

.contact-card:hover { transform: translateY(-2px); }

.contact-card-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  background: var(--rosemary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--rosemary-dark);
  font-size: 1.25rem;
}

.contact-card-icon.whatsapp { background: #25d366; color: var(--white); }

.contact-card-label {
  font-size: 12px;
  color: var(--gray-400);
  margin: 0;
}

.contact-card-value {
  font-weight: 700;
  font-size: 1rem;
  color: var(--gray-900);
  margin: 0.1rem 0 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}

.about-grid--bio-only {
  max-width: 720px;
  margin-inline: auto;
}

.about-grid--bio-only .advisor-bio {
  text-align: left;
}

@media (max-width: 1023px) {
  .about-grid--bio-only .advisor-bio {
    text-align: center;
  }
}

.motive-vision-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.motive-vision-card {
  padding: 2rem 1.75rem;
  text-align: left;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.motive-vision-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.motive-vision-card i {
  font-size: 1.75rem;
  color: var(--rosemary);
  margin-bottom: 0.75rem;
}

.motive-vision-card h3 {
  margin: 0 0 0.75rem;
  color: var(--gray-900);
  font-size: 1.25rem;
}

.motive-vision-card p {
  margin: 0;
  font-size: 15px;
  color: var(--gray-600);
  line-height: 1.75;
}

.values-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.value-card {
  padding: 2rem 1.5rem;
  text-align: center;
}

.value-card i {
  font-size: 1.75rem;
  color: var(--rosemary);
  margin-bottom: 0.75rem;
}

.value-card h3 {
  margin: 0 0 0.5rem;
  color: var(--gray-900);
}

.value-card p {
  margin: 0;
  font-size: 14px;
  color: var(--gray-600);
}

.section-muted {
  background: var(--ceramic-warm);
  padding: 3.5rem 0;
}

.map-placeholder {
  background: var(--glass-bg);
  border: 1px dashed var(--gray-200);
  border-radius: var(--radius-md);
  min-height: 280px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  color: var(--gray-600);
}

.map-placeholder i {
  font-size: 2.5rem;
  color: var(--rosemary);
  margin-bottom: 0.75rem;
}

@media (min-width: 768px) {
  .trends-grid { grid-template-columns: repeat(2, 1fr); }
  .values-grid { grid-template-columns: repeat(3, 1fr); }
  .motive-vision-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr 1fr; }
  .about-grid--bio-only { grid-template-columns: 1fr; }
}

@media (min-width: 1024px) {
  .listings-layout { grid-template-columns: 1fr 320px; }
  .trends-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1200px) {
  .listing-card {
    grid-template-columns: 240px 1fr 120px;
    min-height: 160px;
  }

  .listing-image {
    height: 160px;
    min-height: 160px;
    max-height: 160px;
  }
}
