/* Czech Royal Hunt — Availability Modal */
.av-modal {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: grid;
  place-items: center;
  padding: clamp(1rem, 3vw, 2rem);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}
.av-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}
html.av-modal-open,
html.av-modal-open body {
  overflow: hidden;
}

/* Custom cursor must stay above the modal overlay, and the native
   pointer must stay hidden on every modal / season control. */
body.has-custom-cursor .custom-cursor,
body.has-custom-cursor .cursor {
  z-index: 10100;
}
body.has-custom-cursor,
body.has-custom-cursor *,
body.has-custom-cursor .av-modal,
body.has-custom-cursor .av-modal * {
  cursor: none !important;
}
@media (hover: none), (pointer: coarse), (prefers-reduced-motion: reduce) {
  body.has-custom-cursor,
  body.has-custom-cursor *,
  body.has-custom-cursor .av-modal,
  body.has-custom-cursor .av-modal * {
    cursor: auto !important;
  }
}
@media (prefers-reduced-motion: reduce) {
  .av-modal,
  .av-modal__panel {
    transition: none !important;
  }
}
.av-empty-cta {
  margin: 1rem 0 0;
}
.av-modal__backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(184, 139, 74, 0.12), transparent 50%),
    rgba(4, 8, 5, 0.78);
  backdrop-filter: blur(6px);
}
.av-modal__panel {
  position: relative;
  z-index: 1;
  width: min(920px, 100%);
  max-height: min(90vh, 920px);
  overflow: auto;
  border: 1px solid rgba(184, 139, 74, 0.28);
  background:
    linear-gradient(165deg, rgba(28, 52, 36, 0.97), rgba(10, 16, 12, 0.98));
  box-shadow:
    0 40px 80px -40px rgba(0, 0, 0, 0.75),
    inset 0 1px 0 rgba(255, 240, 200, 0.06);
  transform: translateY(18px) scale(0.985);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.av-modal.is-open .av-modal__panel {
  transform: translateY(0) scale(1);
}
.av-modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 2;
  width: 2.4rem;
  height: 2.4rem;
  border: 1px solid rgba(184, 139, 74, 0.3);
  background: rgba(2, 6, 4, 0.5);
  color: #d8c4a0;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  transition: border-color 0.25s, color 0.25s;
}
.av-modal__close:hover {
  border-color: rgba(224, 192, 131, 0.65);
  color: #f4efe5;
}
.av-modal__header {
  padding: clamp(1.6rem, 3vw, 2.25rem) clamp(1.4rem, 3vw, 2.5rem) 1.25rem;
  padding-right: 3.5rem;
  border-bottom: 1px solid rgba(184, 139, 74, 0.14);
}
.av-modal__kicker {
  display: block;
  font-size: 0.65rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #b88b4a;
  margin-bottom: 0.55rem;
}
.av-modal__title {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.75rem, 3.2vw, 2.35rem);
  font-weight: 500;
  color: #f4efe5;
  line-height: 1.15;
  margin: 0 0 0.55rem;
}
.av-modal__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.25rem;
  font-size: 0.82rem;
  color: rgba(244, 239, 229, 0.62);
}
.av-modal__body {
  padding: clamp(1.25rem, 2.5vw, 1.85rem) clamp(1.4rem, 3vw, 2.5rem) clamp(1.75rem, 3vw, 2.35rem);
  display: grid;
  gap: 2rem;
}
.av-section__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}
.av-section__head h3 {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.35rem;
  font-weight: 500;
  color: #f4efe5;
}
.av-section__head span {
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #b88b4a;
}

/* Premium year timeline */
.av-year {
  position: relative;
  padding: 1.35rem 0 0.5rem;
}
.av-year__rail {
  position: relative;
  height: 3.25rem;
  border-radius: 2px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent),
    rgba(2, 6, 4, 0.55);
  border: 1px solid rgba(184, 139, 74, 0.18);
  overflow: hidden;
}
.av-year__months {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  pointer-events: none;
}
.av-year__month {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 0.35rem;
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(244, 239, 229, 0.38);
  border-left: 1px solid rgba(184, 139, 74, 0.08);
}
.av-year__month:first-child { border-left: 0; }
.av-year__bands {
  position: absolute;
  left: 0;
  right: 0;
  top: 0.45rem;
  height: 1.35rem;
}
.av-year__band {
  position: absolute;
  top: 0;
  height: 100%;
  border-radius: 2px;
  opacity: 0.92;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transition: filter 0.25s;
}
.av-year__band:hover {
  filter: brightness(1.12);
  z-index: 2;
}
.av-year__legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1.1rem;
  margin-top: 1rem;
}
.av-year__legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.72rem;
  color: rgba(244, 239, 229, 0.72);
}
.av-year__swatch {
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 1px;
}

/* Tone palette */
.av-tone--peak { background: linear-gradient(90deg, #c9a24a, #e0c083); }
.av-tone--rut { background: linear-gradient(90deg, #8b3a2f, #c45c4a); }
.av-tone--recommended { background: linear-gradient(90deg, #3d6b4f, #6a9a72); }
.av-tone--limited { background: linear-gradient(90deg, #8a6a2e, #c4a04a); }
.av-tone--last_minute { background: linear-gradient(90deg, #a33b2c, #d4653a); }
.av-tone--private { background: linear-gradient(90deg, #4a3d6b, #7a6a9a); }
.av-tone--winter { background: linear-gradient(90deg, #3a556b, #6a8aa0); }
.av-tone--info { background: linear-gradient(90deg, #5a5a52, #8a857c); }
.av-tone--closed { background: linear-gradient(90deg, #2a2a28, #4a4a46); }

.av-icon {
  width: 1.15rem;
  height: 1.15rem;
  flex-shrink: 0;
  color: #d8c4a0;
}
.av-icon svg {
  display: block;
  width: 100%;
  height: 100%;
}

.av-periods {
  display: grid;
  gap: 0.85rem;
}
.av-period {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.9rem 1.1rem;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(184, 139, 74, 0.16);
  background: rgba(2, 6, 4, 0.35);
}
.av-period__icon {
  grid-row: span 2;
  width: 2.4rem;
  height: 2.4rem;
  display: grid;
  place-items: center;
  border: 1px solid rgba(184, 139, 74, 0.22);
  background: rgba(184, 139, 74, 0.06);
}
.av-period__icon .av-icon {
  width: 1.25rem;
  height: 1.25rem;
}
.av-period__title {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.15rem;
  color: #f4efe5;
}
.av-period__dates {
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: #b88b4a;
}
.av-period__meta {
  grid-column: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 1rem;
  font-size: 0.78rem;
  color: rgba(244, 239, 229, 0.55);
}
.av-period__notes {
  grid-column: 2;
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.55;
  color: rgba(244, 239, 229, 0.7);
}

.av-departures {
  display: grid;
  gap: 0.75rem;
}
.av-departure {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.75rem 1.25rem;
  align-items: center;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(184, 139, 74, 0.18);
  background: linear-gradient(120deg, rgba(28, 52, 36, 0.45), rgba(2, 6, 4, 0.4));
}
.av-departure__label {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.1rem;
  color: #f4efe5;
}
.av-departure__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.9rem;
  margin-top: 0.3rem;
  font-size: 0.75rem;
  color: rgba(244, 239, 229, 0.58);
}
.av-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.15rem 0.45rem;
  border: 1px solid rgba(212, 101, 58, 0.45);
  color: #e8a090;
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.av-departure__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.1rem;
  border: 1px solid rgba(184, 139, 74, 0.45);
  background: linear-gradient(180deg, rgba(200, 154, 88, 0.22), rgba(184, 139, 74, 0.08));
  color: #f4efe5;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  transition: border-color 0.25s, background 0.25s;
}
.av-departure__cta:hover {
  border-color: rgba(224, 192, 131, 0.75);
  background: linear-gradient(180deg, rgba(200, 154, 88, 0.35), rgba(184, 139, 74, 0.14));
}
.av-empty {
  margin: 0;
  padding: 1rem;
  border: 1px dashed rgba(184, 139, 74, 0.2);
  color: rgba(244, 239, 229, 0.45);
  font-size: 0.9rem;
}
.av-modal__status {
  padding: 2.5rem;
  text-align: center;
  color: rgba(244, 239, 229, 0.55);
}
.av-modal__status.is-error { color: #e8a090; }

/* Card season trigger */
button.fact--season,
.fact--season[data-availability-open] {
  appearance: none;
  background: none;
  border: 0;
  padding: 0;
  margin: 0;
  text-align: left;
  color: inherit;
  font: inherit;
  cursor: pointer;
  transition: color 0.25s;
}
body.has-custom-cursor button.fact--season,
body.has-custom-cursor .fact--season[data-availability-open],
body.has-custom-cursor .hunt-card__season--open,
body.has-custom-cursor .dossier-season-open {
  cursor: none !important;
}
button.fact--season:hover dd,
.fact--season[data-availability-open]:hover dd {
  color: #e0c083;
}
button.fact--season:focus-visible,
.fact--season[data-availability-open]:focus-visible {
  outline: 2px solid #b88b4a;
  outline-offset: 3px;
}

/* Homepage cards inject .offer-card__link at z-index:3 over the whole card.
   Without this, Season clicks hit the stretch link and never open the modal. */
.offer-card [data-availability-open],
button.fact--season,
.fact--season[data-availability-open] {
  position: relative;
  z-index: 4;
}

@media (max-width: 640px) {
  .av-departure {
    grid-template-columns: 1fr;
  }
  .av-period {
    grid-template-columns: auto 1fr;
  }
}
