.calendar-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-direction: row;
}

.special-promo {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  background: linear-gradient(90deg, #f56600 0%, #ff9246 100%);
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  white-space: nowrap;
  font-family: 'Outfit', sans-serif;
  border-radius: 10px;
  transition: transform 0.2s ease;
}

.special-promo:hover {
  transform: translateY(-3px);
}

@media (max-width: 1600px) {
  .calendar-section {
    flex-direction: column;
    align-items: start;
    gap: 0px;
    margin-bottom: 20px;
  }
}

@media (max-width: 1024px) {
  .calendar-section {
    flex-direction: column;
    align-items: center;
    gap: 0px;
  }
}

/* Tema dark */
:root {
  --highlight: #c0383c;
  --accent-color: #c0383c;
  --right-column-bg: #dddcd8;
  --text-color: #333333;
  --address-color: #666666;
}

/* Chrome, Edge and Safari */
*::-webkit-scrollbar {
  height: 10px;
  width: 10px;
}

*::-webkit-scrollbar-track {
  border-radius: 5px;
  background-color: #E9AC5B;
}

*::-webkit-scrollbar-track:hover {
  background-color: #E9AC5B;
}

*::-webkit-scrollbar-track:active {
  background-color: #E9AC5B;
}

*::-webkit-scrollbar-thumb {
  border-radius: 5px;
  background-color: #552A00;
}

*::-webkit-scrollbar-thumb:hover {
  background-color: #552A00;
}

*::-webkit-scrollbar-thumb:active {
  background-color: #552A00;
}

body {
  color: var(--text-color);
  font-family: 'Montserrat', sans-serif;
  margin: 0;
  padding: 0;
  height: 100vh;
  display: flex;
  background: linear-gradient(90deg, rgba(26,96,134,1) 0%, rgba(183,230,255,1) 100%);
}

/* Colonna locandina */
#poster-column {
  height: 100vh;
  overflow: hidden;
  position: relative;
}

#poster-column img {
  height: 100%;
  width: auto;
  display: block;
  object-fit: contain;
  position: relative;
  content: url('../images/movie-poster.jpg');
}

#poster-mobile {
  display: none;
}

/* Contenitore principale */
#main-container {
  flex: 1;
  height: 100vh;
  overflow-y: auto;
  padding: 32px 32px 6px 32px;
  box-sizing: border-box;
}

/* Autocomplete */
#autocomplete-container {
  position: relative;
}

.autocomplete-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid #333;
  background: #ffffff;
  max-width: 400px;
  position: absolute;
  z-index: 99;
}

.autocomplete-list li {
  padding: 5px 10px;
  cursor: pointer;
  color: var(--text-color);
}

.autocomplete-list li:hover,
.autocomplete-list li.selected {
  background-color: #f0f0f0;
  cursor: pointer;
}

/* Form di ricerca */
#city-ajax {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 12px 12px 35px;
  margin-bottom: 0px;
  border: 1px solid #fff;
  background: #fff url(https://cdn.jsdelivr.net/npm/bootstrap-icons/icons/search.svg) no-repeat right 10px center;
  color: var(--text-color);
  /* Updated text color */
  font-size: 1rem;
  border-radius: 3px;
  max-width: 515px;
  font-family: 'Montserrat', sans-serif;
}

/* Pulsanti day-tabs */
#day-tabs {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: #444 #121212;
  padding: 16px 0;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  width: 100%;
  justify-content: flex-start;
}

#day-tabs::-webkit-scrollbar {
  height: 8px;
}

#day-tabs::-webkit-scrollbar-thumb {
  background-color: #444;
  border-radius: 3px;
}

#day-tabs::-webkit-scrollbar-track {
  background-color: #121212;
}

.day-button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-width: 60px;
  height: 70px;
  border: none;
  background-color: #121212;
  border-radius: 10px;
  color: #fff;
  font-family: 'Outfit', sans-serif;
  cursor: pointer;
  transition: transform 0.2s ease;
  padding: 0;
  overflow: hidden;
}

.day-button .day-name {
  width: 100%;
  font-size: 0.8rem;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  margin: 0;
  padding: 4px 0;
}

.day-button .day-number {
  line-height: 1.2em;
  font-size: 2rem;
  font-weight: bold;
  margin: 0;
  color: #fff;
  padding: 4px 0;
}

.day-button .day-month {
  display: none;
}

.day-button:hover {
  transform: translateY(-3px);
  background-color: #fff;
}

.day-button:hover .day-name {
  background: linear-gradient(90deg, #f56600 0%, #ff9246 100%) !important;
  color: #fff;
}

.day-button:hover .day-number {
  color: #222;
}

.day-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.day-button.active {
  background-color: #fff;
}

.day-button.active .day-name {
  background: linear-gradient(90deg, #f56600 0%, #ff9246 100%) !important;
}

.day-button.active .day-number {
  color: #222;
}

/* Risultati showtimes */
.cinema-result {
  background-color: #FBE3C2;
  /*background: linear-gradient(90deg, rgba(255,237,213,1) 0%, rgba(233,170,89,1) 100%);*/
  border: 3px solid #532c00;
  box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.5);
  margin-bottom: 24px;
  padding: 24px;
  max-width: 100%;
  border-radius: 10px;
}

.cinema-info {
  gap: 10px;
}

.cinema-details {
  display: flex;
  justify-content: space-between;
}

.cinema-details .theater-name {
  padding-right: 10px;
}

.cinema-details .theater-info-right {
  padding-left: 10px;
  padding-top: 5px;
}

.website-button {
  display: flex;
  flex: 0;
  align-self: flex-start;
  align-items: center;
  gap: 4px;
  padding: 5px 8px;
  background-color: #444;
  border: none;
  border-radius: 3px;
  color: #fff;
  font-size: 0.7rem;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.3s ease;
}

.website-button:hover {
  transform: translateY(-3px);
}

.time-box {
  display: inline-block;
  padding: 4px 8px;
  background-color: #f2dea5;
  border-radius: 3px;
  color: #fff;
  font-size: 0.8rem;
  margin: 2px;
  font-weight: 600;
}

.theater-name {
  margin: 0;
  color: #111;
  font-size: 1.2rem;
  margin-bottom: 8px;
  font-weight: 600;
}

.theater-name a {
  color: #fff;
  text-decoration: none;
}

.theater-sub {
  font-size: 0.9rem;
  color: #555;
  margin-bottom: 16px;
  position: relative;
}

.theater-info-right {
  /*position: absolute;
  right: 0;
  top: -28px; /* Posiziona l'elemento in alto a livello del nome del cinema */
  display: flex;
}

.theater-sub .theater-address {
  flex: 1;
}

.theater-info-right {
  display: flex;
}

.theater-distance {
  color: #111;
  font-weight: 600;
  font-size: 0.9rem;
  white-space: nowrap;
}

.map-link {
  color: #111;
  transition: all 0.3s ease;
  font-size: 1.2rem;
  display: inline-flex;
  margin-left: 8px;
}

.map-link:hover {
  color: #FFEECE;
  transform: translateY(-3px);
}

.showtimes-wrapper {
  width: 100%;
  margin-top: 16px;
}

.showtimes-container {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  width: 100%;
}

.time-box {
  display: inline-block;
  padding: 8px 16px;
  background-color: #552A00;
  border-radius: 4px;
  text-decoration: none;
  color: #fff;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  margin-right: 12px;
  margin-bottom: 12px;
  font-weight: 700;
}

.time-box:not(.disabled):hover {
  background-color: #fff;
  color: #000;
  transform: translateY(-3px);
}

.time-box.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}



.no-result {
  /*font-style: italic;*/
  color: #aaa;
  margin-top: 10px;
  font-size: 1em;
  padding: 20px;
  text-align: center;
}

.no-result i {
  font-size: 2em;
  color: #ccc;
  padding-bottom: 20px;
}

.error {
  color: var(--accent-color);
  /* Updated accent color */
  font-weight: bold;
  margin-top: 10px;
}

/* Lista scrollabile */
#ajax-result {
  padding-bottom: 6px;
}

/* Indicatore di caricamento */
.loading-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

.spinner {
  width: 30px;
  height: 30px;
  border: 3px solid var(--right-column-bg);
  border-top: 3px solid var(--accent-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 15px;
}

.loading-text {
  font-size: 0.9rem;
  color: #aaa;
  font-family: 'Montserrat', sans-serif;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.copyright-text {
  text-align: center;
  font-size: 0.75rem;
  color: #333;
  margin-top: 20px;
  padding-bottom: 40px;
  font-family: 'Montserrat', sans-serif;
  line-height: 1.4;
}

.copyright-text a {
  color: #636354;
}

.copyright-text a:hover {
  color: #7e7e6d;
}

.ed-special-title{
  color: #fff;
  font-weight: 500;
}
.ed-sidebar {
  width: 300px !important;
  background-color: #222;
  z-index: 9999;
}

.ed-menu-link {
  font-family: "Gabarito", sans-serif;
  font-weight: 500;
}

.ed-menu-link:hover {
  background-color: #111;
}
.ed-offcanvas {
  z-index: 999999;
  box-shadow: 0px 0px 10px #000;
}
.ed-social {
  background-color: #111;
  width: 40px;
  height: 40px;
  color: #fff;
  text-decoration: none;
}
.ed-social:hover {
  background-color: #000;
}

/* Ottimizzazione per mobile */
@media (min-width: 1024px) {
  #main-container {
    width: 50%;
    margin-right: 0;
  }

  #day-tabs {
    width: 100%;
    /*background: var(--right-column-bg);*/
    margin: 0 0 0px 0;
    padding: 20px 0 20px 0;
    box-sizing: border-box;
  }
}

@media (max-width: 1024px) {
  body {
    display: block;
    height: auto;
    margin: 0;
    padding: 0;
    background-color: #222;
  }

  #day-tabs {
    width: 100%;
    margin: 0 0 15px 0;
    box-sizing: border-box;
    position: relative;
    left: 0;
    padding: 15px;
    background: linear-gradient(90deg, rgba(26,96,134,1) 0%, rgba(183,230,255,1) 100%);
  }

  #ajax-result {
    padding-left: 10px;
    padding-right: 10px;
  }

  .fixed {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    padding: 15px !important;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
  }

  .placeholder {
    display: none;
    width: 100%;
    height: 90px;
    /* Stessa altezza del .header */
  }

  .ed-special-title{
    padding-left: 10px;
  }

  #poster-column {
    /*width: 100%;
      line-height: 0;
      background: none;
      position: static;
      height: auto;*/
    display: none;
  }

  #poster-column img {
    /*width: 100%;
      height: auto;
      display: block;
      content: url('../../poster2.jpg');*/
  }

  #poster-mobile {
    display: flex;
    justify-content: space-between;
    width: 100%;
    line-height: 0;
    position: static;
    height: auto;
    background: linear-gradient(90deg, rgba(26,96,134,1) 0%, rgba(183,230,255,1) 100%);
  }

  #poster-mobile img {
    max-width: 120px;
    height: auto;
    display: block;
  }

  .mob-stamps img {
    max-height: 36px;
    width: auto;
  }

  .mob-head-style {
    line-height: normal;
    padding-right: 20px;
    margin-inline-end: 20px;
    font-size: 0.9rem;
  }

  h1.mob-head-style{
    padding-top: 10px;
    font-size:1.1rem;
  }

  .mob-poster {
    padding: 20px
  }

  .mob-info {
    color: #fff;
    flex-grow: 1;
  }

  #main-container {
    width: 100%;
    padding: 0px;
    box-sizing: border-box;
    position: static;
    height: auto;
  }

  #main-container form {
    padding: 10px;
    background: linear-gradient(90deg, rgba(26,96,134,1) 0%, rgba(183,230,255,1) 100%);
  }

  .cinema-result {
    padding: 15px;
  }

  .cinema-details .theater-info-right {
    padding-top: 0px;
  }

  .theater-name {
    font-size: 1rem;
    margin-bottom: 4px;
  }

  .theater-sub {
    font-size: 0.8rem;
  }

  .time-box {
    font-size: 0.85rem;
    padding: 6px 12px;
  }




}

.search-container {
  position: relative;
  max-width: 515px;
}

.geolocation-icon {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: #000;
  cursor: pointer;
  z-index: 1;
}

.geolocation-icon:hover {
  color: #666;
}