.location {
  background-image: url(assets/location/tile-padova.jpg);
  background-size: 250px;
}
.grid-container--location {
  background-image: url(assets/location/background-location-mobile.jpg);
  background-size: 100%;
  background-position: center;
  padding-top: 8rem;
  width: 100%;
  height: 415px;
}

.info-img {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 12px;
}

.info-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.info-img--slideshow img {
  position: absolute;
  inset: 0;
  opacity: 0;
  animation: location-slide 8s infinite;
}

.info-img--slideshow img:nth-child(1) {
  animation-delay: 0s;
}

.info-img--slideshow img:nth-child(2) {
  animation-delay: 4s;
}

@keyframes location-slide {
  0% { opacity: 0; }
  10% { opacity: 1; }
  40% { opacity: 1; }
  50% { opacity: 0; }
  100% { opacity: 0; }
}


@media (min-width: 35rem) {
  .grid-container--location {
    background-image: url(assets/location/background-location-tablet.jpg);
  }
}
@media (min-width: 60em) {
  .grid-container--location {
    background-image: url(assets/location/background-location-desktop.jpg);
    align-items: center;
  }
  .grid-container--location > :first-child {
    grid-column: 2;
  }
  .grid-container--location > :last-child {
    grid-column: 3;
  }
}

.google-map {
  width: 100%;
  max-width: 100%;
  height: 80%;
  padding: 1em;
  border: 0;
}

.location-tabs {
  margin-top: 1.5rem;
}

.location-tablist {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.location-tab {
  background: white;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  padding: 0.6rem 1rem;
  cursor: pointer;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #0c0e18;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.location-tab:focus-visible {
  outline: 2px solid var(--strong-color, rgb(178, 15, 15));
  outline-offset: 2px;
}

.location-tab.is-active {
  background: var(--strong-color, rgb(178, 15, 15));
  color: white;
  border-color: var(--strong-color, rgb(178, 15, 15));
}

.location-tabpanel {
  display: none;
}

.location-tabpanel.is-active {
  display: block;
}


.location .info-box--media {
  --location-image-size: 600px;
  padding-bottom: 0.5rem;
}

@media (min-width: 48rem) {
  .location .info-box--media {
    flex-direction: row;
    align-items: stretch;
    height: calc(var(--location-image-size) + 0.5rem);
    max-height: none;
  }

  .location .info-box--media .info-img {
    flex: 0 0 var(--location-image-size);
    width: var(--location-image-size);
  }

  .location .info-box--media .info-img img {
    height: 100%;
  }

  .location .info-box--media .info-text {
    flex: 1;
    min-width: 0;
    height: 100%;
    overflow: auto;
    align-self: stretch;
  }

  .location .info-box--media .info-text iframe {
    width: 100%;
    height: 100%;
    max-height: none;
    margin: 0;
  }
}


.location #efi11-hotels {
  max-width: 100%;
  overflow: hidden;
}

.location .hotels__list {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.location .hotel {
  min-width: 0;
}

.location .hotel__addr {
  overflow-wrap: anywhere;
}

/* ===== EFI11 Nearby Hotels styles (append to the page CSS) ===== */
#efi11-hotels {
  /* margin-top: 2.5rem; 
  border-top: 1px solid #e5e7eb; 
  padding-top: 1.5rem;*/
  border-radius: 15px;
  padding-right: 1rem;
  padding-left: 1rem;
  margin-bottom: 1rem;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif;
}

#efi11-hotels h2 {
  font-size: 1.6rem;
  margin: 0 0 .5rem;
}

.hotels__note {
  color: #555;
  margin: 0 0 1rem;
  font-size: .95rem;
}

.hotels__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
}

.hotel {
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 12px 14px;
  background: #fff;
}

.hotel__name {
  margin: 0 0 .2rem;
  font-size: 1.05rem;
}

.hotel__addr,
.hotel__stars,
.hotel__tel,
.hotel__site {
  margin: .15rem 0;
  font-size: .95rem;
}

.hotel__addr .CAP::before,
.hotel__addr .city::before,
.hotel__addr .province::before {
  content: " ";
}

.hotel__addr .CAP,
.hotel__addr .province {
  display: none;
}

.hotel__stars {
  letter-spacing: .05em;
  color: #111;
}

.hotel a {
  text-decoration: none;
  border-bottom: 1px dotted #999;
}

.hotel__distance { 
  margin-top: .2rem;
  font-size: .93rem; 
  color: #333; 
}

/*
@media (prefers-color-scheme: white) {
  #efi11-hotels { border-top-color: #2f3338; }
  .hotel { border-color: #2f3338; background: #121416; color: #9aa0a6; }
  .hotels__note { color: #9aa0a6; }
  .hotel a { border-bottom-color: #666; }
  .hotel__distance { color: #c9cdd2; }
}
 ===== /EFI11 Nearby Hotels styles ===== */
