/* Attractions and centres: the "Vi har ikke X i [by]" bar on attraction pages
   and the block "Forlystelser i centret". Colours follow assets/scss/variables.scss:
   yellow #F5A600, dark grey #383530, light grey #8B8780, background #F8F8F8. */

/* ---- Bar on the attraction page ---------------------------------------- */

.adt-ac {
  position: relative;
  z-index: 5;
  background: #f8f8f8;
  border-top: 1px solid #ececec;
  border-radius: 0 0 25px 25px;
  box-shadow: 0 6px 12px rgba(56, 53, 48, 0.12);
  color: #383530;
}

.adt-ac[hidden] {
  display: none;
}

.adt-ac-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  max-width: 1140px;
  margin: 0 auto;
  padding: 12px 20px 16px;
}

.adt-ac-title {
  margin: 0;
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 16px;
  line-height: 1.35;
  text-align: center;
}

/* "Se hvem der har" and "Luk": real buttons, easy to see and to hit. */
.adt-ac-open,
.adt-ac-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  border-radius: 25px;
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 15px;
  line-height: 1.2;
  cursor: pointer;
  transition: background-color 150ms ease-out, border-color 150ms ease-out, color 150ms ease-out;
}

.adt-ac-open {
  padding: 10px 26px;
  border: 2px solid #f5a600;
  background: #f5a600;
  color: #ffffff;
}

/* A small arrow: this opens something. */
.adt-ac-open::after {
  content: "";
  width: 7px;
  height: 7px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg);
}

.adt-ac-open:hover,
.adt-ac-open:focus-visible {
  border-color: #383530;
  background: #383530;
}

.adt-ac-close {
  flex: none;
  padding: 8px 18px;
  border: 2px solid #383530;
  background: #ffffff;
  color: #383530;
}

.adt-ac-close:hover,
.adt-ac-close:focus-visible {
  background: #383530;
  color: #ffffff;
}

/* ---- The dialog with the map ------------------------------------------- */

html.adt-ac-locked {
  overflow: hidden;
}

.adt-ac-dialog {
  width: min(760px, calc(100% - 24px));
  max-width: none;
  max-height: calc(100% - 24px);
  margin: auto;
  padding: 0;
  overflow: auto;
  overscroll-behavior: contain;
  border: 0;
  border-radius: 25px;
  background: #f8f8f8;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
  color: #383530;
}

.adt-ac-dialog::backdrop {
  background: rgba(56, 53, 48, 0.6);
}

.adt-ac-box {
  padding: 16px 16px 20px;
}

.adt-ac-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.adt-ac-dialog .adt-ac-heading {
  margin: 0;
  padding-top: 9px;
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 18px;
  line-height: 1.3;
  text-align: left;
}

.adt-ac-intro {
  margin: 8px 0 16px;
  font-size: 14px;
  line-height: 1.5;
}

.adt-ac-intro > :last-child {
  margin-bottom: 0;
}

.adt-ac-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.adt-ac-map {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 20px;
  background: #bfe3f2;
}

.adt-ac-map[hidden] {
  display: none;
}

.adt-ac-map svg {
  display: block;
  width: 100%;
  height: 100%;
}

.adt-ac-sea {
  fill: #bfe3f2;
}

.adt-ac-neighbour {
  fill: #e2e6e3;
}

.adt-ac-land {
  fill: #ffffff;
  stroke: #9fcfe2;
  stroke-linejoin: round;
}

.adt-ac-dot {
  fill: #f5a600;
  stroke: #ffffff;
  cursor: pointer;
}

.adt-ac-dot:not(.is-near) {
  fill: #f5c25a;
}

.adt-ac-here circle {
  fill: #383530;
  stroke: #ffffff;
}

.adt-ac-here path {
  fill: #ffffff;
  stroke: #ffffff;
  stroke-linejoin: round;
}

.adt-ac-labels text {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  fill: #383530;
  stroke: #ffffff;
  paint-order: stroke;
  stroke-linejoin: round;
  pointer-events: none;
}

.adt-ac-switch {
  margin: 0 0 8px;
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 14px;
  line-height: 1.3;
  text-align: center;
}

.adt-ac-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.adt-ac-list li {
  margin: 0 0 8px;
  padding: 0;
}

.adt-ac-list li::before {
  display: none;
}

.adt-ac-list button {
  display: block;
  width: 100%;
  padding: 11px 16px;
  border: 2px solid #f5a600;
  border-radius: 25px;
  background: #ffffff;
  color: #383530;
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 14px;
  line-height: 1.3;
  text-align: center;
  cursor: pointer;
  transition: background-color 150ms ease-out, color 150ms ease-out;
}

.adt-ac-list button:hover,
.adt-ac-list button:focus-visible {
  background: #f5a600;
  color: #ffffff;
}

@media (min-width: 768px) {
  .adt-ac-inner {
    flex-direction: row;
    justify-content: center;
    gap: 24px;
    padding: 14px 38px;
  }

  .adt-ac-title {
    font-size: 18px;
  }

  .adt-ac-box {
    padding: 24px 28px 28px;
  }

  .adt-ac-dialog .adt-ac-heading {
    font-size: 20px;
  }

  .adt-ac-body {
    flex-direction: row;
    align-items: flex-start;
    gap: 28px;
  }

  .adt-ac-map {
    flex: 0 0 360px;
    width: 360px;
  }

  .adt-ac-side {
    flex: 1 1 auto;
    padding-top: 6px;
  }
}

/* ---- Block "Forlystelser i centret" ------------------------------------ */

.adt-center-activities {
  max-width: 1140px;
  margin: 2rem auto;
  padding: 0 20px;
  color: #383530;
}

.adt-center-activities.alignfull,
.adt-center-activities.alignwide {
  padding-left: 38px;
  padding-right: 38px;
}

.adt-ca-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 4px 16px;
  padding-bottom: 4px;
  border-bottom: 1px solid #f5a600;
}

/* The theme's own h3 size, like "Kontakt" on the centre pages. */
.adt-center-activities .adt-ca-head h3 {
  margin: 0;
}

/* Centre pages: on phones the copy under the opening hours is shown instead
   of the original (center-page.php). */
.adt-center-activities.adt-ca-mobile {
  display: none;
}

@media (max-width: 767px) {
  .adt-center-activities.adt-ca-mobile {
    display: block;
  }

  body:has(.adt-ca-mobile) .adt-center-activities:not(.adt-ca-mobile) {
    display: none;
  }
}

.adt-ca-city {
  color: #8b8780;
  font-size: 12px;
  line-height: 1.42;
}

.adt-ca-city b {
  color: #f5a600;
}

.adt-ca-icons {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  margin: 0 -5px;
  padding: 24px 0 0;
}

.adt-ca-icons a,
.adt-ca-icons a[data-dim][data-centers][aria-hidden="true"] {
  position: static;
  display: block;
  width: 67px;
  margin: 0 4px 15px 5px;
  color: #383530;
  font-size: 12px;
  line-height: 1.42;
  text-align: center;
  text-decoration: none;
  word-break: break-word;
  cursor: pointer;
  transition: opacity 300ms ease-out;
}

.adt-ca-icons a::before,
.adt-ca-icons a::after {
  display: none !important;
  content: "" !important;
}

.adt-ca-icons a > *,
.adt-ca-icons a[data-dim][data-centers][aria-hidden="true"] > * {
  opacity: 1;
}

.adt-ca-icons img,
.adt-ca-icons .adt-ca-noimg {
  display: block;
  width: 63px;
  height: 63px;
  margin-bottom: 5px;
  border: 3px solid #ffffff;
  border-radius: 20px;
  background-color: #ffffff;
  box-shadow: 0 0 0 2px #f5a600;
  object-fit: contain;
  transition: box-shadow 300ms ease-out;
}

.adt-ca-icons a span {
  display: block;
}

/* Not in this centre: faint and last, like /forlystelser/. A block that
   follows the city picker gets aria-hidden from script.js; a block fixed to
   one centre only has the class. The links stay usable either way. */
.adt-ca-icons a.is-elsewhere:not([data-centers]),
.adt-ca-icons a[data-centers][aria-hidden="true"] {
  order: 1;
  opacity: 0.2;
}

.adt-ca-icons a.is-elsewhere:not([data-centers]) img,
.adt-ca-icons a.is-elsewhere:not([data-centers]) .adt-ca-noimg,
.adt-ca-icons a[data-centers][aria-hidden="true"] img,
.adt-ca-icons a[data-centers][aria-hidden="true"] .adt-ca-noimg {
  box-shadow: 0 0 0 2px currentColor;
}

.adt-ca-icons a.is-elsewhere:not([data-centers]):hover,
.adt-ca-icons a.is-elsewhere:not([data-centers]):focus-visible,
.adt-ca-icons a[data-centers][aria-hidden="true"]:hover,
.adt-ca-icons a[data-centers][aria-hidden="true"]:focus-visible {
  opacity: 0.6;
}

.adt-ca-icons a:hover img,
.adt-ca-icons a:focus-visible img {
  box-shadow: 0 0 0 3px #f5a600;
}
