/* ============================================
   OpenHomes — Styles
   ============================================ */

:root {
  --oh-bg: #0F1117;
  --oh-surface: #1A1D27;
  --oh-text: #E8E6E1;
  --oh-text-secondary: #8B8D97;
  --oh-accent: #3FBF96;
  --oh-accent-light: #5AD4AB;
  --oh-accent-btn: #1F8C64;
  --oh-accent-btn-hover: #177A56;
  --oh-accent-bg: rgba(63,191,150,.1);
  --oh-warm: #D4A853;
  --oh-warm-light: rgba(212,168,83,.12);
  --oh-border: #2A2D38;
  --oh-shadow: 0 1px 3px rgba(0,0,0,.2), 0 4px 12px rgba(0,0,0,.15);
  --oh-shadow-lg: 0 4px 6px rgba(0,0,0,.25), 0 12px 32px rgba(0,0,0,.2);
  --oh-radius: 14px;
  --oh-radius-sm: 8px;
}

/* ---- Light mode ---- */
html.light-theme {
  --oh-bg: #F5F5F3;
  --oh-surface: #FFFFFF;
  --oh-text: #1A1D27;
  --oh-text-secondary: #6B6E7A;
  --oh-accent: #2FA67E;
  --oh-accent-light: #28916E;
  --oh-accent-btn: #1D7A5A;
  --oh-accent-btn-hover: #166B4E;
  --oh-accent-bg: rgba(47,166,126,.08);
  --oh-warm: #B8912E;
  --oh-warm-light: rgba(184,145,46,.1);
  --oh-border: #E2E2E0;
  --oh-shadow: 0 1px 3px rgba(0,0,0,.06), 0 4px 12px rgba(0,0,0,.04);
  --oh-shadow-lg: 0 4px 6px rgba(0,0,0,.07), 0 12px 32px rgba(0,0,0,.06);
}
.light-theme .oh-hero::before {
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(47,166,126,.06) 0%, transparent 70%),
    radial-gradient(ellipse 60% 50% at 80% 80%, rgba(184,145,46,.05) 0%, transparent 60%),
    radial-gradient(ellipse 40% 40% at 10% 70%, rgba(47,166,126,.03) 0%, transparent 50%);
}
.light-theme .oh-nav.scrolled { background: var(--oh-bg); }
.light-theme .card-img-wrap { background: #E8E8E6; }
.light-theme .oh-search-bar input::placeholder { color: #9B9DA6; }
.light-theme .fav-btn { color: #B0B2BA; }
.light-theme .fav-empty-star svg { color: #C8CAD0; }
.light-theme .fav-item-remove { color: #B0B2BA; }
.light-theme .fav-item-map { filter: grayscale(.3); }
.light-theme .fav-item-map-wrap { background: #E8E8E6; }
.light-theme .fav-overlay.open { background: rgba(0,0,0,.3); }
.light-theme .oh-cta-inner { background: linear-gradient(135deg, #E8F5EF, #D4EDDF); }
.light-theme .oh-cta-inner::before {
  background:
    radial-gradient(circle at 100% 0%, rgba(184,145,46,.08) 0%, transparent 50%),
    radial-gradient(circle at 0% 100%, rgba(47,166,126,.06) 0%, transparent 40%);
}
.light-theme .oh-cta-text h2 { color: var(--oh-text); }
.light-theme .oh-cta-text p { color: var(--oh-text-secondary); }
.light-theme .oh-cta-btn { background: var(--oh-accent-btn); color: #fff; }
.light-theme .auth-field input::placeholder { color: #9B9DA6; }
.light-theme .auth-tab.active { box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.light-theme .auth-overlay { background: rgba(0,0,0,.3); }
.light-theme .auth-google-btn { background: #fff; border-color: #dadce0; color: #3c4043; }
.light-theme .auth-google-btn:hover { background: #f8f9fa; }

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

html { overflow-x: hidden; }
body, html {
  font-family: 'DM Sans', sans-serif;
  background: var(--oh-bg);
  color: var(--oh-text);
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}
body { overflow-x: hidden; max-width: 100vw; }

/* ---- Navigation ---- */
.oh-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 20px;
  transition: background .35s cubic-bezier(.4,0,.2,1), box-shadow .35s cubic-bezier(.4,0,.2,1), backdrop-filter .35s cubic-bezier(.4,0,.2,1);
  background: transparent;
}
.oh-nav.scrolled {
  background: var(--oh-bg);
  box-shadow: 0 1px 0 var(--oh-border);
}
.oh-logo {
  display: flex; align-items: center; gap: 8px;
  font-family: 'Aleo', serif; font-weight: 700;
  font-size: 18px; font-weight: 600;
  color: var(--oh-accent); text-decoration: none;
}
.oh-logo img { width: 30px; height: 30px; object-fit: contain; }
.oh-nav-links { display: flex; gap: 10px; align-items: center; }
.oh-nav-links a {
  color: var(--oh-text-secondary); text-decoration: none;
  font-size: 14px; font-weight: 500; transition: color .2s;
  letter-spacing: .01em;
}
.oh-nav-links a:hover { color: var(--oh-text); }
.oh-nav-cta {
  background: var(--oh-accent) !important;
  color: #fff !important;
  padding: 10px 22px; border-radius: 100px;
  font-weight: 600 !important; font-size: 13px !important;
  letter-spacing: .02em; transition: all .25s !important;
}
.oh-nav-cta:hover {
  background: var(--oh-accent-light) !important;
  transform: translateY(-1px);
}
.oh-nav-cta-admin {
  background: var(--oh-warm) !important;
}
.oh-nav-cta-admin:hover {
  background: #c9972e !important;
}

/* ---- Floating favourites button ---- */
.oh-fav-float {
  position: fixed; bottom: 24px; right: 24px; z-index: 150;
  height: 48px; padding: 0 18px; border-radius: 100px;
  background: var(--oh-accent); border: 2px solid var(--oh-accent);
  color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  font-family: 'DM Sans', sans-serif; font-size: 14px; font-weight: 700;
  box-shadow: 0 3px 10px rgba(0,0,0,.15);
  transition: all .25s cubic-bezier(.4,0,.2,1);
  will-change: transform; -webkit-transform: translateZ(0);
}
.oh-fav-float::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background: radial-gradient(circle 60px at var(--mx, -100px) var(--my, -100px), rgba(255,255,255,.35), transparent 70%);
  opacity: 0; transition: opacity .2s;
}
@media (hover: hover) { .oh-fav-float:hover::before { opacity: 1; } }
.oh-fav-float.glow-active::before { opacity: 1; }
.oh-fav-float.glow-out::before { opacity: 0 !important; transition: opacity .4s; }
.oh-fav-float svg { fill: #fff; stroke: #fff; }
.oh-fav-float:hover { transform: scale(1.05); box-shadow: 0 4px 18px rgba(76,175,80,.35); }
.oh-fav-float-count {
  position: absolute; top: -6px; right: -6px;
  background: #E53935; color: #fff;
  font-size: 13px; font-weight: 800;
  min-width: 26px; height: 26px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 6px rgba(0,0,0,.2);
  font-family: 'DM Sans', sans-serif;
}
.oh-fav-float.pop { animation: favPop .4s cubic-bezier(.34,1.56,.64,1); }
@keyframes favPop {
  0% { transform: scale(1); }
  40% { transform: scale(1.25); }
  100% { transform: scale(1); }
}
.oh-fav-float.pop-soft { animation: favPopSoft .3s cubic-bezier(.34,1.56,.64,1); }
@keyframes favPopSoft {
  0% { transform: scale(1); }
  40% { transform: scale(1.06); }
  100% { transform: scale(1); }
}

/* ---- Hero ---- */
.oh-hero {
  position: relative; min-height: 70vh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center; padding: 120px 24px 80px; overflow: hidden;
}
.oh-hero::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(63,191,150,.08) 0%, transparent 70%),
    radial-gradient(ellipse 60% 50% at 80% 80%, rgba(212,168,83,.06) 0%, transparent 60%),
    radial-gradient(ellipse 40% 40% at 10% 70%, rgba(63,191,150,.04) 0%, transparent 50%);
}
.oh-hero-pattern {
  position: absolute; inset: 0; opacity: .04;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%233FBF96' fill-opacity='1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.oh-hero-img-grid {
  position: absolute; inset: 0; overflow: hidden;
  opacity: .15; pointer-events: none;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black 20%, transparent 70%);
}
.oh-hero-img-track {
  width: 200%; height: 100%;
  background: url('house.jpeg') repeat;
  background-size: 180px 120px;
  animation: heroImgScroll 90s linear infinite;
  will-change: transform;
}
@keyframes heroImgScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .oh-hero-img-track { animation: none; }
}
[data-theme="light"] .oh-hero-img-grid { opacity: .18; }
.oh-hero-logo {
  width: 80px; height: 80px; object-fit: contain;
  margin-bottom: 24px; position: relative;
  animation: fadeUp .7s ease forwards; opacity: 0;
  filter: drop-shadow(0 4px 20px rgba(63,191,150,.3));
}
.oh-hero-tagline {
  font-size: 12px; font-weight: 600; letter-spacing: .15em;
  text-transform: uppercase; color: var(--oh-warm);
  margin-bottom: 20px; position: relative;
  animation: fadeUp .7s ease .05s forwards; opacity: 0;
}
.oh-hero h1 {
  font-family: 'Aleo', serif; font-weight: 700;
  font-size: clamp(38px,6vw,72px); font-weight: 600;
  line-height: 1.1; color: var(--oh-text);
  white-space: nowrap;
  position: relative; animation: fadeUp .7s ease .1s forwards; opacity: 0;
}
.oh-hero h1 em { font-style: italic; color: var(--oh-accent); }
.oh-hero-accent { color: var(--oh-accent); }
.oh-hero-sub {
  font-size: 17px; color: var(--oh-text-secondary);
  max-width: 480px; margin-top: 20px; line-height: 1.65;
  position: relative; animation: fadeUp .7s ease .2s forwards; opacity: 0;
}

/* ---- Search ---- */
.oh-search-wrap {
  margin-top: 40px; position: relative; width: 100%; max-width: 620px;
  animation: fadeUp .7s ease .3s forwards; opacity: 0;
}
.oh-search-bar {
  display: flex; align-items: center;
  background: var(--oh-surface); border: 1.5px solid var(--oh-border);
  border-radius: 100px; padding: 6px 6px 6px 28px;
  box-shadow: var(--oh-shadow-lg); transition: all .3s ease;
}
.oh-search-bar:focus-within {
  border-color: var(--oh-accent);
  box-shadow: var(--oh-shadow-lg), 0 0 0 3px rgba(63,191,150,.15);
}
.oh-search-bar input {
  flex: 1; border: none; outline: none; background: none;
  font-size: 16px; font-family: 'DM Sans', sans-serif;
  color: var(--oh-text); padding: 12px 0;
}
.oh-search-bar input:focus,
.oh-search-bar input:focus-visible { outline: none; box-shadow: none; }
.oh-search-bar input::placeholder { color: #7B7E8A; }
.oh-locate-btn {
  background: none; border: none; border-radius: 50%;
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  color: var(--oh-text-secondary); cursor: pointer; transition: all .25s; flex-shrink: 0;
}
.oh-locate-btn:hover { color: var(--oh-accent); background: var(--oh-accent-bg); }
.oh-locate-btn.locating { color: var(--oh-accent); opacity: .5; }
.oh-search-btn {
  background: var(--oh-accent); border: none; border-radius: 100px;
  width: 50px; height: 50px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; cursor: pointer; transition: all .25s; flex-shrink: 0;
}
.oh-search-btn:hover { background: var(--oh-accent-light); transform: scale(1.04); }

/* ---- Stats ---- */
.oh-hero-stats {
  display: flex; gap: 48px; margin-top: 48px;
  position: relative; animation: fadeUp .7s ease .4s forwards; opacity: 0;
}
.oh-stat { text-align: center; }
.oh-stat-num {
  font-family: 'Aleo', serif; font-weight: 700;
  font-size: 28px; font-weight: 600; color: var(--oh-accent);
}
.oh-stat-label {
  font-size: 12px; color: var(--oh-text-secondary);
  margin-top: 4px; letter-spacing: .02em;
}

/* ---- Section / Grid ---- */
.oh-section { max-width: 1240px; margin: 0 auto; padding: 0 24px 80px; }
.oh-section-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 32px; flex-wrap: wrap; gap: 16px;
}
.oh-section-title {
  font-family: 'Aleo', serif; font-weight: 700;
  font-size: 28px; font-weight: 600;
}
.oh-section-title span {
  color: var(--oh-text-secondary); font-weight: 400;
  font-size: 20px; margin-left: 8px;
}
.oh-filters { display: flex; gap: 8px; align-items: center; flex-wrap: nowrap; }
.oh-filter-group { display: flex; gap: 6px; flex-wrap: nowrap; }
.oh-filter-divider { width: 1px; height: 24px; background: var(--oh-border); flex-shrink: 0; }
.oh-filter-btn {
  padding: 7px 16px; border-radius: 100px;
  border: 1.5px solid var(--oh-border);
  background: var(--oh-surface); white-space: nowrap;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px; font-weight: 500;
  color: var(--oh-text-secondary); cursor: pointer; transition: all .2s;
}
.oh-filter-btn:hover { border-color: var(--oh-accent); color: var(--oh-text); }
.oh-filter-btn.active {
  background: var(--oh-accent-btn); color: #fff;
  border-color: var(--oh-accent-btn);
}
.oh-grid {
  columns: 3 340px;
  column-gap: 24px;
}
.oh-grid > * {
  break-inside: avoid;
  margin-bottom: 24px;
}

/* ---- Property Cards ---- */
.prop-card {
  background: var(--oh-surface); border-radius: var(--oh-radius);
  overflow: hidden; border: 1px solid var(--oh-border);
  transition: all .3s cubic-bezier(.4,0,.2,1);
  animation: cardIn .5s ease forwards; opacity: 0;
}
@media (hover: hover) {
  .prop-card:hover {
    box-shadow: var(--oh-shadow-lg);
    border-color: var(--oh-accent);
  }
}
.card-img-wrap {
  position: relative; height: 220px; overflow: hidden;
  background: #1E2130;
  border-radius: var(--oh-radius) var(--oh-radius) 0 0;
}

/* ---- Card carousel ---- */
.card-carousel {
  position: relative; width: 100%; height: 100%; overflow: hidden;
}
.card-carousel-track {
  display: flex; height: 100%;
  transition: transform .35s cubic-bezier(.4,0,.2,1);
}
.card-carousel-track img {
  width: 100%; height: 100%; object-fit: cover; flex-shrink: 0;
  user-select: none; -webkit-user-select: none;
  opacity: 0; transition: opacity .3s;
}
.card-carousel-track img.loaded { opacity: 1; }
.card-carousel-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(0,0,0,.5); border: none; color: #fff;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; z-index: 3; backdrop-filter: blur(6px);
  opacity: 0; transition: opacity .25s;
  pointer-events: none;
  /* 44px touch target via pseudo-element */
}
.card-carousel-btn::after {
  content: ''; position: absolute;
  top: -5px; left: -5px; right: -5px; bottom: -5px;
}
.card-carousel-btn.visible { opacity: 1; pointer-events: auto; }
.card-carousel-prev { left: 8px; }
.card-carousel-next { right: 8px; }
.card-carousel-btn:hover { background: rgba(0,0,0,.7); }
.card-carousel-dots {
  position: absolute; bottom: 8px; left: 50%;
  transform: translateX(-50%); display: flex; gap: 5px; z-index: 3;
}
.card-carousel-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: rgba(255,255,255,.4); transition: all .2s;
  border: none;
}
.card-carousel-dot.active { background: #fff; transform: scale(1.3); }
.card-date-badge {
  position: absolute; top: 12px; left: 12px;
  display: flex; align-items: center; gap: 5px;
  font-size: 12px; font-weight: 600;
  padding: 6px 12px; border-radius: 100px;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  background: rgba(63,191,150,.85); color: #fff;
}
.card-date-badge svg { width: 14px; height: 14px; }
.card-body { padding: 20px; }
.card-price { font-size: 18px; font-weight: 700; color: var(--oh-text); margin-bottom: 6px; }
.card-address {
  display: flex; align-items: center; gap: 6px;
  font-size: 14px; color: var(--oh-text-secondary);
  margin-bottom: 14px; line-height: 1.4;
}
.card-address svg { flex-shrink: 0; color: var(--oh-warm); }
.card-features {
  display: flex; gap: 16px;
  padding-bottom: 14px; border-bottom: 1px solid var(--oh-border);
}
.card-features span {
  display: flex; align-items: center; gap: 5px;
  font-size: 13px; color: var(--oh-text-secondary); font-weight: 500;
}
.card-features svg { color: var(--oh-accent); }

/* ---- Schedule rows ---- */
.card-schedule { margin-top: 14px; }
.schedule-label {
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .1em; color: var(--oh-accent); margin-bottom: 10px;
}
.schedule-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 5px; border-radius: var(--oh-radius-sm);
  background: var(--oh-bg); margin-bottom: 6px; transition: all .2s;
  border: 1px solid transparent; width: 100%; cursor: pointer;
  font-family: inherit; font-size: inherit; color: inherit; text-align: left;
  transform: translateY(0); transition: all .2s, transform .1s;
}
.schedule-row:active { transform: translateY(2px); }
@media (hover: hover) {
  .schedule-row:hover {
    background: rgba(212,168,83,.08);
    border-color: rgba(212,168,83,.5);
    box-shadow: 0 0 12px rgba(212,168,83,.25);
  }
  .schedule-row-fav:hover { background: rgba(212,168,83,.16); }
}
.schedule-row-fav { background: rgba(212,168,83,.1); }
@media (hover: none) {
  .schedule-row-fav {
    animation: scheduleGlow .6s ease;
  }
}
@keyframes scheduleGlow {
  0% { border-color: rgba(212,168,83,.5); box-shadow: 0 0 12px rgba(212,168,83,.25); background: rgba(212,168,83,.15); }
  100% { border-color: transparent; box-shadow: none; background: rgba(212,168,83,.1); }
}
.schedule-datetime { display: flex; align-items: center; gap: 14px; }
.schedule-date, .schedule-time {
  display: flex; align-items: center; gap: 5px;
  font-size: 13px; font-weight: 500; color: var(--oh-text);
}
.schedule-date svg:first-child { margin-left: 6px; }
.schedule-row { position: relative; overflow: hidden; }
.schedule-row::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle 120px at var(--mx, -100px) var(--my, -100px), rgba(212,168,83,.15), transparent 70%);
  opacity: 0; transition: opacity .2s;
}
@media (hover: hover) { .schedule-row:hover::before { opacity: 1; } }
.schedule-row.glow-active::before { opacity: 1; }
.schedule-row.glow-out::before { opacity: 0 !important; transition: opacity .4s; }
.schedule-time { color: var(--oh-text-secondary); }
.schedule-tz {
  font-size: 11px; font-weight: 600; color: var(--oh-accent);
  opacity: .8;
}

/* ---- Favourite button ---- */
.fav-btn {
  background: none; border: none; cursor: pointer;
  padding: 6px; border-radius: 50%; transition: all .25s;
  color: #6B6E7A; display: flex; align-items: center; justify-content: center;
}
.fav-btn:hover {
  background: var(--oh-warm-light); color: var(--oh-warm);
  transform: scale(1.15);
}
.fav-btn.fav-active { color: var(--oh-warm); }

/* ---- Card type badge ---- */
.card-type-badge {
  position: absolute; top: 12px; right: 12px;
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .06em; padding: 5px 12px; border-radius: 100px;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.type-sale { background: rgba(200,75,75,.85); color: #fff; }
.type-rental { background: rgba(212,168,83,.85); color: #fff; }

/* ---- Agent strip (always visible) ---- */
.card-agent-strip {
  display: flex; align-items: center;
  gap: 8px; margin-top: 14px;
}
.agent-info { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1; }
.card-narrow .agent-info { display: none; }
.agent-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--oh-accent-bg); color: var(--oh-accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700; flex-shrink: 0;
}
.agent-avatar-img {
  width: 36px; height: 36px; border-radius: 50%;
  object-fit: cover; flex-shrink: 0;
  opacity: 0; transition: opacity .3s;
}
.agent-avatar-img.loaded { opacity: 1; }
.agent-text { min-width: 0; overflow: hidden; }
.agent-name { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.agent-agency { font-size: 12px; color: var(--oh-text-secondary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.agent-call {
  display: flex; align-items: center; gap: 5px;
  font-size: 12px; font-weight: 600; color: var(--oh-accent);
  text-decoration: none; padding: 7px 14px; border-radius: 100px;
  background: var(--oh-accent-bg); transition: all .2s; flex-shrink: 0;
}
.agent-call:hover { background: var(--oh-accent); color: #fff; }

/* ---- Agency logo on cards (inline with agent) ---- */
.card-agency-logo {
  max-height: 36px; max-width: 100px; object-fit: contain;
  margin-left: auto; flex-shrink: 0;
}

/* Agency logo theme crossfade */
.agency-logo-swap { position: relative; display: inline-flex; flex-shrink: 0; margin-left: auto; }
.agency-logo-swap .card-agency-logo,
.agency-logo-swap .detail-agency-logo { transition: opacity .4s ease; }
.agency-logo-swap .agency-logo-light { position: absolute; top: 0; right: 0; opacity: 0; }
.agency-logo-swap .agency-logo-dark { opacity: 1; }
.light-theme .agency-logo-swap .agency-logo-light { opacity: 1; }
.light-theme .agency-logo-swap .agency-logo-dark { opacity: 0; }

/* ---- Full-width call button ---- */
.card-agent-call {
  display: flex; align-items: center; justify-content: center;
  gap: 6px; padding: 10px; margin-top: 10px;
  font-size: 13px; font-weight: 600; color: var(--oh-accent);
  text-decoration: none; border-radius: 10px;
  border: 1px solid var(--oh-border); background: none; transition: all .2s;
}
.card-agent-call:hover { border-color: var(--oh-accent); background: var(--oh-accent-bg); }

/* ---- View details link ---- */
.card-view-details {
  display: flex; align-items: center; justify-content: center;
  gap: 6px; padding: 12px; margin-top: 14px;
  font-size: 13px; font-weight: 600; color: var(--oh-accent);
  text-decoration: none; border-radius: 10px;
  background: transparent; border: 1px solid var(--oh-accent); transition: all .2s;
}
.card-view-details:hover { background: var(--oh-accent-bg); }

/* ---- Favourites panel ---- */
.fav-overlay {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,.5);
  z-index: 200; opacity: 0; pointer-events: none;
  transition: opacity .25s ease;
  -webkit-tap-highlight-color: transparent;
  touch-action: none;
  display: none;
}
.fav-overlay.open { opacity: 1; pointer-events: auto; }
.fav-panel {
  position: fixed; bottom: 82px; right: 24px;
  width: 380px; max-height: 70vh;
  background: var(--oh-surface); z-index: 201;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 20px;
  opacity: 0; transform: translateY(12px) scale(.96);
  pointer-events: none;
  transition: opacity .22s ease, transform .22s cubic-bezier(.32,.72,.2,1);
  display: flex; flex-direction: column;
  box-shadow: 0 12px 40px rgba(0,0,0,.12), 0 4px 12px rgba(0,0,0,.08);
  overscroll-behavior: contain;
}
.fav-panel.open {
  opacity: 1; transform: translateY(0) scale(1);
  pointer-events: auto;
}
.fav-panel-header {
  padding: 20px 20px 16px;
  border-bottom: 1px solid rgba(255,255,255,.06);
  background: rgba(212,168,83,.06);
  border-radius: 20px 20px 0 0;
  display: flex; align-items: center; justify-content: space-between;
}
.fav-panel-title {
  font-family: 'Aleo', serif; font-weight: 700; font-size: 22px;
  display: flex; align-items: center; gap: 8px;
}
.fav-panel-title svg { color: var(--oh-warm); width: 22px; height: 22px; }
.fav-panel-close {
  background: none; border: none; cursor: pointer;
  padding: 8px; border-radius: 50%;
  color: var(--oh-text-secondary); transition: all .2s;
}
.fav-panel-close:hover { background: var(--oh-bg); color: var(--oh-text); }
.fav-panel-body {
  flex: 1; overflow-y: auto; padding: 16px; min-height: 190px;
  scrollbar-width: none;
}
.fav-panel-body::-webkit-scrollbar { display: none; }
.fav-empty { text-align: center; padding: 24px 16px; color: var(--oh-text-secondary); }
.fav-empty-star svg { width: 36px; height: 36px; color: var(--oh-warm); opacity: .4; margin-bottom: 12px; }
.fav-empty h3 { font-size: 16px; color: var(--oh-text); margin-bottom: 6px; }
.fav-date-group { margin-bottom: 8px; }
.fav-date-label {
  font-size: 12px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .1em; color: var(--oh-warm);
  margin-bottom: 10px; display: flex; align-items: center; gap: 6px;
}
.fav-date-label svg { color: var(--oh-warm); }
.fav-item {
  background: rgba(212,168,83,.04); border-radius: var(--oh-radius-sm);
  margin-bottom: 12px; overflow: hidden;
  animation: slideIn .25s ease; border: 1px solid rgba(212,168,83,.15);
  transition: border-color .4s, box-shadow .4s, background .4s;
}
@media (hover: hover) {
  .fav-item:hover { background: rgba(212,168,83,.1); border-color: rgba(212,168,83,.3); }
}
.fav-item-glow {
  border-color: var(--oh-accent);
  box-shadow: 0 0 12px rgba(212,168,83,.3), inset 0 0 12px rgba(212,168,83,.06);
  background: rgba(212,168,83,.1);
}
.fav-item-top {
  display: flex; align-items: center; gap: 10px;
  padding: 10px; transition: background .2s;
}
@media (hover: hover) {
  .fav-item-top:hover { background: rgba(212,168,83,.06); }
}
.fav-item-link { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; text-decoration: none; color: inherit; }
.fav-item-img {
  width: 52px; height: 52px; object-fit: cover;
  border-radius: var(--oh-radius-sm);
  flex-shrink: 0; display: block;
}
.fav-item-details { flex: 1; min-width: 0; }
.fav-item-address {
  font-size: 13px; font-weight: 600; color: var(--oh-text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.fav-item-time {
  font-size: 13px; color: var(--oh-text-secondary);
  margin-top: 2px; display: flex; align-items: center; gap: 4px;

}
.fav-item-remove {
  background: none; border: none; cursor: pointer;
  width: 32px; height: 32px; padding: 0;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%; color: #4A4D58;
  transition: all .2s; flex-shrink: 0; margin-left: auto;
}
.fav-item-remove:hover { background: rgba(221,68,68,.12); color: #d44; }
.fav-maps-row {
  display: flex; border-top: 1px solid rgba(212,168,83,.15);
}
.fav-maps-btn {
  display: flex; align-items: center; justify-content: center;
  flex: 1; gap: 5px; padding: 9px 6px;
  font-family: 'DM Sans', sans-serif;
  font-size: 12px; font-weight: 600; color: var(--oh-text-secondary);
  text-decoration: none;
  transition: all .2s; cursor: pointer;
}
.fav-maps-btn + .fav-maps-btn { border-left: 1px solid rgba(212,168,83,.15); }
.fav-maps-btn:hover { background: rgba(212,168,83,.06); color: var(--oh-warm); }
.fav-maps-apple { color: var(--oh-text-secondary); }
.fav-maps-apple:hover { background: rgba(212,168,83,.06); color: var(--oh-warm); }
.fav-panel-footer {
  padding: 16px 24px; border-top: 1px solid rgba(212,168,83,.2);
  font-size: 12px; color: var(--oh-warm); text-align: center;
}

/* ---- Sync Prompt ---- */
.fav-sync-prompt {
  padding: 12px 24px;
  border-top: 1px solid var(--oh-border);
  text-align: center;
}
.fav-sync-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: 1px solid var(--oh-border);
  border-radius: 100px;
  padding: 10px 20px;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--oh-text);
  cursor: pointer;
  transition: all .25s;
  width: 100%;
  justify-content: center;
}
.fav-sync-btn:hover {
  border-color: var(--oh-accent);
  background: var(--oh-accent-bg);
}
.fav-sync-btn svg { flex-shrink: 0; }
.fav-sync-status {
  padding: 10px 24px;
  border-top: 1px solid var(--oh-border);
  font-size: 11px;
  color: var(--oh-text-secondary);
  text-align: center;
}

/* ---- Nav Sign Out ---- */
.oh-nav-signout {
  background: none;
  border: 1px solid var(--oh-border);
  color: var(--oh-text-secondary);
  padding: 6px 14px;
  border-radius: 100px;
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all .25s;
}
.oh-nav-signout:hover {
  border-color: #d44;
  color: #d44;
}

/* ---- CTA Banner ---- */
.oh-cta-banner { max-width: 1240px; margin: 0 auto 80px; padding: 0 24px; }
.oh-cta-inner {
  background: linear-gradient(135deg, #1A3A2E, #1B4D3E);
  border-radius: 20px; padding: 56px 48px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 32px; position: relative; overflow: hidden;
}
.oh-cta-inner::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 100% 0%, rgba(212,168,83,.12) 0%, transparent 50%),
    radial-gradient(circle at 0% 100%, rgba(63,191,150,.08) 0%, transparent 40%);
}
.oh-cta-text { position: relative; }
.oh-cta-text h2 {
  font-family: 'Aleo', serif; font-weight: 700;
  font-size: 30px; font-weight: 600; color: #fff; margin-bottom: 10px;
}
.oh-cta-text p {
  color: rgba(255,255,255,.7); font-size: 15px;
  max-width: 400px; line-height: 1.6;
}
.oh-cta-btn {
  position: relative; background: var(--oh-bg); color: var(--oh-accent);
  border: none; padding: 16px 36px; border-radius: 100px;
  font-family: 'DM Sans', sans-serif; font-size: 15px; font-weight: 700;
  cursor: pointer; transition: all .25s; white-space: nowrap;
}
.oh-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,.3);
}

/* ---- Footer ---- */
.oh-footer {
  border-top: 1px solid var(--oh-border);
  padding: 40px 24px; text-align: center;
}
.oh-footer-logo {
  font-family: 'Aleo', serif; font-weight: 700;
  font-size: 18px; font-weight: 600; color: var(--oh-accent);
  display: flex; align-items: center; justify-content: center;
  gap: 8px; margin-bottom: 12px;
}
.oh-footer-logo img { width: 24px; height: 24px; object-fit: contain; }
.oh-footer p { font-size: 13px; color: var(--oh-text-secondary); }
.oh-footer-links {
  display: flex; gap: 24px; justify-content: center; margin-top: 16px;
}
.oh-footer-links a {
  font-size: 13px; color: var(--oh-text-secondary);
  text-decoration: none; transition: color .2s;
}
.oh-footer-links a:hover { color: var(--oh-text); }

/* ---- Empty state ---- */
.oh-empty { grid-column: 1 / -1; text-align: center; padding: 60px 20px; }
.oh-empty-icon {
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--oh-accent-bg);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px; color: var(--oh-accent);
}
.oh-empty h3 { font-size: 18px; margin-bottom: 6px; }
.oh-empty p { font-size: 14px; color: var(--oh-text-secondary); }

/* ---- Loading spinner ---- */
.oh-loading {
  grid-column: 1 / -1; text-align: center; padding: 60px 20px;
}
.oh-spinner {
  width: 40px; height: 40px; border: 3px solid var(--oh-border);
  border-top-color: var(--oh-accent); border-radius: 50%;
  animation: spin .8s linear infinite; margin: 0 auto 16px;
}

/* ---- Animations ---- */
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
@keyframes cardIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes popIn { 0% { transform: scale(.5); } 100% { transform: scale(1); } }
@keyframes slideIn { from { opacity: 0; transform: translateX(12px); } to { opacity: 1; transform: translateX(0); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes shimmer { to { transform: translateX(100%); } }

/* ---- Image shimmer while loading ---- */
.card-img-wrap::after,
.detail-carousel::after,
.listing-card-img::after,
.agent-grid-card-img::after,
.admin-grid-card-img::after,
.profile-listing-img-wrap::after,
.carousel-thumb-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,.06) 40%, rgba(255,255,255,.12) 50%, rgba(255,255,255,.06) 60%, transparent 100%);
  transform: translateX(-100%);
  animation: shimmer 1.6s ease-in-out infinite;
  pointer-events: none;
  z-index: 1;
}
.light-theme .card-img-wrap::after,
.light-theme .detail-carousel::after,
.light-theme .listing-card-img::after,
.light-theme .agent-grid-card-img::after,
.light-theme .admin-grid-card-img::after,
.light-theme .profile-listing-img-wrap::after,
.light-theme .carousel-thumb-wrap::after {
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,.3) 40%, rgba(255,255,255,.5) 50%, rgba(255,255,255,.3) 60%, transparent 100%);
}
.card-img-wrap.oh-img-loaded::after,
.detail-carousel.oh-img-loaded::after,
.listing-card-img.oh-img-loaded::after,
.agent-grid-card-img.oh-img-loaded::after,
.admin-grid-card-img.oh-img-loaded::after,
.profile-listing-img-wrap.oh-img-loaded::after,
.carousel-thumb-wrap.oh-img-loaded::after {
  display: none;
}

/* ---- Theme toggle ---- */
.oh-theme-btn {
  background: none; border: 1.5px solid var(--oh-border);
  width: 38px; height: 38px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--oh-text-secondary); transition: all .25s;
}
.oh-theme-btn:hover { border-color: var(--oh-accent); color: var(--oh-accent); }

/* ---- Auth Nav Buttons ---- */
.oh-signin-btn {
  background: none; border: 1.5px solid var(--oh-border);
  color: var(--oh-text); padding: 9px 22px; border-radius: 100px;
  font-family: 'DM Sans', sans-serif; font-size: 13px; font-weight: 600;
  cursor: pointer; transition: all .25s; letter-spacing: .02em;
}
.oh-signin-btn:hover {
  border-color: var(--oh-accent); color: var(--oh-accent);
}
.oh-user-menu {
  display: flex; align-items: center; gap: 10px;
}
.oh-user-avatar {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--oh-accent-bg); color: var(--oh-accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700; overflow: hidden; flex-shrink: 0;
}
.oh-user-avatar-img {
  width: 100%; height: 100%; object-fit: cover; border-radius: 50%;
}
.oh-user-name {
  font-size: 13px; font-weight: 600; color: var(--oh-text);
}
.oh-logout-btn {
  background: none; border: 1.5px solid var(--oh-border);
  color: var(--oh-text-secondary); padding: 7px 16px; border-radius: 100px;
  font-family: 'DM Sans', sans-serif; font-size: 12px; font-weight: 600;
  cursor: pointer; transition: all .25s;
}
.oh-logout-btn:hover {
  border-color: #d44; color: #d44;
}

/* ---- Auth Modal ---- */
.auth-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.6);
  z-index: 300; animation: fadeIn .2s ease;
}
.auth-modal {
  position: fixed; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 420px; max-width: 92vw; max-height: 90vh; overflow-y: auto;
  background: var(--oh-surface); border-radius: 20px;
  border: 1px solid var(--oh-border);
  box-shadow: 0 24px 64px rgba(0,0,0,.4);
  z-index: 301; padding: 36px 32px;
  animation: modalIn .3s cubic-bezier(.34,1.56,.64,1);
}
.auth-close {
  position: absolute; top: 16px; right: 16px;
  background: none; border: none; cursor: pointer;
  padding: 8px; border-radius: 50%;
  color: var(--oh-text-secondary); transition: all .2s;
}
.auth-close:hover { background: var(--oh-bg); color: var(--oh-text); }
.auth-header { text-align: center; margin-bottom: 24px; }
.auth-logo { width: 48px; height: 48px; object-fit: contain; margin-bottom: 16px; }
.auth-header h2 {
  font-family: 'Aleo', serif; font-weight: 700;
  font-size: 24px; font-weight: 600; margin-bottom: 6px;
}
.auth-header p {
  font-size: 14px; color: var(--oh-text-secondary); line-height: 1.5;
}

/* Auth tabs */
.auth-tabs {
  display: flex; gap: 4px; background: var(--oh-bg);
  border-radius: 10px; padding: 4px; margin-bottom: 20px;
}
.auth-tab {
  flex: 1; padding: 10px; border: none; border-radius: 8px;
  background: none; color: var(--oh-text-secondary);
  font-family: 'DM Sans', sans-serif; font-size: 13px; font-weight: 600;
  cursor: pointer; transition: all .2s;
}
.auth-tab.active {
  background: var(--oh-surface); color: var(--oh-text);
  box-shadow: 0 1px 3px rgba(0,0,0,.2);
}
.auth-tab:hover:not(.active) { color: var(--oh-text); }

/* Auth form */
.auth-form { display: flex; flex-direction: column; gap: 16px; }
.auth-field { display: flex; flex-direction: column; gap: 6px; }
.auth-field label {
  font-size: 12px; font-weight: 600; color: var(--oh-text-secondary);
  text-transform: uppercase; letter-spacing: .08em;
}
.auth-field input {
  padding: 12px 16px; border-radius: 10px;
  border: 1.5px solid var(--oh-border); background: var(--oh-bg);
  font-family: 'DM Sans', sans-serif; font-size: 14px;
  color: var(--oh-text); outline: none; transition: all .2s;
}
.auth-field input:focus {
  border-color: var(--oh-accent);
  box-shadow: 0 0 0 3px rgba(63,191,150,.15);
}
.auth-field input::placeholder { color: #7B7E8A; }
.auth-field select {
  padding: 12px 16px; border-radius: 10px;
  border: 1.5px solid var(--oh-border); background: var(--oh-bg);
  font-family: 'DM Sans', sans-serif; font-size: 14px;
  color: var(--oh-text); outline: none; transition: all .2s;
  appearance: auto;
}
.auth-field select:focus {
  border-color: var(--oh-accent);
  box-shadow: 0 0 0 3px rgba(63,191,150,.15);
}
.auth-field select option { background: var(--oh-bg); color: var(--oh-text); }

/* Role buttons */
.auth-role-btns { display: flex; gap: 8px; }
.auth-role-btn {
  flex: 1; padding: 10px; border-radius: 10px;
  border: 1.5px solid var(--oh-border); background: var(--oh-bg);
  font-family: 'DM Sans', sans-serif; font-size: 13px; font-weight: 600;
  color: var(--oh-text-secondary); cursor: pointer; transition: all .2s;
}
.auth-role-btn:hover { border-color: var(--oh-accent); color: var(--oh-text); }
.auth-role-btn.active {
  border-color: var(--oh-accent); background: var(--oh-accent-bg);
  color: var(--oh-accent);
}

/* Agent note */
.auth-agent-note {
  font-size: 12px; color: var(--oh-warm);
  background: var(--oh-warm-light); padding: 10px 14px;
  border-radius: 8px; line-height: 1.5;
}

/* Submit button */
.auth-submit {
  padding: 14px; border: none; border-radius: 12px;
  background: var(--oh-accent-btn); color: #fff;
  font-family: 'DM Sans', sans-serif; font-size: 15px; font-weight: 700;
  cursor: pointer; transition: all .25s; margin-top: 4px;
}
.auth-submit:hover { background: var(--oh-accent-btn-hover); transform: translateY(-1px); }
.auth-submit:disabled { opacity: .6; cursor: not-allowed; transform: none; }

/* Google sign-in button */
.auth-google-btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; padding: 12px 16px; border: 1px solid var(--oh-border);
  border-radius: 12px; background: var(--oh-card); color: var(--oh-text);
  font-family: 'DM Sans', sans-serif; font-size: 15px; font-weight: 600;
  cursor: pointer; transition: all .25s;
}
.auth-google-btn:hover { background: var(--oh-bg-alt, var(--oh-bg)); border-color: var(--oh-text-secondary); transform: translateY(-1px); }
.auth-google-btn:disabled { opacity: .6; cursor: not-allowed; transform: none; }
.auth-google-btn svg { flex-shrink: 0; }

/* Auth divider */
.auth-divider {
  display: flex; align-items: center; gap: 12px; margin: 4px 0;
}
.auth-divider::before, .auth-divider::after {
  content: ''; flex: 1; height: 1px; background: var(--oh-border);
}
.auth-divider span {
  font-size: 13px; color: var(--oh-text-secondary); font-weight: 500;
}

/* Email link / back button */
.auth-link-btn {
  background: none; border: none; color: var(--oh-accent);
  font-family: 'DM Sans', sans-serif; font-size: 13px; font-weight: 600;
  cursor: pointer; padding: 8px 0; text-align: center; width: 100%;
}
.auth-link-btn:hover { text-decoration: underline; }

/* Error message */
.auth-error {
  font-size: 13px; color: #e55; background: rgba(238,85,85,.1);
  padding: 10px 14px; border-radius: 8px; text-align: center;
}

/* Modal animations */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes modalIn { from { opacity: 0; transform: translate(-50%, -48%) scale(.95); } to { opacity: 1; transform: translate(-50%, -50%) scale(1); } }

/* ---- Disable animations after first load ---- */
body.oh-loaded .oh-hero-logo,
body.oh-loaded .oh-hero-tagline,
body.oh-loaded .oh-hero h1,
body.oh-loaded .oh-hero-sub,
body.oh-loaded .oh-search-wrap,
body.oh-loaded .oh-hero-stats,
body.oh-loaded .prop-card,
body.oh-loaded .fav-item {
  animation: none !important;
  opacity: 1 !important;
}

/* ---- Footer agent sign-in ---- */
.oh-footer-agent {
  display: flex; align-items: center; justify-content: center;
  gap: 16px; margin: 20px 0 8px;
}
.oh-footer-signin {
  background: none; border: 1.5px solid var(--oh-border);
  color: var(--oh-text-secondary); padding: 10px 24px; border-radius: 100px;
  font-family: 'DM Sans', sans-serif; font-size: 13px; font-weight: 600;
  cursor: pointer; transition: all .25s;
}
.oh-footer-signin:hover { border-color: var(--oh-accent); color: var(--oh-accent); }
.oh-footer-signup {
  background: var(--oh-accent-btn); color: #fff;
  padding: 10px 24px; border-radius: 100px;
  font-size: 13px; font-weight: 700; text-decoration: none;
  transition: all .25s;
}
.oh-footer-signup:hover { background: var(--oh-accent-btn-hover); transform: translateY(-1px); }

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .oh-nav { padding: 12px 20px; }
  .oh-nav-links a:not(.oh-nav-cta) { display: none; }
  .oh-hero { min-height: 60vh; padding: 100px 20px 60px; }
  .oh-hero h1 { white-space: normal; }
  .oh-hero-stats { gap: 28px; }
  .oh-grid { columns: 1; }
  .oh-section-header { flex-direction: column; align-items: flex-start; gap: 12px; }
  .oh-filters { flex-direction: column; align-items: flex-start; gap: 8px; width: 100%; }
  .oh-filter-group { overflow-x: auto; -webkit-overflow-scrolling: touch; flex-wrap: nowrap; width: 100%; padding-bottom: 4px; }
  .oh-filter-divider { display: none; }
  .oh-filter-btn { padding: 6px 14px; font-size: 12px; flex-shrink: 0; }
  .oh-cta-inner { flex-direction: column; text-align: center; padding: 40px 28px; }
  .oh-cta-text p { max-width: 100%; }
  .schedule-datetime { gap: 8px; }
  .oh-user-name { display: none; }
  .oh-user-avatar { display: none; }
  .auth-modal { padding: 28px 20px; }
  .oh-fav-float { bottom: 20px; right: 20px; height: 44px; padding: 0 14px; font-size: 13px; }

  /* Mobile floating bubble panel */
  .fav-overlay.open { display: block; }
  .fav-panel {
    top: auto; bottom: 10px; right: 0; left: 0;
    width: auto; max-height: 75vh; max-height: 75dvh;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,.08);
    opacity: 0; transform: translateY(12px) scale(.96);
    pointer-events: none;
    transition: opacity .22s ease, transform .22s cubic-bezier(.32,.72,.2,1);
    box-shadow: 0 12px 40px rgba(0,0,0,.12), 0 4px 12px rgba(0,0,0,.08);
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }
  .fav-panel.open {
    opacity: 1; transform: translateY(0) scale(1);
    pointer-events: auto;
    box-shadow: 0 12px 40px rgba(0,0,0,.15), 0 4px 16px rgba(0,0,0,.1);
  }
  .fav-panel-header { border-radius: 20px 20px 0 0; }
  .fav-panel-body { overscroll-behavior: contain; }
  .fav-panel-footer { display: none; }

  .oh-footer-agent { flex-direction: column; gap: 10px; }
}


/* ---- Screen reader only ---- */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ---- Skip to main content ---- */
.oh-skip-link {
  position: absolute; top: -100%; left: 16px;
  background: var(--oh-accent-btn); color: #fff;
  padding: 12px 24px; border-radius: 8px;
  font-size: 14px; font-weight: 700;
  text-decoration: none; z-index: 10000;
  transition: top .2s;
}
.oh-skip-link:focus { top: 16px; }

/* ---- Focus visible outlines ---- */
:focus-visible {
  outline: 2px solid var(--oh-accent);
  outline-offset: 2px;
}
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible {
  outline: 2px solid var(--oh-accent);
  outline-offset: 2px;
}
.card-carousel-btn:focus-visible { outline-offset: -2px; }
.carousel-btn:focus-visible { outline-offset: -2px; }

/* ---- Reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
