/* =====================================================================
   UEHMS Public Website Stylesheet
   ===================================================================== */
:root {
  --navy: #123B5D;
  --navy-dark: #0d2c47;
  --blue: #1D5D8F;
  --gold: #D4A72C;
  --gold-dark: #b8901f;
  --teal: #138A8A;
  --success: #198754;
  --danger: #C0392B;
  --bg: #F5F7FA;
  --text: #243447;
  --muted: #6b7b8f;
  --border: #e4e9f0;
}

* { scrollbar-width: thin; }
::-webkit-scrollbar { width: 9px; }
::-webkit-scrollbar-thumb { background: #b9c4d1; border-radius: 9px; }

body {
  font-family: 'Segoe UI', 'Inter', -apple-system, BlinkMacSystemFont, Roboto, Arial, sans-serif;
  color: var(--text);
  background: #fff;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.site-main { flex: 1; }
a { text-decoration: none; }
.text-gold, .text-gold-1 { color: var(--gold) !important; }

/* NAV */
.site-nav {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  padding: .6rem 0;
  border-bottom: 3px solid var(--gold);
  z-index: 1030;
  transition: box-shadow .25s;
}
.site-nav.sticky-top.scrolled { box-shadow: 0 6px 24px rgba(0,0,0,.18); }
.site-nav .nav-link { color: rgba(255,255,255,.86); font-size: .87rem; font-weight: 500; padding: .5rem .8rem; border-radius: 8px; transition: all .18s; }
.site-nav .nav-link:hover, .site-nav .nav-link.active { color: #fff; background: rgba(255,255,255,.1); }
.brand-badge {
  width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--gold), #f0c65a); color: var(--navy-dark); font-size: 1.2rem;
  box-shadow: 0 4px 12px rgba(212,167,44,.4);
}
.brand-badge img {
  width: 100%; height: 100%; object-fit: contain; padding: 3px;
  background: #fff; border-radius: inherit;
}
.footer-logo {
  width: 34px; height: 34px; object-fit: contain; background: #fff;
  border-radius: 8px; padding: 3px;
}
.navbar-brand strong { letter-spacing: 1.6px; font-size: 1.05rem; }

/* HERO */
.hero {
  position: relative;
  background:
    linear-gradient(135deg, rgba(13,44,71,.94) 0%, rgba(18,59,93,.88) 45%, rgba(29,93,143,.82) 100%),
    repeating-linear-gradient(45deg, rgba(255,255,255,.03) 0 2px, transparent 2px 22px);
  color: #fff;
  padding: 92px 0 110px;
  overflow: hidden;
}
.hero::after {
  content: '';
  position: absolute; left: 0; right: 0; bottom: -2px; height: 70px;
  background: #fff;
  clip-path: ellipse(75% 100% at 50% 100%);
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(212,167,44,.16); border: 1px solid rgba(212,167,44,.5);
  color: var(--gold); border-radius: 30px; padding: 6px 16px;
  font-size: .76rem; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase;
  animation: fadeDown .7s ease both;
}
.hero h1 {
  font-size: clamp(1.9rem, 4.4vw, 3.3rem);
  font-weight: 900; line-height: 1.12; margin: 18px 0 14px;
  animation: fadeDown .8s .1s ease both;
}
.hero h1 .gold-text {
  background: linear-gradient(135deg, var(--gold), #f5d678);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p.lead { color: rgba(255,255,255,.82); font-size: 1.04rem; max-width: 640px; animation: fadeDown .8s .2s ease both; }
@keyframes fadeDown { from { opacity: 0; transform: translateY(-16px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }

.hero-search {
  background: rgba(255,255,255,.97); border-radius: 16px; padding: 18px;
  box-shadow: 0 24px 60px rgba(0,0,0,.28); animation: fadeUp .8s .35s ease both;
}
.hero-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 34px; animation: fadeUp .8s .5s ease both; }
.hero-stat { text-align: center; padding: 14px 8px; border-radius: 12px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); }
.hero-stat .num { font-size: 1.7rem; font-weight: 900; color: var(--gold); font-variant-numeric: tabular-nums; }
.hero-stat .lbl { font-size: .7rem; text-transform: uppercase; letter-spacing: 1px; color: rgba(255,255,255,.7); }

/* SECTIONS */
.section { padding: 64px 0; }
.section-alt { background: var(--bg); }
.section-title { font-size: clamp(1.4rem, 2.6vw, 2rem); font-weight: 800; color: var(--navy); margin-bottom: 6px; }
.section-sub { color: var(--muted); font-size: .95rem; margin-bottom: 34px; }
.eyebrow { color: var(--gold-dark); font-weight: 800; font-size: .74rem; letter-spacing: 2.4px; text-transform: uppercase; }

/* CARDS */
.hall-card {
  border: 1px solid var(--border); border-radius: 16px; overflow: hidden; background: #fff;
  transition: transform .28s ease, box-shadow .28s ease; height: 100%; display: flex; flex-direction: column;
}
.hall-card:hover { transform: translateY(-7px); box-shadow: 0 20px 44px rgba(18,59,93,.16); }
.hall-card .hc-img { height: 190px; background: linear-gradient(135deg, var(--navy), var(--blue)); position: relative; overflow: hidden; }
.hall-card .hc-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.hall-card:hover .hc-img img { transform: scale(1.07); }
.hall-card .hc-tag {
  position: absolute; top: 12px; left: 12px; background: rgba(255,255,255,.94);
  color: var(--navy); font-size: .68rem; font-weight: 800; padding: 5px 11px; border-radius: 20px;
  text-transform: uppercase; letter-spacing: .7px;
}
.hall-card .hc-price {
  position: absolute; bottom: 12px; right: 12px; background: var(--gold); color: #2b2000;
  font-size: .76rem; font-weight: 800; padding: 5px 12px; border-radius: 20px;
}
.hall-card .card-body { padding: 18px; flex: 1; display: flex; flex-direction: column; }
.hall-card h5 { font-weight: 800; color: var(--navy); font-size: 1.05rem; margin-bottom: 6px; }
.hall-card .meta { font-size: .78rem; color: var(--muted); }
.facil-chip { display: inline-block; font-size: .68rem; background: var(--bg); border: 1px solid var(--border); color: var(--muted); border-radius: 20px; padding: 3px 9px; margin: 0 4px 4px 0; }

.info-card {
  background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 26px;
  height: 100%; transition: transform .25s, box-shadow .25s;
}
.info-card:hover { transform: translateY(-5px); box-shadow: 0 16px 36px rgba(18,59,93,.12); }
.info-card .ic-icon {
  width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center;
  font-size: 1.4rem; color: #fff; margin-bottom: 16px;
}
.info-card h5 { font-weight: 800; color: var(--navy); font-size: 1.04rem; }
.info-card p { color: var(--muted); font-size: .87rem; margin: 0; }

.step-num {
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--navy), var(--blue)); color: #fff;
  font-weight: 900; font-size: 1.1rem; margin-bottom: 14px;
  box-shadow: 0 8px 18px rgba(18,59,93,.3);
}

.event-row {
  display: flex; gap: 16px; align-items: center; background: #fff;
  border: 1px solid var(--border); border-radius: 14px; padding: 14px 18px;
  transition: transform .2s, box-shadow .2s;
}
.event-row:hover { transform: translateX(6px); box-shadow: 0 10px 24px rgba(18,59,93,.1); }
.event-date {
  width: 64px; height: 64px; border-radius: 12px; flex-shrink: 0; text-align: center;
  background: var(--navy); color: #fff; display: flex; flex-direction: column; justify-content: center;
}
.event-date .d { font-size: 1.35rem; font-weight: 900; line-height: 1; }
.event-date .m { font-size: .68rem; text-transform: uppercase; letter-spacing: 1px; color: var(--gold); }

/* PROCESS / CTA */
.cta-band {
  background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%);
  color: #fff; border-radius: 20px; padding: 46px 40px; position: relative; overflow: hidden;
}
.cta-band::before {
  content: ''; position: absolute; right: -60px; top: -60px; width: 240px; height: 240px;
  background: radial-gradient(circle, rgba(212,167,44,.35), transparent 70%);
}
.cta-band h3 { font-weight: 900; }

/* FOOTER */
.site-footer { background: linear-gradient(180deg, var(--navy-dark), var(--navy)); color: #cdd9e6; padding: 54px 0 0; margin-top: auto; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { color: rgba(255,255,255,.6); font-size: .86rem; transition: all .18s; }
.footer-links a:hover { color: var(--gold); padding-left: 5px; }
.social-btn {
  width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255,255,255,.08); color: #fff; transition: all .2s;
}
.social-btn:hover { background: var(--gold); color: var(--navy-dark); transform: translateY(-3px); }

/* ANIMATIONS */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.page-fade { animation: fadeUp .5s ease both; }

/* FORM PAGES */
.auth-wrap {
  min-height: calc(100vh - 76px); display: flex; align-items: center; justify-content: center;
  background:
    linear-gradient(135deg, rgba(13,44,71,.96), rgba(29,93,143,.9)),
    repeating-linear-gradient(45deg, rgba(255,255,255,.03) 0 2px, transparent 2px 22px);
  padding: 40px 16px;
}
.auth-card { width: 100%; max-width: 440px; background: #fff; border-radius: 18px; overflow: hidden; box-shadow: 0 30px 70px rgba(0,0,0,.35); animation: fadeUp .55s ease both; }
.auth-card .auth-head { background: linear-gradient(135deg, var(--navy), var(--blue)); color: #fff; padding: 26px; text-align: center; }
.auth-card .auth-head .brand-badge { margin: 0 auto 10px; }
.auth-card .auth-body { padding: 26px; }

.public-card { background: #fff; border: 1px solid var(--border); border-radius: 16px; box-shadow: 0 8px 30px rgba(18,59,93,.07); }

/* MISC */
.badge-soft { font-size: .7rem; font-weight: 700; padding: .4em .8em; border-radius: 20px; }
.divider-or { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: .78rem; margin: 16px 0; }
.divider-or::before, .divider-or::after { content: ''; flex: 1; height: 1px; background: var(--border); }

@media (max-width: 767.98px) {
  .hero { padding: 64px 0 84px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 44px 0; }
  .cta-band { padding: 32px 22px; }
}

@media print {
  .site-nav, .site-footer, .btn, .no-print { display: none !important; }
  body { background: #fff; }
}

/* =====================================================================
   UEHMS PUBLIC — MODERN UI UPGRADES
   ===================================================================== */
html { scroll-behavior: smooth; }

/* Shared brand buttons (were only in app.css — the public site needs them too) */
.btn { font-weight: 600; font-size: .84rem; border-radius: 8px; transition: all .18s ease; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(18,59,93,.16); }
.btn-navy, .btn-navy:focus, .btn-navy:active { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-dark); border-color: var(--navy-dark); color: #fff; }
.btn-gold { background: var(--gold); border-color: var(--gold); color: #2b2000; }
.btn-gold:hover { background: var(--gold-dark); border-color: var(--gold-dark); color: #2b2000; }
.btn-teal { background: var(--teal); border-color: var(--teal); color: #fff; }
.btn-teal:hover { background: #0f7070; border-color: #0f7070; color: #fff; }
.btn-outline-navy { color: var(--navy); border-color: var(--navy); background: #fff; }
.btn-outline-navy:hover { background: var(--navy); color: #fff; }
.text-navy { color: var(--navy) !important; }
.text-teal { color: var(--teal) !important; }

/* Surface tokens used by light & dark themes */
:root {
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --surface-3: #f1f4f8;
}

/* ---------- DARK MODE ---------- */
html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0e1a27;
  --surface: #16283a;
  --surface-2: #122131;
  --surface-3: #0f1c2a;
  --text: #dbe4ee;
  --muted: #93a7bd;
  --border: #253b52;
  --bs-body-bg: #0e1a27;
  --bs-body-color: #dbe4ee;
}
html[data-theme="dark"] body { background: var(--bg); color: var(--text); }
html[data-theme="dark"] .section-alt { background: var(--surface-2); }
html[data-theme="dark"] .hero::after { background: var(--bg); }
html[data-theme="dark"] .section-title { color: #eef4fa; }
html[data-theme="dark"] .text-navy, html[data-theme="dark"] .hall-card h5, html[data-theme="dark"] .info-card h5 { color: #eef4fa !important; }
html[data-theme="dark"] .text-muted { color: var(--muted) !important; }
html[data-theme="dark"] .hall-card, html[data-theme="dark"] .info-card,
html[data-theme="dark"] .event-row, html[data-theme="dark"] .public-card,
html[data-theme="dark"] .auth-card { background: var(--surface); border-color: var(--border); }
html[data-theme="dark"] .facil-chip { background: var(--surface-2); border-color: var(--border); color: var(--muted); }
html[data-theme="dark"] .hero-search { background: rgba(22,40,58,.97); }
html[data-theme="dark"] .hero-search .form-control,
html[data-theme="dark"] .hero-search .form-select,
html[data-theme="dark"] .hero-search .input-group-text { background: var(--surface); border-color: var(--border); color: var(--text); }
html[data-theme="dark"] .form-control, html[data-theme="dark"] .form-select { background-color: var(--surface); border-color: var(--border); color: var(--text); }
html[data-theme="dark"] .form-control:focus, html[data-theme="dark"] .form-select:focus { background-color: var(--surface); border-color: var(--blue); color: var(--text); }
html[data-theme="dark"] .form-select option { background-color: var(--surface); color: var(--text); }
html[data-theme="dark"] .btn-outline-navy { color: #cfe3f5; border-color: #3a5b7d; background: transparent; }
html[data-theme="dark"] .btn-outline-navy:hover { background: var(--navy); color: #fff; border-color: var(--navy); }
html[data-theme="dark"] .table { --bs-table-bg: transparent; color: var(--text); }

/* Availability matrix — dark overrides */
html[data-theme="dark"] .availability-matrix th { background: var(--surface-2) !important; }
html[data-theme="dark"] .availability-matrix th .text-navy { color: #eef4fa !important; }
html[data-theme="dark"] .availability-matrix .av-time { background: var(--surface) !important; color: var(--text); }
html[data-theme="dark"] .av-row-alt td, html[data-theme="dark"] .av-row-alt .av-time { background-color: #111f2e !important; }
html[data-theme="dark"] .av-na, html[data-theme="dark"] .av-past { color: #3d546d; }
html[data-theme="dark"] .av-busy { color: #f0a89c; background: #381f1e; }
html[data-theme="dark"] .av-closed { color: #b6c6d8; background: #223247; }
html[data-theme="dark"] .av-free .av-link { background: #123524; color: #7fe0ae; border-color: #1f5c3c; }
html[data-theme="dark"] .av-free .av-link:hover { background: #198754; color: #fff; border-color: #198754; }
html[data-theme="dark"] .av-free.legend-dot { border-color: #1f5c3c; }
html[data-theme="dark"] .av-busy.legend-dot { background: #381f1e; border-color: #6b3a33; }
html[data-theme="dark"] .av-closed.legend-dot { background: #223247; border-color: #33475f; }
html[data-theme="dark"] .av-na.legend-dot, html[data-theme="dark"] .av-past.legend-dot { background: #16283a; border-color: #33475f; }

/* Hall cards — live badges */
html[data-theme="dark"] .avail-badge.now-free { color: #7fe0ae; background: #123524; }
html[data-theme="dark"] .avail-badge.now-busy { color: #f0a89c; background: #381f1e; }
html[data-theme="dark"] .avail-badge.now-closed { color: #b6c6d8; background: #223247; }
html[data-theme="dark"] .avail-bar { background: #223247; }

/* NAV — active pill, theme toggle, inline search */
.site-nav .nav-link.active { background: rgba(212,167,44,.16); color: #fff; }
.btn-theme {
  width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); color: #fff;
  font-size: 1.05rem; transition: all .18s;
}
.btn-theme:hover { background: rgba(255,255,255,.18); color: var(--gold); }
.btn-theme .icon-sun { display: none; }
html[data-theme="dark"] .btn-theme .icon-moon { display: none; }
html[data-theme="dark"] .btn-theme .icon-sun { display: block; }

.nav-search { position: relative; display: flex; align-items: center; gap: 4px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.14); border-radius: 10px; padding: 0 10px; color: rgba(255,255,255,.7); }
.nav-search i { font-size: .9rem; }
.nav-search input { border: 0; background: transparent; color: #fff; outline: 0; padding: 8px 6px; font-size: .84rem; width: 200px; }
.nav-search input::placeholder { color: rgba(255,255,255,.55); }
.nav-search input:focus { box-shadow: none; }
html[data-theme="dark"] .nav-search { background: rgba(0,0,0,.28); }
.nav-search-wrap { position: relative; }

/* Live search results panel */
.ls-panel {
  position: absolute; top: calc(100% + 10px); right: 0; width: 400px; max-width: min(92vw, 400px);
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
  box-shadow: 0 24px 60px rgba(0,0,0,.28); overflow: hidden; display: none; z-index: 1060;
}
.ls-panel.open { display: block; }
.ls-grp { padding: 6px 4px; }
.ls-grp + .ls-grp { border-top: 1px solid var(--border); }
.ls-grp-label { font-size: .66rem; letter-spacing: 1.2px; text-transform: uppercase; color: var(--gold-dark); font-weight: 800; padding: 6px 12px 4px; }
.ls-item { display: flex; gap: 12px; align-items: center; padding: 8px 12px; border-radius: 10px; color: var(--text); }
.ls-item:hover { background: var(--surface-3); color: var(--text); }
.ls-item img { width: 40px; height: 40px; border-radius: 8px; object-fit: cover; flex-shrink: 0; }
.ls-empty { padding: 20px; text-align: center; color: var(--muted); font-size: .86rem; }

/* Mobile quick action bar */
.mobile-quickbar { display: flex; gap: 8px; padding: .6rem .25rem .9rem; }
.mobile-quickbar a { flex: 1; font-size: .72rem; font-weight: 600; text-align: center; padding: 8px 4px; border-radius: 10px; background: rgba(255,255,255,.07); color: #fff; border: 1px solid rgba(255,255,255,.12); }
.mobile-quickbar a:hover { background: rgba(255,255,255,.15); color: var(--gold); }
.mobile-quickbar a i { display: block; font-size: 1.05rem; margin-bottom: 2px; }
@media (min-width: 992px) { .mobile-quickbar { display: none; } }

/* Toasts */
.uehms-toasts { position: fixed; top: 84px; right: 16px; z-index: 2100; display: flex; flex-direction: column; gap: 10px; width: min(360px, calc(100vw - 32px)); }
.uehms-toast {
  display: flex; gap: 10px; align-items: flex-start; background: var(--surface);
  border: 1px solid var(--border); border-left: 4px solid var(--blue); border-radius: 12px;
  padding: 12px 14px; box-shadow: 0 14px 34px rgba(0,0,0,.18); font-size: .88rem;
  animation: toastIn .3s ease; transition: opacity .3s ease, transform .3s ease;
}
.uehms-toast.success { border-left-color: #198754; }
.uehms-toast.error { border-left-color: #C0392B; }
.uehms-toast.warning { border-left-color: var(--gold); }
.uehms-toast.info { border-left-color: var(--blue); }
.uehms-toast .t-icon { font-size: 1.1rem; line-height: 1.3; color: var(--success); margin-top: 1px; }
.uehms-toast.error .t-icon { color: var(--danger); }
.uehms-toast.warning .t-icon { color: var(--gold-dark); }
.uehms-toast.info .t-icon { color: var(--blue); }
.uehms-toast .t-title { font-weight: 700; }
.uehms-toast .t-msg { color: var(--muted); }
.uehms-toast .t-close { font-size: .7rem; margin: 0 0 0 auto; }
.uehms-toast.hiding { opacity: 0; transform: translateX(30px); }
@keyframes toastIn { from { opacity: 0; transform: translateX(34px); } to { opacity: 1; transform: none; } }

/* Floating quick actions + back-to-top */
.fab-stack { position: fixed; right: 18px; bottom: 18px; z-index: 1040; display: flex; flex-direction: column; gap: 10px; }
.fab-btn {
  position: relative; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  border: 0; color: #fff; background: linear-gradient(135deg, var(--navy), var(--blue));
  box-shadow: 0 10px 24px rgba(18,59,93,.35); font-size: 1.1rem; cursor: pointer;
  transition: transform .2s, box-shadow .2s;
}
.fab-btn:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(18,59,93,.42); color: #fff; }
.fab-btn.fab-gold { background: linear-gradient(135deg, var(--gold), #e9c252); color: #2b2000; }
.fab-btn.fab-gold:hover { color: #2b2000; }
.fab-btn .fab-hint {
  position: absolute; right: calc(100% + 12px); top: 50%; transform: translateY(-50%);
  background: var(--navy); color: #fff; font-size: .72rem; padding: 4px 10px; border-radius: 8px;
  white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .18s;
}
.fab-btn:hover .fab-hint { opacity: 1; }
#toTop { display: none; }
html[data-theme="dark"] .fab-btn { background: linear-gradient(135deg, #1d5d8f, #2d7cb3); }

/* Quick-book modal */
.qb-avatar { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; font-size: 1.3rem; color: #fff; background: linear-gradient(135deg, var(--navy), var(--blue)); flex-shrink: 0; }
.qb-row { display: flex; align-items: center; justify-content: space-between; padding: .4rem 0; border-bottom: 1px dashed var(--border); font-size: .88rem; }
.qb-row .text-muted i { color: var(--gold); }
.qb-row:last-of-type { border-bottom: 0; }
.qb-amount { font-size: 1.2rem; font-weight: 800; color: var(--gold-dark); }

/* Hero quick date-jump chips */
.hero-quickdates { animation: fadeUp .8s .5s ease both; }
.hero-quickdates .btn-outline-light { border-radius: 30px; border-color: rgba(255,255,255,.5); }

/* Page loader */
.page-loader {
  position: fixed;
  inset: 0;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  transition: opacity .4s ease, visibility .4s ease;
}

.page-loader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.page-loader .loader-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
}

.page-loader .loader-box {
  position: relative;
  width: clamp(96px, 11vw, 124px);
  height: clamp(96px, 11vw, 124px);
  flex-shrink: 0;
}

.page-loader .loader-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 3px solid rgba(212,167,44,.25);
  border-top-color: var(--gold);
  animation: loader-spin 1.1s linear infinite;
}

.page-loader .loader-logo {
  position: absolute;
  top: 50%;
  left: 50%;
  width: clamp(60px, 7vw, 74px);
  height: clamp(60px, 7vw, 74px);
  border-radius: clamp(13px, 2vw, 17px);
  object-fit: contain;
  padding: clamp(5px, 1vw, 7px);
  background: radial-gradient(circle at 50% 40%, #ffffff 0%, rgba(255,255,255,.92) 60%, rgba(255,255,255,.8) 100%);
  box-shadow: 0 14px 50px -14px rgba(18,59,93,.45);
  animation: loader-pulse 1.8s ease-in-out infinite;
  transform: translate(-50%, -50%);
  line-height: 0;
}

.page-loader .loader-text {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  color: var(--muted);
  user-select: none;
}

@keyframes loader-spin {
  to { transform: rotate(360deg); }
}

@keyframes loader-pulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  50% { transform: translate(-50%, -50%) scale(1.08); }
}

html[data-theme="dark"] .page-loader {
  background: var(--bg);
}

html[data-theme="dark"] .page-loader .loader-logo {
  background: radial-gradient(circle at 50% 40%, rgba(255,255,255,.98) 0%, rgba(255,255,255,.92) 60%, rgba(255,255,255,.86) 100%);
  box-shadow: 0 18px 60px -18px rgba(0,0,0,.55);
}

/* Live filtering — hidden helper elements */
[data-live-filter-hint] { font-size: .72rem; }

/* ---------------------------------------------------------------
 | Home hero image slider (managed from admin/hero-slides.php)
 --------------------------------------------------------------- */
.hero.hero-media {
  background: #0d2c47;
  display: flex; align-items: center;
  min-height: 620px;
  padding-top: 118px; padding-bottom: 128px;
}
.hero-slider { position: absolute; inset: 0; overflow: hidden; }
.hero-slide {
  position: absolute; inset: 0;
  background-color: #0d2c47;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 1.1s ease;
  will-change: opacity, transform;
}
.hero-slide::before {
  content: '';
  position: absolute; inset: 0;
  /* Dark on the left (where the text sits) → image shows through on the right */
  background: linear-gradient(100deg,
    rgba(8,28,48,.99) 0%,
    rgba(13,44,71,.95) 32%,
    rgba(18,59,93,.80) 64%,
    rgba(29,93,143,.58) 100%);
  opacity: var(--ov, .8);
}
.hero-slide.active { opacity: 1; animation: heroKenburns 9s ease forwards; }
.hero-slide--contain, .hero-slide--contain.active { animation: none !important; transform: none !important; }
@keyframes heroKenburns { from { transform: scale(1.02); } to { transform: scale(1.07); } }
.hero.hero-media .container { position: relative; z-index: 2; width: 100%; }
.hero.hero-media .hero-badge,
.hero.hero-media h1,
.hero.hero-media .lead,
.hero.hero-media .hero-quickdates { text-shadow: 0 2px 20px rgba(0,0,0,.45); }
.hero-dots {
  position: absolute; left: 50%; bottom: 90px; transform: translateX(-50%);
  display: flex; gap: 9px; z-index: 3;
}
.hero-dots button {
  width: 10px; height: 10px; padding: 0; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.7); background: rgba(255,255,255,.28);
  cursor: pointer; transition: background .25s ease, transform .25s ease;
}
.hero-dots button.active { background: var(--gold); border-color: var(--gold); transform: scale(1.15); }
@media (prefers-reduced-motion: reduce) {
  .hero-slide.active { animation: none; }
  .hero-slide { transition: opacity .3s ease; }
  .hero.hero-media { min-height: 0; }
}
@media (max-width: 991.98px) {
  .hero.hero-media { min-height: 0; padding-top: 84px; padding-bottom: 96px; }
  /* Stronger overlay on small screens so text stays readable over the photo */
  .hero-slide::before { opacity: min(1, calc(var(--ov, .8) + .18)); }
}

@media (max-width: 767.98px) {
  .fab-stack { right: 12px; bottom: 12px; }
  .uehms-toasts { top: 72px; }
}

@media print {
  .fab-stack, .uehms-toasts, .ls-panel, .mobile-quickbar { display: none !important; }
}
