/* =========================================================
   Classified Property Finder – Red theme, compact, mobile-first
   ========================================================= */
:root {
  --primary: #c41e3a;          /* deep red */
  --primary-dark: #9b1830;
  --accent: #e63946;
  --accent-hover: #d62839;
  --success: #198754;
  --dark: #1a0a0c;
  --slate: #2b1215;
  --muted: #6b4c4f;
  --light: #fdf6f7;
  --border: #f0d6d9;
  --shadow: 0 8px 24px -8px rgba(196,30,58,.15);
  --shadow-lg: 0 20px 40px -12px rgba(196,30,58,.22);
  --radius: 12px;
  --radius-sm: 8px;
  --transition: all .28s cubic-bezier(.4,0,.2,1);
}

*,*::before,*::after { box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 14.5px; }
body {
  font-family: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color: #1f1214;
  background: #faf5f6;
  line-height: 1.55;
  overflow-x: hidden;
}

/* Typography */
h1,h2,h3,h4,h5,h6 { font-weight: 700; letter-spacing: -.02em; line-height: 1.25; }
h1 { font-size: 1.65rem; }
h2 { font-size: 1.35rem; }
h3 { font-size: 1.15rem; }
h4 { font-size: 1.02rem; }
a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary-dark); }

/* ========== WHITE NAVBAR (black text) ========== */
.navbar {
  background: #ffffff !important;
  box-shadow: 0 2px 14px rgba(0,0,0,.08);
  padding: .55rem 0;
  border-bottom: 1px solid #eee;
}
.navbar-brand {
  font-weight: 800;
  font-size: 1.12rem;
  letter-spacing: -.03em;
  display: flex;
  align-items: center;
  gap: .4rem;
  color: #1a0a0c !important;
}
.navbar-brand i { color: var(--primary); }
.nav-link {
  font-weight: 500;
  color: #1f1214 !important;
  padding: .38rem .65rem !important;
  border-radius: 7px;
  font-size: 0.87rem;
  transition: var(--transition);
}
.nav-link:hover, .nav-link.active, .nav-link.show {
  color: var(--primary) !important;
  background: rgba(196,30,58,.08);
}
.navbar .dropdown-menu {
  background: #fff;
  border: 1px solid #f0d6d9;
  border-radius: 10px;
  box-shadow: var(--shadow-lg);
  padding: .4rem;
}
.navbar .dropdown-item {
  color: #1f1214;
  border-radius: 7px;
  font-size: 0.88rem;
  padding: .45rem .8rem;
  transition: var(--transition);
}
.navbar .dropdown-item:hover, .navbar .dropdown-item:focus {
  background: rgba(196,30,58,.1);
  color: var(--primary);
}
.navbar .btn-outline-light {
  color: #1f1214 !important;
  border-color: #ccc !important;
}
.navbar .btn-outline-light:hover {
  background: #f5f5f5 !important;
  color: var(--primary) !important;
  border-color: var(--primary) !important;
}
.navbar .btn-light {
  background: #f8f8f8;
  color: #1f1214 !important;
  border: 1px solid #ddd;
}
.navbar .btn-light:hover {
  background: #eee;
  color: var(--primary) !important;
}
.btn-accent {
  background: var(--primary);
  border: none;
  color: #fff !important;
  font-weight: 700;
  border-radius: 8px;
  padding: .4rem .9rem;
  font-size: 0.85rem;
  box-shadow: 0 3px 12px rgba(196,30,58,.25);
  transition: var(--transition);
}
.btn-accent:hover {
  background: var(--primary-dark);
  color: #fff !important;
  transform: translateY(-1px);
}
.btn-outline-light {
  border-color: #ccc;
  color: #1f1214;
  font-size: 0.85rem;
}
.btn-outline-light:hover {
  background: #f5f5f5;
  border-color: var(--primary);
  color: var(--primary);
}
.btn-light {
  background: #f8f8f8;
  color: #1f1214;
  font-weight: 600;
  font-size: 0.85rem;
  border: 1px solid #ddd;
}
.btn-light:hover { background: #eee; color: var(--primary); }
.btn { border-radius: 8px; font-size: 0.88rem; }
.btn-sm { font-size: 0.8rem; padding: .28rem .6rem; }
.btn-primary {
  background: var(--primary);
  border-color: var(--primary);
  font-weight: 600;
}
.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-1px);
}

/* ========== HERO SLIDER ========== */
.hero-slider {
  position: relative;
  height: 420px;
  overflow: hidden;
  background: var(--dark);
}
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
}
.hero-slide.active { opacity: 1; z-index: 1; }
.hero-slide::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(26,10,12,.88) 0%, rgba(196,30,58,.55) 55%, rgba(26,10,12,.35) 100%);
}
.hero-slide .container { position: relative; z-index: 2; color: #fff; }
.hero-slide h1 {
  font-size: clamp(1.6rem, 4vw, 2.3rem);
  font-weight: 800;
  margin-bottom: .6rem;
  text-shadow: 0 2px 12px rgba(0,0,0,.3);
}
.hero-slide p { font-size: 1.02rem; opacity: .92; max-width: 520px; }
.hero-slide .price-tag {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
  padding: .35rem .9rem;
  border-radius: 50px;
  font-size: 1.05rem;
  margin-bottom: 1rem;
}
.hero-controls {
  position: absolute;
  bottom: 1.2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  gap: .4rem;
}
.hero-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,.4);
  border: none;
  cursor: pointer;
  transition: var(--transition);
}
.hero-dot.active { background: #fff; transform: scale(1.25); }
.hero-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  background: rgba(255,255,255,.15);
  border: none;
  color: #fff;
  width: 42px; height: 42px;
  border-radius: 50%;
  font-size: 1.1rem;
  cursor: pointer;
  transition: var(--transition);
  backdrop-filter: blur(4px);
}
.hero-nav-btn:hover { background: rgba(255,255,255,.3); }
.hero-nav-btn.prev { left: 1rem; }
.hero-nav-btn.next { right: 1rem; }

.hero-mini {
  background: linear-gradient(135deg, #9b1830, #c41e3a);
  color: #fff;
  padding: 1.6rem 0;
}
.hero-mini h1 { font-size: 1.35rem; margin: 0; }

/* Search bar on hero */
.hero-search {
  background: #fff;
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: var(--shadow-lg);
  margin-top: 1.2rem;
}

/* Cards */
.card {
  border: none;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: var(--transition);
  overflow: hidden;
  background: #fff;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.price { font-size: 1.08rem; font-weight: 800; color: var(--accent); }

/* Sections */
.section { padding: 2.6rem 0; }
.section h2 {
  font-size: 1.3rem;
  margin-bottom: 1.1rem;
  position: relative;
  display: inline-block;
}
.section h2::after {
  content: '';
  position: absolute;
  left: 0; bottom: -5px;
  width: 40px; height: 3px;
  background: var(--accent);
  border-radius: 2px;
}

/* Stats */
.stat {
  background: #fff;
  border-radius: var(--radius);
  padding: 1.15rem .85rem;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid transparent;
  position: relative;
  overflow: hidden;
}
.stat::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  opacity: 0;
  transition: var(--transition);
}
.stat:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(196,30,58,.12);
}
.stat:hover::before { opacity: 1; }
.stat i { font-size: 1.2rem; margin-bottom: .25rem; color: var(--primary); }
.stat small { color: var(--muted); font-weight: 500; font-size: .72rem; text-transform: uppercase; letter-spacing: .03em; }
.stat h3 { font-size: 1.35rem; font-weight: 800; margin: .1rem 0 0; }

/* ========== FOOTER RED ========== */
.footer {
  background: linear-gradient(180deg, #7a1226 0%, #4a0b17 100%);
  color: rgba(255,255,255,.8);
  font-size: 0.87rem;
}
.footer h4, .footer h6 { color: #fff; font-size: 0.95rem; }
.footer a {
  color: rgba(255,255,255,.72);
  display: block;
  margin-bottom: .28rem;
  font-size: .84rem;
  transition: var(--transition);
}
.footer a:hover { color: #ffb3ba; transform: translateX(3px); }
.footer .social a {
  display: inline-flex;
  width: 34px; height: 34px;
  align-items: center; justify-content: center;
  background: rgba(255,255,255,.1);
  border-radius: 50%;
  margin-right: .3rem;
  transition: var(--transition);
  font-size: 0.88rem;
}
.footer .social a:hover {
  background: var(--accent);
  color: #fff;
  transform: translateY(-2px);
}
.footer hr { border-color: rgba(255,255,255,.12); }

/* Social rail */
.social-rail {
  position: fixed; left: 0; top: 50%;
  transform: translateY(-50%);
  z-index: 1040;
  display: flex; flex-direction: column; gap: .28rem; padding: .35rem;
}
.social-rail a {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  background: var(--primary);
  color: #fff;
  border-radius: 0 8px 8px 0;
  box-shadow: var(--shadow);
  transition: var(--transition);
  font-size: 0.88rem;
}
.social-rail a:hover { background: var(--accent); transform: translateX(3px); }

/* Property cards */
.property-image-wrap {
  position: relative;
  height: 165px;
  overflow: hidden;
  background: #f0d6d9;
}
.property-image-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.property-card:hover .property-image-wrap img { transform: scale(1.06); }
.property-badges {
  position: absolute; top: 8px; left: 8px;
  display: flex; flex-wrap: wrap; gap: .25rem; z-index: 2;
}

/* ========== LISTING GALLERY (smaller + slides + zoom) ========== */
.listing-gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: .6rem;
  max-width: 640px;
}
.gallery-main {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: #f0d6d9;
  aspect-ratio: 16/10;
  max-height: 340px;
  cursor: zoom-in;
}
.gallery-main img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .45s ease;
  display: block;
}
.gallery-main:hover img { transform: scale(1.1); }
.gallery-main .gallery-nav {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  background: rgba(0,0,0,.45);
  color: #fff;
  border: none;
  width: 36px; height: 36px;
  border-radius: 50%;
  font-size: 1rem;
  cursor: pointer;
  opacity: 0;
  transition: opacity .25s;
  z-index: 3;
}
.gallery-main:hover .gallery-nav { opacity: 1; }
.gallery-main .gallery-nav.prev { left: 10px; }
.gallery-main .gallery-nav.next { right: 10px; }
.gallery-main .gallery-nav:hover { background: rgba(196,30,58,.85); }

.gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(68px, 1fr));
  gap: .4rem;
}
.gallery-thumbs .thumb {
  aspect-ratio: 1;
  border-radius: 7px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
  background: #f0d6d9;
  max-height: 72px;
}
.gallery-thumbs .thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .3s ease;
}
.gallery-thumbs .thumb:hover,
.gallery-thumbs .thumb.active { border-color: var(--accent); }
.gallery-thumbs .thumb:hover img { transform: scale(1.08); }

/* Lightbox */
.img-lightbox {
  position: fixed; inset: 0;
  background: rgba(26,10,12,.93);
  z-index: 9999;
  display: none;
  align-items: center; justify-content: center;
  cursor: zoom-out;
  padding: 1.2rem;
}
.img-lightbox.active { display: flex; }
.img-lightbox img {
  max-width: 92%; max-height: 88vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 25px 60px rgba(0,0,0,.5);
  animation: fadeIn .25s ease;
}
.img-lightbox .close-lb {
  position: absolute; top: .9rem; right: 1.1rem;
  color: #fff; font-size: 1.7rem; cursor: pointer; opacity: .8;
}
.img-lightbox .close-lb:hover { opacity: 1; }

/* Dashboard */
.admin-shell, .agent-shell {
  display: flex; gap: 0;
  background: #faf5f6;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  min-height: 70vh;
}
.admin-shell main, .agent-shell main {
  flex: 1; padding: 1.3rem; background: #fffafb;
}
.admin-shell .dash-nav, .agent-shell .dash-nav {
  width: 210px;
  background: linear-gradient(180deg, #7a1226 0%, #4a0b17 100%);
  padding: .9rem 0;
}
.admin-shell .dash-nav a, .agent-shell .dash-nav a {
  display: flex; align-items: center; gap: .6rem;
  padding: .5rem 1rem;
  color: rgba(255,255,255,.72);
  font-size: .84rem;
  border-left: 3px solid transparent;
  transition: var(--transition);
}
.admin-shell .dash-nav a i, .agent-shell .dash-nav a i {
  width: 17px; text-align: center; font-size: 0.88rem;
}
.admin-shell .dash-nav a:hover,
.admin-shell .dash-nav a.active,
.agent-shell .dash-nav a:hover,
.agent-shell .dash-nav a.active {
  background: rgba(255,255,255,.08);
  color: #fff;
  border-left-color: #ffb3ba;
}
.table-card {
  background: #fff;
  border-radius: var(--radius);
  padding: .9rem;
  box-shadow: var(--shadow);
}
.table-card h4 { font-size: 0.92rem; margin-bottom: 0.7rem; }

/* Forms */
.form-control, .form-select {
  border-radius: var(--radius-sm);
  border-color: var(--border);
  padding: .5rem .8rem;
  font-size: 0.88rem;
  transition: var(--transition);
}
.form-control:focus, .form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(196,30,58,.12);
}
.form-label { font-size: 0.83rem; font-weight: 600; }

/* Animations & transitions */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.animate-fade-up { animation: fadeUp .5s ease both; }

/* Utility */
.text-accent { color: var(--accent) !important; }
.shadow-hover { transition: var(--transition); }
.shadow-hover:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }

/* ========== MOBILE ========== */
@media (max-width: 991px) {
  .admin-shell, .agent-shell { flex-direction: column; }
  .admin-shell .dash-nav, .agent-shell .dash-nav {
    width: 100%; display: flex; flex-wrap: wrap;
    padding: .35rem; gap: .15rem;
  }
  .admin-shell .dash-nav a, .agent-shell .dash-nav a {
    flex: 1 1 auto; border-left: none;
    border-bottom: 3px solid transparent;
    padding: .4rem .5rem; font-size: .76rem;
  }
  .admin-shell .dash-nav a.active, .agent-shell .dash-nav a.active {
    border-bottom-color: #ffb3ba; border-left: none;
  }
  .social-rail { display: none; }
  .hero-slider { height: 340px; }
  .listing-gallery { max-width: 100%; }
  .gallery-main { max-height: 260px; }
}
@media (max-width: 576px) {
  html { font-size: 14px; }
  .hero-slider { height: 300px; }
  .section { padding: 1.8rem 0; }
  .navbar-brand { font-size: 1rem; }
  .gallery-thumbs { grid-template-columns: repeat(auto-fill, minmax(56px, 1fr)); }
  .hero-nav-btn { width: 34px; height: 34px; font-size: 0.95rem; }
}

/* =========================================================
   Listing detail – modern slider + amenities (Airbnb ready)
   ========================================================= */
.listing-slider-wrap { position: relative; }
.listing-slide-bg { background: #1a0a0c; }
.listing-slide-bg img { object-fit: cover; }
.carousel-control-prev-icon,
.carousel-control-next-icon {
  background-color: rgba(0,0,0,.45);
  border-radius: 50%;
  width: 2.4rem; height: 2.4rem;
  background-size: 50%;
}
.carousel-indicators [data-bs-target] {
  width: 8px; height: 8px; border-radius: 50%;
  background-color: rgba(255,255,255,.7);
}
.listing-thumbs { scrollbar-width: thin; }
.listing-thumbs .thumb-btn {
  flex: 0 0 auto;
  width: 88px; height: 64px;
  opacity: .7;
  transition: opacity .2s, box-shadow .2s;
  border: 2px solid transparent !important;
}
.listing-thumbs .thumb-btn.active,
.listing-thumbs .thumb-btn:hover {
  opacity: 1;
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 2px rgba(196,30,58,.25);
}
.listing-thumbs .thumb-btn img { width: 100%; height: 100%; display: block; }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: .75rem;
}
.feature-pill {
  display: flex;
  align-items: flex-start;
  gap: .5rem;
  background: var(--light);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: .75rem 1rem;
}

.amenities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: .65rem 1rem;
}
.amenity-item {
  display: flex;
  align-items: center;
  gap: .65rem;
  font-size: .95rem;
  padding: .45rem 0;
}
.amenity-icon {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: rgba(196,30,58,.08);
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.amenity-icon i { font-size: 1rem; }

.listing-detail .price { letter-spacing: -0.02em; }

@media (max-width: 768px) {
  .feature-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
  .amenities-grid { grid-template-columns: 1fr 1fr; }
  .listing-thumbs .thumb-btn { width: 72px; height: 52px; }
}
@media (max-width: 480px) {
  .amenities-grid { grid-template-columns: 1fr; }
}

/* Floating compare bar */
.compare-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 1050;
  background: #1a1a2e;
  color: #fff;
  box-shadow: 0 -4px 20px rgba(0,0,0,.25);
  transform: translateY(110%);
  transition: transform .25s ease;
}
.compare-bar.show { transform: translateY(0); }
.compare-bar .btn-accent {
  background: var(--accent, #c41e3a);
  border-color: var(--accent, #c41e3a);
  color: #fff;
}
body { padding-bottom: 0; }
body:has(.compare-bar.show) { padding-bottom: 56px; }

/* Listing sidebar video */
.sidebar video { background: #000; }

/* Faster perceived load */
img[loading="lazy"] { content-visibility: auto; }


/* ===== Classified Property Finder brand ===== */
.navbar-brand {
  gap: .45rem;
  max-width: min(280px, 58vw);
}
.brand-logo-nav {
  height: 38px;
  width: auto;
  max-width: 168px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,.25));
}
@media (max-width: 576px) {
  .brand-logo-nav { height: 28px; max-width: 150px; }
}

.home-brand-strip {
  display: flex;
  justify-content: center;
  padding: .65rem 0 .35rem;
  background: #fff;
  border-bottom: 1px solid var(--border);
}
.home-brand-anim {
  height: 64px;
  width: auto;
  max-width: min(220px, 70vw);
  object-fit: contain;
  display: block;
}
@media (max-width: 576px) {
  .home-brand-anim { height: 52px; }
}

.footer-brand-logo {
  height: 42px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
  margin-bottom: .6rem;
  /* keep navy/gold artwork — do not invert */
}


/* Faint display watermark on listing photos (does not hide the image) */
.property-image-wrap,
.gallery-main {
  position: relative;
}
.property-image-wrap::after,
.gallery-main::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: url("../brand/logos/CLASSIFIEDS_HybridC_transparent.png");
  background-repeat: no-repeat;
  background-position: right 10px bottom 10px;
  background-size: 28% auto;
  opacity: .18;
}


/* Flashing white / red bar above the header */
.site-flash-bar {
  height: 8px;
  width: 100%;
  background: linear-gradient(90deg, #ffffff 0%, #c41e3a 50%, #ffffff 100%);
  background-size: 200% 100%;
  animation: cpfFlashBar 2.4s linear infinite;
  box-shadow: 0 0 12px rgba(196,30,58,.55);
}
.site-flash-bar .flash-bar-inner {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}
@keyframes cpfFlashBar {
  0%   { background-position: 0% 50%; filter: brightness(1.15); }
  50%  { background-position: 100% 50%; filter: brightness(.92); }
  100% { background-position: 0% 50%; filter: brightness(1.15); }
}
.navbar { position: relative; }
.navbar-light .navbar-toggler {
  border-color: rgba(0,0,0,.15);
}
.navbar-light .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%280, 0, 0, 0.7%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}



/* ===== Live listings ticker + digital clock ===== */
.site-chrome { position: sticky; top: 0; z-index: 1040; }
.site-ticker-wrap { position: relative; z-index: 1041; }
.site-ticker {
  display: flex;
  align-items: stretch;
  background: linear-gradient(90deg, #9b1830 0%, #c41e3a 50%, #e63946 100%);
  color: #fff;
  min-height: 38px;
  border-bottom: 1px solid rgba(255,255,255,.15);
}
.ticker-label {
  flex: 0 0 auto;
  background: #c41e3a;
  color: #fff;
  font-weight: 800;
  font-size: .72rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: .35rem;
  padding: 0 .7rem;
  white-space: nowrap;
}
.ticker-label i { animation: cpfPulse 1s ease-in-out infinite; }
@keyframes cpfPulse {
  0%,100% { opacity: 1; }
  50% { opacity: .35; }
}
.ticker-track-wrap {
  flex: 1 1 auto;
  overflow: hidden;
  position: relative;
  mask-image: linear-gradient(90deg, transparent, #000 12px, #000 calc(100% - 12px), transparent);
}
.ticker-track {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  width: max-content;
  animation: cpfTicker 110s linear infinite;
  padding: 0 .8rem;
  min-height: 38px;
}
.ticker-track-wrap:hover .ticker-track { animation-play-state: paused; }
@keyframes cpfTicker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.ticker-item {
  color: #fff;
  text-decoration: none;
  font-size: .82rem;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: .45rem;
}
.ticker-item:hover { color: #ffd6d9; }
.ticker-cat {
  background: rgba(196,30,58,.9);
  color: #fff;
  font-size: .65rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: .12rem .4rem;
  border-radius: 4px;
}
.ticker-loc { color: rgba(255,255,255,.7); font-size: .75rem; }
.ticker-price { color: #ffd166; font-weight: 700; }
.ticker-clock {
  flex: 0 0 auto;
  min-width: 148px;
  background: linear-gradient(180deg, #c41e3a 0%, #7a1226 100%);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  padding: .15rem .75rem;
  border-left: 1px solid rgba(255,255,255,.18);
  font-variant-numeric: tabular-nums;
}
.digital-clock {
  font-family: ui-monospace, "Cascadia Mono", "Segoe UI Mono", Consolas, monospace;
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: .06em;
  line-height: 1.1;
  color: #fff;
  text-shadow: 0 0 8px rgba(255,255,255,.45);
}
.digital-date {
  font-size: .62rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: rgba(255,255,255,.88);
  white-space: nowrap;
}
@media (max-width: 576px) {
  .ticker-clock { min-width: 112px; padding: .15rem .45rem; }
  .digital-clock { font-size: .85rem; }
  .digital-date { font-size: .55rem; }
  .ticker-label { padding: 0 .45rem; font-size: .65rem; }
}

.ticker-weather {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: .4rem;
  padding: 0 .65rem;
  background: rgba(0,0,0,.2);
  border-left: 1px solid rgba(255,255,255,.18);
  min-width: 108px;
  color: #fff;
}
.ticker-weather i {
  font-size: 1.05rem;
  color: #ffd166;
}
.weather-temp {
  font-weight: 800;
  font-size: .88rem;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.weather-meta {
  font-size: .58rem;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: rgba(255,255,255,.8);
  white-space: nowrap;
}
@media (max-width: 576px) {
  .ticker-weather { min-width: 78px; padding: 0 .4rem; }
  .weather-temp { font-size: .78rem; }
}



/* =========================================================
   Global brand watermark — STATIC (no continuous animation)
   Continuous transforms on fixed layers cause scroll lag
   ========================================================= */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: url('../brand/logos/CLASSIFIEDS_HybridC_transparent.png');
  background-repeat: no-repeat;
  background-position: center center;
  background-size: min(68vw, 520px);
  opacity: 0.04;
}

/* Soft static mark on hero banners (no infinite animation) */
.hero-mini {
  position: relative;
  overflow: hidden;
}
.hero-mini::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: url('../brand/logos/CLASSIFIEDS_HybridC_white.png') center / min(42%, 280px) no-repeat;
  opacity: 0.08;
}

/* Footer watermark note */
.site-wm-footer-badge {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  color: rgba(255,255,255,.65);
  letter-spacing: .03em;
  font-size: .72rem;
  text-transform: uppercase;
}
.site-wm-footer-badge img {
  opacity: .7;
  filter: brightness(1.2);
  border-radius: 3px;
}
.page-wm-note {
  display: flex;
  justify-content: center;
  padding: 0.75rem 1rem 1.5rem;
}
.page-wm-note span {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .7rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: rgba(0,0,0,.38);
  background: rgba(255,255,255,.75);
  border: 1px solid rgba(196,30,58,.12);
  border-radius: 999px;
  padding: .35rem .85rem;
}
.page-wm-note img {
  height: 16px;
  opacity: .55;
}

/* =========================================================
   Scroll reveal — light one-shot flow as content enters view
   (GPU-friendly; runs once; no magnetic lag)
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translate3d(0, 18px, 0);
  transition: opacity .45s ease-out, transform .45s ease-out;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}
.reveal-delay-1 { transition-delay: .06s; }
.reveal-delay-2 { transition-delay: .12s; }
.reveal-delay-3 { transition-delay: .18s; }
.reveal-delay-4 { transition-delay: .24s; }

/* Stagger children inside grids */
.reveal-stagger > .reveal:nth-child(1) { transition-delay: .02s; }
.reveal-stagger > .reveal:nth-child(2) { transition-delay: .07s; }
.reveal-stagger > .reveal:nth-child(3) { transition-delay: .12s; }
.reveal-stagger > .reveal:nth-child(4) { transition-delay: .17s; }
.reveal-stagger > .reveal:nth-child(5) { transition-delay: .22s; }
.reveal-stagger > .reveal:nth-child(6) { transition-delay: .27s; }
.reveal-stagger > .reveal:nth-child(7) { transition-delay: .32s; }
.reveal-stagger > .reveal:nth-child(8) { transition-delay: .37s; }

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* ===== Core Web Vitals: CLS stability ===== */
.property-image-wrap {
  aspect-ratio: 16 / 10;
  background: #f0e6e8;
  overflow: hidden;
}
.property-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.listing-slide-bg {
  background: #1a0a0c;
}
.listing-slide-bg img {
  object-fit: cover;
}
.brand-logo-nav,
.home-brand-anim,
.footer-brand-logo {
  height: auto;
  max-height: 64px;
}

/* Prefer reduced motion already handled; keep flash bar subtle for main-thread */
.site-flash-bar {
  animation-duration: 3s;
  animation-timing-function: ease-in-out;
}

/* ===== Mortgage calculator (sale listings) ===== */
.mortgage-calc .mc-donut-wrap {
  position: relative;
  width: 220px;
  height: 220px;
}
.mortgage-calc .mc-donut-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  text-align: center;
  padding: 1.5rem;
}
.mortgage-calc .mc-total {
  font-weight: 800;
  font-size: 1.05rem;
  color: #1a0a0c;
  line-height: 1.2;
}
.mortgage-calc .mc-total-label {
  font-size: .75rem;
  color: #6c757d;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.mortgage-calc .mc-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px rgba(0,0,0,.06);
}
.mortgage-calc .mc-legend-row:last-child {
  border-bottom: 0 !important;
}
.mortgage-calc .input-group-text {
  background: #f8f9fa;
  font-size: .85rem;
  min-width: 2.75rem;
  justify-content: center;
}
.mortgage-calc .form-control:focus {
  border-color: var(--primary, #c41e3a);
  box-shadow: 0 0 0 .2rem rgba(196, 30, 58, .15);
}
@media (max-width: 575.98px) {
  .mortgage-calc .mc-donut-wrap {
    width: 180px;
    height: 180px;
  }
  .mortgage-calc #mcDonut {
    width: 180px !important;
    height: 180px !important;
  }
  .mortgage-calc .mc-total { font-size: .92rem; }
}

/* ===== Modern mobile navigation ===== */
.cpf-nav {
  z-index: 1040;
}
.btn-nav-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.18);
  transition: transform .2s ease, background .2s ease;
}
.btn-nav-icon:hover,
.btn-nav-icon:focus {
  background: rgba(255,255,255,.22);
  color: #fff;
  transform: translateY(-1px);
}
.cpf-toggler {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: rgba(255,255,255,.14);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0;
  box-shadow: none;
}
.cpf-toggler:focus {
  box-shadow: 0 0 0 .2rem rgba(255,255,255,.25);
}
.cpf-toggler-bar {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: #fff;
  transition: transform .25s ease, opacity .2s ease;
}
.cpf-toggler[aria-expanded="true"] .cpf-toggler-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.cpf-toggler[aria-expanded="true"] .cpf-toggler-bar:nth-child(2) {
  opacity: 0;
}
.cpf-toggler[aria-expanded="true"] .cpf-toggler-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.cpf-mobile-drawer {
  max-width: 340px;
  border-radius: 20px 0 0 20px;
}
.cpf-mobile-drawer .offcanvas-header {
  border-bottom: 1px solid rgba(0,0,0,.06);
}
.cpf-mobile-hero {
  padding: 1.1rem 1.25rem 1rem;
  background: linear-gradient(135deg, #7a1024 0%, #c41e3a 55%, #e85d3a 100%);
  color: #fff;
}
.cpf-mobile-menu a {
  display: flex;
  align-items: center;
  gap: .9rem;
  padding: .85rem 1.25rem;
  color: #1a0a0c;
  text-decoration: none;
  border-bottom: 1px solid rgba(0,0,0,.04);
  font-weight: 500;
  transition: background .2s ease, padding-left .2s ease;
}
.cpf-mobile-menu a i {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(196,30,58,.08);
  color: #c41e3a;
  font-size: .95rem;
  transition: transform .2s ease, background .2s ease;
}
.cpf-mobile-menu a:hover,
.cpf-mobile-menu a:focus {
  background: rgba(196,30,58,.05);
  padding-left: 1.45rem;
  color: #c41e3a;
}
.cpf-mobile-menu a:hover i {
  transform: scale(1.08);
  background: rgba(196,30,58,.14);
}
.cpf-mobile-label {
  padding: .75rem 1.25rem .25rem;
  font-size: .7rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #8a7a7d;
  font-weight: 700;
}

/* Bottom tab bar */
.cpf-mobile-tabbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1030;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(12px);
  border-top: 1px solid rgba(0,0,0,.06);
  box-shadow: 0 -8px 24px rgba(26,10,12,.08);
  padding: .35rem .25rem calc(.35rem + env(safe-area-inset-bottom));
}
.cpf-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .15rem;
  text-decoration: none;
  color: #6c5a5e;
  font-size: .65rem;
  font-weight: 600;
  padding: .35rem .15rem;
  border-radius: 12px;
  transition: color .2s ease, transform .2s ease;
}
.cpf-tab i {
  font-size: 1.1rem;
  line-height: 1;
}
.cpf-tab:hover,
.cpf-tab:focus {
  color: #c41e3a;
  transform: translateY(-1px);
}
.cpf-tab-post {
  position: relative;
  top: -10px;
}
.cpf-tab-post i {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #c41e3a, #e85d3a);
  color: #fff !important;
  box-shadow: 0 8px 18px rgba(196,30,58,.35);
  font-size: 1.15rem;
  animation: cpfPulse 2.4s ease-in-out infinite;
}
@keyframes cpfPulse {
  0%, 100% { transform: scale(1); box-shadow: 0 8px 18px rgba(196,30,58,.35); }
  50% { transform: scale(1.05); box-shadow: 0 10px 22px rgba(196,30,58,.45); }
}
@media (prefers-reduced-motion: reduce) {
  .cpf-tab-post i { animation: none; }
  .cpf-mobile-menu a, .btn-nav-icon, .cpf-tab { transition: none; }
}

/* Space for bottom bar on small screens */
@media (max-width: 991.98px) {
  body {
    padding-bottom: 72px;
  }
  .site-ticker-wrap {
    font-size: .8rem;
  }
  .property-card {
    border-radius: 16px;
  }
  .hero .container,
  .hero-mini .container {
    padding-top: .5rem;
  }
  .listing-detail .sidebar {
    position: static !important;
    top: auto !important;
  }
  .mortgage-calc .mc-donut-wrap {
    margin-bottom: .5rem;
  }
}

/* Touch-friendly cards */
@media (max-width: 575.98px) {
  .btn, .form-control, .form-select {
    min-height: 44px;
  }
  .container.section {
    padding-top: 1.25rem;
    padding-bottom: 1.25rem;
  }
}

/* ===== Modern admin dashboard ===== */
.admin-dash-modern .dash-hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1.15rem 1.25rem;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(122,16,36,.96), rgba(196,30,58,.92) 55%, rgba(232,93,58,.88));
  color: #fff;
  box-shadow: 0 12px 30px rgba(196,30,58,.22);
}
.admin-dash-modern .dash-hero .text-muted { color: rgba(255,255,255,.8) !important; }
.admin-dash-modern .dash-eyebrow {
  font-size: .72rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  opacity: .9;
  font-weight: 700;
}
.admin-dash-modern .dash-hero .btn {
  border-color: rgba(255,255,255,.45);
  color: #fff;
}
.admin-dash-modern .dash-hero .btn:hover {
  background: #fff;
  color: #c41e3a;
}

.dash-kpi {
  display: flex;
  align-items: center;
  gap: .85rem;
  padding: 1rem;
  border-radius: 16px;
  background: #fff;
  border: 1px solid rgba(0,0,0,.05);
  box-shadow: 0 8px 20px rgba(26,10,12,.04);
  height: 100%;
  transition: transform .25s ease, box-shadow .25s ease;
}
.dash-kpi:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 28px rgba(26,10,12,.08);
}
.dash-kpi small {
  display: block;
  color: #8a7a7d;
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  font-weight: 700;
}
.dash-kpi strong {
  display: block;
  font-size: 1.2rem;
  font-weight: 800;
  color: #1a0a0c;
  line-height: 1.2;
}
.dash-kpi-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
  font-size: 1.05rem;
}
.dash-kpi-bg1 .dash-kpi-icon, .dash-kpi-bg1 .dash-kpi-icon { background: linear-gradient(135deg,#c41e3a,#e85d3a); }
.dash-kpi-bg2 .dash-kpi-icon { background: linear-gradient(135deg,#0d6efd,#4dabf7); }
.dash-kpi-bg3 .dash-kpi-icon { background: linear-gradient(135deg,#198754,#20c997); }
.dash-kpi-bg4 .dash-kpi-icon { background: linear-gradient(135deg,#6f42c1,#b197fc); }
.dash-kpi-bg5 .dash-kpi-icon { background: linear-gradient(135deg,#fd7e14,#ffc078); }
.dash-kpi-bg6 .dash-kpi-icon { background: linear-gradient(135deg,#212529,#868e96); }

.dash-anim {
  animation: dashIn .5s ease both;
  animation-delay: var(--d, 0s);
}
@keyframes dashIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .dash-anim { animation: none; }
  .dash-kpi { transition: none; }
}

.dash-panel {
  background: #fff;
  border: 1px solid rgba(0,0,0,.05);
  border-radius: 18px;
  padding: 1.15rem 1.25rem;
  box-shadow: 0 8px 22px rgba(26,10,12,.04);
}
.dash-chart-wrap {
  position: relative;
  height: 260px;
}
.dash-bar-row { margin-bottom: .65rem; }
.dash-bar {
  height: 8px;
  border-radius: 99px;
  background: #f1e8ea;
  overflow: hidden;
  margin-top: .25rem;
}
.dash-bar span {
  display: block;
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, #c41e3a, #e85d3a);
}
.dash-bar-alt span {
  background: linear-gradient(90deg, #0d6efd, #20c997);
}

.admin-shell .dash-nav a {
  border-radius: 12px;
  transition: background .2s ease, transform .2s ease, color .2s ease;
}
.admin-shell .dash-nav a:hover {
  transform: translateX(3px);
}

/* ===== Dashboard sidebar (admin + agent) — left ordered nav ===== */
.admin-shell, .agent-shell {
  display: flex;
  align-items: stretch;
  gap: 0;
  min-height: 70vh;
  background: #f7f2f3;
  border-radius: 16px;
  overflow: visible;
  box-shadow: var(--shadow, 0 8px 24px rgba(0,0,0,.06));
}
.dash-sidebar {
  flex: 0 0 230px;
  max-width: 230px;
  background: linear-gradient(180deg, #7a1226 0%, #3d0812 100%);
  border-radius: 16px 0 0 16px;
  position: sticky;
  top: 80px;
  align-self: flex-start;
  max-height: calc(100vh - 100px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  z-index: 20;
}
.dash-nav {
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: .6rem 0 1rem;
}
.dash-nav a {
  display: flex;
  align-items: center;
  gap: .65rem;
  padding: .55rem 1rem;
  color: rgba(255,255,255,.78);
  font-size: .84rem;
  border-left: 3px solid transparent;
  text-decoration: none;
  white-space: nowrap;
}
.dash-nav a i { width: 18px; text-align: center; }
.dash-nav a:hover, .dash-nav a.active {
  background: rgba(255,255,255,.1);
  color: #fff;
  border-left-color: #ffb3ba;
}
.dash-badge {
  display: inline-block;
  margin-left: .35rem;
  background: #fff;
  color: #c41e3a;
  border-radius: 99px;
  font-size: .65rem;
  font-weight: 800;
  padding: .05rem .4rem;
  vertical-align: middle;
}
.dash-side-toggle {
  display: none;
  width: calc(100% - 1rem);
  margin: .5rem;
  border: 0;
  border-radius: 10px;
  background: rgba(255,255,255,.12);
  color: #fff;
  padding: .55rem .75rem;
  font-weight: 600;
}
.admin-shell main, .agent-shell main {
  flex: 1;
  min-width: 0;
  padding: 1.25rem;
  background: #fffafb;
  border-radius: 0 16px 16px 0;
  overflow-x: auto;
}

@media (max-width: 991.98px) {
  .admin-shell, .agent-shell {
    flex-direction: row;
    overflow: visible;
  }
  .dash-sidebar {
    position: sticky;
    top: 70px;
    flex: 0 0 56px;
    max-width: 56px;
    max-height: calc(100vh - 90px);
    border-radius: 12px 0 0 12px;
  }
  .dash-sidebar.is-open {
    flex-basis: min(82vw, 260px);
    max-width: min(82vw, 260px);
  }
  .dash-side-toggle { display: block; }
  .dash-nav a span { display: none; }
  .dash-sidebar.is-open .dash-nav a span { display: inline; }
  .dash-nav a {
    justify-content: center;
    padding: .65rem .4rem;
    border-left-width: 0;
    border-radius: 8px;
    margin: 0 .25rem;
  }
  .dash-sidebar.is-open .dash-nav a {
    justify-content: flex-start;
    padding: .55rem .85rem;
  }
  /* Avoid frozen sticky content blocking scroll */
  .listing-detail .sidebar,
  .sidebar.sticky-top {
    position: static !important;
    top: auto !important;
  }
  .site-chrome, .navbar.cpf-nav {
    position: sticky;
    top: 0;
    z-index: 1030;
  }
}

/* Faster feel: content-visibility for long grids */
.property-card, .dash-panel, .table-card {
  content-visibility: auto;
  contain-intrinsic-size: 240px;
}

/* ===== Dashboard nav: desktop left · mobile dropdown only ===== */
.admin-shell, .agent-shell {
  display: flex !important;
  flex-direction: row !important;
  align-items: stretch;
  gap: 0;
  min-height: 70vh;
  overflow: visible !important;
  background: #f7f2f3;
  border-radius: 16px;
}
.admin-shell main, .agent-shell main {
  flex: 1;
  min-width: 0;
  padding: 1.15rem;
  background: #fffafb;
  border-radius: 0 16px 16px 0;
}
.dash-sidebar {
  flex: 0 0 230px;
  width: 230px;
  background: linear-gradient(180deg, #7a1226 0%, #3d0812 100%);
  border-radius: 16px 0 0 16px;
  position: sticky;
  top: 88px;
  align-self: flex-start;
  max-height: calc(100vh - 110px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.dash-nav {
  display: flex !important;
  flex-direction: column !important;
  flex-wrap: nowrap !important;
  width: 100% !important;
  padding: .75rem 0 1rem;
}
.dash-nav a {
  display: flex !important;
  flex: none !important;
  align-items: center;
  gap: .65rem;
  padding: .55rem 1rem !important;
  color: rgba(255,255,255,.8);
  font-size: .84rem;
  border-left: 3px solid transparent;
  border-bottom: 0 !important;
  text-decoration: none;
  white-space: nowrap;
}
.dash-nav a i { width: 18px; text-align: center; }
.dash-nav a:hover, .dash-nav a.active {
  background: rgba(255,255,255,.1);
  color: #fff;
  border-left-color: #ffb3ba;
}
.dash-badge {
  background: #fff;
  color: #c41e3a;
  border-radius: 99px;
  font-size: .65rem;
  font-weight: 800;
  padding: .05rem .4rem;
  margin-left: .25rem;
}

/* Mobile dropdown menu bar */
.dash-mobile-bar {
  width: 100%;
  margin-bottom: .85rem;
}
.dash-mobile-drop {
  background: linear-gradient(135deg, #7a1226, #c41e3a);
  color: #fff !important;
  border: 0;
  border-radius: 12px;
  padding: .7rem 1rem;
  font-weight: 600;
  text-align: left;
  box-shadow: 0 8px 18px rgba(196,30,58,.25);
}
.dash-mobile-drop::after { float: right; margin-top: .5rem; }
.dash-mobile-menu {
  max-height: 70vh;
  overflow-y: auto;
  border: 0;
  border-radius: 12px;
  padding: .35rem;
}
.dash-mobile-menu .dropdown-item {
  border-radius: 8px;
  padding: .65rem .85rem;
  font-weight: 500;
}
.dash-mobile-menu .dropdown-item.active,
.dash-mobile-menu .dropdown-item:active {
  background: rgba(196,30,58,.1);
  color: #c41e3a;
}

@media (max-width: 991.98px) {
  .admin-shell, .agent-shell {
    flex-direction: column !important;
  }
  .admin-shell main, .agent-shell main {
    border-radius: 16px;
    width: 100%;
  }
  /* Hide any leftover horizontal chip navs */
  .dash-sidebar { display: none !important; }
  .admin-shell > .dash-nav,
  .agent-shell > .dash-nav {
    display: none !important;
  }
}

/* Ticket workflow stages */
.ticket-stages {
  display: flex;
  flex-direction: column;
  gap: .35rem;
}
.ticket-stage {
  display: flex;
  align-items: center;
  gap: .6rem;
  opacity: .45;
  font-size: .82rem;
}
.ticket-stage.is-done { opacity: .85; }
.ticket-stage.is-current {
  opacity: 1;
  font-weight: 700;
  color: #c41e3a;
}
.ticket-stage-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ddd;
  flex-shrink: 0;
}
.ticket-stage.is-done .ticket-stage-dot { background: #20c997; }
.ticket-stage.is-current .ticket-stage-dot {
  background: #c41e3a;
  box-shadow: 0 0 0 4px rgba(196,30,58,.2);
}
