.agenda {
  background: var(--color-paper);
}

.agenda__heading {
  margin-bottom: 72px;
}

.agenda__grid {
  display: grid;
  grid-template-columns: 390px minmax(0, 1fr);
  align-items: stretch;
  gap: 34px;
}

.agenda__carousel {
  display: flex;
  gap: 24px;
  min-width: 0;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  padding: 4px 4px 18px;
  scroll-padding-inline: 4px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}

.agenda__carousel::-webkit-scrollbar {
  height: 8px;
}

.agenda__carousel::-webkit-scrollbar-thumb {
  background: rgba(19, 44, 84, 0.25);
  border-radius: 999px;
}

.calendar-card {
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 290px;
  padding: 24px;
  background: var(--color-paper);
  border: 1px solid rgba(216, 203, 186, 0.7);
  border-radius: 34px;
  box-shadow: var(--shadow-soft);
}

.calendar-card h3 {
  margin: 0 0 8px;
  color: var(--color-navy);
  font-size: 1.75rem;
  line-height: 1.2;
  font-weight: 900;
}

.calendar-card__date {
  min-height: 32px;
  display: grid;
  grid-template-columns: 38px 30px 1fr;
  align-items: center;
  gap: 12px;
  padding: 6px 14px;
  background: var(--color-white);
  border: 1px solid rgba(216, 203, 186, 0.6);
  border-radius: 999px;
  color: var(--color-muted);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.calendar-card__date:hover {
  transform: translateX(4px);
  border-color: rgba(19, 44, 84, 0.3);
}

.calendar-card__date.is-active {
  color: var(--color-white);
  background: var(--color-navy);
  border-color: var(--color-navy);
}

.calendar-card__date span {
  color: var(--color-beige);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.calendar-card__date strong {
  color: inherit;
  font-size: 0.85rem;
  font-weight: 900;
}

.calendar-card__date em {
  font-size: 0.74rem;
  font-style: normal;
  font-weight: 600;
}

.tour-card {
  position: relative;
  flex: 0 0 clamp(300px, 31vw, 390px);
  min-height: 440px;
  overflow: hidden;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-soft);
  scroll-snap-align: start;
}

.tour-card img {
  width: 100%;
  height: 100%;
  min-height: 440px;
  object-fit: cover;
  transition: transform 420ms ease;
}

.tour-card:hover img {
  transform: scale(1.04);
}

.tour-card__media {
  display: block;
  height: 100%;
}

.tour-card::after {
  content: "";
  position: absolute;
  inset: 50% 0 0;
  background: linear-gradient(180deg, rgba(7, 29, 54, 0), rgba(7, 29, 54, 0.82));
}

.tour-card__content {
  position: absolute;
  z-index: 1;
  left: 24px;
  right: 24px;
  bottom: 26px;
  color: var(--color-white);
}

.tour-card__content span {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding: 0 18px;
  margin-bottom: 12px;
  background: rgba(7, 29, 54, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 800;
}

.tour-card h3 {
  margin: 0 0 10px;
  font-size: clamp(1.5rem, 1.8vw, 1.75rem);
  line-height: 1.18;
  font-weight: 900;
}

.tour-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.9375rem;
  line-height: 1.45;
  font-weight: 600;
}

.tour-card__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.tour-card__actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  color: var(--color-navy-deep);
  background: rgba(255, 255, 255, 0.92);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 900;
}

.tour-card__actions a + a {
  color: var(--color-white);
  background: rgba(44, 237, 255, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.28);
}

@media (max-width: 1200px) {
  .agenda__grid {
    grid-template-columns: 320px minmax(0, 1fr);
  }
}

@media (max-width: 720px) {
  .agenda__heading {
    margin-bottom: 36px;
  }

  .agenda__grid {
    grid-template-columns: 1fr;
  }

  .agenda__carousel {
    margin-inline: -14px;
    padding-inline: 14px;
  }

  .tour-card,
  .tour-card img {
    min-height: 380px;
  }

  .tour-card {
    flex-basis: min(82vw, 360px);
  }

  .tour-card__actions {
    display: grid;
  }
}
