.trips-overview-headline {
  grid-column: 2 / span 12;
  text-align: center;
  margin-bottom: var(--s-md);
}

.trips-overview-description {
  grid-column: 2 / span 12;
  text-align: center;
  justify-self: center;
  width: min(100%, 84ch);
}

.trips-overview-filter-wrapper {
  grid-column: 3 / span 10;
  display: flex;
  justify-content: center;
  gap: var(--grid-gap);
  margin-top: var(--s-md);
  margin-bottom: var(--s-lg);
}

.trips-overview-filter-btn {
  display: flex;
  align-items: center;
  gap: 1.5em;
  background-color: var(--yellow);
  color: var(--white);
}

.trips-overview-filter-btn.active {
  background-color: var(--red);
}

.trips-overview-filter-btn.trips {
  grid-column: 1 / span 1;
  grid-row: 1 / span 1;
  justify-self: flex-end;
}

.trips-overview-filter-btn.calendar {
  grid-column: 2 / span 1;
  grid-row: 1 / span 1;
}

.trips-overview-filter-btn::after {
  content: "";
  mask-repeat: no-repeat;
  mask-size: contain;
  background-color: currentColor;
  height: 1em;
}

.trips-overview-filter-btn.trips::after {
  mask-image: url("../../img/location.svg");
  aspect-ratio: 113/150;
}

.trips-overview-filter-btn.calendar::after {
  aspect-ratio: 131/150;
  mask-image: url("../../img/calendar.svg");
}

.trips-overview-filter-btn.appointments::after {
  display: none;
}

.trips-overview-list {
  grid-column: 4 / span 8;
}

.big-img .trips-overview-list {
  grid-column: 3 / span 10;
}

.trips-overview-list-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--grid-gap);
  grid-auto-flow: dense;
}

.trips-overview-item {
  position: relative;
  color: var(--white);
}

.trips-overview-item-img-wrapper {
  aspect-ratio: 364/494;
  width: 100%;
  position: relative;
}

.big-img .trips-overview-item-img-wrapper {
  aspect-ratio: 456/618;
}

.trips-overview-item-img-wrapper::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  background-color: var(--black);
  opacity: 0.1;
}

.trips-overview-item-text-wrapper {
  position: absolute;
  display: grid;
  grid-template-columns: auto auto;
  grid-template-rows: auto 1fr auto;
  top: 0;
  width: 100%;
  height: 100%;
  padding: max(1rem, 1vw);
}

.trips-overview-item-title-wrapper {
  grid-row: 2 / span 1;
  grid-column: 1 / span 2;
  align-self: center;
  justify-self: center;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-wrap: balance;
}

.trips-overview-item-title {
  font-size: max(1.45rem, 1.3671875vw);
}

.trips-overview-item-dates {
  grid-row: 3 / span 1;
  grid-column: 1 / span 1;
  align-self: flex-end;
}

.trips-overview-item-btn {
  grid-row: 3 / span 1;
  grid-column: 2 / span 1;
  justify-self: flex-end;
}

.trips-overview-item-country {
  font-size: max(1.3rem, 0.78125vw);
  font-family: "Ubuntu";
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.3955em;
}

.trips-overview-item-country::before {
  content: "";
  mask-image: url("../../img/location.svg");
  mask-repeat: no-repeat;
  mask-size: contain;
  background-color: currentColor;
  aspect-ratio: 113/150;
  height: 0.7445em;
}

.trips-overview-item-availability {
  font-size: max(0.875rem, 0.6640625vw);
  font-family: "Ubuntu";
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 1em;
  grid-row: 1 / span 1;
  grid-column: 1 / span 2;
  text-wrap: balance;
}

.trips-overview-item-availability::before,
.appointments-item-btn::before {
  content: "";
  aspect-ratio: 1;
  height: 1.176470588235294em;
  border-radius: 100%;
}

.trips-overview-item-availability.in-stock::before,
.appointments-item-btn.in-stock::before {
  background-color: var(--green);
}

.trips-overview-item-availability.out-of-stock::before,
.appointments-item-btn.out-of-stock::before {
  background-color: var(--red);
}

.trips-overview-item-availability.limited-stock::before,
.appointments-item-btn.limited-stock::before {
  background-color: var(--orange);
}

.trips-overview-item-availability.no-price::before,
.appointments-item-btn.no-price::before {
  background-color: var(--yellow);
}

.event-calendar-wrapper {
  grid-column: 3 / span 10;
}

.event-calendar-utility {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 2em;
  margin-bottom: var(--s-sm);
}

.event-calendar-view-switcher-btn {
  background-color: var(--yellow);
  color: var(--white);
}

.event-calendar-view-switcher-btn.active {
  background-color: var(--red);
}

.appointments-wrapper {
  grid-column: 4 / span 8;
}

.appointments-list {
  display: flex;
  flex-direction: column;
  gap: 0.2777777777em;
}

.appointments-item {
  display: flex;
  color: var(--white);
  font-size: max(0.9375rem, 0.8854166666vw);
}

.appointments-item-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: var(--blue);
  flex: 1 1 20%;
  margin-right: 0.2777777777em;
}

.appointments-item-info {
  background-color: var(--blue);
  flex: 1 1 60%;
  padding: 0.8333333333em 1.3888888888em;
}

.appointments-item-btn {
  flex: 1 1 40%;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  background-color: var(--blue);
  color: var(--white);
  gap: 0.5em;
  text-align: left;
  margin-left: 0.2777777777em;
  padding: 0.8333333333em 1.3888888888em;
}

.appointments-item-btn:hover {
  font-weight: 700;
}

.appointments-item-date-day,
.appointments-item-info-region,
.appointments-item-info-module {
  font-family: "Ubuntu", Sans-serif;
}

.appointments-item-date-day {
  font-size: max(1.5rem, 2.0833333333vw);
}

.appointments-item-info-region {
  font-size: max(1.125rem, 1.3020833333vw);
  font-weight: 400;
  margin-bottom: 0.5em;
}

.appointments-item-info-module {
  font-size: max(1rem, 1.0416666666vw);
  font-weight: 400;
  margin-bottom: 0.5em;
  text-wrap: balance;
}

.appointments-item-info-module {
  display: none;
}

.appointments-item-date-month,
.appointments-item-date-year {
  font-weight: 400;
}

.appointments-item-date-day {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.appointments-item-date-day::after {
  content: "";
  width: 0.75em;
  height: 2px;
  background-color: currentColor;
  margin-block: 0.2em;
}

.appointments-item-info-duration,
.appointments-item-info-location,
.appointments-item-info-accommodation {
  display: flex;
  align-items: center;
  gap: 0.5em;
  margin-top: 0.25em;
}

.appointments-item-info-duration::before,
.appointments-item-info-location::before,
.appointments-item-info-accommodation::before {
  content: "";
  mask-repeat: no-repeat;
  mask-size: contain;
  background-color: currentColor;
  width: 0.85em;
}

.appointments-item-info-duration::before {
  aspect-ratio: 131/150;
  mask-image: url("../../img/calendar.svg");
}

.appointments-item-info-location::before {
  aspect-ratio: 113/150;
  mask-image: url("../../img/location.svg");
}

.appointments-item-info-accommodation::before {
  aspect-ratio: 1;
  mask-image: url("../../img/hotel.svg");
}

@media (max-width: 1399.98px) {
  .trips-overview-list,
  .appointments-wrapper {
    grid-column: 3 / span 10;
  }
}

@media (max-width: 1199.98px) {
  .trips-overview-list,
  .event-calendar-wrapper,
  .appointments-wrapper,
  .trips-overview-filter-wrapper,
  .big-img .trips-overview-list {
    grid-column: 2 / span 12;
  }
}

@media (max-width: 991.98px) {
  .trips-overview-list-inner {
    grid-template-columns: repeat(3, 1fr);
  }

  .trips-overview-list-inner > :nth-last-child(2),
  .trips-overview-list-inner > :last-child {
    grid-column: unset;
  }
}

@media (max-width: 767.98px) {
  .trips-overview-list-inner {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 575.98px) {
  .appointments-item {
    flex-direction: column;
  }

  .appointments-item-date {
    margin-right: 0;
    padding-block: 1em;
  }

  .appointments-item-btn {
    margin-left: 0;
  }

  .trips-overview-filter-wrapper {
    flex-direction: column;
    align-items: center;
  }

  .trips-overview-filter-btn.btn {
    width: min(100%, 24ch);
    justify-content: center;
  }
}

@media (max-width: 475.98px) {
  .trips-overview-list-inner {
    grid-template-columns: 1fr;
  }
}
