.ek-lokaler-listing {
  padding-block: 0 2.5rem;
}

/* Lokaler listing replaces the default paragraphs wrapper on book-lokale. */
.paragraphs__item--eonext_kultur_locale_listing {
  margin-top: 0;
  padding-top: 0;
}

/* Intro text between hero and lokaler list. */
section:has(.ek-lokaler-listing) .paragraphs__item--text_body .rich-text {
  max-width: 820px;
  margin-inline: auto;
  padding-block: 2rem 1rem;
  color: var(--ek-navy, #235881);
  line-height: 1.6;
  text-align: center;
}

section:has(.ek-lokaler-listing) .paragraphs__item--text_body .rich-text p {
  margin: 0 0 0.75rem;
}

section:has(.ek-lokaler-listing) .paragraphs__item--text_body .rich-text p:last-child {
  margin-bottom: 0;
}

.ek-lokaler-listing__hero,
.ek-page-hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100vw;
  min-height: 22rem;
  margin-inline: calc(50% - 50vw);
  overflow: hidden;
  color: #fff;
  text-align: center;
}

.ek-lokaler-listing__hero-img,
.ek-page-hero__img {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ek-lokaler-listing__hero::after,
.ek-page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-color: rgba(35, 88, 129, 0.4);
}

.ek-lokaler-listing__hero-inner,
.ek-page-hero__inner {
  position: relative;
  z-index: 1;
  max-width: 48rem;
  padding: 2rem 1.5rem;
}

.ek-lokaler-listing__hero-title,
.ek-page-hero__title {
  margin: 0;
  font-family: var(--ek-font-heading, inherit);
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.ek-lokaler-listing__inner {
  max-width: 1140px;
  margin-inline: auto;
  padding-inline: 1rem;
}

.ek-lokaler-listing__heading {
  margin: 2rem 0 1.5rem;
  font-family: var(--ek-font-heading, inherit);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--ek-navy, #235881);
  text-align: center;
  text-transform: uppercase;
}

.ek-lokaler-listing .lokaler__item + .lokaler__item {
  border-top: 1px solid rgba(35, 88, 129, 0.12);
}

.ek-lokaler-listing .lokaler__item {
  padding-block: 0;
}

/* Carousel ---------------------------------------------------------------- */
.ek-lokale-carousel {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background-color: var(--ek-cream, #fefaf1);
  border-radius: 4px;
  container-type: size;
}

.ek-lokale-carousel__link {
  display: block;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.ek-lokale-carousel__track {
  display: flex;
  height: 100%;
  transition: transform 0.35s ease;
}

.ek-lokale-carousel__slide {
  flex: 0 0 100%;
  height: 100%;
}

.ek-lokale-carousel__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ek-lokale-carousel__nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 47px;
  height: 105px;
  padding: 14px 12px;
  color: var(--ek-white, #fff);
  cursor: pointer;
  appearance: none;
  background: transparent;
  border: 0;
  box-shadow: none;
  transform: translateY(-50%);
  transition: opacity 0.2s ease;
}

.ek-lokale-carousel__nav-icon {
  display: block;
  width: 24px;
  height: 40px;
  overflow: visible;
}

.ek-lokale-carousel__nav-icon path {
  vector-effect: non-scaling-stroke;
  stroke-width: 5px;
}

.ek-lokale-carousel__nav--prev {
  left: 0;
  border-radius: 0 4px 4px 0;
}

.ek-lokale-carousel__nav--next {
  right: 0;
  border-radius: 4px 0 0 4px;
}

.ek-lokale-carousel__nav:hover,
.ek-lokale-carousel__nav:focus-visible {
  color: var(--ek-white, #fff);
  background: transparent;
  opacity: 0.85;
}

@media (max-width: 767.98px) {
  .ek-lokale-carousel__nav {
    width: 40px;
    height: 88px;
    padding: 12px 10px;
  }

  .ek-lokale-carousel__nav-icon {
    width: 20px;
    height: 32px;
  }
}

/* Listing row ------------------------------------------------------------- */
.ek-lokale-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: stretch;
  margin-block: 2.5rem;
}

@media (max-width: 767.98px) {
  .ek-lokale-row {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
}

.ek-lokale-row__body {
  display: flex;
  flex-direction: column;
}

.ek-lokale-row__name {
  margin: 0 0 0.75rem;
  font-family: var(--ek-font-heading, inherit);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 500;
  color: var(--ek-navy, #235881);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.ek-lokale-row__name a {
  color: inherit;
  text-decoration: none;
}

.ek-lokale-row__name a:hover,
.ek-lokale-row__name a:focus-visible {
  color: var(--ek-teal, #089aa7);
}

.ek-lokale-row__capacity,
.ek-lokale-row__contact-text {
  margin: 0 0 0.75rem;
  color: var(--ek-navy, #235881);
  font-size: 0.95rem;
}

.ek-lokale-row__desc {
  margin: 0 0 1.25rem;
  color: var(--ek-navy, #235881);
  line-height: 1.6;
}

.ek-lokale-row__desc p {
  margin: 0 0 0.75rem;
}

.ek-lokale-row__desc p:last-child {
  margin-bottom: 0;
}

.ek-lokale-row__actions {
  margin-top: auto;
}

/* Detail page ------------------------------------------------------------- */
.ek-lokale-detail {
  padding: 2rem 0 3rem;
}

.ek-lokale-detail__inner {
  max-width: 1140px;
  margin-inline: auto;
  padding-inline: 1rem;
}

.ek-lokale-detail__header {
  margin-bottom: 2rem;
  text-align: center;
}

.ek-lokale-detail__title {
  margin: 0 0 0.75rem;
  font-family: var(--ek-font-heading, inherit);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 500;
  color: var(--ek-navy, #235881);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.ek-lokale-detail__meta {
  margin: 0;
  color: var(--ek-navy, #235881);
  font-size: 1rem;
}

.ek-lokale-detail__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: start;
}

@media (max-width: 767.98px) {
  .ek-lokale-detail__grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

.ek-lokale-detail__desc {
  margin: 0 0 2rem;
  color: var(--ek-navy, #235881);
  font-size: 1.05rem;
  line-height: 1.7;
}

.ek-lokale-detail__desc p {
  margin: 0 0 1rem;
}

.ek-lokale-detail__desc p:last-child {
  margin-bottom: 0;
}

/* Shared actions ---------------------------------------------------------- */
.ek-lokale-row__actions,
.ek-lokale-detail__actions,
.ek-lokale-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: flex-end;
  justify-content: flex-end;
}

.ek-lokale-detail__actions {
  margin-top: 0;
}

.ek-lokale-actions__terms {
  display: inline-flex;
  align-items: flex-end;
  padding: 0 0 1px;
  font-family: var(--ek-font-heading, inherit);
  font-size: 0.8125rem;
  font-weight: 400;
  line-height: 1;
  color: var(--ek-teal, #089aa7);
  letter-spacing: 0.03em;
  text-decoration: underline;
  text-underline-offset: 0.15em;
  text-transform: uppercase;
}

.ek-lokale-actions__terms:hover,
.ek-lokale-actions__terms:focus-visible {
  color: var(--ek-navy, #235881);
}

button.ek-lokale-actions__terms {
  cursor: pointer;
  background: none;
  border: 0;
}

.ek-lokale-actions__terms-details {
  display: flex;
  align-items: flex-end;
  margin: 0;
}

.ek-lokale-actions__terms-details > summary {
  list-style: none;
}

.ek-lokale-actions__terms-details > summary::-webkit-details-marker {
  display: none;
}

.ek-lokale-actions__terms-content {
  margin-top: 0.75rem;
  color: var(--ek-navy, #235881);
  line-height: 1.6;
  text-align: left;
}

.ek-lokale-actions__terms-content p {
  margin: 0 0 0.75rem;
}

.ek-lokale-actions__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 5rem;
  height: 32px;
  padding: 0 1.25rem;
  font-family: var(--ek-font-heading, inherit);
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.03em;
  text-decoration: none;
  text-transform: uppercase;
  border-radius: 0;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.ek-lokale-actions__btn--solid {
  color: #fff;
  background-color: var(--ek-teal, #089aa7);
  border: 1px solid var(--ek-teal, #089aa7);
}

.ek-lokale-actions__btn--solid:hover,
.ek-lokale-actions__btn--solid:focus-visible {
  color: #fff;
  background-color: #067a85;
  border-color: #067a85;
}

.ek-lokale-actions__btn--outline {
  color: var(--ek-teal, #089aa7);
  background-color: var(--ek-cream, #fefaf1);
  border: 1px solid var(--ek-teal, #089aa7);
}

.ek-lokale-actions__btn--outline:hover,
.ek-lokale-actions__btn--outline:focus-visible {
  color: #fff;
  background-color: var(--ek-teal, #089aa7);
}

/* Terms dialog ------------------------------------------------------------ */
.ek-lokale-terms-dialog__body {
  max-width: 40rem;
}

.ek-lokale-terms-dialog.dialog {
  width: min(40rem, calc(100vw - 2rem));
  max-width: none;
  margin: auto;
}

.ek-lokale-terms-dialog__title {
  margin: 0 0 1rem;
  font-family: var(--ek-font-heading, inherit);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--ek-navy, #235881);
  text-transform: uppercase;
}

.ek-lokale-terms-dialog__content {
  color: var(--ek-navy, #235881);
  line-height: 1.6;
}

.ek-lokale-terms-dialog__content p {
  margin: 0 0 0.75rem;
}

/* Page hero paragraph ----------------------------------------------------- */
.paragraphs__item--eonext_kultur_page_hero {
  margin-top: 0;
  padding-top: 0;
}

/* Content pages with page hero (e.g. bookingbetingelser). */
section:has(.ek-page-hero):not(:has(.ek-lokaler-listing)) .paragraphs__item--text_body .rich-text {
  max-width: 820px;
  margin-inline: auto;
  padding: 2rem 1rem 3rem;
  color: var(--ek-navy, #235881);
  font-size: 16px;
  line-height: 1.2;
}

section:has(.ek-page-hero):not(:has(.ek-lokaler-listing)) .paragraphs__item--text_body .rich-text p {
  margin: 0 0 0.75rem;
  font-size: 16px;
  line-height: 1.2;
}

section:has(.ek-page-hero):not(:has(.ek-lokaler-listing)) .paragraphs__item--text_body .rich-text h2 {
  margin: 0 0 1rem;
  font-family: var(--ek-font-heading, inherit);
  font-size: 24px !important;
  font-weight: 400;
  line-height: 1.2;
  color: var(--ek-navy, #235881);
}

section:has(.ek-page-hero):not(:has(.ek-lokaler-listing)) .paragraphs__item--text_body .rich-text h2:not(:first-of-type) {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(35, 88, 129, 0.12);
}

section:has(.ek-page-hero):not(:has(.ek-lokaler-listing)) .paragraphs__item--text_body .rich-text ul,
section:has(.ek-page-hero):not(:has(.ek-lokaler-listing)) .paragraphs__item--text_body .rich-text ol {
  margin: 0 0 0.75rem;
  padding-left: 1.25rem;
}

section:has(.ek-page-hero):not(:has(.ek-lokaler-listing)) .paragraphs__item--text_body .rich-text ul {
  list-style-type: disc;
}

section:has(.ek-page-hero):not(:has(.ek-lokaler-listing)) .paragraphs__item--text_body .rich-text ol {
  list-style-type: decimal;
}

section:has(.ek-page-hero):not(:has(.ek-lokaler-listing)) .paragraphs__item--text_body .rich-text ul > li,
section:has(.ek-page-hero):not(:has(.ek-lokaler-listing)) .paragraphs__item--text_body .rich-text ol > li {
  position: static;
  margin: 0 0 0.25rem;
  padding-left: 0;
  padding-bottom: 0;
  font-size: 16px;
  line-height: 1.2;
  list-style: inherit;
}

section:has(.ek-page-hero):not(:has(.ek-lokaler-listing)) .paragraphs__item--text_body .rich-text ul > li::before,
section:has(.ek-page-hero):not(:has(.ek-lokaler-listing)) .paragraphs__item--text_body .rich-text ol > li::before {
  content: none;
  display: none;
}

section:has(.ek-page-hero):not(:has(.ek-lokaler-listing)) .paragraphs__item--text_body .rich-text a {
  color: var(--ek-teal, #089aa7);
  text-decoration: underline;
}

section:has(.ek-page-hero):not(:has(.ek-lokaler-listing)) .paragraphs__item--text_body .rich-text > p:first-child > a:only-child {
  display: inline-block;
  margin-bottom: 0.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--ek-navy, #235881);
}

section:has(.ek-page-hero):not(:has(.ek-lokaler-listing)) .paragraphs__item--text_body .rich-text > p:first-child > a:only-child:hover,
section:has(.ek-page-hero):not(:has(.ek-lokaler-listing)) .paragraphs__item--text_body .rich-text > p:first-child > a:only-child:focus-visible {
  color: var(--ek-teal, #089aa7);
}

section:has(.ek-page-hero):not(:has(.ek-lokaler-listing)) .paragraphs__item--text_body .rich-text p > a:only-child:has(> strong) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 5rem;
  height: 32px;
  margin-top: 0.5rem;
  padding: 0 1.25rem;
  font-family: var(--ek-font-heading, inherit);
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.03em;
  text-decoration: none;
  text-transform: uppercase;
  color: #fff;
  background-color: var(--ek-teal, #089aa7);
  border: 1px solid var(--ek-teal, #089aa7);
}

section:has(.ek-page-hero):not(:has(.ek-lokaler-listing)) .paragraphs__item--text_body .rich-text p > a:only-child:has(> strong):hover,
section:has(.ek-page-hero):not(:has(.ek-lokaler-listing)) .paragraphs__item--text_body .rich-text p > a:only-child:has(> strong):focus-visible {
  color: #fff;
  background-color: #067a85;
  border-color: #067a85;
}

section:has(.ek-page-hero):not(:has(.ek-lokaler-listing)) .paragraphs__item--text_body .rich-text p > a:only-child:has(> strong) strong {
  font-weight: inherit;
}
