/*
 * Pagina location per il nuovo template Cineprospettive.
 * Dipende dalle variabili e dalle classi generali definite in cine.css.
 */

.body-location {
  min-height: 100%;
}

.cine-brand-logo {
  display: block;
  width: min(290px, 64vw);
  height: auto;
}

.location-page {
  max-width: 1780px;
}

.location-breadcrumb {
  --bs-breadcrumb-divider-color: rgba(255, 255, 255, .35);
  --bs-breadcrumb-item-active-color: rgba(255, 255, 255, .58);
  font-size: .875rem;
}

.location-breadcrumb a,
.location-footer a {
  color: rgba(255, 255, 255, .82);
}

.location-breadcrumb a:hover,
.location-footer a:hover {
  color: #fff;
}

.location-main-card,
.location-info-card,
.location-menu-card {
  overflow: visible;
}

.location-selection-header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.location-year {
  flex: 0 0 auto;
  min-width: 88px;
  padding: .75rem .8rem;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(255, 255, 255, .15), rgba(255, 255, 255, .045));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), 0 12px 28px rgba(0, 0, 0, .24);
  color: #fff;
  font-family: "Saira Semi Condensed", "Roboto", sans-serif;
  font-size: clamp(1.6rem, 2.6vw, 2.35rem);
  font-weight: 800;
  letter-spacing: -.035em;
  line-height: 1;
  text-align: center;
}

.location-heading-copy {
  min-width: 0;
  flex: 1 1 auto;
}

.location-kicker,
.location-side-kicker {
  color: rgba(255, 255, 255, .48);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .105em;
  text-transform: uppercase;
}

.location-film-heading {
  margin: .2rem 0 .7rem;
  color: #fff;
  font-family: "Saira Semi Condensed", "Roboto", sans-serif;
  font-size: clamp(1.45rem, 3vw, 2.45rem);
  font-weight: 800;
  line-height: 1.08;
}

.location-film-heading .location-from {
  color: rgba(255, 255, 255, .55);
  font-weight: 400;
}

.location-film-heading a {
  color: #fff;
  text-decoration-color: rgba(255, 255, 255, .26);
  text-decoration-thickness: 1px;
  text-underline-offset: .18em;
}

.location-film-heading a:hover {
  text-decoration-color: #fff;
}

.location-credits {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1rem;
  color: rgba(255, 255, 255, .65);
  font-size: .86rem;
}

.location-credit-item {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  min-width: 0;
}

.location-credit-item i {
  color: rgba(255, 255, 255, .46);
}

.location-credit-item a {
  color: rgba(255, 255, 255, .92);
  font-weight: 700;
}

.location-credit-item.is-empty {
  opacity: .52;
}

.location-extra-photo { margin: 0 0 1rem; }
.location-extra-photo img { width: 100%; height: auto; border-radius: .5rem; }
.location-extra-photo figcaption { font-size: .8rem; margin-top: .4rem; }

.location-gallery {
  display: grid;
  gap: 1rem;
}

.location-gallery[data-count="1"] {
  grid-template-columns: minmax(0, 1fr);
}

.location-gallery[data-count="2"] {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.location-gallery[data-count="3"] {
  grid-template-columns: minmax(0, 1.55fr) minmax(260px, .9fr);
  grid-template-rows: repeat(2, minmax(0, 1fr));
}

.location-gallery[data-count="3"] .location-shot:first-child {
  grid-row: 1 / 3;
}

.location-shot {
  position: relative;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 17px;
  background: rgba(0, 0, 0, .2);
  box-shadow: 0 16px 34px rgba(0, 0, 0, .24);
}

.location-shot-button {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: #080b11;
  color: inherit;
  cursor: zoom-in;
  text-align: left;
}

.location-shot-media {
  position: relative;
  width: 100%;
  min-height: 260px;
  overflow: hidden;
  background: radial-gradient(circle at 50% 38%, rgba(255, 255, 255, .08), transparent 50%), #080b11;
}

.location-gallery[data-count="1"] .location-shot-media {
  min-height: clamp(330px, 58vw, 720px);
}

.location-gallery[data-count="2"] .location-shot-media {
  min-height: clamp(300px, 34vw, 600px);
}

.location-gallery[data-count="3"] .location-shot:first-child .location-shot-media {
  height: 100%;
  min-height: clamp(520px, 54vw, 820px);
}

.location-gallery[data-count="3"] .location-shot:not(:first-child) .location-shot-media {
  min-height: 250px;
  height: 100%;
}

.location-shot-media img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: contain;
  transition: transform .28s ease, filter .28s ease;
}

.location-shot-button:hover img {
  transform: scale(1.012);
  filter: brightness(1.04);
}

.location-shot-zoom {
  position: absolute;
  top: .75rem;
  right: .75rem;
  display: inline-grid;
  place-items: center;
  width: 2.15rem;
  height: 2.15rem;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 50%;
  background: rgba(7, 10, 15, .65);
  color: #fff;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity .2s ease, transform .2s ease;
}

.location-shot-button:hover .location-shot-zoom,
.location-shot-button:focus-visible .location-shot-zoom {
  opacity: 1;
  transform: translateY(0);
}

.location-shot-caption {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: .75rem;
  padding: .85rem 1rem .95rem;
  border-top: 1px solid rgba(255, 255, 255, .1);
  background: rgba(17, 26, 43, .92);
}

.location-shot-caption > span:first-child {
  min-width: 0;
}

.location-shot-title {
  display: block;
  color: #fff;
  font-size: .9rem;
  font-weight: 700;
}

.location-shot-author {
  display: block;
  margin-top: .12rem;
  color: rgba(255, 255, 255, .56);
  font-size: .77rem;
}

.location-shot-author a {
  color: rgba(255, 255, 255, .88);
  font-weight: 700;
}

.location-quality {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  padding: .22rem .45rem;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 999px;
  color: rgba(255, 255, 255, .7);
  font-size: .68rem;
  white-space: nowrap;
}

.location-quality--verified i {
  color: #2fb95e;
}

.location-quality--alternative i {
  color: #ffa93b;
}

.location-gallery-note {
  color: rgba(255, 255, 255, .48);
  font-size: .8rem;
  text-align: center;
}

.location-sidebar-sticky {
  position: sticky;
  top: 84px;
}

.location-name {
  color: #fff;
  font-family: "Saira Semi Condensed", "Roboto", sans-serif;
  font-size: 1.28rem;
  font-weight: 800;
  line-height: 1.1;
}

.location-city {
  color: rgba(255, 255, 255, .7);
  font-size: .84rem;
}

.location-status {
  flex: 0 0 auto;
  display: inline-grid;
  place-items: center;
  width: 2.35rem;
  height: 2.35rem;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 50%;
  background: rgba(255, 255, 255, .06);
}

.location-status-open {
  color: #2fb95e;
}

.location-status-improvable {
  color: #ffa93b;
}

.location-status-closed {
  color: #e44b44;
}

.location-map {
  position: relative;
  display: block;
  overflow: hidden;
  min-height: 180px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .025));
}

.location-map img {
  display: block;
  width: 100%;
  height: 190px;
  object-fit: cover;
  transition: transform .28s ease, opacity .28s ease;
}

.location-map:hover img {
  transform: scale(1.025);
  opacity: .82;
}

.location-map-action {
  position: absolute;
  right: .65rem;
  bottom: .65rem;
  padding: .35rem .55rem;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 999px;
  background: rgba(5, 8, 13, .78);
  color: #fff;
  font-size: .73rem;
  font-weight: 700;
}

.location-section-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: .75rem;
}

.location-side-title {
  margin: .12rem 0 0;
  color: #fff;
  font-family: "Saira Semi Condensed", "Roboto", sans-serif;
  font-size: 1.08rem;
  font-weight: 800;
}

.location-frame-list {
  display: grid;
  gap: .55rem;
  max-height: min(42vh, 410px);
  overflow: auto;
  padding-right: .18rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, .28) transparent;
}

.location-frame-option {
  position: relative;
  display: grid;
  grid-template-columns: 3.6rem minmax(0, 1fr) auto;
  gap: .65rem;
  align-items: center;
  width: 100%;
  padding: .65rem .7rem;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 12px;
  background: rgba(255, 255, 255, .035);
  color: rgba(255, 255, 255, .76);
  text-align: left;
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}

.location-frame-option:hover {
  border-color: rgba(255, 255, 255, .23);
  background: rgba(255, 255, 255, .07);
  transform: translateX(-2px);
}

.location-frame-option.is-active {
  border-color: rgba(255, 255, 255, .34);
  background: rgba(255, 255, 255, .12);
  color: #fff;
  box-shadow: inset 3px 0 0 #fff;
}

.location-frame-year {
  color: #fff;
  font-family: "Saira Semi Condensed", "Roboto", sans-serif;
  font-size: 1rem;
  font-weight: 800;
}

.location-frame-copy {
  min-width: 0;
}

.location-frame-title {
  display: block;
  overflow: hidden;
  color: inherit;
  font-size: .82rem;
  font-weight: 700;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.location-frame-number,
.location-frame-photo-count {
  color: rgba(255, 255, 255, .45);
  font-size: .68rem;
}

.location-frame-photo-count {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  white-space: nowrap;
}

.location-frame-option.is-active .location-frame-photo-count,
.location-frame-option.is-active .location-frame-number {
  color: rgba(255, 255, 255, .7);
}

.verified-links {
  display: grid;
  gap: .55rem;
}

.verified-link {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: .65rem;
  padding: .65rem .7rem;
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 12px;
  background: rgba(0, 0, 0, .13);
  color: rgba(255, 255, 255, .76);
}

.verified-link:hover {
  border-color: rgba(255, 255, 255, .22);
  background: rgba(255, 255, 255, .055);
  color: #fff;
}

.verified-link-year {
  color: #fff;
  font-weight: 800;
}

.verified-link-title {
  overflow: hidden;
  font-size: .78rem;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.location-footer {
  border-top: 1px solid rgba(255, 255, 255, .08);
  background: rgba(5, 8, 13, .25);
}

.location-lightbox .modal-content {
  overflow: hidden;
}

.location-lightbox-body {
  display: grid;
  place-items: center;
  min-height: min(72vh, 850px);
  padding: 0;
  background: #05070b;
}

.location-lightbox-body img {
  display: block;
  width: 100%;
  max-height: 82vh;
  object-fit: contain;
}

.location-demo-placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  min-height: inherit;
  padding: 2rem;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .06) 25%, transparent 25%) 0 0 / 24px 24px,
    linear-gradient(315deg, rgba(255, 255, 255, .045) 25%, transparent 25%) 0 0 / 24px 24px,
    #0b1019;
  color: rgba(255, 255, 255, .58);
  text-align: center;
}

.location-demo-placeholder i {
  display: block;
  margin-bottom: .65rem;
  color: rgba(255, 255, 255, .78);
  font-size: 2rem;
}
#location-map {
    width: 100%;
    height: 320px;
}

@media (max-width: 1199.98px) {
  .location-gallery[data-count="3"] {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: auto;
  }

  .location-gallery[data-count="3"] .location-shot:first-child {
    grid-column: 1 / 3;
    grid-row: auto;
  }

  .location-gallery[data-count="3"] .location-shot:first-child .location-shot-media {
    min-height: clamp(360px, 52vw, 620px);
  }
}

@media (max-width: 991.98px) {
  .location-sidebar-sticky {
    position: static;
  }

  .location-frame-list {
    max-height: none;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .location-map img {
    height: 240px;
  }
}

@media (max-width: 767.98px) {
  .location-selection-header {
    gap: .75rem;
  }

  .location-year {
    min-width: 72px;
    border-radius: 13px;
  }

  .location-credits {
    display: grid;
    gap: .35rem;
  }

  .location-gallery[data-count="2"],
  .location-gallery[data-count="3"] {
    grid-template-columns: minmax(0, 1fr);
  }

  .location-gallery[data-count="3"] .location-shot:first-child {
    grid-column: auto;
  }

  .location-gallery[data-count="1"] .location-shot-media,
  .location-gallery[data-count="2"] .location-shot-media,
  .location-gallery[data-count="3"] .location-shot:first-child .location-shot-media,
  .location-gallery[data-count="3"] .location-shot:not(:first-child) .location-shot-media {
    min-height: clamp(270px, 72vw, 470px);
  }

  .location-frame-list {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 479.98px) {
  .location-selection-header {
    display: grid;
    grid-template-columns: 1fr;
  }

  .location-year {
    width: fit-content;
    min-width: 0;
    padding: .5rem .7rem;
    font-size: 1.35rem;
  }

  .location-frame-option {
    grid-template-columns: 3.2rem minmax(0, 1fr);
  }

  .location-frame-photo-count {
    grid-column: 2;
  }
}

@media (prefers-reduced-motion: reduce) {
  .location-shot-media img,
  .location-shot-zoom,
  .location-frame-option,
  .location-map img {
    transition: none;
  }
}
