.btn {

  display: inline-flex;

  align-items: center;

  justify-content: center;

  min-height: 48px;

  padding: 12px 22px;

  border-radius: var(--radius-md);

  border: 1px solid transparent;

  font-family: var(--font-heading);

  font-size: 0.98rem;

  font-weight: 600;

  cursor: pointer;

  text-decoration: none;

  transition: transform var(--t-fast), box-shadow var(--t-fast), background var(--t-fast), color var(--t-fast), border-color var(--t-fast);

}



.btn:hover:not(:disabled) {

  transform: translateY(-2px);

}



.btn-primary {
  background: var(--c-primary);
  color: #fff;
  box-shadow: 0 4px 14px rgba(192, 10, 39, 0.25);
  border: 1px solid transparent;
}

.btn-primary:hover:not(:disabled) {
  background: var(--c-primary-hover);
  box-shadow: 0 8px 24px rgba(192, 10, 39, 0.35);
  border-color: rgba(255, 255, 255, 0.1);
}



.btn-outline {

  background: var(--glass-bg);

  backdrop-filter: var(--glass-blur);

  -webkit-backdrop-filter: var(--glass-blur);

  color: var(--c-text);

  border-color: var(--c-border);

  box-shadow: var(--shadow-sm);

}



.btn-outline:hover:not(:disabled) {

  border-color: rgba(192, 10, 39, 0.4);

  color: var(--c-primary);

  background: #fff;

  box-shadow: var(--shadow-md);

}



.btn-portal {

  background: var(--c-bg);

  color: var(--c-text);

  border-color: var(--c-border);

}



.btn-icon {

  width: 44px;

  height: 44px;

  min-width: 44px;

  padding: 0;

  border-radius: 50%;

  background: rgba(0, 0, 0, 0.04);

  border: 1px solid rgba(0, 0, 0, 0.05);

  color: var(--c-text);

}



.btn-icon:hover:not(:disabled) {

  background: var(--c-primary);

  color: #fff;

  border-color: var(--c-primary);

  box-shadow: 0 8px 20px rgba(192, 10, 39, 0.25);

}



.btn-icon i,

.btn-icon svg {

  width: 20px !important;

  height: 20px !important;

  display: flex !important;

  align-items: center;

  justify-content: center;

  margin: 0;

}



.btn-rounded {

  min-width: 44px;

  height: 44px;

  border-radius: 50px;

  padding: 0 20px;

}



.btn-block {

  width: 100%;

}



.btn-xs {

  min-height: 38px;

  padding: 8px 14px;

  font-size: 0.88rem;

}



.btn:disabled,

.btn-disabled {

  opacity: 0.64;

  cursor: not-allowed;

  transform: none;

}



.danger-outline {

  color: var(--c-danger);

  border-color: rgba(185, 28, 28, 0.25);

}



.text-link {

  color: var(--c-primary);

  font-weight: 600;

}



.glossy-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-premium), var(--glass-shadow);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition: transform var(--t-smooth), box-shadow var(--t-smooth);
}

.glossy-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.glossy-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(212, 175, 55, 0.05) 0%, rgba(255, 255, 255, 0.2) 22%, transparent 52%),
    radial-gradient(circle at top right, rgba(192, 10, 39, 0.06), transparent 34%);
  pointer-events: none;
  z-index: 0;
}



.glossy-card > * {

  position: relative;

  z-index: 1;

}



.section-chip {

  display: inline-flex;

  align-items: center;

  justify-content: center;

  min-height: 34px;

  padding: 8px 14px;

  border-radius: var(--radius-full);

  background: var(--c-primary-soft);

  color: var(--c-primary);

  font-size: 0.75rem;

  font-weight: 700;

  text-transform: uppercase;

  letter-spacing: 0.08em;

}



.flash {

  border-radius: var(--radius-lg);

  padding: 14px 18px;

  background: rgba(255, 255, 255, 0.95);

  border: 1px solid rgba(229, 231, 235, 0.95);

  box-shadow: var(--shadow-sm);

}



.flash-success {

  border-color: rgba(21, 128, 61, 0.25);

  color: var(--c-success);

}



.flash-error {

  border-color: rgba(185, 28, 28, 0.22);

  color: var(--c-danger);

}



/* =========================================

   PHASE 2 COMPONENTS

   ========================================= */



/* Hero Band */

.hero-band {
  padding: 80px 0 60px;
  text-align: center;
  background: var(--c-bg);
  position: relative;
  overflow: hidden;
}

.hero-band::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--c-accent), transparent);
  opacity: 0.3;
}

.hero-band h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  color: var(--c-text);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.hero-band h1 span {
  color: var(--c-primary);
}



.hero-band p {

  color: var(--c-text-light);

  font-size: 1.1rem;

}



/* Filter Shell */

.filter-shell {

  background: rgba(255, 255, 255, 0.8);

  backdrop-filter: blur(10px);

  -webkit-backdrop-filter: blur(10px);

  border: 1px solid var(--c-border);

  border-radius: var(--radius-lg);

  box-shadow: var(--shadow-sm);

  display: flex;

  flex-wrap: wrap;

  gap: 12px;

  padding: 24px;

  margin-bottom: 30px;

}



.filter-shell .search-wrapper {

  width: 100%;

  margin-bottom: 10px;

  position: relative;

}



.filter-shell .search-wrapper i {

  position: absolute;

  left: 16px;

  top: 50%;

  transform: translateY(-50%);

  width: 18px;

  color: var(--c-text-light);

  opacity: 0.6;

}



.filter-shell .search-wrapper input {

  width: 100%;

  padding: 12px 16px 12px 44px;

  background: rgba(255, 255, 255, 0.9);

  border: 2px solid #f0f0f0;

  border-radius: var(--radius-md);

  font-family: var(--font-body);

}



.filter-group {

  display: flex;

  gap: 12px;

}



/* ═══════════════════════════════════════════════════════════
   GLOBAL SITE FOOTER — Premium 4-column layout
═══════════════════════════════════════════════════════════ */

.footer {
  background: #f8f9fc;
  border-top: 1px solid rgba(0,0,0,0.07);
  padding: 64px 0 0;
  font-family: inherit;
}

/* Ensure catalog page's white .container override doesn't bleed into the footer */
.footer .container {
  background-color: transparent !important;
  position: static;
  z-index: auto;
}

/* ── Top grid ── */
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 24px;
}

@media (max-width: 991px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }
}

@media (max-width: 576px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

/* ── Brand column ── */
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
}

.footer-logo {
  height: 68px;
  width: auto;
  object-fit: contain;
  display: block;
  align-self: flex-start;
}

.footer-copy {
  font-size: 0.875rem;
  line-height: 1.5;
  color: #6b7280;
  max-width: 300px;
  margin: 0;
  text-align: left;
}

/* ── Link columns ── */
.footer-heading {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #111827;
  margin: 0 0 12px 0;
}

.footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-links ul li a {
  font-size: 0.9rem;
  color: #6b7280;
  text-decoration: none;
  transition: color 0.18s ease, padding-left 0.18s ease;
  display: inline-block;
}

.footer-links ul li a:hover {
  color: #c00a27;
  padding-left: 4px;
}

/* ── Divider ── */
.footer-divider {
  height: 1px;
  background: rgba(0,0,0,0.07);
  margin: 0;
  border: none;
}

/* ── Bottom bar ── */
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  /* Extra bottom padding keeps social icons clear of the fixed chatbot widget */
  padding: 22px 0 80px;
  gap: 16px;
}

@media (max-width: 768px) {
  .footer-bottom {
    flex-direction: column-reverse;
    align-items: center;
    gap: 20px;
    text-align: center;
    /* More space on mobile — chatbot is larger relative to viewport */
    padding: 20px 0 110px;
  }
}

.footer-bottom p {
  font-size: 0.85rem;
  color: #9ca3af;
  margin: 0;
}

/* ── Social icons ── */
.footer-socials {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .footer-socials {
    justify-content: center;
  }
}

.footer-socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.09);
  color: #6b7280;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease,
              border-color 0.2s ease, transform 0.2s ease,
              box-shadow 0.2s ease;
}

.footer-socials a:hover {
  background: #c00a27;
  border-color: #c00a27;
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(192, 10, 39, 0.25);
}

.footer-socials i {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* ── Legacy / unused aliases kept for safety ── */
.footer-grid-3 { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; padding-bottom: 48px; }
.footer-grid-3 .footer-brand { grid-column: auto; }
@media (max-width: 991px) { .footer-grid-3 { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 576px) { .footer-grid-3 { grid-template-columns: 1fr; gap: 28px; } }
.footer-contact-col .footer-contact-item { display:flex; align-items:center; gap:12px; margin-bottom:14px; color:#6b7280; font-size:.9rem; }
.footer-contact-col .footer-contact-item i { color:#c00a27; flex-shrink:0; width:16px; height:16px; }


/* Dropdown Menu */

.share-container {

  position: relative;

}



.share-trigger {

  width: 36px;

  height: 36px;

  background: rgba(255,255,255,0.9);

  backdrop-filter: blur(4px);

  -webkit-backdrop-filter: blur(4px);

  border: none;

  border-radius: 50%;

  display: flex;

  align-items: center;

  justify-content: center;

  cursor: pointer;

  color: var(--c-primary);

  box-shadow: 0 4px 12px rgba(0,0,0,0.1);

  transition: transform 0.2s, box-shadow 0.2s;

}



.share-trigger:hover {

  transform: translateY(-2px);

  box-shadow: 0 6px 15px rgba(0,0,0,0.15);

}



.share-menu {

  position: absolute;

  top: calc(100% + 10px);

  right: 0;

  background: var(--c-surface);

  border: 1px solid var(--c-border);

  border-radius: var(--radius-md);

  box-shadow: var(--shadow-md);

  padding: 8px 0;

  min-width: 160px;

  z-index: var(--z-dropdown);

  opacity: 0;

  visibility: hidden;

  transform: translateY(-10px);

  transition: all var(--t-fast);

}



.share-menu.active {

  opacity: 1;

  visibility: visible;

  transform: translateY(0);

}



.share-item {

  display: flex;

  align-items: center;

  width: 100%;

  padding: 10px 16px;

  background: transparent;

  border: none;

  color: var(--c-text);

  font-size: 0.9rem;

  cursor: pointer;

  text-align: left;

  transition: background 0.2s;

}



.share-item:hover {

  background: rgba(0,0,0,0.03);

}



.share-item i {

  width: 16px;

  margin-right: 12px;

  color: var(--c-text-light);

}



/* Badge Status */

.property-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(4px);
  color: var(--c-text);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  z-index: 10;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.offer-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: linear-gradient(135deg, var(--c-accent) 0%, var(--c-accent-hover) 100%);
  color: #fff;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  z-index: 10;
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
  display: flex;
  align-items: center;
  gap: 6px;
}



/* Map Popups (moved from page-level) */

.custom-map-marker {

  transition: transform 0.2s;

}

.custom-map-marker:hover {

  transform: scale(1.1) translateY(-5px);

  z-index: 1000 !important;

}

.map-popup-img {

  width: 100%;

  height: 120px;

  object-fit: cover;

}

.map-popup-body {

  padding: 12px;

}

.map-popup-builder {

  font-size: 0.7rem;

  text-transform: uppercase;

  letter-spacing: 1px;

  color: var(--c-text-light);

  margin-bottom: 4px;

}

.map-popup-title {

  font-family: var(--font-heading);

  font-size: 1.1rem;

  font-weight: 600;

  margin-bottom: 4px;

  color: var(--c-text);

}

.map-popup-loc {

  font-size: 0.8rem;

  color: var(--c-text-light);

  margin-bottom: 8px;

}

.map-popup-price {

  font-size: 1.1rem;

  font-weight: 700;

  color: var(--c-primary);

  margin-bottom: 12px;

}

.map-popup-btn {

  display: block;

  text-align: center;

  background: var(--c-bg);

  color: var(--c-text);

  padding: 8px;

  border-radius: 6px;

  font-size: 0.85rem;

  font-weight: 600;

  text-decoration: none;

  transition: all 0.2s;

  border: 1px solid var(--c-border);

}

.map-popup-btn:hover {

  background: var(--c-primary);

  color: white;

  border-color: var(--c-primary);

}



/* Property Card Refactor Classes */

.property-card-header {

  position: relative;

  overflow: visible;

}



.property-actions {

  position: absolute;

  top: 12px;

  right: 12px;

  z-index: 10;

  display: flex;

  gap: 8px;

}



.whatsapp-trigger {

  color: #25D366;

  text-decoration: none;

}



.property-builder {

  font-size: 0.75rem;

  color: var(--c-text-light);

  text-transform: uppercase;

  font-weight: 700;

  letter-spacing: 1.5px;

  margin-bottom: 6px;

}



.property-builder a {

  color: inherit;

  text-decoration: none;

  transition: color 0.15s ease;

}



.property-builder a:hover {

  color: var(--c-primary);

}



.property-builder i {

  width: 12px;

  margin-right: 4px;

  vertical-align: middle;

}



.property-title {

  display: block;

  margin-top: 0;

  cursor: pointer;

  font-size: 1.25rem;

  margin-bottom: 12px;

  transition: color 0.2s;

  text-decoration: none;

  color: var(--c-text);

}



.property-title:hover {

  color: var(--c-primary);

}



.property-location {

  margin-bottom: 20px;

}



.property-location i {

  width: 14px;

  margin-right: 4px;

}



.property-pricing {

  display: flex;

  align-items: baseline;

  gap: 8px;

  margin-bottom: 20px;

}



.property-price {

  margin-bottom: 0;

  font-size: 1.45rem;

  color: var(--c-primary);

}



/* Full Property Card Shell */

.properties-grid {

  display: grid;

  grid-template-columns: repeat(3, 1fr);

  gap: 32px;

  padding-bottom: 60px;

}



@media (max-width: 900px) {

  .properties-grid { grid-template-columns: repeat(2, 1fr); }

}



@media (max-width: 600px) {

  .properties-grid { grid-template-columns: 1fr; }

}



.property-card {
  background: var(--c-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--c-border-soft);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transition: transform var(--t-smooth), box-shadow var(--t-smooth);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.property-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-premium);
}



.property-img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  position: relative;
  display: block;
}



.property-content {

  padding: 20px;

  display: flex;

  flex-direction: column;

  flex: 1;

}



.property-details {

  display: grid;

  grid-template-columns: 1fr 1fr;

  gap: 12px;

  margin-bottom: 20px;

  padding-top: 16px;

  border-top: 1px solid var(--c-border);

}



@media (max-width: 600px) {

  .property-details {

    display: grid !important;

    grid-template-columns: 1fr 1fr !important;

    gap: 15px !important;

    border-top: 1px solid #f2f2f2 !important;

    padding-top: 15px !important;

  }

}



.detail-item {

  font-size: 0.9rem;

  color: var(--c-text-light);

}



@media (max-width: 600px) {

  .detail-item {

    display: flex !important;

    align-items: center !important;

    font-size: 0.85rem !important;

    font-weight: 500 !important;

  }

}



/* Empty & Error States */

.empty-state {

  grid-column: 1 / -1;

  text-align: center;

  padding: 60px;

  color: var(--c-text-light);

}



.error-state {

  grid-column: 1 / -1;

  text-align: center;

  padding: 60px;

  color: var(--c-danger);

}



.meta-row {

  display: flex;

  justify-content: space-between;

  align-items: center;

  margin-bottom: 24px;

  flex-wrap: wrap;

  gap: 20px;

}



/* Map Components */

#map-container {

  height: 490px;

  width: 100%;

  border-radius: var(--radius-lg);

  margin-bottom: 40px;

  overflow: hidden;

  box-shadow: var(--shadow-sm);

  border: 1px solid var(--c-border);

  position: relative;

  z-index: 1;

}



#prop-map {

  width: 100%;

  height: 100%;

}



.map-marker-svg {

  filter: drop-shadow(0px 3px 6px rgba(0,0,0,0.4));

}



/* Icon Utilities */

.icon-inline {

  vertical-align: middle;

  margin-right: 4px;

}



.icon-xxs { width: 12px; height: 12px; }

.icon-xs { width: 14px; height: 14px; }

.icon-sm { width: 16px; height: 16px; }

.icon-md { width: 18px; height: 18px; }



/* Layout Utilities */

.u-pos-rel { position: relative !important; }

.u-ov-vis { overflow: visible !important; }

.u-mb-0 { margin-bottom: 0 !important; }

.u-mb-16 { margin-bottom: 16px !important; }

.u-price-text { font-size: 1.45rem; color: var(--c-primary); }

.u-share-menu-catalog { bottom: auto; top: calc(100% + 10px); right: 0; left: auto; }



/* Navigation & Branding */

.nav-logo-img {

  height: 85px;

}



.btn-booking-pad {

  padding: 0 16px !important;

}



.filter-group-min-width {

  min-width: 200px;

}



.icon-right {

  margin-right: 0 !important;

  margin-left: 4px !important;

}



.mt-20 {

  margin-top: 20px !important;

}



/* Service & Blog Card Utilities */

.service-card-actions {

  position: absolute;

  top: 20px;

  left: 20px;

  z-index: 5;

}



.share-trigger-glass {

  width: 36px;

  height: 36px;

  background: rgba(0, 163, 255, 0.9);

  backdrop-filter: blur(5px);

  border: none;

  border-radius: 50%;

  display: flex;

  align-items: center;

  justify-content: center;

  cursor: pointer;

  color: white;

  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);

}



.share-menu-left {

  left: 0 !important;

  right: auto !important;

}



.service-card-footer {

  display: flex;

  flex-direction: column;

  gap: 12px;

  margin-top: auto;

}



.service-cta-row {

  display: flex;

  gap: 12px;

}



.btn-service-details {

  flex: 1;

  padding: 12px !important;

  font-size: 0.9rem !important;

}



.btn-partner-details {

  flex: 1;

  padding: 12px !important;

  font-size: 0.9rem !important;

  border-color: var(--c-primary) !important;

  color: var(--c-primary) !important;

}



.text-primary {

  color: var(--c-primary) !important;

}



.card-wrapper {

  display: block !important;

  text-decoration: none !important;

  color: inherit !important;

}



.blog-card-actions {

  display: flex !important;

  justify-content: space-between !important;

  align-items: center !important;

}


.share-trigger-sm {
  width: 32px !important;
  height: 32px !important;
}

.unit-cost-text {
  font-size: 0.85rem;
  color: var(--c-text-light);
  font-weight: 400;
  margin-left: 8px;
}

/* Premium Trust Badges */
.badge-trust {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-verified { background-color: rgba(37, 211, 102, 0.15); color: #1e874b; }
.badge-legal { background-color: rgba(0, 163, 255, 0.15); color: #005f99; }
.badge-premium { background-color: rgba(255, 193, 7, 0.15); color: #b38600; }

/* Skeleton Loaders */
@keyframes shimmer {
  0% { background-position: -1000px 0; }
  100% { background-position: 1000px 0; }
}

.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 1000px 100%;
  animation: shimmer 2s infinite linear;
  border-radius: var(--radius-sm);
}

.skeleton-card {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 380px;
}

.skeleton-image {
  width: 100%;
  height: 220px;
}

.skeleton-content {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.skeleton-line {
  height: 16px;
  width: 100%;
  border-radius: 4px;
}

.skeleton-line.short { width: 60%; }
.skeleton-line.title { height: 24px; width: 80%; }
.skeleton-line.badge { height: 24px; width: 80px; border-radius: 12px; margin-top: auto; }

/* Card Hover Polish */
.property-card, .service-card, .blog-card {
  transition: transform var(--t-smooth), box-shadow var(--t-smooth);
}

.property-card:hover, .service-card:hover, .blog-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-premium);
}

.property-img, .service-img, .blog-img {
  transition: transform 0.4s ease;
}

.property-card:hover .property-img, 
.service-card:hover .service-img, 
.card-wrapper:hover .blog-img {
  transform: scale(1.05);
}

/* Sticky Mobile CTA Bar */
.sticky-mobile-cta {
  display: none;
}

@media (max-width: 768px) {
  .sticky-mobile-cta {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: white;
    padding: 12px 16px;
    box-shadow: 0 -4px 12px rgba(0,0,0,0.08);
    z-index: 1000;
    gap: 12px;
    align-items: center;
  }
  
  /* Add padding to body to prevent content from being hidden behind sticky CTA */
  body.has-sticky-cta {
    padding-bottom: 70px !important;
  }
}

.btn-sticky-primary {
  flex: 1;
}

.btn-sticky-whatsapp {
  flex: 1;
  border-color: #25D366 !important;
  color: #25D366 !important;
}

.btn-sticky-whatsapp:hover {
  background-color: rgba(37, 211, 102, 0.1) !important;
}

.btn-sticky-share {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  padding: 0 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md, 10px) !important;
}

.btn-sticky-share:hover {
  background-color: rgba(0, 163, 255, 0.08) !important;
  border-color: var(--c-primary, #00a3ff) !important;
  color: var(--c-primary, #00a3ff) !important;
}

/* ─── Empty State Component ───────────────────────────────────────────────── */

@keyframes esrEmptyFadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.esr-empty-state {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 64px 24px;
  animation: esrEmptyFadeUp 0.35s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.esr-empty-icon {
  margin-bottom: 24px;
  line-height: 0;
}

.esr-empty-icon svg {
  display: block;
  width: 96px;
  height: 96px;
}

.esr-empty-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--c-text, #1a1a1a);
  margin: 0 0 8px;
  line-height: 1.3;
}

.esr-empty-sub {
  font-size: 0.9375rem;
  color: var(--c-muted, #6b7280);
  margin: 0 0 6px;
  max-width: 360px;
}

.esr-empty-suggestion {
  font-size: 0.9rem;
  color: var(--c-muted, #6b7280);
  margin: 0 0 28px;
  max-width: 380px;
  line-height: 1.5;
}

.esr-empty-suggestion strong {
  color: var(--c-primary);
  font-weight: 600;
}

.esr-empty-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  width: 100%;
  max-width: 280px;
}

.esr-empty-reset {
  width: 100%;
  min-height: 48px;
  font-size: 1rem;
}

.esr-empty-browse-link {
  font-size: 0.9rem;
  color: var(--c-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  transition: opacity 0.2s;
}

.esr-empty-browse-link:hover {
  opacity: 0.75;
}

@media (min-width: 600px) {
  .esr-empty-state {
    padding: 80px 32px;
  }
  .esr-empty-title {
    font-size: 1.4rem;
  }
  .esr-empty-icon svg {
    width: 112px;
    height: 112px;
  }
  .esr-empty-actions {
    flex-direction: row;
    justify-content: center;
    max-width: none;
  }
  .esr-empty-reset {
    width: auto;
    min-width: 200px;
  }
}

/* ─── Sticky Desktop Filter Bar ─────────────────────────────────────────── */

@media (min-width: 992px) {
  .filter-shell, 
  .filter-bar {
    position: sticky !important;
    top: 80px; /* Aligns with scrolled navbar height */
    z-index: 990;
    transition: background 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
  }

  /* Enhanced contrast when stuck */
  .filter-shell,
  .filter-bar {
    background: rgba(255, 255, 255, 0.88) !important;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    box-shadow: 
      0 12px 40px rgba(0, 0, 0, 0.12),
      0 0 0 1px rgba(255, 255, 255, 0.4) inset;
    transform: translateY(-5px);
  }
}

/* ─── Mobile Filter Bottom Sheet (iOS Style) ──────────────────────────────── */

/* Floating Trigger Button */
.mobile-filter-trigger {
  display: none;
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 950;
  background: linear-gradient(135deg, var(--c-primary) 0%, #E61E3F 100%);
  color: white;
  padding: 14px 28px;
  border-radius: 50px;
  font-weight: 700;
  box-shadow: 0 10px 30px rgba(192, 10, 39, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.2);
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  animation: esrSlideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: var(--font-heading);
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.mobile-filter-trigger:active {
  transform: scale(0.96);
  box-shadow: 0 5px 15px rgba(192, 10, 39, 0.3);
}

@keyframes esrSlideUp {
  from { transform: translateY(100px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@media (max-width: 991px) {
  .mobile-filter-trigger {
    display: flex;
  }
  
  /* Hide the original filter shell on mobile to avoid clutter */
  .filter-shell, 
  .filter-bar {
    display: none !important;
  }
}

/* Bottom Sheet Overlay */
.esr-bottom-sheet-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 2100;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
}

.esr-bottom-sheet-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Bottom Sheet Container */
.esr-bottom-sheet {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: white;
  border-radius: 28px 28px 0 0;
  z-index: 2200;
  transform: translateY(100%);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  max-height: 88vh;
  max-height: 88dvh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 -10px 40px rgba(0,0,0,0.15);
}

body.filter-sheet-open {
  overflow: hidden !important;
  touch-action: none;
}

body.filter-sheet-open .sticky-mobile-cta,
body.filter-sheet-open .whatsapp-float,
body.filter-sheet-open .global-whatsapp,
body.filter-sheet-open .smart-fab,
body.filter-sheet-open #esrs-fab {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transition: opacity 0.3s ease;
}

.esr-bottom-sheet.active {
  transform: translateY(0);
}

.esr-bottom-sheet-header {
  padding: 12px 20px 16px;
  text-align: center;
  border-bottom: 1px solid #f2f2f2;
  position: relative;
}

.esr-bottom-sheet-handle {
  width: 44px;
  height: 5px;
  background: #e0e0e0;
  border-radius: 10px;
  margin: 0 auto 16px;
}

.esr-bottom-sheet-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0;
  color: var(--c-text);
  font-family: var(--font-heading);
}

.esr-bottom-sheet-close {
  position: absolute;
  right: 16px;
  top: 24px;
  background: #f0f0f0;
  border: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--c-text);
}

.esr-bottom-sheet-body {
  padding: 24px 20px;
  overflow-y: auto;
  flex: 1;
  -webkit-overflow-scrolling: touch;
}

/* Re-style filters inside bottom sheet for mobile accessibility */
.esr-bottom-sheet-body .filter-select,
.esr-bottom-sheet-body .search-wrapper,
.esr-bottom-sheet-body .c2p-catalog-search,
.esr-bottom-sheet-body .filter-group {
  width: 100% !important;
  margin-bottom: 20px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
}

.esr-bottom-sheet-body .search-wrapper,
.esr-bottom-sheet-body .c2p-catalog-search {
  border-bottom: 1px solid #f2f2f2;
  padding-bottom: 24px;
  margin-bottom: 28px !important;
}

.esr-bottom-sheet-body .filter-select,
.esr-bottom-sheet-body .search-wrapper input,
.esr-bottom-sheet-body .c2p-catalog-search input {
  height: 54px !important;
  border: 1px solid rgba(15, 23, 42, 0.1) !important;
  background: #fdfdfd !important;
  border-radius: 14px !important;
  font-size: 1rem !important;
  padding: 0 16px !important;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02) inset !important;
}

.esr-bottom-sheet-body .search-wrapper input,
.esr-bottom-sheet-body .c2p-catalog-search input {
  padding-left: 48px !important;
}

.esr-bottom-sheet-body .search-wrapper i,
.esr-bottom-sheet-body .c2p-catalog-search i {
  left: 18px !important;
}

.esr-bottom-sheet-footer {
  padding: 20px 20px calc(20px + env(safe-area-inset-bottom));
  border-top: 1px solid #f2f2f2;
  display: flex;
  gap: 12px;
  background: white;
}

.esr-bottom-sheet-btn-apply {
  flex: 2;
  height: 52px !important;
  font-size: 1rem !important;
}

.esr-bottom-sheet-btn-reset {
  flex: 1;
  height: 52px !important;
  font-size: 0.92rem !important;
  color: var(--c-text) !important;
  background: #f0f0f0 !important;
  border-color: #e5e5e5 !important;
  font-weight: 600 !important;
}

.esr-bottom-sheet-btn-reset:active {
  background: #e5e5e5 !important;
}

/* ─── Detail Page Components ────────────────────────────────────────────── */

.detail-hero-card {
  display: grid;
  gap: 14px;
  padding: 24px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.94));
  border: 1px solid rgba(229, 231, 235, 0.9);
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.12), var(--shadow-glow);
}

.hero-price {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3vw, 2.6rem);
  color: var(--c-primary);
  line-height: 1;
}

.hero-subline {
  color: var(--c-text-light);
  font-size: 0.95rem;
  line-height: 1.6;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px 20px;
  margin: 12px 0;
}

.hero-metrics div {
  display: grid;
  gap: 4px;
}

.hero-metrics dt {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-text-light);
}

.hero-metrics dd {
  margin: 0;
  color: var(--c-text);
  font-weight: 600;
  font-size: 1rem;
}

.sidebar-box {
  display: grid;
  gap: 20px;
  padding: 24px;
  border-radius: var(--radius-lg);
  background: white;
  border: 1px solid var(--c-border);
  box-shadow: var(--shadow-sm);
}

.sidebar-title {
  margin-bottom: 4px;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--c-text);
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(229, 231, 235, 0.92);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
  color: var(--c-text);
  font-size: 0.875rem;
  font-weight: 600;
}

.hero-pill i {
  color: var(--c-primary);
  width: 16px;
}

/* -----------------------------------
   MAP POPUP DESIGN REFINEMENTS
--------------------------------------*/
.leaflet-popup-content-wrapper {
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    padding: 0;
}

/* Adjust the popup close button so it doesn't clash with the image */
.leaflet-container a.leaflet-popup-close-button {
    color: #475569 !important;
    background: white !important;
    border-radius: 50% !important;
    width: 26px !important;
    height: 26px !important;
    line-height: 26px !important;
    text-align: center !important;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15) !important;
    top: 10px !important;
    right: 10px !important;
    z-index: 10 !important;
    font-weight: bold !important;
    text-decoration: none !important;
}

.leaflet-container a.leaflet-popup-close-button:hover {
    color: var(--c-primary) !important;
    background: #f8fafc !important;
}

/* Explicitly fix the map popup button colors */
.map-popup-btn {
  background-color: var(--c-primary) !important;
  color: #ffffff !important;
  border-color: var(--c-primary) !important;
}

.map-popup-btn:hover {
  background-color: #a00000 !important;
  color: #ffffff !important;
}

/* -----------------------------------
   UNIVERSAL COMPACT MAP POPUP
--------------------------------------*/
/* Override Leaflet's large default padding everywhere */
.leaflet-popup-content {
    margin: 0 !important;
    width: 240px !important; 
}

/* Make popup image compact globally */
.map-popup-img {
    height: 100px !important; /* Extremely compact */
}

/* Tighten popup body spacing globally */
.map-popup-body {
    padding: 10px !important;
}

/* Shrink text globally */
.map-popup-title {
    font-size: 1rem !important;
    line-height: 1.2 !important;
    margin-bottom: 4px !important;
}

.map-popup-price {
    font-size: 1rem !important;
    margin-bottom: 8px !important;
}

.map-popup-builder {
    font-size: 0.65rem !important;
    margin-bottom: 2px !important;
}

.map-popup-loc {
    font-size: 0.75rem !important;
    margin-bottom: 6px !important;
}

.map-popup-btn {
    padding: 6px !important;
    font-size: 0.8rem !important;
    background-color: var(--c-primary) !important;
    color: #ffffff !important;
    border-color: var(--c-primary) !important;
}

.map-popup-btn:hover {
    background-color: #a00000 !important;
    color: #ffffff !important;
}

/* -----------------------------------
   MAP FULLSCREEN FUNCTIONALITY
--------------------------------------*/
#map-container.map-fullscreen {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    max-height: none !important;
    z-index: 9999 !important;
    margin: 0 !important;
    border-radius: 0 !important;
    border: none !important;
}

.leaflet-control-fullscreen {
    background-color: #fff;
    border: 2px solid rgba(0,0,0,0.2);
    background-clip: padding-box;
    border-radius: 4px;
    width: 34px;
    height: 34px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease;
}

.leaflet-control-fullscreen:hover {
    background-color: #f4f4f4;
}

.leaflet-control-fullscreen svg {
    width: 18px;
    height: 18px;
    color: #333;
}


/* NOTE: Smart FAB styles have been moved to js/fab.js (self-contained component). */
/* Loaded automatically via mobile-manager.js — no per-page changes required.       */

/* =========================================
   FAQ MODAL / DRAWER
   ========================================= */
body.faq-modal-open {
  overflow: hidden;
}

.esrs-faq-modal {
  position: fixed;
  inset: 0;
  z-index: 10004;
  display: flex;
  justify-content: flex-end;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease;
}

.esrs-faq-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.esrs-faq-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.52);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.esrs-faq-dialog {
  position: absolute;
  width: min(560px, 100%);
  height: min(100%, calc(100vh - 48px));
  background: linear-gradient(180deg, rgba(255,255,255,0.98) 0%, rgba(250,250,250,0.98) 100%);
  border: 1px solid rgba(229, 231, 235, 0.95);
  border-radius: 32px;
  box-shadow: 0 28px 58px rgba(15, 23, 42, 0.18);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateX(28px);
  transition: transform 0.28s ease;
}

.esrs-faq-modal.is-open .esrs-faq-dialog {
  transform: translateX(0);
}

.esrs-faq-modal-head {
  padding: 28px 28px 20px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid rgba(229, 231, 235, 0.8);
  cursor: move;
  user-select: none;
}

.esrs-faq-dialog.is-dragging {
  transition: none;
}

.esrs-faq-heading {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.esrs-faq-eyebrow {
  display: inline-flex;
  align-self: flex-start;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(192, 10, 39, 0.08);
  color: var(--c-primary);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.esrs-faq-heading h2 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: var(--c-text);
}

.esrs-faq-heading p {
  color: var(--c-text-light);
  font-size: 1.02rem;
  max-width: 460px;
}

.esrs-faq-close {
  width: 46px;
  height: 46px;
  min-width: 46px;
  border: 1px solid rgba(229, 231, 235, 0.95);
  border-radius: 50%;
  background: white;
  color: var(--c-text);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--t-fast), color var(--t-fast), box-shadow var(--t-fast);
}

.esrs-faq-close:hover {
  color: var(--c-primary);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.esrs-faq-close .smart-icon {
  width: 30px;
  height: 30px;
  min-width: 30px;
}

.esrs-faq-modal-body {
  flex: 1;
  overflow: auto;
  padding: 22px 28px 28px;
}

.esrs-faq-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.esrs-faq-item {
  border: 1px solid rgba(229, 231, 235, 0.95);
  border-radius: 22px;
  background: white;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
  overflow: hidden;
}

.esrs-faq-item summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 22px;
  cursor: pointer;
  font-family: var(--font-heading);
  font-size: 1.02rem;
  font-weight: 600;
}

.esrs-faq-item summary::-webkit-details-marker {
  display: none;
}

.esrs-faq-item summary i {
  width: 18px;
  height: 18px;
  color: var(--c-primary);
  transition: transform var(--t-fast);
  flex-shrink: 0;
}

.esrs-faq-item[open] summary i {
  transform: rotate(45deg);
}

.esrs-faq-answer {
  padding: 0 22px 22px;
  color: var(--c-text-light);
}

.esrs-faq-answer p {
  text-align: left;
}

/* FAQ Detailed Block Styles */
.faq-content-block {
  margin-bottom: 12px;
  line-height: 1.6;
  color: var(--c-text-light, #4b5563);
}
.faq-content-block:last-child {
  margin-bottom: 0;
}

/* Fix overlapping chatbot and sticky CTA */
@media (max-width: 900px) {
    #esr-chat {
        bottom: 80px !important;
    }
}
.faq-step-list {
  list-style: none;
  padding: 0;
  margin: 12px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.faq-step-list li {
  position: relative;
  padding-left: 24px;
  color: var(--c-text-light, #4b5563);
}
.faq-step-list li::before {
  content: "•";
  color: var(--c-primary, #C00A27);
  position: absolute;
  left: 6px;
  font-weight: bold;
}
.faq-tip, .faq-warning {
  margin-top: 16px;
  padding: 16px 20px;
  border-radius: 12px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.95rem;
  line-height: 1.5;
}
.faq-tip {
  background: rgba(37, 211, 102, 0.08);
  border: 1px solid rgba(37, 211, 102, 0.2);
  color: #166534;
}
.faq-tip i {
  color: #16a34a;
  flex-shrink: 0;
  margin-top: 2px;
  width: 20px;
  height: 20px;
}
.faq-warning {
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: #991b1b;
}
.faq-warning i {
  color: #dc2626;
  flex-shrink: 0;
  margin-top: 2px;
  width: 20px;
  height: 20px;
}
.esrs-faq-answer-content {
  padding-top: 8px;
}
