*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --slider-h: 110px;
  --filter-h: 42px;
  --ui-bg: rgba(5, 8, 16, 0.85);
  --bar-bg: rgba(5, 8, 16, 0.05);
  --accent: #00d4ff;
  --text: #e2e8f0;
  --thumb-w: 180px;
  --thumb-gap: 8px;
}

html, body {
  width: 100%; height: 100%; overflow: hidden;
  background: #050810;
  font-family: 'Segoe UI', system-ui, sans-serif;
  color: var(--text);
}

/* ── Viewer fullscreen ── */
#viewer {
  position: fixed;
  inset: 0;
  background: #050810;
}

/* Pannellum container must fill its parent */
#viewer .pnlm-container { width: 100% !important; height: 100% !important; }

/* Corecție vizuală ușoară de luminozitate/saturație pentru panoramă.
   Aplicăm filtrul DOAR pe canvas (imaginea propriu-zisă), nu pe tot
   render-container-ul — altfel filter-ul creează un context care blochează
   click-urile pe hotspot-uri. */
#viewer .pnlm-render-container canvas { filter: brightness(1.08) saturate(1.04); }

/* Mută controalele Pannellum (zoom, fullscreen, busolă) în dreapta jos, deasupra slider-ului */
#viewer .pnlm-controls-container {
  top: auto !important;
  bottom: calc(var(--slider-h) + var(--filter-h) + 12px) !important;
  left: auto !important;
  right: 16px !important;
}
/* Lipește butoanele de control unul de altul (spațiu mic uniform) */
#viewer .pnlm-controls-container .pnlm-control,
#viewer .pnlm-zoom-controls {
  margin-bottom: 6px !important;
}

/* În fullscreen — coboară controalele (toate variantele de browser) */
#viewer:fullscreen .pnlm-controls-container,
#viewer:-webkit-full-screen .pnlm-controls-container,
#viewer:-moz-full-screen .pnlm-controls-container,
.pnlm-container:fullscreen .pnlm-controls-container,
body.is-fullscreen .pnlm-controls-container {
  bottom: 24px !important;
}
body.is-fullscreen #shareBtn { bottom: 24px !important; }
body.is-fullscreen #searchBar { display: none; }
body.is-fullscreen #viewer,
#viewer:fullscreen, #viewer:-webkit-full-screen { bottom: 0 !important; }

/* ── Hotspot-uri ──
   Cu cssClass personalizat, Pannellum pune clasele „pnlm-hotspot-base hs-scene"
   (FĂRĂ pnlm-hotspot), deci selectăm direct clasa noastră. */

/* Punct navigare — săgeată chevron stil Street View, semi-transparentă */
.hs-scene {
  width: 56px;
  height: 40px;
  margin-left: -28px;
  margin-top: -20px;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 56 40'%3E%3Cpath d='M12 28 L28 12 L44 28' fill='none' stroke='rgba(0,0,0,0.35)' stroke-width='11' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M12 28 L28 12 L44 28' fill='none' stroke='rgba(255,255,255,0.85)' stroke-width='6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  opacity: .75;
  transition: opacity .2s;
}
.hs-scene:hover { opacity: 1; }

/* Punct info — cerc mic galben, discret */
.hs-info {
  width: 18px;
  height: 18px;
  margin-left: -9px;
  margin-top: -9px;
  cursor: pointer;
  background: rgba(251,191,36,.65);
  border: 2px solid rgba(255,255,255,.8);
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(251,191,36,.5);
  transition: opacity .2s;
}
.hs-info:hover { background: rgba(251,191,36,.95); }

/* ── Bara Share + Reacții (stil Facebook) ── */
#actionBar {
  position: fixed;
  bottom: calc(var(--slider-h) + var(--filter-h) + 12px);
  left: 174px;
  display: flex;
  align-items: center;
  gap: 2px;
  z-index: 15;
  background: rgba(255,255,255,.05);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 50px;
  padding: 3px 6px;
  box-shadow: 0 4px 20px rgba(0,0,0,.3);
  transition: opacity .3s;
}
#actionBar:hover { opacity: 1 !important; }
.action-btn {
  display: flex; align-items: center; gap: 3px;
  background: none; border: none; cursor: pointer;
  color: rgba(255,255,255,.85); font-size: .75rem; font-weight: 600;
  padding: 4px 7px; border-radius: 30px;
  transition: background .15s, color .15s, transform .1s;
  white-space: nowrap;
}
.action-btn:hover { background: rgba(255,255,255,.15); color: #fff; }
.action-btn:active { transform: scale(.93); }
.action-btn .emoji { font-size: .95rem; line-height: 1; transition: transform .2s; }
.action-btn:hover .emoji { transform: scale(1.25); }
.action-btn.active-like { color: #4e9af1; }
.action-btn.active-love { color: #f06292; }
.action-btn.active-like .emoji,
.action-btn.active-love .emoji { transform: scale(1.2); }
.action-sep { width: 1px; height: 16px; background: rgba(255,255,255,.2); flex-shrink: 0; }

/* ── Modal Comentarii ── */
#commentsModal {
  position: fixed; inset: 0; z-index: 120;
  background: rgba(0,0,0,.7);
  backdrop-filter: blur(4px);
  display: none; align-items: flex-end; justify-content: center;
}
#commentsModal.open { display: flex; }
#commentsBox {
  width: 100%; max-width: 560px;
  max-height: 80vh;
  background: #0f1623;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 16px 16px 0 0;
  display: flex; flex-direction: column;
  box-shadow: 0 -8px 40px rgba(0,0,0,.6);
}
@media (min-width: 600px) {
  #commentsModal { align-items: center; }
  #commentsBox { border-radius: 16px; }
}
/* Bara de reacții când e mutată în bara de căutare (doar desktop mare, via JS) */
#actionBar.inbar {
  position: static !important;
  bottom: auto !important; left: auto !important; right: auto !important;
  margin-left: auto !important;
  flex-shrink: 0;
  transform: none !important;
}
#actionBar.inbar + #categoryFilters { margin-left: 8px; }
#commentsHeader {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px; border-bottom: 1px solid rgba(255,255,255,.08);
  font-weight: 700; color: var(--text); font-size: 1rem; flex-shrink: 0;
}
#commentsClose {
  background: none; border: none; color: rgba(255,255,255,.6);
  font-size: 1.1rem; cursor: pointer; padding: 4px 8px; border-radius: 6px;
}
#commentsClose:hover { background: rgba(255,255,255,.1); color: #fff; }
#commentsList {
  flex: 1; overflow-y: auto; padding: 14px 18px;
  display: flex; flex-direction: column; gap: 14px;
}
.comment-item {
  border-bottom: 1px solid rgba(255,255,255,.06); padding-bottom: 12px;
}
.comment-item:last-child { border-bottom: none; }
.comment-head {
  display: flex; align-items: baseline; gap: 8px; margin-bottom: 4px;
}
.comment-name { font-weight: 600; color: var(--accent); font-size: .9rem; }
.comment-date { font-size: .72rem; color: var(--muted); }
.comment-body { color: var(--text); font-size: .9rem; line-height: 1.5; white-space: pre-wrap; word-break: break-word; }
.comments-empty { color: var(--muted); text-align: center; font-size: .9rem; padding: 20px 0; }
#commentsForm {
  border-top: 1px solid rgba(255,255,255,.08); padding: 14px 18px; flex-shrink: 0;
}
.cf-row { display: flex; gap: 8px; margin-bottom: 8px; }
.cf-row input { flex: 1; min-width: 0; }
#commentsForm input, #commentsForm textarea {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14);
  border-radius: 8px; padding: 9px 12px; color: var(--text);
  font-size: .88rem; font-family: inherit; outline: none; width: 100%;
}
#commentsForm input:focus, #commentsForm textarea:focus { border-color: var(--accent); }
#commentsForm textarea { resize: vertical; margin-bottom: 8px; }
.cf-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
#cfMsg { font-size: .8rem; color: var(--muted); flex: 1; }
#cfMsg.err { color: #ef4444; }
#cfMsg.ok { color: #22c55e; }
#cfSend {
  background: var(--accent); color: #000; border: none; border-radius: 8px;
  padding: 9px 18px; font-weight: 700; font-size: .88rem; cursor: pointer;
  white-space: nowrap; transition: opacity .2s;
}
#cfSend:hover { opacity: .85; }
#cfSend:disabled { opacity: .5; cursor: default; }
/* Fullscreen */
body.is-fullscreen #actionBar { bottom: 16px; right: 60px; }
/* Mobile */
@media (max-width: 500px) {
  #actionBar {
    left: 100px;
    right: auto;
    transform: none;
    bottom: calc(var(--slider-h) + var(--filter-h) + 12px);
  }
  body.is-fullscreen #actionBar { right: 8px; left: auto; transform: none; bottom: 120px; }
}
/* Toast share */
  position: fixed;
  left: 174px;  /* lângă hartă (14 + 150 + 10) */
  bottom: calc(var(--slider-h) + var(--filter-h) + 12px);
  z-index: 20;
  width: 28px; height: 28px;
  background: #fff;
  border: none;
  border-radius: 5px;
  color: #1a1a1a;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: .85rem;
  box-shadow: 0 2px 8px rgba(0,0,0,.3);
  transition: color .2s, background .2s;
}
#shareBtn:hover { background: #e6f9ff; color: #0088aa; }

/* Toast share */
#shareToast {
  position: fixed;
  right: 60px;
  bottom: calc(var(--slider-h) + var(--filter-h) + 68px);
  z-index: 30;
  background: #111827;
  border: 1px solid rgba(0,212,255,.3);
  color: var(--text);
  padding: 7px 14px;
  border-radius: 8px;
  font-size: .8rem;
  white-space: nowrap;
  box-shadow: 0 4px 20px rgba(0,0,0,.4);
  opacity: 0; pointer-events: none;
  transition: opacity .25s;
}
#shareToast.show { opacity: 1; }

@media (max-height: 500px) and (orientation: landscape) {
  #shareBtn { bottom: calc(var(--slider-h) + var(--filter-h) + 100px); right: 56px; width: 28px; height: 28px; font-size: .85rem; }
  #shareToast { display: none; }
}

/* ── Loading overlay – fix poziționat independent, nu în viewer ── */
#loadOverlay {
  position: fixed;
  inset: 0;
  background: #050810;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  z-index: 50;
  transition: opacity .4s;
}
#loadOverlay.hidden { opacity: 0; pointer-events: none; }
.spinner {
  width: 48px; height: 48px;
  border: 3px solid #ffffff18;
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
#loadOverlay p { margin-top: 14px; color: #64748b; font-size: .9rem; }

/* ── Site title overlay ── */
#siteTitle {
  position: fixed; top: 0; left: 0; right: 0;
  background: linear-gradient(to bottom, rgba(5,8,16,.9) 0%, transparent 100%);
  padding: 18px 24px 40px;
  z-index: 5; pointer-events: none;
  display: flex; align-items: flex-start; justify-content: space-between;
}
#siteTitle h1 {
  font-size: 1.3rem; font-weight: 700;
  color: var(--accent); letter-spacing: -0.5px;
}
#siteTitle .pano-name {
  font-size: .85rem; font-weight: 700; color: rgba(255,255,255,.5); margin-top: 3px;
}

/* ── Butoane dreapta sus ── */
.top-buttons {
  position: fixed; top: 14px; right: 18px; z-index: 20;
  display: flex; gap: 6px; align-items: center;
}
.top-btn {
  background: var(--ui-bg);
  border: 1px solid rgba(255,255,255,.08);
  color: rgba(255,255,255,.35);
  text-decoration: none;
  padding: 4px 9px;
  border-radius: 5px;
  font-size: .68rem;
  backdrop-filter: blur(8px);
  transition: color .2s, border-color .2s;
  cursor: pointer;
  white-space: nowrap;
}
.top-btn:hover { color: var(--accent); border-color: var(--accent); }
.btn-text { display: inline; }
@media (max-width: 600px) {
  .top-buttons { top: 10px; right: 10px; gap: 5px; }
  .top-btn { padding: 6px 9px; }
  .btn-text { display: none; }
}

/* ── Banner instalare PWA ── */
#installBanner {
  position: fixed;
  bottom: calc(var(--slider-h) + var(--filter-h) + 12px);
  left: 50%; transform: translateX(-50%);
  z-index: 50;
  background: #111827;
  border: 1px solid var(--accent);
  border-radius: 14px;
  padding: 12px 16px;
  display: flex; align-items: center; gap: 12px;
  box-shadow: 0 8px 32px rgba(0,212,255,.2);
  max-width: 360px; width: calc(100% - 32px);
  animation: slideUp .4s ease;
}
@keyframes slideUp {
  from { opacity: 0; transform: translateX(-50%) translateY(20px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}
#installBanner img { width: 40px; height: 40px; border-radius: 10px; flex-shrink: 0; }
#installBanner .install-text { flex: 1; }
#installBanner .install-text strong { display: block; font-size: .9rem; color: var(--text); }
#installBanner .install-text span { font-size: .75rem; color: #64748b; }
#installBanner .install-btn {
  background: var(--accent); color: #000;
  border: none; border-radius: 8px;
  padding: 8px 14px; font-size: .82rem; font-weight: 700;
  cursor: pointer; white-space: nowrap; flex-shrink: 0;
}
#installBanner .install-close {
  background: none; border: none; color: #64748b;
  cursor: pointer; font-size: 1rem; padding: 2px 4px; flex-shrink: 0;
}
#contactModal {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(0,0,0,.75);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity .25s;
  backdrop-filter: blur(4px);
}
#contactModal.open { opacity: 1; pointer-events: all; }
#contactCard {
  background: #111827;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 20px;
  padding: 32px 28px;
  width: min(420px, 92vw);
  max-height: 88vh;
  overflow-y: auto;
  box-shadow: 0 30px 80px rgba(0,0,0,.7);
  position: relative;
  text-align: center;
}
#contactCard h2 {
  font-size: 1.2rem; font-weight: 700;
  color: var(--accent); margin-bottom: 6px;
}
#contactCard .subtitle {
  font-size: .82rem; color: #64748b; margin-bottom: 16px;
}
.contact-item {
  display: flex; align-items: center; gap: 14px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 12px;
  padding: 14px 18px;
  margin-bottom: 10px;
  text-decoration: none;
  color: var(--text);
  transition: background .2s, border-color .2s, transform .15s;
}
.contact-item:hover {
  background: rgba(0,212,255,.08);
  border-color: var(--accent);
  transform: translateX(4px);
}
.contact-icon {
  width: 40px; height: 40px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; flex-shrink: 0;
}
.contact-icon.email { background: #1e3a5f; }
.contact-icon.fb    { background: #1a3a6b; }
.contact-icon.ig    { background: #4a1a3a; }
.contact-icon.wa    { background: #128c4a; }
.contact-info { text-align: left; min-width: 0; flex: 1; }
.contact-info strong { display: block; font-size: .85rem; font-weight: 600; }
.contact-info span { font-size: .78rem; color: #64748b; display: block; word-break: break-all; overflow-wrap: anywhere; }
#contactClose {
  position: absolute; top: 14px; right: 16px;
  background: transparent; border: none;
  color: #64748b; font-size: 1.1rem; cursor: pointer;
  padding: 4px 8px; border-radius: 6px;
  transition: color .2s;
}
#contactClose:hover { color: var(--text); }

/* ── Panorama info overlay (stânga jos, deasupra hartă) ── */
#panoInfo {
  position: fixed;
  left: 20px;
  bottom: calc(var(--slider-h) + var(--filter-h) + 144px);
  z-index: 10;
  max-width: 360px;
  background: var(--ui-bg);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 10px;
  padding: 12px 16px;
  backdrop-filter: blur(12px);
  transition: opacity .3s;
  pointer-events: none;
}
#panoInfo h2 { font-size: .95rem; font-weight: 600; color: var(--text); }
#panoInfo p  { font-size: .8rem; color: #64748b; margin-top: 4px; line-height: 1.5; }
#panoInfo.hidden { opacity: 0; }

/* ── Miniatura hartă (stânga jos, deasupra slider) ── */
#mapThumb {
  position: fixed;
  left: 14px;
  bottom: calc(var(--slider-h) + var(--filter-h) + 12px);
  width: 150px;
  height: 100px;
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid rgba(255,255,255,.15);
  cursor: pointer;
  z-index: 12;
  box-shadow: 0 4px 20px rgba(0,0,0,.5);
  transition: border-color .2s, transform .15s;
  display: none;
}
@media (max-width: 600px) {
  #mapThumb { width: 80px; height: 58px; border-radius: 7px; left: 10px; }
  #mapThumb .map-label { font-size: .6rem; padding: 10px 4px 4px; }
  #actionBar {
    left: 92px;
    right: 46px;
    transform: none;
    justify-content: space-around;
    bottom: calc(var(--slider-h) + var(--filter-h) + 12px);
    gap: 0;
    padding: 4px 6px;
  }
  #actionBar .action-btn { padding: 5px 4px; font-size: .72rem; gap: 3px; }
  #actionBar .action-btn .emoji { font-size: .9rem; }
  #actionBar .action-sep { display: none; }
  #shareToast { left: 50%; right: auto; transform: translateX(-50%); }
}

/* Landscape pe mobil — slider mai mic + hartă dreapta jos */
/* Landscape pe ecrane medii (tablete, PWA desktop scund) — miniaturi mai scunde */
@media (min-height: 501px) and (max-height: 900px) and (orientation: landscape) {
  :root { --slider-h: 92px; --thumb-w: 132px; }
  .thumb { height: 74px; border-radius: 6px; }
  .thumb .thumb-label { font-size: .62rem; padding: 12px 5px 4px; }
}

@media (max-height: 500px) and (orientation: landscape) {
  :root { --slider-h: 90px; --thumb-w: 130px; }
  .thumb { height: 72px; border-radius: 6px; }
  .thumb .thumb-label { font-size: .58rem; padding: 10px 4px 3px; }
  .thumb-overlay span { font-size: 1rem; }
  #slider { padding: 0 8px; gap: 6px; }
  .top-buttons { top: 6px; right: 8px; gap: 4px; }
  .top-btn { padding: 3px 7px; font-size: .6rem; border-radius: 4px; }
  #mapThumb {
    left: auto !important;
    right: 60px;
    bottom: calc(var(--slider-h) + var(--filter-h) + 8px);
    width: 70px !important;
    height: 50px !important;
    border-radius: 6px;
  }
  #actionBar {
    left: auto !important;
    right: 230px !important;
    transform: none !important;
    justify-content: center;
    z-index: 17 !important;
    background: transparent;
    border-color: transparent;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    bottom: calc(var(--slider-h) + 4px) !important;
  }
  #shareToast {
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) !important;
    bottom: calc(var(--slider-h) + var(--filter-h) + 44px) !important;
  }
  #mapThumb .map-label { display: none; }
  #siteTitle { padding: 8px 14px 20px; }
  #siteTitle h1 { font-size: 1rem; }
  #siteTitle .pano-name { font-size: .75rem; font-weight: 700; }
  #panoInfo { display: none; }
}
#mapThumb:hover { border-color: var(--accent); transform: scale(1.04); }
#mapThumb .map-inner { width: 100%; height: 100%; pointer-events: none; }
/* Leaflet creează pane-uri, tile-uri și markeri care pot bloca click-ul.
   Forțăm toate elementele interne să nu capteze click-uri, ca întreaga
   suprafață a hărții mici să deschidă popup-ul (nu doar marginea). */
#mapThumb #mapMini, #mapThumb #mapMini * { pointer-events: none !important; }
#mapThumb a, #mapMini a { pointer-events: none !important; }
#mapThumb .map-label {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(0,0,0,.75) 0%, transparent 100%);
  padding: 14px 8px 5px;
  font-size: .7rem; color: #ffffffcc; text-align: center;
}

/* ── Popup hartă fullscreen ── */
#mapPopup {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(0,0,0,.85);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity .25s;
}
#mapPopup.open { opacity: 1; pointer-events: all; }
#mapPopupInner {
  position: relative;
  width: min(900px, 95vw);
  height: min(600px, 85vh);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.1);
  box-shadow: 0 30px 80px rgba(0,0,0,.7);
}
#mapPopupInner #mapFull { width: 100%; height: 100%; }
#mapPopupTitle {
  position: absolute; top: 0; left: 0; right: 0; z-index: 1000;
  background: linear-gradient(to bottom, rgba(10,14,26,.95) 0%, transparent 100%);
  padding: 14px 18px 30px;
  font-size: .95rem; font-weight: 600; color: var(--text);
  pointer-events: none;
}
#mapPopupClose {
  position: absolute; top: 10px; right: 12px; z-index: 1001;
  background: rgba(0,0,0,.6); border: 1px solid rgba(255,255,255,.15);
  color: #fff; border-radius: 6px; padding: 5px 11px;
  cursor: pointer; font-size: .85rem; backdrop-filter: blur(4px);
}
#mapPopupClose:hover { background: var(--danger); }

/* ── Bară de căutare (bandă deasupra slider-ului) ── */
#searchBar {
  position: fixed;
  left: 0; right: 0;
  bottom: var(--slider-h);
  height: var(--filter-h);
  z-index: 16;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  background: var(--bar-bg);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-top: 1px solid rgba(255,255,255,.07);
}
#searchWrap {
  display: flex; align-items: center;
  flex: 1;
  max-width: 400px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 8px;
  padding: 6px 12px;
}
#categoryFilters {
  position: relative;
  flex-shrink: 0;
  margin-left: auto;
}
#catDropBtn {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  color: rgba(255,255,255,.85);
  padding: 6px 14px;
  border-radius: 8px;
  font-size: .82rem;
  cursor: pointer;
  white-space: nowrap;
  display: flex; align-items: center; gap: 6px;
  transition: border-color .2s;
}
#catDropBtn:hover { border-color: var(--accent); }
#catDropBtn.has-filter {
  background: var(--accent);
  border-color: var(--accent);
  color: #000;
  font-weight: 600;
}
#catDropBtn .arrow { font-size: .65rem; transition: transform .2s; }
#catDropBtn.open .arrow { transform: rotate(180deg); }
#catDropList {
  position: fixed;
  right: 10px;
  bottom: calc(var(--slider-h) + var(--filter-h) + 6px);
  background: #0f1623;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 10px;
  box-shadow: 0 8px 30px rgba(0,0,0,.6);
  min-width: 200px;
  max-height: 50vh;
  overflow-y: auto;
  z-index: 50;
  display: none;
  padding: 6px;
}
#catDropList.open { display: block; }
.cat-item {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  color: rgba(255,255,255,.8);
  padding: 9px 12px;
  border-radius: 7px;
  font-size: .85rem;
  cursor: pointer;
  white-space: nowrap;
  transition: background .15s;
}
.cat-item:hover { background: rgba(255,255,255,.07); }
.cat-item.active {
  background: var(--accent);
  color: #000;
  font-weight: 600;
}
#searchWrap:focus-within { border-color: var(--accent); }
#searchIcon { font-size: .85rem; opacity: .6; flex-shrink: 0; }
#searchInput {
  background: none; border: none; outline: none;
  color: var(--text); font-size: .88rem;
  padding: 2px 8px; flex: 1; min-width: 0;
}
#searchInput::placeholder { color: rgba(255,255,255,.4); }
#searchClear {
  background: none; border: none; color: rgba(255,255,255,.5);
  cursor: pointer; font-size: .85rem; padding: 0 4px; flex-shrink: 0;
}
#searchEmpty {
  position: fixed;
  left: 50%; transform: translateX(-50%);
  bottom: calc(var(--slider-h) + var(--filter-h) + 20px);
  background: rgba(10,14,26,.9);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 10px;
  padding: 12px 22px;
  color: var(--muted);
  font-size: .85rem;
  z-index: 17;
  display: none;
}

#slider {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: var(--slider-h);
  background: var(--bar-bg);
  border-top: 1px solid rgba(255,255,255,.07);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  display: flex;
  align-items: center;
  padding: 0 10px;
  gap: var(--thumb-gap);
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  z-index: 15;
}
#slider::-webkit-scrollbar { height: 4px; }
#slider::-webkit-scrollbar-track { background: transparent; }
#slider::-webkit-scrollbar-thumb { background: rgba(255,255,255,.15); border-radius: 2px; }

/* ── Săgeți scroll slider ── */
.slider-arrow {
  position: fixed;
  bottom: 0;
  height: var(--slider-h);
  width: 32px;
  z-index: 17;
  display: none;               /* JS le arată doar când e nevoie */
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  font-size: 2rem;
  font-weight: 400;
  color: rgba(255,255,255,.95);
  background: none;
  text-shadow: 0 1px 4px rgba(0,0,0,.9), 0 0 2px rgba(0,0,0,.7);
  transition: color .2s, transform .15s;
}
.slider-arrow:hover { color: #fff; transform: scale(1.2); }
.slider-arrow.show { display: flex; }
#sliderArrowL { left: 0; }
#sliderArrowR { right: 0; }

.thumb {
  flex-shrink: 0;
  width: var(--thumb-w);
  height: 100px;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  position: relative;
  border: 2px solid transparent;
  transition: border-color .2s, transform .15s;
}
.thumb:hover { transform: scale(1.03); }
.thumb.active { border-color: var(--accent); }
.thumb img {
  width: 100%; height: 100%; object-fit: cover;
  display: block;
  transition: opacity .2s;
}
.thumb .thumb-label {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(0,0,0,.8) 0%, transparent 100%);
  padding: 20px 8px 6px;
  font-size: .72rem; color: #ffffffcc;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.thumb .thumb-overlay {
  position: absolute; inset: 0;
  background: rgba(0, 212, 255, .15);
  opacity: 0;
  transition: opacity .2s;
  display: flex; align-items: center; justify-content: center;
}
.thumb:hover .thumb-overlay,
.thumb.active .thumb-overlay { opacity: 1; }
.thumb-overlay span { font-size: 1.8rem; }

/* Empty state */
#emptyState {
  position: fixed; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  z-index: 20; background: #050810;
  text-align: center; display: none;
}
#emptyState h2 { color: var(--accent); font-size: 1.5rem; }
#emptyState p { color: #64748b; margin-top: 8px; }

/* ── Bara de căutare compactă pe ecrane mici/medii ── */
@media (max-width: 820px) {
  #searchBar { gap: 6px; padding: 0 8px; }
  #searchWrap { flex: 0 1 50%; max-width: 50%; padding: 6px 10px; }
  #catDropBtn { padding: 6px 12px; font-size: .78rem; }
}

/* ── Slider mai mic pe mobil ── */
@media (max-width: 600px) {
  :root { --slider-h: 80px; --thumb-w: 110px; }
  .thumb { height: 64px; border-radius: 6px; }
  .thumb .thumb-label { font-size: .62rem; padding: 12px 5px 4px; }
  .thumb-overlay span { font-size: 1.2rem; }
  #slider { padding: 0 10px; gap: 7px; }
  #contactCard { padding: 26px 20px; }
  .contact-info span { font-size: .72rem; }
  .contact-item { padding: 12px 14px; gap: 12px; }
}
