/* ==========================================================================
   events-list.css — liste publice mobile și rezultate după etichetă (<992px).

   Namespace: .events-list-*. Prezentare specifică listărilor responsive
   (hero compact, bară de filtre, sheet-uri Categorii/Alege data, stări goale),
   plus lista comună de opțiuni reutilizată în popoverele desktop. Cardul reutilizează
   .home-feed-* din assets/css/mobile-feed-card.css (neschimbat aici).
   Încărcat pe listele Evenimente/Locații/Shopping și pe paginile după tag.
   Restul regulilor responsive rămân izolate sub 992px.
   ========================================================================== */

/* Lista opțiunilor este comună sheet-urilor responsive și popoverelor desktop. */
.events-list-sheet-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.events-list-sheet-item {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 48px;
  padding: 8px 12px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--color-text-primary, #1e293b);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.25;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.events-list-sheet-item:hover {
  background: rgba(99, 102, 241, 0.06);
  color: #4f46e5;
}

.events-list-sheet-item .lucide {
  width: 18px;
  height: 18px;
  color: #64748b;
  flex: 0 0 auto;
}

.events-list-sheet-item > span {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.events-list-sheet-item > span strong {
  color: inherit;
  font: inherit;
}

.listing-filter-count {
  margin-left:4px;
  color:var(--primary-color,#6366f1);
  font-size:.78em;
  font-weight:800;
}

.listing-filter-count::before {
  content:"· ";
}

.listing-filter-count[hidden] {
  display:none !important;
}

.events-list-sheet-item > span small {
  color: #526175;
  font-size: 0.78rem;
  font-weight: 550;
  line-height: 1.25;
}

.events-list-sheet-item.active {
  background: rgba(99, 102, 241, 0.1);
  color: var(--primary-color, #6366f1);
}

.events-list-sheet-item.active .lucide {
  color: var(--primary-color, #6366f1);
}

.events-list-sheet-item.active > span small {
  color: #4338ca;
}

.events-list-sheet-item:focus-visible {
  outline: 2px solid var(--primary-color, #6366f1);
  outline-offset: -2px;
}

/* Controale comune ambelor hărți; numai poziția diferă între responsive și desktop. */
.place-map-controls {
  position: absolute;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  pointer-events: auto;
}

.place-map-control-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid rgba(216, 222, 233, 0.96);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.96);
  color: #4f46e5;
  box-shadow: 0 7px 20px rgba(31, 25, 65, 0.14);
  cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.place-map-control-button:hover,
.place-map-control-button:focus-visible {
  border-color: rgba(99, 102, 241, 0.42);
  background: #f2f0ff;
  color: #4338ca;
  transform: scale(1.04);
}

.place-map-control-button .lucide,
.place-map-control-button svg {
  width: 19px;
  height: 19px;
}

.place-map-locate-button.locate-loading .lucide,
.place-map-locate-button.locate-loading svg {
  animation: spinPlaceLocate 1s linear infinite;
}

@keyframes spinPlaceLocate {
  to { transform: rotate(360deg); }
}

.place-map-zoom-group {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(216, 222, 233, 0.96);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 7px 20px rgba(31, 25, 65, 0.14);
}

.place-map-zoom-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 38px;
  padding: 0;
  border: 0;
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
  background: transparent;
  color: #1e293b;
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
}

.place-map-zoom-button:last-child {
  border-bottom: 0;
}

.place-map-zoom-button:hover,
.place-map-zoom-button:focus-visible {
  background: rgba(241, 245, 249, 0.9);
  color: #4338ca;
}

.place-map-result-count {
  position: absolute;
  z-index: 999;
  top: 12px;
  left: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 7px 11px;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: #312e81;
  box-shadow: 0 6px 18px rgba(31, 25, 65, 0.13);
  font-size: 0.76rem;
  font-weight: 780;
  line-height: 1;
  pointer-events: none;
  backdrop-filter: blur(10px);
}

.place-map-result-count .lucide,
.place-map-result-count svg {
  width: 15px;
  height: 15px;
  color: #6366f1;
  stroke-width: 2.25;
}

.place-map-preview {
  position: absolute;
  z-index: 1003;
  right: 12px;
  bottom: 12px;
  left: 12px;
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 11px;
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(220, 223, 235, 0.94);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.97);
  color: #211d36;
  box-shadow: 0 14px 34px rgba(31, 25, 65, 0.2);
  backdrop-filter: blur(14px);
}

.place-map-preview[hidden] {
  display: none !important;
}

.place-map-preview-image {
  width: 88px;
  height: 88px;
  border-radius: 13px;
  object-fit: cover;
  background: #eef2f7;
}

.place-map-preview-content {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding-right: 27px;
}

.place-map-preview-close {
  position: absolute;
  top: 7px;
  right: 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #f1f3f8;
  color: #615b72;
  cursor: pointer;
}

.place-map-preview-close .lucide,
.place-map-preview-close svg {
  width: 15px;
  height: 15px;
}

.place-map-preview-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px 8px;
  min-height: 18px;
  padding-right: 4px;
}

.place-map-preview-category {
  color: #5b21b6;
  font-size: 0.68rem;
  font-weight: 780;
}

.place-map-preview-status {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #64748b;
  font-size: 0.66rem;
  font-weight: 740;
}

.place-map-preview-status::before {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  content: '';
}

.place-map-preview-status.is-open { color: #059669; }
.place-map-preview-status.is-closed { color: #dc5f21; }

.place-map-preview-title {
  overflow: hidden;
  margin-top: 2px;
  color: #17142b;
  font-size: 0.9rem;
  font-weight: 820;
  line-height: 1.18;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.place-map-preview-rating {
  margin-top: 3px;
  color: #665f76;
  font-size: 0.69rem;
  font-weight: 690;
}

.place-map-preview-rating::first-letter {
  color: #f59e0b;
}

.place-map-preview-actions {
  display: flex;
  gap: 7px;
  margin-top: auto;
  padding-top: 7px;
}

.place-map-preview-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 30px;
  padding: 5px 10px;
  border: 1px solid rgba(99, 102, 241, 0.32);
  border-radius: 999px;
  color: #4f46e5;
  font-size: 0.68rem;
  font-weight: 760;
  line-height: 1;
  text-decoration: none;
}

.place-map-preview-action.is-primary {
  border-color: transparent;
  background: #5b55e7;
  color: #fff;
}

.place-map-preview-action .lucide,
.place-map-preview-action svg {
  width: 13px;
  height: 13px;
}

.place-map-preview-action:hover,
.place-map-preview-action:focus-visible {
  color: #3730a3;
  background: #eef2ff;
}

.place-map-preview-action.is-primary:hover,
.place-map-preview-action.is-primary:focus-visible {
  color: #fff;
  background: #4338ca;
}

/* Cluster comun hărților desktop și responsive. Iconul este furnizat de
   MarkerCluster, iar prezentarea rămâne în design systemul ghidBR. */
.ghidbr-place-cluster {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: transparent;
}

.ghidbr-place-cluster > span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  border: 3px solid rgba(255, 255, 255, 0.96);
  border-radius: 50%;
  background: linear-gradient(135deg, #6558ee, #db2777);
  color: #fff;
  box-shadow: 0 8px 20px rgba(64, 46, 130, 0.3);
  font-size: 0.8rem;
  font-weight: 850;
  line-height: 1;
}

/* Același marker „Ești aici” este randat pe mobil, tabletă și desktop. */
.custom-user-location-pin {
  position: relative;
  width: 24px;
  height: 24px;
}

.user-loc-dot {
  position: absolute;
  z-index: 2;
  top: 5px;
  left: 5px;
  width: 14px;
  height: 14px;
  border: 3px solid #ffffff;
  border-radius: 50%;
  background: #4f46e5;
  box-shadow: 0 2px 8px rgba(79, 70, 229, 0.5);
}

.user-loc-pulse {
  position: absolute;
  z-index: 1;
  top: 0;
  left: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(99, 102, 241, 0.35);
  animation: userLocPulse 2s infinite ease-out;
}

@keyframes userLocPulse {
  0% { transform: scale(0.5); opacity: 1; }
  100% { transform: scale(2.4); opacity: 0; }
}

@media (max-width: 991.98px) {

  /* --- Filtre: Categorii / Calendar ---
       Rând unic, fără scroll orizontal: wrap în loc de overflow-x, ca la
       lățimi foarte înguste (ambele filtre active + text lung) să treacă
       controlat pe un al doilea rând în loc să oblige la scroll lateral. */
  .events-list-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    padding: 2px var(--mobile-page-gutter, 12px);
  }

  #places-list-filters {
    box-sizing: border-box;
    position: sticky;
    /* Scrollportul are deja padding-top egal cu headerul. `top` se măsoară de
       la marginea interioară a acelui padding, deci 0 înseamnă exact sub
       header; repetarea înălțimii aici crea golul dublu de pe tabletă. */
    top: 0;
    z-index: 1025;
    width: 100%;
    margin-inline: auto;
    padding-top: 2px;
    /* Păstrăm 12px vizibili între controale și primul card, inclusiv atunci
       când bara devine sticky și acoperă începutul listei în timpul scrollului. */
    padding-bottom: 12px;
    background: var(--color-surface-soft, #f8fafc);
    transition: top 200ms cubic-bezier(0.22, 1, 0.36, 1);
  }

  body.mobile-feed-app-shell:has(.navbar-glass.home-app-shell.is-feed-header-hidden)
    #places-list-filters {
    /* Când headerul se retrage, compensăm paddingul rezervat de scrollport și
       mutăm toolbarul până la marginea reală de sus a viewportului. */
    top: calc(-1 * var(--home-header-height, 76px));
  }

  /* Fiecare filtru activ = pereche [X] + etichetă, vizual unite */
  .events-list-pill-group {
    display: inline-flex;
    align-items: center;
    gap: 0;
    border-radius: 999px;
    box-shadow: 0 3px 9px rgba(79, 70, 229, 0.1);
    max-width: 100%;
  }

  .events-list-pill {
    flex: 1 1 auto;
    justify-content: center;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    height: 44px;
    padding: 0 clamp(8px, 2.4vw, 14px);
    border-radius: var(--mobile-chip-radius, 999px);
    border: 1.5px solid rgba(99, 102, 241, 0.22);
    background: #ffffff;
    color: #1e1b4b;
    font-size: clamp(0.75rem, 3.2vw, 0.83rem);
    font-weight: 700;
    white-space: nowrap;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(30, 28, 67, 0.06);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .events-list-pill .lucide,
  .events-list-pill svg { width: 16px; height: 16px; flex: 0 0 auto; }
  .events-list-pill-label {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .events-list-pill:not(.active):nth-of-type(1) .lucide { color: #6366f1; }
  .events-list-pill:not(.active):nth-of-type(2) .lucide { color: #8b5cf6; }
  .events-list-pill:not(.active):nth-of-type(3) .lucide { color: #ec4899; }

  .events-list-pill.active {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    backdrop-filter: blur(20px) saturate(160%);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    border-color: transparent;
    color: #ffffff;
    box-shadow: 0 6px 18px rgba(99, 102, 241, 0.28);
  }
  .events-list-pill.active .lucide,
  .events-list-pill.active svg {
    color: #ffffff !important;
    stroke: #ffffff !important;
  }
  .events-list-pill:focus-visible {
    outline: 2px solid var(--primary-color, #6366f1);
    outline-offset: 2px;
  }

  /* Filtrul activ este o singură pastilă semantică: etichetă + X la dreapta. */
  .events-list-pill-group .events-list-pill.active {
    border-right: 0;
    border-radius: 999px 0 0 999px;
    box-shadow: none;
  }

  .events-list-pill-x {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 44px;
    min-width: 36px;
    padding: 0;
    border-left: 0;
    border-radius: 0 999px 999px 0;
    background: linear-gradient(135deg, #4f46e5, #4338ca);
    backdrop-filter: blur(24px) saturate(150%);
    -webkit-backdrop-filter: blur(24px) saturate(150%);
    border: 1.5px solid transparent;
    color: #ffffff !important;
    text-decoration: none;
  }
  .events-list-pill-x .lucide,
  .events-list-pill-x svg {
    width: 16px !important;
    height: 16px !important;
    color: #ffffff !important;
    stroke: #ffffff !important;
    fill: none !important;
    stroke-width: 2.5px !important;
    display: inline-block !important;
  }
  .events-list-pill-x:hover {
    background: linear-gradient(135deg, #4338ca, #3730a3);
  }
  .events-list-pill-x:focus-visible {
    position: relative;
    z-index: 1;
    background: linear-gradient(135deg, #5045d5, #4438c9);
    outline: 2px solid var(--primary-color, #6366f1);
    outline-offset: 2px;
  }

  /* Unde ieșim are aceleași trei coloane egale ca toolbarul Evenimente,
     indiferent dacă un filtru simplu devine grup [etichetă + X]. */
  #places-list-filters > .places-list-filter-slot {
    display: flex;
    flex: 1 1 0;
    min-width: 112px;
  }

  /* Categoria primește puțin mai mult spațiu decât sortarea. Harta rămâne
     compactă, iar etichetele active lungi nu mai intră sub butonul X. */
  #places-list-filters > .places-list-category-control {
    flex-grow: 1.25;
  }

  /* Un filtru activ include și X-ul; dacă cele trei controale nu mai au loc
     lizibil pe un singur rând, flex-wrap-ul existent le așază pe două rânduri
     în loc să taie textul. Când încap, flex: 1 1 0 le păstrează egale. */
  #places-list-filters > .places-list-filter-slot:has(.events-list-pill-group) {
    min-width: 128px;
  }

  #places-list-filters > .places-list-filter-slot > .events-list-pill,
  #places-list-filters > .places-list-filter-slot > .events-list-pill-group {
    width: 100%;
    min-width: 0;
  }

  #places-list-filters .events-list-pill-group > .events-list-pill:not(.events-list-pill-x) {
    min-width: 0;
  }

  #places-list-filters .events-list-pill-x {
    flex: 0 0 36px;
  }

  /* Pe hartă ordinea listei nu are efect. Rămân categoria și controlul activ
     Hartă, necesar pentru revenirea la listă; Sortează nu mai poate scoate
     accidental utilizatorul din hartă. */
  .places-list-mobile.is-map-active #places-list-filters .places-list-sort-control {
    display: none;
  }

  /* --- Harta mobilă activă: 100% Full-bleed fără mișcare de butoane și fără benzi albe --- */
  .places-list-mobile.is-map-active {
    position: relative !important;
    padding-top: 0 !important;
    margin-top: 0 !important;
    margin-left: calc(-1 * var(--bs-gutter-x, 0.75rem)) !important;
    margin-right: calc(-1 * var(--bs-gutter-x, 0.75rem)) !important;
    width: calc(100% + 2 * var(--bs-gutter-x, 0.75rem)) !important;
    max-width: none !important;
    height: calc(100svh - var(--home-header-height, 76px)) !important;
    height: calc(100dvh - var(--home-header-height, 76px)) !important;
    min-height: 0 !important;
    overflow: hidden !important;
  }

  body.places-map-open .home-browser-scroll-surface {
    overflow-y: hidden !important;
    overscroll-behavior: none !important;
    -webkit-overflow-scrolling: auto;
  }

  body.places-map-open .mobile-nav-bar {
    display: none !important;
  }

  body.places-map-open .mobile-feed-page-intro,
  body.places-map-open .editorial-review-listing-slot,
  body.places-map-open main.container > .newsletter-banner,
  body.places-map-open .home-footer {
    display: none !important;
  }

  body.places-map-open main.container {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }

  body.places-map-open .navbar-glass.home-app-shell,
  body.places-map-open .navbar-glass.home-app-shell.scrolled,
  body.places-map-open .navbar-glass.home-app-shell.is-feed-header-hidden,
  body.places-map-open .navbar-glass.home-app-shell.scrolled.is-feed-header-hidden {
    transform: translate3d(0, 0, 0) !important;
    pointer-events: auto !important;
  }

  .places-list-mobile.is-map-active #places-list-filters {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    width: 100vw !important;
    z-index: 1000 !important;
    pointer-events: none !important;
    padding-left: var(--mobile-page-gutter, 12px) !important;
    padding-right: var(--mobile-page-gutter, 12px) !important;
    padding-top: 12px !important;
    padding-bottom: 8px !important;
    background: transparent !important;
  }

  .places-list-mobile.is-map-active #places-list-filters .events-list-pill,
  .places-list-mobile.is-map-active #places-list-filters .events-list-pill-group {
    pointer-events: auto !important;
  }

  .places-list-mobile.is-map-active #mob-places-map-wrap {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 0 !important;
    border: none !important;
    box-shadow: none !important;
  }

  .places-list-mobile.is-map-active #mob-places-map {
    border-radius: 0 !important;
    height: 100% !important;
    width: 100% !important;
  }

  /* --- Controale Hartă Dreapta Jos: Geolocație + Zoom + - --- */
  .places-list-mobile.is-map-active .place-map-controls {
    position: absolute !important;
    bottom: calc(24px + var(--mobile-safe-bottom, 0px)) !important;
    right: calc(var(--bs-gutter-x, 0.75rem) + 12px) !important;
    z-index: 1000 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-end !important;
    gap: 10px !important;
    pointer-events: auto !important;
  }

  .places-list-mobile.is-map-active .place-map-result-count {
    top: calc(var(--place-map-filter-height, 52px) + 18px);
    left: calc(var(--bs-gutter-x, 0.75rem) + 12px);
  }

  .places-list-mobile.is-map-active .place-map-preview {
    right: calc(var(--bs-gutter-x, 0.75rem) + 12px);
    bottom: calc(12px + var(--mobile-safe-bottom, 0px));
    left: calc(var(--bs-gutter-x, 0.75rem) + 12px);
  }

  .places-list-mobile.is-map-active #mob-places-map-wrap.has-map-preview .place-map-controls {
    bottom: calc(146px + var(--mobile-safe-bottom, 0px)) !important;
  }

  /* --- Titluri de secțiune --- */
  .events-list-section {
    padding: 12px 12px 0;
  }
  .events-list-section-title {
    margin: 0 0 12px 4px;
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--color-text-primary, #0f172a);
    letter-spacing: -0.01em;
  }
  .events-list-section-heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin: 0 4px 12px;
  }
  .events-list-section-heading .events-list-section-title {
    margin: 0;
  }
  .events-list-section-count {
    flex: 0 0 auto;
    color: #7c778c;
    font-size: 0.78rem;
    font-weight: 700;
  }

  /* --- Listă organică verticală --- */
  .events-list-organic {
    display: flex;
    flex-direction: column;
    gap: 14px;
  }

  /* Secțiunea listării are deja gutterul de 12px al cardurilor. Eliminăm al
     doilea gutter adăugat de componenta comună, astfel încât CTA-ul să aibă
     exact aceeași lățime ca pe homepage și ca restul cardurilor. */
  .events-list-section > .home-feed-loadmore-wrap {
    padding-inline: 0;
  }

  /* --- Rezultate după etichetă ---
       Folosește aceleași carduri ca listele principale, dar grupează clar
       locațiile și evenimentele și oferă o ieșire rapidă din filtru. */
  .tag-results-mobile {
    padding-top: 2px;
  }
  .tag-results-summary {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 2px 12px 4px;
    padding: 12px;
    border: 1px solid rgba(99, 102, 241, 0.18);
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.09), rgba(236, 72, 153, 0.05));
  }
  .tag-results-summary-icon {
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 11px;
    background: #ffffff;
    color: var(--primary-color, #6366f1);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.1);
  }
  .tag-results-summary-icon .lucide {
    width: 19px;
    height: 19px;
  }
  .tag-results-summary-copy {
    min-width: 0;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    line-height: 1.2;
  }
  .tag-results-summary-copy span {
    color: #64748b;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
  }
  .tag-results-summary-copy strong {
    margin-top: 3px;
    color: #1e293b;
    font-size: 0.95rem;
    font-weight: 800;
  }
  .tag-results-clear {
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid rgba(148, 163, 184, 0.35);
    background: rgba(255, 255, 255, 0.8);
    color: #475569;
  }
  .tag-results-clear .lucide {
    width: 17px;
    height: 17px;
  }
  .tag-results-clear:focus-visible {
    outline: 2px solid var(--primary-color, #6366f1);
    outline-offset: 2px;
  }
  .tag-results-section + .tag-results-section {
    margin-top: 8px;
  }
  .tag-results-section .events-list-section-title {
    display: flex;
    align-items: center;
    gap: 7px;
  }
  .tag-results-section .events-list-section-title span {
    min-width: 24px;
    height: 24px;
    padding: 0 7px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(99, 102, 241, 0.1);
    color: #4f46e5;
    font-size: 0.75rem;
    font-weight: 800;
  }

  /* --- Stare goală --- */
  .events-list-empty {
    margin: 24px 12px 0;
    padding: 40px 24px;
    text-align: center;
    background: #ffffff;
    border: 1px solid var(--color-border, rgba(226, 232, 240, 0.8));
    border-radius: var(--radius-lg, 12px);
  }
  .events-list-empty-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--color-surface-soft, #f8fafc);
    color: #94a3b8;
    margin-bottom: 14px;
  }
  .events-list-empty-icon .lucide { width: 28px; height: 28px; }
  .events-list-empty-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--color-text-primary, #1e293b);
    margin-bottom: 6px;
  }
  .events-list-empty-text {
    font-size: 0.9rem;
    color: var(--color-text-secondary, #475569);
    margin-bottom: 16px;
  }
  .events-list-empty-reset {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 20px;
    border-radius: 999px;
    background: var(--primary-color, #6366f1);
    color: #ffffff;
    font-weight: 700;
    font-size: 0.88rem;
    text-decoration: none;
  }
  .events-list-empty-reset:focus-visible {
    outline: 2px solid var(--primary-color, #6366f1);
    outline-offset: 2px;
  }

  /* --- Sheet-uri (Categorii / Alege data): modal Bootstrap ancorat jos --- */
  .events-list-sheet-modal .modal-dialog-bottom {
    display: flex;
    align-items: flex-end;
    min-height: calc(100% - 1rem);
    margin: 0.5rem auto;
    max-width: 480px;
  }
  .events-list-sheet-modal .modal-content {
    width: 100%;
    max-height: 80vh;
    border-radius: 20px 20px 0 0;
    border: none;
    overflow: hidden;
  }
  .events-list-sheet-modal .modal-header {
    border-bottom: 1px solid var(--color-border, rgba(226, 232, 240, 0.8));
    padding: 16px 20px;
  }
  .events-list-sheet-modal .modal-body {
    padding: 12px 12px 20px;
    overflow-y: auto;
  }

  /* --- Calendar „Alege data": reutilizează .calendar-day-cell/.grid-7 din
       style.css (widgetul desktop existent); doar completări minime aici. --- */
  .events-list-cal-month {
    padding: 8px 4px 16px;
  }
  .events-list-cal-month-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--color-text-primary, #0f172a);
    margin-bottom: 10px;
  }
  #eventsListDateModal .calendar-day-cell {
    text-decoration: none;
  }
  #eventsListDateModal .calendar-day-cell.is-disabled {
    color: #cbd5e1;
    cursor: default;
  }
  /* Presetări rapide (Weekend/Astăzi) în sheet-ul Calendar, deasupra grilei —
     reutilizează .events-list-sheet-item (același limbaj ca lista Categorii). */
  .events-list-cal-presets {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
  }
  .events-list-cal-presets .events-list-sheet-item {
    flex: 1 1 0;
    justify-content: center;
    border: 1px solid var(--color-border, rgba(226, 232, 240, 0.8));
    border-radius: 999px;
  }

  /* Smooth responsive scaling handled via fluid clamp rules. */
}

@media (min-width: 576px) and (max-width: 767.98px) {
  #places-list-filters {
    max-width: 540px;
  }
}

@media (min-width: 768px) and (max-width: 991.98px) {
  #places-list-filters {
    max-width: 640px;
  }

  /* Pe tabletă pastila globală rămâne disponibilă și peste hartă. Harta și
     controalele sale rezervă separat spațiul ocupat de aceasta. */
  body.places-map-open .mobile-nav-bar {
    display: flex !important;
  }

  .places-list-mobile.is-map-active .place-map-controls {
    bottom: calc(
      var(--mobile-nav-height, 54px)
      + var(--mobile-nav-float-gap, 10px)
      + var(--mobile-safe-bottom, 0px)
      + 18px
    ) !important;
  }

  .places-list-mobile.is-map-active .place-map-preview {
    bottom: calc(
      var(--mobile-nav-height, 54px)
      + var(--mobile-nav-float-gap, 10px)
      + var(--mobile-safe-bottom, 0px)
      + 18px
    );
  }

  .places-list-mobile.is-map-active #mob-places-map-wrap.has-map-preview .place-map-controls {
    bottom: calc(
      var(--mobile-nav-height, 54px)
      + var(--mobile-nav-float-gap, 10px)
      + var(--mobile-safe-bottom, 0px)
      + 152px
    ) !important;
  }
}

@media (max-width: 991.98px) and (prefers-reduced-motion: reduce) {
  #places-list-filters,
  .events-list-pill,
  .events-list-empty-reset {
    transition: none !important;
  }
}
