/* ════════════════════════════════════════════
   CC PRÉSHÁZAK SECTION — CAROUSEL
   ════════════════════════════════════════════ */

.cc-preshazak {
  position: relative;
  background: var(--cc-dark);
  padding: 108px 0 120px;
}

.cc-preshazak::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.68' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  opacity: 0.025;
  pointer-events: none;
  z-index: 0;
}

/* ── Header ── */
.cc-preshazak__header {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 720px;
  margin: 0 auto 56px;
  padding: 0 40px;
}

.cc-preshazak__eyebrow {
  font-family: var(--cc-font-body);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--cc-taupe);
  margin-bottom: 20px;
}

.cc-preshazak__heading {
  font-family: var(--cc-font-heading);
  font-size: clamp(44px, 5vw, 72px);
  font-weight: 300;
  font-style: italic;
  line-height: 1.05;
  color: var(--cc-cream);
  letter-spacing: -0.01em;
  margin-bottom: 20px;
}

.cc-preshazak__rule {
  width: 36px;
  height: 1px;
  background: var(--cc-taupe);
  opacity: 0.5;
  margin: 0 auto 24px;
}

.cc-preshazak__desc {
  font-family: var(--cc-font-body);
  font-size: 15px;
  font-weight: 300;
  line-height: 1.85;
  color: rgba(208,196,176,0.65);
  max-width: 560px;
  margin: 0 auto;
}

/* ── Carousel Wrap ── */
.cc-preshazak__carousel-wrap {
  position: relative;
  z-index: 1;
}

/* ── Controls (nav + counter) ── */
.cc-preshazak__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-bottom: 32px;
}

.cc-preshazak__nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(247,242,236,0.4);
  background: transparent;
  color: var(--cc-cream);
  cursor: pointer;
  transition: border-color 0.25s ease, background 0.25s ease;
  flex-shrink: 0;
}

.cc-preshazak__nav:hover:not([disabled]) {
  border-color: rgba(247,242,236,0.9);
  background: rgba(247,242,236,0.07);
}

.cc-preshazak__nav[disabled] {
  opacity: 0.28;
  cursor: default;
}

.cc-preshazak__nav svg {
  display: block;
  pointer-events: none;
}

.cc-preshazak__counter {
  font-family: var(--cc-font-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 2.5px;
  color: rgba(247,242,236,0.35);
  min-width: 56px;
  text-align: center;
  user-select: none;
}

.cc-preshazak__counter-current {
  color: var(--cc-cream);
}

/* ── Carousel ── */
.cc-preshazak__carousel {
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-left: 30px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 0 30px 4px;
}

.cc-preshazak__carousel::-webkit-scrollbar {
  display: none;
}

.cc-preshazak__track {
  display: flex;
  gap: 30px;
}

/* ── Card sizing: exactly 3 per row on desktop ── */
.cc-preshazak__card {
  /* (viewport - 120px carousel padding - 48px for 2 gaps) / 3 */
  flex: 0 0 calc((100vw - 120px) / 3);
  scroll-snap-align: start;
  background: #201a13;
  display: flex;
  flex-direction: column;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.cc-preshazak__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 64px rgba(0,0,0,0.4);
}

/* Card image */
.cc-preshazak__card-img-wrap {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 4/3;
  flex-shrink: 0;
}

.cc-preshazak__card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.cc-preshazak__card:hover .cc-preshazak__card-img {
  transform: scale(1.04);
}

/* Card number badge */
.cc-preshazak__card-num {
  position: absolute;
  bottom: 14px;
  left: 18px;
  font-family: var(--cc-font-heading);
  font-size: 56px;
  font-weight: 300;
  line-height: 1;
  color: rgba(247,242,236,0.18);
  letter-spacing: -0.04em;
  pointer-events: none;
  user-select: none;
}

/* Card body */
.cc-preshazak__card-body {
  padding: 28px 28px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.cc-preshazak__card-title {
  font-family: var(--cc-font-heading);
  font-size: 26px;
  font-weight: 400;
  line-height: 1.15;
  margin-bottom: 10px;
}

.cc-preshazak__card-title a {
  color: var(--cc-cream);
  text-decoration: none;
  transition: color 0.25s ease;
}

.cc-preshazak__card-title a:hover {
  color: var(--cc-taupe);
}

/* Tags */
.cc-preshazak__card-tags {
  font-family: var(--cc-font-body);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--cc-taupe);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.cc-preshazak__dot {
  opacity: 0.5;
}

.cc-preshazak__card-rule {
  width: 24px;
  height: 1px;
  background: rgba(168,149,122,0.35);
  margin-bottom: 14px;
}

/* Description */
.cc-preshazak__card-desc {
  font-family: var(--cc-font-body);
  font-size: 13.5px;
  font-weight: 300;
  line-height: 1.8;
  color: rgba(208,196,176,0.65);
  margin-bottom: 14px;
  flex: 1;
}

/* Price */
.cc-preshazak__card-price {
  font-family: var(--cc-font-body);
  font-size: 14px;
  font-weight: 400;
  color: rgba(247,242,236,0.85);
  margin-bottom: 20px;
}

/* Card footer */
.cc-preshazak__card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid rgba(168,149,122,0.15);
  padding-top: 18px;
  margin-top: auto;
}

.cc-preshazak__card-details {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--cc-font-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--cc-taupe);
  text-decoration: none;
  transition: color 0.25s ease, gap 0.25s ease;
}

.cc-preshazak__card-details:hover {
  color: var(--cc-cream);
  gap: 8px;
}

.cc-preshazak__card-book {
  display: inline-flex;
  align-items: center;
  padding: 10px 22px;
  background: var(--cc-taupe);
  color: var(--cc-cream);
  font-family: var(--cc-font-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.25s ease, color 0.25s ease;
}

.cc-preshazak__card-book:hover {
  background: var(--cc-cream);
  color: var(--cc-dark);
}

/* ── Progress bar ── */
.cc-preshazak__progress {
  max-width: calc(100vw - 60px);
  margin: 28px auto 0;
  height: 1px;
  background: rgba(168,149,122,0.18);
  position: relative;
}

.cc-preshazak__progress-bar {
  position: absolute;
  left: 0;
  top: 0;
  height: 1px;
  background: var(--cc-taupe);
  width: 0%;
  transition: width 0.35s ease;
}

/* ── Footer CTA ── */
.cc-preshazak__footer {
  position: relative;
  z-index: 1;
  text-align: center;
  margin-top: 60px;
}

.cc-preshazak__cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--cc-font-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 2.8px;
  text-transform: uppercase;
  color: var(--cc-cream);
  text-decoration: none;
  border: 1px solid rgba(247,242,236,0.28);
  padding: 15px 36px;
  transition: background 0.28s ease, border-color 0.28s ease, gap 0.28s ease;
}

.cc-preshazak__cta:hover {
  background: rgba(247,242,236,0.06);
  border-color: rgba(247,242,236,0.55);
  gap: 14px;
}

.cc-preshazak__cta svg { transition: transform 0.28s ease; }
.cc-preshazak__cta:hover svg { transform: translateX(3px); }

/* ════════════════════════
   SCROLL ANIMÁCIÓ
   ════════════════════════ */

.cc-preshazak__header,
.cc-preshazak__footer {
  opacity: 0;
  transform: translateY(20px);
}

.cc-preshazak__header {
  transition: opacity 0.8s ease, transform 0.8s ease;
  transition-delay: 0.1s;
}

.cc-preshazak__footer {
  transition: opacity 0.7s ease, transform 0.7s ease;
  transition-delay: 0.44s;
}

.cc-preshazak.is-visible .cc-preshazak__header,
.cc-preshazak.is-visible .cc-preshazak__footer {
  opacity: 1;
  transform: none;
}

/* ════════════════════════
   RESPONSIVE
   ════════════════════════ */

/* Tablet: 2 cards */
@media (max-width: 1024px) {
  .cc-preshazak__carousel { padding: 0 20px 4px; }
  .cc-preshazak__progress { max-width: calc(100vw - 40px); }
  /* (vw - 40px padding - 24px gap) / 2 */
  .cc-preshazak__card { flex: 0 0 calc((100vw - 60px) / 2); }
}

/* Mobile: 1 card */
@media (max-width: 640px) {
  .cc-preshazak { padding: 72px 0 88px; }
  .cc-preshazak__header { margin-bottom: 40px; padding: 0 20px; }
  .cc-preshazak__footer { margin-top: 48px; }
  .cc-preshazak__carousel { padding: 0 20px 4px; }
  .cc-preshazak__progress { max-width: calc(100vw - 40px); }
  .cc-preshazak__card { flex: 0 0 calc(100vw - 40px); }
}
