.page-id-18 #page {
  overflow: visible;
}
.calendar {
  border-radius: 30px 30px 0 0;
  background:
    linear-gradient(
      0deg,
      rgba(255, 255, 255, 0.3) 0%,
      rgba(255, 255, 255, 0.3) 100%
    ),
    linear-gradient(0deg, #f8f0da 0%, #f8f0da 100%), #fff;
  margin-top: -25px;
  position: relative;
  z-index: 5;
  top: 0;
}

.select-box {
  position: relative;
  border-radius: 699px;
  border: 1px solid rgba(237, 28, 36, 0.5);
  background: #fff;
  padding: 12px 18px;
  font-family: "DIN Pro Cond";
  font-size: clamp(16px, 0.9375vw, 18px);
  gap: 10px;
}
#search-filter,
#search-filter option,
#month-filter,
#month-filter option {
  color: var(--main-red);
  font-family: "DIN Pro Cond";
  font-size: clamp(16px, 0.9375vw, 18px);
  font-weight: 500;
  outline: none;
  border: none;
}
#search-filter {
  cursor: pointer;
}
.calendar-heading {
  padding: 15px;
  background-color: #fff;
  border-radius: 700px;
  border: 1px solid rgba(0, 0, 0, 0.08);
}
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 10px;
}

.calendar-day {
  background: #f8f8f8;
  min-height: 300px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.calendar-day.empty {
  background: transparent;
  box-shadow: none;
}

.day-number {
  color: var(--main-red);
  padding: 8px 14px;
  font-family: "DIN Pro Cond";
  font-size: clamp(42px, 2.864583333333333vw, 55px);
  font-style: normal;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
  position: relative;
  z-index: 3;
}

.predstava-item.second-event {
  border-top: none;
}

.predstava-item {
  padding: 8px 14px;
  font-size: 0.9em;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}
.calendar-day.past-day {
  position: relative;
}
.calendar-day.past-day::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #ffffff7d;
  z-index: 1;
}
.predstava-scena,
.predstava-vreme {
  display: block;
  color: var(--main-red);
  font-family: "DIN Pro Cond";
  font-size: clamp(14px, 0.8333333333333333vw, 16px);
  font-style: normal;
  font-weight: 500;
  line-height: normal;
  text-transform: uppercase;
}

.predstava-naziv {
  display: block;
  color: #2b2b2b;
  font-family: "DIN Pro Cond";
  font-size: clamp(16px, 1.04166666667vw, 20px);
  font-style: normal;
  font-weight: 500;
  line-height: normal;
  text-transform: uppercase;
  margin-top: 5px;
}

.predstava-vreme {
  position: relative;
}
.predstava-vreme:before {
  position: absolute;
  content: "";
  left: -7px;
  top: 50%;
  transform: translateY(-50%);
  height: 11px;
  width: 1px;
  background-color: rgba(0, 0, 0, 0.08);
}
.calendar-header {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  font-weight: bold;
  text-align: center;
  margin-bottom: 10px;
  position: -webkit-sticky;
  position: sticky;
  top: 114px;
  z-index: 5;
  transition: 0.3s;
  background:
    linear-gradient(
      0deg,
      rgba(255, 255, 255, 0.3) 0%,
      rgba(255, 255, 255, 0.3) 100%
    ),
    linear-gradient(0deg, #f8f0da 0%, #f8f0da 100%), #fff;
}
.calendar-header.calendar-scrolled {
  top: 0;
  transition: 0.3s;
}
.calendar-header div {
  color: #2b2b2b;
  text-align: center;
  font-family: "DIN Pro Cond";
  font-size: clamp(18px, 1.25vw, 24px);
  font-weight: 500;
  line-height: 1;
  text-transform: uppercase;
}

.calendar-header div {
  padding: 5px 0;
  border-radius: 4px;
}
.predstava-header {
  gap: 15px;
}
.calendar-day.empty {
  border-radius: 14px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: rgba(255, 255, 255, 0.6);
}

#calendar-wrapper.loading {
  position: relative;
  opacity: 0.5;
  pointer-events: none;
}

#calendar-wrapper.loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 40px;
  height: 40px;
  border: 4px solid #ccc;
  border-top-color: #000;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  transform: translate(-50%, -50%);
  z-index: 10;
}

@keyframes spin {
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

.calendar__tickets {
  color: var(--main-red);
  font-family: "DIN Pro Cond";
  font-size: clamp(16px, 0.9375vw, 18px);
  font-weight: 500;
  text-transform: uppercase;
  border: none;
  gap: 10px;
  background-color: transparent;
  z-index: 20;
}

.ticket_info {
  max-width: 923px;
  position: fixed;
  overflow-y: auto;
  top: 50%;
  left: 50%;
  width: 100vw;
  height: calc(100% - 100px);
  transform: translate(-50%, -50%);
  background-color: #fff;
  z-index: 105;
  border-radius: 30px;
  padding-bottom: 40px;
  opacity: 0;
  visibility: hidden;
  transition: 0.3s;
}
.ticket_info-sticky {
  font-weight: 700;
  line-height: 1.1;
  text-transform: uppercase;
  max-width: 923px;
  padding-bottom: 40px;
  margin-bottom: 20px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  padding-top: 40px;
  padding-left: 40px;
  padding-right: 40px;
  position: sticky;
  top: 0;
  background-color: #fff;
  z-index: 10;
}
.ticket_info-sticky h2 {
  font-size: clamp(26px, 1.979166666666667vw, 38px);
}
.ticket_info p {
  padding-left: 40px;
  padding-right: 40px;
  color: #000;
  font-family: "DIN Pro";
  font-size: clamp(14px, 0.8333333333333333vw, 16px);
  line-height: 24px;
  letter-spacing: -0.24px;
}
.ticket_info span {
  color: var(--main-red);
  font-weight: 700;
}
.ticket_info a {
  text-decoration: underline;
  font-weight: 700;
}
.ticket_info::-webkit-scrollbar {
  width: 10px;
}

.ticket_info::-webkit-scrollbar-track {
  background: transparent;
  margin: 15px;
}

.ticket_info::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 10px;
  border: 3px solid #fff;
}
.ticket_info-close {
  position: sticky;
  top: 45px;
  float: right;
  cursor: pointer;
  border-radius: 50%;
  border: 1px solid #ed1c24;
  width: 36px;
  height: 36px;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 11;
}
.calendar-popup-close {
  position: absolute;
  top: 20px;
  right: 20px;
  cursor: pointer;
  border-radius: 50%;
  border: 1px solid #ed1c24;
  width: 36px;
  height: 36px;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 11;
}
.ticket_info.active {
  opacity: 10;
  visibility: visible;
}

.view-toggle {
  border-radius: 699px;
  border: 1px solid var(--main-red);
  background: #fff;
  padding: 3px;
  position: relative;
}
.view-toggle button {
  position: relative;
  z-index: 2;
  background-color: transparent;
  border: none;
  color: var(--main-red);
  font-family: "DIN Pro Cond";
  font-size: clamp(16px, 0.9375vw, 18px);
  font-weight: 500;
  text-transform: uppercase;
  border-radius: 699px;
  gap: 5px;
  outline: none;
  padding: 7px 19px;
}
.view-toggle button svg path {
  transition: stroke 0.3s ease;
  stroke: var(--main-red);
}

.view-toggle button.active {
  color: #fff;
}

.view-toggle button.active svg path {
  stroke: #fff;
}

/* #page .toggle-indicator {
  position: absolute;
  top: 3px;
  left: 3px;
  width: calc(50% - 6px);
  height: calc(100% - 6px);
  background: var(--main-red);
  border-radius: 40px;
  z-index: 1;
  transition: all 0.3s ease;
} */

#page .toggle-indicator {
  position: absolute;
  top: 3px;
  left: 3px;
  height: calc(100% - 6px);
  background: var(--main-red);
  border-radius: 40px;
  z-index: 1;
  transition: all 0.3s ease;
  width: 0;
}

#calelistViewBtnndarViewBtn {
  padding-right: 0;
}
/* 
#calendarViewBtn {
  padding-left: 38px;
}
.view-toggle:has(#calendarViewBtn.active) .toggle-indicator {
  left: calc(50% + 3px);
}

.view-toggle:has(#listViewBtn.active) .toggle-indicator {
  left: 3px;
} */
.calendar-list-item {
  background-color: #fff;
  padding: 35px 20px 30px;
  margin-bottom: 20px;
  border-radius: 18px;
}
.calendar-list-image img {
  height: 204px;
  border-radius: 15px;
}
.calendar-list-tickets {
  margin-left: auto;
}
.calendar-list-date,
.calendar-list-image {
  margin-right: 30px;
}
.calendar-list-day {
  color: var(--main-red);
  font-family: "DIN Pro Cond";
  font-size: clamp(30px, 3.385416666666667vw, 65px);
  font-weight: 700;
  line-height: 1;
}
.calendar-list-month {
  color: #2b2b2b;
  font-family: "DIN Pro Cond";
  font-size: clamp(18px, 1.25vw, 24px);
  font-weight: 500;
}
.calendar-list-category {
  color: var(--main-red);
  font-family: "DIN Pro Cond";
  font-size: clamp(16px, 0.9375vw, 18px);
  font-weight: 500;
  border-radius: 699px;
  border: 1px solid rgba(237, 28, 36, 0.5);
  padding: 6px;
  gap: 6px;
  margin-right: 17px;
}
.calendar-list-category.popup {
  border: none;
}
.calendar-list-datetime {
  color: #2b2b2b;
  font-family: "DIN Pro Cond";
  font-size: clamp(16px, 0.9375vw, 18px);
  font-weight: 500;
}
.calendar-list-title a {
  color: #2b2b2b;
  font-family: "DIN Pro Cond";
  font-size: clamp(22px, 1.979166666666667vw, 38px);
  font-weight: 700;
  line-height: 1.1;
}
.calendar-list-excerpt {
  color: #2b2b2b;
  font-family: "DIN Pro";
  letter-spacing: -0.24px;
  max-width: 641px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.calendar-list-link {
  color: var(--main-red);
  font-family: "DIN Pro Cond";
  font-weight: 500;
}
.calendar-list-today {
  color: #fff;
  font-family: "DIN Pro Cond";
  font-size: clamp(16px, 0.9375vw, 18px);
  font-weight: 500;
  border-radius: 699px;
  border: 1px solid rgba(237, 28, 36, 0.5);
  background: var(--main-red);
  padding: 6px;
}
.calendar-grid-box.active,
.calendar-list.active {
  display: block;
}
.calendar-grid-box,
.calendar-list {
  display: none;
}
.calendar-day.today {
  border: 2px solid #ed1c24;
}
.calendar-list-links {
  margin-top: auto;
}

.calendar-popup-inner {
  max-width: 781px;
  position: fixed;
  top: 50%;
  left: 50%;
  width: 100vw;
  height: auto;
  transform: translate(-50%, -50%);
  background-color: #fff;
  z-index: 105;
  border-radius: 30px;
  opacity: 0;
  visibility: hidden;
  transition: 0.3s;
}

.calendar-popup-inner.active {
  opacity: 1;
  visibility: visible;
}

.calendar-popup-content .calendar-list-image img {
  height: 255px;
  display: flex;
  object-fit: cover;
}

.calendar-popup-content .calendar-list-item {
  margin-bottom: 0;
  padding: 20px;
}
.calendar-list-image {
  max-width: 155px;
  width: 100%;
  object-fit: cover;
}
.month-switcher,
.calendar-list.calendar-list--mobile {
  display: none;
}

@media only screen and (max-width: 1440px) {
  .global__content {
    left: 15px;
  }
}

@media only screen and (max-width: 1280px) {
  .calendar-day {
    min-height: 250px;
  }
}
@media only screen and (max-width: 1199px) {
  .calendar-grid-box.active {
    display: none;
  }
  .calendar-list {
    display: block;
  }
  .calendar-heading .view-toggle {
    display: none;
  }
  .home-repertoar-heading__left .select-box:first-child {
    display: none;
  }
  .month-switcher {
    display: flex;
    margin-bottom: 45px;
  }
  .ticket_info h2 {
    top: 0;
  }
  .ticket_info p {
    padding-left: 15px;
    padding-right: 15px;
  }
  .ticket_info-close {
    top: 20px;
  }
  .month-label {
    color: var(--main-red);
    text-align: center;
    font-family: "DIN Pro Cond";
    font-size: 26px;
    font-weight: 700;
    line-height: 34px;
    text-transform: uppercase;
    margin-right: 40px;
    margin-left: 40px;
  }
  .month-arrow {
    background-color: #fff;
    border-radius: 50%;
    padding: 7px 7px 5px 8px;
  }
  #calendar-wrapper #next-month {
    display: none;
  }
  .global__content {
    /* left: 48px; */
  }
}
@media only screen and (max-width: 991px) {
  .calendar-list.calendar-list--mobile {
    display: block;
  }
  .calendar-list-item--desktop {
    display: none;
  }
  .calendar-list-date-box {
    background-color: #fff;
    padding: 2px 11px;
    border-radius: 8px;
    margin-right: 12px;
  }
  .calendar-list-weekday {
    color: #1a1a1a;
    font-family: "DIN Pro Cond";
    font-size: 16px;
    font-weight: 500;
    line-height: 24px;
  }
  .calendar-list-count {
    color: #5f6368;
    font-family: "DIN Pro Cond";
    font-size: 14px;
    font-weight: 500;
    line-height: 19.5px;
    text-transform: lowercase;
  }
  .calendar-list-meta {
    margin-right: 20px;
  }

  .calendar-list-today {
    padding: 6px 14px;
  }
}
@media only screen and (max-width: 767px) {
  .calendar-list--mobile .calendar-list-item {
    position: relative;
  }
  .calendar-list-excerpt {
    display: none;
  }
  .calendar-list-image {
    min-width: 91px;
    max-width: 91px;
    margin-right: 10px;
  }
  .calendar-list-image img {
    height: 130px;
    border-radius: 6px;
  }
  .calendar-list-item {
    padding: 9px;
    border-radius: 10px;
  }
  #calendar-wrapper .calendar-list-tickets svg {
    display: none;
  }
  .calendar-list-category {
    border: none;
  }
  .calendar-list-tickets {
    position: absolute;
    right: 9px;
    bottom: 9px;
  }
  .calendar-list-tickets a {
    padding: 6px 14px;
  }
  .global__content {
    left: 15px;
  }
  .global-hero::after {
    display: none;
  }
  .ticket_info-sticky {
    padding: 20px;
  }
  .ticket_info {
    border-radius: 14px;
  }
}

@media only screen and (max-width: 567px) {
  .month-switcher {
    justify-content: space-between;
  }
  .calendar {
    border-radius: 20px 20px 0 0;
  }
}
