/* ════════════════════════════════════════════
   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;
}

.cc-preshazak__capacity-note {
  font-family: var(--cc-font-body);
  font-size: 13px;
  font-weight: 300;
  line-height: 1.6;
  color: var(--cc-beige, #d0c4b0);
  margin: 14px auto 0;
}

/* ── 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: #1c1812;
  border: 1px solid rgba(168,149,122,0.18);
  box-shadow: 0 14px 38px rgba(0,0,0,0.16);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  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: 16/10;
  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);
}

/* Number + title row — mirrors the Présházak listing cards */
.cc-preshazak__card-heading {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 66px;
  margin-bottom: 16px;
}

.cc-preshazak__card-num {
  flex: 0 0 auto;
  font-family: var(--cc-font-heading);
  font-size: 76px;
  font-weight: 300;
  line-height: 0.74;
  color: rgba(208,196,176,0.17);
  letter-spacing: -0.04em;
  pointer-events: none;
  user-select: none;
  font-variant-numeric: lining-nums tabular-nums;
  font-feature-settings: "lnum" 1, "tnum" 1;
}

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

.cc-preshazak__card-title {
  font-family: var(--cc-font-heading);
  font-size: 30px;
  font-weight: 400;
  line-height: 1;
  margin: 0;
}

.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 {
  width: 100%;
  min-height: 51px;
  font-family: var(--cc-font-body);
  font-size: 10.5px;
  font-weight: 400;
  letter-spacing: 1.1px;
  text-transform: uppercase;
  color: var(--cc-taupe);
  border-top: 1px solid rgba(168,149,122,0.58);
  margin: 0 0 16px;
  padding: 13px 0;
  display: flex;
  align-items: center;
  gap: 0;
}

.cc-preshazak__card-tag {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  line-height: 1.35;
}

.cc-preshazak__card-tag::before {
  content: '';
  display: block;
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  background-position: center;
  background-repeat: no-repeat;
  background-size: 185%;
  opacity: 0.88;
}

.cc-preshazak__card-tag--capacity {
  flex: 0 0 auto;
  padding-right: 14px;
}

.cc-preshazak__card-tag--capacity::before {
  background-image: url('https://casachrista-test.site/wp-content/uploads/2026/10/cc-card-ferohely.png');
}

.cc-preshazak__card-tag--feature {
  flex: 1 1 auto;
  padding-left: 14px;
  border-left: 1px solid rgba(168,149,122,0.28);
}

.cc-preshazak__card-tag--feature::before {
  background-image: url('https://casachrista-test.site/wp-content/uploads/2026/10/cc-card-wellness.png');
}

.cc-preshazak__card-tag--terrace::before {
  background-image: url('https://casachrista-test.site/wp-content/uploads/2026/10/cc-card-panoramas-terasz.png');
}

.cc-preshazak__card--nest .cc-preshazak__card-tag--feature::before {
  display: none;
}

.cc-preshazak__card--nest .cc-preshazak__card-title {
  line-height: 1.1;
}

.cc-preshazak a:focus-visible,
.cc-preshazak button:focus-visible {
  outline: 2px solid var(--cc-taupe);
  outline-offset: 4px;
}

/* Description */
.cc-preshazak__card-desc {
  font-family: var(--cc-font-body);
  font-size: 14px;
  font-weight: 300;
  line-height: 1.7;
  color: rgba(247,242,236,0.62);
  margin: 0 0 16px;
  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: stretch;
  gap: 10px;
  border-top: 1px solid rgba(168,149,122,0.15);
  padding-top: 18px;
  margin-top: auto;
}

.cc-preshazak__card-details {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex: 1 1 0;
  min-width: 0;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid var(--cc-taupe);
  font-family: var(--cc-font-body);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 1.7px;
  text-transform: uppercase;
  color: var(--cc-taupe);
  text-decoration: none;
  transition: color 0.25s ease, background 0.25s ease, gap 0.25s ease;
}

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

.cc-preshazak__card-book {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 0;
  min-width: 0;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid var(--cc-taupe);
  background: var(--cc-taupe);
  color: var(--cc-cream);
  font-family: var(--cc-font-body);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 1.7px;
  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); }
  .cc-preshazak__card-body { padding: 22px 20px 22px; }
  .cc-preshazak__card-heading { gap: 14px; min-height: 58px; }
  .cc-preshazak__card-num { font-size: 64px; }
  .cc-preshazak__card-title { font-size: 28px; }
  .cc-preshazak__card-tags { font-size: 9.5px; letter-spacing: 0.85px; }
  .cc-preshazak__card-tag--capacity { padding-right: 10px; }
  .cc-preshazak__card-tag--feature { padding-left: 10px; }
  .cc-preshazak__card-tag::before { flex-basis: 22px; width: 22px; height: 22px; }
  .cc-preshazak__card-details,
  .cc-preshazak__card-book { font-size: 10px; padding-left: 8px; padding-right: 8px; }
}

/* The accommodation archive uses the same cards in a light, non-scrolling grid. */
.cc-preshazak--grid { padding: 0; background: transparent; }
.cc-preshazak--grid::before { display: none; }
.cc-preshazak--grid .cc-preshazak__carousel { padding: 0; overflow: visible; }
.cc-preshazak--grid .cc-preshazak__track { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.cc-preshazak--grid .cc-preshazak__card { min-width: 0; background: var(--cc-white, #fff); box-shadow: 0 8px 25px rgba(28,24,18,.04); }
.cc-preshazak--grid .cc-preshazak__card-title a { color: var(--cc-dark); }
.cc-preshazak--grid .cc-preshazak__card-num { color: var(--cc-beige, #d0c4b0); opacity: .6; }
.cc-preshazak--grid .cc-preshazak__card-desc { color: var(--cc-dark); }
.cc-preshazak--grid .cc-preshazak__card-body { min-height: 330px; }
.cc-preshazak--grid .cc-preshazak__card-details,
.cc-preshazak--grid .cc-preshazak__card-book { letter-spacing: .03em; text-transform: none; font-size: 13px; }
@media (max-width: 1024px) {
  .cc-preshazak--grid .cc-preshazak__track { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
}
@media (max-width: 640px) {
  .cc-preshazak--grid .cc-preshazak__track { grid-template-columns: minmax(0, 1fr); }
  .cc-preshazak--grid .cc-preshazak__card-body { min-height: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .cc-preshazak *, .cc-preshazak *::before { transition: none !important; animation: none !important; }
}
