/* Realty8 - Color Theme & Styles */

:root {
  /* Refined global color palette */
  --bg-light: #f7f4ee;
  --bg-warm: #f2ede3;
  --primary: #a8841f;
  --secondary: #8d6c1c;
  --dark: #1f2a3a;
  --text: #2f3b4d;
  --text-muted: #6a7485;
  --gold: #a8841f;
  --brand-red: var(--secondary);
  --admin-gradient: linear-gradient(135deg, var(--dark) 0%, var(--brand-red) 100%);
  --glass-bg: rgba(255,255,255,0.06);
  --section-radius: 0;
  --card-radius: 14px;
  --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text);
  background: var(--bg-light);
  min-height: 100vh;
  font-size: 0.95rem;
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-weight: 700;
  color: var(--dark);
  letter-spacing: -0.01em;
}

p {
  color: var(--text);
  line-height: 1.7;
}

/* ================================
   Scroll Reveal Animations
   ================================ */
.reveal {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}
.reveal.reveal-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children */
.reveal-stagger > .reveal,
.reveal-stagger > .reveal-left,
.reveal-stagger > .reveal-right,
.reveal-stagger > .reveal-scale {
  transition-delay: calc(var(--reveal-i, 0) * 0.12s);
}

/* Direction variants */
.reveal-left {
  opacity: 0;
  transform: translateX(-60px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}
.reveal-left.reveal-visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(60px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}
.reveal-right.reveal-visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}
.reveal-scale.reveal-visible {
  opacity: 1;
  transform: scale(1);
}

/* Parallax depth on hero */
.parallax-bg {
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
}
@media (max-width: 991.98px) {
  .parallax-bg {
    background-attachment: scroll;
  }
}

/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-left, .reveal-right, .reveal-scale {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .hero-fullscreen {
    background-attachment: scroll !important;
  }
}

/* ================================
   Navbar - Sticky, Transparent → Solid on scroll
   ================================ */

html,
body {
  overflow-x: hidden;
  max-width: 100%;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--navbar-h, 96px);
}

:root {
  --navbar-h: 96px;
}

.navbar-spacer {
  height: var(--navbar-h);
}

body.page-home .navbar-spacer {
  height: 0;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1030;
  background-color: transparent;
  background: transparent;
  box-shadow: none;
  transition: background-color 0.35s ease, box-shadow 0.35s ease, padding 0.3s ease;
  padding: 0;
  overflow: visible !important;
}

.site-header .navbar {
  background: transparent !important;
  background-color: transparent !important;
  height: 96px;
  overflow: visible !important;
}

.site-header .navbar .container {
  height: 96px;
  overflow: visible !important;
  align-items: center;
}

.navbar {
  overflow: visible !important;
}

.navbar-collapse {
  overflow: visible !important;
}

/* Transparent style at top of page (home) */
.site-header.navbar-transparent {
  background: transparent !important;
  background-color: transparent !important;
  box-shadow: none !important;
}

/* Solid gradient when scrolled or on non-home pages - must come after .navbar-transparent so it wins when both present */
.site-header.navbar-scrolled {
  background: linear-gradient(135deg, #000000 0%, #c5a14b 100%) !important;
  background-color: #000000 !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35) !important;
  padding: 0;
}

.site-header.navbar-scrolled .navbar {
  background: transparent !important;
  background-color: transparent !important;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow: visible;
  margin-left: 0;
}

/* On large screens, slight pull left for badge overlap — but not enough to clip */
@media (min-width: 992px) {
  .navbar-brand {
    margin-left: -20px;
  }
}

.navbar-brand .logo {
  height: 300px !important;
  width: auto;
  max-width: 400px !important;
  object-fit: contain;
  border-radius: 4px;
  transition: none;
  position: relative;
  z-index: 1031;
}

/* Keep logo size consistent on home header too */
body.page-home .site-header:not(.navbar-scrolled) .navbar-brand .logo {
  height: 300px !important;
  max-width: 400px !important;
}

.site-header.navbar-scrolled .navbar-brand .logo {
  height: 300px !important;
  max-width: 400px !important;
}

@media (max-width: 991.98px) {
  :root {
    --navbar-h: 72px;
  }

  .navbar-spacer {
    height: var(--navbar-h);
  }

  .navbar-brand {
    margin-left: 0;
  }

  .navbar-brand .logo,
  body.page-home .site-header:not(.navbar-scrolled) .navbar-brand .logo,
  .site-header.navbar-scrolled .navbar-brand .logo {
    height: 60px !important;
    max-width: 160px !important;
  }

  .hero-fullscreen {
    padding-top: 100px;
    padding-bottom: 80px;
    min-height: auto;
    justify-content: flex-start;
  }

  /* Override desktop height so navbar is truly 72px on mobile */
  .site-header .navbar {
    height: var(--navbar-h) !important;
    min-height: unset;
    overflow: visible !important;
  }

  .site-header .navbar .container {
    height: var(--navbar-h);
  }
}

.navbar-brand .logo-text {
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
  display: none;
}

.nav-link-with-icon {
  display: inline-flex !important;
  align-items: center;
  gap: 0.5rem;
  color: #fff !important;
  font-weight: 500;
  padding: 0.5rem 0.85rem !important;
  position: relative;
  transition: color 0.25s ease;
  border: none !important;
}

.nav-link-with-icon::after {
  content: '';
  position: absolute;
  left: 0.85rem;
  right: 0.85rem;
  bottom: 0.35rem;
  height: 2px;
  background: var(--primary);
  transform: scaleX(0);
  transition: transform 0.25s ease;
  border-radius: 1px;
}

.nav-link-with-icon:hover,
.nav-link-with-icon:focus,
.nav-link.active {
  color: var(--primary) !important;
}

.nav-link-with-icon:hover::after,
.nav-link-with-icon:focus::after,
.nav-link.active::after {
  transform: scaleX(1);
}

.nav-icon {
  font-size: 0.95rem;
  opacity: 0.95;
}

.nav-item.dropdown {
  position: relative;
  overflow: visible !important;
}

/* Dropdown */
.dropdown-menu-nav {
  position: absolute;
  z-index: 1050;
  display: none;
  background-color: #ffffff;
  border: none;
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  padding: 0.75rem 0;
  margin-top: 0.5rem;
  animation: dropdownFade 0.25s ease;
  min-width: 280px;
}

.dropdown-menu-nav.show,
.show > .dropdown-menu-nav {
  display: block !important;
}

/* Show dropdown on hover for desktop (keep click for mobile) */
@media (min-width: 992px) {
  .nav-item.dropdown:hover > .dropdown-menu-nav,
  .nav-item.dropdown:focus-within > .dropdown-menu-nav {
    display: block !important;
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes dropdownFade {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.dropdown-menu-nav .dropdown-item {
  border-radius: 4px;
  padding: 0.65rem 1.1rem;
  transition: background 0.2s ease, color 0.2s ease;
  color: var(--dark);
  font-size: 0.95rem;
  margin: 0 0.5rem;
  display: block;
  width: 100%;
  text-align: left;
}

.dropdown-menu-nav .dropdown-item:hover {
  background: #f8f9fa;
  color: var(--primary);
}

/* Client signed-in dropdown */
.client-account-toggle {
  width: 40px;
  height: 40px;
  padding: 0 !important;
  border-radius: 50px !important;
  border: 1px solid rgba(255, 255, 255, 0.28) !important;
  background: rgba(255, 255, 255, 0.14) !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 0;
}

.client-account-toggle::after {
  display: none !important;
}

.client-account-toggle:hover,
.client-account-toggle:focus {
  color: #fff !important;
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.22) !important;
  border-color: rgba(255, 255, 255, 0.45) !important;
}

.dropdown-menu-nav .dropdown-header {
  color: rgba(255, 255, 255, 0.7);
}

.dropdown-menu-nav .dropdown-item.text-danger:hover {
  background: rgba(220, 53, 69, 0.15);
  color: #dc3545;
}

/* Premium "Sell Your Property" button */
.nav-item-cta {
  margin-left: 0.5rem;
}

.nav-link-sell {
  background: linear-gradient(135deg, #111111 0%, var(--gold) 100%) !important;
  color: #fff !important;
  font-weight: 600 !important;
  border-radius: 50px !important;
  padding: 0.5rem 1.25rem !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.24);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease !important;
  border: none !important;
  white-space: nowrap;
}

.nav-link-sell::after {
  display: none !important;
}

.nav-link-sell:hover,
.nav-link-sell:focus {
  color: #fff !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.32);
  background: linear-gradient(135deg, #000000 0%, #c5a14b 100%) !important;
}

.nav-item-logout-cta {
  margin-left: 0.45rem;
}

.nav-link-logout {
  background: rgba(220, 53, 69, 0.22) !important;
  color: #fff !important;
  font-weight: 600 !important;
  border-radius: 50px !important;
  width: 40px;
  height: 40px;
  padding: 0 !important;
  border: 1px solid rgba(220, 53, 69, 0.5) !important;
  transition: transform 0.25s ease, background 0.2s ease, border-color 0.2s ease !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
}

.nav-link-logout:hover,
.nav-link-logout:focus {
  color: #fff !important;
  transform: translateY(-2px);
  background: rgba(220, 53, 69, 0.42) !important;
  border-color: rgba(220, 53, 69, 0.75) !important;
}

/* Tighten nav link spacing at mid-range widths to prevent wrapping */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .nav-link-with-icon {
    padding: 0.5rem 0.45rem !important;
    font-size: 0.875rem;
  }
  .nav-link-with-icon .nav-icon {
    font-size: 0.85rem;
  }
  .nav-link-sell {
    padding: 0.45rem 0.85rem !important;
    font-size: 0.875rem;
  }
  .nav-item-cta {
    margin-left: 0.25rem;
  }
}

/* Hamburger - custom bars */
.navbar-toggler {
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 8px;
  padding: 0.5rem 0.65rem;
  background-color: rgba(0, 0, 0, 0.35);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.navbar-toggler:hover {
  border-color: rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.08);
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 0.2rem rgba(240, 165, 0, 0.35);
}

.navbar-toggler .navbar-toggler-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  margin: 5px 0;
  border-radius: 1px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-bar:nth-child(2) {
  opacity: 0;
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile menu - Bootstrap collapse with visual styling */
@media (max-width: 991.98px) {
  /* Apply our visual styling for both collapsing (animating) and show (open) states.
     Do NOT set max-height:0 / overflow:hidden here — that fights Bootstrap's height
     animation and breaks the menu on Android. Bootstrap handles show/hide via
     the .collapsing (height 0→auto) and .collapse/.show (display:none/block) classes. */
  .navbar-collapse.collapsing,
  .navbar-collapse.show {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #000000 0%, #c5a14b 100%);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border-radius: 0 0 12px 12px;
    padding: 0.75rem;
    margin: 0.25rem 1rem 0;
  }

  .navbar-collapse.show {
    max-height: calc(100vh - 76px);
    overflow-y: auto;
  }

  .navbar-nav {
    padding: 0.5rem 0;
  }

  .nav-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .nav-item:last-child {
    border-bottom: none;
  }

  .nav-link-with-icon {
    padding: 0.75rem 0.5rem !important;
  }

  .nav-item-cta {
    margin-left: 0;
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }

  .nav-item-logout-cta {
    margin-left: 0;
    margin-top: 0.4rem;
  }

  .nav-link-sell {
    justify-content: center;
  }

  .nav-link-logout {
    justify-content: center;
    width: 100%;
    height: auto;
    min-height: 40px;
    border-radius: 999px !important;
  }

  .dropdown-menu-nav {
    position: static !important;
    margin-left: 0.75rem;
    margin-top: 0.25rem;
    margin-bottom: 0.25rem;
    max-height: 60vh;
    overflow-y: auto;
    box-shadow: none !important;
  }
}

/* Legacy .btn-cta support if used elsewhere */
.btn-cta {
  background: var(--primary) !important;
  color: var(--dark) !important;
  border-radius: 8px;
  padding: 0.5rem 1rem !important;
}

.btn-cta:hover {
  background: var(--secondary) !important;
  color: #fff !important;
}

/* Main content - no sidebar */
.main-wrapper {
  flex: 1;
}

.main-content {
  padding: 0;
}

/* Full-screen Hero */
.hero-fullscreen {
  min-height: 100vh;
  padding-top: 110px;
  box-sizing: border-box;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #fff;
  position: relative;
}

@media (max-width: 991.98px) {
  .hero-fullscreen {
    background-attachment: scroll;
  }
}

.hero-fullscreen::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.55) 100%);
  z-index: 0;
}

.hero-fullscreen .hero-content {
  position: relative;
  z-index: 1;
  padding: 2rem;
  max-width: 800px;
}

.hero-cta-wrap {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.hero-quick-search {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 14px;
  padding: 0.75rem;
  backdrop-filter: blur(3px);
}

.hero-quick-search .form-select {
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #0f172a;
}

.home-trust-strip {
  background: transparent;
  border: none;
  border-radius: 0;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  margin-top: 0.65rem;
  padding-top: 0.25rem !important;
  padding-bottom: 0.25rem !important;
}

.home-trust-strip .container {
  max-width: 860px;
}

.home-trust-strip .row {
  justify-content: center;
  --bs-gutter-x: 0.6rem;
  --bs-gutter-y: 0.45rem;
}

.trust-pill {
  background: rgba(255, 255, 255, 0.24);
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 999px;
  padding: 0.52rem 0.8rem;
  font-size: 0.88rem;
  color: #ffffff;
  font-weight: 600;
  text-shadow: 0 1px 2px rgba(0,0,0,0.25);
}

.hero-fullscreen h1 {
  font-size: 3.2rem;
  font-weight: 800;
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 1rem;
  color: #fff;
}

.hero-fullscreen .lead {
  font-size: 1.2rem;
  font-weight: 400;
  opacity: 0.92;
  letter-spacing: 0.01em;
  color: #fff;
}

.hero-fullscreen p {
  color: #fff;
}

.hero-fullscreen .search-form {
  max-width: 800px;
  margin: 1.5rem auto 0;
}

@media (max-width: 768px) {
  .hero-fullscreen h1 {
    font-size: 2rem;
  }
  .hero-fullscreen .lead {
    font-size: 1rem;
  }

  .hero-quick-search {
    margin-left: auto;
    margin-right: auto;
    max-width: 96%;
  }
}

/* Portrait ratio utility (9:16) for videos */
.ratio-9x16 {
  --bs-aspect-ratio: 177.78%;
}

/* ================================
   Motion & performance overrides
   ================================ */

/* Disable GPU-expensive will-change on mobile to save memory */
@media (max-width: 767.98px) {
  .reveal, .reveal-left, .reveal-right, .reveal-scale {
    will-change: auto;
  }
  /* Simplify property modal backdrop on mobile — blur is expensive */
  .pd-modal-overlay {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(12, 18, 28, 0.68);
  }
  .pd-modal {
    background: #ffffff;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  /* Simplify hero search glassmorphism */
  .hero-quick-search {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(255,255,255,0.18);
  }
}

/* Respect user's reduced-motion preference */
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-left, .reveal-right, .reveal-scale {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
    will-change: auto !important;
  }
  .strip-reveal .section-strip-inner {
    transform: none !important;
    opacity: 1 !important;
    transition: none !important;
  }
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Single-page sections (About, Contact) */
.page-section {
  padding: 5rem 0;
  position: relative;
}

@media (max-width: 991.98px) {
  .page-section,
  .featured-section {
    padding: 3.5rem 0;
  }

  .featured-section .container {
    padding: 0 1rem;
  }

  .section-strip-inner {
    padding: 0.85rem 1.5rem;
    border-radius: 28px;
  }

  .section-strip-title {
    font-size: 1.55rem;
  }

  .section-strip-subtitle {
    font-size: 1.05rem;
  }
}

.section-about {
  background: #fff;
}

.about-body-text {
  font-size: 1.1rem;
  line-height: 1.85;
  color: var(--text-muted);
  font-family: 'Lora', Georgia, serif;
  text-align: justify;
}

.section-rush-sale {
  background: var(--bg-light);
}

.section-contact {
  background: var(--bg-warm);
}

/* Featured Properties section */
.featured-section {
  padding: 5rem 0;
  background: var(--bg-warm);
  position: relative;
}

/* Section wave dividers */
.wave-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  line-height: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 2;
}
.wave-bottom svg {
  display: block;
  width: 100%;
  height: 120px;
}
@media (max-width: 767.98px) {
  .wave-bottom svg {
    height: 70px;
  }
}

.featured-section .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Section strip banner */
.section-strip {
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
}

.section-strip-inner {
  display: inline-block;
  padding: 1rem 3rem;
  border-radius: 60px;
  background: linear-gradient(135deg, #1a1a2e 0%, var(--gold) 100%);
  color: #fff;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
  position: relative;
  overflow: hidden;
}

/* Strip reveal: scale-expand from center + shimmer sweep */
.strip-reveal .section-strip-inner {
  transform: scaleX(0);
  opacity: 0;
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.5s ease;
}
.strip-reveal.reveal-visible .section-strip-inner {
  transform: scaleX(1);
  opacity: 1;
}

/* Shimmer sweep after expand */
.section-strip-inner::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.25) 50%, transparent 100%);
  pointer-events: none;
}
.strip-reveal.reveal-visible .section-strip-inner::after {
  animation: strip-shimmer 1s 0.5s ease-out forwards;
}

@keyframes strip-shimmer {
  0%   { left: -100%; }
  100% { left: 100%; }
}

.section-strip-title {
  font-size: 1.8rem;
  font-weight: 700;
  font-family: 'Playfair Display', Georgia, serif;
  letter-spacing: 0.01em;
  color: #fff;
}

.section-strip-subtitle {
  font-size: 1.05rem;
  opacity: 0.9;
  font-weight: 400;
  font-family: 'Lora', Georgia, serif;
  font-style: italic;
  color: #fff;
}

/* Home page: use plain header + bottom line for section strips */
body.page-home .section-strip,
body.page-about .section-strip {
  justify-content: center;
}

body.page-home .section-strip-inner,
body.page-about .section-strip-inner {
  width: min(980px, 100%);
  display: block;
  padding: 0 0 0.65rem;
  border-radius: 0;
  background: transparent;
  color: #111;
  box-shadow: none;
  overflow: visible;
  border-bottom: 2px solid #d6d6d6;
}

body.page-home .section-strip-inner::after,
body.page-about .section-strip-inner::after {
  display: none;
}

body.page-home .strip-reveal .section-strip-inner,
body.page-home .strip-reveal.reveal-visible .section-strip-inner,
body.page-about .strip-reveal .section-strip-inner,
body.page-about .strip-reveal.reveal-visible .section-strip-inner {
  transform: none;
  opacity: 1;
  transition: none;
}

body.page-home .section-strip-title,
body.page-home .section-strip-subtitle,
body.page-about .section-strip-title,
body.page-about .section-strip-subtitle {
  color: #111;
}

body.page-home .section-strip-subtitle,
body.page-about .section-strip-subtitle {
  opacity: 0.78;
}


/* Buttons */
.btn-primary {
  background: var(--primary) !important;
  border-color: var(--primary) !important;
  color: #fff !important;
}

.btn-primary:hover {
  background: var(--secondary) !important;
  border-color: var(--secondary) !important;
  color: #fff !important;
}

.btn-danger, .btn-accent {
  background: var(--secondary) !important;
  border-color: var(--secondary) !important;
  color: #fff !important;
}

.btn-danger:hover, .btn-accent:hover {
  background: var(--primary) !important;
  border-color: var(--primary) !important;
  color: var(--dark) !important;
}

/* Contact Us buttons - solid accent */
.btn-accent {
  background: var(--primary) !important;
  border: 1px solid var(--secondary) !important;
  color: #ffffff !important;
  border-radius: 8px;
  font-weight: 600;
  transition: all var(--transition-base);
}

.btn-accent:hover,
.btn-accent:focus {
  background: var(--secondary) !important;
  border-color: var(--secondary) !important;
  color: #ffffff !important;
  transform: translateY(-1px);
}

/* Gold tone button (for key CTAs like View All Properties) */
.btn-gradient-gold {
  background: linear-gradient(135deg, #111111 0%, var(--gold) 100%) !important;
  border: none !important;
  color: #ffffff !important;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22);
  border-radius: 8px;
  padding: 0.65rem 2rem;
  font-weight: 600;
  transition: all var(--transition-base);
}

.btn-gradient-gold:hover,
.btn-gradient-gold:focus {
  background: linear-gradient(135deg, #000000 0%, #c5a14b 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
  transform: translateY(-2px);
}

/* Property card primary buttons (e.g. View Details / View More) */
.property-card .btn-primary,
.property-card-horizontal .btn-primary {
  background: var(--primary) !important;
  border: 1px solid var(--secondary) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(168, 132, 31, 0.2);
  border-radius: 8px;
  font-weight: 600;
  transition: all var(--transition-base);
}

.property-card .btn-primary:hover,
.property-card-horizontal .btn-primary:hover,
.property-card .btn-primary:focus,
.property-card-horizontal .btn-primary:focus {
  background: var(--secondary) !important;
  border-color: var(--secondary) !important;
  color: #ffffff !important;
  box-shadow: 0 6px 18px rgba(141, 108, 28, 0.28);
  transform: translateY(-1px);
}

/* Search / Apply Filters buttons */
#properties .card .btn-primary,
body.page-properties .card .btn-primary {
  background: var(--primary) !important;
  border: 1px solid var(--secondary) !important;
  color: #ffffff !important;
  box-shadow: 0 3px 10px rgba(168, 132, 31, 0.2);
}

#properties .card .btn-primary:hover,
body.page-properties .card .btn-primary:hover,
#properties .card .btn-primary:focus,
body.page-properties .card .btn-primary:focus {
  background: var(--secondary) !important;
  border-color: var(--secondary) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(141, 108, 28, 0.3);
}

/* Search form */
.search-form .form-control, .search-form .form-select {
  border-radius: 8px;
}

.search-form .btn {
  border-radius: 8px;
}

/* Property cards */
.property-card {
  background: #fff;
  border-radius: var(--card-radius);
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 8px 24px rgba(0,0,0,0.06);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
  height: 100%;
  border: 1px solid rgba(0,0,0,0.04);
}

.property-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.12);
}

.property-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  background: #f0f0f0;
}

.property-card .card-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
}

.property-card .property-card-actions {
  margin-top: auto !important;
}

.property-price {
  color: var(--dark);
  font-weight: 700;
  font-size: 1.2rem;
}

.property-location {
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 400;
}

.property-category-tag {
  display: inline-block;
  font-size: 0.78rem;
  color: var(--primary);
  font-weight: 500;
  background: rgba(168, 132, 31, 0.1);
  padding: 1px 7px;
  border-radius: 20px;
  margin-top: 2px;
}

.property-meta-list {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.property-meta-list li::before {
  content: '- ';
}

.property-card .btn {
  border-radius: 8px;
  font-weight: 500;
  font-size: 0.85rem;
}

/* Horizontal property cards - View All Properties page */
.property-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.property-card-horizontal {
  border-radius: var(--card-radius);
  background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 8px 24px rgba(0,0,0,0.06);
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.04);
  transition: box-shadow var(--transition-base);
}

.property-card-horizontal:hover {
  box-shadow: 0 12px 40px rgba(0,0,0,0.1);
}

.property-card-horizontal-inner {
  display: flex;
  flex-direction: row;
}

.property-card-horizontal-image {
  position: relative;
  flex: 0 0 40%;
  max-width: 40%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.property-card-horizontal-image img {
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
  background: #f0f0f0;
  display: block;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.property-card-horizontal:hover .property-card-horizontal-image img {
  transform: scale(1.05);
}

.property-card-horizontal-body {
  flex: 1;
  padding: 1.5rem 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.property-card-horizontal-header .property-title {
  margin-top: 0.25rem;
  margin-bottom: 0.35rem;
  font-size: 1.25rem;
  font-weight: 700;
}

.property-card-horizontal-header .property-location {
  font-size: 0.95rem;
}

.property-description {
  margin-bottom: 1rem;
  font-size: 0.97rem;
  color: #555;
}

.property-card-horizontal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.btn-view-more {
  min-width: 130px;
}

.property-filter-actions {
  justify-content: flex-end;
  gap: 0.5rem;
}

@media (max-width: 768px) {
  .property-card-horizontal-inner {
    flex-direction: column;
  }

  .property-card-horizontal-image {
    max-width: 100%;
    flex: 0 0 auto;
    height: 220px;
  }

  .property-card-horizontal-body {
    padding: 1.1rem 1.2rem 1.25rem;
  }

  .property-filter-actions {
    position: sticky;
    bottom: 0;
    padding-top: 0.5rem;
    background: #fff;
    z-index: 3;
    justify-content: stretch;
  }

  .property-filter-actions .btn {
    flex: 1;
  }
}

/* Client Reviews Section */
.client-reviews-section {
  background: #fff;
  padding-top: 5rem;
  padding-bottom: 5rem;
}

/* Left: Comments Box */
.reviews-comments-box {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: var(--card-radius);
  padding: 1.5rem;
  height: 500px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.reviews-comments-box h5 {
  font-weight: 600;
  color: var(--dark);
  font-size: 1.05rem;
}

.reviews-sort-form .form-select {
  min-width: 150px;
}

.comments-scroll {
  flex: 1;
  overflow-y: auto;
  padding-right: 0.75rem;
  margin-right: -0.75rem;
}

.comments-scroll::-webkit-scrollbar {
  width: 6px;
}

.comments-scroll::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}

.comments-scroll::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 3px;
}

.comments-scroll::-webkit-scrollbar-thumb:hover {
  background: #555;
}

.review-item {
  padding: 1rem;
  border-bottom: 1px solid #f0f0f0;
  margin-bottom: 0.5rem;
}

.review-item:last-child {
  border-bottom: none;
}

.review-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
  gap: 0.5rem;
}

.review-header strong {
  font-size: 0.95rem;
  color: var(--dark);
  flex: 1;
}

.review-stars {
  color: #ffc107;
  font-size: 0.9rem;
  white-space: nowrap;
}
.review-star-label {
  font-size: 0.75rem;
  color: #888;
  margin-left: 0.2rem;
  font-style: italic;
}

.review-comment {
  color: #555;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.review-date {
  color: #999;
  font-size: 0.8rem;
}

.review-actions {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.review-react-btn {
  border: 1px solid #d9e0e8;
  background: #fff;
  color: #475569;
  border-radius: 999px;
  padding: 0.22rem 0.55rem;
  font-size: 0.82rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.review-react-btn:hover {
  border-color: #b43f3f;
  color: #b43f3f;
}

.review-react-btn.active-like {
  background: rgba(34, 197, 94, 0.12);
  border-color: rgba(34, 197, 94, 0.45);
  color: #15803d;
}

.review-react-btn.active-dislike {
  background: rgba(220, 38, 38, 0.1);
  border-color: rgba(220, 38, 38, 0.35);
  color: #b91c1c;
}

.review-delete-btn {
  border-color: rgba(220, 38, 38, 0.35);
  color: #b91c1c;
}

.review-delete-btn:hover {
  border-color: #b91c1c;
  color: #b91c1c;
}

.review-replies {
  margin-top: 0.5rem;
}

.review-reply-item {
  font-size: 0.82rem;
  color: #475569;
  background: linear-gradient(180deg, #f8fbff 0%, #f7fafc 100%);
  border: 1px solid #e3eaf2;
  border-radius: 10px;
  padding: 0.48rem 0.6rem;
  margin-bottom: 0.45rem;
}

.review-reply-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.55rem;
  margin-bottom: 0.2rem;
}

.review-reply-name {
  font-weight: 700;
  color: #1f2937;
}

.review-reply-date {
  color: #94a3b8;
  font-size: 0.72rem;
  white-space: nowrap;
}

.review-reply-text {
  color: #334155;
  line-height: 1.35;
  word-break: break-word;
}

.review-reply-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-top: 0.3rem;
}

.review-comment-like-btn,
.review-comment-like-static {
  border: 1px solid #d9e0e8;
  background: #fff;
  color: #64748b;
  border-radius: 999px;
  padding: 0.14rem 0.48rem;
  font-size: 0.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
}

.review-comment-like-btn:hover {
  border-color: #b43f3f;
  color: #b43f3f;
}

.review-comment-like-btn.active-like {
  background: rgba(244, 63, 94, 0.1);
  border-color: rgba(244, 63, 94, 0.35);
  color: #be123c;
}

.review-comment-like-btn:disabled {
  opacity: 0.75;
  cursor: not-allowed;
}

.review-comment-manage-btn {
  border: 1px solid #d9e0e8;
  background: #fff;
  color: #475569;
  border-radius: 999px;
  padding: 0.14rem 0.52rem;
  font-size: 0.73rem;
  line-height: 1.1;
}

.review-comment-manage-btn:hover {
  border-color: #b43f3f;
  color: #b43f3f;
}

.review-comment-manage-btn:disabled {
  opacity: 0.75;
  cursor: not-allowed;
}

.review-comment-delete-btn {
  border-color: rgba(220, 38, 38, 0.35);
  color: #b91c1c;
}

.review-reply-form .form-control {
  font-size: 0.84rem;
}

.review-reply-form .btn {
  font-size: 0.82rem;
}

.review-replies-toggle {
  font-size: 0.78rem;
  text-decoration: none;
}

/* Right: Rating Box */
.reviews-rating-box {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: var(--card-radius);
  padding: 1.5rem;
  height: 500px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  overflow-y: auto;
}

.reviews-rating-box h5 {
  font-weight: 600;
  color: var(--dark);
  font-size: 1.05rem;
}

.overall-rating {
  text-align: center;
  padding: 1.1rem 1rem;
  border: 1px solid #eceff3;
  border-radius: 12px;
  background: linear-gradient(180deg, #ffffff 0%, #fafbfd 100%);
}

.overall-rating-visual {
  display: flex;
  justify-content: center;
}

.rating-donut {
  --donut-size: 116px;
  --donut-thickness: 11px;
  width: var(--donut-size);
  height: var(--donut-size);
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: conic-gradient(#f4b400 calc(var(--rating-percent, 0) * 1%), #e8edf3 0);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.03);
}

.rating-donut-center {
  width: calc(var(--donut-size) - (var(--donut-thickness) * 2));
  height: calc(var(--donut-size) - (var(--donut-thickness) * 2));
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06) inset;
}

.rating-donut-value {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--dark);
  line-height: 1;
}

.rating-donut-max {
  font-size: 0.78rem;
  font-weight: 600;
  color: #64748b;
  line-height: 1;
}

.overall-rating h6 {
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--dark);
}

.rating-display {
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

.rating-display .stars {
  color: #ffc107;
  font-size: 1.45rem;
  margin-right: 0.35rem;
  letter-spacing: 1px;
}

.rating-display .rating-text {
  font-weight: 600;
  font-size: 1rem;
  color: var(--dark);
}

/* Rating stat cards (replacement for old bars) */
.rating-breakdown-grid {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.rating-stat-card {
  border: 1px solid #e7ebf0;
  border-radius: 12px;
  padding: 0.75rem 0.8rem;
  background: #fff;
}

.rating-stat-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.25rem;
}

.rating-stat-star {
  font-weight: 700;
  color: #f4b400;
  font-size: 0.95rem;
}

.rating-stat-percent {
  font-weight: 700;
  color: var(--dark);
  font-size: 0.92rem;
}

.rating-stat-bottom {
  font-size: 0.82rem;
  color: #6b7280;
}

.rating-stat-count {
  font-weight: 500;
}

/* Month Filter */
.form-select-sm {
  max-width: 200px;
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  .reviews-comments-box {
    height: 400px;
  }

  .review-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .review-stars {
    margin-top: 0.25rem;
  }

  .rating-breakdown-grid {
    grid-template-columns: 1fr;
  }

  .rating-donut {
    --donut-size: 102px;
    --donut-thickness: 10px;
  }

  .review-actions {
    flex-wrap: wrap;
  }

  .review-reply-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.1rem;
  }

  .review-reply-actions {
    justify-content: flex-start;
  }
}

/* Footer */
.site-footer {
  background: linear-gradient(135deg, #1a1a2e 0%, var(--gold) 100%);
  color: #fff;
  padding: 2.5rem 0;
  margin-top: auto;
  font-size: 0.9rem;
}
.site-footer p,
.site-footer .small {
  font-size: 0.9rem;
  line-height: 1.6;
}

/* enlarge footer heading */
.site-footer h6 {
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
}
.site-footer .partner-logo {
  width: 90px !important;
  height: 100px !important;
  display: block;
  object-fit: contain;
  border-radius: 4px;
}

.site-footer .partner-companies-line {
  flex-wrap: nowrap !important;
  overflow: hidden;
  gap: 0.5rem !important;
  width: 100%;
}

.site-footer .partner-company-item {
  flex: 1 1 0;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
}

.site-footer .partner-company-item span {
  display: inline-block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.78rem;
}

.site-footer .partner-company-item .partner-logo {
  width: 38px !important;
  height: 38px !important;
  flex-shrink: 0;
}
.site-footer .social-icon {
  color: #fff;
  border-color: rgba(255,255,255,0.3);
  font-size: 0.9rem;
  text-align: center;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-base);
}

.site-footer .social-icon i {
  font-size: 1em;
}
.site-footer .social-icon:hover {
  background: #fff;
  color: var(--dark);
  border-color: #fff;
}

.site-footer a {
  color: var(--primary);
}

.site-footer a:hover {
  color: var(--secondary);
}

/* Forms */
.form-control:focus, .form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 0.2rem rgba(240, 165, 0, 0.15);
}

.form-control, .form-select {
  border-radius: 10px;
  border: 1.5px solid #e0e3e8;
  padding: 0.65rem 1rem;
  font-size: 0.92rem;
  transition: border-color var(--transition-base), box-shadow var(--transition-base);
}

.form-label {
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--dark);
  margin-bottom: 0.35rem;
}

/* Alerts */
.alert-warning { background: rgba(240, 165, 0, 0.2); border-color: var(--primary); }

.alert {
  border-radius: 12px;
  border: none;
  font-size: 0.92rem;
}

.alert-success {
  background: #ecfdf5;
  color: #065f46;
}

.alert-danger {
  background: #fef2f2;
  color: #991b1b;
}

.alert-info {
  background: #eff6ff;
  color: #1e40af;
}

/* ================================
   Form Pages — centered card layout
   ================================ */

/* Page hero banner for form pages */
.form-page-hero {
  background: linear-gradient(135deg, var(--dark) 0%, var(--gold) 100%);
  color: #fff;
  padding: 1.2rem 2.5rem;
  text-align: center;
  margin: 0 auto 1.5rem;
  max-width: 560px;
  border-radius: 999px;
  position: relative;
  z-index: 1;
}

.form-page-hero .form-page-icon {
  display: none;
}

.form-page-hero h1 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.15rem;
}

.form-page-hero p {
  color: rgba(255,255,255,0.8);
  font-size: 0.8rem;
  max-width: 520px;
  margin: 0 auto;
}

/* Elevated form card */
.form-page-card {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.08);
  padding: 2.25rem 2rem;
  position: relative;
  z-index: 2;
  max-width: 680px;
  margin: 0 auto 2rem;
}

.form-page-card.wide {
  max-width: 900px;
}

.form-page-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--bg-light);
}

.form-page-card .form-actions {
  padding-top: 1rem;
  border-top: 1px solid #f0f0f0;
  margin-top: 1.5rem;
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

/* Info sidebar card */
.form-page-sidebar {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  padding: 1.75rem;
}

.form-page-sidebar h5 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.form-page-sidebar .info-row {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.form-page-sidebar .info-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--bg-warm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--gold);
  font-size: 0.9rem;
}

/* Step indicator for verify flow */
.step-indicator {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.step-indicator .step {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  padding: 0.45rem 1rem;
  border-radius: 20px;
  background: var(--bg-light);
  transition: all var(--transition-base);
}

.step-indicator .step.active {
  background: var(--dark);
  color: #fff;
}

.step-indicator .step.done {
  background: #ecfdf5;
  color: #065f46;
}

.step-indicator .step-num {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(0,0,0,0.08);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
}

.step.active .step-num {
  background: rgba(255,255,255,0.2);
}

.step.done .step-num {
  background: #065f46;
  color: #fff;
}

/* OTP code input */
.otp-input {
  font-size: 1.8rem;
  text-align: center;
  letter-spacing: 0.6em;
  font-weight: 700;
  padding: 0.7rem 1rem;
  border-radius: 12px;
  border: 2px solid #e0e3e8;
  max-width: 280px;
}

.otp-input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(197,161,75,0.15);
}

/* Star rating - redesigned */
.rating-input {
  direction: rtl;
  font-size: 0;
  unicode-bidi: bidi-override;
  display: flex;
  flex-direction: row-reverse;
  gap: 4px;
  justify-content: flex-end;
}
.rating-input input {
  display: none;
}
.rating-input label {
  font-size: 2.2rem;
  color: #ddd;
  cursor: pointer;
  margin: 0;
  transition: color 0.15s ease, transform 0.15s ease;
  line-height: 1;
}
.rating-input label:hover {
  transform: scale(1.15);
}
.rating-input input:checked ~ label,
.rating-input label:hover,
.rating-input label:hover ~ label {
  color: #f59e0b;
}

/* Review card in submission form */
.review-form-stats {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1rem 1.25rem;
  background: var(--bg-warm);
  border-radius: 12px;
  margin-bottom: 1.5rem;
}

.review-form-stats .stat-big {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--dark);
  line-height: 1;
}

.review-form-stats .stat-stars {
  color: #f59e0b;
  font-size: 1.1rem;
  margin-bottom: 0.15rem;
}

.review-form-stats .stat-label {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* Button polish for form pages */
.btn-submit-form {
  background: var(--primary);
  border: 1px solid var(--secondary);
  color: #fff;
  font-weight: 600;
  padding: 0.7rem 2rem;
  border-radius: 10px;
  font-size: 0.92rem;
  transition: all var(--transition-base);
  box-shadow: 0 4px 15px rgba(168, 132, 31, 0.2);
}

.btn-submit-form:hover {
  background: var(--secondary);
  border-color: var(--secondary);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(141, 108, 28, 0.28);
  color: #fff;
}

/* Contact method cards */
.contact-method {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  border-radius: 12px;
  background: var(--bg-light);
  margin-bottom: 0.75rem;
  transition: background var(--transition-base);
}

.contact-method:hover {
  background: var(--bg-warm);
}

.contact-method-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--dark), var(--gold));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-method-text {
  font-size: 0.88rem;
}

.contact-method-text strong {
  display: block;
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 500;
}

.service-item-card {
  border: 1px solid #eceff3;
  border-radius: 12px;
  padding: 0.9rem;
  background: #fff;
}

@media (max-width: 768px) {
  .form-page-card {
    padding: 1.5rem 1.25rem;
    margin-left: 0.75rem;
    margin-right: 0.75rem;
  }
  .form-page-hero {
    padding: 1rem 1.5rem;
    max-width: 90%;
  }
  .form-page-hero h1 { font-size: 1rem; }
}

/* ================================
   Client Sign-in / Email UI (sample-style)
   ================================ */
body.page-verify,
body.page-contact,
body.page-seller,
body.page-reviews,
body.page-conversations {
  background: var(--bg-light);
}

body.page-verify .page-content,
body.page-contact .page-content,
body.page-seller .page-content,
body.page-reviews .page-content,
body.page-conversations .page-content {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 2rem;
  padding-right: 2rem;
}

body.page-verify .form-page-hero,
body.page-contact .form-page-hero,
body.page-seller .form-page-hero,
body.page-reviews .form-page-hero,
body.page-conversations .form-page-hero {
  background: transparent;
  color: var(--dark);
  max-width: 1200px;
  margin: 0 auto 1.25rem;
  border-radius: 0;
  padding: 0.75rem 2rem 0;
  text-align: left;
}

body.page-verify .form-page-hero h1,
body.page-contact .form-page-hero h1,
body.page-seller .form-page-hero h1,
body.page-reviews .form-page-hero h1,
body.page-conversations .form-page-hero h1 {
  color: var(--gold);
  font-size: 2.8rem;
  line-height: 1.15;
  margin-bottom: 0.5rem;
}

body.page-verify .form-page-hero p,
body.page-contact .form-page-hero p,
body.page-seller .form-page-hero p,
body.page-reviews .form-page-hero p,
body.page-conversations .form-page-hero p {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 780px;
  margin: 0;
}

body.page-verify .form-page-card,
body.page-contact .form-page-card,
body.page-seller .form-page-card,
body.page-reviews .form-page-card,
body.page-conversations .form-page-card,
body.page-contact .form-page-sidebar,
body.page-seller .form-page-sidebar,
body.page-reviews .form-page-sidebar,
body.page-verify .form-page-sidebar,
body.page-conversations .form-page-sidebar {
  background: transparent;
  border: 1px solid rgba(160, 124, 36, 0.45);
  border-radius: 14px;
  box-shadow: none;
}

body.page-verify .form-page-card h3,
body.page-contact .form-page-card h3,
body.page-seller .form-page-card h3,
body.page-reviews .form-page-card h3,
body.page-conversations .form-page-card h3 {
  border-bottom-color: rgba(160, 124, 36, 0.2);
}

body.page-verify .form-control,
body.page-contact .form-control,
body.page-seller .form-control,
body.page-reviews .form-control,
body.page-conversations .form-control,
body.page-verify .form-select,
body.page-contact .form-select,
body.page-seller .form-select,
body.page-reviews .form-select,
body.page-conversations .form-select {
  border-color: rgba(160, 124, 36, 0.7);
  background: transparent;
  box-shadow: none;
}

body.page-verify .form-control:focus,
body.page-contact .form-control:focus,
body.page-seller .form-control:focus,
body.page-reviews .form-control:focus,
body.page-conversations .form-control:focus,
body.page-verify .form-select:focus,
body.page-contact .form-select:focus,
body.page-seller .form-select:focus,
body.page-reviews .form-select:focus,
body.page-conversations .form-select:focus {
  border-color: #a07c24;
  box-shadow: 0 0 0 0.15rem rgba(160, 124, 36, 0.18);
}

body.page-contact .input-group-text,
body.page-seller .input-group-text {
  background: transparent !important;
  border-color: rgba(160, 124, 36, 0.7) !important;
}

body.page-verify .btn-submit-form,
body.page-contact .btn-submit-form,
body.page-seller .btn-submit-form,
body.page-reviews .btn-submit-form,
body.page-conversations .btn-submit-form {
  background: #a07c24;
  color: #fff;
  box-shadow: none;
}

body.page-verify .btn-submit-form:hover,
body.page-contact .btn-submit-form:hover,
body.page-seller .btn-submit-form:hover,
body.page-reviews .btn-submit-form:hover,
body.page-conversations .btn-submit-form:hover {
  background: #8b6b1f;
  color: #fff;
  transform: none;
}

body.page-contact .contact-method,
body.page-seller .contact-method,
body.page-reviews .contact-method,
body.page-verify .contact-method,
body.page-conversations .contact-method {
  background: transparent;
  border: 1px solid rgba(160, 124, 36, 0.25);
}

body.page-contact .contact-method-icon,
body.page-seller .contact-method-icon,
body.page-reviews .contact-method-icon,
body.page-verify .contact-method-icon,
body.page-conversations .contact-method-icon {
  background: #a07c24;
}

body.page-verify .step-indicator .step,
body.page-contact .step-indicator .step,
body.page-seller .step-indicator .step,
body.page-reviews .step-indicator .step,
body.page-conversations .step-indicator .step {
  background: #efe7d7;
  color: #77654a;
}

body.page-verify .step-indicator .step.active,
body.page-contact .step-indicator .step.active,
body.page-seller .step-indicator .step.active,
body.page-reviews .step-indicator .step.active,
body.page-conversations .step-indicator .step.active {
  background: #9f7a25;
  color: #fff;
}

body.page-verify .step-indicator .step.done,
body.page-contact .step-indicator .step.done,
body.page-seller .step-indicator .step.done,
body.page-reviews .step-indicator .step.done,
body.page-conversations .step-indicator .step.done {
  background: #f4edde;
  color: #7d632f;
}

body.page-verify .step.done .step-num,
body.page-contact .step.done .step-num,
body.page-seller .step.done .step-num,
body.page-reviews .step.done .step-num,
body.page-conversations .step.done .step-num {
  background: #9f7a25;
  color: #fff;
}

body.page-verify .alert-info,
body.page-contact .alert-info,
body.page-seller .alert-info,
body.page-reviews .alert-info,
body.page-conversations .alert-info {
  background: #f7f1e3;
  color: #6f5930;
  border: 1px solid rgba(160, 124, 36, 0.28);
}

/* Contact page only: revert to previous palette */
body.page-contact {
  background: #f3f3f3;
}

body.page-contact .form-page-hero p {
  color: #5b6472;
}

body.page-contact .step-indicator .step {
  background: var(--bg-light);
  color: var(--text-muted);
}

body.page-contact .step-indicator .step.active {
  background: var(--dark);
  color: #fff;
}

body.page-contact .step-indicator .step.done {
  background: #ecfdf5;
  color: #065f46;
}

body.page-contact .step.done .step-num {
  background: #065f46;
  color: #fff;
}

body.page-contact .alert-info {
  background: #eff6ff;
  color: #1e40af;
  border: none;
}

@media (max-width: 767.98px) {
  body.page-verify .page-content,
  body.page-contact .page-content,
  body.page-seller .page-content,
  body.page-reviews .page-content,
  body.page-conversations .page-content {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }

  body.page-verify .form-page-hero,
  body.page-contact .form-page-hero,
  body.page-seller .form-page-hero,
  body.page-reviews .form-page-hero,
  body.page-conversations .form-page-hero {
    padding: 0.75rem 1rem 0;
  }

  body.page-verify .form-page-hero h1,
  body.page-contact .form-page-hero h1,
  body.page-seller .form-page-hero h1,
  body.page-reviews .form-page-hero h1,
  body.page-conversations .form-page-hero h1 {
    font-size: 2rem;
  }

  body.page-verify .form-page-card,
  body.page-contact .form-page-card,
  body.page-seller .form-page-card,
  body.page-reviews .form-page-card,
  body.page-conversations .form-page-card {
    margin-left: 0;
    margin-right: 0;
  }
}

/* Verify page: force natural-gold solid palette (no gradient) */
body.page-verify .step-indicator .step {
  background: #efe7d7 !important;
  color: #77654a !important;
}

body.page-verify .step-indicator .step.active {
  background: #9f7a25 !important;
  color: #fff !important;
}

body.page-verify .step-indicator .step.done {
  background: #f4edde !important;
  color: #7d632f !important;
}

body.page-verify .step.done .step-num {
  background: #9f7a25 !important;
  color: #fff !important;
}

body.page-verify .btn-submit-form,
body.page-verify .btn-submit-form:hover,
body.page-verify .btn-submit-form:focus {
  background: #a07c24 !important;
  border-color: #8b6b1f !important;
  color: #fff !important;
  box-shadow: none !important;
  transform: none !important;
}

body.page-verify .contact-method-icon {
  background: #a07c24 !important;
}

/* Property detail page */
.property-detail-img {
  border-radius: 12px;
  background: #f5f5f5;
  width: 100%;
  height: auto;
  max-height: 520px;
  object-fit: contain;
}

/* Rush Sale - horizontal scroll (home page) */
.rush-sale-scroll-hint {
  font-size: 0.9rem;
  color: #6c757d;
}

.rush-sale-scroll-hint i {
  opacity: 0.85;
}

.rush-sale-scroll-wrapper {
  position: relative;
  overflow: hidden;
  margin: 0;
}

/* Arrow buttons for rush sale */
.rush-sale-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  background: rgba(255,255,255,0.92);
  color: #333;
  border: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.3rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.15);
  transition: background 0.2s, box-shadow 0.2s, transform 0.2s;
}
.rush-sale-arrow:hover {
  background: #fff;
  box-shadow: 0 4px 18px rgba(0,0,0,0.22);
  transform: translateY(-50%) scale(1.08);
}
.rush-sale-arrow:disabled {
  opacity: 0.3;
  cursor: default;
  pointer-events: none;
}
.rush-sale-arrow-left { left: 6px; }
.rush-sale-arrow-right { right: 6px; }

/* Horizontal scroll only - cards in one row, scroll left/right */
.rush-sale-scroll {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 1rem;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 0.5rem 0.25rem 0.75rem;
  -webkit-overflow-scrolling: touch;
  min-height: 0;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.rush-sale-scroll::-webkit-scrollbar {
  display: none;
}

.rush-sale-card-wrap {
  flex: 0 0 auto;
  width: 280px;
  min-width: 280px;
  scroll-snap-align: start;
  display: flex;
}

@media (min-width: 576px) {
  .rush-sale-card-wrap {
    width: 300px;
    min-width: 300px;
  }
}

.rush-sale-scroll .property-card {
  margin-bottom: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
}

.rush-sale-scroll .property-card .card-body {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.rush-sale-scroll .property-card .btn-view-detail {
  margin-top: auto !important;
}

/* ── Articles Section ───────────────────────────────────────────────────────── */
.section-articles {
  background: #fff;
  padding: 5rem 0 4rem;
}

.articles-scroll-wrapper {
  position: relative;
  overflow: hidden;
}

.articles-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  background: rgba(255,255,255,0.92);
  color: #333;
  border: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.3rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.15);
  transition: background 0.2s, box-shadow 0.2s, transform 0.2s;
}
.articles-arrow:hover {
  background: #fff;
  box-shadow: 0 4px 18px rgba(0,0,0,0.22);
  transform: translateY(-50%) scale(1.08);
}
.articles-arrow:disabled { opacity: 0.3; cursor: default; pointer-events: none; }
.articles-arrow-left  { left: 6px; }
.articles-arrow-right { right: 6px; }

.articles-scroll {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 1.25rem;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 0.5rem 0.25rem 1rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.articles-scroll::-webkit-scrollbar { display: none; }

.article-card-wrap {
  flex: 0 0 auto;
  width: 300px;
  min-width: 300px;
  scroll-snap-align: start;
}

.article-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(0,0,0,0.08);
  transition: box-shadow 0.25s, transform 0.25s;
  height: 100%;
  color: inherit;
}
.article-card:hover {
  box-shadow: 0 10px 32px rgba(0,0,0,0.14);
  transform: translateY(-4px);
}

.article-card-img-wrap {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  flex-shrink: 0;
}
.article-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.article-card:hover .article-card-img-wrap img {
  transform: scale(1.05);
}
.article-card-img-placeholder {
  width: 100%;
  height: 100%;
  background: #f0ece4;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: #c9b980;
}

.article-card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.32);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.25s;
}
.article-card:hover .article-card-overlay {
  opacity: 1;
}
.article-card-btn {
  background: var(--gold, #b8960c);
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.5rem 1.25rem;
  border-radius: 30px;
  pointer-events: none;
}

.article-card-body {
  padding: 1rem 1.1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex: 1;
}
.article-card-date {
  font-size: 0.78rem;
  color: #999;
  margin: 0;
}
.article-card-title {
  font-size: 1rem;
  font-weight: 700;
  color: #1a1a2e;
  margin: 0;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.article-card-desc {
  font-size: 0.85rem;
  color: #666;
  margin: 0;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (max-width: 575.98px) {
  .article-card-wrap {
    width: 82vw;
    min-width: 82vw;
  }
  .articles-arrow { width: 34px; height: 34px; font-size: 1.1rem; }
  .articles-arrow-left  { left: 4px; }
  .articles-arrow-right { right: 4px; }
}

@media (max-width: 575.98px) {
  .hero-fullscreen {
    min-height: auto;
    padding-top: 90px;
    padding-bottom: 80px;
    justify-content: flex-start;
  }

  .hero-fullscreen .hero-content {
    padding: 1.25rem;
  }

  .hero-fullscreen h1 {
    font-size: 1.72rem;
  }

  .rush-sale-arrow {
    width: 34px;
    height: 34px;
    font-size: 1.1rem;
  }
  .rush-sale-arrow-left { left: 4px; }
  .rush-sale-arrow-right { right: 4px; }

  .rush-sale-card-wrap {
    width: 82vw;
    min-width: 82vw;
  }
}

/* Carousel on property detail page */
#propertyCarousel {
  position: relative;
  width: 100%;
}

#propertyCarousel .carousel-inner {
  position: relative;
  width: 100%;
  overflow: hidden;
}

#propertyCarousel .carousel-item {
  position: relative;
  display: none;
  width: 100%;
  transition: transform 0.6s ease-in-out, opacity 0.6s ease-in-out;
}

#propertyCarousel .carousel-item.active {
  display: block;
}

#propertyCarousel .carousel-item img {
  width: 100%;
  height: auto;
  display: block;
}

/* Ensure transitional carousel classes are visible during animation */
#propertyCarousel .carousel-item.carousel-item-next,
#propertyCarousel .carousel-item.carousel-item-prev,
#propertyCarousel .carousel-item.carousel-item-start,
#propertyCarousel .carousel-item.carousel-item-end {
  display: block;
}

#propertyCarousel .carousel-control-prev,
#propertyCarousel .carousel-control-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: auto;
  height: auto;
  z-index: 10;
  pointer-events: auto;
  background: transparent;
  border: none;
  padding: 0;
}

#propertyCarousel .carousel-control-prev {
  left: 10px;
}

#propertyCarousel .carousel-control-next {
  right: 10px;
}

#propertyCarousel .carousel-control-prev-icon,
#propertyCarousel .carousel-control-next-icon {
  width: 2.5rem;
  height: 2.5rem;
  background-color: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  background-size: 60% 60%;
  background-repeat: no-repeat;
  background-position: center;
  outline: none;
  border: none;
}

#propertyCarousel .carousel-control-prev-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='%23000000' viewBox='0 0 16 16'%3e%3cpath d='M11.354 1.646a.5.5 0 0 1 0 .708L5.707 8l5.647 5.646a.5.5 0 0 1-.708.708l-6-6a.5.5 0 0 1 0-.708l6-6a.5.5 0 0 1 .708 0z'/%3e%3c/svg%3e");
}

#propertyCarousel .carousel-control-next-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='%23000000' viewBox='0 0 16 16'%3e%3cpath d='M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

/* Modal-style layout for property details page */
body.page-properties {
  background: var(--bg-light);
}

body.page-properties .page-content {
  padding-top: 1.5rem;
  padding-bottom: 3rem;
}

.property-detail-overlay {
  min-height: calc(100vh - 100px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

/* Ensure property detail modal sits below the fixed header and sticky card accounts for header height */
body.page-properties .property-detail-overlay {
  padding-top: var(--navbar-h); /* auto-adjusts with navbar height */
  box-sizing: border-box;
}

/* ensure standalone pages like verify-email have top padding below fixed navbar */
body.page-contact .main-wrapper,
body.page-about .main-wrapper,
body.page-services .main-wrapper,
body.page-reviews .main-wrapper {
  padding-top: 72px;
}

body.page-contact .main-wrapper,
body.page-about .main-wrapper,
body.page-reviews .main-wrapper,
body.page-seller .main-wrapper,
body.page-verify .main-wrapper,
body.page-conversations .main-wrapper,
body.page-property-list .main-wrapper {
  padding-top: 112px;
}

@media (max-width: 991.98px) {
  body.page-contact .main-wrapper,
  body.page-about .main-wrapper,
  body.page-reviews .main-wrapper,
  body.page-seller .main-wrapper,
  body.page-verify .main-wrapper,
  body.page-services .main-wrapper,
  body.page-conversations .main-wrapper,
  body.page-property-list .main-wrapper {
    padding-top: 90px;
  }

  body.page-properties .property-detail-overlay {
    padding-top: var(--navbar-h);
  }

  .property-detail-modal .card.sticky-top,
  body.page-properties .card.sticky-top {
    top: calc(var(--navbar-h) + 0.75rem);
  }
}

body.page-properties .property-detail-modal {
  margin-top: 0;
  z-index: 1040; /* keep above regular content but below header if needed */
}

/* Offset sticky cards so they don't hide under the fixed header */
.property-detail-modal .card.sticky-top,
body.page-properties .card.sticky-top {
  position: sticky;
  top: calc(var(--navbar-h) + 1rem);
}

.property-detail-modal {
  width: 100%;
  max-width: 1120px;
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.18);
  padding: 1.75rem 1.9rem 2.1rem;
  /* limit height when used inside a modal, allow internal scrolling */
  max-height: calc(100vh - 120px);
  overflow-y: auto;
}

.property-detail-modal-header .breadcrumb {
  font-size: 0.9rem;
}

.property-detail-close-btn {
  border-radius: 999px;
}

@media (max-width: 768px) {
  .property-detail-modal {
    padding: 1.25rem 1.25rem 1.6rem;
    border-radius: 14px;
  }
}

/* Ensure content is not hidden behind fixed navbar on detail pages */
body.page-properties .page-content {
  padding-top: 1.5rem;
}

/* Section titles */
.section-title {
  margin-bottom: 1.5rem;
  font-weight: 700;
  color: var(--dark);
}

/* Page content wrapper (for non-home pages) */
.page-content {
  padding: 2rem 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

/* Team member cards */
.team-member-card {
  background: #fff;
  border-radius: var(--card-radius);
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  border: 1px solid #e5e7eb;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.team-member-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}

/* Circular photo frame that preserves the full image (no crop or distortion) */
.team-photo-frame {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 1.25rem auto 0.5rem;
  background: var(--bg-light);
  border: 3px solid rgba(197,161,75,0.15);
  box-shadow: 0 4px 12px rgba(18,18,18,0.04);
}

.team-photo-frame img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain; /* ensure the whole photo is visible */
  display: block;
}

.team-member-card .card-body {
  padding: 1rem 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.team-name {
  margin-top: 0.5rem;
  font-size: 1.05rem;
  font-weight: 700;
}

.team-role {
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
  color: var(--secondary);
}

/* Column sizing for consistent, balanced grid */
.team-col {
  flex: 0 0 20%;
  max-width: 20%;
}

@media (max-width: 1200px) {
  .team-col { flex: 0 0 25%; max-width: 25%; }
}

@media (max-width: 768px) {
  .team-col { flex: 0 0 50%; max-width: 50%; }
  .team-photo-frame { width: 140px; height: 140px; }
}

@media (max-width: 576px) {
  .team-col { flex: 0 0 100%; max-width: 100%; }
  .team-photo-frame { width: 120px; height: 120px; }
}

/* ================================
   Admin Dashboard Layout — Light Theme
   Accents: Red #B43F3F, Orange #FF8225, Black #111
   ================================ */

body.admin-layout {
  background: #f4f6f9;
}

body.admin-layout .admin-content {
  padding: 1.6rem 1.5rem 2.1rem;
}

/* --- Admin Topbar (white, clean) --- */
.admin-topbar {
  height: 68px;
  background: #fff;
  color: #111;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
  position: sticky;
  top: 0;
  z-index: 998;
  border-bottom: 1px solid rgba(180,63,63,0.18);
}

.admin-topbar .admin-topbar-title {
  color: #111 !important;
}
.admin-topbar .admin-topbar-sub {
  color: #888 !important;
}

.admin-sidebar-toggle {
  border: none;
  background: transparent;
  font-size: 1.2rem;
  color: #B43F3F;
  padding: 0.25rem 0.5rem;
  border-radius: 0.4rem;
  transition: background 0.15s;
}
.admin-sidebar-toggle:hover {
  background: rgba(180,63,63,0.08);
}

.admin-topbar-text {
  flex: 1;
  margin-left: 1rem;
}
.admin-topbar-title {
  font-weight: 600;
  color: #111;
}

.admin-topbar-live {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-left: 0.75rem;
}

.admin-live-logo {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(168, 132, 31, 0.15);
  color: #a8841f;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.admin-live-time-wrap {
  line-height: 1.1;
}

.admin-live-time {
  font-size: 1.65rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #111;
}

.admin-live-date {
  font-size: 0.78rem;
  color: #6b7280;
  margin-top: 0.08rem;
}

.admin-topbar-weather {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #111;
}

.admin-topbar-weather i {
  color: #b8933a;
  font-size: 1.05rem;
}

.admin-weather-text {
  line-height: 1.05;
  text-align: right;
}

.admin-weather-temp {
  font-weight: 700;
}

.admin-weather-desc {
  font-size: 0.78rem;
  color: #6b7280;
}

/* --- Admin Brand Logo --- */
.admin-brand-logo {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, #FF8225, #B43F3F);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  box-shadow: 0 4px 12px rgba(255,130,37,0.25);
}

/* --- Sidebar (dark black — contrast) --- */
.admin-shell {
  display: flex;
  min-height: 100vh;
  align-items: flex-start;
}

.admin-sidebar {
  width: 260px;
  background: #111;
  color: #e5e7eb;
  display: flex;
  flex-direction: column;
  padding: 1rem 0.75rem;
  transition: width 0.2s ease-in-out;
  border-right: none;
  box-shadow: 8px 0 24px rgba(0,0,0,0.08);
  /* stick to viewport while content scrolls */
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  flex-shrink: 0;
}

.admin-sidebar-header {
  padding: 0 0.25rem 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  margin-bottom: 1rem;
}

.admin-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.admin-brand-text {
  font-weight: 600;
  font-size: 1rem;
  color: #fff;
}

.admin-sidebar-nav {
  margin-top: 0.5rem;
  flex: 1;
}

.admin-nav-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0.7rem;
  border-radius: 0.5rem;
  color: #9ca3af;
  text-decoration: none;
  font-size: 0.93rem;
  transition: background 0.15s ease, color 0.15s ease, transform 0.1s ease;
}

.admin-nav-item i {
  width: 20px;
  text-align: center;
  font-size: 0.95rem;
}

.admin-nav-item:hover {
  background: rgba(255,130,37,0.1);
  color: #FF8225;
  transform: translateX(2px);
}

.admin-nav-item.active {
  background: linear-gradient(135deg, #B43F3F, #FF8225);
  color: #fff;
  box-shadow: 0 4px 14px rgba(180,63,63,0.3);
}

.admin-nav-item.active i {
  color: #fff;
}

.admin-sidebar-footer {
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.admin-sidebar-account {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.3rem 0.45rem 0.75rem;
}

.admin-sidebar-account-avatar {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: rgba(168, 132, 31, 0.22);
  color: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  border: 1px solid rgba(255,255,255,0.2);
}

.admin-sidebar-account-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 999px;
}

.admin-sidebar-account-text {
  display: flex;
  flex-direction: column;
  line-height: 1.08;
}

.admin-sidebar-account-text small {
  color: #9ca3af;
  font-size: 0.68rem;
}

.admin-sidebar-account-text strong {
  color: #f3f4f6;
  font-size: 0.85rem;
}

.admin-main {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* --- Main content area (light) --- */
body.admin-layout .admin-main,
body.admin-layout .admin-content {
  background: #f4f6f9 !important;
  color: #222 !important;
}

.admin-content {
  padding: 1.75rem 1.5rem 2rem;
}

/* --- Cards (white, soft shadow) --- */
body.admin-layout .card {
  background: #fff !important;
  border: 1px solid rgba(0,0,0,0.06) !important;
  color: #222 !important;
  box-shadow: 0 4px 14px rgba(0,0,0,0.05) !important;
  border-radius: 14px !important;
  backdrop-filter: none;
}

body.admin-layout .card-header {
  background: #fff !important;
  border-bottom: 1px solid rgba(0,0,0,0.08) !important;
  border-top-left-radius: 14px !important;
  border-top-right-radius: 14px !important;
}

body.admin-layout .card .card-title {
  color: #B43F3F !important;
}

body.admin-layout .admin-summary-card {
  background: #fff !important;
  color: #222 !important;
}

/* --- Text colors (light theme) --- */
body.admin-layout h1,
body.admin-layout .admin-main h1,
body.admin-layout .admin-content h1 {
  color: #111 !important;
}

body.admin-layout h2,
body.admin-layout h3,
body.admin-layout h4,
body.admin-layout h5,
body.admin-layout h6 {
  color: #222 !important;
}

body.admin-layout p,
body.admin-layout .admin-main p,
body.admin-layout .admin-content p {
  color: #444 !important;
}

body.admin-layout .text-muted,
body.admin-layout p.text-muted,
body.admin-layout small.text-muted,
body.admin-layout div.text-muted,
body.admin-layout span.text-muted {
  color: #888 !important;
  opacity: 1 !important;
}

body.admin-layout small,
body.admin-layout .small {
  color: #666 !important;
}

body.admin-layout strong,
body.admin-layout b {
  color: #111 !important;
}

body.admin-layout a {
  color: #B43F3F;
}
body.admin-layout a:hover {
  color: #FF8225;
}

body.admin-layout label,
body.admin-layout .form-label {
  color: #333 !important;
}

body.admin-layout .form-text {
  color: #777 !important;
}

body.admin-layout .form-check-label {
  color: #444 !important;
}

body.admin-layout .card-title {
  color: #B43F3F !important;
}

body.admin-layout .card-body {
  color: #333 !important;
}

body.admin-layout .card-text {
  color: #444 !important;
}

body.admin-layout .display-6 {
  color: #B43F3F !important;
  font-weight: 700;
}

/* --- Links in table --- */
body.admin-layout .table a {
  color: #B43F3F !important;
}
body.admin-layout .table a:hover {
  color: #FF8225 !important;
}

/* --- HR / dividers --- */
body.admin-layout hr {
  border-color: rgba(0,0,0,0.1) !important;
  opacity: 1;
}

/* --- Borders --- */
body.admin-layout .border {
  border-color: rgba(0,0,0,0.08) !important;
}
body.admin-layout .border-top {
  border-top-color: rgba(0,0,0,0.08) !important;
}
body.admin-layout .border-bottom {
  border-bottom-color: rgba(0,0,0,0.08) !important;
}

/* --- bg-light inside admin --- */
body.admin-layout .bg-light {
  background: #f8f9fa !important;
  color: #333 !important;
}

/* --- Select dropdown options --- */
body.admin-layout select option {
  background: #fff;
  color: #222;
}

/* --- Inline form-select-sm in tables --- */
body.admin-layout .form-select-sm {
  background-color: #fff;
  border-color: #ddd;
  color: #333;
  font-size: 0.8rem;
}

/* --- Nav link text --- */
body.admin-layout .nav-link {
  color: #555;
}
body.admin-layout .nav-link:hover {
  color: #B43F3F;
}

/* --- Breadcrumbs --- */
body.admin-layout .breadcrumb-item,
body.admin-layout .breadcrumb-item a {
  color: #888 !important;
}
body.admin-layout .breadcrumb-item.active {
  color: #333 !important;
}

/* --- Pagination --- */
body.admin-layout .page-link {
  background: #fff;
  border-color: #ddd;
  color: #333;
}
body.admin-layout .page-link:hover {
  background: #fff3eb;
  color: #FF8225;
}
body.admin-layout .page-item.active .page-link {
  background: #B43F3F;
  border-color: #B43F3F;
  color: #fff;
}

/* --- Ensure all text in admin is dark --- */
body.admin-layout,
body.admin-layout .admin-content,
body.admin-layout .admin-main {
  color: #222;
}

/* --- Tables (light theme) --- */
body.admin-layout .table {
  color: #333;
  --bs-table-bg: #fff;
  --bs-table-striped-bg: #fafafa;
  --bs-table-hover-bg: #fff7f0;
  border-color: #eee;
}

body.admin-layout .table thead th {
  background: linear-gradient(135deg, #B43F3F, #c95b3b);
  color: #fff;
  border-bottom: 2px solid #9a3535;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

body.admin-layout .table td {
  border-color: #eee;
  vertical-align: middle;
  color: #333;
}

/* --- Buttons (orange primary, red hover) --- */
body.admin-layout .btn-primary {
  background: var(--primary) !important;
  border-color: var(--secondary) !important;
  color: #fff !important;
  box-shadow: 0 3px 12px rgba(168, 132, 31, 0.26);
  transition: all 0.2s ease;
  font-weight: 600;
}
body.admin-layout .btn-primary:hover {
  background: var(--secondary) !important;
  border-color: var(--secondary) !important;
  color: #fff !important;
  box-shadow: 0 4px 16px rgba(141, 108, 28, 0.33);
  transform: translateY(-1px);
}

body.admin-layout .btn-outline-primary {
  color: var(--primary) !important;
  border-color: var(--primary) !important;
  background-color: transparent !important;
  transition: all 0.2s ease;
}
body.admin-layout .btn-outline-primary:hover {
  background: var(--primary) !important;
  color: #fff !important;
  border-color: var(--primary) !important;
  transform: translateY(-1px);
}

body.admin-layout .btn-outline-danger {
  color: #ff6b6b !important;
  border-color: rgba(255,107,107,0.4) !important;
}
body.admin-layout .btn-outline-danger:hover {
  background: #B43F3F !important;
  color: #fff !important;
  border-color: #B43F3F !important;
}

body.admin-layout .btn-secondary {
  background: #f0f0f0 !important;
  border-color: #ddd !important;
  color: #444 !important;
}
body.admin-layout .btn-secondary:hover {
  background: #e0e0e0 !important;
  color: #222 !important;
}

/* Admin action button (red-orange accent) */
.admin-btn-gold {
  background: var(--primary);
  color: #fff;
  border: 1px solid var(--secondary);
  box-shadow: 0 4px 14px rgba(168, 132, 31, 0.24);
  font-weight: 600;
}
.admin-btn-gold:hover {
  background: var(--secondary);
  box-shadow: 0 6px 18px rgba(141, 108, 28, 0.32);
}

/* --- Form controls --- */
body.admin-layout .form-control,
body.admin-layout .form-select {
  background: #fff;
  border: 1px solid #ddd;
  color: #222;
  border-radius: 8px;
}
body.admin-layout .form-control::placeholder {
  color: #999;
}
body.admin-layout .form-control:focus,
body.admin-layout .form-select:focus {
  background: #fff;
  border-color: #FF8225;
  box-shadow: 0 0 0 0.2rem rgba(255,130,37,0.15);
  color: #111;
}
body.admin-layout .form-label {
  color: #333;
}
body.admin-layout .form-check-label {
  color: #444;
}

/* --- Alerts --- */
body.admin-layout .alert-success {
  background: #d1fae5;
  border-color: #6ee7b7;
  color: #065f46;
}
body.admin-layout .alert-danger {
  background: #fee2e2;
  border-color: #fca5a5;
  color: #991b1b;
}

/* --- Nav tabs --- */
body.admin-layout .nav-tabs {
  border-bottom: 2px solid #eee;
}
body.admin-layout .nav-tabs .nav-link {
  color: #888;
  border: none;
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}
body.admin-layout .nav-tabs .nav-link:hover {
  color: #B43F3F;
  border-color: rgba(180,63,63,0.3);
}
body.admin-layout .nav-tabs .nav-link.active {
  color: #B43F3F;
  background: transparent;
  border-color: #B43F3F;
  font-weight: 600;
}

body.admin-layout .admin-msg-tabs {
  border-bottom: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

body.admin-layout .admin-msg-tabs .nav-link {
  border: 1px solid rgba(180,63,63,0.2);
  border-radius: 999px;
  padding: 0.45rem 0.85rem;
  color: #6b7280;
  background: #fff;
}

body.admin-layout .admin-msg-tabs .nav-link:hover {
  border-color: rgba(180,63,63,0.45);
  color: #B43F3F;
}

body.admin-layout .admin-msg-tabs .nav-link.active {
  color: #fff;
  background: linear-gradient(135deg, #B43F3F, #FF8225);
  border-color: transparent;
}

body.admin-layout .admin-msg-tabs .nav-link.active .badge {
  background: rgba(255,255,255,0.2) !important;
  color: #fff !important;
}

.admin-ai-toggle-card {
  border: 1px solid rgba(180,63,63,0.2);
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(180,63,63,0.08);
}

body.admin-layout .form-check-input:checked {
  background-color: #B43F3F;
  border-color: #B43F3F;
}

/* Live chat page polish */
.admin-chat-layout .admin-chat-card {
  overflow: hidden;
}

#adminChatConversationList .list-group-item {
  border: 0;
  border-bottom: 1px solid #edf2f7;
  padding: 0.78rem 0.9rem;
  transition: background-color 0.15s ease, transform 0.15s ease;
}

.admin-inquiry-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 0.7rem 0.75rem;
  border-bottom: 1px solid #edf2f7;
  background: #fffdfb;
}

.admin-inquiry-chip {
  border: 1px solid rgba(180,63,63,0.2);
  background: #fff;
  color: #6b7280;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 600;
  padding: 0.26rem 0.62rem;
  line-height: 1.2;
}

.admin-inquiry-chip .badge {
  margin-left: 0.3rem;
  background: rgba(15, 23, 42, 0.08);
  color: #334155;
  font-size: 0.68rem;
}

.admin-inquiry-chip:hover {
  border-color: rgba(180,63,63,0.45);
  color: #B43F3F;
}

.admin-inquiry-chip.active {
  background: linear-gradient(135deg, #B43F3F, #FF8225);
  border-color: transparent;
  color: #fff;
}

.admin-inquiry-chip.active .badge {
  background: rgba(255,255,255,0.24);
  color: #fff;
}

#adminChatConversationList .list-group-item:hover {
  background: #fff7f0;
  transform: translateX(2px);
}

#adminChatConversationList .list-group-item.active {
  background: linear-gradient(135deg, #B43F3F, #FF8225);
  border-color: transparent;
  color: #fff;
}

#adminChatConversationList .list-group-item.active,
#adminChatConversationList .list-group-item.active * {
  color: #fff !important;
}

#adminChatConversationList .list-group-item.active .small,
#adminChatConversationList .list-group-item.active .text-muted,
#adminChatConversationList .list-group-item.active .text-white-50,
#adminChatConversationList .list-group-item.active .fw-semibold {
  color: #fff !important;
  opacity: 1 !important;
}

#adminChatConversationList .list-group-item .badge.bg-light {
  background: rgba(255,130,37,0.12) !important;
  border-color: rgba(180,63,63,0.18) !important;
}

#adminChatConversationList .list-group-item.active .badge.bg-light {
  background: rgba(255,255,255,0.2) !important;
  color: #fff !important;
  border-color: rgba(255,255,255,0.4) !important;
}

.admin-chat-thread {
  background: linear-gradient(180deg, #f8fafc, #f1f5f9);
}

/* Cross-device media consistency */
.about-media-video {
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  max-height: 500px;
  object-fit: cover;
  display: block;
}

.about-media-image {
  width: 100%;
  height: min(420px, 50vw);
  min-height: 220px;
  object-fit: cover;
  display: block;
}

.admin-chat-body {
  min-height: 520px;
}

@media (max-width: 991.98px) {
  .about-media-video {
    max-height: none;
    aspect-ratio: 16 / 9;
  }

  .about-media-image {
    height: min(360px, 56vw);
  }

  .admin-chat-body {
    min-height: 430px;
  }
}

@media (max-width: 575.98px) {
  .about-media-image {
    height: 240px;
  }

  .admin-chat-body {
    min-height: 360px;
  }

  .admin-topbar {
    padding: 0 0.85rem;
  }

  .admin-live-time {
    font-size: 1rem;
  }

  .admin-live-date,
  .admin-weather-desc {
    font-size: 0.68rem;
  }

  .admin-topbar-live {
    gap: 0.45rem;
    margin-left: 0.55rem;
  }

  .admin-live-logo {
    width: 28px;
    height: 28px;
    border-radius: 7px;
    font-size: 0.82rem;
  }

  .admin-topbar-weather {
    gap: 0.35rem;
  }

  .admin-content {
    padding: 1rem 0.75rem 1.4rem;
  }
}

body.admin-layout .admin-panel {
  box-shadow: 0 4px 14px rgba(0,0,0,0.05);
}

body.admin-layout .admin-activity-list li {
  padding: 0.55rem 0;
  border-bottom: 1px solid #f1f5f9;
}

body.admin-layout .admin-activity-list li:last-child {
  border-bottom: 0;
}

/* --- Sidebar collapsed --- */
body.admin-layout.admin-sidebar-collapsed .admin-sidebar {
  width: 80px;
}
body.admin-layout.admin-sidebar-collapsed .admin-nav-item span,
body.admin-layout.admin-sidebar-collapsed .admin-brand-text {
  display: none;
}
body.admin-layout.admin-sidebar-collapsed .admin-brand-logo {
  margin: 0 auto;
}

@media (max-width: 991.98px) {
  .admin-shell {
    flex-direction: column;
  }
  .admin-sidebar {
    position: fixed;
    top: 68px;
    bottom: 0;
    left: 0;
    transform: translateX(-100%);
    z-index: 999;
  }
  body.admin-layout.admin-sidebar-open .admin-sidebar {
    transform: translateX(0);
  }
}

/* --- Summary cards grid --- */
.admin-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}

.admin-summary-card {
  background: #fff;
  border-radius: 14px;
  padding: 1.25rem 1.3rem;
  display: flex;
  gap: 1rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  border: 1px solid rgba(0,0,0,0.05);
  transition: transform 0.2s, box-shadow 0.2s;
}
.admin-summary-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

/* Admin chat thread (emails.php?filter=chat) */
.admin-chat-thread {
  max-height: 460px;
  overflow-y: auto;
  background: #f6f8fc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 14px;
}

.admin-chat-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 12px;
}

.admin-chat-section {
  display: flex;
  justify-content: center;
  margin: 0.35rem 0 0.55rem;
}

.admin-chat-section span {
  display: inline-flex;
  align-items: center;
  padding: 0.24rem 0.62rem;
  border-radius: 999px;
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #92400e;
  background: #ffedd5;
  border: 1px solid #fdba74;
}

.admin-chat-row.is-client {
  justify-content: flex-start;
}

.admin-chat-row.is-admin {
  justify-content: flex-end;
}

.admin-chat-bubble {
  width: fit-content;
  max-width: 82%;
  border-radius: 14px;
  padding: 11px 13px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
  font-size: 0.92rem;
  line-height: 1.45;
  word-break: break-word;
}

.admin-chat-bubble.bubble-client {
  background: #ffffff;
  border: 1px solid #dbe3ef;
}

.admin-chat-bubble.bubble-admin {
  background: #e9efff;
  border: 1px solid #c4d6ff;
}

.admin-chat-row:last-child {
  margin-bottom: 0;
}

.admin-chat-bubble .small.fw-semibold {
  color: #334155;
  letter-spacing: 0.01em;
}

.chat-avatar {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  border: 1px solid rgba(15, 23, 42, 0.1);
  flex: 0 0 34px;
}

.chat-avatar-client {
  background: #ffffff;
  color: #334155;
}

.chat-avatar-admin {
  background: #dbeafe;
  color: #1e40af;
}

.admin-summary-icon-wrap {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bg-soft-primary {
  background: rgba(255, 130, 37, 0.15);
  color: #FF8225;
}

.bg-soft-info {
  background: rgba(59, 130, 246, 0.12);
  color: #60a5fa;
}

.bg-soft-warning {
  background: rgba(249, 115, 22, 0.14);
  color: #fb923c;
}

.bg-soft-danger {
  background: rgba(180, 63, 63, 0.15);
  color: #ff6b6b;
}

.admin-summary-icon {
  font-size: 1.3rem;
}

.admin-summary-body {
  flex: 1;
}

.admin-summary-label {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #888;
  margin-bottom: 0.25rem;
}

.admin-summary-value {
  font-size: 1.7rem;
  font-weight: 700;
  color: #111;
  margin-bottom: 0.35rem;
}

.admin-summary-link {
  font-size: 0.85rem;
  color: #FF8225;
  text-decoration: none;
}
.admin-summary-link:hover {
  text-decoration: underline;
  color: #ffab5e;
}

/* --- Admin panels & lists --- */
.admin-panel {
  background: #fff;
  border-radius: 14px;
  padding: 1.2rem 1.3rem 1.3rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  border: 1px solid rgba(0,0,0,0.05);
}

.admin-panel-header {
  margin-bottom: 0.75rem;
}

.admin-panel-title {
  font-size: 1rem;
  font-weight: 600;
  color: #111;
  margin: 0;
}

.admin-panel-subtitle {
  font-size: 0.85rem;
  color: #888;
}

.admin-activity-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.admin-activity-list li {
  display: flex;
  gap: 0.75rem;
  padding: 0.4rem 0;
}

.admin-activity-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  margin-top: 0.45rem;
}

.admin-activity-content {
  flex: 1;
}

.admin-activity-title {
  font-size: 0.92rem;
  font-weight: 500;
  color: #444;
}

/* =============================================
   Admin Glassmorphism Modal (light frosted glass)
   ============================================= */
body.admin-layout .modal-backdrop {
  background: rgba(0,0,0,0.35) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
}

body.admin-layout .modal-content {
  background: rgba(255,255,255,0.92) !important;
  backdrop-filter: blur(20px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
  border: 1px solid rgba(180,63,63,0.12) !important;
  border-radius: 16px !important;
  box-shadow: 0 24px 64px rgba(0,0,0,0.15), inset 0 1px 0 rgba(255,255,255,0.5) !important;
  color: #222 !important;
}

body.admin-layout .modal-header {
  border-bottom: 1px solid #eee;
  color: #111;
}
body.admin-layout .modal-header .modal-title {
  color: #B43F3F;
  font-weight: 700;
}
body.admin-layout .modal-header .btn-close {
  filter: none;
}

body.admin-layout .modal-footer {
  border-top: 1px solid #eee;
}

body.admin-layout .modal-body {
  color: #333;
}
body.admin-layout .modal-body .form-label {
  color: #444;
}

/* =============================================
   Admin Bulk Select
   ============================================= */
.bulk-actions-bar {
  display: none;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 1.25rem;
  background: linear-gradient(135deg, rgba(180,63,63,0.08), rgba(255,130,37,0.08));
  border: 1px solid rgba(180,63,63,0.15);
  border-radius: 12px;
  margin-bottom: 1rem;
  animation: fadeInBar 0.3s ease;
}
.bulk-actions-bar.show {
  display: flex;
}
.bulk-actions-bar .bulk-count {
  color: #B43F3F;
  font-weight: 700;
  font-size: 0.95rem;
}
.bulk-actions-bar .btn-bulk-delete {
  background: #B43F3F;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 0.4rem 1.2rem;
  font-weight: 600;
  font-size: 0.85rem;
  transition: background 0.2s, transform 0.1s;
}
.bulk-actions-bar .btn-bulk-delete:hover {
  background: #d15151;
  transform: translateY(-1px);
}
.bulk-actions-bar .btn-bulk-cancel {
  background: transparent;
  color: #888;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 0.4rem 1rem;
  font-size: 0.85rem;
  cursor: pointer;
  transition: color 0.15s;
}
.bulk-actions-bar .btn-bulk-cancel:hover {
  color: #222;
}

@keyframes fadeInBar {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

body.admin-layout .form-check-input {
  background-color: #fff;
  border-color: #ccc;
}
body.admin-layout .form-check-input:checked {
  background-color: #B43F3F;
  border-color: #B43F3F;
}

/* --- Login page styles (kept) --- */
html, body { height: 100%; }

body:not(.admin-layout) {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
.main-wrapper { flex: 1 0 auto; }
.site-footer { margin-top: auto; }

.admin-login-viewport { min-height: 100vh; display: flex; }

.admin-login-left {
  flex: 1;
  padding: 6rem 5rem;
  color: #fff;
  background: linear-gradient(135deg, #000 0%, #1a0a0a 40%, #8B0000 80%, #B43F3F 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  min-height: 100vh;
}

.admin-login-right {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, rgba(0,0,0,0.70), rgba(20,10,10,0.45));
}

.admin-login-card {
  width: 420px;
  background: rgba(6,6,6,0.6);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 18px 50px rgba(0,0,0,0.6);
  border: 1px solid rgba(255,130,37,0.1);
  color: #fff;
}
.admin-login-brand { font-size: 2rem; font-weight:800; color: #fff; }
.admin-login-features { margin: 1rem auto; color: rgba(255,255,255,0.9); font-size: 1rem; padding-left: 0; display: inline-block; text-align: left; }
.admin-login-features li { list-style:none; padding-left:18px; position:relative; margin-bottom:0.6rem; }
.admin-login-features li::before { content:'\2022'; color:#FF8225; position:absolute; left:0; top:0; font-size:1.1rem; }

.admin-login-logo {
  width: 500px !important;
  max-width: 100%;
  height: auto !important;
  display: block;
  margin: 0 auto 10px !important;
  border-radius: 6px;
  box-shadow: 0 6px 14px rgba(0,0,0,0.28);
}

.admin-login-card .form-control {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,130,37,0.2);
  color: #fff;
  border-radius: 8px;
  padding: 10px 12px;
}
.admin-login-card .form-control::placeholder { color: rgba(255,255,255,0.4); }
.admin-login-card .form-control:focus {
  box-shadow: 0 0 0 0.2rem rgba(255,130,37,0.2);
  border-color: #FF8225;
}

@media (max-width: 900px) {
  .admin-login-viewport { flex-direction: column; }
  .admin-login-left, .admin-login-right { width:100%; padding: 2rem; }
  .admin-login-card { width:100%; max-width:480px; }
}

/* ===== Admin Login Split Card ===== */
.admin-login-body { margin:0; min-height:100vh; background:var(--bg-light); display:flex; align-items:center; justify-content:center; padding:2rem; }
.admin-login-viewport { min-height:auto; width:100%; max-width:920px; justify-content:center; align-items:center; }
.admin-login-split-card {
  display: flex;
  width: 100%;
  max-width: 880px;
  min-height: 480px;
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 20px 56px rgba(107, 82, 26, 0.16);
  overflow: hidden;
  border: 1px solid rgba(168, 132, 31, 0.24);
}
.admin-login-split-left {
  flex: 0 0 42%;
  background: linear-gradient(160deg, #8d6c1c 0%, #a8841f 58%, #c9a64a 100%);
  color: #ffffff;
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}
.admin-login-split-logo-wrap {
  width: 80px; height: 80px; border-radius: 50%;
  background: rgba(255,255,255,0.2);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.25rem;
  border: 1px solid rgba(255,255,255,0.45);
}
.admin-login-split-logo { max-width:64px; max-height:64px; object-fit:contain; border-radius:50%; }
.admin-login-split-title { font-size:1.5rem; font-weight:800; color:#fff; margin:0 0 0.25rem; }
.admin-login-split-subtitle { font-size:0.9rem; color:rgba(255,255,255,0.9); margin-bottom:1.5rem; }
.admin-login-split-features { list-style:none; padding:0; margin:0; text-align:left; width:100%; max-width:240px; }
.admin-login-split-features li { display:flex; align-items:center; gap:0.6rem; margin-bottom:0.6rem; font-size:0.9rem; color:rgba(255,255,255,0.95); }
.admin-login-check { width:22px; height:22px; border-radius:50%; background:rgba(255,255,255,0.25); display:inline-flex; align-items:center; justify-content:center; font-size:0.65rem; flex-shrink:0; }
.admin-login-split-right {
  flex: 1;
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #ffffff;
}
.admin-login-welcome { font-size:1.75rem; font-weight:700; color:var(--dark); margin-bottom:0.25rem; }
.admin-login-welcome-sub { font-size:0.95rem; color:var(--text-muted); margin-bottom:1.5rem; }
.admin-login-form .form-label { font-size:0.9rem; color:var(--dark); font-weight:600; }
.admin-login-input { border-radius:10px; border:1px solid rgba(168, 132, 31, 0.38); padding:0.6rem 0.85rem; font-size:0.95rem; background:#ffffff; color:var(--dark); }
.admin-login-input::placeholder { color: #8a93a3; }
.admin-login-input:focus { border-color:var(--primary); box-shadow:0 0 0 0.2rem rgba(168, 132, 31, 0.16); }
.admin-login-forgot { font-size:0.875rem; color:var(--primary); text-decoration:none; }
.admin-login-forgot:hover { color:var(--secondary); text-decoration:underline; }
.admin-login-btn-signin {
  width:100%; padding:0.75rem 1rem; border-radius:10px; font-weight:700; font-size:1rem; border:none;
  color:#fff; background:linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  box-shadow:0 4px 14px rgba(141, 108, 28, 0.32); transition:all 0.2s;
}
.admin-login-btn-signin:hover { background:linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%); transform:translateY(-1px); color:#fff; }
.admin-login-back a { font-size:0.9rem; color:var(--text-muted); text-decoration:none; }
.admin-login-back a:hover { color:var(--primary); }

@media (max-width: 768px) {
  .admin-login-split-card { flex-direction:column; min-height:auto; }
  .admin-login-split-left { flex:none; padding:2rem 1.5rem; }
  .admin-login-split-right { padding:2rem 1.5rem; }
}

/* Default cards on public pages keep white */
.card {
  background: #ffffff;
  border: 1px solid rgba(0,0,0,0.06);
  color: var(--dark);
  border-radius: 12px;
}

.admin-summary-card,
.card {
  border-radius: 14px;
}

/* ================================
   Property Detail Modal (AJAX popup)
   ================================ */
.pd-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(12, 18, 28, 0.38);
  backdrop-filter: blur(8px) saturate(125%);
  -webkit-backdrop-filter: blur(8px) saturate(125%);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  padding: 16px;
}
.pd-modal-overlay.pd-show {
  opacity: 1;
  pointer-events: auto;
}

.pd-modal {
  position: relative;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.52);
  backdrop-filter: blur(8px) saturate(135%);
  -webkit-backdrop-filter: blur(8px) saturate(135%);
  border-radius: 14px;
  width: 100%;
  max-width: 880px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 28px 70px rgba(8, 15, 25, 0.35), 0 0 0 1px rgba(255,255,255,0.24), inset 0 1px 0 rgba(255,255,255,0.35);
  animation: pdSlideUp 0.35s ease;
}
.pd-modal::-webkit-scrollbar { width: 6px; }
.pd-modal::-webkit-scrollbar-thumb { background: #ccc; border-radius: 6px; }
.pd-modal::-webkit-scrollbar-thumb:hover { background: #aaa; }
@keyframes pdSlideUp {
  from { transform: translateY(30px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

.pd-modal-close {
  position: absolute;
  top: 40px;
  right: 16px;
  z-index: 10;
  background: rgba(0,0,0,0.5);
  color: #fff;
  border: none;
  font-size: 1.5rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  line-height: 1;
}
.pd-modal-close:hover {
  background: rgba(0,0,0,0.75);
  transform: scale(1.1);
}

@media (max-width: 575.98px) {
  .pd-modal-close {
    top: 56px;
    right: 14px;
  }
}

.pd-modal-body {
  padding: 0;
}

.pd-modal-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 250px;
}

/* Gallery slider */
.pd-gallery {
  position: relative;
  overflow: hidden;
  border-radius: 14px 14px 0 0;
}
/* pd-gallery-main is now a DIV wrapper; the inner img/video is .pd-gallery-main-el */
.pd-gallery-main {
  width: 100%;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pd-gallery-main-el {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* Images keep zoom cursor; videos should not */
.pd-gallery-main img.pd-gallery-main-el { cursor: zoom-in; }
.pd-gallery-main video.pd-gallery-main-el { object-fit: contain; cursor: default; }
.pd-gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.85);
  color: #333;
  border: none;
  font-size: 1.5rem;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 50%;
  transition: background 0.2s, box-shadow 0.2s;
  z-index: 3;
  line-height: 1;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.pd-gallery-nav:hover {
  background: #fff;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}
.pd-gallery-prev { left: 10px; }
.pd-gallery-next { right: 10px; }
.pd-gallery-counter {
  position: absolute;
  bottom: 12px;
  right: 14px;
  background: rgba(0,0,0,0.5);
  color: #fff;
  font-size: 0.78rem;
  padding: 4px 12px;
  border-radius: 20px;
  z-index: 3;
  font-weight: 500;
  letter-spacing: 0.03em;
}

/* Thumbnails strip */
.pd-thumbs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 10px 20px;
  background: #f9f9f9;
}
.pd-thumbs::-webkit-scrollbar { height: 3px; }
.pd-thumbs::-webkit-scrollbar-thumb { background: #ccc; border-radius: 4px; }
.pd-thumb {
  flex: 0 0 auto;
  width: 64px;
  height: 48px;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color 0.2s, opacity 0.2s, transform 0.2s;
  opacity: 0.55;
}
.pd-thumb.active,
.pd-thumb:hover {
  border-color: var(--primary);
  opacity: 1;
  transform: scale(1.05);
}
.pd-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* Video thumbnail placeholder */
.pd-thumb-video {
  background: #111;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.4rem;
}

/* Content area below gallery */
.pd-content {
  padding: 20px 24px 24px;
}

/* Info block */
.pd-info-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
}
.pd-info-header h2 {
  font-size: 1.35rem;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0;
  flex: 1 1 0;
  min-width: 180px;
  line-height: 1.3;
}
.pd-price {
  font-size: 1.35rem;
  font-weight: 700;
  color: #1a1a1a;
  white-space: nowrap;
}
.pd-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}
.pd-meta .badge {
  font-size: 0.78rem;
  font-weight: 500;
  padding: 5px 12px;
  border-radius: 20px;
}
.pd-description-section {
  margin-top: 16px;
}
.pd-description-section h5 {
  font-size: 1rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 8px;
}
.pd-description {
  line-height: 1.75;
  color: #555;
  white-space: pre-line;
  font-size: 0.92rem;
}
.pd-area-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 6px;
}
.pd-area-badges .badge {
  font-size: 0.82rem;
  padding: 6px 14px;
  border-radius: 20px;
}
.pd-divider {
  border: none;
  border-top: 1px solid #000;
  margin: 16px 0;
}
.pd-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid #000;
}
.pd-actions .btn {
  flex: 1 1 auto;
  min-width: 140px;
  border-radius: 8px;
  font-weight: 500;
  padding: 10px 18px;
}

/* Lightbox (fullscreen single image) */
.pd-lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 10001;
  background: rgba(0,0,0,0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
}
.pd-lightbox-overlay img {
  max-width: 95vw;
  max-height: 92vh;
  object-fit: contain;
  border-radius: 4px;
}
.pd-lightbox-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 2.2rem;
  cursor: pointer;
}
.pd-lightbox-prev,
.pd-lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.15);
  border: none;
  color: #fff;
  font-size: 2rem;
  padding: 8px 16px;
  cursor: pointer;
  border-radius: 6px;
  transition: background 0.2s;
}
.pd-lightbox-prev:hover,
.pd-lightbox-next:hover { background: rgba(255,255,255,0.3); }
.pd-lightbox-prev { left: 14px; }
.pd-lightbox-next { right: 14px; }

/* Body no-scroll when modal open */
body.pd-modal-open {
  overflow: hidden !important;
}

/* Signed-in client chat widget */
.client-chat-widget {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 2147483000;
  display: flex;
  align-items: center;
  gap: 10px;
  pointer-events: auto !important;
}

.client-chat-widget,
.client-chat-widget * {
  pointer-events: auto !important;
}

.client-chat-widget.client-chat-expanded .client-chat-pill,
.client-chat-widget.client-chat-expanded .client-chat-fab {
  opacity: 0;
  pointer-events: none !important;
}

.client-chat-pill {
  border: none;
  background: #ffffff;
  color: #2d2d2d;
  border-radius: 12px;
  padding: 9px 16px;
  font-weight: 600;
  box-shadow: 0 8px 20px rgba(0,0,0,0.18);
}

.client-chat-unread-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: #dc2626;
  color: #fff;
  font-size: 0.72rem;
  margin-left: 8px;
}

.client-chat-fab {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: none;
  background: #3b49df;
  color: #fff;
  font-size: 1.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 24px rgba(59,73,223,0.35);
  position: relative;
}

.client-chat-unread-dot {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ef4444;
  border: 2px solid #fff;
}

.client-chat-panel {
  position: absolute;
  right: 0;
  bottom: 66px;
  width: min(340px, calc(100vw - 24px));
  height: min(560px, calc(100vh - 110px));
  max-height: min(560px, calc(100vh - 110px));
  background: #fff;
  border: 1px solid #d7deea;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 14px 34px rgba(0,0,0,0.2);
  display: flex;
  flex-direction: column;
}

.client-chat-panel.client-chat-panel-expanded {
  width: min(720px, calc(100vw - 24px));
  max-height: min(82vh, calc(100vh - 32px));
  bottom: 68px;
}

.client-chat-header {
  background: #f0f2f5;
  padding: 14px 14px 10px;
}

.client-chat-header p {
  font-size: 1.05rem;
  color: #0f172a;
}

.client-chat-header span {
  color: #1f2937;
  font-size: 0.86rem;
}

.client-chat-close,
.client-chat-control {
  border: none;
  background: transparent;
  color: #334155;
  width: 28px;
  height: 28px;
  border-radius: 999px;
}

.client-chat-close:hover,
.client-chat-control:hover {
  background: rgba(15, 23, 42, 0.08);
}

.client-chat-body {
  flex: 1 1 0;
  min-height: 0;
  overflow-y: auto;
  padding: 12px;
  background: #ffffff;
}

.client-chat-messages {
  display: flex;
  flex-direction: column;
}

.client-chat-row {
  display: flex;
  align-items: flex-end;
  gap: 8px;
}

.client-chat-row-user {
  justify-content: flex-end;
  flex-direction: row-reverse;
}

.client-chat-row-admin {
  justify-content: flex-start;
}

.client-chat-jump-latest {
  border: 1px solid #dbe4ef;
  background: #f8fbff;
  color: #1e3a8a;
  border-radius: 999px;
  font-size: 0.77rem;
  padding: 0.3rem 0.65rem;
  margin: 0 auto 0.55rem;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.client-chat-faqs {
  display: grid;
  gap: 8px;
  padding: 10px 12px 12px;
  border-bottom: 1px solid #e8edf5;
  background: #f8fbff;
  flex-shrink: 0;
}

.client-chat-faqs-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2px;
}

.client-chat-faqs-header span {
  font-size: 0.8rem;
  font-weight: 700;
  color: #475569;
  letter-spacing: 0.02em;
}

.client-chat-faqs-hide {
  border: none;
  background: transparent;
  color: #64748b;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.client-chat-faqs-hide:hover {
  background: rgba(15, 23, 42, 0.08);
  color: #334155;
}

.client-chat-faq-btn {
  width: 100%;
  border: 1px solid #d7deea;
  background: #fff;
  color: #1d4ed8;
  text-align: left;
  border-radius: 10px;
  padding: 9px 10px;
  font-size: 0.86rem;
}

.client-chat-faq-btn:hover {
  background: #f8fbff;
  color: #1e40af;
}

.client-chat-bubble {
  max-width: 86%;
  border-radius: 12px;
  padding: 9px 11px;
  margin-bottom: 10px;
  font-size: 0.9rem;
  line-height: 1.45;
}

.client-chat-meta {
  margin-bottom: 4px;
}

.client-chat-sender {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #475569;
}

.client-chat-bubble-bot {
  background: #f1f5f9;
  color: #0f172a;
}

.client-chat-bubble-user {
  background: #dbeafe;
  color: #1e3a8a;
  margin-left: auto;
}

.client-chat-image {
  display: block;
  max-width: 220px;
  max-height: 220px;
  border-radius: 10px;
  border: 1px solid #dbe4ef;
  margin-top: 8px;
}

.client-chat-attachments {
  display: grid;
  gap: 8px;
  margin-top: 8px;
}

.client-chat-video {
  display: block;
  width: 220px;
  max-width: 100%;
  border-radius: 10px;
  border: 1px solid #dbe4ef;
  background: #000;
}

.client-chat-typing {
  font-style: italic;
  opacity: 0.9;
}

.client-chat-typing-label {
  font-size: 0.78rem;
  color: #64748b;
  margin-top: 6px;
}

.admin-chat-image {
  max-width: 260px;
  max-height: 220px;
  border: 1px solid #dbe4ef;
}

.admin-chat-video {
  max-width: 320px;
  width: 100%;
  border: 1px solid #dbe4ef;
  background: #000;
}

.client-conv-thread {
  min-height: 420px;
  max-height: min(62vh, 640px);
  overflow-y: auto;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #fff;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

body.page-conversations .client-conv-layout {
  margin-top: 0.35rem !important;
}

body.page-conversations .client-conv-tabs {
  border-bottom: 1px solid rgba(160, 124, 36, 0.28);
  gap: 0.35rem;
  margin-bottom: 1rem !important;
  flex-wrap: wrap;
}

body.page-conversations .client-conv-tabs .nav-link {
  border: 1px solid transparent;
  border-radius: 999px;
  color: #5b6472;
  font-weight: 600;
  padding: 0.42rem 0.88rem;
  font-size: 0.9rem;
}

body.page-conversations .client-conv-tabs .nav-link:hover {
  border-color: rgba(160, 124, 36, 0.35);
  color: #8b6b1f;
}

body.page-conversations .client-conv-tabs .nav-link.active {
  background: rgba(160, 124, 36, 0.11);
  border-color: rgba(160, 124, 36, 0.55);
  color: #8b6b1f;
}

.client-conv-row {
  display: flex;
  align-items: flex-end;
  gap: 8px;
}

.client-conv-row-admin {
  justify-content: flex-start;
}

.client-conv-row-user {
  justify-content: flex-end;
  flex-direction: row-reverse;
}

.client-conv-bubble {
  width: fit-content;
  max-width: min(88%, 760px);
  border: 1px solid #e6edf7;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.04);
  margin-bottom: 0;
}

.client-conv-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.38rem;
}

.client-conv-sender {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #475569;
}

.client-conv-source {
  display: inline-flex;
  align-items: center;
  border: 1px solid #d7deea;
  border-radius: 999px;
  padding: 0.08rem 0.46rem;
  font-size: 0.72rem;
  color: #475569;
  background: #f8fafc;
}

.client-conv-time {
  margin-left: auto;
  font-size: 0.72rem;
  color: #64748b;
}

.client-conv-text {
  white-space: pre-wrap;
  word-break: break-word;
}

.client-conv-empty {
  min-height: 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  color: #64748b;
  text-align: center;
}

.client-conv-empty i {
  font-size: 1.25rem;
  color: #94a3b8;
}

body.page-conversations .client-conv-compose {
  border: 1px solid rgba(160, 124, 36, 0.32);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  display: flex;
  flex-direction: row;
  align-items: stretch;
}

/* Input takes all remaining space */
.client-conv-input {
  flex: 1 1 0;
  min-width: 0;
  border: none !important;
  border-left: 1px solid rgba(160, 124, 36, 0.24) !important;
  border-radius: 0 !important;
  padding: 0.55rem 0.85rem;
  font-size: 0.95rem;
  color: #111;
  background: #fff;
  outline: none;
  box-shadow: none !important;
}
.client-conv-input:focus {
  background: #fff;
}
.client-conv-input::placeholder { color: #9ca3af; }

/* Actions div (attach + send) sit inline on desktop */
.client-conv-actions {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  flex-shrink: 0;
}

.client-conv-attach-btn {
  min-width: 44px;
  border-radius: 0 !important;
  border: none !important;
  border-left: 1px solid rgba(160, 124, 36, 0.24) !important;
}

.client-conv-send {
  min-width: 80px;
  border-radius: 0 !important;
  border: none !important;
  border-left: 1px solid rgba(160, 124, 36, 0.24) !important;
}

.client-conv-hint {
  min-height: 1.25rem;
  padding-left: 0.1rem;
}

.client-chat-quick-wrap {
  display: grid;
  gap: 8px;
}

.client-chat-quick {
  width: 100%;
  border: 1px solid #d7deea;
  background: #fff;
  color: #1d4ed8;
  text-align: left;
  border-radius: 10px;
  padding: 9px 10px;
  font-size: 0.88rem;
}

.client-chat-quick:hover {
  background: #f8fbff;
  color: #1e40af;
}

.client-chat-input-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  border-top: 1px solid #e2e8f0;
  padding: 10px;
  background: #fff;
}

.client-chat-category {
  max-width: 148px;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  padding: 8px 10px;
  font-size: 0.82rem;
  background: #fff;
  color: #1e293b;
}

.client-chat-category:focus {
  border-color: #3b49df;
  box-shadow: 0 0 0 3px rgba(59,73,223,0.15);
  outline: none;
}

.client-chat-attach {
  width: 36px;
  height: 36px;
  border: 1px solid #cbd5e1;
  border-radius: 50%;
  background: #fff;
  color: #334155;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.client-chat-attach:hover {
  border-color: #3b49df;
  color: #3b49df;
}

.client-chat-input {
  flex: 1;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 0.9rem;
  outline: none;
}

.client-chat-input:focus {
  border-color: #3b49df;
  box-shadow: 0 0 0 3px rgba(59,73,223,0.15);
}

.client-chat-send {
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.client-chat-send:hover {
  background: var(--secondary);
}

@media (max-width: 767.98px) {
  body.page-conversations .client-conv-tabs .nav-link {
    font-size: 0.83rem;
    padding: 0.34rem 0.72rem;
  }

  .client-conv-thread {
    min-height: 180px;
    max-height: clamp(180px, 42dvh, 400px);
    padding: 0.78rem;
  }

  .client-conv-bubble {
    max-width: 94%;
    padding: 8px 10px;
  }

  .client-conv-time {
    width: 100%;
    margin-left: 0;
  }

  /* ── Mobile compose: input full-width on top, buttons row below ── */
  body.page-conversations .client-conv-compose {
    flex-direction: column;
    position: sticky;
    bottom: 0;
    z-index: 35;
    background: #ffffff;
    box-shadow: 0 -6px 14px rgba(15, 23, 42, 0.06);
    margin-bottom: 0;
    border-radius: 12px 12px 0 0;
  }

  /* Input full-width row */
  .client-conv-input {
    flex: none !important;
    width: 100% !important;
    min-height: 54px !important;
    font-size: 1rem !important;
    padding: 0.85rem 1rem !important;
    border: none !important;
    border-bottom: 1px solid rgba(160, 124, 36, 0.24) !important;
    background: #ffffff !important;
    color: #111111 !important;
    -webkit-text-fill-color: #111111 !important;
    opacity: 1 !important;
  }

  .client-conv-input::placeholder {
    color: #6b7280 !important;
    opacity: 1 !important;
  }

  /* Actions row: attach left, send takes rest */
  .client-conv-actions {
    width: 100%;
    min-height: 52px;
  }

  .client-conv-attach-btn {
    min-height: 52px;
    width: 56px;
    border-left: none !important;
    border-right: 1px solid rgba(160, 124, 36, 0.24) !important;
  }

  .client-conv-send {
    flex: 1;
    min-height: 52px;
    font-size: 1rem;
    border-left: none !important;
  }

  body.page-conversations .client-conv-category {
    border-left: 0 !important;
    border-top: 1px solid rgba(160, 124, 36, 0.2) !important;
    border-bottom: 1px solid rgba(160, 124, 36, 0.2) !important;
  }

  .client-chat-widget {
    right: 12px;
    bottom: 12px;
  }

  .client-chat-pill {
    padding: 8px 12px;
    font-size: 0.98rem;
  }

  .client-chat-fab {
    width: 50px;
    height: 50px;
  }

  .client-chat-panel {
    width: min(360px, calc(100vw - 16px));
    right: -2px;
    bottom: 60px;
    height: calc(100vh - 90px);
    max-height: calc(100vh - 90px);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
  }

  .client-chat-panel.client-chat-panel-expanded {
    width: calc(100vw - 14px);
    right: -2px;
    bottom: 60px;
    height: calc(100vh - 76px);
    max-height: calc(100vh - 76px);
  }

  .client-chat-body {
    flex: 1 1 0;
    min-height: 0;
    max-height: none;
  }
}

/* Responsive */
@media (max-width: 767.98px) {
  .pd-modal-overlay {
    padding: 0;
  }
  .pd-modal {
    width: 100vw;
    max-width: 100vw;
    max-height: 100vh;
    border-radius: 0;
  }
  .pd-gallery {
    border-radius: 0;
  }
  .pd-content {
    padding: 16px;
  }
  .pd-info-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .pd-info-header h2 {
    font-size: 1.15rem;
  }
  .pd-price {
    font-size: 1.15rem;
  }
  .pd-actions {
    flex-direction: column;
  }
  .pd-actions .btn {
    min-width: unset;
  }
  .pd-gallery-main {
    aspect-ratio: 4/3;
  }
}

/* =============================================
   Admin Palette Refresh (home-style natural gold)
   ============================================= */
body.admin-layout {
  --admin-bg: #ffffff;
  --admin-bg-soft: #ffffff;
  --admin-surface: #ffffff;
  --admin-card: #ffffff;
  --admin-border: rgba(168, 132, 31, 0.24);
  --admin-text: #111111;
  --admin-muted: #6b7280;
  --admin-accent: #a8841f;
  --admin-accent-strong: #8d6c1c;
  --admin-dark: #ffffff;
  --admin-dark-soft: #ffffff;
  --admin-danger: #8d6c1c;
}

body.admin-layout,
body.admin-layout .admin-main,
body.admin-layout .admin-content {
  background: var(--admin-bg) !important;
  color: var(--admin-text) !important;
}

body.admin-layout .admin-topbar {
  background: var(--admin-surface);
  border-bottom: 1px solid var(--admin-border);
  box-shadow: 0 6px 16px rgba(107, 82, 26, 0.12);
  backdrop-filter: blur(14px) saturate(130%);
  -webkit-backdrop-filter: blur(14px) saturate(130%);
}

body.admin-layout .admin-topbar .admin-topbar-title,
body.admin-layout .admin-topbar .admin-topbar-sub,
body.admin-layout h1,
body.admin-layout h2,
body.admin-layout h3,
body.admin-layout h4,
body.admin-layout h5,
body.admin-layout h6,
body.admin-layout p,
body.admin-layout .small,
body.admin-layout .text-muted,
body.admin-layout strong,
body.admin-layout label,
body.admin-layout .form-label,
body.admin-layout .form-text {
  color: var(--admin-text) !important;
}

body.admin-layout .text-muted,
body.admin-layout .form-text,
body.admin-layout .admin-icon-subtle {
  color: var(--admin-muted) !important;
}

body.admin-layout .admin-sidebar {
  background: var(--admin-dark);
  box-shadow: 6px 0 18px rgba(0, 0, 0, 0.08);
  border-right: 1px solid rgba(168, 132, 31, 0.22);
}

body.admin-layout .admin-brand-logo {
  background: var(--admin-accent);
  box-shadow: 0 8px 18px rgba(141, 108, 28, 0.32);
  border-color: rgba(168, 132, 31, 0.35);
}

body.admin-layout .admin-nav-item {
  color: #111111;
  background: transparent !important;
}

body.admin-layout .admin-nav-item:hover {
  background: rgba(168, 132, 31, 0.14) !important;
  color: #111111;
}

body.admin-layout .admin-nav-item.active {
  background: rgba(168, 132, 31, 0.22) !important;
  color: #111111;
  box-shadow: none;
}

body.admin-layout .admin-nav-item i,
body.admin-layout .admin-nav-item.active i {
  color: var(--admin-accent-strong) !important;
}

body.admin-layout .admin-brand-text {
  color: #111111;
}

body.admin-layout .admin-sidebar-header,
body.admin-layout .admin-sidebar-footer {
  border-color: rgba(168, 132, 31, 0.2);
}

body.admin-layout .card,
body.admin-layout .admin-panel,
body.admin-layout .admin-summary-card,
body.admin-layout .bulk-actions-bar,
body.admin-layout .admin-ai-toggle-card {
  background: var(--admin-card) !important;
  border: 1px solid var(--admin-border) !important;
  box-shadow: 0 10px 24px rgba(141, 108, 28, 0.12) !important;
  backdrop-filter: blur(10px) saturate(125%);
  -webkit-backdrop-filter: blur(10px) saturate(125%);
}

body.admin-layout .card-header,
body.admin-layout .admin-panel-header,
body.admin-layout .modal-header,
body.admin-layout .modal-footer {
  background: transparent !important;
  border-bottom-color: var(--admin-border) !important;
  border-top-color: var(--admin-border) !important;
}

body.admin-layout .table {
  --bs-table-bg: #ffffff;
  --bs-table-striped-bg: #ffffff;
  --bs-table-hover-bg: #f8f8f8;
  border-color: var(--admin-border);
  color: var(--admin-text);
}

body.admin-layout .table td,
body.admin-layout .table th {
  border-color: rgba(168, 132, 31, 0.2) !important;
  color: var(--admin-text) !important;
}

body.admin-layout .table thead th {
  background: var(--admin-accent);
  border-bottom-color: rgba(168, 132, 31, 0.4);
  color: #fff;
}

body.admin-layout .table-responsive {
  background: #ffffff;
  border: 1px solid var(--admin-border);
  border-radius: 10px;
}

/* ================================
   Mobile Responsiveness — Global Fixes
   ================================ */

/* Touch-friendly form controls on small screens */
@media (max-width: 575.98px) {
  /* Ensure selects & inputs have minimum tap target */
  .form-select,
  .form-control {
    min-height: 44px;
    font-size: 1rem;
  }

  /* Step indicator wraps gracefully */
  .step-indicator {
    flex-wrap: wrap;
    gap: 0.4rem;
  }

  .step-indicator .step {
    font-size: 0.78rem;
    padding: 0.4rem 0.7rem;
  }

  /* Seller submit form — address selects stack to 2 cols on xs */
  body.page-seller .row .col-sm-6 {
    flex: 0 0 100%;
    max-width: 100%;
  }

  /* Seller form sidebar hides on mobile (already stacks below) */
  body.page-seller .form-page-sidebar {
    margin-top: 1.5rem;
  }

  /* Property card images on mobile */
  .property-card img {
    height: 180px;
    object-fit: cover;
  }

  /* Featured section search filters stack fully */
  .featured-section .form-label {
    font-size: 0.88rem;
  }

  /* Navbar My Account dropdown adjustments on mobile */
  .nav-item.dropdown.nav-item-client-menu .dropdown-menu-nav {
    padding: 0.5rem 0;
  }

  /* "Sell Your Property" button full-width on mobile nav */
  .nav-item-cta {
    margin-top: 0.5rem;
    width: 100%;
  }
  .nav-link-sell {
    display: flex !important;
    justify-content: center;
    width: 100%;
  }

  /* Admin table horizontal scroll */
  body.admin-layout .table-responsive {
    font-size: 0.82rem;
  }

  /* Admin sidebar — push off-screen on small, overlap */
  body.admin-layout .admin-sidebar {
    position: fixed;
    left: -260px;
    top: 0;
    z-index: 2000;
    transition: left 0.25s ease;
    height: 100dvh;
  }
  body.admin-layout .admin-sidebar.show {
    left: 0;
  }
  body.admin-layout.sidebar-open::after {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 1999;
  }
  body.admin-layout .admin-content {
    width: 100%;
    margin-left: 0 !important;
  }
}

@media (max-width: 767.98px) {
  /* Property card — ensure card titles are readable */
  .property-card .card-title {
    font-size: 1rem;
  }

  /* Featured properties — 1 column on small mobile */
  .featured-section .row.g-4 > [class*="col-md-"] {
    flex: 0 0 100%;
    max-width: 100%;
  }

  /* Rush sale card wrap — full-screen on very small */
  .rush-sale-card-wrap {
    width: 88vw;
    min-width: 88vw;
  }

  /* Properties.php filter cards stack */
  .properties-filter .row > div {
    flex: 0 0 100%;
    max-width: 100%;
  }

  /* Contact / Seller page hero text size */
  .form-page-hero h1 {
    font-size: 1.8rem;
  }

  /* Seller submit: price + bedrooms row */
  .seller-step .row.g-3 > .col-sm-4 {
    flex: 0 0 50%;
    max-width: 50%;
  }

  /* Prevent modal overflow on mobile */
  .modal-dialog {
    margin: 0.5rem;
  }

  .modal-dialog.modal-lg,
  .modal-dialog.modal-xl {
    max-width: calc(100vw - 1rem);
  }

  /* Property detail page image */
  .property-detail-img {
    max-height: 260px;
  }
}

@media (min-width: 576px) and (max-width: 767.98px) {
  /* 2-column property grid on sm screens */
  .featured-section .row.g-4 > [class*="col-md-"] {
    flex: 0 0 50%;
    max-width: 50%;
  }
}

/* Seller form PSGC loading indicator visual feedback */
#addrRegion:disabled,
#addrProvince:disabled,
#addrMunicipality:disabled,
#addrBarangay:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

/* My Account dropdown — icon only on desktop, text shown on mobile */
@media (min-width: 992px) {
  .nav-item-client-menu .nav-link .fa-user-circle {
    font-size: 1.25rem;
  }
}

/* Ensure property category tag doesn't cause overflow */
.property-category-tag {
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.admin-layout .btn-primary,
body.admin-layout .page-item.active .page-link,
body.admin-layout .admin-msg-tabs .nav-link.active,
body.admin-layout #adminChatConversationList .list-group-item.active,
body.admin-layout .admin-inquiry-chip.active,
body.admin-layout .form-check-input:checked,
body.admin-layout .btn-bulk-delete {
  background: var(--admin-accent) !important;
  border-color: #8d6c1c !important;
  color: #111111 !important;
}

body.admin-layout .btn-primary:hover,
body.admin-layout .page-item.active .page-link:hover,
body.admin-layout .btn-bulk-delete:hover {
  background: var(--admin-accent-strong) !important;
  border-color: #8d6c1c !important;
}

body.admin-layout .btn-outline-primary,
body.admin-layout .btn-outline-danger,
body.admin-layout .btn-secondary,
body.admin-layout .admin-summary-link,
body.admin-layout .table a,
body.admin-layout .page-link,
body.admin-layout .admin-msg-tabs .nav-link,
body.admin-layout .admin-inquiry-chip {
  color: #111111 !important;
  border-color: rgba(168, 132, 31, 0.34) !important;
  background: #ffffff !important;
}

body.admin-layout .btn-outline-primary:hover,
body.admin-layout .btn-outline-danger:hover,
body.admin-layout .btn-secondary:hover,
body.admin-layout .admin-summary-link:hover,
body.admin-layout .table a:hover,
body.admin-layout .admin-msg-tabs .nav-link:hover,
body.admin-layout .admin-inquiry-chip:hover,
body.admin-layout .page-link:hover {
  color: #111111 !important;
  background: #f7f7f7 !important;
  border-color: rgba(168, 132, 31, 0.52) !important;
}

body.admin-layout .form-control,
body.admin-layout .form-select {
  background: #ffffff !important;
  border-color: rgba(168, 132, 31, 0.34) !important;
  color: #1f2937 !important;
}

body.admin-layout .form-control::placeholder {
  color: #9b8a66 !important;
}

body.admin-layout .form-control:focus,
body.admin-layout .form-select:focus {
  border-color: rgba(168, 132, 31, 0.7) !important;
  box-shadow: 0 0 0 0.22rem rgba(168, 132, 31, 0.2) !important;
}

body.admin-layout .admin-chat-thread,
body.admin-layout #adminChatConversationList .list-group-item,
body.admin-layout .admin-inquiry-filters {
  background: #ffffff;
  border-color: rgba(168, 132, 31, 0.24) !important;
}

body.admin-layout #adminChatConversationList .list-group-item:hover {
  background: #f7f7f7;
}

body.admin-layout .bg-soft-primary,
body.admin-layout .bg-soft-warning,
body.admin-layout .bg-soft-danger,
body.admin-layout .bg-soft-info,
body.admin-layout .admin-dot-new,
body.admin-layout .admin-dot-priority,
body.admin-layout .admin-dot-warning,
body.admin-layout .admin-dot-done,
body.admin-layout .admin-dot-success {
  background: var(--admin-accent) !important;
  color: #fff !important;
}

body.admin-layout .admin-icon-accent,
body.admin-layout .admin-summary-value,
body.admin-layout .display-6,
body.admin-layout .card-title {
  color: #a8841f !important;
}

body.admin-layout .modal-backdrop {
  background: rgba(45, 8, 20, 0.58) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
}

body.admin-layout .modal-content {
  background: #ffffff !important;
  border: 1px solid rgba(168, 132, 31, 0.34) !important;
  color: #1f2937 !important;
  backdrop-filter: blur(16px) saturate(145%) !important;
  -webkit-backdrop-filter: blur(16px) saturate(145%) !important;
}

body.admin-layout.property-modal-open .modal-backdrop {
  background: rgba(12, 18, 28, 0.42) !important;
  backdrop-filter: blur(8px) saturate(125%) !important;
  -webkit-backdrop-filter: blur(8px) saturate(125%) !important;
}

body.admin-layout #propertyModal .modal-content {
  background: rgba(255, 255, 255, 0.72) !important;
  border: 1px solid rgba(255, 255, 255, 0.52) !important;
  backdrop-filter: blur(8px) saturate(135%) !important;
  -webkit-backdrop-filter: blur(8px) saturate(135%) !important;
  box-shadow: 0 28px 70px rgba(8, 15, 25, 0.35), 0 0 0 1px rgba(255,255,255,0.24), inset 0 1px 0 rgba(255,255,255,0.35) !important;
}

body.admin-layout #propertyModal .modal-header,
body.admin-layout #propertyModal .modal-footer {
  background: transparent !important;
}

/* Admin table actions: different color per action */
body.admin-layout .table td .btn {
  font-weight: 600;
}

/* Reply / primary action */
body.admin-layout .table td .btn-primary {
  background: #a8841f !important;
  border-color: #8d6c1c !important;
  color: #fff !important;
}
body.admin-layout .table td .btn-primary:hover {
  background: #8d6c1c !important;
  border-color: #7a5d18 !important;
}

/* View / edit / open */
body.admin-layout .table td .btn-outline-primary {
  background: #ffffff !important;
  color: #1d4ed8 !important;
  border-color: #93c5fd !important;
}
body.admin-layout .table td .btn-outline-primary:hover {
  background: #eff6ff !important;
  color: #1e40af !important;
  border-color: #60a5fa !important;
}

/* Chat action */
body.admin-layout .table td .btn-outline-secondary {
  background: #ffffff !important;
  color: #374151 !important;
  border-color: #d1d5db !important;
}
body.admin-layout .table td .btn-outline-secondary:hover {
  background: #f3f4f6 !important;
  color: #111827 !important;
  border-color: #9ca3af !important;
}

/* Delete action */
body.admin-layout .table td .btn-outline-danger {
  background: #ffffff !important;
  color: #dc2626 !important;
  border-color: #fca5a5 !important;
}
body.admin-layout .table td .btn-outline-danger:hover {
  background: #fef2f2 !important;
  color: #b91c1c !important;
  border-color: #f87171 !important;
}

/* Seller workflow quick-actions */
body.admin-layout .table td .btn-warning {
  background: #f59e0b !important;
  border-color: #d97706 !important;
  color: #111827 !important;
}
body.admin-layout .table td .btn-info {
  background: #0ea5e9 !important;
  border-color: #0284c7 !important;
  color: #ffffff !important;
}
body.admin-layout .table td .btn-dark {
  background: #374151 !important;
  border-color: #1f2937 !important;
  color: #ffffff !important;
}
body.admin-layout .table td .btn-success {
  background: #16a34a !important;
  border-color: #15803d !important;
  color: #ffffff !important;
}

body.admin-layout .admin-content h1,
body.admin-layout .admin-content h2,
body.admin-layout .admin-content h3,
body.admin-layout .admin-content h4,
body.admin-layout .admin-content h5,
body.admin-layout .admin-content h6,
body.admin-layout .admin-content p,
body.admin-layout .admin-content .text-muted {
  color: #111111 !important;
}

/* =============================================
   Admin Density Tuning (closer to reference)
   ============================================= */
body.admin-layout .admin-topbar {
  height: 58px;
  padding: 0 0.95rem;
}

body.admin-layout .admin-content {
  padding: 1rem 0.95rem 1.25rem;
}

body.admin-layout .admin-sidebar {
  width: 246px;
  padding: 0.75rem 0.65rem;
}

body.admin-layout .admin-sidebar-header {
  padding-bottom: 0.75rem;
  margin-bottom: 0.7rem;
}

body.admin-layout .admin-nav-item {
  padding: 0.5rem 0.62rem;
  border-radius: 8px;
  font-size: 0.89rem;
}

body.admin-layout .admin-summary-grid {
  gap: 0.8rem;
}

body.admin-layout .admin-summary-card,
body.admin-layout .card,
body.admin-layout .admin-panel,
body.admin-layout .bulk-actions-bar,
body.admin-layout .admin-ai-toggle-card {
  border-radius: 10px !important;
  box-shadow: 0 6px 16px rgba(141, 108, 28, 0.1) !important;
}

body.admin-layout .admin-summary-card {
  padding: 0.85rem 0.95rem;
  gap: 0.65rem;
}

body.admin-layout .admin-summary-icon-wrap {
  width: 38px;
  height: 38px;
  border-radius: 9px;
}

body.admin-layout .admin-summary-label {
  font-size: 0.68rem;
  margin-bottom: 0.18rem;
}

body.admin-layout .admin-summary-value {
  font-size: 1.26rem;
  margin-bottom: 0.15rem;
}

body.admin-layout .admin-panel {
  padding: 0.88rem 0.92rem 0.92rem;
}

/* Final sidebar status states (normal / hover / active) */
body.admin-layout .admin-sidebar .admin-nav-item {
  background: transparent !important;
  border: 1px solid transparent;
  color: #111111 !important;
}

body.admin-layout .admin-sidebar .admin-nav-item:hover {
  background: rgba(168, 132, 31, 0.12) !important;
  border-color: rgba(168, 132, 31, 0.24);
  color: #111111 !important;
}

body.admin-layout .admin-sidebar .admin-nav-item.active {
  background: #a8841f !important;
  border-color: #8d6c1c !important;
  color: #ffffff !important;
}

body.admin-layout .admin-sidebar .admin-nav-item.active i {
  color: #ffffff !important;
}

body.admin-layout .table thead th,
body.admin-layout .table td,
body.admin-layout .table th {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  font-size: 0.84rem;
}

body.admin-layout .btn,
body.admin-layout .page-link,
body.admin-layout .admin-msg-tabs .nav-link,
body.admin-layout .admin-inquiry-chip {
  border-radius: 8px !important;
}

body.admin-layout .btn {
  padding-top: 0.38rem;
  padding-bottom: 0.38rem;
}

body.admin-layout .form-control,
body.admin-layout .form-select {
  border-radius: 8px;
  min-height: 36px;
  padding-top: 0.36rem;
  padding-bottom: 0.36rem;
  font-size: 0.9rem;
}

body.admin-layout .admin-chat-body {
  min-height: 430px;
}

body.admin-layout .admin-chat-thread {
  border-radius: 10px;
  padding: 10px;
}

body.admin-layout #adminChatConversationList .list-group-item {
  padding: 0.62rem 0.72rem;
}

@media (max-width: 991.98px) {
  body.admin-layout .admin-content {
    padding: 0.85rem 0.75rem 1rem;
  }

  body.admin-layout .admin-topbar {
    height: 54px;
    padding: 0 0.75rem;
  }
}

body.admin-layout .admin-sidebar .admin-nav-item.active {
  background: #d4b166 !important;
  border-color: #b8933a !important;
}

body.admin-layout .table thead th,
body.admin-layout .btn-primary,
body.admin-layout .btn-primary:hover,
body.admin-layout .page-item.active .page-link,
body.admin-layout .page-item.active .page-link:hover,
body.admin-layout .admin-msg-tabs .nav-link.active,
body.admin-layout .admin-inquiry-chip.active,
body.admin-layout #adminChatConversationList .list-group-item.active,
body.admin-layout .btn-bulk-delete,
body.admin-layout .btn-bulk-delete:hover {
  background: #d4b166 !important;
  border-color: #b8933a !important;
}

body.admin-layout .badge.bg-warning {
  background: #fde68a !important;
  color: #111111 !important;
}

body.admin-layout .badge.bg-info {
  background: #bfdbfe !important;
  color: #111111 !important;
}

body.admin-layout .badge.bg-primary {
  background: #ddd6fe !important;
  color: #111111 !important;
}

body.admin-layout .badge.bg-success {
  background: #bbf7d0 !important;
  color: #111111 !important;
}

body.admin-layout .badge.bg-danger {
  background: #fecaca !important;
  color: #111111 !important;
}

body.admin-layout .badge.bg-secondary {
  background: #e5e7eb !important;
  color: #111111 !important;
}

body.admin-layout .badge.bg-dark {
  background: #d1d5db !important;
  color: #111111 !important;
}

body.admin-layout .table td .btn-warning {
  background: #fde68a !important;
  border-color: #fcd34d !important;
}

body.admin-layout .table td .btn-info {
  background: #bfdbfe !important;
  border-color: #93c5fd !important;
}

body.admin-layout .table td .btn-dark {
  background: #d1d5db !important;
  border-color: #9ca3af !important;
}

body.admin-layout .table td .btn-success {
  background: #bbf7d0 !important;
  border-color: #86efac !important;
}

/* Final enforce: all admin fonts black */
body.admin-layout,
body.admin-layout * {
  color: #111111 !important;
}

/* Override Bootstrap's list-group-item-action.active white text */
body.admin-layout #adminChatConversationList .list-group-item-action.active,
body.admin-layout #adminChatConversationList .list-group-item-action.active *,
body.admin-layout #adminChatConversationList .list-group-item.active,
body.admin-layout #adminChatConversationList .list-group-item.active * {
  color: #111111 !important;
}

body.admin-layout .form-control::placeholder,
body.admin-layout textarea::placeholder,
body.admin-layout input::placeholder {
  color: #111111 !important;
  opacity: 0.72;
}

/* =============================================
   Device Hardening (mobile/tablet only)
   Keeps desktop layout/content unchanged
   ============================================= */
@media (max-width: 991.98px) {
  img,
  video,
  iframe {
    max-width: 100%;
    height: auto;
  }

  .container,
  .container-fluid {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .dropdown-menu-nav {
    min-width: 0;
    width: 100%;
  }

  .table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .partner-companies-line {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.2rem;
  }

  .partner-company-item {
    flex: 0 0 auto;
  }

  .admin-summary-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  }

  .admin-topbar {
    padding-left: 0.95rem;
    padding-right: 0.95rem;
  }

  .admin-live-time {
    font-size: 1.2rem;
  }

  .admin-live-date,
  .admin-weather-desc {
    font-size: 0.72rem;
  }
}

@media (max-width: 575.98px) {
  .hero-fullscreen .hero-content {
    padding: 1rem;
  }

  .section-strip-title {
    font-size: 1.38rem;
  }

  .section-strip-subtitle {
    font-size: 0.96rem;
  }

  .admin-login-body {
    padding: 1rem;
  }

  .admin-login-split-left,
  .admin-login-split-right {
    padding: 1.35rem 1rem;
  }

  .admin-login-welcome {
    font-size: 1.45rem;
  }

  .admin-login-split-features li {
    font-size: 0.84rem;
  }
}

/* ================================================
   Skeleton Loaders
   ================================================ */
@keyframes skeleton-shimmer {
  0%   { background-position: -700px 0; }
  100% { background-position:  700px 0; }
}

.skeleton-block {
  background: linear-gradient(90deg, #ebebeb 25%, #d6d6d6 50%, #ebebeb 75%);
  background-size: 1400px 100%;
  animation: skeleton-shimmer 1.5s infinite linear;
  border-radius: 6px;
}

/* Property modal skeleton */
.pd-skeleton { padding: 0; }
.pd-sk-gallery { height: 260px; border-radius: 0; }
.pd-sk-content {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.pd-sk-title  { height: 26px; width: 72%; }
.pd-sk-price  { height: 20px; width: 28%; }
.pd-sk-badges { display: flex; gap: 0.4rem; }
.pd-sk-badges > div { height: 20px; width: 76px; border-radius: 999px; }
.pd-sk-text   { height: 13px; width: 100%; }
.pd-sk-text.short { width: 55%; }
.pd-sk-btn    { height: 38px; width: 150px; border-radius: 8px; margin-top: 0.4rem; }

/* Admin chat — conversation list skeleton */
.admin-sk-list {
  display: flex;
  flex-direction: column;
}
.admin-sk-conv-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid #f1f5f9;
}
.admin-sk-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  flex-shrink: 0;
}
.admin-sk-conv-lines {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.admin-sk-line { height: 12px; border-radius: 4px; }
.admin-sk-line.full  { width: 100%; }
.admin-sk-line.mid   { width: 64%; }
.admin-sk-line.short { width: 38%; }

/* Admin chat — thread skeleton */
.admin-sk-thread {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 12px;
}
.admin-sk-bw {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.admin-sk-bw.right { flex-direction: row-reverse; }
.admin-sk-bubble-lines {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: min(55%, 280px);
}
.admin-sk-bline { height: 13px; border-radius: 5px; }
.admin-sk-bline.full  { width: 100%; }
.admin-sk-bline.mid   { width: 72%; }
.admin-sk-bline.short { width: 44%; }

/* ================================================
   Admin Chat — Property Card (inquiry from listing)
   ================================================ */
.admin-chat-prop-card {
  border: 1px solid #c3d9f8;
  border-left: 4px solid #3b82f6;
  border-radius: 10px;
  padding: 9px 12px;
  background: #f0f7ff;
  margin-bottom: 6px;
  max-width: 340px;
  font-size: 0.84rem;
}
.admin-chat-prop-card-label {
  font-size: 0.7rem;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 2px;
}
.admin-chat-prop-card-title {
  font-weight: 700;
  color: #1e3a5f;
  font-size: 0.88rem;
  line-height: 1.3;
}
.admin-chat-prop-card-meta {
  color: #475569;
  margin-top: 3px;
  font-size: 0.79rem;
}

/* Client-side chat widget — property reference card */
.client-chat-prop-card {
  border: 1px solid #c3d9f8;
  border-left: 4px solid #3b82f6;
  border-radius: 8px;
  padding: 7px 10px;
  background: #f0f7ff;
  margin-bottom: 5px;
  font-size: 0.81rem;
}
.client-chat-prop-card-label {
  font-size: 0.68rem;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 2px;
}
.client-chat-prop-card-title {
  font-weight: 700;
  color: #1e3a5f;
  font-size: 0.84rem;
  line-height: 1.3;
}
.client-chat-prop-card-meta {
  color: #475569;
  font-size: 0.76rem;
  margin-top: 2px;
}

/* ================================================
   Admin Chat — Conversation Label Badges
   ================================================ */
.conv-label-badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 999px;
  letter-spacing: 0.04em;
  vertical-align: middle;
}
.conv-label-buyer       { background: #dcfce7; color: #15803d; border: 1px solid #bbf7d0; }
.conv-label-for_viewing { background: #dbeafe; color: #1d4ed8; border: 1px solid #bfdbfe; }
.conv-label-follow_up   { background: #fef3c7; color: #92400e; border: 1px solid #fde68a; }
.conv-label-spam        { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }

/* Admin label picker row */
.admin-label-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding: 6px 14px 8px;
  border-bottom: 1px solid #e9eff6;
  background: #f8fafc;
  font-size: 0.78rem;
}
.admin-label-bar-title {
  color: #64748b;
  font-weight: 600;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  min-width: 36px;
}
.admin-label-opt {
  font-size: 0.77rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid #d1d5db;
  background: #fff;
  color: #475569;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  line-height: 1.5;
}
.admin-label-opt:hover { background: #f1f5f9; }
.admin-label-opt.active.lbl-buyer       { background: #dcfce7; color: #15803d; border-color: #86efac; }
.admin-label-opt.active.lbl-for_viewing { background: #dbeafe; color: #1d4ed8; border-color: #93c5fd; }
.admin-label-opt.active.lbl-follow_up   { background: #fef3c7; color: #92400e; border-color: #fcd34d; }
.admin-label-opt.active.lbl-spam        { background: #fee2e2; color: #991b1b; border-color: #fca5a5; }
.admin-label-opt.lbl-clear              { color: #94a3b8; font-weight: 400; font-size: 0.73rem; }

/* Label filter bar — above conversation list */
.admin-label-filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
  padding: 7px 12px;
  border-bottom: 1px solid #e9eff6;
  background: #f0f4fa;
}
.admin-label-filter-title {
  color: #64748b;
  font-weight: 600;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-right: 2px;
}
.admin-label-filter-opt {
  font-size: 0.74rem;
  font-weight: 600;
  padding: 2px 9px;
  border-radius: 999px;
  border: 1px solid #cbd5e1;
  background: #fff;
  color: #64748b;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  line-height: 1.6;
}
.admin-label-filter-opt:hover { background: #e2e8f0; }
.admin-label-filter-opt.active.lbl-buyer       { background: #dcfce7; color: #15803d; border-color: #86efac; }
.admin-label-filter-opt.active.lbl-for_viewing { background: #dbeafe; color: #1d4ed8; border-color: #93c5fd; }
.admin-label-filter-opt.active.lbl-follow_up   { background: #fef3c7; color: #92400e; border-color: #fcd34d; }
.admin-label-filter-opt.active.lbl-spam        { background: #fee2e2; color: #991b1b; border-color: #fca5a5; }
