/* =======================
   ACCORDION / TRIGGER BTN
   ======================= */

/* Ascuns pe desktop */
.pfp-accordion { display: none; }
@media (max-width: 768px){
  .pfp-accordion { display: block; }
}

/* Varianta normală (în flux, sub breadcrumb/filtre) */
.pfp-accordion{
  margin: 10px 0 8px;
  border-radius: 0;
  overflow: hidden;
  background: #010043;
  color: #ffa400;
  border: 1px solid rgba(255,255,255,.12);
  position: relative;
  z-index: 10;
}

.pfp-accordion-toggle{
  width: 100%;
  min-height: 0 !important;
  height: 30px !important;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 10px !important;
  font-size: 16px;
  background: #010043 !important;
  color: #ffa400 !important;
  border: 0;
  cursor: pointer;
}
.pfp-accordion-toggle .pfp-caret{
  color: #ffa400;
  transition: transform .2s ease;
}

/* ==========================
   VARIANTA STICKY (pe mobil)
   ========================== */
.pfp-accordion.sticky{
  position: fixed;
  top: 60px;             /* JS poate suprascrie la runtime: .css('top', headerHeight+'px') */
  left: 0;
  right: 0;
  width: 100%;
  margin: 0;
  border: none;
  border-radius: 0;
  background: #010043;
  z-index: 9999;
  box-shadow: 0 4px 12px rgba(0,0,0,.12);
  animation: pfp-fadeInDown .25s ease;
}
.pfp-accordion.sticky .pfp-accordion-toggle{
  height: 45px !important;
  font-size: 16px;
  font-weight: 600;
  justify-content: center;
  border-radius: 0;
}
.pfp-accordion.sticky .pfp-accordion-toggle .pfp-caret{
  margin-left: 8px;
}

/* Mică animație la apariția sticky */
@keyframes pfp-fadeInDown {
  from { transform: translateY(-12px); opacity: 0; }
  to   { transform: translateY(0);     opacity: 1; }
}

/* =======================
   ANIMAȚII ATENȚIONARE
   ======================= */
@keyframes pfp-shake {
  0% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  50% { transform: translateX(4px); }
  75% { transform: translateX(-2px); }
  100% { transform: translateX(0); }
}
@keyframes pfp-pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.08); }
  100% { transform: scale(1); }
}
.pfp-accordion.animate-shake { animation: pfp-shake .5s ease; }
.pfp-accordion.animate-pulse { animation: pfp-pulse .6s ease; }

/* ======= POPUP FULLSCREEN ======= */

/* variabila pentru înălțimea reală a viewport-ului (setată din JS) */
:root { --pfp-vh: 1vh; }

.pfp-popup[hidden]{ display: none; }
.pfp-popup{ position: fixed; inset: 0; z-index: 9999; }
.pfp-overlay{ position: absolute; inset: 0; background: rgba(0,0,0,.6); }

.pfp-dialog{
  position: fixed;
  inset: 0;
  margin: 0;
  width: 100vw;
  max-width: none;
  height: calc(var(--pfp-vh) * 100);
  background: transparent !important;
  display: flex;
  flex-direction: column;
}

/* header-ul rămâne mut (close-ul e flotant jos) */
.pfp-header{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0;
  height: 0;
  overflow: hidden;
}
.pfp-header h3{ margin: 0; color: #010043; font-size: 18px; }

/* SLIDER pe tot ecranul */
.pfp-slider-wrap{
  position: relative;
  overflow: hidden;
  flex: 1 1 auto;
  height: 100%;
  padding: 0;
}
.pfp-slider{
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 12px;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  height: 100%;
  padding: 0;
}
.pfp-slide{
  flex: 0 0 100vw;
  min-width: 100vw;
  height: calc(var(--pfp-vh) * 100);
  scroll-snap-align: center;
  text-align: center;
}
.pfp-slide a{ display: block; width: 100%; height: 100%; text-decoration: none; }

/* Imaginea umple tot ecranul fără distorsiune (poate decupa puțin) */
.pfp-slide img{
  display: block;
  width: 100vw;
  height: calc(var(--pfp-vh) * 100);
  object-fit: cover;   /* dacă preferi să NU taie, schimbă în 'contain' */
  margin: 0;
  border-radius: 0;
}

/* Săgeți pe mijloc vertical (fix pe viewport) */
.pfp-dialog .pfp-nav{
  position: fixed !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  background: rgba(255,255,255,0);
  width: 36px;
  height: 36px;
  font-weight: 100;
  font-size: 40px !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  user-select: none;
  box-shadow: 0 2px 8px rgba(0,0,0,.15);
  border: 0;
  z-index: 1104;
}
.pfp-dialog .pfp-prev{ left: 12px; }
.pfp-dialog .pfp-next{ right: 12px; }

/* Butonul CLOSE – jos, centrat (deasupra imaginii) */
.pfp-close{
  position: fixed !important;
  left: 50% !important;
  bottom: 100px !important; /* ajustează cât vrei */
  transform: translateX(-50%) !important;
  z-index: 1105 !important;
  width: 56px !important;
  height: 56px !important;
  background-color: rgba(255,164,0,.9) !important;
  border-radius: 50% !important;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  text-decoration: none;
  line-height: 1;
  font-weight: 100;
  font-size: 40px !important;
  cursor: pointer;
  opacity: 1 !important;
}

/* Mobile: asigură vizibile săgețile */
@media (max-width: 767px){
  .pfp-dialog .pfp-nav{ display: flex !important; }
}

/* Desktop (fallback) */
@media (min-width: 769px){
  .pfp-dialog{ max-width: none; }
}
