:root {
  --scs-orange-100: #f8ccb9;
  /* --scs-orange-500: #e75a1d; */
  --scs-orange-500: #709EB9;
  --scs-dark-blue-100: #bebec2;
  --scs-dark-blue-500: #2e2e3a;
  --scs-light-blue-050: #dee2e6;
  --scs-light-blue-100: #c8d9e4;
  --scs-light-blue-400: #709EB9;
  --scs-light-blue-500: #4c86a8;
  --scs-cool-grey-100: #f4f6f7;
  --scs-cool-grey-200: #eef2f3;
  --scs-cool-grey-300: #edf3f6;
  --scs-cool-grey-500: #dae3e5;
  --scs-warm-white-100: #fffaf7;
  --scs-warm-white-500: #feefe5;
}

h1,h2,h3,h4,h5,h6 {
  font-optical-sizing: auto;
  font-weight: 200;
  font-style: normal;
}

h1,h2 {
  font-family: "Cormorant", serif;
  font-weight: 600;
}

h1 { font-size: clamp(2rem, 6vw, 4rem); }
h2 { font-size: clamp(1.75rem, 5vw, 3rem) }
h3 { font-size: clamp(1.5rem, 4vw, 2rem); }
h4 { font-size: clamp(1.25rem, 3vw, 1.75rem); }
h5 { font-size: clamp(1rem, 2.5vw, 1.25rem); line-height: 1.75rem; }
h6 { font-size: clamp(0.875rem, 2vw, 1.25rem); }

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

input[type="range"]::-webkit-slider-thumb {
  background: var(--scs-dark-blue-500) !important
}

input[type="range"]::-moz-range-thumb {
  background: var(--scs-dark-blue-500) !important
}

input[type="range"]::-ms-thumb {
  background: var(--scs-dark-blue-500) !important
}

.custom-input-container {
  padding: 0.5rem;
  border: 1px solid var(--scs-cool-grey-500);
  border-radius: 4px;
  box-shadow: 0 .125rem .25rem rgba(0, 0, 0, 0.075);
}

.custom-label {
  font-size: 0.75rem;
}

.custom-input {
  font-size: 1rem;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  background-color: transparent;
}

.custom-input:focus,
.custom-input:hover,
.custom-input:active {
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
}

.left-size {
  box-sizing:border-box;
  border: 1px solid #D5D5D5;
  border-radius: 4px;
}

/* ========== Markdown Typography Overrides ========== */

.md-override h1,
.md-override h2,
.md-override h3,
.md-override h4 {
  margin-bottom: 2rem;
}

.md-override h1 {
  font-family: "Cormorant", serif;
  font-size: 3.5rem;
  line-height: 3.5rem;
  font-weight: 600;
}

.md-override h2 {
  font-family: "Cormorant", serif;
  font-size: 2.75rem;
  line-height: 2.75rem;
  font-weight: 600;
}

.md-override h3 {
  font-family: "Manrope", sans-serif;
  font-size: 2.5rem;
  line-height: 2.5rem;
  font-weight: 300;
}

.md-override h4 {
  font-family: "Cormorant", serif;
  font-size: 2rem;
  line-height: 2rem;
  font-weight: 600;
}

.md-override strong {
  font-weight: 700;
}

/* Responsive spacers without multiple media queries */
.spacer-full {
  padding-block: clamp(2rem, 1rem + 3dvw, 7rem);
}

.spacer-half {
  padding-block: clamp(1rem, 0.5rem + 1.5dvw, 3.5rem);
}

.navbar {
  z-index: 1050 !important;
  backdrop-filter: blur(10px) !important;
  background-color: rgba(255, 255, 255, 0.7) !important;
  box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.25) !important;
}

.navbar img {
  height: 54px !important;
  width: auto m !important;
  background-position: cover;
  background-repeat: no-repeat;
}

body {
  color: var(--scs-dark-blue-500) !important;
  font-family: "Manrope", Arial, sans-serif !important;
  font-weight: 300 !important;
  line-height: 1.6;
  padding-top: 80px !important;
  margin-bottom: 0 !important;
}

.header {
  background-color: #4CAF50;
  color: var(--scs-warm-white-100);
  text-align: center;
  padding: 1rem;
}

.cormorant {
  font-family: "Cormorant", serif;
  font-optical-sizing: auto;
}

.manrope {
  font-family: "Manrope", sans-serif;
  font-optical-sizing: auto;
}

.light {
  color: var(--scs-warm-white-100);
}

.text-shadow {
  text-shadow: 0px 4px 4px rgba(0,0,0,0.42);
}

.scs-fs-1 {
  font-family: "cormorant", serif !important;
  font-size: 3.5rem !important;
  font-weight: 600 !important;
  line-height: 3.5rem !important;
}

.scs-fs-2 {
  font-family: "cormorant", serif !important;
  font-size: 2.0rem !important;
  font-weight: 600 !important;
  line-height: 2.0rem !important;
}

.section-spacing {
  padding-bottom: 0.5rem;
}

.card {
  margin-top: 1rem;
}

.manrope-white-shadow {
  font-family: "Manrope", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  color: white;
  text-shadow: 0px 4px 4px rgba(0,0,0,0.42);
}

.manrope-footer {
  font-family: "Manrope", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  color: white;
  text-align: right;
}

.manrope-light {
  font-family: "Manrope", sans-serif !important;
  font-optical-sizing: auto !important;
  font-weight: 300 !important;
  font-style: normal !important;
}

.manrope-regular {
  font-family: "Manrope", sans-serif !important;
  font-optical-sizing: auto !important;
  font-weight: 400 !important;
  font-style: normal !important;
}

.manrope-semibold {
  font-family: "Manrope", sans-serif;
  font-optical-sizing: auto;
  font-weight: 500;
  font-style: bold;
}

.cormorant-semibold {
  font-family: "Cormorant", serif;
  font-optical-sizing: auto;
  font-weight: 600;
  font-style: normal;
}

.cormorant-regular {
  font-family: "Cormorant", serif !important;
  font-optical-sizing: auto !important;
  font-weight: 300 !important;
  font-style: normal !important;
}

.cormorant-light {
  font-family: "Cormorant", serif;
  font-optical-sizing: auto;
  font-weight: 300;
  font-style: normal;
}

.tagline {
  position: relative !important;
  margin-top: 16rem !important;
  font-size: 4.5rem !important;
  line-height: 4.5rem !important;
  color: white !important;
  text-shadow: 0px 4px 4px rgba(0,0,0,0.42) !important;
}

.section-text {
  position: relative;
  font-size: 3.5rem;
  color: var(--scs-dark-blue-500);
}

.subtext {
  position: relative;
  margin-top: 2rem;
  font-size: 1.2rem;
}

.searchhint {
  position: relative;
  margin-top: 2rem;
  font-size: 2rem;
}

.hero-background {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background-image: url();
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  -webkit-background-size: cover;
  -moz-background-size: cover;
  -o-background-size: cover;
  background-size: cover;
  z-index: -2;
}

.scs-rect {
  text-align: start;
  min-height: 54px;
  background: #FFFFFF;
  box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.15);
  border-radius: 15px !important;
  font-size: 1.1rem;
  line-height: 1.1rem;
}

.scs-btn-filter {
  /* padding: 0 1rem; */
  height: 54px;
  width: 54px;
  background: var(--scs-orange-500);
  box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.25) !important;
  border-radius: 15px;
  border-color: var(--scs-orange-500);
  line-height: 44px;
  text-align: center;
  font-size: 1.5rem;
  border-width: 0;
  background-image: url(/images/search_white.svg);
  background-size: 50%;
  background-repeat: no-repeat;
  background-position: center;
}

.control {
  margin-right: 2rem;
}

@media (min-width: 992px) { /* lg: 4 per row */
  .control:nth-child(4n) {
    margin-right: 0;
  }
}

@media (min-width: 768px) and (max-width: 991.98px) { /* md: 2 per row */
  .control:nth-child(2n) {
    margin-right: 0;
  }
}

@media (max-width: 767.98px) { /* sm: 1 per row */
  .control {
    margin-right: 0;
  }
}

.scs-cool-grey-300 {
  background: var(--scs-cool-grey-300);
}

.scs-footer-email {
  height: 54px;
}

.scs-btn-footer {
  width: 10rem;
  height: 54px;
  background: var(--scs-orange-500);
  border-radius: 15px;
  line-height: 54px;
  text-align: center;
  font-size: 1.5rem;
  color: #EAEAEB;
  border-width: 0px;
  margin: 0px;
}

.form-btn {
  width: 100%;
  height: 54px;
  border-radius: 15px;
  line-height: 54px;
  text-align: center;
  font-size: 1.5rem;
  font-weight: 300;
  border-width: 0px;
  margin: 0px;
}

.form-btn-submit {
  border: none;
  background-color: var(--scs-light-blue-400) !important;
  color: var(--scs-cool-grey-300);
  font-size: 1.25rem;
  box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.25) !important;
}

.form-btn-share {
  border: solid 0.5px var(--scs-light-blue-400) !important;
  background-color: white !important;
  color: var(--scs-dark-blue-500) !important;
  font-size: 1.25rem;
}

.btn-rental {
  border: none;
  background-color: var(--scs-dark-blue-500) !important;
  color: var(--scs-cool-grey-300);
  font-size: 1.25rem;
  line-height: 1.25rem;
  font-weight: 600;
}

.search-fuzzy {
  width: 34rem;
}

#fts-button {
  cursor: pointer;
  background-color: #fff;
  border-color: #fff;
}

.search-footer {
  width: 400px;
  height: 54px;
  margin-left: 10px;
  background-color: #D9D9D9;
  line-height: 54px;
}

.search-place {
  width: auto !important;
  display: inline-block !important;
}

.search-dates {
  width: 16.5rem !important;
  display: inline-block !important;
  font-size: 1rem;
}

.search-dates::placeholder {
  opacity: 1.0 !important;
}

.search-guests {
  width: auto !important;
  display: inline-block !important;
}

.search-siam-cs {
  border:0;
  font-family: "Manrope", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  font-size: 1.0rem;
  color: var(--scs-dark-blue-500) !important;
  padding: 0 !important;
}

.custom-vr {
  background-color: var(--scs-dark-blue-500) !important;
}

.search-siam-cs::placeholder {
  color: var(--scs-dark-blue-500) !important;
  opacity: 0.4 !important;
  font-size: smaller !important;
  }

.scs-text-light {
  color: var(--scs-warm-white-100) !important;
}

.scs-text-dark {
  color: var(--scs-dark-blue-500) !important;
}

input:focus {
  outline: none;
  border: none;
}

.row-email {
  margin-top: 2rem !important;
}

.label-email {
  font-size: 2rem;
  line-height: 2rem;
  margin-bottom: 3rem;
}

footer input {
  background-color: #D9D9D9;
  border: none;
}

.scs-footer-cs {
  background-color: var(--scs-dark-blue-500) !important;
}

.footer-links li {
  list-style-type: none;
}
.footer-links a {
  text-decoration: none;
  color: #EDF3F6;
}
.footer-links a:hover {
  color: white;
}

.two-column-left {
  margin: 1rem 0 1rem 0;
}

.two-column-right {
  margin: 1rem 0 1rem 0;
}

.video-background {
  position: relative;
  width: 100%;
  height: 65vh;
  min-height: 50vh;
  overflow: hidden;
  background-image: url('/images/pages/index/hero_home.webp');
  background-size: cover;
  background-position: center;
}

.video-background video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  transform: translate(-50%, -50%);
  object-fit: cover;
  z-index: 0; /* Video at the back */
}

.video-background .content {
  position: relative;
  z-index: 11; /* Your overlays above video */
  color: white;
  margin-top: 10% !important;
}

#page-index {
  position: relative;
  z-index: 2; /* Optional, in case you want this section above other elements */
}

.booking-photo {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 2;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 10px;
  max-width: 100%; /* ensures it doesn’t overflow on small screens */
}

.transparent-navbar {
  background-color: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(4px);
  position: sticky; /* optional if fixed is not being used */
  top: 0;
  width: 100%;
  z-index: 10;
}

.video-hero-section {
  position: relative;
  width: 100%;
  height: 65vh;
  overflow: hidden;
}

.video-background {
  width: 100%;
  height: 100%;
  object-fit: cover;
  top:-1rem;
}

input::placeholder {
  color: var(--scs-dark-blue-500) !important;
  opacity: 0.4 !important;
}

.title {
  font-size: 3.5rem !important;
  line-height: 3.5rem !important;
}

.footer-logo {
  position: relative;
  height: 3.75rem;
  object-fit: cover;
}

/* Small tablets and large phones (portrait) */
@media (max-width: 575.98px) {
  .scs-fs-1 {
    font-size: 1.25rem;
    line-height: 1.25rem;
  }
  .scs-fs-2 {
    font-size: 0.75rem;
    line-height: 0.75rem;
  }
}
/* Large phones and small tablets (landscape) */

@media (min-width: 576px) {
  .scs-fs-1 {
    font-size: 1.5rem;
    line-height: 1.5rem;
  }
  .scs-fs-2 {
    font-size: 1.0rem;
    line-height: 1.0rem;
  }
}

/* Tablets (landscape) */
@media (min-width: 768px) {
  .scs-fs-1 {
    font-size: 2.0rem;
    line-height: 2.0rem;
  }
  .scs-fs-2 {
    font-size: 1.25rem;
    line-height: 1.25rem;
  }
}

/* Notebooks and small desktops */
@media (min-width: 992px) {
  .scs-fs-1 {
    font-size: 2.5rem;
    line-height: 2.5rem;
  }
  .scs-fs-2 {
    font-size: 1.5rem;
    line-height: 1.5rem;
  }
}

/* Large desktops */
@media (min-width: 1200px) {
  .scs-fs-1 {
    font-size: 3.0rem;
    line-height: 3.0rem;
  }
  .scs-fs-2 {
    font-size: 1.75rem;
    line-height: 1.75rem;
  }
}

/* Extra large screens (e.g. 4K) */
@media (min-width: 1400px) {
  .scs-fs-1 {
    font-size: 4.5rem;
    line-height: 4.5rem;
  }
  .scs-fs-2 {
    font-size: 2.0rem;
    line-height: 2.0rem;
  }
}

.scs-btn-light {
  background-color: var(--scs-warm-white-100);
  color: var(--scs-dark-blue-500);
}

.scs-btn-small {
  min-width: 12rem !important;
  height: 36px !important;
  font-size: 1.0rem !important;
  line-height: 1.0rem !important;
}

.scs-btn-primary {
  height: 4rem !important;
  background: var(--scs-orange-500) !important;
  box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.25) !important;
  line-height: 4rem !important;
  font-size: 1.5rem !important;
}

.scs-btn {
  height: 52px;
  width: auto;
  min-width: 15rem;
  display: inline-block;
  white-space: nowrap;
  box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.25) !important;
  border: none;
  border-style: none;
  border-width: 0;
  border-color: transparent;
  color: var(--scs-warm-white-100);
  background-color: var(--scs-dark-blue-500);
  border-radius: 15px;
  font-family: "Manrope", sans-serif;
  font-size: 1.25rem;
  font-style: normal;
  font-weight: 500;
  font-optical-sizing: auto;
  line-height: 1.25rem;
  text-align: center;
  padding: 0 1.5rem; /* left/right only */
}

#privacy-policy {
  h1 {
    padding-top: 5rem !important;
    padding-bottom: 2rem !important;
    text-align: center !important;
  }
  h2, h3 {
    padding-top: 2rem !important;
    padding-bottom: 1rem !important;
  }
  h2 {
    font-size: 1.5rem !important;
  }
  h3 {
    font-size: 1.25rem !important;
  }
}

#terms-and-conditions {
  h1 {
    padding-top: 5rem !important;
    padding-bottom: 2rem !important;
    text-align: center !important;
  }
  h2, h3 {
    padding-top: 2rem !important;
    padding-bottom: 1rem !important;
  }
  h2 {
    font-size: 1.5rem !important;
  }
  h3 {
    font-size: 1.25rem !important;
  }
}
/* ✅ Slide-in Bottom-Center Modal */
.cookie-modal {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  z-index: 1080;
  max-width: 480px;
  width: calc(100% - 4rem);
  background-color: transparent;
  transition: transform 0.5s ease, opacity 0.5s ease;
  opacity: 0;
  pointer-events: none;
}

.cookie-modal.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
}

.fade-in-left {
  transform: translateX(-100%);
}

.cookie-modal-content {
  background-color: #fff;
  border-radius: 1rem;
  box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.25);
  padding: 1.5rem;
}

.cookie-modal-body {
  font-size: 0.95rem;
}

/* Ensure scrolling is allowed behind modal */
body.modal-open {
  overflow: auto !important;
}

/* Section creates the positioning context */
.page-index-search { position: relative; }

/* The full-bleed wrapper */
.page-index-search {
  position: relative;
  overflow: hidden; /* clip palm overflow vertically if needed */
}

/* Keep palms absolutely positioned to wrapper edges */
.palm-left,
.palm-right {
  position: absolute;
  top: 0;
  bottom: 0;
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  pointer-events: none;
  z-index: 1;
}

.palm-left {
  background-image: url('/images/palm-left.png');
  background-size: cover;            /* fill the box horizontally */
  background-position: left center;  /* stick art to the left edge */
  left: 0;
  width: clamp(140px, 18vw, 320px);
}

.palm-right {
  background-image: url('/images/palm-right.png');
  background-size: cover;            /* fill the box horizontally */
  background-position: right center; /* stick art to the right edge */
  right: 0;
  width: clamp(160px, 22vw, 420px);
}

/* Search content stays above palms */
.page-index-search [data-role="search-block"] { position: relative; z-index: 2; }

/* Optional: hide on xs (you already do it with d-none d-md-block) */
@media (max-width: 575.98px) {
  .palm-left { width: clamp(120px, 28vw, 260px); }
  .palm-right { width: clamp(140px, 32vw, 300px); }
}

.card-icon {
  height: 2rem;
  aspect-ratio: 1.0;
  background-repeat: no-repeat;
  background-size: contain;
  background-position: bottom;
  display: inline-block;
}

.form-icon {
  height: 3rem;
  aspect-ratio: 1.0;
  background-repeat: no-repeat;
  background-size: contain;
  background-position: bottom;
  display: inline-block;
}

.card-beds {
  background-image: url('/images/card_beds.svg');
}

.card-baths {
  background-image: url('/images/card_baths.svg');
}

.card-pool {
  background-image: url('/images/card_pool.svg');
}

.card-viewId {
  background-image: url('/images/card_view.svg');
}

.card-phone {
  background-image: url('/images/icons/form_phone.svg');
}

.card-whatsapp {
  background-image: url('/images/icons/form_whatsapp.svg');
}

.card-email {
  background-image: url('/images/icons/form_email.svg');
}

.card-count {
  font-family: "Manrope", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  color: var(--scs-dark-blue-500);
  padding-right: 1.5rem;
}

.three-line-truncate {
  display: -webkit-box;
  line-clamp: 3;     /* Limit to 2 lines */
  -webkit-line-clamp: 3;     /* Limit to 2 lines */
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ts-dropdown {
  z-index: 9999 !important;
}

#mapDetailPanel {
  overflow-y: auto;
}

#mapImageContainer {
  position: relative;
  height: 100%;
  min-height: 500px; /* or fixed height */
  max-height: 100vh;
  overflow: hidden;
  flex-shrink: 0; /* 🧠 prevent shrinkage */
}

#mapImageContainer img {
  max-width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 4 / 3; /* adjust to your map image */
}

#index-map button {
  border-color: transparent;
  background-color: transparent;
  color: var(--scs-dark-blue-500);
}

#index-map button:hover {
  background-color: var(--scs-light-blue-100);
  color: var(--scs-dark-blue-500);
}

#index-map-card .neighborhood {
  border: 1px solid var(--scs-light-blue-400) !important;
  background-color: transparent !important;
  color: var(--scs-dark-blue-500) !important;
  cursor: pointer !important;
  line-height: 1.25rem !important;
}

#index-map-card .neighborhood img {
  padding: 0.25rem;
  border-radius:15px;
}

#search-group {
  background-color: var(--scs-cool-grey-300);
}

#search-group .form-control {
  background-color: var(--scs-cool-grey-300);
  color: var(--scs-dark-blue-500);
  border: none;
  box-shadow: none;
}

#search-group .form-select {
  background-color: var(--scs-cool-grey-300);
  color: var(--scs-dark-blue-500);
  border: none;
  box-shadow: none;
}

#search-group .form-control:focus {
  box-shadow: none;
  border-color: var(--scs-dark-blue-500);
}

.bg-image {
  background-size: cover;
  background-position: center;
  border-radius: start start 1.0rem 1.0rem !important;
  aspect-ratio:16/9;
}

/* Let content dictate height; add optional min-height for hero feel on md+ */
#guide {
  /* remove: height: 50vh; */
  background-color: var(--scs-cool-grey-300);
  padding-block: clamp(2rem, 1rem + 3dvw, 5rem);
}

/* If you want extra presence on larger screens without breaking flow: */
@media (min-width: 768px) {
  #guide {
    min-height: 50svh;             /* safe, *minimum* height */
    display: grid;                  /* easy vertical centering */
    align-items: center;
  }
}

.gallery-3col {
  display: flex;
  gap: 2vw; /* X gap between left and right */
  aspect-ratio: 3 / 2; /* Responsive container ratio */
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
}

/* --- Mission section: isolate stacking & spacing --- */
#mission {
  position: relative;
  padding-top: clamp(8px, 1dvh, 24px);
  padding-bottom: clamp(8px, 1dvh, 24px);
}

/* your existing rule added a margin-top on the gallery — move that spacing to the section */
.mission-gallery {
  margin-top: 0; /* was: clamp(0.5rem, 0.5rem + 1dvh, 2rem) */
}

/* keep heading above gallery if anything overlaps */
#mission > h2 {
  position: relative;
  z-index: 2;
  /* optional: background to guarantee readability if images ever sit behind */
  /* background: linear-gradient(#fff 0 0); */
}

/* fluid spacing between heading and gallery */
:root { --stack-gap: clamp(8px, 1.2dvw, 24px); }

.mission-gallery {
  position: relative;
  z-index: 1;
  display: flex;
  gap: var(--stack-gap);
  width: 100%;
  max-width: 1200px;

  /* fluid height, capped */
  height: clamp(320px, 45dvw, 600px);

  margin-inline: auto;
  margin-top: clamp(0.5rem, 0.5rem + 1dvh, 2rem); /* ensures it never hugs the title */
}

.gallery-left,
.gallery-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0; /* prevents overflow on tight viewports */
}

.gallery-left img,
.gallery-right img {
  width: 100%;
  display: block;
  object-fit: cover;
  border-radius: 1rem;
}

/* left image fills full gallery height */
.gallery-left img { height: 100%; }

/* right column splits height evenly with the same gap */
.gallery-right { height: 100%; }
.gallery-right img:first-child {
  height: calc(50% - var(--stack-gap) / 2);
}
.gallery-right img:last-child {
  height: calc(50% - var(--stack-gap) / 2);
  margin-top: var(--stack-gap);
}

/* --- Small screens: stack gallery items vertically --- */
@media (max-width: 767.98px) {
  .mission-gallery {
    flex-direction: column;
    height: auto; /* let items size themselves when stacked */
  }
  .gallery-left img,
  .gallery-right img {
    height: auto;
    aspect-ratio: 16 / 9; /* consistent tiles on mobile, tweak as desired */
  }
  .gallery-right img:last-child { margin-top: var(--stack-gap); }
}

/* Only round non-bleed (right) side */
.rounded-corners-left {
  border-top-right-radius: 1rem;
  border-bottom-right-radius: 1rem;
  overflow: hidden;
}

/* Mirror for right-side bleed */
.rounded-corners-right {
  border-top-left-radius: 1rem;
  border-bottom-left-radius: 1rem;
  overflow: hidden;
}

#rental img {
  aspect-ratio: 20/9;
  width: 100%;
  object-fit: cover;
  object-position: bottom;
  border-radius: 1rem;
}

#list-hero .text-overlay {
  top: 55%;
  left: 10%;
  transform: translateY(-50%); /* optional: centers the text vertically from that 60% point */
  color: white; /* or your desired color */
}

/* Optional spacing tweaks if needed */
#list img {
  object-fit: cover;
  max-height: 50dvh;
  max-width: 50dwh;
}

.default-hero {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  z-index: -2;
}

.default-overlay {
  position: absolute;
  top: 45%;
  left: 0%;
  transform: translateY(-50%);
}

#buyers-bottom .bg-image {
  height: 20vh;
}

/* Applies consistent background and removes decoration */
#buyers 
.accordion-header,
.accordion-button {
  background-color: #EEF2F3 !important;
  box-shadow: none !important;
  outline: none !important;
  border: none !important;
}

/* Prevent state-based background changes */
#buyers 
.accordion-button:not(.collapsed),
.accordion-button:focus,
.accordion-button:hover {
  box-shadow: none !important;
  outline: none !important;
}

.tooltip-box {
  background: rgba(0, 0, 0, 0.85);
  color: #fff;
  padding: 0.75em;
  border-radius: 4px;
  pointer-events: none;
  transform-origin: top left;
  transform: scale(0.8);
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.tooltip.show .tooltip-box {
  transform: scale(1);
  opacity: 1;
}

foreignObject.tooltip {
  background: transparent !important;
  border: none;
}

.tooltip-box {
  background: transparent !important;
  border-radius: 0.5em;
  padding: 0.5em;
  box-sizing: border-box;
  border: none;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  text-align: left;
}

.tooltip {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  display: block;
}

.tooltip.show {
  opacity: 1;
  visibility: visible;
}

#sellers .logo {
  background-size: contain;
  background-repeat: no-repeat;
  aspect-ratio: 1;
  height: 18dvh;
  margin: 5rem auto;
}

#rental-image {
  background-size: cover;
  background-position: bottom center;
  background-repeat: no-repeat;
  aspect-ratio: 16 / 9;
  width: 100%;
  max-width: 100%;
}

.balanced-text {
  text-wrap: balance;
}

.responsive-image-grid {
  display: flex;
  flex-direction: column;
  gap: clamp(0.5rem, 2vw, 2rem); /* Responsive spacing */
}

/* Change to row at md and up */
@media (min-width: 768px) {
  .responsive-image-grid {
    flex-direction: row;
  }
}

.image-item {
  flex: 1;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

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

.break-image {
  position: relative;
  background-image: url();
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  width: 100%;
  aspect-ratio: 16 / 9;
}

@media (max-width: 767.98px) {
  #search-group .custom-vr {
    display: none !important;
  }
}

@media (max-width: 767.98px) {
  #search-group input,
  #search-group select,
  #search-group button {
    width: 100%;
  }
}

#search {
  border-radius: 15px; 
  padding: 2.0rem;
}

/* Ensures noUiSlider fills its container and doesn't collapse in flex rows */
#filterPrice, #filterArea {
  min-width: 0;          /* allow flex children to shrink properly */
}

.noUi-target {
  width: 100%;           /* track spans full container width */
}

/* On small screens, give the slider lane a clear line to render */
@media (max-width: 767.98px) {
  /* the inner row that holds min, slider, max already becomes column;
     make sure it stretches */
  .d-flex.flex-column .noUi-target {
    width: 100%;
  }
}

.baseline-row {
  display: flex;
  align-items: baseline;
}

/* Ensure the image keeps the same rounded-4 look you designed */
.card.rounded-4 .card-img-top.rounded-4 {
  border-radius: 1rem; /* matches .rounded-4 */
}

/* Optional: consistent mobile image height */
@media (max-width: 991.98px) {
  #regionCarousel .card-img-top {
    object-fit: cover;
    height: 220px;
  }
}

/* Move carousel nav handles outside image area on md and below */
@media (max-width: 991.98px) {
  #regionCarousel .carousel-control-prev,
  #regionCarousel .carousel-control-next {
    width: auto; /* shrink default hitbox width */
    top: 50%;
    transform: translateY(-50%);
  }

  #regionCarousel .carousel-control-prev {
    left: -2.5rem; /* push further left outside the image/card */
  }

  #regionCarousel .carousel-control-next {
    right: -2.5rem; /* push further right outside the image/card */
  }
}

/* Style mobile carousel nav handles with medium-gray background */
@media (max-width: 991.98px) {
  #regionCarousel .carousel-control-prev,
  #regionCarousel .carousel-control-next {
    width: auto;
    top: 50%;
    transform: translateY(-50%);
  }

  #regionCarousel .carousel-control-prev {
    left: -2.5rem;
  }

  #regionCarousel .carousel-control-next {
    right: -2.5rem;
  }

  /* Make the icons visible on a medium-gray circle */
  #regionCarousel .carousel-control-prev-icon,
  #regionCarousel .carousel-control-next-icon {
    background-color: rgba(108, 117, 125, 0.85); /* Bootstrap's secondary gray w/ opacity */
    border-radius: 50%;
    background-size: 60%; /* shrink arrow inside circle */
    padding: 0.75rem; /* space for the circle shape */
  }
}

/* Hide mobile carousel indicators */
@media (max-width: 991.98px) {
  #regionCarousel .carousel-indicators {
    display: none !important;
  }
}