@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Playfair+Display:wght@600;700&display=swap");

:root {
  --color-ink: #f8fbff;
  --color-deep: #132239;
  --color-blue: #244f78;
  --color-gold: #d6a044;
  --color-gold-dark: #b9852e;
  --color-green: #8ab665;
  --panel-bg: rgba(9, 18, 31, 0.52);
  --panel-border: rgba(255, 255, 255, 0.2);
  --light-panel: rgba(255, 255, 255, 0.9);
  --gold-gradient: linear-gradient(135deg, var(--color-gold), var(--color-gold-dark));
  --gold-gradient-soft: linear-gradient(135deg, rgba(255, 255, 255, 0.96), var(--color-gold));
  --detail-panel-bg: linear-gradient(
    145deg,
    color-mix(in srgb, var(--light-panel) 88%, white),
    color-mix(in srgb, var(--light-panel) 90%, var(--color-gold) 10%)
  );
  --detail-card-bg: linear-gradient(
    135deg,
    color-mix(in srgb, var(--light-panel) 82%, white),
    color-mix(in srgb, var(--light-panel) 80%, var(--color-gold) 20%)
  );
  --detail-soft-bg: color-mix(in srgb, var(--light-panel) 78%, white);
  --detail-accent-border: color-mix(in srgb, var(--color-gold) 34%, rgba(255, 255, 255, 0.68));
  --detail-accent-soft: color-mix(in srgb, var(--color-gold) 16%, white);
  --detail-accent-muted: color-mix(in srgb, var(--color-gold) 14%, rgba(255, 255, 255, 0.68));
  --shadow-soft: 0 24px 70px rgba(8, 18, 34, 0.28);
  font-family: Manrope, "Segoe UI Variable", "Segoe UI", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  width: 100%;
  height: 100%;
  min-height: 100%;
  overflow: hidden;
}

body {
  background: #0f1f35;
  color: var(--color-ink);
  font-feature-settings: "liga" 1, "kern" 1;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.app-shell {
  width: 100vw;
  height: 100svh;
  min-height: 100svh;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: var(--hero-image);
  background-position: center;
  background-size: cover;
  transform: scale(1.02);
  z-index: -3;
}

.vista-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: #eef3f4;
}

.vista-bg iframe {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
}

html.has-no-vista .vista-bg {
  background: transparent;
  pointer-events: none;
}

html.has-no-vista .vista-bg iframe {
  display: none;
}

.vista-bg::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 30%;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(6, 13, 22, 0), rgba(6, 13, 22, 0.55));
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(4, 14, 26, 0.16), rgba(4, 14, 26, 0.56)),
    linear-gradient(95deg, rgba(7, 17, 29, 0.36), rgba(7, 17, 29, 0.08) 58%);
  z-index: -2;
}

.topbar {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 22px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  color: white;
  text-decoration: none;
}

.brand--image {
  width: auto;
  max-width: min(360px, 42vw);
  padding: 0;
  align-items: flex-start;
}

.brand-logo {
  display: block;
  width: auto;
  max-width: 82px;
  height: clamp(54px, 6.4vw, 82px);
  object-fit: contain;
  object-position: left top;
  filter: drop-shadow(0 16px 30px rgba(0, 0, 0, 0.42));
}

[data-platform-logo],
[data-initial-loading-logo] {
  visibility: hidden;
}

[data-platform-logo].is-loaded,
[data-initial-loading-logo].is-loaded {
  visibility: visible;
}

.brand-mark {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  font-weight: 800;
}

.brand strong {
  display: block;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 27px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.brand span {
  display: block;
  color: rgba(255, 255, 255, 0.78);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.brand .brand-name {
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.94);
  font-family: Manrope, "Segoe UI Variable", "Segoe UI", Arial, sans-serif;
  font-size: clamp(20px, 1.8vw, 30px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.01em;
  text-shadow: 0 14px 36px rgba(0, 0, 0, 0.48);
  text-transform: none;
  white-space: nowrap;
}

.top-actions {
  display: flex;
  gap: 14px;
}

.circle-action {
  width: 52px;
  height: 52px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  background: rgba(16, 30, 49, 0.7);
  color: white;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(12px);
}

.ground-back {
  position: fixed;
  left: 24px;
  top: 128px;
  z-index: 88;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 102px;
  height: 44px;
  padding: 0 16px 0 13px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 999px;
  background:
    radial-gradient(circle at 18% 0%, rgba(244, 209, 110, 0.18), transparent 36%),
    linear-gradient(135deg, rgba(13, 25, 38, 0.82), rgba(21, 32, 31, 0.76));
  color: #fff;
  font: 800 15px/1 var(--font-main);
  box-shadow:
    0 14px 34px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(16px) saturate(1.15);
  cursor: pointer;
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    background 0.18s ease;
}

.ground-back[hidden] {
  display: none;
}

.ground-back:hover,
.ground-back:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(244, 209, 110, 0.64);
  background:
    radial-gradient(circle at 18% 0%, rgba(244, 209, 110, 0.24), transparent 36%),
    linear-gradient(135deg, rgba(18, 31, 46, 0.88), rgba(31, 39, 30, 0.82));
}

.ground-back svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.corner-actions {
  position: fixed;
  left: max(42px, calc(50% - 520px + 12px));
  bottom: 12px;
  z-index: 42;
  display: flex;
  align-items: center;
  gap: 6px;
}

.corner-action {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  background: var(--gold-gradient);
  color: var(--color-deep);
  display: grid;
  place-items: center;
  box-shadow: 0 12px 32px rgba(207, 143, 40, 0.32);
  transition:
    transform 0.18s ease,
    background 0.18s ease,
    border-color 0.18s ease;
}

.corner-action:hover,
.corner-action:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.48);
  background: var(--gold-gradient);
}

.corner-action svg {
  width: 18px;
  height: 18px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.corner-action:not(.corner-action--discover) svg,
.corner-action--discover svg {
  width: 28px;
  height: 28px;
  padding: 5px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.28);
}

.corner-action--discover {
  width: auto;
  min-width: 126px;
  height: 42px;
  padding: 0 13px 0 7px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.1;
  white-space: nowrap;
  text-shadow: none;
}

.corner-action--discover span {
  line-height: 1;
}

.corner-action:not(.corner-action--discover) span,
.corner-action--categories {
  display: none;
}

.hero-content {
  position: relative;
  z-index: 5;
  min-height: calc(100svh - 92px);
  display: block;
  padding: 0 48px 34px;
}

.hero-main {
  display: flex;
  align-items: center;
  max-width: 760px;
}

.hero-content.is-minimal {
  pointer-events: none;
}

.hero-content.is-minimal .category-bar {
  pointer-events: auto;
}

.hero-copy {
  margin-top: 8vh;
}

.eyebrow {
  margin: 0 0 16px;
  color: #f2c86b;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-copy h1 {
  margin: 0;
  max-width: 720px;
  font-size: clamp(54px, 9vw, 118px);
  line-height: 0.92;
  letter-spacing: -0.02em;
}

.hero-copy p {
  margin: 24px 0 0;
  max-width: 560px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 22px;
  line-height: 1.45;
}

.search-row {
  display: flex;
  gap: 14px;
  margin-top: 34px;
}

.search-box {
  min-width: min(560px, 52vw);
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 22px;
  border: 1px solid color-mix(in srgb, var(--color-gold) 28%, rgba(255, 255, 255, 0.24));
  border-radius: 999px;
  background: var(--panel-bg);
  backdrop-filter: blur(14px);
}

.search-box input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: white;
  font-size: 18px;
}

.search-box input::placeholder {
  color: rgba(255, 255, 255, 0.62);
}

.filter-button {
  border: 1px solid color-mix(in srgb, var(--color-gold) 34%, rgba(255, 255, 255, 0.22));
  border-radius: 999px;
  padding: 0 24px;
  background: var(--panel-bg);
  color: white;
  font-weight: 800;
  backdrop-filter: blur(14px);
  box-shadow: 0 14px 34px color-mix(in srgb, var(--color-gold) 18%, transparent);
}

.category-bar {
  position: fixed;
  left: 50%;
  bottom: 6px;
  transform: translateX(-50%);
  z-index: 40;
  display: flex;
  justify-content: flex-start;
  gap: 6px;
  align-items: stretch;
  width: max-content;
  min-width: min(860px, calc(100vw - 72px));
  max-width: calc(100vw - 48px);
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: linear-gradient(
    180deg,
    var(--panel-bg),
    color-mix(in srgb, var(--panel-bg) 45%, transparent)
  );
  box-shadow:
    0 24px 80px rgba(0, 0, 0, 0.18),
    0 0 34px color-mix(in srgb, var(--color-gold) 12%, transparent);
  backdrop-filter: blur(10px) saturate(1.1);
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
}

.category-bar::-webkit-scrollbar {
  display: none;
}

.category-bar .corner-actions {
  position: static;
  left: auto;
  bottom: auto;
  transform: none;
  z-index: auto;
  flex: 0 0 auto;
  margin-right: auto;
}

.category-tile {
  flex: 0 0 auto;
  min-width: 82px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: rgba(255, 255, 255, 0.86);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  position: relative;
  min-height: 42px;
  padding: 5px 9px;
  transition:
    background 0.18s ease,
    border-color 0.18s ease,
    transform 0.18s ease;
}

.category-tile::after {
  display: none;
}

.category-tile:hover,
.category-tile.is-active {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.12);
}

.category-tile.is-active {
  color: var(--color-deep);
  background: var(--gold-gradient);
  box-shadow: 0 14px 36px rgba(207, 143, 40, 0.35);
}

.category-tile__icon {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: currentColor;
}

.category-tile.is-active .category-tile__icon {
  background: rgba(255, 255, 255, 0.36);
}

.category-pictogram {
  display: block;
  width: 24px;
  height: 24px;
  object-fit: contain;
  transition: transform 0.18s ease;
}

.category-tile:hover .category-pictogram { transform: scale(1.08); }

.category-tile__icon svg {
  width: 17px;
  height: 17px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: none;
}

.category-tile__label {
  max-width: 64px;
  min-height: 0;
  font-size: 11.5px;
  font-weight: 800;
  line-height: 1.1;
  text-align: left;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}

.category-tile.is-active .category-tile__label {
  text-shadow: none;
}

.discovery-panel {
  position: fixed;
  left: 50%;
  right: auto;
  top: auto;
  bottom: 74px;
  transform: translateX(-50%);
  width: min(860px, calc(100vw - 72px));
  max-height: 148px;
  padding: 8px 58px 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 24px;
  background: var(--light-panel);
  color: var(--color-deep);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(20px) saturate(1.2);
  overflow: visible;
  z-index: 30;
  animation: slideCatalogUp 0.14s ease-out both;
}

.discovery-panel.is-search {
  width: min(860px, calc(100vw - 72px));
  max-height: 228px;
  padding: 14px 48px 12px 16px;
}

.discovery-panel[hidden],
.detail-panel[hidden],
.thematic-routes-panel[hidden],
.active-route-return[hidden] {
  display: none;
}

body:has(.thematic-routes-panel:not([hidden])) .active-route-return {
  display: none;
}

.category-tile--routes {
  min-width: 126px;
  color: var(--color-deep);
  background: var(--gold-gradient);
}

.category-tile--routes .category-tile__label {
  max-width: 78px;
  text-shadow: none;
}

.thematic-routes-panel {
  position: fixed;
  left: 50%;
  right: auto;
  top: auto;
  bottom: 74px;
  z-index: 52;
  width: min(940px, calc(100vw - 48px));
  max-height: min(76vh, 720px);
  padding: 22px;
  overflow-y: auto;
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 24px;
  transform: translateX(-50%);
  color: var(--color-deep);
  background: var(--light-panel);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(22px) saturate(1.2);
  animation: slideCatalogUp 0.48s cubic-bezier(0.16, 0.78, 0.18, 1) both;
  scrollbar-width: thin;
}

.thematic-routes-panel__head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-right: 46px;
  margin-bottom: 16px;
}

.thematic-routes-panel__head h2,
.thematic-routes-panel__head small {
  display: block;
  margin: 0;
}

.thematic-routes-panel__head h2 {
  font-size: 26px;
}

.thematic-routes-panel__head small {
  color: var(--color-gold-dark);
  font-weight: 850;
}

.thematic-routes-panel__icon {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 50%;
  background: var(--gold-gradient);
  font-size: 25px;
  font-weight: 900;
}

.thematic-route-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.thematic-route-card {
  display: grid;
  grid-template-columns: minmax(150px, 42%) minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--color-gold) 25%, rgba(19, 34, 57, 0.1));
  border-radius: 16px;
  background: color-mix(in srgb, var(--light-panel) 76%, white);
  box-shadow: 0 14px 30px rgba(15, 32, 50, 0.09);
}

.thematic-route-card > img {
  width: 100%;
  height: 100%;
  min-height: 190px;
  object-fit: cover;
}

.thematic-route-card__body {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  padding: 16px;
}

.thematic-route-card h3,
.thematic-route-card p {
  margin: 0;
}

.thematic-route-card h3 {
  font-size: 20px;
  line-height: 1.14;
}

.thematic-route-card p {
  margin-top: 8px;
  color: #657083;
  font-size: 13px;
  line-height: 1.45;
}

.thematic-route-card__body > button,
.thematic-route-start,
.thematic-route-complete button {
  min-height: 42px;
  margin-top: auto;
  border: 0;
  border-radius: 12px;
  padding: 10px 15px;
  color: var(--color-deep);
  background: var(--gold-gradient);
  font-weight: 900;
}

.thematic-route-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 12px 0;
}

.thematic-route-meta > span {
  padding: 6px 9px;
  border-radius: 999px;
  color: var(--color-deep);
  background: color-mix(in srgb, var(--color-gold) 20%, white);
  font-size: 11px;
  font-weight: 850;
}

.thematic-route-back {
  margin: 0 0 12px;
  border: 0;
  padding: 7px 2px;
  color: var(--color-gold-dark);
  background: transparent;
  font-weight: 850;
}

.thematic-route-detail {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: 16px;
}

@media (min-width: 641px) {
  .thematic-routes-panel.is-detail {
    left: auto;
    right: 8px;
    top: 28px;
    bottom: 66px;
    width: min(392px, calc(100vw - 56px));
    max-height: none;
    padding: 14px;
    transform: none;
    background:
      radial-gradient(circle at 12% 0%, color-mix(in srgb, var(--color-gold) 16%, transparent), transparent 34%),
      var(--detail-panel-bg);
    box-shadow:
      0 20px 50px rgba(40, 60, 70, 0.2),
      inset 0 1px 0 rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(22px) saturate(1.22);
    animation: none;
  }

  .thematic-routes-panel.is-detail .thematic-route-detail {
    grid-template-columns: 1fr;
  }

  .thematic-routes-panel.is-detail .thematic-route-stop {
    grid-template-columns: 34px minmax(0, 1fr) 34px;
    grid-template-areas:
      "image image image"
      "number content action";
    gap: 10px 12px;
    align-items: center;
    padding: 10px;
  }

  .thematic-routes-panel.is-detail .thematic-route-stop > img {
    grid-area: image;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 10px;
  }

  .thematic-routes-panel.is-detail .thematic-route-stop__number {
    grid-area: number;
    margin-top: 0;
  }

  .thematic-routes-panel.is-detail .thematic-route-stop > div {
    display: contents;
    min-width: 0;
  }

  .thematic-routes-panel.is-detail .thematic-route-stop > button {
    grid-area: action;
    margin-top: 0;
  }

  .thematic-routes-panel.is-detail .thematic-route-stop h3 {
    grid-area: content;
  }

  .thematic-routes-panel.is-detail .thematic-route-stop p {
    grid-column: 1 / -1;
    margin-top: 0;
  }
}

.thematic-route-detail__hero {
  position: relative;
  min-height: 230px;
  overflow: hidden;
  border-radius: 18px;
}

.thematic-route-detail__hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.thematic-route-detail__hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 32%, rgba(6, 16, 28, 0.8));
}

.thematic-route-detail__hero > div {
  position: absolute;
  z-index: 1;
  left: 20px;
  right: 20px;
  bottom: 18px;
  color: white;
}

.thematic-route-detail__hero h2,
.thematic-route-detail__hero small {
  display: block;
  margin: 0;
}

.thematic-route-detail__hero h2 {
  font-size: 29px;
  line-height: 1.05;
}

.thematic-route-detail__intro {
  display: flex;
  flex-direction: column;
  padding: 8px 4px;
}

.thematic-route-detail__intro > p {
  margin: 0;
  color: #606b7d;
  line-height: 1.55;
}

.thematic-route-detail__intro .thematic-route-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.thematic-route-detail__intro .thematic-route-meta > span {
  display: grid;
  gap: 3px;
  border-radius: 12px;
}

.thematic-route-detail__intro .thematic-route-meta small {
  color: #727b89;
}

.thematic-route-start {
  width: 100%;
  margin-top: auto;
}

.thematic-route-map {
  position: relative;
  grid-column: 1 / -1;
  height: 380px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--color-gold) 32%, rgba(19, 34, 57, 0.12));
  border-radius: 18px;
  background: #e8ece8;
}

.route-map-expandable {
  position: relative;
  cursor: zoom-in;
}

.route-map-expandable__expand,
.route-map-expandable__location,
.route-map-expandable__close {
  position: absolute;
  z-index: 1001;
  right: 12px;
  bottom: 34px;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: var(--color-deep);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 5px 16px rgba(15, 32, 50, 0.18);
  cursor: pointer;
}

.route-map-expandable__expand {
  display: grid;
}

.route-map-expandable__close {
  display: none;
}

.route-map-expandable__location {
  display: none;
  right: auto;
  left: 12px;
}

.route-map-expandable__expand svg,
.route-map-expandable__location svg,
.route-map-expandable__close svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.route-map-expandable.is-expanded {
  position: fixed !important;
  z-index: 180 !important;
  inset: clamp(22px, 4vw, 58px) !important;
  display: block !important;
  width: auto !important;
  height: auto !important;
  margin: 0 !important;
  overflow: hidden;
  border-radius: 18px;
  background: white;
  box-shadow: 0 22px 70px rgba(6, 16, 28, 0.38);
  cursor: default;
}

.route-map-expandable.is-expanded .route-map-expandable__expand {
  display: none;
}

.route-map-expandable.is-expanded .route-map-expandable__close {
  display: grid;
}

.route-map-expandable.is-expanded .route-map-expandable__location {
  display: grid;
}

.route-map-expandable.is-expanded [data-route-map],
.route-map-expandable.is-expanded [data-route-mini-map] {
  width: 100%;
  height: 100% !important;
}

html.has-expanded-route-map {
  overflow: hidden;
}

.thematic-route-map__canvas {
  width: 100%;
  height: 100%;
}

.thematic-route-map .leaflet-control-attribution {
  font-size: 9px;
}

.thematic-route-map .leaflet-control-layers {
  padding: 3px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 5px 16px rgba(15, 32, 50, 0.2);
}

.thematic-route-map .leaflet-control-layers-base {
  display: flex;
  gap: 2px;
}

.thematic-route-map .leaflet-control-layers-base label {
  margin: 0;
}

.thematic-route-map .leaflet-control-layers-selector {
  position: absolute;
  opacity: 0;
}

.thematic-route-map .leaflet-control-layers-base label > span > span {
  display: block;
  padding: 6px 9px;
  border-radius: 999px;
  color: var(--color-deep);
  font-size: 10px;
  font-weight: 750;
}

.thematic-route-map .leaflet-control-layers-selector:checked + span {
  background: var(--gold-gradient);
  font-weight: 900;
}

.thematic-route-map-marker {
  border: 0;
  background: transparent;
}

.thematic-route-map-marker span {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 3px solid white;
  border-radius: 50%;
  color: var(--color-deep);
  background: var(--gold-gradient);
  box-shadow: 0 6px 16px rgba(15, 32, 50, 0.26);
  font-weight: 900;
}

.map-place-marker {
  display: none;
  border: 0;
  background: transparent;
}

.map-place-marker span {
  display: block;
  width: 12px;
  height: 12px;
  border: 2px solid white;
  border-radius: 50%;
  background: var(--color-gold-dark);
  box-shadow: 0 3px 10px rgba(15, 32, 50, 0.28);
}

.leaflet-tooltip.map-place-label {
  display: none;
  padding: 1px 2px;
  border: 0;
  color: var(--color-deep);
  background: transparent;
  box-shadow: none;
  font-family: inherit;
  font-size: 9px;
  font-weight: 750;
  text-shadow: 0 1px 2px white, 0 0 4px white, 0 0 7px white;
}

.leaflet-tooltip.map-place-label::before {
  display: none;
}

.shows-map-place-labels .map-place-marker,
.shows-map-place-labels .leaflet-tooltip.map-place-label {
  display: block;
}

.leaflet-tooltip.map-place-label.is-route-stop {
  padding: 3px 6px;
  border: 1px solid color-mix(in srgb, var(--color-gold-dark) 42%, white);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 3px 9px rgba(15, 32, 50, 0.14);
  font-size: 9px;
  font-weight: 800;
  text-shadow: none;
}

.thematic-route-user-marker {
  border: 0;
  background: transparent;
}

.thematic-route-user-marker span {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 3px solid white;
  border-radius: 50%;
  background: #2678d8;
  box-shadow: 0 0 0 6px rgba(38, 120, 216, 0.2), 0 6px 16px rgba(15, 32, 50, 0.28);
}

.thematic-route-user-marker i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: white;
}

.route-location {
  display: none;
  grid-column: 1 / -1;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 11px 12px;
  border: 1px solid color-mix(in srgb, var(--color-gold-dark) 24%, transparent);
  border-radius: 14px;
  background: color-mix(in srgb, var(--color-gold) 12%, white);
}

.route-location__icon {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: #2678d8;
  box-shadow: 0 0 0 5px rgba(38, 120, 216, 0.13);
  font-size: 24px;
  font-weight: 900;
}

.route-location small,
.route-location strong {
  display: block;
}

.route-location small {
  margin-bottom: 2px;
  color: #687386;
  font-size: 10px;
  font-weight: 850;
}

.route-location strong {
  color: var(--color-deep);
  font-size: 12px;
  line-height: 1.3;
}

.route-location button {
  min-height: 38px;
  border: 0;
  border-radius: 999px;
  padding: 8px 12px;
  color: var(--color-deep);
  background: var(--gold-gradient);
  font-size: 11px;
  font-weight: 900;
}

.route-location__actions {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.route-location__actions button,
.route-location__actions a {
  display: flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  padding: 8px 12px;
  color: var(--color-deep);
  background: var(--gold-gradient);
  font-size: 11px;
  font-weight: 900;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
}

.route-location button:disabled {
  opacity: 0.7;
}

.route-location__map-shell {
  grid-column: 1 / -1;
  width: 100%;
  height: 220px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--color-gold-dark) 22%, transparent);
  border-radius: 11px;
  background: #e8ece8;
}

.route-location__map-shell[hidden] {
  display: none;
}

.route-location__map {
  width: 100%;
  height: 100%;
}

.route-location__map .leaflet-control-attribution {
  padding: 1px 3px;
  background: rgba(255, 255, 255, 0.78);
  font-size: 7px;
}

.route-location__map .leaflet-control-zoom {
  border: 0;
  box-shadow: 0 4px 12px rgba(15, 32, 50, 0.22);
}

.route-location__map .leaflet-control-zoom a {
  width: 26px;
  height: 26px;
  line-height: 26px;
}

.thematic-route-map-marker.is-mini span {
  width: 26px;
  height: 26px;
  border-width: 2px;
  font-size: 10px;
}

.route-location.is-compact {
  grid-template-columns: 34px minmax(0, 1fr) auto;
  padding: 9px 10px;
  background: rgba(255, 255, 255, 0.72);
}

.route-location.is-compact .route-location__icon {
  width: 32px;
  height: 32px;
  box-shadow: 0 0 0 4px rgba(38, 120, 216, 0.12);
  font-size: 19px;
}

.thematic-route-stops {
  display: grid;
  grid-column: 1 / -1;
  gap: 8px;
}

.thematic-route-stops__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5px 2px;
}

.thematic-route-stop {
  display: grid;
  grid-template-columns: 38px 92px minmax(0, 1fr) 36px;
  gap: 12px;
  align-items: center;
  padding: 8px;
  border: 1px solid rgba(19, 34, 57, 0.09);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
}

.thematic-route-stop.is-current {
  border-color: var(--color-gold-dark);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--color-gold) 20%, transparent);
}

.thematic-route-stop__number {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  color: var(--color-deep);
  background: color-mix(in srgb, var(--color-gold) 35%, white);
  font-weight: 900;
}

.thematic-route-stop.is-visited .thematic-route-stop__number {
  background: var(--gold-gradient);
}

.thematic-route-stop > img {
  width: 92px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 9px;
}

.thematic-route-stop h3,
.thematic-route-stop p {
  margin: 0;
}

.thematic-route-stop h3 {
  font-size: 15px;
}

.thematic-route-stop p {
  margin-top: 3px;
  color: #697386;
  font-size: 12px;
}

.thematic-route-stop > button {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  color: var(--color-deep);
  background: var(--gold-gradient);
  font-size: 22px;
}

.thematic-route-end {
  grid-column: 1 / -1;
  justify-self: center;
  border: 0;
  padding: 10px 14px;
  color: #6f7785;
  background: transparent;
  text-decoration: underline;
}

.active-route-return {
  position: fixed;
  left: 18px;
  bottom: 78px;
  z-index: 54;
  display: flex;
  max-width: min(310px, calc(100vw - 36px));
  align-items: center;
  gap: 0;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 999px;
  color: var(--color-deep);
  background: var(--gold-gradient);
  box-shadow: 0 12px 30px rgba(15, 32, 50, 0.2);
}

.active-route-return__open {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
  padding: 8px 9px;
  border: 0;
  color: inherit;
  background: transparent;
}

.active-route-return__open > span:last-child {
  min-width: 0;
}

.active-route-return__open > span:first-child {
  display: grid;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  font-size: 18px;
}

.active-route-return__close {
  display: grid;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  margin-right: 8px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: var(--color-deep);
  background: rgba(255, 255, 255, 0.44);
  font-size: 18px;
  font-weight: 800;
}

.active-route-return small,
.active-route-return strong {
  display: block;
  overflow: hidden;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.active-route-return small {
  font-size: 10px;
}

.active-route-return strong {
  font-size: 12px;
}

.detail-route-context {
  display: grid;
  gap: 10px;
  margin: 12px 0;
  padding: 14px;
  border: 1px solid color-mix(in srgb, var(--color-gold-dark) 28%, transparent);
  border-radius: 14px;
  background: color-mix(in srgb, var(--color-gold) 14%, white);
}

.detail-route-context header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.detail-route-context header small,
.detail-route-context header strong {
  display: block;
}

.detail-route-context header small {
  color: var(--color-gold-dark);
  font-weight: 850;
}

.detail-route-context header button {
  border: 0;
  border-radius: 999px;
  padding: 8px 11px;
  color: var(--color-deep);
  background: var(--gold-gradient);
  font-size: 11px;
  font-weight: 900;
  text-decoration: none;
}

.detail-route-context__progress {
  display: flex;
  align-items: center;
  gap: 4px;
  overflow-x: auto;
}

.detail-route-context__progress span {
  display: grid;
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  place-items: center;
  border-radius: 50%;
  background: white;
  color: #768091;
  font-size: 10px;
  font-weight: 900;
}

.detail-route-context__progress span.is-visited,
.detail-route-context__progress span.is-current {
  color: var(--color-deep);
  background: var(--color-gold);
}

.detail-route-context__progress span.is-current {
  box-sizing: border-box;
  border: 2px solid var(--color-gold-dark);
  box-shadow: none;
}

.detail-route-context__actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 8px;
}

.detail-route-context__stop-card {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr) 24px;
  gap: 9px;
  align-items: center;
  min-height: 72px;
  border: 1px solid color-mix(in srgb, var(--color-gold-dark) 22%, transparent);
  border-radius: 12px;
  padding: 7px 8px 7px 7px;
  color: var(--color-deep);
  background: white;
  text-align: left;
}

.detail-route-context__stop-card img {
  width: 78px;
  height: 58px;
  object-fit: cover;
  border-radius: 8px;
}

.detail-route-context__stop-card > span {
  min-width: 0;
}

.detail-route-context__stop-card b {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 50%;
  background: var(--gold-gradient);
  font-size: 18px;
}

.detail-route-context__actions small {
  display: block;
  margin-bottom: 3px;
  color: #747e8e;
  font-size: 9px;
  font-weight: 800;
}

.detail-route-context__actions strong {
  display: block;
  font-size: 11px;
  line-height: 1.22;
}

.detail-route-context__finish {
  width: 100%;
  min-height: 42px;
  border: 0;
  border-radius: 999px;
  color: var(--color-deep);
  background: var(--gold-gradient);
  text-align: center;
}

.thematic-route-complete {
  display: grid;
  max-width: 520px;
  min-height: 330px;
  place-items: center;
  align-content: center;
  gap: 8px;
  margin: auto;
  text-align: center;
}

.thematic-route-complete > span {
  display: grid;
  width: 70px;
  height: 70px;
  place-items: center;
  border-radius: 50%;
  color: var(--color-deep);
  background: var(--gold-gradient);
  font-size: 34px;
  font-weight: 900;
}

.thematic-route-complete h2,
.thematic-route-complete p {
  margin: 0;
}

@media (max-width: 820px) {
  .thematic-route-grid {
    grid-template-columns: 1fr;
  }

  .thematic-route-detail {
    grid-template-columns: 1fr;
  }

  .thematic-route-map,
  .thematic-route-stops,
  .thematic-route-end {
    grid-column: 1;
  }
}

@media (max-width: 640px) {
  .thematic-routes-panel {
    left: 8px;
    right: 8px;
    top: 8px;
    bottom: 8px;
    width: auto;
    max-height: none;
    padding: 14px;
    border-radius: 22px;
    transform: none;
    z-index: 86;
    animation: mobilePanelUp 0.42s cubic-bezier(0.2, 0.8, 0.2, 1) both;
  }

  .thematic-routes-panel .panel-close.is-floating {
    top: 12px;
    right: 12px;
  }

  .thematic-route-card {
    position: relative;
    display: flex;
    min-height: 0;
    flex-direction: column;
    grid-template-columns: none;
    background: color-mix(in srgb, var(--light-panel) 82%, white);
  }

  .thematic-route-card > img {
    position: relative;
    inset: auto;
    z-index: auto;
    display: block;
    flex: 0 0 auto;
    height: auto;
    min-height: 0;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    opacity: 1;
    filter: none;
  }

  .thematic-route-card__body {
    position: relative;
    z-index: 1;
    width: 100%;
    color: var(--color-deep);
    background: color-mix(in srgb, var(--light-panel) 82%, white);
  }

  .thematic-route-card::before,
  .thematic-route-card::after {
    display: none;
  }

  .thematic-route-card__body > button {
    width: 100%;
    margin-top: 12px;
  }

  .thematic-route-detail__hero {
    min-height: 200px;
  }

  .thematic-route-detail__hero h2 {
    font-size: 25px;
  }

  .thematic-route-map {
    height: clamp(320px, 46svh, 440px);
  }

  .route-location,
  .route-location.is-compact {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr);
  }

  .route-location__actions {
    grid-column: 1 / -1;
    width: 100%;
  }

  .route-location__map-shell {
    height: clamp(240px, 38svh, 340px);
  }

  .route-map-expandable.is-expanded {
    inset: 0 !important;
    border: 0;
    border-radius: 0;
  }

  .route-map-expandable.is-expanded .route-map-expandable__close {
    right: max(12px, env(safe-area-inset-right));
    bottom: max(34px, calc(env(safe-area-inset-bottom) + 22px));
  }

  .route-map-expandable.is-expanded .route-map-expandable__location {
    left: max(12px, env(safe-area-inset-left));
    bottom: max(34px, calc(env(safe-area-inset-bottom) + 22px));
  }

  .thematic-route-stop {
    grid-template-columns: 34px minmax(0, 1fr) 34px;
    grid-template-areas:
      "image image image"
      "number content action";
    gap: 10px 12px;
    align-items: center;
    padding: 10px;
  }

  .thematic-route-stop > img {
    grid-area: image;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 10px;
  }

  .thematic-route-stop__number {
    grid-area: number;
    margin-top: 0;
  }

  .thematic-route-stop > div {
    display: contents;
    min-width: 0;
  }

  .thematic-route-stop > button {
    grid-area: action;
    margin-top: 0;
  }

  .thematic-route-stop h3 {
    grid-area: content;
    font-size: 15px;
  }

  .thematic-route-stop p {
    grid-column: 1 / -1;
    margin: 0 4px 4px;
    font-size: 12px;
    line-height: 1.42;
  }

  .active-route-return {
    left: 50%;
    bottom: 78px;
    transform: translateX(-50%);
    z-index: 66;
  }

  .corner-action--routes span {
    display: none;
  }
}

.panel-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: start;
  margin-bottom: 12px;
}

.panel-head h2 {
  margin: 0;
  font-size: 22px;
  line-height: 1;
}

.panel-head p {
  margin: 0;
  color: #667085;
  font-size: 13px;
  line-height: 1.35;
}

.panel-close,
.detail-panel__close {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: white;
  color: #142238;
  font-weight: 900;
  display: grid;
  place-items: center;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.14);
}

.panel-close.is-floating {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 4;
  width: 34px;
  height: 34px;
}

.search-panel-head {
  margin: 0 0 10px;
  padding-right: 4px;
}

.search-panel-field {
  min-height: 46px;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 420px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(19, 32, 51, 0.1);
  background: rgba(255, 255, 255, 0.76);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.8),
    0 10px 24px rgba(15, 23, 42, 0.08);
}

.search-panel-field svg {
  width: 19px;
  height: 19px;
  flex: 0 0 auto;
  fill: none;
  stroke: var(--color-gold-dark);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.search-panel-field input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: #132033;
  font: inherit;
  font-size: 15px;
  font-weight: 750;
}

.search-panel-field input::placeholder {
  color: rgba(19, 32, 51, 0.5);
}

.object-grid {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  overflow-y: visible;
  min-height: 122px;
  align-items: center;
  padding: 0 4px;
  perspective: 900px;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
}

.object-grid.is-centered {
  justify-content: center;
}

.object-card {
  flex: 0 0 188px;
  position: relative;
  scroll-snap-align: start;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 16px;
  background: color-mix(in srgb, var(--color-gold, #a86159) 72%, #172033);
  overflow: hidden;
  box-shadow: 0 16px 38px rgba(15, 23, 42, 0.18);
  transform-style: preserve-3d;
  transition:
    transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 0.28s ease,
    border-color 0.28s ease,
    filter 0.28s ease;
}

.object-card img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9.6;
  object-fit: cover;
  transform: scale(1.01);
  transition: transform 0.35s ease;
}

.object-card__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(4, 10, 18, 0) 28%, rgba(4, 10, 18, 0.82) 100%),
    radial-gradient(circle at 50% 35%, rgba(255, 255, 255, 0), rgba(0, 0, 0, 0.2));
  pointer-events: none;
}

.object-card__body {
  position: absolute;
  inset: 0;
  z-index: 2;
  padding: 11px;
  color: white;
  display: flex;
  align-items: end;
  justify-content: center;
}

.object-card__body h3 {
  margin: 0;
  font-size: 15px;
  line-height: 1.08;
  text-align: center;
  text-shadow: 0 3px 14px rgba(0, 0, 0, 0.6);
}

.object-card__body button {
  width: 100%;
  margin-top: 8px;
  border: 0;
  border-radius: 999px;
  padding: 7px 10px;
  background: var(--gold-gradient-soft);
  color: var(--color-deep);
  font-size: 12px;
  font-weight: 900;
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity 0.22s ease,
    transform 0.22s ease,
    background 0.22s ease;
}

.object-card__body button {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 46px;
  height: 46px;
  min-width: 0;
  margin-top: 0;
  padding: 0;
  font-size: 12px;
  line-height: 1;
  display: grid;
  place-items: center;
  transform: translate(-50%, -50%) scale(0.74) rotate(-18deg);
  box-shadow:
    0 12px 30px rgba(0, 0, 0, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.object-card__body button svg {
  width: 24px;
  height: 24px;
  margin: auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.object-card:hover,
.object-card:focus-within {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--color-gold) 74%, rgba(255, 255, 255, 0.44));
  filter: saturate(1.08) contrast(1.04);
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--color-gold) 54%, transparent),
    0 22px 54px rgba(0, 0, 0, 0.34),
    0 0 42px color-mix(in srgb, var(--color-gold) 22%, transparent);
}

@keyframes slideCatalogUp {
  from {
    opacity: 0;
    transform: translate(-50%, 26px);
  }

  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

.object-card:hover img,
.object-card:focus-within img {
  transform: scale(1.09);
}

.object-card:hover .object-card__body button,
.object-card:focus-within .object-card__body button {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1) rotate(0deg);
  animation: spin360Badge 2.8s linear infinite;
}

@keyframes spin360Badge {
  from {
    transform: translate(-50%, -50%) scale(1) rotate(0deg);
  }

  to {
    transform: translate(-50%, -50%) scale(1) rotate(360deg);
  }
}

.detail-panel {
  position: fixed;
  right: 8px;
  top: 28px;
  bottom: 66px;
  width: min(392px, calc(100vw - 56px));
  padding: 14px;
  overflow-y: auto;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 24px;
  background:
    radial-gradient(circle at 12% 0%, color-mix(in srgb, var(--color-gold) 16%, transparent), transparent 34%),
    var(--detail-panel-bg);
  backdrop-filter: blur(22px) saturate(1.22);
  color: var(--color-deep);
  z-index: 32;
  box-shadow:
    0 20px 50px rgba(40, 60, 70, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);
  scrollbar-width: thin;
}

.detail-panel.is-info-collapsed {
  top: 50%;
  right: 0;
  bottom: auto;
  width: 58px;
  height: 58px;
  min-height: 0;
  padding: 0;
  border-radius: 999px 0 0 999px;
  transform: translateY(-50%);
  overflow: hidden;
  cursor: pointer;
  display: grid;
  place-items: center;
  background: var(--gold-gradient);
  border: 1px solid rgba(255, 255, 255, 0.58);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.28);
  z-index: 72;
}

.detail-panel.is-info-collapsed > * {
  display: none;
}

.detail-panel.is-info-collapsed::before {
  content: "i";
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.34);
  color: var(--color-deep);
  font: 900 23px/1 Inter, system-ui, sans-serif;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.municipality-panel {
  z-index: 55;
  background:
    radial-gradient(circle at 18% 0%, color-mix(in srgb, var(--color-gold) 16%, transparent), transparent 36%),
    var(--detail-panel-bg);
}

.municipality-panel__close {
  background: white;
  color: var(--color-deep);
}

.municipality-panel__brand {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 8px 56px 0 4px;
}

.municipality-panel__brand img {
  width: clamp(52px, 5.4vw, 68px);
  max-height: 78px;
  height: auto;
  flex: 0 0 auto;
  object-fit: contain;
  filter: drop-shadow(0 8px 16px rgba(80, 52, 10, 0.18));
}

.municipality-panel__brand h2 {
  margin: 0;
  font-family: var(--font-main);
  font-size: 31px;
  font-weight: 900;
  line-height: 0.98;
  letter-spacing: 0;
  color: var(--color-deep);
}

.municipality-panel__brand p {
  margin: 5px 0 0;
  color: var(--color-gold-dark);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.municipality-panel__intro {
  margin: 18px 6px 14px;
  color: #586174;
  font-size: 14px;
  line-height: 1.48;
  text-align: center;
}

.municipality-panel__divider {
  width: 210px;
  height: 14px;
  margin: 0 auto 14px;
  background:
    radial-gradient(circle, var(--color-gold) 0 2px, transparent 3px) center / 34px 14px no-repeat,
    linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.16), transparent) center / 100% 1px no-repeat;
}

.municipality-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}

.municipality-stat {
  min-height: 74px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 9px 6px;
  border-radius: 15px;
  background: var(--detail-soft-bg);
  border: 1px solid var(--detail-accent-border);
}

.municipality-stat span {
  color: var(--color-gold);
}

.municipality-stat svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.municipality-stat strong {
  display: block;
  margin-top: 3px;
  font-size: 16px;
  line-height: 1;
  color: #17243a;
}

.municipality-stat small {
  display: block;
  margin-top: 3px;
  color: #6c7482;
  font-size: 10px;
  line-height: 1.2;
}

.municipality-gallery {
  display: grid;
  grid-template-columns: 1fr 78px;
  gap: 8px;
  margin-bottom: 14px;
}

.municipality-gallery button {
  border: 0;
  padding: 0;
  border-radius: 14px;
  overflow: hidden;
  background: transparent;
  cursor: zoom-in;
}

.municipality-gallery__main-button {
  display: block;
}

.municipality-gallery img {
  display: block;
  width: 100%;
  object-fit: cover;
  border-radius: 14px;
  transition: transform 0.25s ease, filter 0.25s ease;
}

.municipality-gallery button:hover img {
  transform: scale(1.025);
  filter: saturate(1.08);
}

.municipality-gallery__main {
  height: 150px;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.12);
}

.municipality-gallery.has-no-thumbs {
  grid-template-columns: minmax(0, 1fr);
}

.municipality-gallery.has-no-thumbs .municipality-gallery__main {
  height: auto;
  aspect-ratio: 16 / 9;
}

.municipality-gallery__thumbs {
  display: grid;
  gap: 7px;
}

.municipality-gallery__thumbs img {
  height: 45px;
}

.municipality-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 16px;
}

.municipality-actions.is-single {
  grid-template-columns: minmax(0, 1fr);
  max-width: 360px;
}

.municipality-actions a {
  min-height: 52px;
  border: 1px solid var(--detail-accent-border);
  border-radius: 14px;
  background: var(--light-panel);
  color: var(--color-deep);
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-weight: 800;
  font-size: 13px;
}

.municipality-actions svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: var(--color-gold);
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.municipality-bottom {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(20, 34, 56, 0.08);
}

.municipality-bottom h3 {
  margin: 0 0 10px;
  color: #17243a;
  font-size: 16px;
}

.municipality-bottom h3::after {
  content: "";
  display: block;
  width: 52px;
  height: 2px;
  margin-top: 8px;
  background: linear-gradient(90deg, var(--color-gold), transparent);
}

.municipality-bottom ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 9px;
}

.municipality-bottom li {
  position: relative;
  padding-left: 24px;
  color: #586174;
  font-size: 13px;
  line-height: 1.3;
}

.municipality-bottom li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--color-gold);
  color: var(--color-deep);
  font-size: 10px;
  font-weight: 900;
}

.municipality-socials {
  display: flex;
  gap: 10px;
  padding: 10px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.48);
}

.municipality-socials a {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: white;
  font-weight: 900;
  font-size: 20px;
  text-decoration: none;
  background: linear-gradient(135deg, #2b6bdc, #4b8df3);
}

.municipality-socials a.is-instagram {
  background: linear-gradient(135deg, #8039d5, #f05b7a);
}

.municipality-socials a.is-youtube {
  background: linear-gradient(135deg, #d3362d, #f2673e);
}

.detail-panel__hero {
  position: relative;
}

.detail-panel__hero img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.12);
  cursor: zoom-in;
  transition: transform 0.25s ease, filter 0.25s ease;
}

.detail-panel__hero img:hover {
  transform: scale(1.012);
  filter: saturate(1.08);
}

.detail-panel__close {
  position: absolute;
  right: 22px;
  top: 22px;
  z-index: 3;
  display: grid;
  place-items: center;
  font-size: 24px;
  line-height: 1;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.12);
}

.detail-panel__audio {
  position: absolute;
  right: 22px;
  top: 72px;
  z-index: 3;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--color-deep);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.14);
  cursor: pointer;
  transition:
    transform 0.18s ease,
    background 0.18s ease,
    color 0.18s ease;
}

.detail-panel__audio:hover,
.detail-panel__audio.is-playing {
  transform: translateY(-1px);
  color: #fff;
  background: var(--gold-gradient);
}

@media (max-width: 640px) {
  .detail-panel__audio {
    top: 16px;
    right: 68px;
  }

  .detail-panel:not(.municipality-panel) > .detail-panel__audio {
    top: 72px;
    right: 22px;
  }

  .municipality-panel__brand {
    padding-right: 108px;
  }
}

.detail-panel__badge {
  position: absolute;
  left: 10px;
  top: 10px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--gold-gradient);
  color: white;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  box-shadow: 0 10px 26px color-mix(in srgb, var(--color-gold-dark) 26%, transparent);
}

.detail-panel__intro {
  padding: 14px 4px 0;
}

.detail-panel h2 {
  margin: 0;
  font-size: 28px;
  line-height: 1.04;
  letter-spacing: 0;
}

.detail-panel__highlight {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 10px 0 0;
  color: var(--color-gold-dark);
  font-size: 14px;
  font-weight: 900;
  line-height: 1.24;
}

.detail-panel__highlight::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, color-mix(in srgb, var(--color-gold-dark) 42%, transparent), transparent);
}

.detail-panel__summary,
.detail-story-card p {
  color: #586174;
  line-height: 1.5;
  font-size: 14px;
}

.detail-panel__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 14px 0 16px;
}

.detail-panel__actions.is-single {
  grid-template-columns: 1fr;
}

.detail-panel__actions.is-single .detail-action--light:not(.is-muted) {
  border: 0;
  background: var(--gold-gradient);
  color: #fff;
  box-shadow: 0 14px 26px color-mix(in srgb, var(--color-gold-dark) 22%, transparent);
}

.detail-panel__actions.is-single .detail-action--light:not(.is-muted) small,
.detail-panel__actions.is-single .detail-action--light:not(.is-muted) strong {
  color: #fff;
}

.detail-panel__actions.is-single .detail-action--light:not(.is-muted) .detail-action__icon {
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
}

.detail-action {
  min-height: 64px;
  border: 1px solid var(--detail-accent-border);
  border-radius: 14px;
  padding: 10px 12px;
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 9px;
  align-items: center;
  text-align: left;
  color: var(--color-deep);
  background: var(--detail-soft-bg);
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
}

.detail-action[hidden] {
  display: none !important;
}

.detail-action strong {
  display: block;
  font-size: 14px;
  color: inherit;
  line-height: 1.08;
}

.detail-action small {
  display: block;
  margin-top: 3px;
  color: #6f7584;
  font-weight: 750;
  line-height: 1.1;
}

.detail-action__icon {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--detail-accent-muted);
  color: var(--color-gold-dark);
  font-weight: 900;
}

.detail-action__icon svg,
.detail-story-card h3 span svg,
.detail-panel-block h3 span svg,
.detail-practical-icon svg,
.detail-panel__audio svg {
  width: 18px;
  height: 18px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.detail-action--gold {
  border: 0;
  background: var(--gold-gradient);
  color: #fff;
  box-shadow: 0 14px 26px color-mix(in srgb, var(--color-gold-dark) 22%, transparent);
}

.detail-action--gold small,
.detail-action--gold strong {
  color: white;
}

.detail-action--gold .detail-action__icon {
  background: rgba(255, 255, 255, 0.22);
  color: white;
}

.detail-panel__actions .is-muted {
  opacity: 0.58;
}

.detail-story-card,
.detail-panel-block {
  margin-top: 14px;
}

.detail-story-card {
  padding: 16px;
  border-radius: 18px;
  background: var(--detail-card-bg);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.detail-story-card h3,
.detail-panel-block h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  font-size: 16px;
  color: #17243a;
}

.detail-story-card h3 span,
.detail-panel-block h3 span {
  width: 22px;
  height: 22px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
}

.detail-story-card h3 {
  color: var(--color-gold-dark);
}

.detail-story-card.is-collapsed p {
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.detail-story-card.is-expanded p {
  display: block;
  overflow: visible;
}

.detail-story-card button,
.detail-text-link {
  border: 0;
  background: transparent;
  color: var(--color-gold-dark);
  font-weight: 900;
  cursor: pointer;
}

.detail-visit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.detail-visit-item {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 11px;
  align-items: center;
  min-height: 76px;
  padding: 12px 13px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--color-gold) 72%, white);
  border: 1px solid color-mix(in srgb, var(--color-gold-dark) 18%, white);
}

.detail-visit-item > span {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--color-gold-dark) 42%, transparent);
  background: color-mix(in srgb, var(--color-gold-dark) 18%, var(--color-gold));
  color: var(--color-gold-dark);
  font-size: 17px;
}

.detail-visit-item > span svg {
  display: block;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.detail-visit-item small {
  display: block;
  margin-bottom: 3px;
  color: #6c7482;
  font-size: 10px;
  font-weight: 800;
}

.detail-visit-item strong {
  display: block;
  color: #17243a;
  font-size: 12px;
  line-height: 1.24;
}

.detail-highlights ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.detail-highlights li {
  position: relative;
  padding: 11px 13px 11px 42px;
  border: 1px solid color-mix(in srgb, var(--color-gold) 28%, white);
  border-radius: 11px;
  background: color-mix(in srgb, var(--color-gold) 10%, white);
  color: #273247;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
}

.detail-highlights li::before {
  content: "\2713";
  position: absolute;
  top: 50%;
  left: 13px;
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border-radius: 50%;
  background: color-mix(in srgb, var(--color-gold) 44%, white);
  color: var(--color-gold-dark);
  font-size: 12px;
  font-weight: 900;
  transform: translateY(-50%);
}

@media (max-width: 640px) {
  .detail-visit-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .detail-visit-item {
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 7px;
    min-height: 82px;
    padding: 9px 8px;
  }

  .detail-visit-item > span {
    width: 30px;
    height: 30px;
    font-size: 14px;
  }

  .detail-visit-item > span svg {
    width: 17px;
    height: 17px;
  }

  .detail-visit-item small {
    margin-bottom: 2px;
    font-size: 9px;
  }

  .detail-visit-item strong {
    font-size: 10.5px;
    line-height: 1.23;
  }
}

.detail-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.detail-gallery button {
  border: 0;
  padding: 0;
  border-radius: 10px;
  overflow: hidden;
  background: transparent;
  cursor: pointer;
}

.detail-gallery img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.25s ease, filter 0.25s ease;
}

.detail-gallery button:hover img {
  transform: scale(1.06);
  filter: saturate(1.08);
}

.municipality-gallery button:focus-visible,
.detail-gallery button:focus-visible,
.detail-panel__hero img:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--color-gold) 72%, transparent);
  outline-offset: 3px;
}

.detail-text-link {
  display: block;
  margin: 9px auto 0;
}

.detail-experiences {
  display: none;
  position: relative;
  margin: 24px 0 4px;
  padding: 18px;
  background: color-mix(in srgb, var(--color-deep) 6%, #f7f9fc);
  border: 1px solid color-mix(in srgb, var(--color-deep) 11%, transparent);
  border-radius: 22px;
  box-shadow: 0 10px 26px color-mix(in srgb, var(--color-deep) 10%, transparent);
}

.detail-experiences > h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  font-family: Manrope, "Segoe UI", sans-serif;
  font-size: 17px;
  font-weight: 800;
  color: var(--color-deep);
}

.detail-experiences > h3 span {
  display: inline-grid;
  place-items: center;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  color: white;
  background: var(--color-deep);
  border-radius: 50%;
  box-shadow: 0 5px 14px color-mix(in srgb, var(--color-deep) 20%, transparent);
}

.detail-experience {
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
}

@media (max-width: 640px) {
  .detail-experiences {
    display: block;
  }
}

.detail-experience__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 11px;
}

.detail-experience__tags span {
  padding: 6px 10px;
  border-radius: 7px;
  background: linear-gradient(135deg, var(--color-gold), var(--color-gold-dark));
  color: white;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
}

.detail-experience__content {
  display: grid;
  grid-template-columns: 98px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
}

.detail-experience__media {
  width: 98px;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  border-radius: 11px;
  background: transparent;
}

.detail-experience__media img,
.detail-experience__media video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-experience__copy {
  min-width: 0;
}

.detail-experience__copy p {
  margin: 0;
  color: #5f6878;
  font-size: 14px;
  line-height: 1.55;
}

.detail-experience--quiz .detail-experience__content,
.detail-experience--puzzle .detail-experience__content,
.detail-experience--differences .detail-experience__content,
.detail-experience--ar-video .detail-experience__content {
  grid-template-columns: 1fr;
  align-items: stretch;
  gap: 12px;
}

.detail-experience--quiz .detail-experience__media,
.detail-experience--puzzle .detail-experience__media,
.detail-experience--differences .detail-experience__media,
.detail-experience--ar-video .detail-experience__media {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 11px;
}

.detail-experience--quiz .detail-experience__copy p,
.detail-experience--puzzle .detail-experience__copy p,
.detail-experience--differences .detail-experience__copy p,
.detail-experience--ar-video .detail-experience__copy p {
  padding: 0 2px;
}

.detail-experience--ar-video .detail-experience__media {
  position: relative;
  background: color-mix(in srgb, var(--color-gold) 8%, white);
}

.detail-experience__chroma-source {
  position: absolute;
  width: 1px !important;
  height: 1px !important;
  opacity: 0;
  pointer-events: none;
}

.detail-experience__chroma-preview {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.detail-experience__footer {
  margin-top: 12px;
}

.detail-experience__action {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 10px 14px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--color-gold), var(--color-gold-dark));
  color: white;
  text-decoration: none;
  box-shadow: 0 10px 22px color-mix(in srgb, var(--color-gold-dark) 25%, transparent);
}

.detail-experience__action span {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
}

.detail-experience__action svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

/* Activity cards keep one structure while giving each experience its own identity. */
.detail-experiences {
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.detail-experiences__heading {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  padding-bottom: 11px;
  border-bottom: 1px solid color-mix(in srgb, var(--experience-accent) 16%, transparent);
}

.detail-experiences__heading > span {
  display: grid;
  place-items: center;
  overflow: hidden;
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: var(--experience-accent);
  background: color-mix(in srgb, var(--experience-accent) 12%, white);
}

.detail-experiences__heading svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
}

.detail-experience__ar-icon {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.42);
}

.detail-experiences__heading h3 {
  margin: 0;
  color: #252d3d;
  font-family: Manrope, "Segoe UI", sans-serif;
  font-size: 15px;
  font-weight: 850;
  text-transform: uppercase;
}

.detail-experiences__heading p {
  margin: 2px 0 0;
  color: #747d8d;
  font-size: 11px;
  line-height: 1.3;
}

.detail-experience {
  --experience-accent: #6d5b8c;
  --experience-surface: #f1edf7;
  position: relative;
  padding: 14px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--experience-accent) 24%, white);
  border-radius: 8px;
  background: var(--experience-surface);
}

.detail-experience + .detail-experience {
  margin-top: 12px;
}

.detail-experience--ar-character {
  --experience-accent: #cf5b50;
  --experience-surface: linear-gradient(135deg, #fffaf6 0%, #fff1eb 54%, #f9e8ef 100%);
}

.detail-experience--ar-video {
  --experience-accent: #cf5b50;
  --experience-surface: linear-gradient(135deg, #fffaf6 0%, #fff1eb 54%, #f9e8ef 100%);
}

.detail-experience--puzzle {
  --experience-accent: #b97924;
  --experience-surface: #faf2e4;
}

.detail-experience--reality-differences {
  --experience-accent: #73529b;
  --experience-surface: #f0ebf7;
}

.detail-experience--quiz {
  --experience-accent: #356da1;
  --experience-surface: #eaf2f8;
}

.detail-experience h4 {
  margin: 0 0 10px;
  color: #222b3d;
  font-size: 18px;
  line-height: 1.25;
}

.detail-experience__tags {
  margin-bottom: 8px;
}

.detail-experience__tags span {
  padding: 5px 8px;
  color: var(--experience-accent);
  background: color-mix(in srgb, var(--experience-accent) 12%, white);
  border: 1px solid color-mix(in srgb, var(--experience-accent) 20%, white);
}

.detail-experience__media {
  border: 1px solid color-mix(in srgb, var(--experience-accent) 15%, white);
  background: white;
}

.detail-experience__copy p {
  color: #555f70;
  font-size: 13px;
  line-height: 1.45;
}

.detail-experience__action {
  min-height: 46px;
  justify-content: flex-start;
  border-radius: 7px;
  background: var(--experience-accent);
  box-shadow: 0 8px 16px color-mix(in srgb, var(--experience-accent) 20%, transparent);
}

.detail-experience__action::after {
  content: "\2192";
  margin-left: auto;
  font-size: 19px;
  line-height: 1;
}

.detail-experience--ar-character .detail-experience__content,
.detail-experience--ar-video .detail-experience__content {
  grid-template-columns: minmax(0, 1fr) 94px;
  align-items: start;
  gap: 13px;
}

.detail-experience--ar-character .detail-experience__copy,
.detail-experience--ar-video .detail-experience__copy {
  grid-column: 1;
  grid-row: 1;
}

.detail-experience--ar-character .detail-experience__media,
.detail-experience--ar-video .detail-experience__media {
  position: relative;
  grid-column: 2;
  grid-row: 1;
  width: 94px;
  aspect-ratio: 137 / 278;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 8px;
  background: transparent;
  box-shadow: none;
}

.detail-experience--ar-character .detail-experience__media::after,
.detail-experience--ar-video .detail-experience__media::after {
  content: "";
  position: absolute;
  z-index: 2;
  inset: 0;
  width: 100%;
  height: 100%;
  background: url("../../assets/ui/ar-phone-frame-cropped.png?v=1") center / 100% 100% no-repeat;
  pointer-events: none;
}

.detail-experience--ar-character .detail-experience__media img,
.detail-experience--ar-character .detail-experience__media video,
.detail-experience--ar-character .detail-experience__media canvas,
.detail-experience--ar-video .detail-experience__media img,
.detail-experience--ar-video .detail-experience__media video,
.detail-experience--ar-video .detail-experience__media canvas {
  position: absolute;
  z-index: 1;
  left: 6%;
  top: 3%;
  width: 85% !important;
  height: 92.5% !important;
  border-radius: 13% / 6%;
  object-fit: cover;
}

.detail-experience--ar-video .detail-experience__chroma-source {
  width: 1px !important;
  height: 1px !important;
  opacity: 0;
}

.detail-experience__facts {
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: 0.85fr 1fr 1.35fr;
  gap: 6px;
  width: calc(100% + 7px);
  margin: 10px -7px 0 0;
}

.detail-experience__facts > span {
  min-width: 0;
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 6px 5px;
  border: 1px solid color-mix(in srgb, var(--experience-accent) 12%, white);
  border-radius: 8px;
  color: #3e4859;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 5px 12px rgba(73, 52, 48, 0.08);
  backdrop-filter: blur(5px);
}

.detail-experience__facts svg {
  flex: 0 0 14px;
  width: 14px;
  height: 14px;
  fill: none;
  stroke: var(--experience-accent);
  stroke-width: 1.8;
}

.detail-experience__facts b {
  min-width: 0;
  font-size: 9px;
  font-weight: 750;
  line-height: 1.18;
  text-align: left;
}

.detail-experience--reality-differences .detail-experience__content {
  grid-template-columns: 112px minmax(0, 1fr);
  align-items: center;
  gap: 13px;
}

.detail-experience--reality-differences .detail-experience__media {
  width: 112px;
  aspect-ratio: 1 / 1;
  overflow: visible;
  border: 0;
  background: transparent;
}

.detail-experience__difference-collage {
  position: relative;
  width: 100%;
  height: 100%;
}

.detail-experience__difference-collage img {
  position: absolute;
  width: 68%;
  height: 78%;
  object-fit: cover;
  border: 4px solid white;
  border-radius: 5px;
  box-shadow: 0 7px 13px rgba(61, 42, 78, 0.2);
}

.detail-experience__difference-collage img:first-child {
  left: 4%;
  top: 8%;
  transform: rotate(-8deg);
}

.detail-experience__difference-collage img:nth-child(2) {
  right: 2%;
  top: 2%;
  transform: rotate(7deg);
}

.detail-experience__difference-collage span {
  position: absolute;
  z-index: 3;
  left: 35%;
  top: 34%;
  width: 42px;
  height: 42px;
  border: 5px solid #41364d;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.28);
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.7), 0 5px 9px rgba(50,40,60,.2);
}

.detail-experience__difference-collage span::after {
  content: "";
  position: absolute;
  width: 29px;
  height: 8px;
  right: -23px;
  bottom: -11px;
  border-radius: 5px;
  background: #41364d;
  transform: rotate(48deg);
  transform-origin: left center;
}

/* The differences preview keeps the established image-above-text layout. */
.detail-experience--reality-differences::after {
  content: "";
  position: absolute;
  z-index: 0;
  top: 0;
  right: 0;
  width: 145px;
  height: 105px;
  background: url("../../assets/ui/differences-decoration.png") right top / contain no-repeat;
  opacity: 0.28;
  pointer-events: none;
}

.detail-experience--reality-differences > * {
  position: relative;
  z-index: 1;
}

.detail-experience--reality-differences .detail-experience__content {
  grid-template-columns: 1fr;
  align-items: stretch;
  gap: 10px;
}

.detail-experience--reality-differences .detail-experience__media {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 0;
  border-radius: 7px;
  background: color-mix(in srgb, var(--experience-accent) 8%, white);
}

.detail-experience__difference-collage {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
}

.detail-experience__difference-stage {
  position: relative;
  width: 100%;
  height: auto;
  aspect-ratio: 1137 / 1024;
}

.detail-experience__difference-source,
.detail-experience__difference-frame {
  position: absolute;
  display: block;
}

.detail-experience__difference-source {
  z-index: 1;
  object-fit: cover;
}

.detail-experience__difference-source--left {
  left: 9.5%;
  top: 27%;
  width: 37%;
  height: 49%;
  border-radius: 6%;
  transform: rotate(-7deg);
  filter: sepia(0.9) saturate(0.72) contrast(1.04) brightness(0.96);
}

.detail-experience__difference-source--right {
  left: 58%;
  top: 27%;
  width: 35%;
  height: 51%;
  border-radius: 6%;
  transform: rotate(8deg);
}

.detail-experience__difference-source--lens {
  left: 34.5%;
  top: 46.5%;
  width: 32%;
  height: 32%;
  border-radius: 50%;
}

.detail-experience__difference-frame {
  z-index: 2;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
}

.detail-practical-list {
  display: grid;
  gap: 8px;
}

.detail-practical-list button,
.detail-practical-list a {
  border: 1px solid var(--detail-accent-border);
  border-radius: 13px;
  padding: 10px;
  display: grid;
  grid-template-columns: 34px 1fr 16px;
  align-items: center;
  gap: 9px;
  background: var(--detail-soft-bg);
  text-align: left;
  cursor: pointer;
  color: inherit;
  text-decoration: none;
}

.detail-practical-copy {
  min-width: 0;
}

.detail-practical-list .detail-practical-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--detail-accent-muted);
  color: var(--color-gold-dark);
}

.detail-practical-list strong {
  display: block;
  color: #17243a;
  font-size: 13px;
}

.detail-practical-list small {
  display: block;
  margin-top: 2px;
  color: #6c7482;
  font-size: 11px;
  line-height: 1.25;
}

.detail-practical-list em {
  font-style: normal;
  font-size: 20px;
  font-weight: 900;
}

.detail-collection-tags {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.detail-collection-tags button {
  border: 1px solid var(--detail-accent-border);
  border-radius: 12px;
  padding: 9px;
  display: flex;
  align-items: center;
  gap: 7px;
  background: var(--detail-soft-bg);
  color: #17243a;
  font-size: 11px;
  font-weight: 850;
  text-align: left;
}

.empty-state {
  padding: 22px;
  border-radius: 18px;
  background: white;
  color: #667085;
}

.photo-viewer {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 42px;
  background: rgba(8, 14, 22, 0.72);
  backdrop-filter: blur(18px) saturate(1.1);
}

.photo-viewer[hidden] {
  display: none;
}

.photo-viewer__stage {
  position: relative;
  width: min(1120px, calc(100vw - 160px));
  max-height: calc(100vh - 110px);
  margin: 0;
  display: grid;
  gap: 12px;
  justify-items: center;
}

.photo-viewer__stage img {
  max-width: 100%;
  max-height: calc(100vh - 150px);
  object-fit: contain;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.38);
}

.photo-viewer__stage figcaption {
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  font-weight: 800;
  backdrop-filter: blur(10px);
}

.photo-viewer__close,
.photo-viewer__nav {
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.9);
  color: #17243a;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.28);
}

.photo-viewer__close {
  position: absolute;
  top: 24px;
  right: 24px;
  z-index: 2;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  font-size: 32px;
  line-height: 1;
}

.photo-viewer__nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  font-size: 42px;
  line-height: 1;
  transform: translateY(-50%);
}

.photo-viewer__nav--prev {
  left: 28px;
}

.photo-viewer__nav--next {
  right: 28px;
}

.photo-viewer.has-single-photo .photo-viewer__nav {
  display: none;
}

.vista-loading {
  position: fixed;
  inset: 0;
  z-index: 54;
  display: grid;
  place-items: center;
  pointer-events: none;
  overflow: hidden;
  background: rgba(239, 242, 239, 0.12);
  backdrop-filter: blur(1px);
}

.initial-loading {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 22px;
  overflow: hidden;
  color: #fff;
  text-align: center;
  opacity: 1;
  transition: opacity 0.4s ease;
}

.initial-loading::before {
  content: "";
  position: absolute;
  inset: -32px;
  z-index: -2;
  background: var(--initial-loading-image, var(--hero-image)) center / cover no-repeat;
  filter: blur(5px) saturate(1.04);
  transform: scale(1.025);
}

.initial-loading::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(14, 25, 38, 0.34);
}

.initial-loading[hidden] {
  display: none;
}

.initial-loading.is-leaving {
  pointer-events: none;
  opacity: 0;
}

.initial-loading__identity {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  max-width: min(84vw, 720px);
}

.initial-loading__identity img {
  width: auto;
  height: clamp(82px, 11vw, 138px);
  max-width: min(30vw, 180px);
  object-fit: contain;
}

.initial-loading__identity strong {
  font-size: clamp(30px, 4.2vw, 56px);
  line-height: 1.02;
  text-shadow: 0 3px 18px rgba(0, 0, 0, 0.34);
}

.initial-loading__spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(255, 255, 255, 0.38);
  border-top-color: #fff;
  border-radius: 50%;
  animation: initial-loading-spin 0.9s linear infinite;
}

.initial-loading small {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.42em;
  text-indent: 0.42em;
}

@keyframes initial-loading-spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 640px) {
  .initial-loading__identity {
    flex-direction: column;
    gap: 16px;
  }

  .initial-loading__identity img {
    height: 104px;
    max-width: 42vw;
  }

  .initial-loading__identity strong {
    font-size: 32px;
  }
}

.vista-loading::before {
  content: "";
  position: absolute;
  inset: -28px;
  background:
    linear-gradient(135deg, rgba(247, 249, 247, 0.18), rgba(20, 31, 43, 0.1)),
    var(--vista-loading-image, var(--hero-image)) center / cover no-repeat;
  opacity: 0.76;
  filter: blur(14px) saturate(1.16);
  transform: scale(1.04);
}

.vista-loading::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.04) 52%, rgba(17, 29, 41, 0.16));
}

.vista-loading[hidden] {
  display: none;
}

.vista-loading > div {
  position: relative;
  z-index: 1;
  width: min(380px, calc(100vw - 56px));
  padding: 24px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.66);
  background: var(--light-panel);
  color: var(--color-deep);
  box-shadow: 0 20px 50px rgba(40, 60, 70, 0.22);
  backdrop-filter: blur(20px) saturate(1.2);
}

.vista-loading__spinner {
  display: inline-grid;
  width: 42px;
  height: 42px;
  border: 3px solid color-mix(in srgb, var(--color-gold) 28%, transparent);
  border-top-color: var(--color-accent);
  border-radius: 50%;
  animation: initial-loading-spin 0.9s linear infinite;
}

.vista-loading strong,
.vista-loading small {
  display: block;
}

.vista-loading.is-returning > div {
  width: 46px;
  height: 46px;
  padding: 0;
  border: 3px solid rgba(255, 255, 255, 0.42);
  border-top-color: #fff;
  border-radius: 50%;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  animation: initial-loading-spin 0.9s linear infinite;
}

.vista-loading.is-returning > div > * {
  display: none;
}

.vista-loading strong {
  margin-top: 16px;
  font-size: 24px;
  line-height: 1.15;
}

.vista-loading small {
  margin-top: 8px;
  color: #667085;
  font-size: 14px;
  line-height: 1.35;
}

@media (max-width: 900px) {
  .topbar {
    padding-inline: 18px;
  }

  .brand strong {
    font-size: 20px;
  }

  .hero-content {
    padding: 0 20px 24px;
  }

  .hero-main {
    align-items: start;
    padding-top: 10vh;
  }

  .hero-copy h1 {
    font-size: 58px;
  }

  .search-row {
    flex-direction: column;
  }

  .search-box {
    min-width: 0;
  }

  .category-bar {
    position: fixed;
    left: 50%;
    right: auto;
    bottom: 8px;
    transform: translateX(-50%);
    width: max-content;
    min-width: min(860px, calc(100vw - 24px));
    max-width: calc(100vw - 24px);
    overflow-x: auto;
    justify-content: flex-start;
    margin-inline: 0;
    padding: 6px;
  }

  .category-bar .corner-actions {
    margin-right: auto;
  }

  .category-tile {
    min-width: 76px;
    padding-inline: 8px;
  }

  .category-tile__label {
    max-width: 58px;
    font-size: 11px;
  }

  .discovery-panel {
    left: 14px;
    right: 14px;
    top: 94px;
    bottom: 14px;
    width: auto;
    transform: none;
    animation: none;
  }

  .object-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) and (min-width: 641px) {
  .category-bar {
    min-width: min(860px, calc(100vw - 24px));
    max-width: calc(100vw - 24px);
    justify-content: flex-start;
    overflow-x: auto;
    overflow-y: hidden;
  }

  .category-bar .corner-actions {
    margin-right: auto;
  }

  .discovery-panel,
  .discovery-panel.is-search {
    left: 50%;
    right: auto;
    top: auto;
    bottom: 86px;
    width: min(860px, calc(100vw - 28px));
    transform: translateX(-50%);
    padding: 10px 58px 10px 14px;
    animation: slideCatalogUp 0.14s ease-out both;
  }

  .discovery-panel {
    max-height: 164px;
  }

  .discovery-panel.is-search {
    max-height: 228px;
  }
}

@media (max-width: 640px) {
  .topbar {
    padding: 14px 16px;
  }

  .brand {
    min-width: 0;
    max-width: calc(100vw - 32px);
  }

  .search-panel-field input {
    font-size: 16px;
  }

  .brand-logo {
    max-width: 58px;
    height: 58px;
  }

  .brand .brand-name {
    margin-top: 9px;
    font-size: 18px;
  }

  .corner-actions {
    left: 50%;
    right: auto;
    bottom: 10px;
    transform: translateX(-50%);
    width: min(240px, calc(100vw - 24px));
    min-height: 58px;
    padding: 6px;
    gap: 8px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    background:
      radial-gradient(circle at 34% 0%, rgba(244, 209, 111, 0.16), transparent 32%),
      linear-gradient(90deg, rgba(6, 12, 16, 0.82), rgba(29, 35, 26, 0.78));
    box-shadow:
      0 16px 40px rgba(0, 0, 0, 0.34),
      inset 0 1px 0 rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(18px) saturate(1.2);
  }

  .ground-back {
    left: auto;
    right: 16px;
    top: 16px;
    width: 48px;
    min-width: 48px;
    height: 48px;
    padding: 0;
    border-radius: 50%;
    z-index: 96;
    box-shadow:
      0 16px 36px rgba(0, 0, 0, 0.28),
      inset 0 1px 0 rgba(255, 255, 255, 0.18);
  }

  .ground-back span {
    display: none;
  }

  .ground-back svg {
    width: 24px;
    height: 24px;
  }

  .corner-action,
  .corner-action--discover,
  .corner-action--categories {
    flex: 1 1 0;
    width: auto;
    min-width: 0;
    height: 46px;
    padding: 0;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    font-size: 0;
    line-height: 0;
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    box-shadow: none;
  }

  .corner-action--categories {
    display: flex;
  }

  .corner-action:hover,
  .corner-action:focus-visible,
  .corner-action--categories:hover,
  .corner-action--categories:focus-visible {
    transform: none;
    background: var(--gold-gradient);
    color: var(--color-deep);
  }

  .corner-action svg,
  .corner-action:not(.corner-action--discover) svg,
  .corner-action--discover svg {
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    padding: 5px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.14);
  }

  .corner-action span,
  .corner-action:not(.corner-action--discover) span {
    display: none;
  }

  .hero-content.is-minimal .category-bar,
  .category-bar {
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: 82px;
    transform: none;
    width: auto;
    min-width: 0;
    max-width: none;
    max-height: 42svh;
    margin: 0;
    padding: 12px;
    display: none;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    overflow-y: auto;
    overflow-x: hidden;
    border-radius: 26px;
    background: var(--light-panel);
    box-shadow:
      0 24px 60px rgba(0, 0, 0, 0.3),
      inset 0 1px 0 rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(20px) saturate(1.2);
    z-index: 92;
  }

  .category-bar.is-picker-open {
    display: grid;
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    animation: mobilePanelUp 0.42s cubic-bezier(0.2, 0.8, 0.2, 1) both;
  }

  .municipality-panel__brand {
    padding-right: 58px;
  }

  .category-bar .category-tile {
    min-width: 0;
    min-height: 78px;
    padding: 8px 6px;
    border-radius: 18px;
    flex-direction: column;
    gap: 5px;
    color: var(--color-deep);
    background: var(--detail-soft-bg);
  }

  .category-bar .category-tile.is-active {
    background: var(--gold-gradient);
    color: var(--color-deep);
  }

  .category-bar .category-tile__icon {
    width: 32px;
    height: 32px;
  }

  .category-bar .category-tile__label {
    max-width: none;
    font-size: 11px;
    line-height: 1.12;
    text-align: center;
  }

  .discovery-panel,
  .discovery-panel.is-search {
    left: 10px;
    right: 10px;
    top: auto;
    bottom: 86px;
    width: auto;
    max-height: min(48svh, 360px);
    padding: 12px;
    border-radius: 26px;
    overflow: visible;
    transform: none;
    animation: mobilePanelUp 0.42s cubic-bezier(0.2, 0.8, 0.2, 1) both;
  }

  .discovery-panel .panel-close.is-floating {
    top: -46px;
    right: 8px;
    z-index: 12;
    box-shadow: 0 14px 34px rgba(15, 30, 50, 0.18);
  }

  .discovery-panel.is-search {
    max-height: min(58svh, 430px);
  }

  .discovery-panel.is-category-picker {
    max-height: min(44svh, 360px);
    padding: 14px;
  }

  .mobile-category-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .mobile-category-grid .category-tile {
    min-width: 0;
    min-height: 78px;
    padding: 8px 6px;
    border: 1px solid rgba(18, 30, 48, 0.08);
    border-radius: 18px;
    color: var(--color-deep);
    background: color-mix(in srgb, var(--light-panel) 72%, white);
    flex-direction: column;
    gap: 5px;
    box-shadow: 0 12px 30px rgba(15, 32, 50, 0.08);
  }

  .mobile-category-grid .category-tile.is-active {
    background: var(--gold-gradient);
    color: var(--color-deep);
  }

  .mobile-category-grid .category-tile__icon {
    width: 32px;
    height: 32px;
  }

  .mobile-category-grid .category-pictogram {
    width: 28px;
    height: 28px;
    /* Source pictograms are white for the dark desktop navigation. */
    filter: brightness(0) saturate(100%) invert(11%) sepia(22%) saturate(1840%) hue-rotate(178deg) brightness(92%) contrast(95%);
  }

  .mobile-category-grid .category-tile__label {
    max-width: none;
    font-size: 11px;
    line-height: 1.12;
    text-align: center;
  }

  .object-grid,
  .object-grid.is-centered {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(132px, 38vw);
    grid-template-columns: none;
    justify-content: start;
    align-items: stretch;
    min-height: 184px;
    gap: 10px;
    padding: 4px 2px 8px;
    overflow-x: auto;
    overflow-y: visible;
    scroll-snap-type: x proximity;
  }

  .object-card {
    flex-basis: auto;
    min-height: 178px;
    aspect-ratio: 3 / 4;
    border-radius: 18px;
  }

  .object-card img {
    height: 100%;
    aspect-ratio: auto;
  }

  .object-card__body {
    padding: 10px;
  }

  .object-card__body h3 {
    font-size: 14px;
  }

  .object-card__body button {
    width: 42px;
    height: 42px;
  }

  .search-panel-head {
    margin-bottom: 10px;
  }

  .detail-panel.is-mobile-collapsed {
    top: 50%;
    right: -4px;
    bottom: auto;
    width: 56px;
    height: 56px;
    min-height: 0;
    padding: 0;
    border-radius: 999px 0 0 999px;
    transform: translateY(-50%);
    overflow: visible;
    cursor: pointer;
    display: grid;
    place-items: center;
    background: var(--gold-gradient);
    border: 1px solid rgba(255, 255, 255, 0.58);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.28);
    z-index: 72;
  }

  .detail-panel.is-mobile-collapsed > * {
    display: none;
  }

  .detail-panel.is-mobile-collapsed::before {
    content: "i";
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.32);
    color: var(--color-deep);
    font-size: 22px;
    font-weight: 900;
    font-family: Inter, system-ui, sans-serif;
    line-height: 1;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
  }

  .detail-panel.is-mobile-expanded {
    top: 8px;
    left: 8px;
    right: 8px;
    bottom: 8px;
    width: auto;
    max-width: none;
    transform: none;
    z-index: 110;
  }

  /* The panorama back control stays available, but an open infopanel owns the foreground. */
  .detail-panel:not(.is-mobile-collapsed):not(.is-info-collapsed) {
    z-index: 110;
  }

  .photo-viewer {
    padding: 0;
    background: rgba(8, 14, 22, 0.88);
    backdrop-filter: blur(10px) saturate(1.08);
  }

  .photo-viewer__stage {
    width: 100vw;
    height: 100svh;
    max-height: none;
    display: grid;
    place-items: center;
    gap: 0;
    overflow: hidden;
  }

  .photo-viewer__stage img {
    width: 100vw;
    height: 100svh;
    max-width: none;
    max-height: none;
    object-fit: contain;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    animation: mobilePhotoDrift 4.8s ease-in-out both;
  }

  .photo-viewer__stage figcaption {
    position: absolute;
    left: 50%;
    bottom: 18px;
    transform: translateX(-50%);
    padding: 6px 11px;
    font-size: 13px;
    line-height: 1;
    background: rgba(18, 27, 42, 0.62);
  }

  .photo-viewer__close {
    top: 14px;
    right: 14px;
    width: 42px;
    height: 42px;
    font-size: 24px;
  }

  .photo-viewer__nav {
    width: 38px;
    height: 38px;
    font-size: 28px;
    background: rgba(255, 255, 255, 0.84);
  }

  .photo-viewer__nav--prev {
    left: 10px;
  }

  .photo-viewer__nav--next {
    right: 10px;
  }

  @keyframes mobilePanelUp {
    from {
      opacity: 0;
      transform: translateY(18px);
    }

    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  @keyframes mobilePhotoDrift {
    from {
      transform: scale(1);
    }

    to {
      transform: scale(1.035);
    }
  }
}

@media (max-width: 640px) and (prefers-reduced-motion: reduce) {
  .photo-viewer__stage img {
    animation: none;
  }
}
