/* ============================================================
   FOOTER — Updated full-content layout
   ============================================================ */
.site-footer {
  background-color: #1a1a1a;
  color: #ffffff;
  padding: 0;
  height: auto; /* override fixed height */
}

.footer-inner {
  max-width: 75rem;
  margin: 0 auto;
  padding: 3.5rem 1.5rem 0;
}

.footer-top {
  display: grid;
  grid-template-columns: 14rem 1fr 1fr 1.4fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

@media (max-width: 62rem) {
  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

@media (max-width: 36rem) {
  .footer-top {
    grid-template-columns: 1fr;
  }
}

/* Brand column */
.footer-brand-col {}

.footer-logo {
  max-width: 10rem;
  height: auto;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

/* Links column */
.footer-col-title {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ffffff;
  margin: 0 0 1.25rem 0;
}

.footer-link-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-link-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-link-list li::before {
  content: '›';
  color: #D99E32;
  font-size: 1.1rem;
  line-height: 1;
  flex-shrink: 0;
}

.footer-link-list a {
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.2s ease;
}

.footer-link-list a:hover {
  color: #ffffff;
}

/* Contact column */
.footer-contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.footer-contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.65);
}

.footer-contact-list li i {
  color: #D99E32;
  font-size: 1rem;
  margin-top: 0.1rem;
  flex-shrink: 0;
}

.footer-contact-list a {
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-contact-list a:hover {
  color: #ffffff;
}

/* Social icons row */
.footer-social-row {
  display: flex;
  justify-content: center;
  gap: 0.85rem;
  padding: 2rem 0;
}

.footer-social-btn {
  width: 2.75rem;
  height: 2.75rem;
  border: 1.5px solid rgba(255,255,255,0.25);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.65);
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.25s ease;
}

.footer-social-btn:hover {
  border-color: #D99E32;
  color: #D99E32;
  background: rgba(217,158,50,0.08);
  transform: translateY(-2px);
}

/* Bottom copyright */
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  text-align: center;
  padding: 1.25rem 0 1.5rem;
}

.footer-bottom p {
  margin: 0;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.4);
}

/* ============================================================
   BEST DEALS PAGE — HERO
   ============================================================ */
.bd-hero {
  position: relative;
  background: #1a1a1a;
  overflow: hidden;
  padding: 4.5rem 1.5rem 4rem;
  text-align: center;
}

.bd-hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(217,158,50,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(217,158,50,0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}

.bd-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 65% 70% at 50% 50%, rgba(217,158,50,0.1) 0%, transparent 60%);
  pointer-events: none;
}

.bd-hero-inner {
  position: relative;
  max-width: 56rem;
  margin: 0 auto;
}

.bd-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(217,158,50,0.12);
  border: 1px solid rgba(217,158,50,0.3);
  color: #D99E32;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  margin-bottom: 1.25rem;
}

.bd-hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 0.85rem 0;
  letter-spacing: -0.02em;
}

.bd-hero p {
  font-size: 1rem;
  color: rgba(255,255,255,0.6);
  max-width: 38rem;
  margin: 0 auto 2.25rem;
  line-height: 1.7;
}

.bd-hero-stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
}

.bd-stat {}

.bd-stat-num {
  display: block;
  font-size: 1.65rem;
  font-weight: 700;
  color: #D99E32;
  line-height: 1;
  margin-bottom: 0.3rem;
}

.bd-stat-lbl {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.45);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ── FILTER BAR ─────────────────────────────────────────────── */
.bd-filter-bar {
  background: #111;
  border-bottom: 2px solid #D99E32;
  padding: 0.75rem 1.5rem;
  position: sticky;
  top: 4.5rem;
  z-index: 200;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}

@media (max-width: 62rem) {
  .bd-filter-bar {
    top: 4.25rem;
  }
}

@media (max-width: 36rem) {
  .bd-filter-bar {
    top: 4rem;
  }
}

.bd-filter-inner {
  max-width: 90rem;
  margin: 0 auto;
}

.bd-filter-form {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.bd-filter-keyword {
  flex: 1;
  min-width: 14rem;
  position: relative;
}

.bd-filter-keyword i {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  color: #6b7280;
  font-size: 0.85rem;
  pointer-events: none;
}

.bd-filter-keyword input {
  width: 100%;
  padding: 0.6rem 1rem 0.6rem 2.3rem;
  border: 1.5px solid #3a3a3a;
  border-radius: 0.4rem;
  background: #2a2a2a;
  color: #fff;
  font-size: 0.875rem;
  outline: none;
  transition: border-color 0.2s;
}

.bd-filter-keyword input::placeholder { color: #6b7280; }
.bd-filter-keyword input:focus { border-color: #D99E32; }

.bd-cat-pills {
  display: flex;
  gap: 0.35rem;
}

.bd-cat-pill {
  padding: 0.5rem 0.9rem;
  border: 1.5px solid #3a3a3a;
  border-radius: 0.4rem;
  background: #2a2a2a;
  color: #9ca3af;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  text-decoration: none;
}

.bd-cat-pill:hover { border-color: #D99E32; color: #D99E32; text-decoration: none; }
.bd-cat-pill.active { background: #D99E32; border-color: #D99E32; color: #1a1a1a; text-decoration: none; }

.bd-sort-select {
  padding: 0.55rem 2rem 0.55rem 0.75rem;
  border: 1.5px solid #3a3a3a;
  border-radius: 0.4rem;
  background: #2a2a2a;
  color: #d1d5db;
  font-size: 0.8rem;
  appearance: none;
  -webkit-appearance: none;
  outline: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='7'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%236b7280' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.65rem center;
  transition: border-color 0.2s;
}

.bd-sort-select:focus { border-color: #D99E32; }

.bd-search-btn {
  padding: 0.55rem 1.4rem;
  background: #D99E32;
  color: #1a1a1a;
  border: none;
  border-radius: 0.4rem;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap;
  transition: background 0.2s, transform 0.15s;
}

.bd-search-btn:hover { background: #c08822; transform: translateY(-1px); }

@media (max-width: 48rem) {
  .bd-cat-pills { display: none; }
}

/* ── PAGE BODY ──────────────────────────────────────────────── */
.bd-page-wrap {
  background: #f3f4f6;
  min-height: 60vh;
  padding: 1.75rem 1.5rem 4rem;
}

.bd-page-inner {
  max-width: 90rem;
  margin: 0 auto;
}

.bd-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.bd-breadcrumb {
  font-size: 0.82rem;
  margin: 0;
  --bs-breadcrumb-divider-color: #9ca3af;
  --bs-breadcrumb-item-active-color: #6b7280;
}



.bd-result-count {
  font-size: 0.85rem;
  color: #6b7280;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* ── GRID ───────────────────────────────────────────────────── */
.bd-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-bottom: 2rem;
}

@media (max-width: 80rem) { .bd-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 36rem) { .bd-grid { grid-template-columns: 1fr; } }

/* ── CARD ───────────────────────────────────────────────────── */
.bd-card {
  background: #fff;
  border-radius: 0.6rem;
  overflow: hidden;
  border: 1px solid #e5e7eb;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.bd-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.1);
}

.bd-card-img {
  position: relative;
  padding-bottom: 62%;
  background: #d1d5db;
  overflow: hidden;
  flex-shrink: 0;
}

.bd-card-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.bd-card:hover .bd-card-img img { transform: scale(1.04); }

.bd-card-img-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #d1d5db, #e5e7eb);
  color: #9ca3af;
  font-size: 2.5rem;
}

.bd-card-badges {
  position: absolute;
  top: 0.6rem;
  left: 0.6rem;
  display: flex;
  gap: 0.3rem;
  flex-wrap: wrap;
}

.bd-card-price-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, transparent 100%);
  padding: 1.5rem 0.75rem 0.65rem;
}

.bd-card-price {
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 1px 4px rgba(0,0,0,0.4);
}

.bd-card-body {
  padding: 1rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.bd-card-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 0.3rem 0;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.bd-card-location {
  font-size: 0.78rem;
  color: #6b7280;
  margin: 0 0 0.7rem 0;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.bd-card-specs {
  display: flex;
  gap: 0.75rem;
  padding: 0.55rem 0;
  border-top: 1px solid #f3f4f6;
  border-bottom: 1px solid #f3f4f6;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}

.bd-card-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.bd-card-dev {
  font-size: 0.72rem;
  color: #9ca3af;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ── NO RESULTS ─────────────────────────────────────────────── */
.bd-no-results {
  text-align: center;
  padding: 4rem 2rem;
  background: #fff;
  border-radius: 0.75rem;
  border: 1px solid #e5e7eb;
  margin-bottom: 2rem;
}

.bd-no-results-icon {
  width: 4.5rem;
  height: 4.5rem;
  background: #f3f4f6;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  font-size: 1.75rem;
  color: #9ca3af;
}

.bd-no-results h3 { font-size: 1.25rem; color: #1a1a1a; margin: 0 0 0.5rem 0; }
.bd-no-results p  { color: #6b7280; margin: 0 0 1.5rem 0; }

/* ── CTA BANNER ─────────────────────────────────────────────── */
.bd-cta-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  background: #1a1a1a;
  border-radius: 0.75rem;
  padding: 2rem 2.5rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.bd-cta-text h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 0.35rem 0;
}

.bd-cta-text p {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.55);
  margin: 0;
}

/* ============================================================
   404 PAGE
   ============================================================ */
.notfound-wrap {
  min-height: 75vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 1.5rem;
  overflow: hidden;
  background: #f8f9fa;
}

/* Animated background */
.notfound-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.notfound-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(217,158,50,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(217,158,50,0.05) 1px, transparent 1px);
  background-size: 48px 48px;
}

.notfound-circle {
  position: absolute;
  border-radius: 50%;
  opacity: 0.06;
}

.notfound-circle-1 {
  width: 40rem;
  height: 40rem;
  background: #D99E32;
  top: -15rem;
  right: -10rem;
  animation: floatCircle 12s ease-in-out infinite;
}

.notfound-circle-2 {
  width: 25rem;
  height: 25rem;
  background: #1a1a1a;
  bottom: -8rem;
  left: -6rem;
  animation: floatCircle 16s ease-in-out infinite reverse;
}

@keyframes floatCircle {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(1.5rem); }
}

/* Content */
.notfound-inner {
  position: relative;
  text-align: center;
  max-width: 42rem;
  width: 100%;
}

/* Big 404 display */
.notfound-code {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.notfound-code span {
  font-size: clamp(4rem, 12vw, 8rem);
  font-weight: 900;
  color: #1a1a1a;
  line-height: 1;
  letter-spacing: -0.04em;
}

.notfound-code-house {
  width: clamp(5rem, 14vw, 9rem);
  height: clamp(5rem, 14vw, 9rem);
  background: #D99E32;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1a1a1a;
  animation: housePulse 3s ease-in-out infinite;
}

.notfound-code-house i {
  font-size: clamp(2.5rem, 7vw, 4.5rem);
}

@keyframes housePulse {
  0%, 100% { transform: scale(1) rotate(-2deg); }
  50%       { transform: scale(1.05) rotate(2deg); }
}

.notfound-title {
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 0.85rem 0;
}

.notfound-subtitle {
  font-size: 1rem;
  color: #6b7280;
  line-height: 1.7;
  margin: 0 0 2rem 0;
}

/* Search */
.notfound-search-form {
  margin-bottom: 2rem;
}

.notfound-search-wrap {
  display: flex;
  align-items: center;
  background: #fff;
  border: 2px solid #e5e7eb;
  border-radius: 0.6rem;
  overflow: hidden;
  transition: border-color 0.2s;
  box-shadow: 0 4px 16px rgba(0,0,0,0.07);
}

.notfound-search-wrap:focus-within {
  border-color: #D99E32;
}

.notfound-search-icon {
  padding: 0 0 0 1rem;
  color: #9ca3af;
  font-size: 0.95rem;
  flex-shrink: 0;
}

.notfound-search-input {
  flex: 1;
  padding: 0.85rem 1rem;
  border: none;
  outline: none;
  font-size: 0.9rem;
  color: #1a1a1a;
  background: transparent;
}

.notfound-search-input::placeholder { color: #9ca3af; }

.notfound-search-btn {
  padding: 0.85rem 1.5rem;
  background: #D99E32;
  color: #1a1a1a;
  border: none;
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
  flex-shrink: 0;
}

.notfound-search-btn:hover { background: #c08822; }

/* Quick links */
.notfound-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
}

.notfound-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 1.1rem;
  border: 1.5px solid #e5e7eb;
  border-radius: 0.4rem;
  background: #fff;
  color: #374151;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.notfound-link:hover {
  border-color: #D99E32;
  color: #D99E32;
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(217,158,50,0.15);
}

.notfound-link-primary {
  background: #1a1a1a;
  border-color: #1a1a1a;
  color: #D99E32 !important;
}

.notfound-link-primary:hover {
  background: #2c2c2c;
  border-color: #2c2c2c;
  color: #D99E32 !important;
}

/* ============================================================
   PROPERTY DETAIL PAGE  —  property.css
   Add to includes/ alongside style.css and additions.css
   ============================================================ */

/* ── PAGE WRAP ────────────────────────────────────────────── */
.prop-wrap {
  background: #f3f4f6;
  min-height: 60vh;
  padding: 1.75rem 1.5rem 5rem;
}

.prop-inner {
  max-width: 75rem;
  margin: 0 auto;
}

/* ── HEADER ROW ───────────────────────────────────────────── */
.prop-header-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.prop-header-left {
  flex: 1;
  min-width: 0;
}

.prop-title {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 0.75rem 0;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.prop-badges {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-bottom: 0.65rem;
}

.prop-badge-type {
  background: #374151;
  color: #ffffff;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.28rem 0.55rem;
  border-radius: 0.25rem;
}

.prop-address-line {
  font-size: 0.9rem;
  color: #6b7280;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.prop-address-line i {
  color: #D99E32;
  font-size: 0.95rem;
}

.prop-header-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.prop-price {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 800;
  color: #1a1a1a;
  letter-spacing: -0.03em;
  line-height: 1;
}

.prop-print-btn {
  width: 2.75rem;
  height: 2.75rem;
  background: #ffffff;
  border: 1.5px solid #e5e7eb;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #374151;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.prop-print-btn:hover {
  background: #1a1a1a;
  border-color: #1a1a1a;
  color: #D99E32;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

/* ── GALLERY ──────────────────────────────────────────────── */
.prop-gallery {
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  grid-template-rows: auto;
  gap: 0.5rem;
  border-radius: 0.75rem;
  overflow: hidden;
  margin-bottom: 1.5rem;
  background: #1a1a1a;
  max-height: 32rem;
}

.prop-gallery-main {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  background: #2a2a2a;
}

.prop-gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.prop-gallery-main:hover img {
  transform: scale(1.03);
}

.prop-gallery-main-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0);
  color: #fff;
  font-size: 1.5rem;
  opacity: 0;
  transition: opacity 0.25s ease, background 0.25s ease;
}

.prop-gallery-main:hover .prop-gallery-main-overlay {
  opacity: 1;
  background: rgba(0,0,0,0.3);
}

.prop-gallery-thumbs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 0.5rem;
}

.prop-gallery-thumb {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  background: #2a2a2a;
}

.prop-gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.prop-gallery-thumb:hover img {
  transform: scale(1.05);
}

.prop-gallery-more-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

@media (max-width: 48rem) {
  .prop-gallery {
    grid-template-columns: 1fr;
    max-height: none;
  }

  .prop-gallery-main {
    height: 18rem;
    min-height: 18rem;
  }

  .prop-gallery-thumbs {
    grid-template-rows: 10rem;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    overflow-x: auto;
    width: 100%;
  }

  .prop-gallery-thumb {
    min-height: 0;
    min-width: 0;
  }

  .prop-gallery-main,
  .prop-gallery-thumb {
    touch-action: manipulation;
  }

  .prop-gallery-main img,
  .prop-gallery-main video,
  .prop-gallery-thumb img,
  .prop-gallery-thumb video {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}

@media (max-width: 36rem) {
  .prop-gallery-thumbs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: 8rem;
  }
}

/* ── QUICK SPECS BAR ──────────────────────────────────────── */
.prop-specs-bar {
  display: flex;
  gap: 0;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 0.6rem;
  overflow: hidden;
  margin-bottom: 1.75rem;
  flex-wrap: wrap;
}

.prop-spec-item {
  flex: 1;
  min-width: 7rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  padding: 1.1rem 0.75rem;
  border-right: 1px solid #e5e7eb;
  text-align: center;
  transition: background 0.2s;
}

.prop-spec-item:last-child {
  border-right: none;
}

.prop-spec-item:hover {
  background: #fafaf8;
}

.prop-spec-item i {
  font-size: 1.3rem;
  color: #374151;
  margin-bottom: 0.1rem;
}

.prop-spec-val {
  font-size: 0.95rem;
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1.25;
}

.prop-spec-lbl {
  font-size: 0.72rem;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

@media (max-width: 36rem) {
  .prop-spec-item {
    flex: 0 0 50%;
    border-bottom: 1px solid #e5e7eb;
  }
}

/* ── BODY GRID ────────────────────────────────────────────── */
.prop-body-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

.prop-main-col {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* ── SECTIONS ─────────────────────────────────────────────── */
.prop-section {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  padding: 2rem;
  margin-bottom: 1.25rem;
}

.prop-section:last-child {
  margin-bottom: 0;
}

.prop-section-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 1.5rem 0;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid #f3f4f6;
}

.prop-section-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid #f3f4f6;
}

.prop-section-title-row .prop-section-title {
  margin: 0;
  padding: 0;
  border: none;
}

/* ── DESCRIPTION ──────────────────────────────────────────── */
.prop-description {
  font-size: 0.95rem;
  line-height: 1.85;
  color: #374151;
}

/* ── ADDRESS SECTION ──────────────────────────────────────── */
.prop-maps-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 1.1rem;
  background: #D99E32;
  color: #1a1a1a;
  border-radius: 0.4rem;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.prop-maps-btn:hover {
  background: #c08822;
  color: #1a1a1a;
  text-decoration: none;
  transform: translateY(-1px);
}

.prop-address-table {
  display: flex;
  flex-direction: column;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  overflow: hidden;
}

.prop-addr-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.85rem 1.1rem;
  border-bottom: 1px solid #f3f4f6;
  font-size: 0.9rem;
  gap: 1rem;
}

.prop-addr-row:last-child {
  border-bottom: none;
}

.prop-addr-row span:first-child {
  font-weight: 600;
  color: #374151;
  flex-shrink: 0;
}

.prop-addr-row span:last-child {
  color: #6b7280;
  text-align: right;
}

/* ── DETAILS TABLE ────────────────────────────────────────── */
.prop-updated {
  font-size: 0.8rem;
  color: #9ca3af;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap;
}

.prop-updated i {
  color: #D99E32;
}

.prop-details-table {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 0.6rem;
  overflow: hidden;
}

.prop-detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.85rem 1.25rem;
  border-bottom: 1px solid #e5e7eb;
  font-size: 0.9rem;
  gap: 1rem;
  transition: background 0.15s;
}

.prop-detail-row:last-child {
  border-bottom: none;
}

.prop-detail-row:hover {
  background: #f3f4f6;
}

.prop-detail-row span:first-child {
  font-weight: 600;
  color: #374151;
  flex-shrink: 0;
}

.prop-detail-row span:last-child {
  color: #1a1a1a;
  font-weight: 500;
  text-align: right;
}

/* ── FEATURES / AMENITIES ─────────────────────────────────── */
.prop-features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem 1rem;
}

.prop-feature-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.875rem;
  color: #374151;
  font-weight: 500;
}

.prop-feature-item i {
  color: #374151;
  font-size: 1rem;
  flex-shrink: 0;
}

@media (max-width: 48rem) {
  .prop-features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 30rem) {
  .prop-features-grid {
    grid-template-columns: 1fr;
  }
}

/* ── FORM CARD (Tour + Enquire) ───────────────────────────── */
.prop-form-card {
  /* inherits .prop-section styles */
}

.prop-form-card-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 1.5rem 0;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid #f3f4f6;
}

.prop-form-tabs {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  padding: 0.3rem;
  margin-bottom: 1.25rem;
}

.prop-form-tab-btn {
  border: none;
  background: transparent;
  color: #4b5563;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

.prop-form-tab-btn:hover {
  color: #1a1a1a;
}

.prop-form-tab-btn.active {
  background: #ffffff;
  color: #1a1a1a;
  box-shadow: 0 3px 10px rgba(17, 24, 39, 0.12);
}

.prop-form-tab-panels {
  position: relative;
}

.prop-form-tab-panel {
  opacity: 0;
  transform: translateY(0.4rem);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.prop-form-tab-panel.is-active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* Form layout helpers */
.prop-form-row-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1rem;
}

.prop-form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

@media (max-width: 48rem) {
  .prop-form-row-3 { grid-template-columns: 1fr; }
  .prop-form-row-2 { grid-template-columns: 1fr; }
}

.prop-form-sub-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: #374151;
  margin: 1.25rem 0 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Fields */
.prop-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.prop-field:last-of-type {
  margin-bottom: 0;
}

.prop-field label {
  font-size: 0.8rem;
  font-weight: 600;
  color: #374151;
}

.prop-field input,
.prop-field select,
.prop-field textarea {
  padding: 0.65rem 0.9rem;
  border: 1.5px solid #e0e0e0;
  border-radius: 0.4rem;
  font-size: 0.875rem;
  color: #1a1a1a;
  background: #fafafa;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  font-family: inherit;
  appearance: none;
  -webkit-appearance: none;
}

.prop-field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='7'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%236b7280' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  background-color: #fafafa;
  padding-right: 2.2rem;
}

.prop-field input:focus,
.prop-field select:focus,
.prop-field textarea:focus {
  border-color: #D99E32;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(217,158,50,0.1);
}

.prop-field input::placeholder,
.prop-field textarea::placeholder { color: #b0b7c3; }

.prop-field textarea {
  resize: vertical;
  min-height: 7rem;
}

.prop-field input.is-error,
.prop-field select.is-error,
.prop-field textarea.is-error {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239,68,68,0.08);
}

.prop-field.has-error .field-error-msg,
.prop-form-consent.has-error .field-error-msg {
  display: block;
}

/* Consent row */
.prop-form-consent {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  margin: 1.1rem 0;
  font-size: 0.85rem;
  color: #374151;
  line-height: 1.55;
}

.prop-form-consent input[type="checkbox"] {
  margin-top: 0.15rem;
  accent-color: #D99E32;
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  cursor: pointer;
}

.prop-form-consent label {
  cursor: pointer;
}

.prop-form-consent a {
  color: #D99E32;
  font-weight: 600;
  text-decoration: none;
}

.prop-form-consent a:hover { text-decoration: underline; }

/* Submit buttons */
.prop-submit-btn {
  padding: 0.8rem 1.75rem;
  background: #1a1a1a;
  color: #ffffff;
  border: 2px solid #1a1a1a;
  border-radius: 0.4rem;
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: 0.02em;
  transition: all 0.25s ease;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.prop-submit-btn:hover {
  background: #D99E32;
  border-color: #D99E32;
  color: #1a1a1a;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(217,158,50,0.3);
}

.prop-submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.prop-submit-btn-dark {
  background: #1a1a1a;
  border-color: #1a1a1a;
  color: #ffffff;
}

/* ── SIMILAR LISTINGS ─────────────────────────────────────── */
.prop-similar-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.1rem;
}

@media (min-width: 75rem) {
  .prop-similar-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 36rem) {
  .prop-similar-grid {
    grid-template-columns: 1fr;
  }
}

.prop-similar-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 0.6rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.prop-similar-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.1);
}

.prop-similar-img {
  position: relative;
  padding-bottom: 66%;
  background: #d1d5db;
  overflow: hidden;
}

.prop-similar-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.prop-similar-card:hover .prop-similar-img img {
  transform: scale(1.05);
}

.prop-similar-img-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9ca3af;
  font-size: 2rem;
}

.prop-similar-badges {
  position: absolute;
  top: 0.55rem;
  left: 0.55rem;
  display: flex;
  gap: 0.3rem;
  flex-wrap: wrap;
}

.prop-similar-price {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.75), transparent);
  padding: 1.2rem 0.65rem 0.55rem;
  color: #fff;
  font-size: 1.1rem;
  font-weight: 700;
  text-shadow: 0 1px 4px rgba(0,0,0,0.4);
}

.prop-similar-expand {
  position: absolute;
  bottom: 0.55rem;
  right: 0.55rem;
  width: 2rem;
  height: 2rem;
  background: rgba(0,0,0,0.55);
  color: #fff;
  border-radius: 0.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  text-decoration: none;
  transition: background 0.2s;
  backdrop-filter: blur(3px);
}

.prop-similar-expand:hover {
  background: rgba(217,158,50,0.9);
  color: #1a1a1a;
}

.prop-similar-body {
  padding: 0.85rem 0.9rem 0.5rem;
  flex: 1;
}

.prop-similar-body h3 {
  font-size: 0.9rem;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 0.35rem 0;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.prop-similar-loc {
  font-size: 0.75rem;
  color: #6b7280;
  display: flex;
  align-items: center;
  gap: 0.2rem;
  margin: 0 0 0.6rem 0;
}

.prop-similar-specs {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
  font-size: 0.75rem;
  color: #374151;
  font-weight: 600;
  padding: 0.5rem 0;
  border-top: 1px solid #f3f4f6;
  border-bottom: 1px solid #f3f4f6;
  margin-bottom: 0.5rem;
}

.prop-similar-specs span {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.prop-similar-specs i { color: #6b7280; }

.prop-similar-type {
  font-size: 0.68rem;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
  margin: 0;
}

.prop-similar-footer {
  padding: 0 0.9rem 0.9rem;
  display: flex;
  justify-content: flex-end;
}

/* ── LIGHTBOX ─────────────────────────────────────────────── */
.prop-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.95);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  padding: 1rem;
}

.prop-lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.prop-lightbox-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 2.75rem;
  height: 2.75rem;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.2s;
  z-index: 10;
}

.prop-lightbox-close:hover {
  background: rgba(255,255,255,0.25);
  transform: rotate(90deg);
}

.prop-lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 3rem;
  height: 3rem;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  color: #fff;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  z-index: 10;
  flex-shrink: 0;
}

.prop-lightbox-nav:hover {
  background: rgba(255,255,255,0.25);
}

.prop-lightbox-prev { left: 1.25rem; }
.prop-lightbox-next { right: 1.25rem; }

.prop-lightbox-img-wrap {
  position: relative;
  max-width: min(90vw, 70rem);
  max-height: 75vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.prop-lightbox-img-wrap img {
  max-width: 100%;
  max-height: 75vh;
  object-fit: contain;
  border-radius: 0.4rem;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.prop-lightbox-counter {
  position: absolute;
  bottom: -2rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.6);
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
}

.prop-lightbox-thumbs {
  display: flex;
  gap: 0.5rem;
  margin-top: 3rem;
  overflow-x: auto;
  max-width: min(90vw, 60rem);
  padding: 0.25rem;
  scrollbar-width: none;
}

.prop-lightbox-thumbs::-webkit-scrollbar { display: none; }

.prop-lightbox-thumb-btn {
  flex-shrink: 0;
  width: 4rem;
  height: 3rem;
  border-radius: 0.3rem;
  overflow: hidden;
  border: 2px solid rgba(255,255,255,0.2);
  background: none;
  cursor: pointer;
  padding: 0;
  transition: border-color 0.2s;
}

.prop-lightbox-thumb-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.prop-lightbox-thumb-btn.active {
  border-color: #D99E32;
}

.prop-lightbox-thumb-btn:hover {
  border-color: rgba(255,255,255,0.6);
}

/* ── PRINT STYLES ─────────────────────────────────────────── */
@media print {
  .prop-lightbox,
  .prop-print-btn,
  .prop-form-card,
  .prop-similar-grid,
  nav.navbar,
  .site-footer,
  .back-to-top,
  #loginModalOverlay {
    display: none !important;
  }

  .prop-wrap {
    background: white;
    padding: 0;
  }

  .prop-section {
    border: 1px solid #ccc;
    break-inside: avoid;
  }
}

/* ============================================================
   VIDEO GALLERY STYLES
   ============================================================ */

/* Video container in gallery */
.prop-gallery video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000;
  display: block;
}

/* Video thumbnail styling */
.prop-gallery-thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Lightbox video styling */
#propLightboxImg video {
  max-width: 100%;
  max-height: 100%;
  background: #000;
}

/* Lightbox thumbnail buttons with video support */
.prop-lightbox-thumb-btn video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ============================================================
   LISTING CARD VIDEO STYLES
   ============================================================ */

/* Video in featured listings carousel */
.listing-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000;
  display: block;
  z-index: 0;
}

.listing-video-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.3);
  pointer-events: none;
  z-index: 1;
}

.listing-video-overlay i {
  font-size: 3rem;
  color: #D99E32;
  filter: drop-shadow(0 1px 4px rgba(0, 0, 0, 0.5));
}

/* ============================================================
   SITEWIDE RESPONSIVE STABILITY OVERRIDES
   ============================================================ */
html {
  overflow-x: hidden;
}

body {
  max-width: 100%;
  overflow-x: visible;
}

body {
  min-width: 320px;
}

.site-content {
  width: 100%;
  overflow-x: clip;
  overflow-y: visible;
}
/*
.container,
.featured-listings-container,
.explore-cities-layout,
.how-it-works-inner,
.home-inquiry-inner,
.footer-inner,
.bd-page-inner,
.fap-page-inner,
.prop-inner,
.article-wrap,
.about-section-inner,
.contact-inner,
.enlist-inner,
.developer-page-inner {
  width: min(100%, var(--content-max, 75rem));
  max-width: var(--content-max, 75rem);
}

.featured-listings-container {
  --content-max: 72rem;
}

.explore-cities-layout,
.bd-page-inner,
.fap-page-inner {
  --content-max: 90rem;
}

.prop-inner,
.footer-inner {
  --content-max: 75rem;
}

.featured-listings-section,
.explore-cities-section,
.home-inquiry-section {
  width: 100%;
  max-width: 100%;
  margin-left: 0;
  margin-right: 0;
  left: auto;
  right: auto;
}*/

@media (min-width: 48.0625rem) {
  .featured-listings-section {
    background-color: transparent;
    padding-block: 2rem 1.75rem;
  }

  .listings-carousel-wrapper::before {
    background: linear-gradient(to right,
      rgba(247, 248, 249, 1) 0%,
      rgba(247, 248, 249, 0.94) 24%,
      rgba(247, 248, 249, 0.68) 52%,
      rgba(247, 248, 249, 0.18) 82%,
      transparent 100%);
  }

  .listings-carousel-wrapper::after {
    background: linear-gradient(to left,
      rgba(247, 248, 249, 1) 0%,
      rgba(247, 248, 249, 0.94) 24%,
      rgba(247, 248, 249, 0.68) 52%,
      rgba(247, 248, 249, 0.18) 82%,
      transparent 100%);
  }
}
/*
.highlights-carousel {
  height: clamp(22rem, 52vw, 37.125rem);
}*/

.highlight-content {
  max-width: min(36rem, 100%);
}

.highlight-title,
.featured-listings-header h2,
.explore-cities-intro h2,
.how-it-works-inner h2,
.bd-hero h1 {
  overflow-wrap: anywhere;
}

.listings-carousel-wrapper {
  margin-inline: 0;
  padding-inline: clamp(1rem, 6vw, 6rem);
}

.listings-carousel-wrapper::before,
.listings-carousel-wrapper::after {
  width: clamp(1rem, 6vw, 6rem);
}

.listing-card,
.bd-card,
.fap-card,
.prop-section,
.about-team-card,
.about-vision-card,
.how-it-works-card,
.enlist-sidebar-card {
  min-width: 0;
}

.listing-title,
.listing-price,
.bd-card-title,
.bd-card-price,
.fap-card-title,
.fap-card-price,
.fap-list-price,
.prop-title,
.prop-price {
  overflow-wrap: anywhere;
}

.fap-search-row1,
.bd-filter-form {
  min-width: 0;
}

.fap-keyword-wrap,
.bd-filter-keyword {
  min-width: min(100%, 14rem);
}

.fap-results-controls,
.bd-page-header,
.prop-header-actions {
  flex-wrap: wrap;
}

.listing-modal-content {
  width: min(100%, 75rem);
  max-height: calc(100vh - 4rem);
  box-sizing: border-box;
}

.listing-modal {
  overflow: auto;
}

.listing-modal-body {
  display: flex;
  height: 100%;
  min-height: 0;
}

.listing-modal-image-section {
  flex: 1.5 1 0;
  position: relative;
  overflow: hidden;
  min-height: 18rem;
  max-height: none;
  min-height: 0;
}

.listing-modal-image-container {
  width: 100%;
  height: 100%;
  padding: 1rem;
  box-sizing: border-box;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.listing-modal-image-container img,
.listing-modal-image-container video {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}

@media (max-width: 48rem) {
  .listing-modal-image-section {
    flex: none;
    height: min(45vh, 26rem);
    max-height: none;
  }
}

#listingsCarousel,
.listings-carousel-track {
  touch-action: pan-y;
}

.listings-carousel-track {
  cursor: grab;
}

.listings-carousel-track:active {
  cursor: grabbing;
}

/* Prevent text/image selection inside cards so desktop drag is never interrupted */
.listing-card-slide,
.listing-card {
  user-select: none;
  -webkit-user-select: none;
}

.listing-card img,
.listing-image {
  -webkit-user-drag: none;
  user-drag: none;
  pointer-events: none;
}

.listing-image {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 0;
}

.listing-image img,
.listing-image video {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: cover;
  display: block;
}

@media (max-width: 48rem) {
  .listing-image-wrapper {
    padding-bottom: 70%;
  }
}

@media (min-width: 48.0625rem) {
  .listings-carousel-wrapper {
    padding-inline: 6rem;
  }

  .listings-carousel-wrapper::before,
  .listings-carousel-wrapper::after {
    width: 6rem;
  }

  .listing-card-slide {
    flex: 0 0 19rem;
    min-width: 19rem;
  }
}

@media (max-width: 75rem) {
  nav.navbar .navbar-nav {
    gap: 0.25rem;
  }

  nav.navbar .nav-link {
    font-size: 0.82rem;
  }
}

@media (max-width: 62rem) {
  nav.navbar .container-fluid {
    padding-inline: 0;
  }

  nav.navbar .navbar-collapse {
    padding-top: 0.75rem;
  }

  nav.navbar .navbar-nav {
    width: 100%;
  }

  nav.navbar .nav-item,
  nav.navbar .nav-link {
    width: 100%;
  }

  nav.navbar .dropdown-menu {
    width: 100%;
    position: static;
  }

  .featured-listings-container,
  .fap-page-wrap,
  .bd-page-wrap,
  .prop-wrap,
  .enlist-page-wrap,
  .contact-page-wrap {
    padding-inline: 1rem;
  }

  .home-inquiry-section {
    min-height: auto;
    background-attachment: scroll;
  }

  .home-inquiry-card,
  .listing-modal-body {
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .listing-modal-body {
    height: auto;
    max-height: 100vh;
    overflow-y: auto;
  }

  .listing-modal-image-section {
    min-height: 18rem;
    height: 45vh;
  }

  .fap-search-row1,
  .bd-filter-form {
    flex-wrap: wrap;
  }

  .fap-keyword-wrap,
  .bd-filter-keyword,
  .fap-search-btn,
  .bd-search-btn,
  .bd-sort-select {
    flex: 1 1 100%;
    width: 100%;
  }

  .fap-adv-toggle {
    flex: 1 1 auto;
    justify-content: center;
  }

  .fap-adv-panel.open {
    max-height: 42rem;
  }
}

@media (max-width: 48rem) {
  hlogo {
    min-height: 5rem;
  }

  .featured-listings-section {
    background-color: #ebebeb;
  }

  .highlights-carousel {
    height: clamp(24rem, 88vh, 34rem);
  }

  .highlight-overlay {
    align-items: flex-end;
    padding: 4.5rem 1rem 3.5rem;
  }

  .highlight-meta,
  .listing-price-overlay,
  .bd-hero-stats,
  .bd-cta-banner,
  .prop-addr-row,
  .prop-detail-row,
  .fap-card-footer,
  .bd-card-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .featured-listings-container {
    padding-inline: 1rem;
  }

  .listings-carousel-wrapper {
    padding-inline: 0;
  }


  .listings-carousel-wrapper::before,
  .listings-carousel-wrapper::after {
    display: none;
  }

  .listing-card-slide {
    flex-basis: 100%;
    min-width: 100%;
  }

  .explore-cities-section,
  .how-it-works-section,
  .home-inquiry-section,
  .bd-hero,
  .bd-page-wrap,
  .fap-page-wrap,
  .prop-wrap {
    padding-inline: 1rem;
  }

  .footer-inner {
    padding-inline: 1rem;
  }

  .footer-social-row {
    flex-wrap: wrap;
  }

  .fap-list-card {
    display: flex;
    flex-direction: column;
  }

  .fap-list-img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
  }

  .fap-results-controls,
  .fap-sort-select,
  .fap-view-toggle {
    width: 100%;
  }

  .fap-view-btn {
    flex: 1;
    justify-content: center;
  }

  .prop-section {
    padding: 1.25rem;
  }

  .prop-form-tabs {
    display: flex;
    width: 100%;
    border-radius: 0.6rem;
  }

  .prop-form-tab-btn {
    flex: 1;
    padding-inline: 0.5rem;
  }
}

@media (max-width: 36rem) {
  .container {
    padding-inline: 1rem;
  }

  .highlight-title {
    font-size: 1.15rem;
  }

  .highlight-meta .price,
  .listing-price,
  .bd-card-price,
  .fap-card-price {
    font-size: 1.1rem;
  }

  .featured-listings-nav {
    width: 100%;
    gap: 0.5rem;
  }

  .featured-listings-nav button {
    flex: 1;
    padding-inline: 0.5rem;
  }

  .explore-city-card {
    min-height: 18rem;
  }

  .explore-city-content {
    padding: 1.25rem 0.85rem 1rem;
  }

  .listing-modal-details-section {
    padding: 1.25rem 1rem;
  }

  .modal-specs,
  .prop-spec-bar,
  .prop-features-grid,
  .prop-similar-grid {
    grid-template-columns: 1fr;
  }

  .prop-lightbox-nav {
    width: 2.4rem;
    height: 2.4rem;
  }

  .prop-lightbox-prev {
    left: 0.5rem;
  }

  .prop-lightbox-next {
    right: 0.5rem;
  }
}
