/* =========================================================
   Pagina Activități - galerii, carduri și butoane locații
   ========================================================= */

/* ============ Activities Page ============ */
.act {
  padding: 40px 0;
}

.act-section {
  padding: 40px 0;
}

.act-section.alt {
  padding-top: 10px;
}

.act-head {
  margin-bottom: 26px;
}

.act-head h1 {
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.1;
  margin: 0 0 10px;
}

.act-head p {
  max-width: 760px;
  opacity: 0.85;
  margin: 0;
}

/* --- 2 columns rows --- */
.act-row {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 24px;
  align-items: center;
  padding: 22px 0;
  border-top: 1px solid var(--border);
}

.act-row:first-of-type {
  border-top: 0;
}

.act-row.reverse .act-content {
  order: 2;
}
.act-row.reverse .act-media {
  order: 1;
}

.act-content h2 {
  font-size: clamp(20px, 2.5vw, 28px);
  margin: 0 0 8px;
}

.act-content p {
  margin: 0;
  opacity: 0.9;
  max-width: 560px;
}

/* --- Elegant centered slider gallery --- */
.act-media,
.near-side {
  width: 100%;
}

.img-accordion {
  --gallery-h: 340px;
  --card-w: 250px;
  --card-radius: 22px;

  position: relative;
  width: 100%;
  height: var(--gallery-h);
  display: block;
  overflow: hidden;
  isolation: isolate;
}

.img-accordion.small {
  --gallery-h: 230px;
  --card-w: 150px;
  --card-radius: 18px;
}

.img-panel {
  position: absolute;
  top: 50%;
  left: 50%;
  width: var(--card-w);
  height: calc(var(--gallery-h) - 6px);
  border-radius: var(--card-radius);
  overflow: hidden;
  cursor: pointer;
  background: #ddd;
  transform-origin: center center;
  transition:
    transform 650ms cubic-bezier(.22, .61, .36, 1),
    opacity 650ms cubic-bezier(.22, .61, .36, 1),
    filter 650ms cubic-bezier(.22, .61, .36, 1),
    box-shadow 650ms cubic-bezier(.22, .61, .36, 1);
  will-change: transform, opacity, filter;
  box-shadow:
    0 18px 40px rgba(0,0,0,.12),
    0 6px 16px rgba(0,0,0,.08);
}

.img-panel img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  user-select: none;
  -webkit-user-drag: none;
  transition: transform 400ms ease;
}

.img-panel:hover img {
  transform: scale(1.03);
}

/* card principal */
.img-panel.is-active {
  z-index: 5;
  opacity: 1;
  filter: none;
  transform:
    translate(-50%, -50%)
    translateX(0)
    scale(1);
  box-shadow:
    0 28px 64px rgba(0,0,0,.18),
    0 8px 22px rgba(0,0,0,.12);
}

/* card stanga */
.img-panel.is-left-1 {
  z-index: 4;
  opacity: .62;
  filter: saturate(.88);
  transform:
    translate(-50%, -50%)
    translateX(-120px)
    scale(.9);
}

/* card dreapta */
.img-panel.is-right-1 {
  z-index: 4;
  opacity: .62;
  filter: saturate(.88);
  transform:
    translate(-50%, -50%)
    translateX(120px)
    scale(.9);
}

/* restul ascunse */
.img-panel.is-hidden {
  z-index: 1;
  opacity: 0;
  pointer-events: none;
  transform:
    translate(-50%, -50%)
    translateX(0)
    scale(.84);
  filter: blur(1px);
}

/* un mic efect la hover pe toata galeria */
.img-accordion:hover .img-panel.is-active {
  transform: translate(-50%, -50%) translateX(0) scale(1.01);
}

/* responsive */
@media (max-width: 1100px) {
  .img-accordion {
    --gallery-h: 320px;
    --card-w: 220px;
  }

  .img-accordion.small {
    --gallery-h: 220px;
    --card-w: 138px;
  }

  .img-panel.is-left-1 {
    transform: translate(-50%, -50%) translateX(-98px) scale(.9);
  }

  .img-panel.is-right-1 {
    transform: translate(-50%, -50%) translateX(98px) scale(.9);
  }
}

@media (max-width: 900px) {
  .img-accordion {
    --gallery-h: 290px;
    --card-w: 210px;
  }

  .img-accordion.small {
    --gallery-h: 210px;
    --card-w: 130px;
  }

  .img-panel.is-left-1 {
    transform: translate(-50%, -50%) translateX(-82px) scale(.88);
  }

  .img-panel.is-right-1 {
    transform: translate(-50%, -50%) translateX(82px) scale(.88);
  }
}

@media (max-width: 520px) {
  .img-accordion {
    --gallery-h: 250px;
    --card-w: 180px;
  }

  .img-accordion.small {
    --gallery-h: 190px;
    --card-w: 118px;
  }

  .img-panel {
    border-radius: 16px;
  }

  .img-panel.is-left-1 {
    transform: translate(-50%, -50%) translateX(-58px) scale(.86);
  }

  .img-panel.is-right-1 {
    transform: translate(-50%, -50%) translateX(58px) scale(.86);
  }
}

/* ============ Nearby section ============ */
.near-row {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 24px;
  align-items: start;
  padding: 22px 0;
  border-top: 1px solid var(--border);
}

.near-row:first-of-type {
  border-top: 0;
}

.near-content h2 {
  font-size: clamp(20px, 2.5vw, 28px);
  margin: 0 0 8px;
}

.near-content p {
  margin: 0;
  opacity: 0.9;
  max-width: 560px;
}

.near-side {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* --- Waze / Google buttons --- */
.map-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.map-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
  color: inherit;
}

.map-btn:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.10);
  border-color: rgba(255, 255, 255, 0.22);
}

.map-btn .dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: currentColor;
  opacity: 0.9;
}

/* --- responsive --- */
@media (max-width: 900px) {
  .act-row,
  .near-row {
    grid-template-columns: 1fr;
  }

  .act-row.reverse .act-content,
  .act-row.reverse .act-media {
    order: initial;
  }

  .img-accordion {
    --h: 260px;
  }
}
.near-cta__text{
  margin: 0;
  opacity: .9;
  line-height: 1.4;
}

.near-cta{
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

/* dacă pill-urile tale sunt inline, asta doar le aliniază mai bine lângă text */
.near-cta .brand-pill{
  vertical-align: middle;
}
@media (max-width: 520px){
  .img-accordion{
    gap: 8px;
  }
  .img-panel{
    border-radius: 16px;
  }
  /* pe touch: hover nu există, așa că dăm un layout stabil */
  .img-accordion .img-panel:hover{ flex: 1; transform:none; }
}
/* FACEBOOK */
.brand-pill--facebook{
  background: rgba(24,119,242,.15);
  border:1px solid rgba(24,119,242,.35);
  color:#1877F2;
}

.brand-pill--facebook:hover{
  background: rgba(24,119,242,.22);
}


/* INSTAGRAM */
.brand-pill--instagram{
  background: rgba(225,48,108,.15);
  border:1px solid rgba(225,48,108,.35);
  color:#E1306C;
}

.brand-pill--instagram:hover{
  background: rgba(225,48,108,.22);
}


/* TIKTOK */
.brand-pill--tiktok{
  background: rgba(0,0,0,.10);
  border:1px solid rgba(0,0,0,.25);
  color:#111;
}

.brand-pill--tiktok:hover{
  background: rgba(0,0,0,.16);
}


/* WHATSAPP */
.brand-pill--whatsapp{
  background: rgba(37,211,102,.15);
  border:1px solid rgba(37,211,102,.35);
  color:#25D366;
}

.brand-pill--whatsapp:hover{
  background: rgba(37,211,102,.22);
}


/* APEL */
.brand-pill--call{
  background: rgba(139,94,60,.15);
  border:1px solid rgba(139,94,60,.35);
  color:#8B5E3C;
}

.brand-pill--call:hover{
  background: rgba(139,94,60,.22);
}
.act-row--rural .near-cta{
  margin-top: 16px;
}
.near-meta{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:14px;
}

.near-badge{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:8px 12px;
  border-radius:999px;
  border:1px solid var(--border);
  background:rgba(255,255,255,.55);
  color:var(--text);
  font-weight:800;
  font-size:14px;
  line-height:1;
  box-shadow:0 8px 20px rgba(0,0,0,.06);
}

:root[data-theme="dark"] .near-badge{
  background:rgba(255,255,255,.06);
}

.near-badge i{
  color:var(--accent2);
}