/* ============================================================
   Svið.is — storefront styles
   Matches Svið.is Visual Style Guide (extracted from Shopify)
   ============================================================ */

:root {
  --bg-dark: #0B0B0E;
  --bg-dark-alt: #17171B;
  --bg-cream: #FFFAFA;
  --accent: #FF3B5C;
  --white: #FFFFFF;
  --gray-light: #F5F5F7;
  --black: #000000;
  --btn-dark: #111114;
  --font-body: 'Assistant', sans-serif;
  --font-display: 'Abril Fatface', Georgia, serif;
  --font-buy: Impact, 'Arial Narrow Bold', 'Franklin Gothic Bold', sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: var(--font-body);
  background: var(--bg-cream);
  color: var(--black);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ---------------- Simple header (event detail / thank-you pages) ---------------- */
.site-header {
  background: var(--bg-dark);
  padding: 1.5rem 0;
  text-align: center;
  position: relative;
  z-index: 20;
}
.site-header .wordmark {
  font-family: var(--font-display);
  color: var(--white);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  letter-spacing: 0.01em;
}
.site-header .wordmark a {
  display: inline-block;
  transition: opacity 0.2s ease;
}
.site-header .wordmark a:hover { opacity: 0.75; }

/* ---------------- Hero carousel section ---------------- */
.hero-carousel-section {
  position: relative;
  background: var(--bg-dark);
  padding: 2.5rem 0 2.25rem;
  overflow: hidden;
  /* Dynamic color wash: set to the dominant color of the active slide's
     poster image via JS (see index.html), same effect as the original
     Shopify "featured-event-carousel--color-detected" theme feature. */
  --hero-bg-color: 11, 11, 14;
}
.hero-carousel-section::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-color: rgba(var(--hero-bg-color), 0.8);
  /* Used when the colour changes in one step (arrow/dot navigation). */
  transition: background-color 0.45s ease;
  pointer-events: none;
}
/* While the track is being dragged/swiped, JS recomputes the wash every
   frame by blending the two posters nearest the centre. The transition has
   to be off for that, or each frame restarts a fresh 0.45s fade and the
   colour visibly trails the poster instead of following it. */
.hero-carousel-section.is-tracking::before {
  transition: none;
}
.hero-carousel-section > * {
  position: relative;
}

.hero-carousel-section .wordmark {
  position: relative;
  z-index: 5;
  text-align: center;
  font-family: var(--font-display);
  color: var(--white);
  font-size: clamp(3.4rem, 11vw, 6.4rem);
  letter-spacing: 0.01em;
  margin-bottom: -2.8rem;
  pointer-events: none;
}
.hero-carousel-section .wordmark a {
  display: inline-block;
  pointer-events: auto;
  cursor: pointer;
  transition: opacity 0.2s ease;
}
.hero-carousel-section .wordmark a:hover { opacity: 0.75; }

.carousel-viewport {
  position: relative;
  perspective: 1400px;
}

.carousel-track {
  display: flex;
  gap: 1.75rem;
  overflow-x: auto;
  /* Native CSS scroll-snap is intentionally disabled (was `x mandatory`).
     When a user drags/swipes/flicks the track directly (touch or trackpad),
     mandatory snap handed control to the browser's own smooth-scroll-snap
     engine, which has its own uncontrolled easing/duration — near the
     track's edges (exactly where the Þrumustuð clone sits) this produced a
     visible ~0.3-0.5s glide that looked like the slide "getting stuck"
     off-center before centering. All snapping/centering is now driven
     entirely by our own JS (animateScrollTo), for both click and
     drag/swipe interactions, so there is exactly one animation engine
     with one consistent, tuned duration. */
  scroll-snap-type: none;
  scroll-behavior: auto;
  padding: 5rem calc(50% - min(38vw, 170px)) 2.5rem;
  -ms-overflow-style: none;
  scrollbar-width: none;
  /* Keeps a horizontal flick inside the carousel instead of triggering the
     browser's back-navigation gesture, and preserves iOS momentum. */
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-track.is-single {
  justify-content: center;
  overflow-x: hidden;
  padding-left: 0;
  padding-right: 0;
}

.carousel-slide {
  position: relative;
  flex: 0 0 auto;
  scroll-snap-align: center;
  width: min(76vw, 340px);
  /* Matches the required poster size (1414x2000) exactly. It used to be 3/4,
     which is a different ratio, so `object-fit: contain` letterboxed every
     poster against the dark slide background — the "frame" around the
     artwork. With the box and the image the same shape there is nothing
     behind the poster left to see. */
  aspect-ratio: 1414 / 2000;
  display: block;
  overflow: hidden;
  transform: scale(0.9) rotateY(0deg);
  opacity: 0.7;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
  transition: transform 0.32s ease, opacity 0.32s ease, box-shadow 0.32s ease;
  transform-style: preserve-3d;
  /* The scale/rotate transition runs on every slide change, so keep these
     on the compositor and stop paint work inside one slide from
     invalidating its neighbours. */
  will-change: transform, opacity;
  backface-visibility: hidden;
  contain: paint;
}
@media (prefers-reduced-motion: reduce) {
  .carousel-slide {
    transition: opacity 0.2s ease;
  }
  .hero-carousel-section::before {
    transition: none;
  }
}
/* While the track silently jumps between a clone and its real counterpart
   (infinite-loop reset), suspend the active/prev/next scale+opacity
   transition so the swap is truly instant and invisible. */
.carousel-track.is-resetting .carousel-slide {
  transition: none;
}
.carousel-slide img {
  width: 100%;
  height: 100%;
  /* cover rather than contain: the box is now the poster's own ratio, so
     cover cannot crop anything, but it guarantees no gap if a legacy poster
     is a pixel or two off. */
  object-fit: cover;
  display: block;
}
.carousel-slide.is-active {
  transform: scale(1.08) rotateY(0deg);
  opacity: 1;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.6);
  z-index: 3;
}
.carousel-slide.is-prev {
  transform: scale(0.96) rotateY(6deg);
  opacity: 0.82;
  z-index: 2;
}
.carousel-slide.is-next {
  transform: scale(0.96) rotateY(-6deg);
  opacity: 0.82;
  z-index: 2;
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;
  width: 4.6rem;
  height: 4.6rem;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.45);
  color: var(--white);
  font-size: 2.2rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}
.carousel-arrow.prev { left: 1rem; }
.carousel-arrow.next { right: 1rem; }
@media (hover: hover) and (pointer: fine) {
  .carousel-arrow:hover { background: rgba(0, 0, 0, 0.7); }
}
@media (hover: none), (pointer: coarse) {
  .carousel-arrow { display: none; }
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 0.5rem;
}
.carousel-dots button {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: rgba(255, 255, 255, 0.25);
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}
.spotlight-label {
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  font-weight: 700;
  font-size: 0.8rem;
  margin: 1.1rem 0 0;
}

.carousel-dots button.is-active {
  background: var(--accent);
  transform: scale(1.2);
}

.register-event-row {
  text-align: center;
  padding: 0.75rem 1.5rem 0;
  font-size: 0.85rem;
  color: #666;
  text-decoration: underline;
  cursor: default;
}

/* ---------------- Floating pill buttons ---------------- */
.pill-btn {
  position: fixed;
  top: 1.5rem;
  z-index: 30;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--white);
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s ease, background 0.15s ease;
}
.pill-btn:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.2);
}
.pill-categories { left: 1.5rem; }
.pill-search { right: 1.5rem; }

/* ---------------- Categories drawer ---------------- */
.drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: min(320px, 80vw);
  background: rgba(11, 11, 14, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--white);
  z-index: 41;
  padding: 5rem 1.75rem 2rem;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
}
.drawer.is-open { transform: translateX(0); }
.drawer-title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  margin-bottom: 1.5rem;
}
.drawer-list { list-style: none; padding: 0; margin: 0; }
.drawer-list li { padding: 0.6rem 0; border-bottom: 1px solid rgba(255,255,255,0.12); }
.drawer-list a { font-size: 1.05rem; }
.drawer-scrim {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 40;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.drawer-scrim.is-open { opacity: 1; pointer-events: auto; }

/* ---------------- Search panel ---------------- */
/* Suggestions appear under the input as you type. Built from the loaded
   event list rather than the rendered grid — the grid is hidden entirely
   when there are only a few events, which is why filtering it did nothing. */
.search-results {
  display: none;
  max-height: 60vh;
  margin-top: 0.5rem;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.search-results.is-open {
  display: block;
}
.search-result {
  display: grid;
  grid-template-columns: 44px 1fr;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  color: inherit;
  text-decoration: none;
}
.search-result:last-child {
  border-bottom: 0;
}
.search-result:hover,
.search-result:focus-visible {
  opacity: 0.65;
}
.search-result__thumb {
  display: block;
  width: 44px;
  /* Locks the row height to the poster ratio so the list doesn't reflow as
     thumbnails arrive. */
  aspect-ratio: 1414 / 2000;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.08);
}
.search-result__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.search-result__body {
  display: grid;
  gap: 0.1rem;
  min-width: 0;
}
.search-result__name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.search-result__meta {
  font-size: 0.8rem;
  opacity: 0.7;
}
.search-empty {
  margin: 0.6rem 0 0;
  font-size: 0.9rem;
  opacity: 0.7;
}

.search-panel {
  position: fixed;
  top: 5.5rem;
  right: 1.5rem;
  z-index: 30;
  width: min(300px, 80vw);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 4px;
  padding: 0.4rem;
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.search-panel.is-open { opacity: 1; transform: translateY(0); pointer-events: auto; }
.search-panel input {
  width: 100%;
  border: none;
  background: transparent;
  color: var(--white);
  padding: 0.6rem 0.75rem;
  font-family: var(--font-body);
  font-size: 1rem;
}
.search-panel input::placeholder { color: rgba(255,255,255,0.6); }
.search-panel input:focus { outline: none; }

/* ---------------- Buy button ---------------- */
.buy-btn {
  display: inline-block;
  background: transparent;
  border: 2px solid var(--white);
  color: var(--white);
  font-family: var(--font-buy);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-size: 1rem;
  padding: 1rem 2.25rem;
  border-radius: 0;
  cursor: pointer;
  transition: opacity 0.15s ease, background 0.15s ease;
}
.buy-btn:hover { opacity: 0.85; }
.buy-btn.dark {
  border-color: var(--btn-dark);
  color: var(--btn-dark);
  background: transparent;
}
.buy-btn.filled {
  background: var(--btn-dark);
  border-color: var(--btn-dark);
  color: var(--white);
}
.buy-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* ---------------- Event grid (listing) ---------------- */
.section-label {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  font-weight: 700;
  font-size: 0.85rem;
  text-align: center;
  margin: 2rem 0 0.5rem;
}
.section-heading {
  font-family: var(--font-display);
  text-align: center;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin: 0 0 2.5rem;
}
.event-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  padding: 0 0 4rem;
}
@media (min-width: 700px) {
  .event-grid {
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 1.75rem;
  }
}
.event-card {
  display: block;
  background: var(--white);
}
.event-card-image {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--bg-dark-alt);
}
.event-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s ease;
}
.event-card:hover .event-card-image img { transform: scale(1.03); }
.event-card-caption {
  background: var(--bg-dark);
  color: var(--white);
  padding: 0.9rem 1.1rem;
}
.event-card-caption .name {
  font-weight: 700;
  font-size: 1rem;
}

.empty-state {
  text-align: center;
  padding: 3rem 1.5rem 5rem;
  color: #555;
}

/* ---------------- Event detail page ---------------- */
.event-hero-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--bg-dark-alt);
}
.event-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.event-detail {
  max-width: 780px;
  margin: 0 auto;
  padding: 3rem 1.5rem 5rem;
}
.event-loading-state {
  min-height: 24rem;
  padding: 1.2rem 0;
}
.event-loading-line {
  height: 1rem;
  border-radius: 999px;
  background: linear-gradient(90deg, #f1eeee 25%, #faf8f8 37%, #f1eeee 63%);
  background-size: 400% 100%;
  animation: event-loading-shimmer 1.2s ease infinite;
}
.event-loading-title {
  width: min(28rem, 88%);
  height: 2.5rem;
  margin: 0.7rem 0 1.5rem;
}
.event-loading-meta {
  width: min(34rem, 96%);
  margin-bottom: 2.5rem;
}
.event-loading-card {
  border: 1px solid #e6e2e2;
  padding: 1.75rem;
}
.event-loading-card .event-loading-line { margin-bottom: 1rem; }
.event-loading-card .event-loading-short { width: 55%; margin-bottom: 0; }
@keyframes event-loading-shimmer {
  to { background-position: -400% 0; }
}
.event-detail .site-label {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  color: #777;
  margin-bottom: 0.6rem;
}
.event-detail h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  margin: 0 0 1rem;
}
.event-detail .meta-row {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  color: #444;
  font-size: 1rem;
  margin-bottom: 1.75rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid #e6e2e2;
}
.event-detail .description {
  font-size: 1.05rem;
  line-height: 1.65;
  color: #222;
  margin-bottom: 2.5rem;
  white-space: pre-line;
}

/* ---------------- Checkout box ---------------- */
.checkout-box {
  background: var(--white);
  border: 1px solid #e6e2e2;
  padding: 1.75rem;
}
.checkout-box h2 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  margin: 0 0 1.25rem;
}
.ticket-options-loading {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 4rem;
  color: #666;
}
.ticket-loading-spinner {
  width: 1.3rem;
  height: 1.3rem;
  border: 2px solid #ddd;
  border-top-color: var(--btn-dark);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
.ticket-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid #eee;
}
.ticket-option:last-of-type { border-bottom: none; }
.ticket-option-info { flex: 1; }
.ticket-option-info .tname { font-weight: 700; }
.ticket-option-info .tprice { color: #555; font-size: 0.9rem; }
.qty-control {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.qty-control button {
  width: 32px;
  height: 32px;
  border: 1px solid #ccc;
  background: var(--white);
  font-size: 1.1rem;
  cursor: pointer;
  line-height: 1;
}
.qty-control button:hover { background: var(--gray-light); }
.qty-control .qty-value {
  min-width: 1.5rem;
  text-align: center;
  font-weight: 700;
}

.form-row {
  margin-top: 1.5rem;
}
.form-row label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}
.form-row input {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1px solid #ccc;
  font-family: var(--font-body);
  font-size: 1rem;
  background: var(--white);
}
.form-row input:focus { outline: 2px solid var(--btn-dark); }

.checkout-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin: 1.5rem 0 1rem;
  font-size: 1.15rem;
  font-weight: 700;
}

.checkout-box .buy-btn {
  width: 100%;
  text-align: center;
  margin-top: 0.5rem;
}

.form-error {
  color: var(--accent);
  font-size: 0.9rem;
  margin-top: 0.75rem;
  display: none;
}
.form-error.visible { display: block; }

.sold-out-note, .no-tickets-note {
  color: #777;
  font-size: 0.95rem;
}

/* ---------------- Festival: list of distinct shows ---------------- */
/* Used when the event has distinctShows: each performance is its own show
   with its own poster and page, so these are links, not an accordion. */
.festival-show-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.festival-show {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid #e6e2e2;
  color: inherit;
  text-decoration: none;
  transition: opacity 140ms ease;
}
.festival-show-list li:first-child .festival-show {
  border-top: 1px solid #e6e2e2;
}
.festival-show:hover {
  opacity: 0.65;
}
.festival-show:focus-visible {
  outline: 2px solid var(--btn-dark);
  outline-offset: 2px;
}
.festival-show__thumb {
  display: block;
  width: 72px;
  /* Matches the 1414x2000 poster ratio so the row height never jumps when
     the image lands. */
  aspect-ratio: 1414 / 2000;
  overflow: hidden;
  background: var(--gray-light);
}
.festival-show__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.festival-show__body {
  display: grid;
  gap: 0.2rem;
  min-width: 0;
}
.festival-show__name {
  font-family: var(--font-display);
  font-size: 1.35rem;
  line-height: 1.15;
}
.festival-show__meta {
  color: #555;
  font-size: 0.9rem;
}
.festival-show__go {
  font-size: 1.5rem;
  line-height: 1;
  color: #999;
}
.festival-back {
  display: inline-block;
  margin-bottom: 0.75rem;
  color: #555;
  font-size: 0.9rem;
  text-decoration: none;
}
.festival-back:hover {
  text-decoration: underline;
}
@media (max-width: 480px) {
  .festival-show {
    grid-template-columns: 60px 1fr auto;
  }
  .festival-show__thumb {
    width: 60px;
  }
  .festival-show__name {
    font-size: 1.15rem;
  }
  .show-list__row-inner {
    grid-template-columns: 60px 1fr;
  }
  .show-list__thumb {
    width: 60px;
  }
}

/* ---------------- Multiple show-date chooser ---------------- */
/* The shows are listed straight on the page — no dropdown, no heading, no
   placeholder. The show name carries the site's display face so the list
   reads as part of the page rather than as a form control. */
.show-list__items {
  margin: 0 0 0.5rem;
  padding: 0;
  list-style: none;
}
/* Row is split into a poster thumbnail button and the show-select button,
   side by side, so pressing the thumbnail can open the full-size poster
   without also switching the selected show. The border/selection state
   now lives on this wrapper rather than on the select-button alone. */
.show-list__row-inner {
  display: grid;
  grid-template-columns: 72px 1fr;
  align-items: center;
  gap: 1rem;
  padding: 1.05rem 0;
  border-bottom: 1px solid #e6e2e2;
  transition: opacity 140ms ease;
}
.show-list__items li:first-child .show-list__row-inner {
  border-top: 1px solid #e6e2e2;
}
.show-list__thumb {
  display: block;
  width: 72px;
  /* Matches the 1414x2000 poster ratio so the row height never jumps when
     the image lands. */
  aspect-ratio: 1414 / 2000;
  overflow: hidden;
  padding: 0;
  border: 0;
  background: var(--gray-light);
  cursor: zoom-in;
}
.show-list__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.show-list__thumb:focus-visible {
  outline: 2px solid var(--btn-dark);
  outline-offset: 2px;
}
.show-list__item {
  display: grid;
  gap: 0.2rem;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--black);
  text-align: left;
  cursor: pointer;
  transition: opacity 140ms ease;
}
.show-list__item:hover {
  opacity: 0.62;
}
.show-list__thumb:hover {
  opacity: 0.85;
}
.show-list__item:focus-visible {
  outline: 2px solid var(--btn-dark);
  outline-offset: 2px;
}
.show-list__name {
  font-family: var(--font-display);
  font-size: 1.75rem;
  line-height: 1.15;
}
.show-list__date {
  color: #555;
  font-size: 0.95rem;
}
.show-list__item.is-selected .show-list__date {
  color: var(--black);
}
/* The open show's tickets + buyer form, nested inside that show's row so
   it sits above the next show in the list. */
.show-list__panel {
  padding: 0.25rem 0 1.5rem;
}
/* The chosen show is marked with a rule and a small inset rather than a
   control-looking highlight, keeping the editorial feel of the page. */
.show-list__row.is-selected .show-list__row-inner {
  padding-left: 0.9rem;
  box-shadow: inset 3px 0 0 var(--black);
  border-bottom: 0;
}
/* ---------------- Touring runs ---------------- */
/* One production, several towns. The venue leads each row, so the list reads
   as a choice of PLACE first and date second — which is how someone deciding
   whether to go actually thinks about a farandsýning. */
.show-list__heading {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 400;
  color: #555;
}
/* Seat state on a row, before the show has been opened. Sits on its own line
   under the date so a long venue name never collides with it on a phone. */
.show-list__seats {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.show-list__seats.is-low {
  color: #b32d43;
}
.show-list__seats.is-soldout {
  color: #777;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.show-list__seats.is-past {
  color: #999;
}
/* A date that has already played stays visible — a tour list with holes in it
   looks broken, and seeing the passed dates is itself information — but it is
   plainly not for sale. */
.show-list__row.is-past .show-list__row-inner {
  opacity: 0.45;
}
.show-list__row.is-past .show-list__item {
  cursor: default;
}
.show-list__row.is-past .show-list__item:hover {
  opacity: 1;
}
.show-list__panel .checkout-box {
  margin: 0;
  padding: 1.25rem 0 0;
  border: 0;
  border-top: 1px solid #e6e2e2;
  background: transparent;
}

/* ---------------- Poster lightbox ---------------- */
/* Full-size view of a show's poster, opened from a thumbnail in the
   multi-date show list. Independent of show selection. */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: rgba(0, 0, 0, 0.85);
}
.lightbox-image {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}
.lightbox-close {
  position: fixed;
  top: 1rem;
  right: 1.25rem;
  width: 2.5rem;
  height: 2.5rem;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--black);
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
}
body.lightbox-open {
  overflow: hidden;
}
@media (max-width: 480px) {
  .lightbox-overlay {
    padding: 1rem;
  }
}
.show-date-ticket-picker h3 {
  margin: 0 0 1.15rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
}

/* ---------------- Checkout step 2: buyer details ---------------- */
/* #step-quantity and #step-details are two sibling .checkout-box panels;
   only one is visible at a time (toggled via the `hidden` attribute), kept
   as flat/square white panels with no rounding, matching the rest of the
   site's visual language. */
#step-details { margin-top: 0; }

.back-link {
  display: inline-block;
  background: none;
  border: none;
  padding: 0;
  margin-bottom: 1.25rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--black);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.back-link:hover { opacity: 0.7; }

.order-summary {
  background: var(--gray-light);
  border: 1px solid #e6e2e2;
  padding: 0.9rem 1rem;
  margin-bottom: 1.5rem;
}
.order-summary-row {
  display: flex;
  justify-content: space-between;
  /* Without a gap the label and value collide when the value wraps onto the
     label's line — which produced "SýningFrumsýning · 12. september". */
  gap: 1rem;
  font-size: 0.95rem;
  font-weight: 600;
}
/* The show row's value is long; let it wrap under its own label rather than
   fighting the price column for space. */
.order-summary-row--show {
  display: grid;
  gap: 0.15rem;
  justify-content: start;
}
.order-summary-row--show span:last-child {
  font-weight: 500;
  color: #444;
}

.field-note {
  margin: 0.4rem 0 0;
  font-size: 0.8rem;
  color: #666;
  line-height: 1.4;
}

.privacy-note {
  margin: 1.25rem 0 0;
  font-size: 0.8rem;
  color: #666;
}
.privacy-note a { text-decoration: underline; }

/* ---------------- Discount code (afsláttarkóði) ---------------- */
.discount-input-group {
  display: flex;
  gap: 0.5rem;
}
.discount-input-group input {
  flex: 1;
  padding: 0.75rem 0.9rem;
  border: 1px solid #ccc;
  font-family: var(--font-body);
  font-size: 1rem;
  background: var(--white);
  text-transform: uppercase;
}
.discount-input-group input:focus { outline: 2px solid var(--btn-dark); }
.discount-apply-btn {
  white-space: nowrap;
  padding: 0 1.1rem;
  border: 1px solid var(--black);
  background: var(--white);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
}
.discount-apply-btn:hover { background: var(--gray-light); }
.discount-apply-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.discount-message {
  margin: 0.5rem 0 0;
  font-size: 0.85rem;
  min-height: 1em;
}
.discount-message.success { color: #1a7f37; font-weight: 600; }
.discount-message.error { color: var(--accent); }

/* ---------------- Thank-you page ---------------- */
.thanks-wrap {
  max-width: 620px;
  margin: 0 auto;
  padding: 5rem 1.5rem 6rem;
  text-align: center;
}
.thanks-wrap .site-label {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 0.75rem;
}
.thanks-wrap h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 2.8rem);
  margin: 0 0 1.25rem;
}
.thanks-wrap p {
  font-size: 1.05rem;
  line-height: 1.6;
  color: #333;
}
.spinner {
  width: 34px;
  height: 34px;
  border: 3px solid #ddd;
  border-top-color: var(--btn-dark);
  border-radius: 50%;
  margin: 1.5rem auto;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.ticket-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
  text-align: left;
  border: 1px solid #e6e2e2;
}
.ticket-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.9rem 1.1rem;
  border-bottom: 1px solid #eee;
  font-family: monospace;
  font-size: 1rem;
}
.ticket-list li:last-child { border-bottom: none; }
.ticket-list a {
  font-family: var(--font-body);
  font-weight: 700;
  text-decoration: underline;
  font-size: 0.9rem;
}
.reference-note {
  font-size: 0.85rem;
  color: #888;
  margin-top: 2rem;
}

/* ---------------- Footer ---------------- */
.site-footer {
  background: var(--bg-dark);
  color: var(--gray-light);
  padding: 3.5rem 1.5rem 2.5rem;
  text-align: center;
}
.site-footer .newsletter-heading {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--white);
  margin-bottom: 1.25rem;
}
.newsletter-form {
  display: flex;
  justify-content: center;
  gap: 0;
  max-width: 380px;
  margin: 0 auto 2rem;
  border-bottom: 1px solid #555;
  padding-bottom: 0.5rem;
}
.newsletter-form input {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.4rem 0;
}
.newsletter-form input::placeholder { color: #999; }
.newsletter-form button {
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.3rem;
  cursor: pointer;
}
.site-footer .copyright {
  font-size: 0.8rem;
  color: #888;
  border-top: 1px solid #2a2a2e;
  padding-top: 1.5rem;
  margin-top: 0.5rem;
}

@media (max-width: 640px) {
  .hero-carousel-section .wordmark { margin-bottom: -2rem; }
  .carousel-track { padding: 3.5rem 1rem 2rem; }
  .pill-btn { width: 2.6rem; height: 2.6rem; top: 1rem; }
  .pill-categories { left: 1rem; }
  .pill-search { right: 1rem; }
}

.events-intro {
  color: #999;
  font-size: 0.95rem;
  max-width: 40rem;
  margin: -0.5rem 0 1.5rem;
}

.ticket-lookup-form {
  display: flex;
  gap: 0.6rem;
  max-width: 26rem;
  margin: 0 0 0.5rem;
}

.ticket-lookup-form input {
  flex: 1;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  border: 1px solid #333;
  background: #17171a;
  color: #fff;
  font-size: 0.95rem;
}

.ticket-lookup-form input:focus { outline: 2px solid var(--btn-dark); }

.ticket-lookup-form button {
  padding: 0.7rem 1.3rem;
  border-radius: 999px;
  border: none;
  background: #fff;
  color: #0b0b0e;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.ticket-lookup-form button:hover { opacity: 0.85; }

.staff-links {
  margin-top: 0.75rem;
  font-size: 0.75rem;
}

.staff-links a {
  color: #666;
}

.staff-links a:hover { color: #999; }

/* ---------------- Footer legal / compliance block ---------------- */
.footer-legal-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem 1.1rem;
  font-size: 0.8rem;
  margin: 0 0 1.25rem;
}
.footer-legal-links a { color: #bbb; }
.footer-legal-links a:hover { color: var(--white); }

.footer-cards {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}
.card-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 1.6rem;
  padding: 0 0.5rem;
  border-radius: 4px;
  background: var(--white);
}
.card-badge.card-visa {
  font-family: Georgia, 'Times New Roman', serif;
  font-style: italic;
  font-weight: 700;
  font-size: 0.8rem;
  color: #1a1f71;
  letter-spacing: 0.02em;
  min-width: 2.6rem;
}
.card-badge.card-mc {
  width: 2.6rem;
  position: relative;
  background: var(--white);
  height: 1.6rem;
}
.mc-circle {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 50%;
}
.mc-circle.mc-red { left: 0.5rem; background: #EB001B; }
.mc-circle.mc-yellow { left: 1.05rem; background: #F79E1B; mix-blend-mode: multiply; }

.footer-contact {
  font-size: 0.78rem;
  color: #999;
  line-height: 1.6;
  max-width: 34rem;
  margin: 0 auto 1.25rem;
}
.footer-contact a { color: #bbb; }
.footer-contact a:hover { color: var(--white); }

/* ---------------- Legal pages (skilmálar / persónuvernd) ---------------- */
.legal-page {
  max-width: 780px;
  margin: 0 auto;
  padding: 3rem 1.5rem 5rem;
}
.legal-page .site-label {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  color: #777;
  margin-bottom: 0.6rem;
}
.legal-page h1 {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4.5vw, 2.6rem);
  margin: 0 0 1rem;
}
.legal-intro {
  color: #555;
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 2rem;
}
.legal-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  background: var(--gray-light);
  border: 1px solid #e6e2e2;
  border-radius: 8px;
  padding: 1rem 1.25rem;
  margin-bottom: 2rem;
  font-size: 0.9rem;
}
.legal-toc a { font-weight: 600; }
.legal-toc a:hover { color: var(--accent); }
.legal-section {
  margin-bottom: 2.5rem;
  padding-bottom: 0.5rem;
  scroll-margin-top: 1.5rem;
}
.legal-section h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin: 0 0 1rem;
}
.legal-section h3 {
  font-size: 1.05rem;
  margin: 1.5rem 0 0.4rem;
}
.legal-section p {
  font-size: 0.98rem;
  line-height: 1.65;
  color: #222;
  margin: 0 0 0.5rem;
}
.legal-section a { text-decoration: underline; }
.legal-section hr {
  border: none;
  border-top: 1px solid #e6e2e2;
  margin: 2rem 0;
}

/* ---------------- Checkout terms acceptance ---------------- */
.terms-accept-row {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  background: var(--gray-light);
  border: 1px solid #e6e2e2;
  border-radius: 8px;
  padding: 0.9rem 1rem;
  margin: 1.25rem 0;
  font-size: 0.85rem;
  line-height: 1.5;
  color: #333;
}
.terms-accept-row input[type="checkbox"] {
  margin-top: 0.15rem;
  width: 1.1rem;
  height: 1.1rem;
  flex-shrink: 0;
}
.terms-accept-row label a { text-decoration: underline; }
.checkout-price-note {
  font-size: 0.8rem;
  color: #777;
  margin: 0.4rem 0 0;
}

/* ---------------- Newsletter signup ---------------- */
.newsletter-consent {
  max-width: 34rem;
  margin: 0.85rem auto 0;
  font-size: 0.78rem;
  line-height: 1.5;
  opacity: 0.6;
}
.newsletter-consent a {
  color: inherit;
}
.newsletter-status {
  margin: 0.6rem auto 0;
  font-size: 0.85rem;
  /* Reserved rather than hidden, so the footer doesn't shift when a message
     appears. */
  min-height: 1.2em;
  opacity: 0;
  transition: opacity 160ms ease;
}
.newsletter-status.is-visible {
  opacity: 1;
}
.newsletter-status.is-success {
  color: #7ddc9a;
}
.newsletter-status.is-error {
  color: var(--accent, #ff4d6d);
}

/* ---------------- Ticket hold countdown ---------------- */
.hold-timer {
  margin: 0 0 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: #555;
  /* Height reserved so revealing the timer doesn't shift the form below it. */
  min-height: 1.3em;
}
.hold-timer.is-urgent {
  color: var(--accent, #ff4d6d);
}
.hold-notice {
  display: none;
  margin: 0 0 1rem;
  font-size: 0.9rem;
}
.hold-notice.is-visible {
  display: block;
}
.hold-notice.is-expired {
  color: #555;
}
.hold-notice.is-error {
  color: var(--accent, #ff4d6d);
}

/* ---------------- Rich text: editor + rendered output ---------------- */
.rt-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  padding: 0.35rem;
  border: 1px solid #d9d5d5;
  border-bottom: 0;
  background: var(--gray-light, #f4f2f2);
}
.rt-toolbar button {
  min-width: 2.25rem;
  min-height: 2.25rem;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-size: 0.95rem;
  color: inherit;
}
.rt-toolbar button:hover {
  background: var(--white, #fff);
}
.rt-input {
  min-height: 8rem;
  padding: 0.75rem;
  border: 1px solid #d9d5d5;
  background: var(--white, #fff);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  text-align: left;
}
.rt-input:focus-visible {
  outline: 2px solid var(--btn-dark, #111);
  outline-offset: -2px;
}
.rt-hint {
  margin: 0.4rem 0 0;
  font-size: 0.78rem;
  opacity: 0.6;
}

/* Rendered description on the event page. Constrained deliberately: an
   organiser's markup should not be able to restyle the page around it. */
.description strong,
.description b { font-weight: 700; }
.description em,
.description i { font-style: italic; }
.description u { text-decoration: underline; }
.description s,
.description strike { text-decoration: line-through; }
.description p { margin: 0 0 0.85rem; }
.description p:last-child { margin-bottom: 0; }
.description ul,
.description ol { margin: 0 0 0.85rem; padding-left: 1.4rem; }
.description li { margin-bottom: 0.3rem; }
.description a { color: inherit; text-decoration: underline; }
.description h3,
.description h4 {
  margin: 1.2rem 0 0.5rem;
  font-family: var(--font-display);
  /* Capped so a description heading cannot compete with the event title. */
  font-size: 1.15rem;
  line-height: 1.25;
}
.description blockquote {
  margin: 0 0 0.85rem;
  padding-left: 0.9rem;
  border-left: 2px solid #d9d5d5;
  opacity: 0.85;
}

/* ---------------- Front-page CMS mode ---------------- */
body.cms-on { padding-bottom: 4.5rem; }
.cms-editable {
  outline: 1px dashed rgba(255, 77, 109, 0.65);
  outline-offset: 3px;
  cursor: text;
}
.cms-editable:focus-visible {
  outline: 2px solid var(--accent, #ff4d6d);
}
.cms-block { position: relative; }
.cms-block-bar {
  position: absolute;
  top: 0.35rem;
  right: 0.35rem;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.4rem;
  background: rgba(17, 17, 17, 0.85);
  color: #fff;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.cms-block-bar button {
  min-width: 1.6rem;
  min-height: 1.6rem;
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
  font-size: 0.9rem;
}
.cms-block-bar button:hover { background: rgba(255, 255, 255, 0.18); }
.cms-toolbar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 1rem;
  background: #111;
  color: #fff;
}
.cms-toolbar__label { font-weight: 700; font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; }
.cms-toolbar__status { flex: 1; font-size: 0.82rem; opacity: 0.75; }
.cms-toolbar button {
  min-height: 2.25rem;
  padding: 0 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: transparent;
  color: #fff;
  cursor: pointer;
  font-size: 0.82rem;
}
.cms-toolbar button:disabled { opacity: 0.4; cursor: default; }
.cms-toolbar #cmsSave { background: #fff; color: #111; border-color: #fff; }


/* Remaining-seat warning above the ticket picker. Only rendered when the
   house is nearly full, so it should read as urgent without shouting. */
.seats-left-note {
  margin: 0 0 14px;
  padding: 8px 12px;
  border-left: 3px solid #e8556d;
  background: rgba(232, 85, 109, 0.07);
  font-size: 0.95rem;
  font-weight: 600;
  color: #b32d43;
}
