/* ============================================
   MyEasyAgents — Achurr-Style Design System
   ============================================ */

/* ---------- CSS Variables ---------- */
:root {
  --color-primary: #22c55e;
  --color-primary-dark: #16a34a;
  --color-dark: #1a1a1a;
  --color-text: #333333;
  --color-text-light: #666666;
  --color-text-muted: #999999;
  --color-border: #e5e5e5;
  --color-bg: #ffffff;
  --color-bg-light: #f5f5f5;
  --color-bg-footer: #f8f8f8;
  --color-badge-green: #22c55e;
  --color-badge-blue: #3b82f6;
  --color-badge-purple: #8b5cf6;
  --font-primary: 'Montserrat', sans-serif;
  --font-body: 'Open Sans', sans-serif;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-full: 9999px;
  --transition: all 0.3s ease;
}

/* ---------- LOADING SCREEN ---------- */
#loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--color-bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

#loading-screen.fade-out {
  opacity: 0;
  visibility: hidden;
}

#loading-screen .loader-logo {
  width: 280px;
  height: auto;
  margin-bottom: 20px;
}

#loading-screen .loader-tagline {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--color-text);
  font-weight: 400;
  letter-spacing: 0.3px;
  margin-bottom: 24px;
}

#loading-screen .loader-tagline span {
  color: var(--color-primary);
  font-weight: 600;
}

.loader-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid var(--color-border);
  border-top-color: var(--color-primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ---------- HEADER ---------- */
.site-header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  background: var(--color-bg);
  z-index: 100;
  transition: box-shadow 0.3s ease;
  border-bottom: 1px solid var(--color-border);
}

.site-header.scrolled {
  box-shadow: var(--shadow-md);
  border-bottom-color: transparent;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.header-logo a {
  display: flex;
  align-items: center;
}

.header-logo img {
  height: 48px !important;
  width: auto;
  vertical-align: middle;
}

.header-logo img.logo-mobile {
  display: none;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.header-nav a {
  font-family: var(--font-primary);
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text);
  text-decoration: none;
  transition: color 0.2s ease;
  letter-spacing: 0.2px;
}

.header-nav a:hover {
  color: var(--color-primary);
}

.header-contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--color-dark);
  color: #fff !important;
  padding: 10px 20px;
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: var(--transition);
}

.header-contact-btn:hover {
  background: #333;
  color: #fff !important;
  transform: translateY(-1px);
}

.header-contact-btn .btn-dot {
  width: 8px;
  height: 8px;
  background: var(--color-primary);
  border-radius: 50%;
  display: inline-block;
}

/* Mobile hamburger */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  cursor: pointer;
  z-index: 200;
  background: none;
  border: none;
  padding: 0;
}

.mobile-menu-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-dark);
  transition: var(--transition);
  margin: 3px 0;
}

.mobile-menu-btn.is-open span {
  background: #fff;
}

.mobile-menu-btn.is-open span:nth-child(1) {
  transform: rotate(45deg) translate(4px, 4px);
}

.mobile-menu-btn.is-open span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn.is-open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile overlay */
.mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 150;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.mobile-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-overlay ul {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: center;
}

.mobile-overlay ul li {
  margin: 20px 0;
}

.mobile-overlay ul li a {
  color: #fff;
  font-family: var(--font-primary);
  font-size: 28px;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease;
}

.mobile-overlay ul li a:hover {
  color: var(--color-primary);
}

@media (max-width: 768px) {
  .header-nav {
    display: none;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .header-inner {
    height: 56px;
    padding: 0 16px;
  }

  .header-logo img.logo-desktop {
    display: none;
  }

  .header-logo img.logo-mobile {
    display: block;
    height: 36px !important;
    width: auto;
  }
}

/* ---------- TAB SYSTEM ---------- */
.tabs-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 24px 0;
}

.tabs-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  border-bottom: 2px solid var(--color-border);
  margin-bottom: 24px;
}

.tab-btn {
  font-family: var(--font-primary);
  font-size: 15px;
  font-weight: 500;
  color: var(--color-text-muted);
  background: none;
  border: none;
  padding: 12px 8px;
  cursor: pointer;
  position: relative;
  transition: color 0.2s ease;
  white-space: nowrap;
}

.tab-btn::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--color-primary);
  border-radius: 3px 3px 0 0;
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.tab-btn:hover {
  color: var(--color-text);
}

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

.tab-btn.active::after {
  transform: scaleX(1);
}

.tab-btn .tab-count {
  font-weight: 400;
  opacity: 0.7;
}

/* ---------- FILTER SYSTEM ---------- */
.filters-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px 24px;
}

.filters-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 10px 16px;
  min-width: 200px;
  flex: 0 0 auto;
}

.search-box svg {
  width: 16px;
  height: 16px;
  color: var(--color-text-muted);
  flex-shrink: 0;
}

.search-box input {
  border: none;
  outline: none;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--color-text);
  background: transparent;
  width: 100%;
}

.search-box input::placeholder {
  color: var(--color-text-muted);
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

.filter-btn-lga {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--color-primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-full);
  padding: 9px 18px;
  font-family: var(--font-primary);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}

.filter-btn-lga:hover {
  background: var(--color-primary-dark);
}

.filter-dropdown {
  position: relative;
  display: inline-block;
}

.filter-dropdown-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--color-bg);
  color: var(--color-text);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  padding: 9px 18px;
  font-family: var(--font-primary);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.filter-dropdown-btn:hover {
  border-color: var(--color-text-muted);
}

.filter-dropdown-btn svg {
  width: 12px;
  height: 12px;
}

.filter-dropdown-menu {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  min-width: 200px;
  max-height: 300px;
  overflow-y: auto;
  z-index: 50;
  display: none;
}

.filter-dropdown-menu.open {
  display: block;
}

.filter-dropdown-menu a,
.filter-dropdown-menu button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 10px 16px;
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--color-text);
  background: none;
  border: none;
  cursor: pointer;
  transition: background 0.15s ease;
  text-decoration: none;
}

.filter-dropdown-menu a:hover,
.filter-dropdown-menu button:hover {
  background: var(--color-bg-light);
}

.filter-dropdown-menu button.active-option {
  color: var(--color-primary);
  font-weight: 600;
}

.reset-filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  color: var(--color-text);
  border: none;
  font-family: var(--font-primary);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  padding: 9px 12px;
  transition: color 0.2s ease;
}

.reset-filter-btn:hover {
  color: var(--color-primary);
}

.reset-filter-btn svg {
  width: 14px;
  height: 14px;
}

@media (max-width: 768px) {
  .filters-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .search-box {
    min-width: 100%;
  }

  .filter-group {
    margin-left: 0;
    flex-wrap: wrap;
  }
}

/* ---------- PROPERTY GRID ---------- */
.properties-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px 40px;
}

.property-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

@media (max-width: 1024px) {
  .property-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}

@media (max-width: 600px) {
  .property-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* ---------- PROPERTY CARD ---------- */
.property-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
  cursor: pointer;
}

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

.property-card.hidden {
  display: none;
}

.card-image {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 11;
  overflow: hidden;
  background: #eee;
}

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

.property-card:hover .card-image img {
  transform: scale(1.05);
}

.card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-family: var(--font-primary);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #fff;
  background: rgba(0, 0, 0, 0.7);
}

.card-badge .badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-badge-green);
}

.card-badge.sale .badge-dot {
  background: var(--color-badge-blue);
}

.card-badge.shortlet .badge-dot {
  background: var(--color-badge-purple);
}

.card-icons {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  gap: 6px;
}

.card-icon-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease;
}

.card-icon-btn:hover {
  background: #fff;
}

.card-icon-btn svg {
  width: 14px;
  height: 14px;
  color: var(--color-text);
}

.card-video-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(255, 255, 255, 0.6);
  transition: var(--transition);
}

.card-video-play:hover {
  background: rgba(0, 0, 0, 0.7);
}

.card-video-play svg {
  width: 18px;
  height: 18px;
  color: #fff;
  margin-left: 2px;
}

.card-body {
  padding: 16px;
}

.card-location {
  display: flex;
  align-items: flex-start;
  gap: 4px;
  font-family: var(--font-body);
  font-size: 11px;
  color: var(--color-text-muted);
  margin-bottom: 6px;
  line-height: 1.3;
}

.card-location svg {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
  margin-top: 1px;
  color: var(--color-primary);
}

.card-title {
  font-family: var(--font-primary);
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 8px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-price {
  font-family: var(--font-primary);
  margin-bottom: 8px;
}

.card-price .naira {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-text);
}

.card-price .price-unit {
  font-size: 12px;
  font-weight: 400;
  color: var(--color-text-muted);
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 11px;
  color: var(--color-text-muted);
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.card-meta .meta-sep {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--color-text-muted);
}

.card-meta .meta-item {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.card-details {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-body);
  font-size: 11px;
  color: var(--color-text-muted);
  margin-bottom: 8px;
}

.card-details .detail-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.card-details .detail-item svg {
  width: 13px;
  height: 13px;
}

.card-posted {
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-body);
  font-size: 11px;
  color: var(--color-text-muted);
  padding-top: 8px;
  border-top: 1px solid var(--color-border);
}

.card-posted svg {
  width: 12px;
  height: 12px;
}

/* ---------- LOAD MORE ---------- */
.load-more-container {
  text-align: center;
  padding: 24px 0 40px;
}

.load-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 32px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-primary);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}

.load-more-btn:hover {
  border-color: var(--color-dark);
  box-shadow: var(--shadow-sm);
}

/* ---------- FOOTER ---------- */
.site-footer {
  background: var(--color-bg-footer);
}

.footer-top {
  text-align: center;
  padding: 40px 24px 32px;
  border-bottom: 1px solid var(--color-border);
}

.footer-logo {
  display: block;
  height: 48px;
  margin: 0 auto 16px;
}

.footer-tagline {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--color-text-light);
  line-height: 1.6;
}

.footer-middle {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 24px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  border-bottom: 1px solid var(--color-border);
}

.footer-col h4 {
  font-family: var(--font-primary);
  font-size: 14px;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 8px;
}

.footer-col p {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--color-text-light);
  margin-bottom: 16px;
  line-height: 1.5;
}

.subscribe-form {
  display: flex;
  gap: 0;
}

.subscribe-form input {
  flex: 1;
  padding: 10px 16px;
  border: 1px solid var(--color-border);
  border-right: none;
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
  font-family: var(--font-body);
  font-size: 13px;
  outline: none;
  background: #fff;
}

.subscribe-form input::placeholder {
  color: var(--color-text-muted);
}

.subscribe-form button {
  padding: 10px 24px;
  background: var(--color-dark);
  color: #fff;
  border: 1px solid var(--color-dark);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-family: var(--font-primary);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.subscribe-form button:hover {
  background: #333;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--color-text-light);
  text-decoration: none;
}

.contact-item svg {
  width: 16px;
  height: 16px;
  color: var(--color-text-muted);
  flex-shrink: 0;
}

.social-links {
  display: flex;
  gap: 12px;
  margin-top: 4px;
}

.social-link {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: var(--transition);
}

.social-link:hover {
  background: var(--color-dark);
  border-color: var(--color-dark);
}

.social-link:hover svg {
  color: #fff;
}

.social-link svg {
  width: 16px;
  height: 16px;
  color: var(--color-text);
}

.footer-bottom {
  text-align: center;
  padding: 16px 24px;
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--color-text-muted);
  background: var(--color-bg);
  border-top: 1px solid var(--color-border);
}

@media (max-width: 768px) {
  .footer-middle {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 24px 16px;
  }

  .footer-top {
    padding: 28px 16px 24px;
  }
}

/* ---------- NO RESULTS ---------- */
.no-results {
  text-align: center;
  padding: 60px 24px;
  display: none;
}

.no-results.visible {
  display: block;
}

.no-results svg {
  width: 48px;
  height: 48px;
  color: var(--color-text-muted);
  margin-bottom: 16px;
}

.no-results h3 {
  font-family: var(--font-primary);
  font-size: 18px;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 8px;
}

.no-results p {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--color-text-muted);
}

/* ---------- SCROLL TOP OVERRIDE ---------- */
.scroll-top {
  background-color: var(--color-dark);
  border-radius: 50%;
}

/* ---------- UTILITY OVERRIDES ---------- */
body {
  font-family: var(--font-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

* {
  box-sizing: border-box;
}

/* Hide the default tella content on homepage */
.homepage-hero-hide {
  display: none !important;
}

/* ---------- HERO SECTION ---------- */
.hero {
  position: relative;
  min-height: 580px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 24px 48px;
  overflow: hidden;
  /* Ensure bg img doesn't break out */
}

.hero-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
      rgba(10, 30, 20, 0.55) 0%,
      rgba(10, 30, 20, 0.75) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #ffffff;
  max-width: 800px;
  margin: 0 auto 32px;
  padding-top: 120px;
}

.hero-content h1 {
  font-family: var(--font-primary);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  margin-bottom: 16px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}

.hero-content p {
  font-family: var(--font-body);
  font-size: clamp(1rem, 2vw, 1.25rem);
  opacity: 0.95;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.3);
  line-height: 1.6;
}

.hero-search {
  position: relative;
  z-index: 2;
  max-width: 1000px;
  margin: 0 auto;
  width: 100%;
}

/* Make the search bar inside hero slightly translucent */
.hero .search-bar-container {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-color: rgba(255, 255, 255, 0.3);
}

.hero .search-submit-btn {
  background: var(--color-primary);
}

.hero .search-submit-btn:hover {
  background: var(--color-primary-dark);
}

@media (max-width: 768px) {
  .hero {
    min-height: 480px;
    padding: 0 16px 32px;
  }

  .hero-content {
    padding-top: 90px;
  }
}

/* ---------- HOMEPAGE TRANSPARENT HEADER ---------- */
.homepage .site-header {
  background: transparent;
  border-bottom: none;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
}

.homepage .site-header .header-nav a {
  color: #fff;
}

.homepage .site-header .header-nav a:hover {
  color: var(--color-primary);
}

.homepage .site-header .header-contact-btn {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.5);
}

.homepage .site-header .header-contact-btn:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.homepage .site-header .header-logo img.logo-desktop {
  filter: brightness(0) invert(1);
}

.homepage .mobile-menu-btn span {
  background: #fff;
}

/* ---------- PREFERENCE CTA FOOTER ---------- */
.preference-cta-footer {
  background: rgba(34, 197, 94, 0.06);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding: 48px 24px;
  text-align: center;
}

.preference-cta-inner {
  max-width: 600px;
  margin: 0 auto;
}

.preference-cta-footer h3 {
  font-family: var(--font-primary);
  font-size: 24px;
  font-weight: 700;
  color: var(--color-dark);
  margin: 0 0 12px;
}

.preference-cta-footer p {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--color-text);
  line-height: 1.6;
  margin: 0 0 12px;
}

.preference-cta-footer .trust-line {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 20px;
}

.preference-cta-footer .btn-primary {
  display: inline-block;
  padding: 14px 28px;
  background: var(--color-primary);
  color: #fff;
  font-family: var(--font-primary);
  font-size: 16px;
  font-weight: bold;
  text-decoration: none;
  border-radius: 8px;
  margin-bottom: 16px;
  transition: background 0.2s;
}

.preference-cta-footer .btn-primary:hover {
  background: var(--color-primary-dark);
}

.preference-cta-footer .whatsapp-line {
  font-size: 14px;
  color: var(--color-text-light);
}

.preference-cta-footer .whatsapp-line a {
  color: var(--color-dark);
  font-weight: 600;
  text-decoration: underline;
}

/* ---------- VIDEO PREVIEWS ---------- */
.card-image.has-video-preview {
  position: relative;
}

.video-preview-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
  border-top-left-radius: inherit;
  border-top-right-radius: inherit;
}

.preview-iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  transform: translate(-50%, -50%) scale(1.35);
  /* Hide youtube UI */
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.preview-iframe.loaded {
  opacity: 1;
}

.preview-spinner {
  width: 24px;
  height: 24px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 1s linear infinite;
  margin: auto;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.card-video-play {
  transition: opacity 0.3s ease;
}

/* ==========================================================================
   LEGAL PAGES STYLING
   ========================================================================== */

/* Variables for Legal Theme */
:root {
  --legal-bg: #f8fafc;
  /* Soft off-white for the page background */
  --legal-card-bg: #ffffff;
  /* Pure white for the document */
  --legal-text-main: #334155;
  /* Dark slate for main readability */
  --legal-text-muted: #64748b;
  /* Lighter slate for dates/subtitles */
  --legal-border: #e2e8f0;
  /* Soft borders */
  --legal-accent: #0f172a;
  /* Deep navy for bold headings */
  --legal-link-bg: #f1f5f9;
  /* Hover state for sidebar links */
}

/* Base Wrapper & Container */
.legal-wrapper {
  background-color: var(--legal-bg);
  padding: 4rem 0;
  min-height: 100vh;
}

.legal-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Hero Section */
.legal-hero {
  background-color: var(--legal-accent);
  color: #ffffff;
  padding: 5rem 0 4rem;
  text-align: center;
}

.legal-hero__title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.legal-hero__subtitle {
  font-size: 1.125rem;
  color: #cbd5e1;
  max-width: 600px;
  margin: 0 auto;
}

/* Layout Grid */
.legal-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 3rem;
  align-items: start;
}

/* Sidebar Navigation */
.legal-sidebar__sticky {
  position: sticky;
  top: 2rem;
  /* Sticks to the top as the user scrolls */
  background: var(--legal-card-bg);
  padding: 1.5rem;
  border-radius: 8px;
  border: 1px solid var(--legal-border);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.legal-sidebar__title {
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--legal-text-muted);
  margin-bottom: 1rem;
  font-weight: 700;
}

.legal-nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.legal-nav__link {
  color: var(--legal-text-main);
  text-decoration: none;
  font-size: 0.95rem;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  transition: all 0.2s ease;
  font-weight: 500;
}

.legal-nav__link:hover,
.legal-nav__link:active {
  background-color: var(--legal-link-bg);
  color: var(--legal-accent);
}

/* Main Document Area (The "Paper") */
.legal-document {
  background: var(--legal-card-bg);
  padding: 3rem 4rem;
  border-radius: 8px;
  border: 1px solid var(--legal-border);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.025);
}

.legal-section {
  scroll-margin-top: 2rem;
  /* Prevents sticky headers from covering the section when linking */
}

.legal-section__header {
  margin-bottom: 2rem;
}

.legal-section__header h2 {
  font-size: 2rem;
  color: var(--legal-accent);
  margin-bottom: 0.5rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.legal-last-updated {
  font-size: 0.875rem;
  color: var(--legal-text-muted);
  font-style: italic;
}

/* Legal Typography & Spacing */
.legal-body {
  color: var(--legal-text-main);
  line-height: 1.7;
  font-size: 1rem;
}

.legal-body h3 {
  font-size: 1.25rem;
  color: var(--legal-accent);
  margin: 2.5rem 0 1rem;
  font-weight: 600;
}

.legal-body p {
  margin-bottom: 1.25rem;
}

.legal-body ul {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.legal-body li {
  margin-bottom: 0.5rem;
}

/* Divider Between Documents */
.legal-divider {
  border: 0;
  height: 1px;
  background: var(--legal-border);
  margin: 4rem 0;
}

/* Responsive Design for Mobile */
@media (max-width: 900px) {
  .legal-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .legal-sidebar__sticky {
    position: relative;
    top: 0;
  }

  .legal-document {
    padding: 2rem 1.5rem;
  }

  .legal-hero__title {
    font-size: 2rem;
  }
}

/* Navigation Active State */
.legal-nav__link.is-active {
  background-color: var(--legal-accent);
  color: #ffffff;
  font-weight: 700;
}

/* Typography Enhancements for Markdown content */
.legal-body h2 {
  font-size: 1.75rem;
  color: var(--legal-accent);
  margin: 2rem 0 1.5rem;
  border-bottom: 2px solid var(--legal-border);
  padding-bottom: 0.5rem;
}

.legal-body strong {
  color: var(--legal-accent);
  font-weight: 700;
}

/* Fix for nested lists */
.legal-body ul {
  list-style-type: disc;
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.legal-body li {
  margin-bottom: 0.75rem;
  line-height: 1.6;
}

/* =============================================
   BANNER ROTATOR — Homepage text-only banners
   Rotates every 5 seconds with CSS fade transition
   Applied: 2026-06-29
   ============================================= */
.mea-banner-rotator {
  background: var(--color-bg-light);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding: 48px 24px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
  min-height: 160px;
}

.mea-banner-track {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  min-height: 100px;
}

.mea-banner-slide {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  pointer-events: none;
}

.mea-banner-slide.active {
  position: relative;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.mea-banner-title {
  font-family: var(--font-primary);
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  font-weight: 700;
  color: var(--color-dark);
  margin: 0 0 12px;
  line-height: 1.3;
}

.mea-banner-subtitle {
  font-family: var(--font-body);
  font-size: clamp(0.9rem, 1.8vw, 1.05rem);
  color: var(--color-text);
  line-height: 1.6;
  max-width: 640px;
  margin: 0 auto;
}

.mea-banner-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}

.mea-banner-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid var(--color-text-muted);
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: background 0.3s, border-color 0.3s;
}

.mea-banner-dot.active {
  background: var(--color-primary);
  border-color: var(--color-primary);
}

.mea-banner-dot:hover {
  border-color: var(--color-primary);
}

/* =============================================
   PWA INSTALL BUTTON + iOS TOOLTIP
   Applied: 2026-06-29
   ============================================= */
.pwa-install-btn {
  position: fixed;
  bottom: 80px;
  right: 20px;
  z-index: 900;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: var(--color-dark);
  color: #fff;
  border: none;
  border-radius: 28px;
  font-family: var(--font-primary);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s, box-shadow 0.2s;
}

.pwa-install-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.pwa-install-btn:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.pwa-ios-tooltip {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 900;
  background: var(--color-dark);
  color: #fff;
  padding: 12px 20px;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 13px;
  text-align: center;
  max-width: 340px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

/* =============================================
   AGENT APPLICATION CTA BUTTON (site-wide)
   Applied: 2026-06-29
   ============================================= */
.agent-cta-section {
  background: var(--color-bg-light);
  border-top: 1px solid var(--color-border);
  padding: 32px 24px;
  text-align: center;
}

.agent-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background: var(--color-primary);
  color: #fff;
  font-family: var(--font-primary);
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  border-radius: 8px;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  border: none;
  cursor: pointer;
}

.agent-cta-btn:hover {
  background: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
}

.agent-cta-btn:focus-visible {
  outline: 2px solid var(--color-dark);
  outline-offset: 2px;
}

.agent-cta-btn svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* =============================================
   SIMILAR PROPERTY BRANDED PLACEHOLDER
   Applied: 2026-06-29
   ============================================= */
.pd-sim-placeholder {
  width: 100%;
  height: 180px;
  background: linear-gradient(135deg, var(--color-primary), #16a34a);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  text-align: center;
}

.pd-sim-placeholder span {
  font-family: var(--font-primary);
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* =============================================
   HOW TO PAGE — Tab Layout and Sections
   Applied: 2026-06-29
   ============================================= */
.howto-page {
  max-width: 900px;
  margin: 48px auto;
  padding: 0 24px;
  font-family: var(--font-body);
  color: var(--color-text);
  line-height: 1.7;
}

.howto-intro {
  margin-bottom: 40px;
  font-size: 17px;
}

.howto-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 40px;
  border-bottom: 2px solid var(--color-border);
}

.howto-tab-btn {
  flex: 1;
  padding: 14px 20px;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  font-family: var(--font-primary);
  font-size: 16px;
  font-weight: 600;
  color: var(--color-text-muted);
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
  text-align: center;
}

.howto-tab-btn.active {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
}

.howto-tab-btn:hover {
  color: var(--color-dark);
}

.howto-tab-btn:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: -2px;
}

.howto-panel {
  display: none;
}

.howto-panel.active {
  display: block;
}

.howto-section {
  margin-bottom: 48px;
  scroll-margin-top: 80px;
}

.howto-section h2 {
  font-family: var(--font-primary);
  font-size: 22px;
  font-weight: 700;
  color: var(--color-dark);
  margin: 0 0 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--color-border);
}

.howto-section h3 {
  font-family: var(--font-primary);
  font-size: 18px;
  font-weight: 600;
  color: var(--color-dark);
  margin: 24px 0 12px;
}

.howto-section p {
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 12px;
}

.howto-section ol,
.howto-section ul {
  padding-left: 24px;
  margin-bottom: 16px;
}

.howto-section li {
  margin-bottom: 8px;
  font-size: 16px;
  line-height: 1.6;
}

/* =============================================
   FOOTER LINK STYLES (moved from inline)
   Applied: 2026-06-29
   ============================================= */
.footer-links a {
  display: block;
  color: var(--color-text, #333);
  margin-bottom: 8px;
  text-decoration: none;
  font-family: var(--font-body);
  font-size: 13px;
  transition: color 0.2s;
}

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

/* =============================================
   MOBILE RESPONSIVE FIXES — ANDROID VIEW
   Applied: 2026-06-29
   These rules apply at max-width: 480px
   Do not remove without testing on Android Chrome
   ============================================= */
@media (max-width: 480px) {

  /* Footer logo: ensure it scales correctly on small screens */
  .footer-logo {
    max-width: 100%;
    height: auto;
    min-width: 90px;
    display: block;
    margin: 0 auto 16px;
  }

  .footer-top {
    padding: 24px 16px 20px;
  }

  .footer-tagline {
    font-size: 13px;
  }

  /* Ensure body text minimum 16px */
  body {
    font-size: 16px;
    line-height: 1.5;
  }

  /* Ensure no horizontal overflow */
  * {
    max-width: 100%;
  }

  img {
    max-width: 100%;
    height: auto;
  }

  /* Property cards: full width */
  .property-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 0 12px;
  }

  /* Banner rotator: reduce padding */
  .mea-banner-rotator {
    padding: 32px 16px 28px;
    min-height: 130px;
  }

  /* Ensure buttons have min 44px tap target */
  .tab-btn,
  .filter-dropdown-btn,
  .load-more-btn,
  .agent-cta-btn,
  .pwa-install-btn {
    min-height: 44px;
    min-width: 44px;
  }

  /* Hero section: reduce padding */
  .hero {
    min-height: 420px;
    padding: 0 12px 24px;
  }

  .hero-content {
    padding-top: 80px;
  }

  /* PWA install button: reposition for mobile */
  .pwa-install-btn {
    bottom: 70px;
    right: 12px;
    padding: 10px 16px;
    font-size: 13px;
  }

  /* Agent CTA button */
  .agent-cta-btn {
    width: 100%;
    justify-content: center;
    padding: 12px 20px;
    font-size: 15px;
  }

  /* How To page tabs */
  .howto-tab-btn {
    font-size: 14px;
    padding: 12px 8px;
  }

  /* Legal page: collapse grid */
  .legal-grid {
    grid-template-columns: 1fr;
  }

  .legal-document {
    padding: 1.5rem 1rem;
  }

  /* Section padding: ensure text never touches screen edge */
  .clinic-page,
  .howto-page {
    padding: 0 16px;
  }

  /* Preference CTA: responsive padding */
  .preference-cta-footer {
    padding: 32px 16px;
  }

  .preference-cta-footer h3 {
    font-size: 20px;
  }
}

/* =============================================
   TABLET RESPONSIVE FIXES
   Applied: 2026-06-29
   ============================================= */
@media (max-width: 768px) {

  /* Footer logo fix */
  .footer-logo {
    max-width: 100%;
    height: auto;
    min-width: 90px;
  }

  /* Property grid: 1 column on tablet */
  .property-grid {
    grid-template-columns: 1fr;
  }

  /* How To page: stack tabs */
  .howto-tabs {
    flex-direction: column;
    gap: 0;
  }

  .howto-tab-btn {
    border-bottom: 1px solid var(--color-border);
    margin-bottom: 0;
  }

  .howto-tab-btn.active {
    border-bottom-color: var(--color-primary);
    background: rgba(34, 197, 94, 0.05);
  }
}

/* =============================================
   HOVER AND FOCUS STATES — Premium Polish
   Applied: 2026-06-29
   ============================================= */
/* Card hover lift */
.property-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.property-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Focus visible for keyboard navigation */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* Nav link hover underline effect */
.header-nav a::after {
  content: '';
  display: block;
  width: 0;
  height: 2px;
  background: var(--color-primary);
  transition: width 0.3s ease;
}

.header-nav a:hover::after {
  width: 100%;
}

/* Social link focus states */
.social-link:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* =============================================
   FAQ ACCORDION 
   ============================================= */
.faq-container {
  max-width: 900px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--color-border);
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 24px 0;
  font-family: var(--font-primary);
  font-size: 18px;
  font-weight: bold;
  color: var(--color-dark);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-question::after {
  content: '+';
  font-size: 24px;
  color: var(--color-primary);
  transition: transform 0.2s;
}

.faq-question.open::after {
  transform: rotate(45deg);
}

.faq-answer {
  display: none;
  padding-bottom: 24px;
  font-size: 16px;
  color: var(--color-text);
  line-height: 1.6;
}

/* ========== TRUST TICKER (Homepage) ========== */
.trust-ticker {
  background: var(--color-dark);
  color: #fff;
  padding: 14px 24px;
}

.trust-ticker-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}

.trust-ticker-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 14px;
  color: rgba(255, 255, 255, 0.9);
}

.trust-ticker-item svg {
  color: var(--color-primary);
  flex-shrink: 0;
}

.trust-ticker-item strong {
  color: var(--color-primary);
  font-weight: 700;
  font-size: 16px;
}

.trust-ticker-divider {
  width: 1px;
  height: 20px;
  background: rgba(255, 255, 255, 0.2);
}

.trust-ticker-link {
  color: var(--color-primary) !important;
  text-decoration: none;
  font-weight: 600;
  transition: opacity 0.2s;
}

.trust-ticker-link:hover {
  opacity: 0.8;
}

@media (max-width: 768px) {
  .trust-ticker-inner {
    flex-direction: column;
    gap: 10px;
  }

  .trust-ticker-divider {
    display: none;
  }
}

/* ========== VERIFICATION RECEIPT (Homepage) ========== */
.verification-receipt-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 24px;
}

.verification-receipt-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.verification-receipt-text h2 {
  font-family: var(--font-primary);
  font-size: 28px;
  font-weight: 700;
  color: var(--color-dark);
  margin: 0 0 16px;
  line-height: 1.3;
}

.verification-receipt-text p {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--color-text);
  line-height: 1.7;
  margin: 0 0 12px;
}

.verification-receipt-note {
  font-style: italic;
  color: var(--color-text-light) !important;
  font-size: 14px !important;
}

.verification-receipt-card {
  background: var(--color-bg);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.verification-receipt-header {
  background: #f0fdf4;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-primary);
  font-size: 14px;
  font-weight: 600;
  color: var(--color-dark);
  border-bottom: 1px solid var(--color-border);
}

.verification-receipt-body {
  padding: 4px 0;
}

.verification-receipt-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 20px;
  border-bottom: 1px solid #f5f5f5;
}

.verification-receipt-row:last-child {
  border-bottom: none;
}

.receipt-label {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--color-text-light);
}

.receipt-value {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--color-dark);
  font-weight: 600;
  text-align: right;
}

.receipt-highlight {
  color: var(--color-primary) !important;
  font-weight: 700 !important;
}

.receipt-mono {
  font-family: 'Courier New', Courier, monospace;
  letter-spacing: 0.5px;
}

.verification-receipt-footer {
  background: #f0fdf4;
  padding: 12px 20px;
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--color-primary-dark);
  font-weight: 600;
  text-align: center;
  border-top: 1px solid var(--color-border);
}

@media (max-width: 768px) {
  .verification-receipt-container {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .verification-receipt-text h2 {
    font-size: 22px;
  }
}

/* ========== TRUST DASHBOARD (/trust page) ========== */
.trust-dashboard {
  max-width: 1000px;
  margin: 0 auto;
  padding: 48px 24px 64px;
}

.trust-header {
  text-align: center;
  margin-bottom: 48px;
}

.trust-header h1 {
  font-family: var(--font-primary);
  font-size: 32px;
  font-weight: 700;
  color: var(--color-dark);
  margin: 0 0 12px;
}

.trust-subtitle {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--color-text-light);
  margin: 0 0 8px;
}

.trust-updated {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--color-text-muted);
}

/* Stats Grid */
.trust-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 48px;
}

.trust-stat-card {
  background: var(--color-bg-light);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  text-align: center;
  transition: var(--transition);
}

.trust-stat-card:hover {
  box-shadow: var(--shadow-sm);
}

.trust-stat-card--primary {
  background: #f0fdf4;
  border-color: #bbf7d0;
}

.trust-stat-card--warning {
  background: #fffbeb;
  border-color: #fde68a;
}

.trust-stat-card--danger {
  background: #fef2f2;
  border-color: #fecaca;
}

.trust-stat-number {
  display: block;
  font-family: var(--font-primary);
  font-size: 36px;
  font-weight: 700;
  color: var(--color-dark);
  line-height: 1;
  margin-bottom: 8px;
}

.trust-stat-card--primary .trust-stat-number {
  color: var(--color-primary-dark);
}

.trust-stat-card--warning .trust-stat-number {
  color: #d97706;
}

.trust-stat-card--danger .trust-stat-number {
  color: #dc2626;
}

.trust-stat-label {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--color-text-light);
  font-weight: 500;
}

/* Explainer */
.trust-explainer {
  margin-bottom: 48px;
}

.trust-explainer h2,
.trust-removal-log h2,
.trust-how h2 {
  font-family: var(--font-primary);
  font-size: 22px;
  font-weight: 700;
  color: var(--color-dark);
  margin: 0 0 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--color-border);
}

.trust-explainer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.trust-explainer-item {
  padding: 20px;
  background: var(--color-bg-light);
  border-radius: var(--radius-md);
}

.trust-explainer-item h3 {
  font-family: var(--font-primary);
  font-size: 15px;
  font-weight: 600;
  color: var(--color-dark);
  margin: 0 0 8px;
}

.trust-explainer-item p {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--color-text);
  line-height: 1.7;
  margin: 0;
}

/* Removal Log */
.trust-removal-log {
  margin-bottom: 48px;
}

.trust-removal-entry {
  padding: 16px 20px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: var(--radius-md);
  margin-bottom: 12px;
}

.trust-removal-date {
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--color-text-muted);
  display: block;
  margin-bottom: 4px;
}

.trust-removal-agent {
  font-family: var(--font-primary);
  font-size: 15px;
  font-weight: 600;
  color: #dc2626;
  display: block;
  margin-bottom: 6px;
}

.trust-removal-reason {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--color-text);
  line-height: 1.6;
  margin: 0;
}

.trust-removal-empty {
  padding: 32px;
  background: var(--color-bg-light);
  border-radius: var(--radius-md);
  text-align: center;
}

.trust-removal-empty p {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--color-text);
  line-height: 1.7;
  margin: 0 0 8px;
}

.trust-removal-note {
  font-style: italic;
  color: var(--color-text-light) !important;
  font-size: 13px !important;
}

/* How Verification Works */
.trust-how-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.trust-how-step {
  text-align: center;
  padding: 24px 20px;
  background: var(--color-bg-light);
  border-radius: var(--radius-md);
}

.trust-how-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  font-family: var(--font-primary);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
}

.trust-how-step h3 {
  font-family: var(--font-primary);
  font-size: 16px;
  font-weight: 600;
  color: var(--color-dark);
  margin: 0 0 8px;
}

.trust-how-step p {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--color-text);
  line-height: 1.6;
  margin: 0;
}

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

  .trust-explainer-grid,
  .trust-how-steps {
    grid-template-columns: 1fr;
  }

  .trust-header h1 {
    font-size: 24px;
  }
}

/* ---------- FAQ ACCORDION & ANIMATION FIXES ---------- */
.faq-answer {
  display: none;
  /* Basic toggle to avoid instant CLS — CSS transitions can be added progressively */
}

.faq-answer.open {
  display: block;
}

/* ---------- SEARCH FORM STYLES ---------- */
.search-bar-container {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 20px 24px;
  margin: 20px auto;
  width: 100%;
  max-width: 1100px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

.search-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px 20px;
  align-items: flex-end;
}

.search-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.search-field label {
  font-family: var(--font-primary);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--color-text-light);
}

.search-field select,
.search-field input[type="text"] {
  width: 100%;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  background: #fff;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--color-dark);
  transition: border-color 0.2s;
}

.search-field select:focus,
.search-field input[type="text"]:focus {
  border-color: var(--color-primary);
  outline: none;
}

.pill-group {
  display: flex;
  background: var(--color-bg-light);
  border-radius: 6px;
  padding: 4px;
  height: 40px;
}

.pill-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: transparent;
  border: none;
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  color: var(--color-text);
  transition: all 0.2s;
}

.pill-btn.active {
  background: #fff;
  color: var(--color-primary);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  font-weight: 600;
}

.pill-btn input[type="radio"] {
  display: none;
}

.search-btn-wrapper {
  height: 100%;
  display: flex;
  align-items: flex-end;
}

.search-submit-btn {
  width: 100%;
  height: 40px;
  background: var(--color-dark);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-family: var(--font-primary);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}

.search-submit-btn:hover {
  background: var(--color-primary);
}

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

@media (max-width: 600px) {
  .search-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- ABOUT PAGE STYLES ---------- */
.about-page {
  font-family: var(--font-body);
  color: var(--color-dark);
  line-height: 1.6;
}

.about-page .container {
  max-width: 900px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

.hero-section {
  padding: 6rem 2rem;
  text-align: center;
  background: var(--color-bg-light);
  border-bottom: 1px solid var(--color-border);
}

.hero-section h1 {
  font-family: var(--font-primary);
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 1rem;
}

.hero-section p {
  font-size: 1.25rem;
  color: var(--color-text-light);
  max-width: 600px;
  margin: 0 auto;
}

.content-block {
  margin-bottom: 5rem;
}

.section-title {
  font-family: var(--font-primary);
  font-size: 2rem;
  font-weight: 600;
  color: var(--color-dark);
  margin-bottom: 2rem;
  border-left: 4px solid var(--color-dark);
  padding-left: 1rem;
}

.feature-list {
  list-style: none;
  padding: 0;
}

.feature-list li {
  margin-bottom: 1.25rem;
  padding-left: 2rem;
  position: relative;
}

.feature-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--color-text-muted);
  font-weight: bold;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin-top: 3rem;
}

.team-card {
  text-align: left;
}

.team-card img {
  width: 100%;
  height: auto;
  border-radius: 4px;
  margin-bottom: 1.5rem;
}

.team-name {
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
  display: block;
}

.team-role {
  font-size: 0.9rem;
  color: var(--color-text-light);
  margin-bottom: 1rem;
  display: block;
}

/* ---------- CONTACT PAGE STYLES ---------- */
.contact-page {
  font-family: var(--font-body);
  color: var(--color-dark);
  line-height: 1.6;
  background: var(--color-bg-light);
  min-height: 60vh;
  padding: 6rem 2rem;
}

.contact-container {
  max-width: 600px;
  margin: 0 auto;
  background: #fff;
  border-radius: 12px;
  padding: 3rem 2rem;
  text-align: center;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.contact-title {
  font-family: var(--font-primary);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--color-dark);
  margin-bottom: 1rem;
}

.contact-text {
  font-size: 1.1rem;
  color: var(--color-text-light);
  margin-bottom: 2.5rem;
}

.whatsapp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #25D366;
  /* Specific brand color, leaving as hex */
  color: white;
  font-size: 1.2rem;
  font-weight: 700;
  padding: 1rem 2rem;
  border-radius: 9999px;
  text-decoration: none;
  box-shadow: 0 4px 6px rgba(37, 211, 102, 0.3);
  transition: all 0.2s;
}

.whatsapp-btn:hover {
  background: #128C7E;
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(37, 211, 102, 0.4);
  color: white;
}

.whatsapp-icon {
  width: 24px;
  height: 24px;
  margin-right: 0.75rem;
  fill: currentColor;
}

.contact-secondary {
  margin-top: 2rem;
  font-size: 0.95rem;
  color: var(--color-text-muted);
}

.contact-secondary a {
  color: var(--color-primary);
  text-decoration: none;
}

.contact-secondary a:hover {
  text-decoration: underline;
}

/* ---------- AGENTS PAGE STYLES ---------- */
.agents-page {
  font-family: var(--font-body);
  color: var(--color-dark);
  line-height: 1.6;
}

.agents-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.agent-card {
  background: white;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
}

.agent-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.agent-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-dark);
}

.agent-id {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-primary);
  background: var(--color-bg-light);
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
}

.agent-detail {
  margin-bottom: 1rem;
}

.agent-detail-label {
  font-size: 0.85rem;
  color: var(--color-text-light);
  margin-bottom: 0.25rem;
}

.agent-detail-value {
  font-weight: 500;
  color: var(--color-dark);
}

.agent-review-btn {
  display: block;
  width: 100%;
  text-align: center;
  padding: 0.75rem;
  margin-top: auto;
  background: var(--color-bg-light);
  color: var(--color-dark);
  font-weight: 600;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.2s;
}

.agent-review-btn:hover {
  background: #e2e8f0;
}

/* ---------- PREFERENCE FORM STYLES ---------- */
.preference-page {
  max-width: 800px;
  margin: 48px auto;
  padding: 0 24px;
}

.preference-header {
  text-align: center;
  margin-bottom: 32px;
}

.preference-header h1 {
  font-family: var(--font-primary);
  font-size: 32px;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 16px;
}

.preference-header p.subtitle {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--color-text);
  line-height: 1.6;
  margin-bottom: 8px;
}

.preference-header p.notice {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--color-text-light);
  font-weight: 600;
}

.preference-header p.notice svg {
  display: inline;
  vertical-align: text-bottom;
  margin-right: 4px;
  color: var(--color-primary);
}

.preference-iframe-wrapper {
  background: var(--color-bg-light);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 24px;
}

.preference-footer-notice {
  text-align: center;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--color-text);
  padding: 24px;
  background: #eef2fa;
  border-radius: 8px;
}

/* ---------- VERIFIED AGENTS PAGE STYLES ---------- */
.va-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 24px 64px;
}

.va-header {
  text-align: center;
  margin-bottom: 48px;
}

.va-header h1 {
  font-family: var(--font-primary);
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 700;
  color: var(--color-dark);
  margin: 0 0 16px;
}

.va-header p {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-text-light);
  max-width: 680px;
  margin: 0 auto 20px;
}

.va-register-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-primary);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
}

.va-register-link:hover {
  opacity: 0.8;
}

.va-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 20px;
}

.va-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 24px;
  transition: box-shadow 0.2s;
}

.va-card:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.va-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 16px;
}

.va-card__name {
  font-family: var(--font-primary);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-dark);
  margin: 0 0 4px;
}

.va-card__id {
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: var(--color-text-light);
}

.va-card__badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  flex-shrink: 0;
}

.va-card__badge--lasrera {
  background: rgba(22, 101, 52, 0.1);
  color: #166534;
  border: 1px solid rgba(22, 101, 52, 0.25);
}

.va-card__badge--ercaan {
  background: rgba(30, 64, 175, 0.1);
  color: #1e40af;
  border: 1px solid rgba(30, 64, 175, 0.25);
}

.va-card__badge--lasrera-ercaan {
  background: rgba(22, 101, 52, 0.12);
  color: #14532d;
  border: 1px solid rgba(22, 101, 52, 0.3);
}

.va-card__badge--landlord,
.va-card__badge--property-manager {
  background: rgba(161, 98, 7, 0.1);
  color: #92400e;
  border: 1px solid rgba(161, 98, 7, 0.25);
}

.va-card__meta {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.va-card__row {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-body);
  font-size: 0.85rem;
}

.va-card__label {
  color: var(--color-text-light);
}

.va-card__value {
  color: var(--color-dark);
  font-weight: 600;
}

.va-card__areas {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}

.va-card__area-tag {
  font-family: var(--font-body);
  font-size: 0.72rem;
  padding: 4px 10px;
  border-radius: 16px;
  background: var(--color-bg-light);
  color: var(--color-text);
  border: 1px solid var(--color-border);
}

.va-card__actions {
  display: flex;
  gap: 8px;
  padding-top: 16px;
  border-top: 1px solid var(--color-border);
}

.va-card__btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 14px;
  border-radius: 8px;
  font-family: var(--font-primary);
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.2s;
  border: none;
  cursor: pointer;
}

.va-card__btn:hover {
  opacity: 0.85;
}

.va-card__btn--review {
  background: var(--color-primary);
  color: #fff;
}

.va-card__btn--review svg {
  width: 16px;
  height: 16px;
}

.va-note {
  text-align: center;
  margin-top: 40px;
  font-family: var(--font-body);
  font-size: 0.82rem;
  color: var(--color-text-light);
  line-height: 1.6;
}

@media (max-width: 640px) {
  .va-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- HOW-TO STYLES ---------- */
.howto-page-title {
  font-family: var(--font-primary);
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 16px;
}

/* ---------- ACCOUNTABILITY PAGE STYLES ---------- */
.acc-page {
  max-width: 1000px;
  margin: 0 auto;
  padding: 48px 24px 64px;
}

.acc-headline {
  font-family: var(--font-primary);
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  font-weight: 700;
  color: var(--color-dark);
  line-height: 1.2;
  margin: 0 0 8px;
  text-align: center;
}

.acc-subline {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--color-text-light);
  text-align: center;
  margin: 0 0 40px;
}

.acc-month-label {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 16px;
}

.acc-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
  margin-bottom: 48px;
}

.acc-stat {
  background: var(--color-bg-light);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 20px;
  text-align: center;
}

.acc-stat__number {
  display: block;
  font-family: var(--font-primary);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--color-dark);
  margin-bottom: 4px;
}

.acc-stat__label {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-light);
}

.acc-stat--warning .acc-stat__number {
  color: #d97706;
}

.acc-stat--danger .acc-stat__number {
  color: #dc2626;
}

.acc-section {
  margin-bottom: 40px;
}

.acc-section__title {
  font-family: var(--font-primary);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-dark);
  margin: 0 0 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--color-border);
}

.acc-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-body);
  font-size: 0.85rem;
}

.acc-table th {
  text-align: left;
  padding: 10px 14px;
  background: var(--color-bg-light);
  color: var(--color-text-light);
  font-weight: 600;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-bottom: 2px solid var(--color-border);
}

.acc-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text);
}

.acc-alltime {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  background: #0f1a14;
  border-radius: 10px;
  padding: 28px 24px;
  margin-bottom: 40px;
}

.acc-alltime__stat {
  text-align: center;
}

.acc-alltime__number {
  display: block;
  font-family: var(--font-primary);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--color-primary, #22c55e);
  margin-bottom: 4px;
}

.acc-alltime__label {
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.6);
}

.acc-note {
  font-family: var(--font-body);
  font-size: 0.82rem;
  color: var(--color-text-light);
  line-height: 1.7;
  text-align: center;
  padding: 20px;
  background: var(--color-bg-light);
  border-radius: 8px;
  border: 1px solid var(--color-border);
}

@media (max-width: 640px) {
  .acc-stats-grid {
    grid-template-columns: 1fr 1fr;
  }

  .acc-alltime {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }

  .acc-table {
    font-size: 0.78rem;
  }

  .acc-table th,
  .acc-table td {
    padding: 8px 10px;
  }
}

/* ---------- PROPERTY LIST STYLES ---------- */
.pl-header-section {
  padding-top: 32px;
}

.pl-header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.pl-header-title {
  font-family: var(--font-primary);
  font-size: 28px;
  font-weight: 700;
  color: var(--color-dark);
  margin: 0 0 24px;
}

.pl-header-desc {
  font-family: var(--font-body);
  color: var(--color-text);
  margin-bottom: 24px;
}

.pl-no-results {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
  text-align: center;
  color: var(--color-text-light);
}

.pl-no-results svg {
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
  color: var(--color-border);
}

.pl-no-results h3 {
  font-family: var(--font-primary);
  font-size: 20px;
  color: var(--color-dark);
  margin: 0 0 8px;
}

.pl-no-results p {
  font-family: var(--font-body);
  font-size: 15px;
  margin: 0;
}

/* ---------- PROPERTY SINGLE STYLES ---------- */
.pd-gallery {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 24px 0;
}

.pd-gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  border-radius: 12px;
  overflow: hidden;
}

.pd-featured {
  position: relative;
  aspect-ratio: 16/10;
  cursor: pointer;
  grid-row: 1 / 3;
  background: var(--color-bg-light);
}

.pd-featured img,
.pd-featured iframe {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border: none;
}

.pd-thumbs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.pd-thumb {
  aspect-ratio: 16/10;
  cursor: pointer;
  position: relative;
  background: var(--color-bg-light);
  overflow: hidden;
}

.pd-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.pd-thumb:hover img {
  transform: scale(1.05);
}

.pd-thumb.active {
  outline: 3px solid var(--color-primary);
  outline-offset: -3px;
}

.pd-thumb-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: var(--font-primary);
  font-size: 18px;
  font-weight: 600;
}

.pd-yt-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 56px;
  height: 56px;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pd-yt-icon svg {
  width: 24px;
  height: 24px;
  fill: #fff;
  margin-left: 3px;
}

.pd-header {
  max-width: 1200px;
  margin: 0 auto;
  padding: 28px 24px 0;
}

.pd-price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 8px;
}

.pd-price {
  font-family: var(--font-primary);
  font-size: 28px;
  font-weight: 700;
  color: var(--color-primary);
}

.pd-price-period {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--color-text-light);
  font-weight: 400;
}

.pd-title {
  font-family: var(--font-primary);
  font-size: 22px;
  font-weight: 700;
  color: var(--color-dark);
  line-height: 1.3;
  margin: 0 0 8px;
}

.pd-location {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--color-text-light);
}

.pd-location svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--color-primary);
}

.pd-tags {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 24px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pd-tag {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 20px;
  background: var(--color-bg-light);
  color: var(--color-text);
  border: 1px solid var(--color-border);
}

.pd-tag:first-child {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}

.pd-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 28px 24px 48px;
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 32px;
  align-items: start;
}

.pd-section {
  margin-bottom: 32px;
}

.pd-section-title {
  font-family: var(--font-primary);
  font-size: 18px;
  font-weight: 700;
  color: var(--color-dark);
  margin: 0 0 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--color-border);
}

.pd-description {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.8;
  color: var(--color-text);
}

.pd-description p {
  margin: 0 0 12px;
}

.pd-description strong {
  color: var(--color-dark);
}

.pd-description ul,
.pd-description ol {
  padding-left: 20px;
  margin: 0 0 12px;
}

.pd-description li {
  margin-bottom: 4px;
}

.pd-features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.pd-feature-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--color-text);
  padding: 10px 14px;
  background: var(--color-bg-light);
  border-radius: 8px;
}

.pd-feature-check {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pd-feature-check svg {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: #fff;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pd-sidebar {
  position: sticky;
  top: 100px;
}

.pd-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 16px;
}

.pd-card-title {
  font-family: var(--font-primary);
  font-size: 15px;
  font-weight: 600;
  color: var(--color-dark);
  margin: 0 0 12px;
}

.pd-address-line {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--color-text);
  margin-bottom: 12px;
  line-height: 1.5;
}

.pd-map-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 500;
}

.pd-map-link:hover {
  text-decoration: underline;
}

.pd-map-link svg {
  width: 14px;
  height: 14px;
}

.pd-contact-text {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--color-text-light);
  margin-bottom: 16px;
  line-height: 1.5;
}

.pd-contact-btns {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pd-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  border-radius: 8px;
  font-family: var(--font-primary);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.2s;
  cursor: pointer;
  border: none;
}

.pd-btn:hover {
  opacity: 0.9;
}

.pd-btn svg {
  width: 18px;
  height: 18px;
}

.pd-btn-call {
  background: var(--color-dark);
  color: #fff;
}

.pd-btn-whatsapp {
  background: #25D366;
  color: #fff;
}

.pd-meta-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--color-border);
  font-family: var(--font-body);
  font-size: 13px;
}

.pd-meta-row:last-child {
  border-bottom: none;
}

.pd-meta-label {
  color: var(--color-text-light);
}

.pd-meta-value {
  color: var(--color-dark);
  font-weight: 600;
}

.pd-similar {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px 48px;
}

.pd-similar-title {
  font-family: var(--font-primary);
  font-size: 20px;
  font-weight: 700;
  color: var(--color-dark);
  margin: 0 0 20px;
}

.pd-similar-scroll {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 16px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.pd-similar-scroll::-webkit-scrollbar {
  height: 6px;
}

.pd-similar-scroll::-webkit-scrollbar-track {
  background: var(--color-bg-light);
  border-radius: 3px;
}

.pd-similar-scroll::-webkit-scrollbar-thumb {
  background: var(--color-border);
  border-radius: 3px;
}

.pd-sim-card {
  min-width: 280px;
  max-width: 300px;
  flex-shrink: 0;
  scroll-snap-align: start;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  background: var(--color-bg);
  transition: box-shadow 0.2s;
}

.pd-sim-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.pd-sim-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.pd-sim-body {
  padding: 14px;
}

.pd-sim-title {
  font-family: var(--font-primary);
  font-size: 14px;
  font-weight: 600;
  color: var(--color-dark);
  margin-bottom: 6px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pd-sim-price {
  font-family: var(--font-primary);
  font-size: 16px;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 4px;
}

.pd-sim-loc {
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--color-text-light);
  margin-bottom: 8px;
}

.pd-sim-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.pd-sim-badge {
  font-family: var(--font-body);
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 12px;
  background: var(--color-bg-light);
  color: var(--color-text-light);
  border: 1px solid var(--color-border);
}

.pd-mobile-contact {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--color-bg);
  border-top: 1px solid var(--color-border);
  padding: 12px 16px;
  z-index: 50;
  gap: 10px;
}

.pd-mobile-contact .pd-btn {
  flex: 1;
}

@media (max-width: 900px) {
  .pd-content {
    grid-template-columns: 1fr;
  }

  .pd-sidebar {
    position: static;
  }
}

@media (max-width: 768px) {
  .pd-gallery-grid {
    grid-template-columns: 1fr;
  }

  .pd-featured {
    grid-row: auto;
  }

  .pd-thumbs {
    grid-template-columns: repeat(4, 1fr);
  }

  .pd-price {
    font-size: 24px;
  }

  .pd-title {
    font-size: 18px;
  }

  .pd-features-grid {
    grid-template-columns: 1fr;
  }

  .pd-mobile-contact {
    display: flex;
  }

  .pd-sidebar .pd-card:nth-child(2) {
    display: none;
  }
}

/* ---------- BLOG LIST STYLES ---------- */
.blog-header {
  text-align: center;
  padding: 48px 24px;
}

.blog-header h1 {
  font-family: var(--font-primary);
  font-size: 36px;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 12px;
}

.blog-header p {
  font-family: var(--font-body);
  font-size: 18px;
  color: var(--color-text-light);
  max-width: 600px;
  margin: 0 auto;
}

.blog-featured {
  max-width: 1200px;
  margin: 0 auto 48px;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

@media(min-width: 768px) {
  .blog-featured {
    flex-direction: row;
    align-items: center;
  }
}

.blog-featured-img {
  flex: 1;
  border-radius: 12px;
  overflow: hidden;
}

.blog-featured-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 16/9;
}

.blog-featured-content {
  flex: 1;
  padding: 24px 0;
}

.blog-category {
  display: inline-block;
  padding: 4px 12px;
  background: var(--color-bg-light);
  border: 1px solid var(--color-border);
  border-radius: 20px;
  font-family: var(--font-primary);
  font-size: 13px;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 16px;
}

.blog-featured-title {
  font-family: var(--font-primary);
  font-size: 28px;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 12px;
  line-height: 1.3;
}

.blog-featured-title a {
  color: inherit;
  text-decoration: none;
}

.blog-featured-title a:hover {
  color: var(--color-primary);
}

.blog-excerpt {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--color-text);
  line-height: 1.6;
  margin-bottom: 24px;
}

.blog-meta {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--color-text-light);
  margin-bottom: 24px;
}

.blog-read-more {
  font-family: var(--font-primary);
  font-size: 15px;
  font-weight: bold;
  color: var(--color-primary);
  text-decoration: none;
}

.blog-read-more:hover {
  text-decoration: underline;
}

.blog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  max-width: 1200px;
  margin: 0 auto 48px;
  padding: 0 24px;
}

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

.blog-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
  color: inherit;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
}

.blog-card-img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}

.blog-card-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.blog-card-title {
  font-family: var(--font-primary);
  font-size: 20px;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 12px;
  line-height: 1.3;
}

.blog-card-excerpt {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--color-text);
  line-height: 1.6;
  margin-bottom: 16px;
  flex: 1;
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 48px;
}

.pagination a {
  padding: 8px 16px;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  color: var(--color-dark);
  font-family: var(--font-primary);
  font-weight: bold;
  text-decoration: none;
}

.pagination a:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

/* ---------- BLOG SINGLE STYLES ---------- */
.bs-page {
  max-width: 1000px;
  margin: 40px auto;
  padding: 0 24px;
}

.bs-article {
  background: var(--color-bg);
  padding: 40px;
  border: 1px solid var(--color-border);
  border-radius: 12px;
}

.bs-header {
  margin-bottom: 32px;
}

.bs-breadcrumb {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--color-text-light);
  margin-bottom: 24px;
  font-weight: 500;
}

.bs-breadcrumb a {
  color: inherit;
  text-decoration: none;
}

.bs-breadcrumb a:hover {
  text-decoration: underline;
  color: var(--color-primary);
}

.bs-cover {
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 32px;
  aspect-ratio: 16/9;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.bs-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.bs-title {
  font-family: var(--font-primary);
  font-size: clamp(28px, 5vw, 48px);
  font-weight: 800;
  color: var(--color-dark);
  margin: 0 0 24px;
  line-height: 1.2;
  text-align: left;
}

.bs-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--color-border);
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--color-text-light);
}

.bs-meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.bs-meta-item svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.bs-categories {
  display: flex;
  gap: 8px;
}

.bs-categories a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}

.bs-categories a:hover {
  color: var(--color-primary);
}

.bs-toc {
  background: var(--color-bg-light);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 24px;
  margin-bottom: 32px;
}

.bs-toc h4 {
  font-family: var(--font-primary);
  font-size: 18px;
  font-weight: 700;
  color: var(--color-dark);
  margin: 0 0 16px;
}

.bs-toc ul,
.bs-toc li {
  list-style: none;
  padding-left: 12px;
}

.bs-toc a {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--color-text);
  text-decoration: none;
  display: block;
  padding: 4px 0;
}

.bs-toc a:hover {
  color: var(--color-primary);
}

.bs-content {
  font-family: var(--font-body);
  font-size: 18px;
  color: var(--color-text);
  line-height: 1.8;
  margin-bottom: 48px;
}

.bs-content h2,
.bs-content h3 {
  font-family: var(--font-primary);
  color: var(--color-dark);
  margin: 32px 0 16px;
  font-weight: 700;
}

.bs-content h2 {
  font-size: 28px;
}

.bs-content h3 {
  font-size: 22px;
}

.bs-content p {
  margin-bottom: 20px;
}

.bs-content blockquote {
  border-left: 4px solid var(--color-primary);
  padding-left: 20px;
  margin: 24px 0;
  font-style: italic;
  color: var(--color-text-light);
}

.bs-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 24px 0;
}

.bs-content a {
  color: var(--color-primary);
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}

.bs-content a:hover {
  opacity: 0.8;
}

.bs-content ul {
  margin: 0 0 20px;
  padding-left: 20px;
}

.bs-content li {
  margin-bottom: 8px;
}

.bs-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 48px;
}

.bs-tag {
  padding: 8px 16px;
  background: var(--color-bg-light);
  border-radius: 20px;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--color-text);
  text-decoration: none;
  transition: background 0.2s;
}

.bs-tag:hover {
  background: var(--color-border);
}

.bs-cta {
  background: rgba(30, 64, 175, 0.05);
  border: 1px solid rgba(30, 64, 175, 0.1);
  border-radius: 12px;
  padding: 32px;
  text-align: center;
  margin-bottom: 48px;
}

.bs-cta h3 {
  font-family: var(--font-primary);
  font-size: 24px;
  font-weight: 700;
  color: var(--color-dark);
  margin: 0 0 8px;
}

.bs-cta p {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--color-text);
  margin: 0 0 24px;
}

.bs-cta-btn {
  display: inline-block;
  padding: 12px 24px;
  background: var(--color-primary);
  color: #fff;
  font-family: var(--font-primary);
  font-weight: 700;
  text-decoration: none;
  border-radius: 8px;
  transition: opacity 0.2s;
}

.bs-cta-btn:hover {
  opacity: 0.9;
}

.bs-subscribe {
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding: 40px 0;
  margin-bottom: 48px;
}

.bs-related {
  margin-bottom: 48px;
}

.bs-related h3 {
  font-family: var(--font-primary);
  font-size: 24px;
  font-weight: 700;
  color: var(--color-dark);
  margin: 0 0 24px;
}

.bs-related-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

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

.bs-related-card {
  display: block;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  overflow: hidden;
  text-decoration: none;
  transition: box-shadow 0.2s;
}

.bs-related-card:hover {
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.05);
}

.bs-related-img {
  aspect-ratio: 16/9;
  width: 100%;
  background: var(--color-bg-light);
  display: flex;
  align-items: center;
  justify-content: center;
}

.bs-related-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bs-related-content {
  padding: 16px;
}

.bs-related-content h4 {
  font-family: var(--font-primary);
  font-size: 16px;
  font-weight: 700;
  color: var(--color-dark);
  margin: 0;
  line-height: 1.4;
}

.bs-share {
  border-top: 1px solid var(--color-border);
  padding: 32px 0;
}

.bs-share h5 {
  text-align: center;
  font-family: var(--font-primary);
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text-light);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0 0 24px;
}

.bs-share-btns {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

.bs-share-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 6px;
  color: #fff;
  text-decoration: none;
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 14px;
  transition: opacity 0.2s;
  cursor: pointer;
  border: none;
}

.bs-share-btn:hover {
  opacity: 0.85;
}

.bs-share-btn.twitter {
  background: #000;
}

.bs-share-btn.facebook {
  background: #1877F2;
}

.bs-share-btn.line {
  background: #06C755;
}

.bs-share-btn.copy {
  background: #4b5563;
}

.bs-nav {
  margin-top: 48px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  width: 100%;
}

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

.bs-nav a {
  display: block;
  padding: 24px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  text-decoration: none;
  transition: border-color 0.2s;
}

.bs-nav a:hover {
  border-color: var(--color-primary);
}

.bs-nav a:hover .bs-nav-title {
  color: var(--color-primary);
}

.bs-nav-label {
  display: block;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-light);
  margin-bottom: 8px;
  transition: color 0.2s;
}

.bs-nav a:hover .bs-nav-label {
  color: var(--color-primary);
}

.bs-nav-inner {
  display: flex;
  align-items: center;
  gap: 12px;
}

.bs-nav-prev .bs-nav-inner {
  justify-content: flex-start;
}

.bs-nav-next .bs-nav-inner {
  justify-content: flex-end;
}

.bs-nav-next {
  text-align: right;
}

.bs-nav-title {
  font-family: var(--font-primary);
  font-size: 16px;
  font-weight: 700;
  color: var(--color-dark);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s;
}

.bs-nav svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--color-text-light);
  transition: color 0.2s;
}

.bs-nav a:hover svg {
  color: var(--color-primary);
}

@media(max-width: 768px) {
  .bs-article {
    padding: 24px;
    border-radius: 0;
    border-left: none;
    border-right: none;
  }

  .bs-page {
    padding: 0;
    margin-top: 0;
  }
}

/* ---------- PREFERS REDUCED MOTION ---------- */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}