/**
 * CompoundIn UI v2 — shared styles (all v2 pages via _init_v2)
 * Page-specific: homepage.css, listing.css, property.css
 */
@import url("https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Cairo:wght@400;500;600;700&family=DM+Sans:wght@400;500;600;700&display=swap");

/* —— Design tokens —— */
:root {
  --cin-emerald: #10b981;
  --cin-emerald-dark: #059669;
  --cin-blue: #6876ea;
  --cin-blue-hover: #403bc3;
  --cin-slate-900: #0f172a;
  --cin-slate-800: #1e293b;
  --cin-slate-600: #475569;
  --cin-slate-400: #94a3b8;
  --cin-secondary: #d4d4d8;
  --cin-navy: #1e2a4a;

  /* Figma tokens — source: _assets/design-tokens/css-vars.json (+ typography from Figma inspect) */
  --content-primary: #1d1d49; /* Content.Primary */
  --content-secondary: #71717b; /* Content.Secondary */
  --content-primary-inverse: #fff; /* Content.Primary Inverse */
  --family-primary: "Space Grotesk", Cairo, sans-serif;
  --family-secondary: "DM Sans", Cairo, sans-serif; /* Family.Secondary */
  --headings-s-bold-size: 20px;
  --headings-s-bold-line-height: 28px;
  --headings-s-bold-letter-spacing: -0.5px;
  --headings-l-bold-size: 32px;
  --headings-l-bold-line-height: 40px;
  --headings-l-bold-letter-spacing: -1px;
  --headings-xs-bold-size: 16px;
  --headings-xs-bold-line-height: 24px;
  --headings-xs-bold-letter-spacing: -0.5px;
  --headings-5xl-bold-size: 72px;
  --headings-5xl-bold-line-height: 80px;
  --headings-5xl-bold-letter-spacing: -1px;
  /* Body / S / Semi Bold — nav links */
  --body-s-semi-bold-size: 14px;
  --body-s-semi-bold-line-height: 20px;
  --body-s-semi-bold-letter-spacing: 0;
  /* Body / S / Regular */
  --body-s-regular-size: 14px;
  --body-s-regular-line-height: 20px;
  --body-s-regular-letter-spacing: 0;
  /* Body / XS / Semi Bold — hero city line */
  --body-sm-semi-bold-size: 14px;
  --body-xs-semi-bold-size: 12px;
  --body-xs-semi-bold-line-height: 16px;
  --body-xs-semi-bold-letter-spacing: 0;
  /* Body / XL / Regular — hero subtitle */
  --body-xl-regular-size: 20px;
  --body-xl-regular-line-height: 28px;
  --body-xl-regular-letter-spacing: 0;
  /* Body / L / Regular */
  --body-l-regular-size: 16px;
  --body-l-regular-line-height: 24px;
  --body-l-regular-letter-spacing: 0;
}

/* —— Bootstrap 4.3.1 Button Overrides (Figma v2 styling) —— */
body.cin-bs4 .btn {
  font-family: var(--family-secondary);
  font-weight: 600;
  border-radius: 0.5rem; /* 8px modern rounding */
  padding: 0.55rem 1.35rem;
  font-size: 0.875rem;
  line-height: 1.4;
  transition: all 0.22s ease-in-out;
}
body.cin-bs4 button:focus {outline: 0 none !important;}
body.cin-bs4 .btn-lg {
  padding: 0.75rem 1.75rem;
  font-size: 1rem;
  border-radius: 0.625rem;
}

body.cin-bs4 .btn-sm {
  padding: 0.375rem 1rem;
  font-size: 0.75rem;
  border-radius: 0.375rem;
}

/* Success Buttons (Brand Primary Green) */
body.cin-bs4 .btn-success, body.cin-bs4 .bg-success {
  color: #fff !important;
  background-color: var(--cin-emerald) !important;
  border-color: var(--cin-emerald) !important;
}
body.cin-bs4 .text-success {
  color: var(--cin-emerald) !important;
}

body.cin-bs4 .btn-success:hover,
body.cin-bs4 .btn-success:focus,
body.cin-bs4 .btn-success:active,
body.cin-bs4 .btn-success.active,
body.cin-bs4 .show > .btn-success.dropdown-toggle {
  color: #fff !important;
  background-color: var(--cin-emerald-dark) !important;
  border-color: var(--cin-emerald-dark) !important;
}

body.cin-bs4 .btn-success:focus,
body.cin-bs4 .btn-success.focus {
  box-shadow: 0 0 0 0.2rem rgba(16, 185, 129, 0.25) !important;
}

body.cin-bs4 .btn-success:disabled,
body.cin-bs4 .btn-success.disabled {
  background-color: var(--cin-slate-400) !important;
  border-color: var(--cin-slate-400) !important;
  opacity: 0.65;
}

/* Outline Success */
body.cin-bs4 .btn-outline-success {
  color: var(--cin-emerald) !important;
  border-color: var(--cin-emerald) !important;
  background-color: transparent !important;
}

body.cin-bs4 .btn-outline-success:hover,
body.cin-bs4 .btn-outline-success:focus,
body.cin-bs4 .btn-outline-success:active,
body.cin-bs4 .btn-outline-success.active,
body.cin-bs4 .show > .btn-outline-success.dropdown-toggle {
  color: #fff !important;
  background-color: var(--cin-emerald) !important;
  border-color: var(--cin-emerald) !important;
}

body.cin-bs4 .btn-outline-success:focus,
body.cin-bs4 .btn-outline-success.focus {
  box-shadow: 0 0 0 0.2rem rgba(16, 185, 129, 0.25) !important;
}

/* Primary Buttons (Brand Secondary Blue) */
body.cin-bs4 .btn-primary {
  color: #fff !important;
  background-color: var(--cin-blue) !important;
  border-color: var(--cin-blue) !important;
}

body.cin-bs4 .btn-primary:hover,
body.cin-bs4 .btn-primary:focus,
body.cin-bs4 .btn-primary:active,
body.cin-bs4 .btn-primary.active,
body.cin-bs4 .show > .btn-primary.dropdown-toggle {
  color: #fff !important;
  background-color: var(--cin-blue-hover) !important;
  border-color: var(--cin-blue-hover) !important;
}

body.cin-bs4 .btn-primary:focus,
body.cin-bs4 .btn-primary.focus {
  box-shadow: 0 0 0 0.2rem rgba(104, 118, 234, 0.25) !important;
}

body.cin-bs4 .btn-primary:disabled,
body.cin-bs4 .btn-primary.disabled {
  background-color: var(--cin-slate-400) !important;
  border-color: var(--cin-slate-400) !important;
  opacity: 0.65;
}

/* Outline Primary */
body.cin-bs4 .btn-outline-primary {
  color: var(--cin-blue) !important;
  border-color: var(--cin-blue) !important;
  background-color: transparent !important;
}

body.cin-bs4 .btn-outline-primary:hover,
body.cin-bs4 .btn-outline-primary:focus,
body.cin-bs4 .btn-outline-primary:active,
body.cin-bs4 .btn-outline-primary.active,
body.cin-bs4 .show > .btn-outline-primary.dropdown-toggle {
  color: #fff !important;
  background-color: var(--cin-blue) !important;
  border-color: var(--cin-blue) !important;
}

body.cin-bs4 .btn-outline-primary:focus,
body.cin-bs4 .btn-outline-primary.focus {
  box-shadow: 0 0 0 0.2rem rgba(104, 118, 234, 0.25) !important;
}

/* Outline Secondary */
body.cin-bs4 .btn-outline-secondary {
  color: var(--content-primary, #1d1d49) !important;
  border-color: var(--cin-secondary, #d4d4d8) !important;
  background-color: transparent !important;
  font-family: var(--family-secondary) !important;
  font-weight: 600;
}

body.cin-bs4 .btn-outline-secondary:hover,
body.cin-bs4 .btn-outline-secondary:focus,
body.cin-bs4 .btn-outline-secondary:active,
body.cin-bs4 .btn-outline-secondary.active,
body.cin-bs4 .show > .btn-outline-secondary.dropdown-toggle {
  color: var(--cin-slate-900) !important;
  background-color: var(--cin-slate-100, #f4f4f5) !important;
  border-color: var(--cin-slate-600) !important;
}

/* Dark Buttons (Content Primary Navy) */
body.cin-bs4 .btn-dark {
  color: #fff !important;
  background-color: var(--content-primary, #1d1d49) !important;
  border-color: var(--content-primary, #1d1d49) !important;
}

body.cin-bs4 .btn-dark:hover,
body.cin-bs4 .btn-dark:focus,
body.cin-bs4 .btn-dark:active,
body.cin-bs4 .btn-dark.active,
body.cin-bs4 .show > .btn-dark.dropdown-toggle {
  color: #fff !important;
  background-color: var(--cin-slate-800, #1e293b) !important;
  border-color: var(--cin-slate-800, #1e293b) !important;
}

body.cin-bs4 .btn-dark:focus,
body.cin-bs4 .btn-dark.focus {
  box-shadow: 0 0 0 0.2rem rgba(29, 29, 73, 0.25) !important;
}

/* Outline Light Buttons (Figma White Outlines) */
body.cin-bs4 .btn-outline-light {
  color: #fff !important;
  border-color: rgba(255, 255, 255, 0.4) !important;
  background-color: transparent !important;
}

body.cin-bs4 .btn-outline-light:hover,
body.cin-bs4 .btn-outline-light:focus,
body.cin-bs4 .btn-outline-light:active,
body.cin-bs4 .btn-outline-light.active,
body.cin-bs4 .show > .btn-outline-light.dropdown-toggle {
  color: var(--content-primary, #1d1d49) !important;
  background-color: #fff !important;
  border-color: #fff !important;
}

body.cin-bs4 .btn-outline-light:focus,
body.cin-bs4 .btn-outline-light.focus {
  box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.25) !important;
}


/* extra-small buttons (not in Bootstrap 4; smaller than .btn-sm) */
.btn-xs{padding:.125rem .35rem;font-size:.75rem;line-height:1.5;border-radius:.15rem}

/* Legacy site overrides (from custom.css) */
.navbar-soft{box-shadow:0 2px 3px rgba(100,100,100,0.1);font-size:14px}
.navbar-soft .navbar-toggler{color:rgba(0,0,0,0.5);border-color:rgba(0,0,0,0.1)}
.navbar-soft .navbar-toggler-icon{background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(0,0,0,0.5)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e")}
.navbar-soft .navbar-brand{color:#111;font-weight:600;font-size:18px}
.navbar-soft .navbar-nav .nav-item{margin-left:5px;margin-right:5px}
.navbar-soft .navbar-nav .nav-link{padding:1.4rem .5rem;font-weight:600;text-transform:uppercase;color:#111;border:2px solid transparent}
.navbar-soft .navbar-nav .nav-item:hover .nav-link,.navbar-soft .navbar-nav .nav-item.active .nav-link,.navbar-soft .navbar-nav .nav-item.show .nav-link{border-bottom:2px solid #1c9975;color:#111}
.navbar-soft .dropdown-menu{border:0;background-clip:initial;border-radius:0;box-shadow:0 1px 5px rgba(70,70,70,0.2)}
.navbar-soft .dropdown-menu .dropdown-item{padding:.6rem 1.5rem;border-bottom:1px solid #f1f1f1}
.navbar-soft > div.container{max-width:100%!important;}
@media all and (max-width: 991px) {
.navbar-soft .navbar-nav{margin-bottom:10px;margin-top:10px}
.navbar-soft .navbar-nav .nav-link{padding:.6rem 0}
}
.topbar{background:#0a0494;background:linear-gradient(90deg,#0a0494 0%,#3454d1 61%,#009fff 100%);padding:0;min-height:50px}
@media screen and (min-width: 576px) and (max-width: 768px) {
.topbar .topbar-left{text-align:center}
}
.topbar .topbar-left .topbar-text{color:#fff;padding:10px 0;font-size:13px;font-family:"Open Sans",sans-serif;line-height:30px}
@media screen and (min-width: 320px) and (max-width: 575px) {
.topbar .topbar-left .topbar-text{padding:0;text-align:center}
}
.topbar .topbar-right{text-align:right;line-height:30px}
@media screen and (min-width: 576px) and (max-width: 768px) {
.topbar .topbar-right{text-align:center;margin:0}
}
@media screen and (min-width: 320px) and (max-width: 575px) {
.topbar .topbar-right{text-align:center}
}
.topbar .topbar-right .topbar-link{display:inline-table;padding:10px;padding-left:0;margin:0}
@media screen and (min-width: 320px) and (max-width: 575px) {
.topbar .topbar-right .topbar-link{padding:0}
}
.topbar .topbar-right .topbar-link li{list-style:none;float:left;color:#fff;padding:0 10px;font-size:12px}
.topbar .topbar-right .topbar-link li a{color:#fff;font-size:13px;font-family:"Open Sans",sans-serif}
.topbar .topbar-right .topbar-link li a:hover{color:#1c9975;text-decoration:none}
.topbar .topbar-right .topbar-sosmed,#main_nav99 .topbar-right .topbar-sosmed{display:inline-table;padding:6px;padding-left:0;margin:0}
@media screen and (min-width: 576px) and (max-width: 768px) {
.topbar .topbar-right .topbar-sosmed,#main_nav99 .topbar-right .topbar-sosmed{display:none}
}
.topbar .topbar-right .topbar-sosmed li,#main_nav99 .topbar-right .topbar-sosmed li{list-style:none;float:left;font-size:16px;padding:0 10px}
@media screen and (min-width: 320px) and (max-width: 575px) {
.topbar .topbar-right .topbar-sosmed li,#main_nav99 .topbar-right .topbar-sosmed li{font-size:12px}
}
.topbar .topbar-right .topbar-sosmed li a,#main_nav99 .topbar-right .topbar-sosmed li a{color:#fff;font-size:16px}
.topbar .topbar-right .topbar-sosmed li a:hover,#main_nav99 .topbar-right .topbar-sosmed li a:hover{color:#1c9975}
.navbar-transparent{box-shadow:0 2px 3px rgba(100,100,100,0.1);background-color:transparent}
.navbar-soft{box-shadow:none;z-index:4}
@media screen and (min-width: 320px) and (max-width: 575px) {
.navbar-soft{padding:.5rem 1rem}
}
.navbar-soft .navbar-brand{padding-top:10px}
.navbar-soft .navbar-brand img{position:relative;-o-object-fit:cover;object-fit:cover;height:auto;width:152px}
.navbar-soft .navbar-nav .nav-item .nav-link{padding:1rem .5rem;font-weight:700;text-transform:uppercase;border:2px solid transparent;font-family:"Open Sans",sans-serif}
@media screen and (min-width: 320px) and (max-width: 575px) {
.navbar-soft .navbar-nav .nav-item .nav-link{padding:1rem 0}
}
@media screen and (min-width: 576px) and (max-width: 768px) {
.navbar-soft .navbar-nav .nav-item .nav-link{padding:1rem 0}
}
.navbar-soft .navbar-nav .nav-item .dropdown-menu{padding-top:0;padding-bottom:0}
.navbar-soft .navbar-nav .nav-item .dropdown-menu li a{font-family:"Open Sans",sans-serif;text-transform:capitalize;font-weight:500}
.navbar-soft .navbar-nav .nav-item .dropdown-menu .col-megamenu{padding:20px 0}
.navbar-light .navbar-nav .nav-link{color:#000!important}
.navbar-transparent .navbar-brand img:last-child{display:none}
.navbar-transparent .navbar-nav .nav-item .nav-link{color:#fff}
.fixed-top,.navbar-custom{box-shadow:0 2px 3px rgba(100,100,100,0.1);background-color:#fff;-webkit-animation:smoothScroll 1s forwards;animation:smoothScroll 1s forwards}
.fixed-top .navbar-brand img,.navbar-custom .navbar-brand img{display:none}
.fixed-top .navbar-brand img:last-child,.navbar-custom .navbar-brand img:last-child{display:block;width:152px}
.fixed-top .navbar-nav .nav-item .nav-link,.navbar-custom .navbar-nav .nav-item .nav-link{color:#000}
.dropdown-toggle[data-toggle="dropdown"]:after{font-family:"FontAwesome";font-weight:900;content:"\f107";border:0;vertical-align:baseline}
.navbar .search{width:24px;max-width:100%}
.navbar .search a:hover{color:#000}
.top-search{background-color:#fff;top:85px;left:auto;right:0;height:100px;position:absolute;padding:10px 0;width:100%;z-index:51;display:none}
.top-search .input-group{max-width:100%;margin:0 auto;width:100%;display:block}

/* —— Global typography —— */
/* Primary typeface on page text (icons excluded below) */
body.cin-bs4,
body.cin-bs4 h1,
body.cin-bs4 h2,
body.cin-bs4 h3,
body.cin-bs4 h4,
body.cin-bs4 h5,
body.cin-bs4 h6,
body.cin-bs4 a,
body.cin-bs4 button,
body.cin-bs4 label,
body.cin-bs4 input,
body.cin-bs4 select,
body.cin-bs4 textarea {
  font-family: var(--family-primary);
  font-style: normal;
}

/* Font Awesome — keep icon font, not Space Grotesk / Cairo */
body.cin-bs4 .fa {
  font-family: FontAwesome;
}

/* —— h1 (Figma: Headings / S / Bold) —— */
body.cin-bs4 h1 {
  color: var(--content-primary);
  font-size: var(--headings-s-bold-size);
  font-weight: 700;
  line-height: var(--headings-s-bold-line-height);
  letter-spacing: var(--headings-s-bold-letter-spacing);
  margin-bottom: 1rem;
}

/* —— h2 (Figma: Headings / S / Bold — default section titles) —— */
body.cin-bs4 h2 {
  color: var(--content-primary);
  font-size: var(--headings-s-bold-size);
  font-weight: 700;
  line-height: var(--headings-s-bold-line-height);
  letter-spacing: var(--headings-s-bold-letter-spacing);
}

/* —— Section title (Figma: Headings / L / Bold) —— */
body.cin-bs4 h2.cin-section-title {
  font-family: var(--family-primary);
  font-size: var(--headings-l-bold-size);
  font-style: normal;
  font-weight: 700;
  line-height: var(--headings-l-bold-line-height);
  letter-spacing: var(--headings-l-bold-letter-spacing);
}

/* —— Header nav links (Figma: Body / S / Semi Bold) —— */
body.cin-bs4 header .navbar-soft .navbar-nav .nav-item .nav-link {
  color: var(--content-primary);
  font-family: var(--family-secondary);
  font-size: var(--body-s-semi-bold-size);
  font-style: normal;
  font-weight: 600;
  line-height: var(--body-s-semi-bold-line-height);
  letter-spacing: var(--body-s-semi-bold-letter-spacing);
}

/* —— Search filters (font only; family via global rules) —— */
body.cin-bs4 .cin-search-wrap .cin-label-sm {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

body.cin-bs4 .cin-search-wrap .cin-form-control,
body.cin-bs4 .cin-search-wrap .cin-custom-select {
  font-weight: 600;
}

body.cin-bs4 .cin-search-wrap .cin-btn-search {
  font-weight: 700;
}

/* —— Breadcrumb (listing & inner pages) —— */
body.cin-bs4 .cin-breadcrumb {
  background: #f8fafc;
  border-bottom: 1px solid #e4e4e7;
}

body.cin-bs4 .cin-breadcrumb__list {
  font-family: var(--family-secondary);
  font-size: var(--body-s-semi-bold-size);
  font-weight: 500;
}

body.cin-bs4 .cin-breadcrumb__list a {
  color: var(--content-primary);
}


@media (max-width: 767.98px) {
  body.cin-bs4 .cin-breadcrumb {
    display: none !important;
  }
  body.cin-bs4 .cin-breadcrumb .breadcrumb-item:not(.active) {
    display: none !important;
  }
  body.cin-bs4 .cin-breadcrumb .breadcrumb-item.active::before {
    content: none !important;
    padding: 0 !important;
  }
}


/* —— Layout utilities —— */
html {
  scroll-behavior: smooth;
}

body.cin-bs4 {
  color: var(--cin-slate-900);
}

.cin-container {
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
}

/* —— Header & chrome —— */
/* —— Fixed chrome —— */
.cin-fixed-top {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1030;
}

.cin-promo {
  background: var(--cin-slate-900);
  color: #fff;
  min-height: 40px;
}

.cin-navbar {
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid #f1f5f9;
}

.cin-brand {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--cin-slate-900) !important;
}

.cin-brand span {
  color: var(--cin-emerald);
}

.btn-cin-primary {
  background-color: var(--cin-emerald);
  border-color: var(--cin-emerald);
  color: #fff;
  border-radius: 9999px;
  font-weight: 500;
  padding: 0.5rem 1.25rem;
}

.btn-cin-primary:hover {
  background-color: var(--cin-emerald-dark);
  border-color: var(--cin-emerald-dark);
  color: #fff;
}

.btn-cin-link {
  color: var(--cin-slate-900);
  font-weight: 500;
}

.btn-cin-link:hover {
  color: var(--cin-emerald);
}

/* Full-screen mobile nav */
.nav-overlay {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  transform: translateY(20px);
}

.nav-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.promo-track {
  position: relative;
  height: 2.5rem;
}

.promo-item {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0 1rem;
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.promo-item.is-active {
  opacity: 1;
  pointer-events: auto;
}

/* —— Search filters (shared home + listing) —— */
.cin-search-wrap {
  position: relative;
  z-index: 30;
  margin-top: 1.5rem;
  margin-bottom: 2rem;
}

.cin-search-card {
  border-radius: 1rem;
  border-color: #f1f5f9 !important;
}

.cin-label-sm {
  color: var(--cin-slate-400);
  margin-bottom: 0.35rem;
}

.cin-input-group-text {
  background: #f8fafc;
  border-color: #e2e8f0;
  color: var(--cin-slate-400);
}

.cin-form-control,
.cin-custom-select {
  background-color: #f8fafc;
  border-color: #e2e8f0;
  border-radius: 0.5rem !important; /* modern 8px rounding */
  min-height: calc(1.5em + 1.5rem + 2px);
}

/* Ensure input group elements have consistent rounding */
.input-group > .cin-form-control,
.input-group > .cin-custom-select {
  border-radius: 0.5rem !important;
}

.input-group > .input-group-prepend > .cin-input-group-text {
  border-top-left-radius: 0.5rem !important;
  border-bottom-left-radius: 0.5rem !important;
  border-top-right-radius: 0 !important;
  border-bottom-right-radius: 0 !important;
}

.input-group > .cin-form-control:not(:first-child),
.input-group > .cin-custom-select:not(:first-child) {
  border-top-left-radius: 0 !important;
  border-bottom-left-radius: 0 !important;
  border-top-right-radius: 0.5rem !important;
  border-bottom-right-radius: 0.5rem !important;
}

.input-group > .cin-form-control:not(:last-child),
.input-group > .cin-custom-select:not(:last-child) {
  border-top-right-radius: 0 !important;
  border-bottom-right-radius: 0 !important;
}

.cin-range {
  width: 100%;
  height: 8px;
  border-radius: 4px;
  accent-color: var(--cin-emerald);
}

/* Budget range slider (ionRangeSlider) */
.cin-budget-range-wrap,
.cin-search-wrap .irs {
  width: 100%;
}

.cin-search-wrap .irs--round {
  margin-top: 0.25rem;
  margin-bottom: 0.25rem;
}

.cin-search-wrap .irs--round .irs-line {
  height: 6px;
  background-color: #e2e8f0;
}

.cin-search-wrap .irs--round .irs-bar {
  height: 6px;
  background-color: var(--cin-emerald, #10b981);
}

.cin-search-wrap .irs--round .irs-handle {
  width: 20px;
  height: 20px;
  border: 3px solid var(--cin-emerald, #10b981);
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.12);
}

.cin-search-wrap .irs--round .irs-handle.state_hover,
.cin-search-wrap .irs--round .irs-handle:hover {
  background-color: #ecfdf5;
}

.cin-search-wrap .irs--round .irs-min,
.cin-search-wrap .irs--round .irs-max {
  font-size: 11px;
  color: #64748b;
  background: transparent;
  padding: 0;
  top: auto;
  bottom: -18px;
}

.cin-search-wrap .cin-budget-field {
  padding-bottom: 1.25rem;
}

.cin-btn-search {
  min-height: 52px;
  border-radius: 0.75rem;
  background: var(--cin-emerald);
  border-color: var(--cin-emerald);
}

.cin-btn-search:hover {
  background: var(--cin-emerald-dark);
  border-color: var(--cin-emerald-dark);
}

/* —— Footer —— */
.cin-footer {
  background: var(--cin-slate-900);
  color: #fff;
  border-top: 1px solid var(--cin-slate-800);
}

.cin-footer a {
  color: var(--cin-slate-400);
}

.cin-footer a:hover {
  color: var(--cin-emerald);
  text-decoration: none;
}

.cin-social-btn {
  width: 40px;
  height: 40px;
  border-radius: 9999px;
  background: var(--cin-slate-800);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.cin-social-btn:hover {
  background: var(--cin-emerald);
  color: #fff;
}
.pb-safe {
  padding-bottom: max(1rem, env(safe-area-inset-bottom, 0px));
}

.cin-wa-float {
align-items: center;
bottom: 3.6rem;
box-shadow: 0 8px 24px rgba(16, 185, 129, 0.3) !important;
display: inline-flex !important;
justify-content: center;
padding: 0.65rem 1.35rem !important;
position: fixed;
right: 1.5rem;
z-index: 1040;
}

/* On mobile, make it a perfect circle, icon-only button */
@media (max-width: 767.98px) {
  .cin-wa-float {
    border-radius: 50% !important;
    bottom: 4.6rem !important; /* Offset bottom so it doesn't collide with sticky mobile bar */
    font-size: 1.35rem !important;
    height: 3.25rem;
    padding: 0 !important;
    right: 0.9rem;
    width: 3.25rem;
  }
}
/* Bedroom pill radios (no peer: in BS4) */
.cin-bed-radio {
  position: absolute;
  clip: rect(0, 0, 0, 0);
  pointer-events: none;
}

.cin-bed-label {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.35rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--cin-slate-600);
  cursor: pointer;
  margin-right: 0.35rem;
  margin-bottom: 0.35rem;
}

.cin-bed-radio:checked + .cin-bed-label {
  background: var(--cin-emerald);
  border-color: var(--cin-emerald);
  color: #fff;
}

.cin-bed-radio:focus + .cin-bed-label {
  box-shadow: 0 0 0 0.2rem rgba(16, 185, 129, 0.25);
}
/* BS5-style helpers not in Bootstrap 4.3.1 */
body.cin-bs4 .text-white-50 {
  color: rgba(255, 255, 255, 0.93) !important;
}

body.cin-bs4 .border-white-50 {
  border-color: rgba(255, 255, 255, 0.5) !important;
}

body.cin-bs4 .font-weight-semibold {
  font-weight: 600 !important;
}

/* —— Compound card (shared) —— */
/**
* Compound card — reusable listing/product card (Figma: Compound Card View)
* Depends on design tokens in cin_v2.css (:root) when loaded on v2 pages.
*/
.cin-compound-card {
  background: #fff;
  border: 1px solid #e4e4e7;
  border-radius: 1.25rem;
  box-shadow: 0 1px 3px rgba(29, 29, 73, 0.06);
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
  }
  
  .cin-compound-card:hover {
  border-color: #d4d4d8;
  box-shadow: 0 8px 24px rgba(29, 29, 73, 0.08);
  }
  
  /* —— Media —— */
  .cin-compound-card__media {
  position: relative;
  background: #f4f4f5;
  aspect-ratio: 4 / 3;
  overflow: visible !important; /* Allow controls to breathe if needed */
  }

  /* Target Bootstrap Carousel inner media constraints within compound cards */
  .cin-compound-card__media .carousel,
  .cin-compound-card__media .carousel-inner {
    height: 100%;
    width: 100%;
    border-top-left-radius: 1.25rem;
    border-top-right-radius: 1.25rem;
    overflow: hidden;
    position: relative;
  }

  .cin-compound-card__media .carousel-item {
    height: 100%;
    aspect-ratio: 4 / 3;
    transition: transform 0.5s ease-in-out;
  }

  @media (prefers-reduced-motion: reduce) {
    .cin-compound-card__media .carousel-item {
      transition: none;
    }
  }

  .cin-compound-card__media .carousel-item img {
    height: 100% !important;
    width: 100% !important;
    object-fit: cover !important;
  }

  /* Style modern indicator lines inside card sliders */
  .cin-compound-card__media .carousel-indicators {
    bottom: 0.625rem;
    margin: 0;
    gap: 0.25rem;
    z-index: 5;
  }

  .cin-compound-card__media .carousel-indicators li {
    width: 14px;
    height: 4px;
    border-radius: 2px;
    border: none;
    background-color: rgba(255, 255, 255, 0.45);
    transition: all 0.2s ease;
    margin: 0;
  }

  .cin-compound-card__media .carousel-indicators li.active {
    background-color: var(--cin-emerald, #10b981);
    width: 20px;
  }

  /* Arrow controls: visible on touch; hover-reveal on fine pointer (listing grid) */
  .cin-compound-card__media .carousel-control-prev,
  .cin-compound-card__media .carousel-control-next {
    width: 2.25rem;
    height: 2.25rem;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    transition: all 0.22s ease-in-out;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15);
    z-index: 5;
  }

  .cin-compound-card__media .carousel-control-prev { left: 0.75rem; }
  .cin-compound-card__media .carousel-control-next { right: 0.75rem; }

  @media (hover: hover) and (pointer: fine) {
    .cin-compound-card__media .carousel-control-prev,
    .cin-compound-card__media .carousel-control-next {
      opacity: 0.45;
    }

    .cin-compound-card__media:hover .carousel-control-prev,
    .cin-compound-card__media:hover .carousel-control-next {
      opacity: 1;
    }
  }

  @media (hover: none), (pointer: coarse) {
    .cin-compound-card__media .carousel-control-prev,
    .cin-compound-card__media .carousel-control-next {
      opacity: 0.92;
    }
  }

  .cin-compound-card__media .carousel-control-prev-icon,
  .cin-compound-card__media .carousel-control-next-icon {
    background-image: none; /* remove default arrow SVGs and use font-awesome inside templates */
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--cin-slate-800);
    font-size: 0.75rem;
    width: 100%;
    height: 100%;
  }

  .cin-compound-card__media .carousel-control-prev-icon::before {
    content: "\f053";
    font-family: FontAwesome;
  }

  .cin-compound-card__media .carousel-control-next-icon::before {
    content: "\f054";
    font-family: FontAwesome;
  }

  .cin-compound-card__media .carousel-control-prev:hover,
  .cin-compound-card__media .carousel-control-next:hover {
    background: #fff;
    transform: translateY(-50%) scale(1.05);
  }
  
  .cin-compound-card__media-link {
  display: block;
  height: 100%;
  width: 100%;
  }
  
  .cin-compound-card__media img {
  display: block;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
  width: 100%;
  }
  
  .cin-compound-card:hover .cin-compound-card__media img {
  transform: scale(1.04);
  }
  
  .cin-compound-card__actions {
  display: flex;
  flex-direction: row;
  gap: 0.5rem;
  position: absolute;
  right: 0.75rem;
  top: 0.75rem;
  z-index: 2;
  }
  
  .cin-compound-card__action-btn {
  align-items: center;
  background: rgba(255, 255, 255, 0.95);
  border: 0;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(29, 29, 73, 0.12);
  color: #71717b;
  display: inline-flex;
  height: 2.5rem;
  justify-content: center;
  padding: 0;
  width: 2.5rem;
  font-size: 1rem;
  transition: all 0.2s ease-in-out;
  }
  
  .cin-compound-card__action-btn:hover {
  background: #fff;
  color: var(--content-primary, #1d1d49);
  }

  .cin-compound-card__action-btn.is-favourited,
  .cin-compound-card__action-btn.is-favourited:hover {
  color: #ef4444; /* Modern bright red */
  background: #fff;
  }

  .cin-compound-card__action-btn.is-compared,
  .cin-compound-card__action-btn.is-compared:hover {
  color: var(--cin-emerald, #10b981);
  background: #fff;
  }
  
  .cin-compound-card__dots {
  bottom: 0.625rem;
  display: flex;
  gap: 0.35rem;
  justify-content: center;
  left: 0;
  position: absolute;
  right: 0;
  z-index: 2;
  }
  
  .cin-compound-card__dot {
  background: rgba(255, 255, 255, 0.55);
  border-radius: 50%;
  height: 6px;
  width: 6px;
  }
  
  .cin-compound-card__dot.is-active {
  background: var(--cin-emerald, #10b981);
  }
  
  /* —— Body —— */
  .cin-compound-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1rem 1.125rem 1.25rem;
  }
  
  .cin-compound-card__title {
  color: var(--content-primary, #1d1d49);
  font-family: var(--family-primary, "Space Grotesk", sans-serif);
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.35;
  margin: 0;
  }
  
  .cin-compound-card__title a {
  color: inherit;
  text-decoration: none;
  }
  
  .cin-compound-card__title a:hover {
  color: var(--content-primary, #1d1d49);
  text-decoration: none;
  opacity: 0.85;
  }
  
  .cin-compound-card__location {
  color: #71717b;
  font-family: var(--family-secondary, "DM Sans", sans-serif);
  font-size: 0.8125rem;
  font-weight: 400;
  line-height: 1.4;
  margin: 0;
  }
  
  .cin-compound-card__specs {
  color: var(--content-primary, #1d1d49);
  font-family: var(--family-secondary, "DM Sans", sans-serif);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.45;
  margin: 0.25rem 0 0;
  }
  
  .cin-compound-card__rnpl {
  color: var(--cin-emerald, #10b981);
  font-family: var(--family-secondary, "DM Sans", sans-serif);
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.45;
  margin: 0.5rem 0 0;
  }
  
  .cin-compound-card__rnpl a {
  color: inherit;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
  }
  
  .cin-compound-card__rnpl a:hover {color: var(--cin-emerald-dark, #059669);}
  
  .cin-compound-card__price {margin-top: auto;padding-top: 0.625rem;}
  
  .cin-compound-card__price-main {
  color: var(--content-primary);
  font-family: var(--family-primary);
  font-size: var(--headings-xs-bold-size);
  font-style: normal;
  font-weight: 700;
  line-height: var(--headings-xs-bold-line-height);
  letter-spacing: var(--headings-xs-bold-letter-spacing);
  }

  .cin-compound-card__price-main--amount {
  align-items: baseline;
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  }

  .cin-compound-card__currency {
  font-size: 18pt;
  font-weight: 500;
  margin-right: 0.25rem;
  }
  
  .cin-compound-card__price-hint {
  color: #9f9fa9;
  font-family: var(--family-secondary, "DM Sans", sans-serif);
  font-size: 0.75rem;
  font-weight: 400;
  line-height: 1.4;
  margin: 0.25rem 0 0;
  }
  
  .cin-compound-card__price-main--amount .cin-compound-card__period {
  color: #9f9fa9;
  font-size: 0.8125rem;
  font-weight: 500;
  margin-left: 0.15rem;
  }

.text-cin-emerald {
  color: var(--cin-emerald) !important;
}

/* Leaflet marker info popup */
.leaflet-popup.cin-map-popup .leaflet-popup-content-wrapper {
  border: 1px solid #e4e4e7;
  border-radius: 1rem;
  box-shadow: 0 8px 24px rgba(29, 29, 73, 0.12);
  padding: 0;
}

.leaflet-popup.cin-map-popup .leaflet-popup-content {
  margin: 0;
  width: 260px !important;
  line-height: 1.4;
}

.leaflet-popup.cin-map-popup .leaflet-popup-tip {
  border-top-color: #fff;
}

.cin-map-popup__inner {
  overflow: hidden;
}

.cin-map-popup__media {
  display: block;
  background: #f4f4f5;
}

.cin-map-popup__img {
  display: block;
  height: 120px;
  object-fit: cover;
  width: 100%;
}

.cin-map-popup__body {
  padding: 0.75rem 1rem 1rem;
}

.cin-map-popup__title {
  color: var(--content-primary, #1d1d49);
  font-family: var(--family-primary, "Space Grotesk", sans-serif);
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.35;
  margin: 0 0 0.35rem;
}

.cin-map-popup__title a {
  color: inherit;
  text-decoration: none;
}

.cin-map-popup__title a:hover {
  opacity: 0.85;
  text-decoration: none;
}

.cin-map-popup__address {
  color: #71717b;
  font-family: var(--family-secondary, "DM Sans", sans-serif);
  font-size: 0.75rem;
  margin: 0 0 0.75rem;
}

.leaflet-container a {
  font-family: var(--family-primary, sans-serif);
  color: var(--cin-slate-900) !important;
}
.leaflet-container a.btn.btn-cin-primary {
  color: #fff !important;
}
.leaflet-container a.leaflet-popup-close-button {
	color: #fff !important;
}

.leaflet-container .cin-map-popup .cin-map-popup__cta,
.leaflet-container .cin-map-popup .cin-map-popup__cta:link,
.leaflet-container .cin-map-popup .cin-map-popup__cta:visited {
  background-color: var(--cin-emerald);
  border-color: var(--cin-emerald);
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 600;
  text-decoration: none;
}

.leaflet-container .cin-map-popup .cin-map-popup__cta:hover,
.leaflet-container .cin-map-popup .cin-map-popup__cta:focus {
  background-color: var(--cin-emerald-dark);
  border-color: var(--cin-emerald-dark);
  color: #fff;
  text-decoration: none;
}
