@import url('assets/css/base.css');

/* Glassmorphism Header */
.navbar-glass {
  position: fixed !important;
  top: 0 !important;
  width: 100%;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: 1px solid transparent;
  box-shadow: none;
  transition: background-color 0.3s ease, backdrop-filter 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  z-index: 1050;
  will-change: background-color, backdrop-filter;
}

.navbar-glass.scrolled {
  background: rgba(255, 255, 255, 0.9) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  border-bottom: 1px solid var(--glass-border) !important;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05) !important;
}

/* Acțiunea de editare este disponibilă doar administratorilor și plutește
   independent de antet și de conținutul paginii. */
.header-edit-btn {
  position: fixed;
  right: calc(20px + env(safe-area-inset-right, 0px));
  bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  z-index: 1040;
  display: inline-flex;
  width: 52px;
  height: 52px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid #e5a500;
  border-radius: 50%;
  color: #2f2600;
  background: #fbbf24;
  box-shadow: 0 10px 28px rgba(120, 83, 0, 0.28);
  text-decoration: none;
  transition: transform 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
}

.header-edit-btn:hover {
  color: #211a00;
  background: #facc15;
  box-shadow: 0 13px 32px rgba(120, 83, 0, 0.34);
  transform: translateY(-2px);
}

.header-edit-btn:active {
  transform: translateY(0);
}

.header-edit-btn:focus-visible {
  outline: 3px solid rgba(91, 79, 233, 0.42);
  outline-offset: 3px;
}

.header-edit-btn .lucide,
.header-edit-btn svg {
  width: 23px;
  height: 23px;
  stroke-width: 2.25;
}

@media (max-width: 767.98px) {
  .header-edit-btn {
    right: calc(16px + env(safe-area-inset-right, 0px));
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    width: 48px;
    height: 48px;
  }
}

/* Toate butoanele din antet au dimensiunea standard de 44px touch target */
.navbar-glass .header-actions .btn,
.navbar-glass .header-account-btn,
.navbar-glass #btn-global-search,
.navbar-glass #btn-dice-randomizer,
.navbar-glass .header-hamburger-btn,
.navbar-glass .header-mobile-back-btn {
  height: 44px !important;
  min-height: 44px !important;
  box-sizing: border-box;
}

/* SVG-urile controalelor principale sunt prezente direct în HTML. `display`
   și dimensiunea intrinsecă previn orice colaps înainte de încărcarea CSS/JS. */
.navbar-glass .header-stable-icon {
  display: block;
  flex: 0 0 auto;
}

@media (max-width: 991.98px) {
  .navbar-glass #btn-dice-randomizer,
  .navbar-glass #btn-global-search,
  .navbar-glass .header-account-btn {
    width: 44px !important;
    height: 44px !important;
    padding: 0 !important;
    border-radius: 50% !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
}

.brand-text {
  font-weight: 800;
  line-height: 1.5;
  background: linear-gradient(to right, #ffffff, var(--color-brand-logo-end));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.5px;
  transition: all 0.3s ease;
}

.navbar-glass.scrolled .brand-text {
  background: var(--gradient-brand-logo);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Global search button adaptive styles */
#btn-global-search {
  background-color: transparent !important;
  border: 1.5px solid rgba(255, 255, 255, 0.7) !important;
  transition: all 0.3s ease;
  width: 44px !important;
  height: 44px !important;
  border-radius: 50% !important;
  padding: 0 !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

#btn-global-search i,
#btn-global-search svg {
  color: #ffffff !important;
  stroke: #ffffff !important;
  transition: all 0.3s ease;
}

#btn-global-search span {
  color: #ffffff !important;
  transition: all 0.3s ease;
}

#btn-global-search:hover {
  background-color: rgba(255, 255, 255, 0.1) !important;
  border-color: rgba(255, 255, 255, 0.9) !important;
  transform: scale(1.05);
}

.navbar-glass.scrolled #btn-global-search {
  background-color: #ffffff !important;
  border: 1px solid rgba(0, 0, 0, 0.06) !important;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08) !important;
}

.navbar-glass.scrolled #btn-global-search i,
.navbar-glass.scrolled #btn-global-search svg {
  color: #1e293b !important;
  stroke: #1e293b !important;
}

.navbar-glass.scrolled #btn-global-search span {
  color: #1e293b !important;
}

@media (min-width: 768px) {
  #btn-global-search {
    width: auto !important;
    padding-left: 14px !important;
    padding-right: 14px !important;
    border-radius: 50rem !important;
  }
}

/* Hamburger button (S1-06E/S1-06F): only rendered when
   $headerConfig['show_hamburger'] is explicitly true (currently the bare
   homepage only). S1-06F: no visible circle/outline/background in any state
   (transparent, scrolled, hover) — icon-only, but the real interactive
   target stays 44x44px via box-sizing:border-box padding, and a real 8px
   gap separates it from the wordmark that follows. */
.header-hamburger-btn {
  box-sizing: border-box;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  margin-right: 8px;
  border: none;
  background: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  -webkit-tap-highlight-color: transparent;
  transition: opacity 0.2s ease;
  position: relative;
}

/* Butonul „←" de pe paginile de detaliu stă în STÂNGA wordmark-ului (S1-08),
   în slotul ocupat de hamburger pe listele publice; aceeași spațiere de 8px ca
   hamburgerul. Vizual (cerc glass) rămâne dat de *-detail-mobile.css. Împreună cu
   gutter-ul de 8px al antetului de detaliu, back/logo/conectare ajung EXACT în
   aceleași poziții ca pe paginile principale. */
.header-mobile-back-btn {
  margin-right: 8px;
}

/* Butonul de cont din bară. Glifa spune CE e butonul (contul), NU starea lui:
   culoarea rămâne neutră, ca la Caută/Inspiră-mă, fiindcă verde/roșu pe 18px nu
   se citea ca stare (și roșul pe o inimă semnala exact invers — „ai favorite").
   Starea de conectare o dă avatarul cu inițială de mai jos: prezent = conectat,
   absent = neconectat. Un caracter e lizibil la 44px și pentru daltoniști. */
.header-account-btn--out .lucide {
  color: #475569;
  stroke: #475569;
}

/* Avatarul contului conectat: cerc plin cu inițiala, convenția pe care omul o
   recunoaște din orice alt produs. Aceeași amprentă de 18px ca glifa pe care o
   înlocuiește, deci geometria butonului rămâne neatinsă în toate variantele. */
.header-account-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--primary-color, #6366f1);
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
}

/* FC.1: punctul „ai ceva de-al tău în meniu" de pe butonul de cont. Fără cifră —
   cifrele stau în meniu, unde e loc pentru etichete.
   Indigo, nu roșu: glifa de inimă poartă deja culoarea de stare a contului
   (verde conectat / roșu neconectat), iar un punct roșu peste un icon roșu s-ar
   citi ca alertă. Aici mesajul e „ai conținut", nu „e o problemă". */
.header-account-btn {
  position: relative;
}

/* Ambele stări ale contului folosesc aceeași lățime. CTA-ul anonim are loc
   pentru explicație, iar emailul contului conectat nu îngustează meniul. */
.header-account-dropdown,
.header-account-dropdown--anonymous {
  width: min(18rem, calc(100vw - 1rem));
}

.header-account-dropdown strong {
  overflow-wrap: anywhere;
}

/* Rândurile principale din meniul contului au aceeași geometrie și aceeași
   suprafață tactilă: identitatea contului, Favorite, Voi participa și
   Deconectare. Paddingul este inclus în înălțime, nu adăugat peste ea. */
.header-account-dropdown .header-account-menu-row {
  box-sizing: border-box;
  width: 100%;
  min-height: 52px;
  padding: 0.65rem 1rem;
  white-space: normal;
}

.header-account-dot {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary-color, #6366f1);
  border: 1.5px solid #ffffff;
  pointer-events: none;
}

/* În varianta lată (≥992px) butonul are text, deci punctul stă în colț. */
@media (min-width: 992px) {
  .header-account-dot {
    top: 3px;
    right: 3px;
  }
}

/* Sub 992px butonul de cont are exact același fundal glass și
   aceeași înălțime (44px, cerc) ca butoanele de căutare/Inspiră-mă. */
@media (max-width: 991.98px) {
  .header-account-btn {
    width: 44px !important;
    height: 44px !important;
    padding: 0 !important;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.8) !important;
    -webkit-backdrop-filter: blur(24px) saturate(150%);
    backdrop-filter: blur(24px) saturate(150%);
    border: 1px solid rgba(255, 255, 255, 0.4) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
  }
  .header-account-btn.dropdown-toggle::after {
    display: none; /* fără caret în varianta cerc, icon-only */
  }
}

.header-hamburger-btn .lucide {
  width: 22px;
  height: 22px;
  color: #ffffff;
  stroke: #ffffff;
  transition: color 0.3s ease, stroke 0.3s ease;
}

.header-hamburger-btn:hover {
  opacity: 0.7;
}

.header-hamburger-btn:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
  border-radius: 8px;
}

.navbar-glass.scrolled .header-hamburger-btn .lucide {
  color: #1e293b;
  stroke: #1e293b;
}

.navbar-glass.scrolled .header-hamburger-btn:focus-visible {
  outline-color: var(--primary-color, #6366f1);
}

/* Mobile back button (S1-07A): "←" pe antetul mobil al paginii de eveniment,
   aceeași construcție vizuală ca .header-hamburger-btn (44px, transparent,
   alb peste hero / închis la scroll). */
.header-mobile-back-btn {
  box-sizing: border-box;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border: none;
  background: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  -webkit-tap-highlight-color: transparent;
  transition: opacity 0.2s ease;
}

.header-mobile-back-btn .lucide {
  width: 22px;
  height: 22px;
  color: #ffffff;
  stroke: #ffffff;
  transition: color 0.3s ease, stroke 0.3s ease;
}

.header-mobile-back-btn:hover {
  opacity: 0.7;
}

.header-mobile-back-btn:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
  border-radius: 8px;
}

.navbar-glass.scrolled .header-mobile-back-btn .lucide {
  color: #1e293b;
  stroke: #1e293b;
}

.navbar-glass.scrolled .header-mobile-back-btn:focus-visible {
  outline-color: var(--primary-color, #6366f1);
}

/* Contract unic pentru wordmarkul din toate headerele publice mobile.
   Homepage-ul este reperul: control leading 44px + gap 8px, wordmark fluid
   și aceleași guttere indiferent dacă pagina folosește hamburger sau back. */
@media (max-width: 991.98px) {
  .navbar-glass .container {
    padding-left: 16px;
    padding-right: 16px;
  }

  /* Wordmarkul crește fluid doar până în jurul lățimii de 425px; pe tabletă
     rămâne la 1.4rem ca să nu domine bara și acțiunile din dreapta. */
  .navbar-glass .brand-text {
    font-size: clamp(1rem, 5.2vw, 1.4rem) !important;
  }
}

@media (max-width: 767.98px) {
  .navbar-glass .container {
    padding-left: 8px !important;
    padding-right: 8px !important;
  }

  .navbar-glass .navbar-brand {
    margin-right: 4px !important;
  }
}

/* Desktop main navigation in the shared header (variant homepage only,
   shown from 992px up; below that the global bottom nav bar is used). (S1-06) */
.header-desktop-nav {
  margin-left: 24px;
}

.header-desktop-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 50rem;
  font-weight: 700;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.header-desktop-nav-link .lucide {
  width: 18px;
  height: 18px;
  stroke-width: 2.2px;
}

.header-desktop-nav-link:hover,
.header-desktop-nav-link:focus-visible {
  background-color: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.navbar-glass.scrolled .header-desktop-nav-link {
  color: var(--color-text-secondary, #475569);
}

.navbar-glass.scrolled .header-desktop-nav-link:hover,
.navbar-glass.scrolled .header-desktop-nav-link:focus-visible {
  background-color: rgba(99, 102, 241, 0.08);
  color: var(--primary-color, #6366f1);
}

/* Headerul homepage are trei stări responsive:
   - mobil/tabletă sub 992px (implementarea existentă);
   - desktop compact între 992px și 1399px;
   - desktop complet de la 1400px.
   Containerul Bootstrap de 960/1140px era prea îngust pentru navigație și
   cele patru acțiuni, deși viewportul mai avea spațiu liber. */
@media (min-width: 992px) {
  .public-header--homepage .container {
    width: 100%;
    max-width: 1440px;
    padding-left: clamp(16px, 2vw, 28px);
    padding-right: clamp(16px, 2vw, 28px);
  }

  .public-header--homepage .navbar-brand,
  .public-header--homepage .header-actions {
    flex-shrink: 0;
  }

  .public-header--homepage .header-desktop-nav {
    min-width: 0;
    margin-left: 16px;
    flex: 1 1 auto;
  }

  .public-header--homepage .header-desktop-nav-link {
    flex: 0 0 auto;
  }
}

@media (min-width: 992px) and (max-width: 1399.98px) {
  .public-header--homepage .navbar-brand {
    margin-right: 0;
  }

  .public-header--homepage .brand-text {
    font-size: 1.4rem !important;
  }

  .public-header--homepage .header-desktop-nav {
    gap: 0 !important;
    margin-left: 6px;
  }

  .public-header--homepage .header-desktop-nav-link {
    gap: 5px;
    padding: 8px clamp(4px, 0.55vw, 8px);
    font-size: 0.9rem;
  }

  .public-header--homepage .header-actions {
    gap: 4px !important;
  }

  .public-header--homepage #btn-global-search,
  .public-header--homepage .header-account-btn,
  .public-header--homepage #proposeDropdown {
    width: 44px !important;
    min-width: 44px !important;
    height: 44px !important;
    padding: 0 !important;
    border-radius: 50% !important;
  }

  .public-header--homepage #btn-dice-randomizer {
    width: auto !important;
    min-width: 44px !important;
    padding-left: 10px !important;
    padding-right: 10px !important;
    border-radius: 999px !important;
  }

  .public-header--homepage #btn-global-search .header-action-label,
  .public-header--homepage .header-account-name,
  .public-header--homepage .header-propose-label {
    display: none !important;
  }

  .public-header--homepage .header-account-btn.dropdown-toggle::after,
  .public-header--homepage #proposeDropdown.dropdown-toggle::after {
    display: none;
  }

  .public-header--homepage .header-account-dot {
    top: 6px;
    right: 6px;
  }
}

/* Custom Propose Button to match gradient theme */
#proposeDropdown {
  background: linear-gradient(135deg, #6366f1, #a855f7) !important;
  border: none !important;
  color: #ffffff !important;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3) !important;
  transition: all 0.3s ease;
}

#proposeDropdown:hover, #proposeDropdown:focus, #proposeDropdown[aria-expanded="true"] {
  background: linear-gradient(135deg, #4f46e5, #9333ea) !important;
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.45) !important;
  transform: translateY(-1px);
}

/* Category Pills - Horizontal Scrollable without scrollbar (Airbnb style) */
.category-scroll-container {
  display: flex !important;
  flex-wrap: nowrap !important;
  overflow-x: auto !important;
  white-space: nowrap !important;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding: 10px 4px 14px 4px;
  -ms-overflow-style: none;  /* IE and Edge */
  scrollbar-width: none;  /* Firefox */
}

/* Hide scrollbar for Chrome, Safari and Opera */
.category-scroll-container::-webkit-scrollbar {
  display: none !important;
}

.btn-pill {
  border-radius: 50px !important;
  padding: 8px 18px;
  font-weight: 600;
  font-size: 0.85rem;
  margin-right: 8px;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Time timeframe-pill: Filled style */
.timeframe-pill {
  border-radius: 50px !important;
  background-color: #f1f5f9;
  border: 1px solid transparent;
  color: #475569;
}

.timeframe-pill:hover {
  transform: translateY(-2px);
  background-color: #e2e8f0;
  color: #1e293b;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.timeframe-pill.active {
  background-color: #4338ca !important;
  color: #ffffff !important;
  border-color: #4338ca !important;
  box-shadow: 0 8px 20px -6px rgba(67, 56, 202, 0.4) !important;
}

/* Category category-pill: Outlined style */
.category-pill {
  border-radius: 50px !important;
  background-color: transparent;
  border: 1px solid #e2e8f0;
  color: #64748b;
}

.category-pill:hover {
  transform: translateY(-2px);
  border-color: #cbd5e1;
  color: #334155;
  background-color: rgba(248, 250, 252, 0.4);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
}

.category-pill.active,
.sort-pill.active {
  background-color: #4338ca !important;
  color: #ffffff !important;
  border-color: #4338ca !important;
  box-shadow: 0 8px 20px -6px rgba(67, 56, 202, 0.4) !important;
}

/* Event Cards Grid */
.event-card {
  border: none;
  border-radius: 18px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: var(--card-shadow);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  height: 100%;
  cursor: pointer;
}

.event-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--card-shadow-hover);
}

.event-card-img-wrapper {
  position: relative;
  height: 200px;
  overflow: hidden;
  background-color: #e2e8f0;
}

.event-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.event-card:hover .event-card-img {
  transform: scale(1.06);
}

.event-date-highlight {
  padding: 9px 10px;
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: 11px;
  background: linear-gradient(135deg, rgba(238, 242, 255, 0.96), rgba(250, 245, 255, 0.92));
  color: #312e81;
  font-weight: 700;
}
.event-date-highlight > span {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}
.event-date-relative {
  display: inline-flex;
  padding: 2px 7px;
  border-radius: 999px;
  background: #4f46e5;
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.035em;
  line-height: 1.2;
  text-transform: uppercase;
}
.event-date-full {
  display: block;
}

/* Category Badge Styling */
.badge-category {
  position: absolute;
  top: 15px;
  left: 15px;
  padding: 6px 14px;
  font-weight: 700;
  font-size: 0.75rem;
  border-radius: 50px;
  letter-spacing: 0.3px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  z-index: 10;
}

.place-card-type-list {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: calc(100% - 30px);
  overflow: hidden;
  white-space: nowrap;
}

.place-card-type-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex: 0 0 auto;
}

.place-card-type-item .lucide {
  width: 12px;
  height: 12px;
  flex: 0 0 auto;
}

/* Custom Gradients for Category Badges */
.bg-party {
  background: linear-gradient(135deg, #a855f7, #6366f1);
}
.bg-art {
  background: linear-gradient(135deg, #ec4899, #be185d);
}
.bg-workshop {
  background: linear-gradient(135deg, #f59e0b, #d97706);
}
.bg-sport {
  background: linear-gradient(135deg, #10b981, #047857);
}
.bg-comunity {
  background: linear-gradient(135deg, #3b82f6, #06b6d4);
}
.bg-kids {
  background: linear-gradient(135deg, #84cc16, #4d7c0f);
}
.bg-gastronomy {
  background: linear-gradient(135deg, #f97316, #ea580c);
}

/* Card Body Details */
.event-details-icon {
  width: 16px !important;
  height: 16px !important;
  color: #6366f1;
  margin-right: 8px;
  stroke-width: 2.2px;
  vertical-align: -2px;
}

.event-title {
  font-size: 1.25rem;
  font-weight: 800; /* Bold titles */
  line-height: 1.35;
  color: #0f172a;
  margin-bottom: 12px;
  letter-spacing: -0.2px;
}

.event-meta {
  font-size: 0.88rem;
  color: #64748b;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
}

/* Interactive Actions Footer */
.card-actions-wrapper {
  background: #f8fafc;
  border-top: 1px solid #f1f5f9;
  padding: 12px 20px;
}

/* Button Hype 🔥 */
.btn-hype {
  background:
    var(--participate-surface) padding-box,
    var(--participate-border) border-box;
  border: 1.5px solid transparent;
  color: var(--participate-text);
  border-radius: 50px;
  padding: 6px 16px;
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: var(--participate-shadow);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-hype:hover {
  background:
    var(--participate-surface-hover) padding-box,
    var(--participate-border-hover) border-box;
  color: var(--participate-text);
  transform: scale(1.05);
}

.btn-hype.active {
  background:
    var(--participate-active-surface) padding-box,
    var(--participate-active-border) border-box;
  color: var(--participate-active-text);
  border-color: transparent;
  box-shadow: var(--participate-active-shadow);
}

.btn-hype.active .fire-icon {
  color: currentColor;
  fill: currentColor !important;
  animation: pulse-fire 0.6s infinite alternate;
}

@keyframes pulse-fire {
  0% { transform: scale(1); }
  100% { transform: scale(1.3); }
}

/* Button Share */
.btn-share {
  background: #fff;
  border: 1px solid #e2e8f0;
  color: #475569;
  border-radius: 50px;
  padding: 6px 14px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.2s;
  flex-shrink: 0;
}

.btn-share:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #1e293b;
}

/* Add event page CSS */
.form-card {
  border: none;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: var(--card-shadow);
}

.form-title {
  font-weight: 800;
  color: #0f172a;
}

/* Custom inputs styling */
.form-control:focus, .form-select:focus {
  border-color: #6366f1;
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15);
}

/* Toast message customized */
.toast-container {
  z-index: 9999;
}

.custom-toast {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1.5px solid rgba(168, 85, 247, 0.4);
  border-radius: 14px;
  box-shadow: 0 10px 25px rgba(99, 102, 241, 0.18);
}

.custom-toast .text-primary {
  color: #6366f1 !important; /* Indigo */
}

.custom-toast .text-success {
  color: #ec4899 !important; /* Pink instead of Green */
}

.custom-toast .text-danger {
  color: #e11d48 !important;
}

/* No results state styling */
.no-events-state {
  text-align: center;
  padding: 60px 20px;
  color: #64748b;
}
.no-events-icon {
  font-size: 3rem;
  color: #cbd5e1;
  margin-bottom: 15px;
}

/* Admin Dashboard styles */
.table-responsive {
  border-radius: 12px;
  overflow: hidden;
}
.admin-table th {
  background-color: #f1f5f9;
  color: #475569;
  font-weight: 600;
  border-bottom: 2px solid #e2e8f0;
}
.admin-table td {
  vertical-align: middle;
}
.admin-thumbnail {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: 8px;
}

/* Simple Login card styling */
.login-card {
  max-width: 400px;
  margin: 80px auto;
  border-radius: 20px;
  border: none;
  box-shadow: var(--card-shadow);
}

.login-card .brand-text {
  background: var(--gradient-brand-logo);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Responsiveness adjustments for mobile screens */
@media (max-width: 768px) {
  /* Turn admin table into stacked cards on mobile */
  .admin-table, 
  .admin-table thead, 
  .admin-table tbody, 
  .admin-table th, 
  .admin-table td, 
  .admin-table tr {
    display: block;
    width: 100%;
  }

  .admin-table thead {
    display: none; /* Hide header row */
  }

  .admin-table tr {
    margin-bottom: 1.5rem;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    background-color: #ffffff;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
    padding: 1.25rem;
  }

  .admin-table td {
    border: none;
    padding: 0.65rem 0;
    text-align: left;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    border-bottom: 1px dashed #f1f5f9;
  }

  /* Label fallbacks for table columns in mobile view */
  .admin-table td::before {
    content: attr(data-label);
    font-weight: 700;
    min-width: 110px;
    color: #64748b;
    display: inline-block;
    font-size: 0.85rem;
    text-transform: uppercase;
  }

  /* Adjust first td containing the thumbnail image */
  .admin-table td:first-child {
    display: flex;
    justify-content: center;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 1rem;
    margin-bottom: 0.75rem;
  }
  .admin-table td:first-child::before {
    display: none; /* Hide the "Foto" label for the image */
  }
  
  .admin-table .admin-thumbnail {
    width: 90px;
    height: 90px;
    border-radius: 12px;
  }

  /* Description and Actions layout */
  .admin-table td p {
    max-width: 100% !important;
    white-space: normal !important;
    text-overflow: unset !important;
    overflow: visible !important;
    margin-top: 4px;
    width: 100%;
  }

  .admin-table td:last-child {
    display: flex;
    justify-content: center;
    border-top: 1px solid #f1f5f9;
    border-bottom: none;
    padding-top: 1rem;
    margin-top: 0.75rem;
    gap: 10px;
  }
  .admin-table td:last-child::before {
    display: none; /* Hide the "Acțiuni" label */
  }
}

/* Featured Event Cards styling */
.event-card.featured {
  border: 2px solid #6366f1;
  position: relative;
}
.event-card.featured::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  border-radius: 18px;
  box-shadow: 0 0 15px rgba(99, 102, 241, 0.2);
  pointer-events: none;
  z-index: 1;
}
.featured-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  color: #ffffff;
  padding: 6px 14px;
  font-weight: 800;
  font-size: 0.75rem;
  border-radius: 50px;
  letter-spacing: 0.3px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  z-index: 10;
}

/* Marcaj comercial discret, păstrat în corpul cardului pentru a nu acoperi
   posterul sau fotografia. */
.card-promoted-label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  width: fit-content;
  flex: 0 0 auto;
  margin-top: 2px;
  padding: 3px 7px;
  border: 1px solid rgba(180, 83, 9, 0.22);
  border-radius: 999px;
  background: #fff7ed;
  color: #b45309;
  font-size: 0.6rem;
  line-height: 1;
  font-weight: 800;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}
.card-promoted-label .lucide {
  width: 11px;
  height: 11px;
  stroke-width: 2.2px;
}
.card-title-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  min-width: 0;
}
.card-title-row > h3 {
  flex: 1 1 auto;
  min-width: 0;
}

.card-soldout-poster,
.home-rail-soldout-status {
  position: absolute;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  width: fit-content;
  border-radius: 999px;
  background: #991b1b;
  color: #ffffff !important;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}
.card-soldout-poster {
  left: 12px;
  bottom: 12px;
  padding: 6px 9px;
  border: 1px solid rgba(254, 202, 202, 0.42);
  background: rgba(153, 27, 27, 0.9);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
  font-size: 0.66rem;
  box-shadow: 0 3px 9px rgba(127, 29, 29, 0.24);
}
.home-rail-soldout-status {
  right: 8px;
  bottom: 8px;
  padding: 4px 7px;
  font-size: 0.58rem;
}
/* Starea biletelor rămâne vizibilă pe poster, inclusiv înaintea zonei CTA. */
.event-poster-soldout {
  top: 16px;
  bottom: auto;
  left: 16px;
  padding: 8px 12px;
  font-size: 0.8rem;
  pointer-events: none;
}
.card-soldout-poster .lucide,
.home-rail-soldout-status .lucide {
  width: 12px;
  height: 12px;
  flex: 0 0 auto;
}
.btn-buy-tickets--soldout {
  border-color: #cbd5e1 !important;
  background: #e2e8f0 !important;
  color: #64748b !important;
  cursor: not-allowed !important;
  box-shadow: none !important;
}
.btn-buy-tickets--soldout .lucide {
  color: #64748b !important;
}

/* Wrapper pentru posterul din hero-ul desktop. */
.event-hero-poster-wrap {
  position: relative;
  display: inline-block;
  overflow: hidden;
  border-radius: 20px;
  max-width: 100%;
}

/* Button Calendar */
.btn-calendar {
  background: #fff;
  border: 1px solid #e2e8f0;
  color: #475569;
  border-radius: 50px;
  padding: 6px 14px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.2s;
  flex-shrink: 0;
}
.btn-calendar:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #4f46e5;
}

/* Search Input styles */
.search-input {
  border-radius: 50px;
  padding: 16px 28px 16px 56px;
  font-size: 1rem;
  font-weight: 500;
  border: 1px solid rgba(99, 102, 241, 0.12);
  background-color: #ffffff;
  box-shadow: 0 12px 40px -12px rgba(99, 102, 241, 0.16), 0 1px 4px rgba(0, 0, 0, 0.02);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.search-input:focus {
  border-color: #6366f1;
  box-shadow: 0 20px 40px -10px rgba(99, 102, 241, 0.25), 0 1px 6px rgba(99, 102, 241, 0.08);
  transform: translateY(-2px);
}
/* Unified Header-Hero Wrapper cu gradient intens și saturat */
.header-hero-wrapper {
  background: linear-gradient(135deg, #0f0c29 0%, #30103b 50%, #4c1d95 100%) !important;
  border-bottom: none !important;
  margin-top: -110px; /* Pull it up under the transparent sticky navbar */
  padding-top: 110px; /* Push hero content down to offset navbar height */
}

.hero-section-wrapper {
  position: relative;
  overflow: hidden;
  background: transparent !important;
  border-bottom: none !important;
  box-shadow: none !important;
  padding: 45px 0 95px 0;
}

.hero-badge {
  background-color: rgba(255, 255, 255, 0.12) !important;
  color: #f472b6 !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  font-size: 0.68rem;
  letter-spacing: 0.8px;
}

/* Sticky Filters Wrapper cu aspect de pastilă rotunjită */
.sticky-filters-wrapper {
  position: sticky;
  top: 82px; /* sub navbar-ul principal sticky */
  z-index: 100;
  background: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(226, 232, 240, 0.8) !important;
  border-radius: 30px !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding: 10px 20px !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04) !important;
  transition: all 0.2s ease-in-out;
}
@media (max-width: 768px) {
  .sticky-filters-wrapper {
    top: 74px; /* ajustare pe mobil */
  }
}

/* Map Link styling */
.map-link {
  color: #475569;
  text-decoration: none;
  transition: color 0.2s;
}
.map-link:hover {
  color: #6366f1;
  text-decoration: underline;
}

.bg-indigo {
  background-color: var(--primary-color) !important;
}

/* Floating Admin Button */
.btn-admin-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 52px;
  height: 52px;
  padding: 0;
  border-radius: 50%;
  background-color: #1e293b; /* slate-800 */
  color: white !important;
  border: none;
  box-shadow: 0 10px 25px rgba(30, 41, 59, 0.35);
  cursor: pointer;
  z-index: 1040;
  text-decoration: none;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-admin-float .lucide,
.btn-admin-float svg {
  width: 22px;
  height: 22px;
  stroke-width: 2.25;
}

.btn-admin-float:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 30px rgba(30, 41, 59, 0.5);
  background-color: #0f172a; /* slate-900 */
}

@media (max-width: 768px) {
  .btn-admin-float {
    bottom: 20px;
    right: 20px;
    width: 48px;
    height: 48px;
  }
}

/* Leaflet maps container z-index containment */
#mapPicker {
  z-index: 1;
}


/* Place Card styling */
.place-card {
  border: none;
  border-radius: 18px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: var(--card-shadow);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  height: 100%;
}
.place-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--card-shadow-hover);
}
.place-card-img-wrapper {
  position: relative;
  height: 200px;
  overflow: hidden;
  background-color: #e2e8f0;
}
.place-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  transition: transform 0.5s ease;
}
.place-card:hover .place-card-img {
  transform: scale(1.06);
}
.place-title {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.35;
  color: #0f172a;
  margin-bottom: 12px;
}

/* Promotion Card Voucher style */
.promo-card {
  border: 2px dashed var(--primary-color);
  border-radius: 18px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: var(--card-shadow);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  height: 100%;
}
.promo-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--card-shadow-hover);
  border-color: var(--primary-hover);
}
.promo-card-header {
  background: linear-gradient(135deg, #6366f1, #4f46e5);
}
.promo-code-box {
  background-color: rgba(99, 102, 241, 0.08);
  border: 1px dashed rgba(99, 102, 241, 0.3);
}

/* Glassmorphism Global Footer */
.footer-glass {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--glass-border);
  box-shadow: 0 -4px 30px rgba(0, 0, 0, 0.02);
}

.hover-primary-link {
  color: #64748b;
  font-weight: 500;
  transition: color 0.2s ease, transform 0.2s ease;
  display: inline-block;
}

.hover-primary-link:hover {
  color: var(--primary-color) !important;
  transform: translateY(-1px);
}

/* Stiluri Căutare Globală Modal & Rezultate */
#globalSearchModal .modal-content {
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25) !important;
  border: 1px solid rgba(226, 232, 240, 0.8) !important;
}

#global-search-input:focus {
  border-color: #6366f1 !important;
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15) !important;
  background-color: #ffffff !important;
}

.search-results-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.search-group-wrapper {
  margin-top: 10px;
}

.search-group-title {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #4f46e5;
  background-color: rgba(99, 102, 241, 0.05);
  padding: 6px 12px;
  border-radius: 6px;
  margin-bottom: 8px;
}

.search-result-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 14px;
  border-radius: 12px;
  text-decoration: none;
  color: #1e293b;
  background-color: transparent;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid transparent;
}

.search-result-item:hover {
  background-color: #f1f5f9;
  border-color: rgba(99, 102, 241, 0.08);
  transform: translateX(4px);
}

.search-result-details {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.search-result-title {
  font-weight: 700;
  font-size: 0.95rem;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-result-meta {
  font-size: 0.78rem;
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-result-item .lucide-chevron-right {
  opacity: 0;
  transition: all 0.2s;
}

.search-result-item:hover .lucide-chevron-right {
  opacity: 1;
  transform: translateX(2px);
}

.global-search-content {
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.global-search-results {
  max-height: 400px;
}

@media (min-width: 992px) {
  .global-search-modal .global-search-content {
    max-height: calc(100vh - 64px);
    max-height: calc(100dvh - 64px);
  }

  .global-search-body {
    display: flex;
    flex-direction: column;
    min-height: 0;
  }

  .global-search-field {
    flex: 0 0 auto;
  }

  .global-search-results {
    flex: 1 1 auto;
    min-height: 0;
    max-height: none;
    overscroll-behavior-y: contain;
  }
}

.global-search-heading h5 {
  margin: 0;
  font-size: 1.25rem;
}

.global-search-heading h5 svg {
  width: 22px;
  height: 22px;
  stroke-width: 2.5;
}

.global-search-heading p {
  margin: 4px 0 0;
  color: #7b8496;
  font-size: .78rem;
  font-weight: 500;
}

.global-search-heading {
  min-width: 0;
}

.global-search-close {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  margin: -4px -4px 0 12px;
  padding: 0 12px;
  gap: 6px;
  border: 0;
  border-radius: 999px;
  background: #f1f2f6;
  color: #4f46e5;
  font-size: .78rem;
  font-weight: 750;
  line-height: 1;
}

.global-search-close:hover,
.global-search-close:focus-visible {
  background: #e8e7f8;
  color: #3730a3;
}

.global-search-close:focus-visible {
  outline: 3px solid rgba(99, 102, 241, .22);
  outline-offset: 2px;
}

.global-search-close svg {
  width: 17px;
  height: 17px;
}

.global-search-field-icon {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 17px;
  display: inline-flex;
  color: #7b8496;
  pointer-events: none;
  transform: translateY(-50%);
}

.global-search-field-icon svg {
  width: 20px;
  height: 20px;
}

.global-search-field .form-control {
  min-height: 54px;
  padding: 12px 50px 12px 48px;
  background: #f8fafc;
  font-size: 1rem;
  font-weight: 600;
  transition: all .2s;
}

.global-search-field .form-control::-webkit-search-cancel-button {
  display: none;
}

.global-search-clear {
  position: absolute;
  z-index: 3;
  top: 50%;
  right: 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: #eceafd;
  color: #5b50db;
  transform: translateY(-50%);
}

.global-search-clear[hidden] {
  display: none;
}

/* Bootstrap poate aplica `display` cu !important la breakpointuri; atributul
   `hidden` trebuie să rămână autoritar după ultimul lot pe orice dispozitiv. */
.listing-loadmore-wrap[hidden] {
  display: none !important;
}

.global-search-clear svg {
  width: 17px;
  height: 17px;
}

.search-group-title {
  justify-content: flex-start;
}

.search-group-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 21px;
  height: 21px;
  margin-left: auto;
  padding: 0 6px;
  border-radius: 999px;
  background: rgba(99, 102, 241, .12);
  color: #4f46e5;
  font-size: .66rem;
  letter-spacing: 0;
}

.search-group-map-button {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 30px;
  padding: 5px 10px;
  border: 1px solid rgba(99, 102, 241, .24);
  border-radius: 999px;
  background: #fff;
  color: #4f46e5;
  font: inherit;
  font-size: .66rem;
  font-weight: 780;
  line-height: 1;
  cursor: pointer;
}

.search-group-map-button:hover,
.search-group-map-button:focus-visible {
  border-color: rgba(79, 70, 229, .42);
  background: #efefff;
  color: #3730a3;
}

.search-group-map-button:focus-visible {
  outline: 2px solid rgba(99, 102, 241, .28);
  outline-offset: 2px;
}

.search-group-map-button svg {
  width: 14px;
  height: 14px;
}

.global-search-result-card {
  align-items: flex-start;
  gap: 12px;
  min-height: 80px;
  margin-bottom: 5px;
  padding: 10px;
  border-color: #e9e7ef;
  background: #fff;
}

.global-search-result-card:hover {
  border-color: rgba(99, 102, 241, .2);
  background: #f8f8fe;
  transform: translateY(-1px);
}

.global-search-result-media {
  position: relative;
  display: block;
  flex: 0 0 58px;
  width: 58px;
  height: 58px;
  overflow: hidden;
  border-radius: 12px;
  background: #f0eff7;
}

.global-search-result-media > img,
.global-search-result-placeholder {
  width: 100%;
  height: 100%;
}

.global-search-result-media > img {
  display: block;
  object-fit: cover;
}

.global-search-result-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #eeecff, #f8eefa);
  color: #6659df;
}

.global-search-result-placeholder svg {
  width: 23px;
  height: 23px;
}

.global-search-result-copy {
  flex: 1 1 auto;
  padding-top: 1px;
}

.global-search-result-eyebrow {
  display: flex;
  align-items: center;
  gap: 4px;
  overflow: hidden;
  color: #6557d8;
  font-size: .62rem;
  font-weight: 780;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.global-search-result-eyebrow svg {
  flex: 0 0 auto;
  width: 12px;
  height: 12px;
  stroke-width: 2.3;
}

.global-search-result-card .search-result-title {
  margin-top: 3px;
  font-size: .86rem;
  line-height: 1.2;
}

.global-search-result-card .search-result-meta {
  margin-top: 3px;
  font-size: .68rem;
  line-height: 1.3;
}

.global-search-result-signals {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 5px;
}

.global-search-result-signal {
  display: inline-flex;
  align-items: center;
  min-height: 18px;
  padding: 2px 6px;
  border-radius: 999px;
  background: #f1f2f6;
  color: #666071;
  font-size: .56rem;
  font-weight: 760;
  line-height: 1;
}

.global-search-result-signal.is-open,
.global-search-result-signal.is-live {
  background: #e8f8ef;
  color: #087443;
}

.global-search-result-signal.is-closed {
  background: #fff1eb;
  color: #bd4b20;
}

.global-search-result-signal.is-rating {
  background: #fff8df;
  color: #9a6404;
}

.global-search-result-signal.is-code {
  background: #f0ecff;
  color: #5b43c4;
}

.global-search-result-signal.is-promoted {
  background: #fff0f6;
  color: #b42365;
}

.global-search-view-all {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 100%;
  min-height: 38px;
  margin-top: 3px;
  padding: 7px 12px;
  border: 1px solid rgba(99, 102, 241, .18);
  border-radius: 11px;
  background: #f7f7ff;
  color: #5147c9;
  font-size: .67rem;
  font-weight: 780;
  cursor: pointer;
}

.global-search-view-all:hover,
.global-search-view-all:focus-visible {
  border-color: rgba(79, 70, 229, .35);
  background: #eeedff;
  color: #3730a3;
}

.global-search-view-all svg {
  width: 14px;
  height: 14px;
}

.global-search-results.is-category-mode {
  scroll-behavior: smooth;
}

.global-search-category-view {
  display: flex;
  min-height: 360px;
  flex-direction: column;
}

.global-search-category-toolbar {
  position: sticky;
  z-index: 4;
  top: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  min-height: 58px;
  margin-bottom: 8px;
  padding: 8px 2px;
  border-bottom: 1px solid #e9e7ef;
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.global-search-category-back,
.global-search-category-map {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 38px;
  padding: 7px 10px;
  border: 0;
  border-radius: 12px;
  background: #efeff8;
  color: #4f46e5;
  font: inherit;
  font-size: .68rem;
  font-weight: 770;
  cursor: pointer;
}

.global-search-category-map {
  border: 1px solid rgba(99,102,241,.22);
  background: #fff;
}

.global-search-category-back:hover,
.global-search-category-back:focus-visible,
.global-search-category-map:hover,
.global-search-category-map:focus-visible {
  background: #e6e4fb;
  color: #3730a3;
}

.global-search-category-back svg,
.global-search-category-map svg {
  width: 15px;
  height: 15px;
}

.global-search-category-heading {
  display: flex;
  min-width: 0;
  flex-direction: column;
  line-height: 1.18;
}

.global-search-category-heading > span {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
}

.global-search-category-heading svg {
  flex: 0 0 auto;
  width: 15px;
  height: 15px;
  color: #6758dc;
}

.global-search-category-heading strong {
  overflow: hidden;
  color: #242036;
  font-size: .82rem;
  font-weight: 820;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.global-search-category-heading small {
  margin-top: 3px;
  color: #7b7489;
  font-size: .62rem;
  font-weight: 650;
}

.global-search-category-list {
  display: flex;
  flex-direction: column;
}

.global-search-category-loading,
.global-search-category-empty {
  display: flex;
  min-height: 210px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #777083;
  font-size: .72rem;
  font-weight: 680;
  text-align: center;
}

.global-search-category-loading .spinner-border {
  width: 20px;
  height: 20px;
  color: #6257df;
}

.global-search-category-empty.is-error {
  color: #b53a4b;
}

.global-search-category-empty svg {
  width: 18px;
  height: 18px;
}

.global-search-category-loadmore-wrap {
  padding: 8px 0 3px;
}

.global-search-category-loadmore-wrap[hidden] {
  display: none !important;
}

.global-search-category-loadmore {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 100%;
  min-height: 42px;
  padding: 8px 14px;
  border: 1px solid rgba(99,102,241,.24);
  border-radius: 12px;
  background: #f5f4ff;
  color: #4f46e5;
  font-size: .7rem;
  font-weight: 800;
  cursor: pointer;
}

.global-search-category-loadmore:hover,
.global-search-category-loadmore:focus-visible {
  background: #eae8ff;
  color: #3730a3;
}

.global-search-category-loadmore:disabled {
  cursor: wait;
  opacity: .68;
}

.global-search-category-loadmore svg {
  width: 15px;
  height: 15px;
}

.global-search-results.is-map-mode {
  overflow: hidden !important;
}

.global-search-map-view {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 400px;
  min-height: 320px;
  overflow: hidden;
  border: 1px solid #e2e1ea;
  border-radius: 16px;
  background: #f4f5f8;
}

.global-search-map-toolbar {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) 38px;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  padding: 8px 10px;
  border-bottom: 1px solid #e6e4ed;
  background: rgba(255,255,255,.98);
}

.global-search-map-back,
.global-search-map-reset {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: #efeff8;
  color: #4f46e5;
  font: inherit;
  cursor: pointer;
}

.global-search-map-back {
  gap: 5px;
  min-height: 38px;
  padding: 7px 10px;
  border-radius: 12px;
  font-size: .7rem;
  font-weight: 760;
}

.global-search-map-reset {
  width: 38px;
  height: 38px;
  padding: 0;
  border-radius: 12px;
}

.global-search-map-back:hover,
.global-search-map-back:focus-visible,
.global-search-map-reset:hover,
.global-search-map-reset:focus-visible {
  background: #e3e2f7;
  color: #3730a3;
}

.global-search-map-back svg,
.global-search-map-reset svg {
  width: 16px;
  height: 16px;
}

.global-search-map-heading {
  display: flex;
  min-width: 0;
  flex-direction: column;
  line-height: 1.18;
}

.global-search-map-heading strong {
  overflow: hidden;
  color: #242036;
  font-size: .82rem;
  font-weight: 820;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.global-search-map-heading small {
  margin-top: 3px;
  color: #7b7489;
  font-size: .65rem;
  font-weight: 620;
}

.global-search-map-stage {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}

.global-search-map-canvas {
  position: absolute;
  inset: 0;
  background: #edf1f4;
}

.global-search-map-loading {
  position: absolute;
  z-index: 1000;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  background: rgba(248,250,252,.88);
  color: #5f5870;
  font-size: .74rem;
  font-weight: 700;
}

.global-search-map-loading .spinner-border {
  width: 20px;
  height: 20px;
  color: #6366f1;
}

.global-search-map-marker-wrap {
  border: 0 !important;
  background: transparent !important;
}

.global-search-map-marker {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 2px solid #fff;
  border-radius: 50% 50% 50% 0;
  background: linear-gradient(135deg, var(--search-map-pin-a), var(--search-map-pin-b));
  color: #fff;
  box-shadow: -2px 4px 11px rgba(31, 25, 65, .32);
  transform: rotate(-45deg);
}

.global-search-map-marker svg {
  width: 17px;
  height: 17px;
  stroke-width: 2.4;
  transform: rotate(45deg);
}

.global-search-map-cluster {
  border: 0 !important;
  border-radius: 50%;
  background: transparent !important;
}

.global-search-map-cluster > span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  border: 3px solid rgba(255,255,255,.96);
  border-radius: 50%;
  background: linear-gradient(135deg, #6558ee, #db2777);
  color: #fff;
  box-shadow: 0 7px 18px rgba(64, 46, 130, .28);
  font-size: .72rem;
  font-weight: 850;
}

.global-search-map-preview {
  position: absolute;
  z-index: 1001;
  bottom: 12px;
  left: 12px;
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 10px;
  width: min(390px, calc(100% - 24px));
  padding: 9px;
  border: 1px solid rgba(220,223,235,.94);
  border-radius: 16px;
  background: rgba(255,255,255,.97);
  color: #211d36;
  box-shadow: 0 12px 30px rgba(31,25,65,.2);
}

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

.global-search-map-preview > img {
  width: 72px;
  height: 72px;
  border-radius: 11px;
  object-fit: cover;
  background: #edf0f5;
}

.global-search-map-preview-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding-right: 25px;
}

.global-search-map-preview-copy > small {
  overflow: hidden;
  color: #5b21b6;
  font-size: .62rem;
  font-weight: 760;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.global-search-map-preview-copy > strong {
  overflow: hidden;
  margin-top: 2px;
  color: #17142b;
  font-size: .78rem;
  font-weight: 820;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.global-search-map-preview-detail {
  margin-top: 3px;
  color: #716a80;
  font-size: .61rem;
  font-weight: 680;
}

.global-search-map-preview-detail.is-open { color: #047857; }
.global-search-map-preview-detail.is-closed { color: #c2410c; }
.global-search-map-preview-detail.is-rating { color: #a16207; }

.global-search-map-preview-actions {
  display: flex;
  gap: 6px;
  margin-top: auto;
  padding-top: 5px;
}

.global-search-map-preview-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 26px;
  padding: 4px 9px;
  border: 1px solid rgba(99,102,241,.28);
  border-radius: 999px;
  color: #4f46e5;
  font-size: .61rem;
  font-weight: 760;
  line-height: 1;
  text-decoration: none;
}

.global-search-map-preview-actions a:first-child {
  border-color: transparent;
  background: #5b55e7;
  color: #fff;
}

.global-search-map-preview-actions svg {
  width: 11px;
  height: 11px;
}

.global-search-map-preview-close {
  position: absolute;
  top: 6px;
  right: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 27px;
  height: 27px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #f0f1f5;
  color: #655f70;
}

.global-search-map-preview-close svg {
  width: 14px;
  height: 14px;
}

.global-search-empty,
.global-search-loading,
.global-search-error {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 180px;
  padding: 24px;
  text-align: center;
}

.global-search-empty > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin-bottom: 12px;
  border-radius: 17px;
  background: #f0efff;
  color: #6257df;
}

.global-search-empty svg,
.global-search-error > svg {
  width: 24px;
  height: 24px;
}

.global-search-empty strong,
.global-search-error strong {
  color: #252238;
  font-size: .92rem;
  font-weight: 800;
}

.global-search-empty p,
.global-search-loading p,
.global-search-error p {
  max-width: 280px;
  margin: 5px 0 0;
  color: #7b8496;
  font-size: .75rem;
  line-height: 1.45;
}

.global-search-loading .spinner-border {
  width: 2rem;
  height: 2rem;
  color: #6366f1;
}

.global-search-recovery {
  display: grid;
  gap: 16px;
  overflow-wrap: anywhere;
}
.global-search-recovery .global-search-empty {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 4px 12px;
  min-height: 0;
  padding: 8px;
  text-align: left;
}
.global-search-recovery .global-search-empty > span {
  grid-row: 1 / 3;
  width: 36px;
  height: 36px;
  margin: 0;
  border-radius: 12px;
}
.global-search-recovery .global-search-empty p { max-width: none; margin: 0; }
.search-recovery-suggestions h3 {
  margin: 0 0 10px;
  color: #475569;
  font-size: .85rem;
  font-weight: 700;
}
.search-recovery-suggestion {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 64px;
  padding: 12px;
  margin-top: 8px;
  border: 1px solid #e5e7f0;
  border-radius: 16px;
  color: #4338ca;
  text-decoration: none;
}
.search-recovery-suggestion > span { flex: 1; min-width: 0; }
.search-recovery-suggestion > .search-recovery-logo {
  position: relative;
  display: grid;
  place-items: center;
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  overflow: hidden;
  border: 1px solid #e5e7f0;
  border-radius: 12px;
  background: #f5f3ff;
}
.search-recovery-logo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 3px;
  background: #fff;
}
.search-recovery-suggestion strong { display: block; color: #252238; font-size: .9rem; }
.search-recovery-suggestion small { display: block; margin-top: 3px; color: #64748b; }
.search-recovery-suggestion:hover { background: #f5f3ff; border-color: #c4b5fd; }
.search-recovery-suggestion svg,
.search-recovery-cta svg { flex-shrink: 0; width: 20px; height: 20px; }
.search-recovery-contribute {
  padding: 20px;
  border: 1px solid #e5dfff;
  border-radius: 18px;
  background: #f7f5ff;
}
.search-recovery-contribute > strong { color: #252238; font-size: .9rem; }
.search-recovery-contribute p { margin: 8px 0 16px; color: #596579; font-size: .82rem; line-height: 1.55; }
.search-recovery-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 999px;
  background: #6151db;
  color: #fff;
  font-size: .85rem;
  font-weight: 700;
  text-decoration: none;
}
.search-recovery-cta:hover { background: #5040c4; color: #fff; }
.search-recovery-cta:focus-visible,
.search-recovery-suggestion:focus-visible { outline: 3px solid #8b7ded; outline-offset: 3px; }
@media (max-width: 575.98px) {
  .search-recovery-contribute { padding: 16px; }
  .search-recovery-cta { width: 100%; }
}

.global-search-error {
  color: #dc3545;
}

@media (max-width: 767.98px) {
  .global-search-modal {
    max-width: 100vw;
    padding: 0 !important;
    overflow-x: clip;
  }

  .global-search-modal .global-search-dialog {
    width: 100%;
    max-width: none;
    min-height: 100dvh;
    margin: 0;
  }

  .global-search-modal .global-search-content {
    height: 100dvh;
    min-height: 0;
    overflow: hidden;
    border: 0 !important;
    border-radius: 0 !important;
    background: #f6f7fb;
    box-shadow: none !important;
  }

  .global-search-header {
    position: sticky;
    z-index: 5;
    top: 0;
    padding: calc(15px + env(safe-area-inset-top)) 14px 12px !important;
    background: rgba(255,255,255,.96);
    border-bottom: 1px solid #e9e7ef !important;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
  }

  .global-search-heading h5 {
    font-size: 1.08rem;
  }

  .global-search-heading h5 svg {
    width: 19px;
    height: 19px;
  }

  .global-search-heading p {
    margin-top: 2px;
    font-size: .68rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .global-search-close {
    margin: -2px -2px 0 8px;
    padding: 0 10px;
    font-size: .75rem;
  }

  .global-search-body {
    display: flex;
    min-height: 0;
    flex: 1 1 auto;
    flex-direction: column;
    padding: 12px !important;
  }

  .global-search-field {
    flex: 0 0 auto;
    margin-bottom: 8px !important;
  }

  .global-search-field .form-control {
    min-height: 52px;
    border: 1px solid #e1deea !important;
    border-radius: 16px !important;
    background: #fff;
    font-size: 1rem;
    box-shadow: 0 6px 20px rgba(39, 34, 63, .06) !important;
  }

  .global-search-results {
    min-height: 0;
    flex: 1 1 auto;
    max-height: none !important;
    padding-bottom: calc(18px + env(safe-area-inset-bottom));
    overflow-y: auto;
  }

  .search-results-list {
    gap: 4px;
  }

  .search-group-wrapper {
    margin-top: 10px;
  }

  .search-group-title {
    margin-bottom: 6px;
    padding: 7px 9px;
    border-radius: 9px;
    background: transparent;
    font-size: .65rem;
  }

  .search-group-map-button {
    min-height: 32px;
    padding-inline: 10px;
  }

  .global-search-map-view {
    height: calc(100dvh - 184px);
    min-height: 360px;
    border: 0;
    border-radius: 14px;
  }

  .global-search-map-toolbar {
    min-height: 56px;
    padding-inline: 8px;
  }

  .global-search-map-preview {
    right: 10px;
    bottom: 10px;
    left: 10px;
    width: auto;
  }

  .search-result-item {
    gap: 10px;
    min-height: 62px;
    padding: 9px 10px;
    border-color: #e8e5ef;
    border-radius: 14px;
    background: #fff;
  }

  .search-result-item:hover {
    transform: none;
  }

  .search-result-title {
    font-size: .82rem;
  }

  .search-result-meta {
    margin-top: 2px;
    font-size: .68rem;
  }

  .search-result-item .lucide-chevron-right {
    display: none;
  }

  .global-search-result-card {
    min-height: 78px;
    margin-bottom: 6px;
    padding: 9px;
  }

  .global-search-result-media {
    flex-basis: 56px;
    width: 56px;
    height: 56px;
  }

  .global-search-result-card .search-result-title {
    display: -webkit-box;
    overflow: hidden;
    font-size: .82rem;
    line-height: 1.18;
    white-space: normal;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .global-search-result-card .search-result-meta {
    display: -webkit-box;
    overflow: hidden;
    font-size: .66rem;
    line-height: 1.25;
    white-space: normal;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .global-search-view-all {
    min-height: 42px;
    border-radius: 13px;
    font-size: .69rem;
  }

  .global-search-category-view {
    min-height: calc(100dvh - 184px);
  }

  .global-search-category-toolbar {
    top: 0;
    margin: 0 0 8px;
    padding: 7px 0;
    background: rgba(246,247,251,.97);
  }

  .global-search-category-back,
  .global-search-category-map {
    min-height: 40px;
    padding-inline: 9px;
  }

  .global-search-category-list .global-search-result-card {
    margin-bottom: 7px;
  }

  .global-search-category-loadmore {
    min-height: 46px;
    border-radius: 14px;
    font-size: .72rem;
  }

  .global-search-empty,
  .global-search-loading,
  .global-search-error {
    min-height: 46vh;
  }
}

/* Prevenire scroll orizontal accidental pe tot site-ul */
html, body {
  max-width: 100%;
  /* `hidden` transformă rădăcina într-un scroll container și dezactivează
     elementele sticky din paginile lungi. `clip` păstrează protecția
     orizontală fără să rupă poziționarea sticky. */
  overflow-x: clip;
}

/* Hero Large Title cu gradient luminos pe fundal închis */
.hero-large-title {
  font-size: 2.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, #ffffff 0%, #f472b6 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
  text-shadow: 0 4px 15px rgba(15, 23, 42, 0.45);
  letter-spacing: -0.5px;
  line-height: 1.3;
}

@media (max-width: 768px) {
  .hero-large-title {
    font-size: 1.8rem;
  }
}

/* Hot Tags in Hero */
.hero-tags {
  margin-top: 15px;
}

.hero-tag-badge {
  font-size: 0.85rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9) !important;
  background-color: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  padding: 6px 14px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  display: inline-block;
}

.hero-tag-badge:hover {
  background-color: #ffffff !important;
  color: #1e1b4b !important;
  border-color: #ffffff !important;
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 10px 25px -5px rgba(255, 255, 255, 0.3);
}



/* Split Layout for Places (Unde Iesim?) and Events */
.places-split-layout {
  display: block;
}

/* Coloanele de hartă/calendar sunt ascunse în mod implicit;
   regulile specifice din media queries și clasele dinamice le afișează */
.map-column, .calendar-column {
  display: none;
}

/* Contract comun pentru paginile desktop cu rail sticky și scroll propriu.
   Valoarea este măsurată din conținutul real al railului, nu duplicată în CSS. */
@media (min-width: 992px) {
  [data-desktop-rail-layout] {
    min-height: var(--desktop-rail-content-height, 0px);
  }

  [data-desktop-scroll-rail] {
    box-sizing: border-box;
    padding: 12px 4px 24px 0;
  }
}

@media (min-width: 1024px) {
  .places-split-layout.split-active.places-split {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 24px;
    align-items: start;
  }

  .places-split-layout.split-active.events-split {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
    align-items: start;
  }
  
  .places-split-layout.split-active.places-split .map-column {
    display: block !important; /* Afișat doar pe desktop */
    position: sticky;
    top: 140px;
    height: calc(100vh - 170px);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    border: 1px solid rgba(226, 232, 240, 0.8);
    z-index: 10;
  }

  .places-split-layout.split-active.events-split .calendar-column {
    display: flex !important; /* Afișat doar pe desktop */
    flex-direction: column;
    gap: 20px;
    position: sticky;
    top: 140px;
    align-self: start;
    z-index: 10;
  }

  .mini-calendar-widget {
    border-radius: 18px;
    background: #ffffff;
    padding: 22px;
    box-shadow: var(--card-shadow);
    border: 1px solid rgba(226, 232, 240, 0.8);
  }

  .b2b-organizer-card {
    border-radius: 18px;
    background: #ffffff;
    padding: 22px;
    box-shadow: var(--card-shadow);
    border: 1px solid rgba(226, 232, 240, 0.8);
    display: flex;
    flex-direction: column;
    gap: 12px;
    text-align: left;
  }

  .b2b-organizer-card h4 {
    font-size: 1.1rem;
    font-weight: 800;
    color: #1e293b;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .b2b-organizer-card p {
    font-size: 0.88rem;
    color: #64748b;
    line-height: 1.5;
    margin: 0;
  }
  
  /* Când split-screen-ul e activ, cardurile ocupă 2 coloane în loc de 3 pe desktop */
  .places-split-layout.split-active #events-container > .col-lg-4 {
    width: 50% !important;
  }
}

/* Grila de 7 zile pentru Calendar */
.grid-7 {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px 4px;
}

.calendar-header h3 {
  font-size: 0.95rem;
  color: #0f172a;
  letter-spacing: -0.2px;
}

.calendar-weekdays {
  color: #94a3b8;
  font-size: 0.7rem;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

.calendar-days-grid {
  gap: 8px 4px;
}

.calendar-day-cell {
  position: relative;
  height: 36px;
  width: 36px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  font-weight: 600;
  color: #475569;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.2s ease;
}

.calendar-day-cell:hover:not(.empty-cell):not(.selected-day) {
  background-color: #f1f5f9;
  color: #0f172a;
}

.calendar-day-cell.selected-day {
  background-color: #4338ca !important;
  color: #ffffff !important;
  box-shadow: 0 4px 10px rgba(67, 56, 202, 0.3);
}

.calendar-day-cell.today {
  border: 1px solid #6366f1;
  color: #6366f1;
}

.calendar-day-cell.has-events {
  border: 2px solid rgba(239, 68, 68, 0.4) !important;
  font-weight: 700;
}

.calendar-day-cell.has-events:hover:not(.selected-day) {
  border-color: rgba(239, 68, 68, 0.8) !important;
}

.calendar-day-cell.has-events::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  background-color: #ef4444;
  border-radius: 50%;
}

.calendar-day-cell.selected-day.has-events {
  border-color: transparent !important;
}

.calendar-day-cell.selected-day.has-events::after {
  background-color: #ffffff;
}

.calendar-day-cell.is-disabled,
.calendar-day-cell.is-disabled:hover {
  border-color: transparent !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #cbd5e1 !important;
  cursor: default;
  opacity: 1;
  transform: none !important;
}

.calendar-day-cell.is-disabled::after {
  display: none;
}

.empty-cell {
  cursor: default;
  pointer-events: none;
}

#places-map {
  width: 100%;
  height: 100%;
}

/* Styling pinuri hărți categorii locații (Google Maps Pin cu vârf precis) */
.custom-place-map-pin-wrapper {
  background: transparent !important;
  border: none !important;
}

.custom-place-map-pin-box {
  position: relative;
  width: 36px;
  height: 44px;
  display: flex;
  justify-content: center;
  cursor: pointer;
}

.custom-place-map-pin {
  position: absolute;
  top: 0;
  left: 0;
  width: 36px;
  height: 36px;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: -2px 3px 10px rgba(0, 0, 0, 0.35);
  border: 2px solid #ffffff;
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.2s ease;
}

.custom-place-map-pin-box:hover .custom-place-map-pin {
  transform: translateY(-4px) rotate(-45deg) scale(1.12);
  box-shadow: -3px 6px 16px rgba(0, 0, 0, 0.45);
  z-index: 9999 !important;
}

.custom-place-map-pin-inner {
  transform: rotate(45deg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
}

.custom-place-map-pin-inner i,
.custom-place-map-pin-inner svg {
  width: 17px;
  height: 17px;
  stroke-width: 2.2px;
  color: #ffffff !important;
  stroke: #ffffff !important;
}

.custom-place-map-pin-shadow {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 10px;
  height: 4px;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 50%;
  filter: blur(1px);
  pointer-events: none;
}

/* Premium Scale Up & Hover Shadow */
.event-card, .place-card, .promo-card {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.event-card:hover, .place-card:hover, .promo-card:hover {
  transform: translateY(-6px) !important;
  box-shadow: 0 20px 25px -5px rgba(99, 102, 241, 0.15), 0 10px 10px -6px rgba(99, 102, 241, 0.1) !important;
}

/* Hover-Scale specific pentru butonul Surprinde-mă */
.hover-scale-up {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.hover-scale-up:hover {
  transform: scale(1.05) translateY(-2px);
  box-shadow: 0 12px 20px rgba(99, 102, 241, 0.3) !important;
}

/* "Inspiră-mă" button: white background, purple border/text, icon + label
   always visible, min. 44px touch target at every breakpoint. (S1-06) */
#btn-dice-randomizer {
  width: auto !important;
  min-width: var(--touch-target-min, 44px) !important;
  min-height: var(--touch-target-min, 44px) !important;
  padding: 0 16px !important;
  border-radius: 50rem !important;
  background-color: #ffffff !important;
  border: 1.5px solid var(--primary-color, #6366f1) !important;
  color: var(--primary-color, #6366f1) !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

#btn-dice-randomizer .lucide,
#btn-dice-randomizer span {
  color: var(--primary-color, #6366f1) !important;
  stroke: var(--primary-color, #6366f1) !important;
}

#btn-dice-randomizer:hover {
  background-color: rgba(99, 102, 241, 0.08) !important;
  border-color: var(--primary-hover, #4f46e5) !important;
}

#btn-dice-randomizer:focus-visible,
#btn-dice-randomizer:focus,
#btn-dice-randomizer:active {
  background-color: #ffffff !important;
  border-color: var(--primary-hover, #4f46e5) !important;
  color: var(--primary-color, #6366f1) !important;
  outline: none !important;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.35) !important;
}

#btn-dice-randomizer:hover .lucide,
#btn-dice-randomizer:hover span {
  color: var(--primary-hover, #4f46e5) !important;
  stroke: var(--primary-hover, #4f46e5) !important;
}

#btn-dice-randomizer:focus .lucide,
#btn-dice-randomizer:focus span,
#btn-dice-randomizer:active .lucide,
#btn-dice-randomizer:active span {
  color: var(--primary-color, #6366f1) !important;
  stroke: var(--primary-color, #6366f1) !important;
}

/* Sub 576px: butonul Inspiră-mă devine doar iconul într-un cerc, la fel ca
   butonul de căutare (44px în style.css), ca să nu îngrămădească bara. */
@media (max-width: 575.98px) {
  #btn-dice-randomizer {
    width: 44px !important;
    height: 44px !important;
    padding: 0 !important;
    border-radius: 50% !important;
  }
  #btn-dice-randomizer span {
    display: none !important;
  }
}


/* Event Detail Page Redesign (Spotify/Apple Music style) */
.event-hero-wrapper {
  position: relative;
  overflow: hidden;
  background-color: #0b0f19;
  padding: 110px 0 35px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Navbar button contrasts on dark detail hero */
.navbar-glass:not(.scrolled) .btn-outline-secondary {
  color: rgba(255, 255, 255, 0.9) !important;
  border-color: rgba(255, 255, 255, 0.3) !important;
}

.navbar-glass:not(.scrolled) .btn-outline-secondary:hover {
  background-color: rgba(255, 255, 255, 0.1) !important;
  border-color: rgba(255, 255, 255, 0.6) !important;
}

.navbar-glass:not(.scrolled) .btn-warning {
  background-color: #f59e0b !important;
  border-color: #d97706 !important;
  color: #1e293b !important;
}

.event-hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transform: scale(1.15) translateZ(0);
  filter: blur(40px) brightness(0.35);
  -webkit-filter: blur(40px) brightness(0.35);
  will-change: transform, filter;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  z-index: 1;
}

.event-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(11, 15, 25, 0.2) 0%, rgba(11, 15, 25, 0.8) 100%);
  z-index: 2;
}

.event-hero-content {
  position: relative;
  z-index: 3;
}

.event-hero-poster {
  border-radius: 20px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.15);
  width: 100%;
  max-width: 320px;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.event-hero-poster:hover {
  transform: scale(1.02);
}

/* Text Shadow inside Hero */
.text-shadow {
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

/* Social buttons in detail page */
.social-circle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: #ffffff !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.social-circle-btn svg {
  width: 20px;
  height: 20px;
}

.social-circle-btn.facebook {
  background-color: #1877f2 !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
}
.social-circle-btn.facebook svg {
  fill: #ffffff !important;
}

.social-circle-btn.instagram {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
}
.social-circle-btn.instagram svg {
  fill: #ffffff !important;
}

.social-circle-btn.tiktok {
  background-color: #000000 !important;
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4), inset 0 0 4px rgba(255,255,255,0.2);
}
.social-circle-btn.tiktok svg {
  fill: #ffffff !important;
  /* Stylish cyan and red TikTok 3D effect glow shadow */
  filter: drop-shadow(-2px -1px 0px #25F4EE) drop-shadow(2px 1px 0px #FE2C55);
}

.social-circle-btn.youtube {
  background-color: #FF0000 !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  box-shadow: 0 4px 12px rgba(255, 0, 0, 0.3);
}
.social-circle-btn.youtube svg {
  fill: #ffffff !important;
}
.social-circle-btn.youtube:hover {
  box-shadow: 0 8px 20px rgba(255, 0, 0, 0.5);
}

.social-circle-btn.website {
  background-color: #ffffff !important;
  border: 1px solid rgba(0, 0, 0, 0.1) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.social-circle-btn.website:hover {
  background-color: #f8fafc !important;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}
.social-circle-btn.website i,
.social-circle-btn.website svg {
  color: #000000 !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.social-circle-btn:hover {
  transform: translateY(-4px) scale(1.08);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.45);
}

/* Buy tickets button styling */
.btn-buy-tickets {
  background: linear-gradient(135deg, #ec4899, #8b5cf6) !important;
  border: none !important;
  color: #ffffff !important;
  box-shadow: 0 10px 25px -5px rgba(236, 72, 153, 0.4) !important;
  transition: all 0.3s ease !important;
}

.btn-buy-tickets:hover {
  opacity: 0.95;
  transform: translateY(-1px);
  box-shadow: 0 15px 30px -5px rgba(236, 72, 153, 0.5) !important;
}



/* Past event state style */
.past-event-banner {
  background-color: rgba(239, 68, 68, 0.2);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #fca5a5;
  font-size: 0.9rem;
}

/* Force high contrast white for event details hero text */
.event-hero-content h1,
.event-hero-content .lead,
.event-hero-content p {
  color: #ffffff !important;
}

/* Event & place description text formatting */
.event-description,
.detail-description,
.editor-content,
#preview-description {
  white-space: normal;
}

.event-description p,
.detail-description p,
.editor-content p {
  margin-bottom: 0.55rem;
  line-height: 1.6;
}

.event-description p:first-child,
.detail-description p:first-child,
.editor-content p:first-child {
  margin-top: 0;
}

.event-description p:last-child,
.detail-description p:last-child,
.editor-content p:last-child {
  margin-bottom: 0;
}

/* Clickable Zoom Modal */
.zoom-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.zoom-modal.active {
  display: flex;
}
body.zoom-open {
  overflow: hidden;
}
.zoom-modal-content {
  max-width: 90%;
  max-height: 90vh;
  object-fit: contain;
  touch-action: none;
  user-select: none;
  -webkit-user-drag: none;
  border-radius: 12px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  transform: scale(0.95);
  transition: transform 0.3s ease;
}
.zoom-modal.active .zoom-modal-content {
  transform: var(--lightbox-transform, scale(1));
}
.zoom-modal.zoom-modal--magnified .zoom-modal-content {
  cursor: grab;
}
.zoom-modal.zoom-modal--magnified.zoom-modal--interacting .zoom-modal-content {
  cursor: grabbing;
  transition: none;
}
.zoom-transform-controls {
  position: absolute;
  bottom: max(20px, env(safe-area-inset-bottom));
  left: 50%;
  z-index: 10003;
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.66);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.3);
  transform: translateX(-50%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.zoom-transform-controls button {
  display: inline-grid;
  width: 44px;
  height: 44px;
  place-items: center;
  padding: 0;
  border: 0;
  color: #fff;
  background: transparent;
  font: inherit;
  font-size: 1.35rem;
  font-weight: 760;
  line-height: 1;
  cursor: pointer;
}
.zoom-transform-controls button + button {
  border-left: 1px solid rgba(255, 255, 255, 0.15);
}
.zoom-transform-controls .zoom-transform-reset {
  width: 60px;
  font-size: 0.72rem;
}
.zoom-transform-controls button:hover,
.zoom-transform-controls button:focus-visible {
  background: rgba(255, 255, 255, 0.16);
  outline: none;
}
.zoom-transform-controls button:focus-visible {
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.9);
}
.zoom-transform-controls button:disabled {
  opacity: 0.38;
  cursor: default;
}
.zoom-counter {
  position: absolute;
  top: 24px;
  left: 50%;
  z-index: 10002;
  transform: translateX(-50%);
  padding: 6px 11px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.58);
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.clickable-zoom {
  cursor: zoom-in;
}

/* Contact buttons */
.btn-contact-msg {
  background: #eef2ff !important;
  color: #4f46e5 !important;
  border: 1px solid #c7d2fe !important;
  font-weight: 700 !important;
  border-radius: 50px !important;
  padding: 10px 16px !important;
  transition: all 0.2s ease;
}
.btn-contact-msg:hover {
  background: #4f46e5 !important;
  color: white !important;
  border-color: #4f46e5 !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.2);
}

.btn-contact-call {
  background: #ecfdf5 !important;
  color: #059669 !important;
  border: 1px solid #a7f3d0 !important;
  font-weight: 700 !important;
  border-radius: 50px !important;
  padding: 10px 16px !important;
  transition: all 0.2s ease;
}
.btn-contact-call:hover {
  background: #059669 !important;
  color: white !important;
  border-color: #059669 !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(5, 150, 105, 0.2);
}

.btn-contact-wa {
  background: #eafaf1 !important;
  color: #25d366 !important;
  border: 1px solid #c3f2d2 !important;
  font-weight: 700 !important;
  border-radius: 50px !important;
  padding: 10px 16px !important;
  transition: all 0.2s ease;
}
.btn-contact-wa:hover {
  background: #25d366 !important;
  color: white !important;
  border-color: #25d366 !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.2);
}

/* =====================================================
   Navigație Locație — Butoane Google Maps & Waze
   ===================================================== */
.nav-btn-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}


.nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 8px;
  border-radius: 12px;
  border: 1.5px solid #e2e8f0;
  background: #ffffff;
  color: #374151;
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
  text-align: center;
  min-height: 76px;
}

.nav-btn img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  transition: transform 0.2s ease;
}

.nav-btn:hover img {
  transform: scale(1.1);
}

.nav-btn:hover {
  transform: translateY(-2px);
  text-decoration: none;
}

.nav-btn-gmaps {
  border-color: #a8c7fa;
  background: #e8f0fe;
  color: #1a73e8;
}

.nav-btn-gmaps:hover {
  background: #1a73e8 !important;
  border-color: #1a73e8 !important;
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(26,115,232,0.3) !important;
}

.nav-btn-gmaps:hover img {
  filter: brightness(0) invert(1);
}

.nav-btn-waze {
  border-color: #a8e5fa;
  background: #e3faff;
  color: #00b0ff;
}

.nav-btn-waze:hover {
  background: #00b0ff !important;
  border-color: #00b0ff !important;
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(0, 176, 255, 0.3) !important;
}

.nav-btn-waze:hover img {
  filter: brightness(0) invert(1);
}

/* =====================================================
   Participate Button Styling (Header & Sidebar)
   ===================================================== */
/* Custom class for hero button (dark mode backdrop-filter) */
.hero-btn-participate {
  background:
    var(--participate-surface) padding-box,
    var(--participate-border) border-box !important;
  color: var(--participate-text) !important;
  border: 1.5px solid transparent !important;
  box-shadow: var(--participate-shadow);
  backdrop-filter: blur(8px);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-btn-participate:hover {
  background:
    var(--participate-surface-hover) padding-box,
    var(--participate-border-hover) border-box !important;
  color: var(--participate-text) !important;
}

.hero-btn-participate.active {
  background:
    var(--participate-active-surface) padding-box,
    var(--participate-active-border) border-box !important;
  color: var(--participate-active-text) !important;
  border-color: transparent !important;
  box-shadow: var(--participate-active-shadow);
}

.hero-btn-participate:not(.active) .lucide {
  fill: none !important;
}

.hero-btn-participate.active .lucide {
  color: currentColor;
  fill: currentColor !important;
}

/* Sidebar participate button inactive state */
.btn-participation-primary {
  background:
    var(--participate-surface) padding-box,
    var(--participate-border) border-box !important;
  border: 1.5px solid transparent !important;
  color: var(--participate-text) !important;
  box-shadow: var(--participate-shadow) !important;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.btn-participation-primary:hover {
  background:
    var(--participate-surface-hover) padding-box,
    var(--participate-border-hover) border-box !important;
  transform: translateY(-2px);
  box-shadow: 0 5px 12px rgba(190, 24, 93, 0.08) !important;
}

.btn-participation-primary #detail-participation-count {
  background-color: rgba(239, 68, 68, 0.08) !important;
  color: #ef4444 !important;
  border: 1px solid rgba(239, 68, 68, 0.15) !important;
}

/* Sidebar participate button active state */
.btn-participation-active {
  background:
    var(--participate-active-surface) padding-box,
    var(--participate-active-border) border-box !important;
  color: var(--participate-active-text) !important;
  border: 1.5px solid transparent !important;
  box-shadow: var(--participate-active-shadow) !important;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.btn-participation-active:hover {
  background:
    linear-gradient(135deg, #ffe9ee, #fbdbea) padding-box,
    var(--participate-active-border) border-box !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(190, 24, 93, 0.16) !important;
}

.btn-participation-active .lucide {
  color: currentColor;
  fill: currentColor !important;
}

.btn-participation-active #detail-participation-count {
  background-color: #ef4444 !important;
  color: #ffffff !important;
  border: 1px solid transparent !important;
}

/* Nav-icon buttons on event card actions (Google Maps & Waze) */
.btn-nav-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  flex-shrink: 0;
}

.btn-nav-icon img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.btn-nav-icon:hover {
  transform: translateY(-2px);
}

.btn-nav-icon:hover img {
  transform: scale(1.05);
  filter: brightness(0) invert(1);
}

.btn-nav-gmaps {
  background: #e8f0fe;
  border: 1.5px solid #a8c7fa;
}

.btn-nav-gmaps:hover {
  background: #1a73e8 !important;
  border-color: #1a73e8 !important;
  box-shadow: 0 4px 10px rgba(26, 115, 232, 0.3) !important;
}

.btn-nav-waze {
  background: #e3faff;
  border: 1.5px solid #a8e5fa;
}

.btn-nav-waze:hover {
  background: #00b0ff !important;
  border-color: #00b0ff !important;
  box-shadow: 0 4px 10px rgba(0, 176, 255, 0.3) !important;
}

/* =====================================================
   Place Detail Page Redesign (Spotify/Apple Music style)
   ===================================================== */
.place-hero-wrapper {
  position: relative;
  overflow: hidden;
  background-color: #0b0f19;
  padding: 110px 0 35px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  min-height: 380px;
  display: flex;
  align-items: flex-end;
}

.place-hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transform: scale(1.15) translateZ(0);
  filter: blur(40px) brightness(0.35);
  -webkit-filter: blur(40px) brightness(0.35);
  will-change: transform, filter;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  z-index: 1;
}

.place-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(11, 15, 25, 0.15) 0%, rgba(11, 15, 25, 0.85) 100%);
  z-index: 2;
}

.place-banner-container {
  width: 100%;
  position: relative;
}

.place-banner-container > img {
  object-position: center center;
}

.place-logo-overlay-wrapper {
  position: absolute;
  bottom: -30px;
  left: 30px;
  z-index: 10;
}

.place-logo-avatar-overlay {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  border: 4px solid #ffffff;
  background-color: #ffffff;
  object-fit: cover;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.place-hero-content {
  position: relative;
  z-index: 5;
  width: 100%;
}

.place-logo-avatar {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  border: 4px solid #ffffff;
  object-fit: cover;
  background: #ffffff;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.place-logo-avatar:hover {
  transform: scale(1.05);
}

/* Custom Tabs styling */
.custom-tabs {
  background: #f8fafc;
  padding: 6px;
  border-radius: 50px;
  border: 1px solid #e2e8f0;
  display: inline-flex;
  gap: 4px;
}

.custom-tabs .nav-link {
  color: #64748b;
  font-weight: 600;
  border-radius: 50px !important;
  padding: 8px 20px !important;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.custom-tabs .nav-link:hover {
  color: #0f172a;
  background-color: #f1f5f9;
}

.custom-tabs .nav-link.active {
  background-color: rgba(99, 102, 241, 0.1) !important;
  color: #4f46e5 !important;
  border-color: rgba(99, 102, 241, 0.2);
  box-shadow: none;
}

/* Zoom Modal integration */
.clickable-zoom {
  cursor: zoom-in;
  transition: opacity 0.2s ease;
}
.clickable-zoom:hover {
  opacity: 0.9;
}

@media (max-width: 768px) {
  .place-hero-wrapper {
    padding: 100px 0 25px 0;
    align-items: center;
  }
  .place-hero-content > div {
    flex-direction: column !important;
    text-align: center !important;
  }
  .place-logo-avatar {
    width: 110px;
    height: 110px;
  }
}

/* Destination sections for smooth scroll */
.scroll-anchor {
  scroll-margin-top: 90px;
}

/* Gallery More Overlay */
.gallery-more-container {
  position: relative;
  width: 100%;
  height: 100%;
}
.gallery-more-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 1.5rem;
  border-radius: inherit;
  pointer-events: none; /* Click passes to the img under it */
  transition: background 0.2s;
  letter-spacing: 0.5px;
}
.gallery-more-container:hover .gallery-more-overlay {
  background: rgba(0, 0, 0, 0.5);
}

/* Zoom Modal Navigation Buttons */
.zoom-prev, .zoom-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.15);
  color: white;
  border: none;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10002;
  transition: all 0.2s;
  user-select: none;
  padding: 0;
  line-height: 1;
}
.zoom-prev:hover, .zoom-next:hover {
  background: rgba(255, 255, 255, 0.3);
  scale: 1.05;
}
.zoom-prev[hidden],
.zoom-next[hidden] {
  display: none;
}
.zoom-prev {
  left: 20px;
}
.zoom-next {
  right: 20px;
}

@media (max-width: 768px) {
  .zoom-modal {
    padding: 12px;
  }
  .zoom-modal-content {
    max-width: 96%;
    max-height: 82vh;
  }
  .zoom-transform-controls {
    bottom: max(14px, env(safe-area-inset-bottom));
  }
  .zoom-prev, .zoom-next {
    width: 45px;
    height: 45px;
    font-size: 2rem;
  }
  .zoom-prev { left: 10px; }
  .zoom-next { right: 10px; }
}

.place-tag-pill {
  color: #4f46e5 !important;
  background-color: rgba(99, 102, 241, 0.08) !important;
  border: 1px solid rgba(99, 102, 241, 0.2) !important;
  transition: all 0.2s ease-in-out;
}
.place-tag-pill:hover {
  background-color: rgba(99, 102, 241, 0.15) !important;
  color: #4338ca !important;
  transform: translateY(-1px);
}
.place-tag-pill.is-static,
.place-tag-pill.is-static:hover {
  cursor: default;
  background-color: rgba(99, 102, 241, 0.08) !important;
  color: #4f46e5 !important;
  transform: none;
}

/* Typed.js title container stability */
.hero-title-container {
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 768px) {
  .hero-title-container {
    min-height: 38px;
  }
}

.typed-cursor {
  color: #f472b6 !important;
  -webkit-text-fill-color: #f472b6 !important;
  font-weight: 300;
  margin-left: 2px;
}

/* Facility Pill active/checked states styling */
.facility-checkbox:checked + .facility-pill {
  background-color: rgba(99, 102, 241, 0.12) !important;
  border-color: #6366f1 !important;
  color: #6366f1 !important;
  box-shadow: 0 2px 6px rgba(99, 102, 241, 0.12);
}
.facility-checkbox:checked + .facility-pill i {
  color: #6366f1 !important;
}
.facility-pill-btn:hover .facility-pill {
  border-color: #a5b4fc !important;
  background-color: #f1f5f9 !important;
}

@media (max-width: 1023px) {
  /* Mod implicit: feed vizibil, hartă/calendar ascunse */
  .places-split-layout .map-column,
  .places-split-layout .calendar-column {
    display: none !important;
  }
  .places-split-layout .feed-column {
    display: block !important;
  }

  /* Mod activ: container simplu block, feed ascuns */
  .places-split-layout.mobile-show-split-item {
    display: block !important;
    grid-template-columns: none !important;
  }
  .places-split-layout.mobile-show-split-item .feed-column {
    display: none !important;
  }

  /* ===== TAB LOCAȚII / SHOPPING: arată DOAR harta, nu și calendarul ===== */
  .places-split-layout.places-split.mobile-show-split-item .map-column {
    display: block !important;
    width: 100% !important;
    height: calc(100vh - 120px) !important;
    position: relative !important;
    top: 0 !important;
    border-radius: 18px !important;
    overflow: hidden !important;
    margin-bottom: 20px !important;
  }
  .places-split-layout.places-split.mobile-show-split-item .calendar-column {
    display: none !important;
  }

  /* ===== TAB EVENIMENTE: arată DOAR calendarul, nu și harta ===== */
  .places-split-layout.events-split.mobile-show-split-item .calendar-column {
    display: block !important;
    width: 100% !important;
    position: relative !important;
    top: 0 !important;
    padding: 0 !important;
  }
  .places-split-layout.events-split.mobile-show-split-item .map-column {
    display: none !important;
  }

  /* Widget calendar ocupă tot spațiul */
  .places-split-layout.events-split.mobile-show-split-item .mini-calendar-widget {
    width: 100% !important;
    border-radius: 18px !important;
    box-sizing: border-box !important;
    padding: 24px !important;
    margin-bottom: 16px !important;
  }

  /* Ascunde cardul B2B "Ești organizator?" pe mobil */
  .places-split-layout.events-split.mobile-show-split-item .b2b-organizer-card {
    display: none !important;
  }

  /* Zile calendare mai mari pentru touch */
  .places-split-layout.events-split.mobile-show-split-item .calendar-day-cell {
    height: 40px !important;
    width: 40px !important;
    font-size: 0.9rem !important;
  }

  /* Grid 7 mai aerisit pe mobil */
  .places-split-layout.events-split.mobile-show-split-item .grid-7 {
    gap: 10px 6px !important;
  }
}

/* Asigurare afișare corectă butoane acțiuni pe mobil (fără strivire/suprapunere) */
@media (max-width: 768px) {
  .card-actions-wrapper {
    flex-wrap: wrap !important;
    gap: 12px !important;
    padding: 12px 14px !important;
  }
  .card-actions-wrapper > div.d-flex {
    flex-wrap: nowrap !important;
    gap: 6px !important;
  }
  .btn-share .btn-text, .btn-calendar .btn-text {
    display: none !important;
  }
  .btn-share i, .btn-calendar i {
    margin-right: 0 !important;
  }
  .btn-share, .btn-calendar {
    width: 34px !important;
    height: 34px !important;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 50% !important;
    flex-shrink: 0 !important;
  }
  .btn-nav-icon {
    width: 34px !important;
    height: 34px !important;
  }
  .btn-nav-icon img {
    width: 18px !important;
    height: 18px !important;
  }
  .btn-hype {
    margin-left: auto !important;
    flex-shrink: 0 !important;
  }
}

/* Custom Ratio for Menu Images (3:4 aspect ratio) in Bootstrap 5 */
.ratio-3x4 {
  --bs-aspect-ratio: 133.333333%;
}

/* Drag and Drop Zone Styles */
.image-dropzone {
  border: 2px dashed #cbd5e1;
  border-radius: 12px;
  background-color: #f8fafc;
  padding: 30px 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.image-dropzone:hover, .image-dropzone.dragover {
  border-color: #f59e0b;
  background-color: #fef8ec;
}

.preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 12px;
  margin-top: 15px;
}

.preview-card {
  position: relative;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 1;
  background-color: #f1f5f9;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  transition: all 0.2s ease;
}

.preview-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.preview-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.preview-card-remove {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 22px;
  height: 22px;
  background: rgba(239, 68, 68, 0.9);
  color: #ffffff;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.2s;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
  z-index: 5;
  line-height: 1;
}

.preview-card-remove:hover {
  background: rgba(220, 38, 38, 1);
}

.preview-badge-new {
  position: absolute;
  bottom: 4px;
  left: 4px;
  background: rgba(245, 158, 11, 0.95);
  color: white;
  font-size: 9px;
  padding: 2px 6px;
  border-radius: 10px;
  font-weight: bold;
  pointer-events: none;
  z-index: 5;
}

/* Newsletter promo — componentă comună, compactă pe toate paginile. */
.newsletter-promo-card {
  position: relative;
  overflow: hidden;
  padding: 1rem;
  border: 1px solid rgba(199, 210, 254, 0.72) !important;
  border-radius: 16px !important;
  background:
    radial-gradient(circle at 8% 0%, rgba(129, 140, 248, 0.14), transparent 38%),
    linear-gradient(135deg, #fafaff 0%, #eef2ff 100%);
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.06) !important;
}

.newsletter-banner[hidden] {
  display: none !important;
}

.newsletter-promo-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 380px);
  align-items: center;
  gap: 16px;
}

.newsletter-promo-copy {
  min-width: 0;
  display: flex;
  align-items: flex-start;
  gap: 11px;
}

.newsletter-promo-icon {
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: #ffffff;
  color: #4f46e5;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.11);
}

.newsletter-promo-icon .lucide,
.newsletter-promo-icon svg {
  width: 19px;
  height: 19px;
}

.newsletter-promo-copy-text {
  min-width: 0;
}

.newsletter-promo-copy h3 {
  margin: 0 0 2px;
  color: #1e1b4b;
  font-size: 0.98rem;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.newsletter-promo-copy p {
  margin: 0;
  color: #5b6175;
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1.4;
}

.newsletter-promo-copy p strong {
  color: #312e81;
}

.newsletter-promo-trust {
  margin-top: 5px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #6366f1;
  font-size: 0.67rem;
  font-weight: 700;
  line-height: 1.3;
}

.newsletter-promo-trust .lucide,
.newsletter-promo-trust svg {
  flex: 0 0 auto;
  width: 12px;
  height: 12px;
}

.newsletter-promo-action {
  min-width: 0;
}

.newsletter-promo-form-shell {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border: 1px solid rgba(165, 180, 252, 0.8);
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 4px 12px rgba(30, 41, 59, 0.07);
}

.newsletter-promo-form-shell > .lucide,
.newsletter-promo-form-shell > svg {
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
  margin-left: 9px;
  color: #64748b;
}

.newsletter-promo-form-shell .form-control {
  min-width: 0;
  flex: 1 1 auto;
  padding: 5px 6px;
  border: 0;
  background: transparent;
  color: #1e293b;
  font-size: 0.82rem;
  box-shadow: none !important;
}

.newsletter-promo-form-shell .btn {
  flex: 0 0 auto;
  min-height: 34px;
  padding: 6px 14px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 750;
  white-space: nowrap;
  box-shadow: 0 3px 9px rgba(79, 70, 229, 0.2);
}

.newsletter-promo-form-shell:focus-within {
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12);
}

.newsletter-promo-reactivate {
  width: 100%;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 7px 14px;
  border: 1px solid rgba(165, 180, 252, 0.8);
  border-radius: 999px;
  background: #ffffff;
  color: #1e293b;
  cursor: pointer;
}

.newsletter-promo-reactivate > .lucide,
.newsletter-promo-reactivate > svg {
  width: 18px;
  height: 18px;
  color: #4f46e5;
}

.newsletter-promo-reactivate span {
  color: #1e293b;
  font-size: 0.8rem;
  font-weight: 700;
  user-select: none;
}

.newsletter-promo-reactivate:hover {
  border-color: #818cf8;
  background: #f8f7ff;
}

.newsletter-promo-reactivate:disabled {
  cursor: wait;
  opacity: 0.65;
}

@media (max-width: 767.98px) {
  .newsletter-promo-card {
    padding: 1rem;
  }

  .newsletter-promo-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .newsletter-promo-icon {
    flex-basis: 36px;
    width: 36px;
    height: 36px;
    border-radius: 10px;
  }

  .newsletter-promo-copy h3 {
    font-size: 0.92rem;
  }

  .newsletter-promo-action {
    width: 100%;
  }

  /* iOS mărește automat pagina când un câmp focalizat are sub 16px. */
  .newsletter-promo-form-shell .form-control {
    font-size: 1rem;
  }
}

@media (max-width: 350px) {
  .newsletter-promo-form-shell .btn {
    padding-right: 10px;
    padding-left: 10px;
  }
}
/* Compact labels keep creator-form action bars readable on narrow phones. */
.sticky-action-bar .btn-preview.preview-responsive .preview-label-compact {
    display:none;
}

@media (max-width:424.98px) {
    body .sticky-action-bar .btn-preview.preview-responsive {
        flex:0 0 auto;
        min-width:78px;
        padding-inline:10px !important;
    }

    body .sticky-action-bar .btn-preview.preview-responsive .preview-label-full {
        display:none !important;
    }

    body .sticky-action-bar .btn-preview.preview-responsive .preview-label-compact {
        display:inline !important;
    }
}

/* ==========================================================================
   Modalul de conectare (auth-modal.php) — aliniat la limbajul vizual al
   meniului de aplicație: pastile colorate cu icon, etichetă + explicație,
   iconuri lucide în loc de emoji. Clasele sunt proprii, ca modalul să nu mai
   depindă de utilitare inexistente: `bg-indigo-subtle` era definit doar sub
   `.search-result-icon`, deci badge-ul ieșea text alb pe alb, iar `.micro-text`
   nu exista deloc.
   ========================================================================== */

.auth-modal .modal-content {
  background: #ffffff;
}

.auth-modal-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border-radius: 999px;
  background: #eef2ff;
  color: #4338ca;
  font-size: 0.74rem;
  font-weight: 700;
}

.auth-modal-chip .lucide {
  width: 13px;
  height: 13px;
}

.auth-modal-title {
  margin: 0 0 4px;
  color: #0f172a;
  font-size: 1.32rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.auth-modal-subtitle {
  margin: 0;
  color: #64748b;
  font-size: 0.85rem;
  line-height: 1.45;
}

.auth-modal-benefits {
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.auth-modal-benefits li {
  display: flex;
  align-items: flex-start;
  gap: 11px;
}

.auth-modal-benefits li > span:last-child {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.auth-modal-benefits strong {
  color: #0f172a;
  font-size: 0.87rem;
  font-weight: 700;
  line-height: 1.3;
}

.auth-modal-benefits span span {
  color: #64748b;
  font-size: 0.78rem;
  line-height: 1.35;
}

.auth-modal-tile {
  flex: 0 0 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
}

.auth-modal-tile .lucide {
  width: 17px;
  height: 17px;
}

.auth-modal-tile--indigo { background: #eef2ff; color: #4f46e5; }
.auth-modal-tile--rose   { background: #fff1f2; color: #e11d48; }

/* Separator cu etichetă: linia trece prin spatele textului, iar textul își ia
   fundalul de la modal (variabilă), nu o culoare fixă. */
.auth-modal-divider {
  position: relative;
  margin: 16px 0;
  text-align: center;
}

.auth-modal-divider::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(148, 163, 184, 0.35);
}

.auth-modal-divider span {
  position: relative;
  padding: 0 12px;
  background: #ffffff;
  color: #94a3b8;
  font-size: 0.78rem;
}

.auth-modal-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 14px 0 0;
  color: #94a3b8;
  font-size: 0.75rem;
  text-align: center;
}

.auth-modal-note .lucide {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
}

.auth-code-panel {
  padding: 14px;
  border: 1px solid rgba(109, 74, 255, 0.28);
  border-radius: 14px;
  background: rgba(109, 74, 255, 0.06);
}

.auth-code-panel #authMagicCode {
  min-width: 0;
  min-height: 48px;
  font-size: 20px;
  letter-spacing: 0.22em;
}

.auth-code-panel #btnVerifyMagicCode {
  min-height: 48px;
  border-radius: 12px;
}

[data-bs-theme="dark"] .auth-modal .modal-content { background: #0f172a; }
[data-bs-theme="dark"] .auth-modal-title { color: #f1f5f9; }
[data-bs-theme="dark"] .auth-modal-benefits strong { color: #e2e8f0; }
[data-bs-theme="dark"] .auth-modal-divider span { background: #0f172a; }
[data-bs-theme="dark"] .auth-modal-chip { background: rgba(99, 102, 241, 0.18); color: #a5b4fc; }
[data-bs-theme="dark"] .auth-modal-tile--indigo { background: rgba(99, 102, 241, 0.18); color: #a5b4fc; }
[data-bs-theme="dark"] .auth-modal-tile--rose { background: rgba(225, 29, 72, 0.18); color: #fda4af; }
[data-bs-theme="dark"] .auth-code-panel { background: rgba(109, 74, 255, 0.12); }

.event-calendar-planner .modal-dialog { max-width: 520px; }
.event-calendar-planner .modal-content {
  border: 0;
  border-radius: 24px;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.24);
}
.event-calendar-planner .modal-header {
  align-items: flex-start;
  padding: 22px 24px 12px;
  border: 0;
}
.event-calendar-planner .modal-body { padding: 4px 24px 24px; }
.event-calendar-planner__eyebrow {
  display: block;
  margin-bottom: 4px;
  color: var(--color-primary, #6d4aff);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.event-calendar-planner .modal-title { font-weight: 800; }
.event-calendar-planner__event {
  margin: 0 0 4px;
  color: #172033;
  font-size: 1.05rem;
  font-weight: 800;
}
.event-calendar-planner__range {
  margin: 0 0 14px;
  color: #6558d3;
  font-size: 0.9rem;
  font-weight: 700;
}
.event-calendar-planner__hint {
  margin: 0 0 18px;
  padding: 12px 14px;
  border-radius: 14px;
  background: #f5f3ff;
  color: #64748b;
  font-size: 0.875rem;
  line-height: 1.45;
}
.event-calendar-planner__fields {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.8fr) minmax(0, 1fr);
  gap: 12px;
}
.event-calendar-planner__fields .form-label {
  margin-bottom: 6px;
  color: #475569;
  font-size: 0.8rem;
  font-weight: 800;
}
.event-calendar-planner__fields .form-control,
.event-calendar-planner__fields .form-select {
  min-height: 48px;
  border-color: #dbe2ec;
  border-radius: 12px;
  font-size: 16px;
}
.event-calendar-planner__actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 20px;
}
.event-calendar-planner__actions .btn {
  min-height: 48px;
  border-radius: 999px;
  font-weight: 800;
}
.event-calendar-planner__period { color: #64748b; background: #f1f5f9; }
.event-calendar-planner__submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding-inline: 22px;
}
.event-calendar-planner__submit svg { width: 18px; height: 18px; }
[data-bs-theme="dark"] .event-calendar-planner .modal-content { background: #0f172a; }
[data-bs-theme="dark"] .event-calendar-planner__event { color: #f8fafc; }
[data-bs-theme="dark"] .event-calendar-planner__range { color: #c4b5fd; }
[data-bs-theme="dark"] .event-calendar-planner__hint { background: rgba(109, 74, 255, 0.14); color: #cbd5e1; }
[data-bs-theme="dark"] .event-calendar-planner__fields .form-label { color: #cbd5e1; }
[data-bs-theme="dark"] .event-calendar-planner__period { color: #e2e8f0; background: #1e293b; }

@media (max-width: 575.98px) {
  .event-calendar-planner .modal-dialog {
    align-items: flex-end;
    min-height: 100%;
    margin: 0;
  }
  .event-calendar-planner .modal-content {
    border-radius: 24px 24px 0 0;
  }
  .event-calendar-planner__fields { grid-template-columns: 1fr 1fr; }
  .event-calendar-planner__fields > :first-child { grid-column: 1 / -1; }
  .event-calendar-planner__actions { flex-direction: column-reverse; }
  .event-calendar-planner__actions .btn { width: 100%; }
}

/* Avertisment vizibil când scurtătura de conectare pentru testare e activă.
   Dacă apare pe un server public, garda din includes/helpers/dev-guard.php a
   fost slăbită — e un semnal de oprit deployul, nu un detaliu de design. */
.auth-modal-devwarn {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0 0 14px;
  padding: 9px 11px;
  border: 1px solid rgba(245, 158, 11, 0.45);
  border-radius: 11px;
  background: #fffbeb;
  color: #92400e;
  font-size: 0.75rem;
  line-height: 1.4;
}

.auth-modal-devwarn .lucide {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  margin-top: 1px;
}
/* Descrieri editoriale comune: evenimente, locații și detalii promoții. */
body .editorial-description,
body .rich-description-editor .editor-content.editorial-description {
    color: #334155 !important;
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 1rem !important;
    font-weight: 400 !important;
    line-height: 1.6 !important;
    /* Local font files only include upright faces. Allow the same italic in forms and public pages. */
    font-synthesis: style;
    overflow-wrap: anywhere;
}
.editorial-description :is(em, i) { font-style: italic; }
.editorial-description :is(strong, b) { font-weight: 700; }
.editorial-description u { text-decoration: underline; }
.editorial-description a { color: #4f46e5; text-decoration: underline; text-underline-offset: 3px; }
.editorial-description > :is(p, div):empty { min-height: 1.6em; }
.editorial-description > :is(p, div):last-child { margin-bottom: 0; }

.editorial-description > p,
.editorial-description > div {
    margin: 0 0 0.8rem;
    line-height: 1.6;
}

/* Promoțiile sunt informații scurte și utile la fața locului. Afișăm toate
   rândurile, dar fără spațiul de articol dintre paragrafele create cu Enter. */
.place-promotion-description > p,
.place-promotion-description > div {
    margin: 0 0 0.3em;
}

.place-promotion-description > :last-child {
    margin-bottom: 0;
}

.editorial-description h2 {
    margin: 1.5rem 0 0.75rem;
    color: #111827;
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: -0.015em;
    line-height: 1.35;
}

.editorial-description h2:first-child {
    margin-top: 0.25rem;
}

.editorial-description h3 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 1.35rem 0 0.7rem;
    color: #312e81;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.07em;
    line-height: 1.35;
    text-transform: uppercase;
}

.editorial-description h3::before {
    width: 5px;
    height: 18px;
    border-radius: 999px;
    background: linear-gradient(180deg, #6366f1, #ec4899);
    content: "";
    flex: 0 0 auto;
}

.editorial-description h3 + p {
    margin-bottom: 1rem;
    padding: 11px 13px;
    border: 1px solid #eef2f7;
    border-radius: 12px;
    background: #f8fafc;
    line-height: 1.72;
}

.editorial-description ul,
.editorial-description ol {
    display: grid;
    gap: 7px;
    margin: 0.7rem 0 1rem;
    padding: 11px 13px 11px 32px;
    border: 1px solid rgba(99, 102, 241, 0.12);
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.055), rgba(236, 72, 153, 0.035));
}

.editorial-description li {
    padding-left: 2px;
}

.editorial-description li::marker {
    color: #6366f1;
    font-weight: 800;
}

.editorial-description li strong {
    color: #1e293b;
}

/* Informațiile-cheie importate (durată, vârstă, premieră) formează un rezumat
   aliniat la stânga, cu textul centrat pe verticală în casetă. Folosim un marker
   propriu pentru aliniere verticală predictibilă;
   markerul nativ al listei nu poate participa la layout-ul flex. */
.event-description .editorial-description-facts {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 7px 18px;
    padding-block: 11px !important;
    padding-inline: 13px;
    list-style: none;
    text-align: left;
}

/* Anulează resetarea mobilă a primului bloc din descriere; pentru lista de
   fapte avem nevoie de aceeași respirație sus și jos. */
.event-description > .editorial-description-facts:first-child {
    padding-block: 11px !important;
}

.event-description .editorial-description-facts > li {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 7px;
    min-height: 24px;
    padding: 0;
}

.event-description .editorial-description-facts > li::before {
    color: #6366f1;
    content: "•";
    font-size: 1.12em;
    font-weight: 800;
    line-height: 1;
}

.editorial-description blockquote {
    margin: 0.9rem 0 1rem;
    padding: 12px 14px;
    border-left: 4px solid #8b5cf6;
    border-radius: 0 12px 12px 0;
    background: #f8f7ff;
    color: #4c4665;
    font-style: italic;
}

.editorial-description blockquote > :first-child { margin-top: 0; }
.editorial-description blockquote > :last-child { margin-bottom: 0; }

.editorial-description hr {
    margin: 1.25rem 0;
    border: 0;
    border-top: 1px solid #e2e8f0;
    opacity: 1;
}

/* Typed.js cursor styling (CSP compliant - zero JS style injection) */
#typed-hero-title::after {
    content: '|';
    opacity: 1;
    animation: typedBlink 0.7s infinite;
    -webkit-animation: typedBlink 0.7s infinite;
    margin-left: 2px;
    color: var(--primary-color, #6366f1);
}

@keyframes typedBlink {
    50% { opacity: 0.0; }
}
@-webkit-keyframes typedBlink {
    50% { opacity: 0.0; }
}

/*
 * Contract global pentru formularele mobile: Safari pe iOS mărește automat
 * pagina când un control editabil focalizat are text mai mic de 16px.
 * Excludem controalele fără introducere de text, ca să nu le schimbăm inutil
 * dimensiunea vizuală.
 */
@media (max-width: 991.98px) {
    input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]):not([type="button"]):not([type="submit"]):not([type="reset"]):not([type="image"]),
    select,
    textarea,
    [contenteditable="true"],
    [contenteditable="plaintext-only"] {
        font-size: 16px !important;
    }
}
/* Semnal factual public: separat de data modificării tehnice sau editoriale. */
.public-freshness-note {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    margin: 0 0 0.55rem;
    color: #087f5b;
    font-size: 0.78rem;
    font-weight: 700;
}
.public-freshness-note svg { width: 16px; height: 16px; }

/* Shared category navigation inside the search results scroll area. */
.global-search-jumps {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 8px 2px 10px;
  background: #fff;
  border-bottom: 1px solid #e8e6f1;
}
.global-search-jumps button {
  --search-accent: #6355d8;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  padding: 7px 10px;
  border: 1px solid #e8e6f1;
  border-radius: 999px;
  background: #fff;
  color: #475569;
  font-size: .8rem;
  font-weight: 700;
}
.global-search-jumps button[data-search-jump="places"] { --search-accent: #00875f; }
.global-search-jumps button[data-search-jump="promotions"] { --search-accent: #c65e00; }
.global-search-jumps button[data-search-jump="cinema"] { --search-accent: #db2777; }
.global-search-jumps button svg { width: 16px; height: 16px; flex-shrink: 0; color: var(--search-accent); }
.global-search-jumps button span { padding: 1px 6px; border-radius: 999px; background: #f3f2fa; color: var(--search-accent); }
.global-search-jumps button[aria-current="true"],
.global-search-jumps button:hover { border-color: var(--search-accent); color: var(--search-accent); background: #f8f7fc; }
.global-search-jumps button:focus-visible { outline: 2px solid var(--search-accent); outline-offset: 2px; }
@media (max-width: 767.98px) {
  .global-search-jumps { background: #f8f7fc; }
  .global-search-jumps button { gap: 4px; padding: 7px 8px; font-size: .75rem; }
  .global-search-jumps button span { padding: 1px 4px; }
}
