/* ==========================================================================
   RealtyPromoo — Main Stylesheet
   ========================================================================== */

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --color-primary: #0a1a3a;
  --color-accent: #c9a84c;
  --color-bg: #ffffff;
  --color-text: #252525;
  --color-text-secondary: #686868;
  --color-footer-bg: #191919;
  --color-footer-text: #999999;
  --color-border: #e8e8e8;
  --color-bg-light: #f7f7f7;
  --shadow-card: 0 10px 25px rgba(0, 0, 0, 0.08);
  --radius: 8px;
  --max-width: 1200px;
  --font-stack: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
    Oxygen, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-stack);
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.25s ease;
}

a:hover {
  color: var(--color-accent);
}

ul,
ol {
  list-style: none;
}

/* ---------- Container ---------- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.25;
  color: var(--color-primary);
}

h1 { font-size: 2.75rem; margin-bottom: 1rem; }
h2 { font-size: 2rem; margin-bottom: 0.85rem; }
h3 { font-size: 1.5rem; margin-bottom: 0.75rem; }
h4 { font-size: 1.25rem; margin-bottom: 0.6rem; }

p {
  margin-bottom: 1rem;
  color: var(--color-text);
}

.text-secondary {
  color: var(--color-text-secondary);
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title h2 {
  margin-bottom: 0.5rem;
}

.section-title p {
  color: var(--color-text-secondary);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 12px 32px;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease, transform 0.2s ease;
  text-align: center;
  line-height: 1.4;
}

.btn-primary {
  background: var(--color-primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--color-accent);
  color: #fff;
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}

.btn-outline:hover {
  background: var(--color-primary);
  color: #fff;
}

.btn-accent {
  background: var(--color-accent);
  color: #fff;
}

.btn-accent:hover {
  background: var(--color-primary);
  color: #fff;
}

.btn-sm {
  padding: 8px 20px;
  font-size: 0.9rem;
}

.btn-block {
  display: block;
  width: 100%;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #fff;
  border-bottom: 1px solid var(--color-border);
  padding: 0 24px;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-width);
  margin: 0 auto;
  height: 72px;
}

.logo a {
  font-size: 1.6rem;
  color: var(--color-primary);
  letter-spacing: -0.5px;
}

.logo-light {
  font-weight: 400;
}

.logo-bold {
  font-weight: 800;
}

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

.nav-list a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-text);
  position: relative;
  padding: 4px 0;
}

.nav-list a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-accent);
  transition: width 0.3s ease;
}

.nav-list a:hover::after,
.nav-list a.active::after {
  width: 100%;
}

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

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
}

.hamburger span {
  width: 24px;
  height: 2px;
  background: var(--color-primary);
  transition: all 0.3s ease;
  display: block;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ---------- Breadcrumbs ---------- */
.breadcrumbs {
  padding: 16px 0;
  font-size: 0.875rem;
  color: var(--color-text-secondary);
}

.breadcrumbs a {
  color: var(--color-text-secondary);
}

.breadcrumbs a:hover {
  color: var(--color-accent);
}

.breadcrumbs span {
  margin: 0 8px;
  color: var(--color-border);
}

/* ---------- Hero Section ---------- */
.hero {
  position: relative;
  background: var(--color-primary);
  color: #fff;
  padding: 100px 24px;
  text-align: center;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(10, 26, 58, 0.95), rgba(10, 26, 58, 0.8));
  z-index: 1;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
  margin: 0 auto;
}

.hero h1 {
  color: #fff;
  font-size: 3.25rem;
  margin-bottom: 1.25rem;
  letter-spacing: -0.5px;
}

.hero h1 .accent {
  color: var(--color-accent);
}

.hero p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

/* ---------- Search Bar ---------- */
.search-wrapper {
  position: relative;
  max-width: 560px;
  margin: 0 auto;
}

.search-bar {
  display: flex;
  align-items: center;
  background: #fff;
  border-radius: 50px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.search-bar input {
  flex: 1;
  border: none;
  outline: none;
  padding: 16px 24px;
  font-size: 1rem;
  color: var(--color-text);
  font-family: var(--font-stack);
}

.search-bar input::placeholder {
  color: #aaa;
}

.search-bar button {
  background: var(--color-primary);
  color: #fff;
  border: none;
  padding: 16px 28px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s;
  font-family: var(--font-stack);
}

.search-bar button:hover {
  background: var(--color-accent);
}

#search-results {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
  max-height: 400px;
  overflow-y: auto;
  display: none;
  z-index: 100;
}

#search-results.open {
  display: block;
}

.search-group-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-text-secondary);
  padding: 12px 20px 6px;
  border-top: 1px solid var(--color-border);
}

.search-group-label:first-child {
  border-top: none;
}

.search-result-item {
  display: block;
  padding: 10px 20px;
  font-size: 0.95rem;
  color: var(--color-text);
  cursor: pointer;
  transition: background 0.15s;
}

.search-result-item:hover,
.search-result-item.active {
  background: var(--color-bg-light);
  color: var(--color-primary);
}

/* ---------- Card Grid ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
}

.card-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
}

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

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

.card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--color-accent);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.card-body {
  padding: 20px;
}

.card-body h3 {
  font-size: 1.15rem;
  margin-bottom: 0.4rem;
}

.card-body h3 a {
  color: var(--color-primary);
}

.card-body h3 a:hover {
  color: var(--color-accent);
}

.card-meta {
  font-size: 0.875rem;
  color: var(--color-text-secondary);
  margin-bottom: 0.75rem;
}

.card-body p {
  font-size: 0.925rem;
  color: var(--color-text-secondary);
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-footer {
  padding: 0 20px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-price {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-primary);
}

/* ---------- Sections ---------- */
.section {
  padding: 80px 0;
}

.section-alt {
  background: var(--color-bg-light);
}

/* ---------- Filter Bar ---------- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-bottom: 40px;
  padding: 20px;
  background: var(--color-bg-light);
  border-radius: var(--radius);
}

.filter-bar select,
.filter-bar input {
  padding: 10px 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-family: var(--font-stack);
  color: var(--color-text);
  background: #fff;
  min-width: 160px;
}

.filter-bar select:focus,
.filter-bar input:focus {
  outline: none;
  border-color: var(--color-accent);
}

/* ---------- Entity Page ---------- */
.entity-header {
  position: relative;
}

.entity-featured-image {
  width: 100%;
  aspect-ratio: 21 / 9;
  object-fit: cover;
  border-radius: var(--radius);
}

.entity-content {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 48px;
  padding: 48px 0;
}

.entity-content.entity-full-width {
  grid-template-columns: 1fr;
  max-width: 100%;
}

.entity-body h2 {
  margin-top: 2rem;
}

.entity-body p, .content-body p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--color-text);
  margin-bottom: 1.25rem;
  text-align: justify;
}

.entity-body li, .content-body li {
  text-align: justify;
}

.entity-body ul,
.entity-body ol {
  list-style: disc;
  padding-left: 24px;
  margin-bottom: 1.25rem;
}

.entity-body li {
  margin-bottom: 0.5rem;
  color: var(--color-text);
}

/* ---------- Quick Info Block ---------- */
.quick-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 2rem;
}

.quick-info-item {
  padding: 16px 20px;
  border-bottom: 1px solid var(--color-border);
  border-right: 1px solid var(--color-border);
}

.quick-info-item:nth-child(2n) {
  border-right: none;
}

.quick-info-item:nth-last-child(-n+2) {
  border-bottom: none;
}

.quick-info-label {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--color-text-secondary);
  margin-bottom: 4px;
}

.quick-info-value {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-primary);
}

/* ---------- Lead Form (Shared) ---------- */
.lead-form {
  background: var(--color-bg-light);
  border-radius: var(--radius);
  padding: 32px;
}

.lead-form h3 {
  margin-bottom: 1.25rem;
  text-align: center;
}

.lead-form .form-group {
  margin-bottom: 16px;
}

.lead-form input,
.lead-form textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-family: var(--font-stack);
  color: var(--color-text);
  transition: border-color 0.25s;
}

.lead-form input:focus,
.lead-form textarea:focus {
  outline: none;
  border-color: var(--color-accent);
}

.lead-form .honeypot {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
  overflow: hidden;
}

.lead-form .btn {
  margin-top: 8px;
}

.lead-form .form-success {
  text-align: center;
  padding: 24px;
  color: #2a7d2e;
  font-weight: 600;
}

/* Inline sidebar form */
.entity-sidebar .lead-form {
  position: sticky;
  top: 96px;
}

/* ---------- Lead Form Popup ---------- */
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.popup-overlay.open {
  display: flex;
}

.popup-modal {
  background: #fff;
  border-radius: 12px;
  width: 100%;
  max-width: 460px;
  padding: 40px 36px;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
  animation: popupIn 0.3s ease;
}

@keyframes popupIn {
  from {
    opacity: 0;
    transform: scale(0.92) translateY(20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.popup-close {
  position: absolute;
  top: 14px;
  right: 18px;
  background: none;
  border: none;
  font-size: 1.6rem;
  color: var(--color-text-secondary);
  cursor: pointer;
  line-height: 1;
  padding: 4px;
  transition: color 0.2s;
}

.popup-close:hover {
  color: var(--color-text);
}

/* ---------- Floating Buttons ---------- */
.floating-btn {
  position: fixed;
  bottom: 24px;
  z-index: 1500;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  color: #fff;
  font-size: 1.5rem;
}

.floating-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.3);
  color: #fff;
}

.floating-wa {
  left: 24px;
  background: #25d366;
}

.floating-call {
  right: 24px;
  background: #25d366;
}

.floating-btn svg {
  width: 28px;
  height: 28px;
  fill: #fff;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--color-footer-bg);
  color: var(--color-footer-text);
  padding: 64px 24px 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.footer-about .logo {
  margin-bottom: 16px;
}

.footer-about .logo a {
  color: #fff;
}

.footer-about p {
  color: var(--color-footer-text);
  font-size: 0.9rem;
  line-height: 1.7;
}

.footer-column h4 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-column ul li {
  margin-bottom: 10px;
}

.footer-column ul li a {
  color: var(--color-footer-text);
  font-size: 0.9rem;
  transition: color 0.2s;
}

.footer-column ul li a:hover {
  color: var(--color-accent);
}

.footer-bottom {
  max-width: var(--max-width);
  margin: 40px auto 0;
  padding-top: 24px;
  border-top: 1px solid #333;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--color-footer-text);
}

/* ---------- Pagination ---------- */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 48px;
}

.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 500;
  border: 1px solid var(--color-border);
  color: var(--color-text);
  transition: all 0.2s;
}

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

.pagination .active {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}

/* ---------- Responsive: Tablet (1024px) ---------- */
@media (max-width: 1024px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .entity-content {
    grid-template-columns: 1fr 300px;
    gap: 32px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .hero h1 {
    font-size: 2.5rem;
  }
}

/* ---------- Responsive: Small Tablet (768px) ---------- */
@media (max-width: 768px) {
  .entity-content {
    grid-template-columns: 1fr;
  }

  .entity-sidebar {
    order: -1;
  }

  .quick-info {
    grid-template-columns: 1fr;
  }

  .quick-info-item {
    border-right: none;
  }

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

  .hero {
    padding: 60px 24px;
  }

  .hero h1 {
    font-size: 2rem;
  }

  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }

  .section {
    padding: 48px 0;
  }

  .filter-bar {
    flex-direction: column;
  }

  .filter-bar select,
  .filter-bar input {
    width: 100%;
    min-width: unset;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}

/* ---------- Responsive: Mobile (480px) ---------- */
@media (max-width: 480px) {
  .card-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .container {
    padding: 0 16px;
  }

  .hero {
    padding: 48px 16px;
  }

  .hero h1 {
    font-size: 1.65rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .search-bar input {
    padding: 14px 16px;
  }

  .search-bar button {
    padding: 14px 20px;
  }

  .popup-modal {
    padding: 28px 20px;
  }

  .lead-form {
    padding: 24px 20px;
  }

  .floating-btn {
    width: 52px;
    height: 52px;
    bottom: 16px;
  }

  .floating-wa {
    left: 16px;
  }

  .floating-call {
    right: 16px;
  }
}

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 2rem; }
.mt-4 { margin-top: 3rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 2rem; }
.mb-4 { margin-bottom: 3rem; }

/* ==========================================================================
   Template Class Fixes — match actual HTML output from layout.php/templates
   ========================================================================== */

/* --- Logo (template uses a.logo, not .logo > a) --- */
a.logo,
a.footer-logo {
  font-size: 1.6rem;
  color: var(--color-primary);
  text-decoration: none;
  letter-spacing: -0.5px;
}
.logo-realty { font-weight: 400; }
.logo-promoo { font-weight: 800; color: var(--color-accent); }
a.footer-logo { color: #fff; }
a.footer-logo .logo-promoo { color: var(--color-accent); }

.nav-list li a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-text);
  position: relative;
  padding: 4px 0;
  text-decoration: none;
}

.nav-list li a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-accent);
  transition: width 0.3s ease;
}

.nav-list li a:hover::after { width: 100%; }
.nav-list li a:hover { color: var(--color-primary); }

.hamburger.active .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.active .hamburger-line:nth-child(2) { opacity: 0; }
.hamburger.active .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* --- Hero (template uses .hero-inner, .hero-title, .hero-tagline) --- */
.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 720px;
  margin: 0 auto;
}

.hero-title {
  color: #fff;
  font-size: 3.25rem;
  margin-bottom: 1.25rem;
  letter-spacing: -0.5px;
}

.hero-title strong { color: var(--color-accent); }

.hero-tagline {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

.hero-search {
  max-width: 560px;
  margin: 0 auto;
}

.search-input {
  width: 100%;
  border: none;
  outline: none;
  padding: 16px 24px;
  font-size: 1rem;
  color: var(--color-text);
  font-family: var(--font-stack);
  border-radius: 50px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}
.search-input::placeholder { color: #aaa; }

/* --- Section headings (template uses .section-heading) --- */
.section-heading {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 2rem;
}

/* --- Cards (template uses .card-image-link, .card-title) --- */
.card-image-link {
  display: block;
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
}

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

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

.card-title { font-size: 1.15rem; margin-bottom: 0.4rem; }
.card-title a { color: var(--color-primary); text-decoration: none; }
.card-title a:hover { color: var(--color-accent); }

.card-price {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 0.25rem;
}

.card-location,
.card-config {
  font-size: 0.875rem;
  color: var(--color-text-secondary);
  margin-bottom: 0.25rem;
}

.card-date {
  font-size: 0.8rem;
  color: var(--color-text-secondary);
  display: block;
  margin-bottom: 0.5rem;
}

.card-snippet {
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* --- Listing page --- */
.listing-page { padding: 48px 0; }
.listing-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 2rem;
}
.no-results {
  text-align: center;
  color: var(--color-text-secondary);
  padding: 48px 0;
  font-size: 1.1rem;
}

/* --- Footer (template uses .footer-inner, .footer-links, .footer-contact) --- */
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.footer-about .footer-about-text {
  color: var(--color-footer-text);
  font-size: 0.9rem;
  line-height: 1.7;
  margin-top: 12px;
}

.footer-links h3,
.footer-contact h3 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-links ul li,
.footer-contact ul li {
  margin-bottom: 10px;
}

.footer-links ul li a,
.footer-contact ul li a {
  color: var(--color-footer-text);
  font-size: 0.9rem;
  transition: color 0.2s;
}

.footer-links ul li a:hover,
.footer-contact ul li a:hover {
  color: var(--color-accent);
}

.footer-address {
  color: var(--color-footer-text);
  font-size: 0.9rem;
  line-height: 1.6;
}

.footer-bottom .disclaimer {
  color: var(--color-footer-text);
  font-size: 0.85rem;
  margin-bottom: 8px;
}

.footer-bottom .copyright {
  color: var(--color-footer-text);
  font-size: 0.85rem;
}

/* --- Inline lead form section --- */
.inline-lead-form-section {
  padding: 60px 0;
  background: var(--color-bg-light);
}

.inline-lead-form {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.inline-lead-form h2 {
  margin-bottom: 0.5rem;
}

.inline-lead-form p {
  color: var(--color-text-secondary);
  margin-bottom: 1.5rem;
}

.inline-lead-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}

.inline-lead-form .form-group {
  text-align: left;
}

.inline-lead-form label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 4px;
  color: var(--color-text);
}

.inline-lead-form input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-family: var(--font-stack);
}

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

/* --- About/Contact page --- */
.about-page,
.contact-page { padding: 48px 0; }

.page-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 2rem;
}

.content-body {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--color-text);
}
.content-body h2 { margin-top: 2rem; }
.content-body p { margin-bottom: 1.25rem; }
.content-body ul, .content-body ol { list-style: disc; padding-left: 24px; margin-bottom: 1.25rem; }
.content-body li { margin-bottom: 0.5rem; }

/* --- Breadcrumbs (template uses ol > li) --- */
.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
  list-style: none;
  padding: 16px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.breadcrumbs ol li {
  font-size: 0.875rem;
  color: var(--color-text-secondary);
}

.breadcrumbs ol li + li::before {
  content: '›';
  margin: 0 8px;
  color: var(--color-border);
}

.breadcrumbs ol li a {
  color: var(--color-text-secondary);
  text-decoration: none;
}

.breadcrumbs ol li a:hover { color: var(--color-accent); }

/* --- Mobile nav: slide-in panel --- */
  .hero-title { font-size: 2rem; }
  .hero-tagline { font-size: 1rem; }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .inline-lead-form .form-row {
    grid-template-columns: 1fr;
  }
}

/* --- 5-column footer grid --- */
.footer-grid-5 {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr;
  gap: 32px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.footer-col h3 {
  color: #fff;
  font-size: 0.9rem;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a {
  color: var(--color-footer-text);
  font-size: 0.85rem;
  transition: color 0.2s;
}
.footer-col ul li a:hover { color: var(--color-accent); }

@media (max-width: 1024px) {
  .footer-grid-5 { grid-template-columns: 1fr 1fr 1fr; gap: 24px; }
}
@media (max-width: 768px) {
  .footer-grid-5 { grid-template-columns: 1fr 1fr; gap: 24px; }
}
@media (max-width: 480px) {
  .footer-grid-5 { grid-template-columns: 1fr; gap: 20px; }
}

/* --- Embedded lead form intl-tel-input fix --- */
.rp-lead-section .iti { width: 100% !important; display: block !important; }
.rp-lead-section .iti input[type="tel"] { padding-left: 58px !important; }
.rp-lead-section .iti__country-list { background: #fff !important; color: #252525 !important; border-radius: 8px !important; }
.rp-lead-section .iti__country-name, .rp-lead-section .iti__dial-code { color: #252525 !important; }
.rp-lead-section input::placeholder { color: rgba(255,255,255,0.4); }

@media (max-width: 560px) {
  .rp-lead-section div[style*="grid-template-columns"] { grid-template-columns: 1fr !important; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 1.65rem; }
  .search-input { padding: 14px 16px; }
}

/* Image matches content width */
.entity-featured-image {
  width: 100%;
  height: auto;
  max-height: 500px;
  object-fit: cover;
  border-radius: var(--radius);
}

/* Content readable width centered */
.entity-body {
  max-width: 1000px;
  margin: 0 auto;
}

.entity-header {
  max-width: 1000px;
  margin: 0 auto;
}
/* ========== Mobile Menu — Clean Dropdown ========== */
@media (max-width: 768px) {
  .hamburger { display: flex; z-index: 1001; }

  .nav-list {
    display: none;
    position: absolute;
    top: 64px;
    right: 16px;
    width: 220px;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    flex-direction: column;
    gap: 0;
    padding: 8px 0;
    z-index: 1000;
    list-style: none;
    margin: 0;
  }

  .nav-list.open {
    display: flex;
  }

  .nav-list li {
    margin: 0;
  }

  .nav-list li a {
    display: block;
    padding: 12px 24px;
    color: var(--color-primary) !important;
    font-size: 0.95rem;
    font-weight: 500;
    border-bottom: 1px solid #f3f4f6;
    transition: background 0.15s;
  }

  .nav-list li:last-child a {
    border-bottom: none;
  }

  .nav-list li a::after { display: none !important; }

  .nav-list li a:hover,
  .nav-list li a:active {
    background: #f8f6f0;
    color: var(--color-accent) !important;
  }

  /* Hamburger to X */
  .hamburger.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  .hamburger.active .hamburger-line:nth-child(2) {
    opacity: 0;
  }
  .hamburger.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  /* Overlay — subtle, click to close */
  .nav-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.15);
    z-index: 999;
  }
  .nav-overlay.open { display: block; }
}

@media (min-width: 769px) {
  .nav-overlay { display: none !important; }
}
