:root {
  --ink: #14343d;
  --muted: #6a7f83;
  --line: rgba(20, 52, 61, 0.12);
  --paper: #f7fbf8;
  --panel: #ffffff;
  --sea: #8fc8e9;
  --blue: #286fb8;
  --blue-dark: #1f477e;
  --blue-light: #4aa9dc;
  --sand: #f1dfb5;
  --orange: #e78343;
  --green: #3f8163;
  --shadow: 0 18px 44px rgba(31, 71, 126, 0.16);
}

* {
  box-sizing: border-box;
}

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

body {
  background:
    radial-gradient(circle at 10% 0%, rgba(74, 169, 220, 0.22), transparent 32rem),
    linear-gradient(135deg, #f1f7fb 0%, #f7f1e7 100%);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

button,
input {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

.app-shell {
  position: relative;
  width: min(100%, 430px);
  min-height: 100dvh;
  margin: 0 auto;
  overflow: hidden;
  background: var(--paper);
  box-shadow: 0 0 0 1px rgba(20, 52, 61, 0.08), 0 26px 80px rgba(13, 43, 51, 0.2);
}

.hero-screen,
.browse-screen,
.detail-screen,
.viewer-screen {
  position: absolute;
  inset: 0;
  min-height: 100dvh;
  transition: transform 420ms ease, opacity 280ms ease;
}

.hero-screen {
  z-index: 4;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(circle at 18% 0%, rgba(74, 169, 220, 0.22), transparent 18rem),
    linear-gradient(180deg, #f2f8fb 0%, #f8f2e6 100%);
}

.browse-screen,
.detail-screen,
.viewer-screen {
  z-index: 1;
  opacity: 0;
  pointer-events: none;
  transform: translateX(24px);
}

.app-shell[data-screen="browse"] .hero-screen,
.app-shell[data-screen="detail"] .hero-screen,
.app-shell[data-screen="viewer"] .hero-screen {
  opacity: 0;
  pointer-events: none;
  transform: translateX(-30px);
}

.app-shell[data-screen="browse"] .browse-screen,
.app-shell[data-screen="detail"] .detail-screen,
.app-shell[data-screen="viewer"] .viewer-screen {
  z-index: 5;
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
}

.app-shell[data-screen="detail"] .browse-screen,
.app-shell[data-screen="viewer"] .detail-screen {
  z-index: 2;
  opacity: 1;
  transform: translateX(-18px);
}

.hero-media {
  position: absolute;
  inset: 0;
  background-image: url("pano-port-noirmoutier-accueil.jpg");
  background-size: auto 105%;
  background-position: 48% center;
  animation: slowPan 28s linear infinite alternate;
}

.hero-canvas {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  background: #123842;
  touch-action: none;
}

@keyframes slowPan {
  from {
    background-position: 30% center;
  }
  to {
    background-position: 72% center;
  }
}

.topbar,
.browse-header {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: calc(16px + env(safe-area-inset-top)) 18px 12px;
}

.topbar {
  justify-content: flex-start;
  padding: calc(14px + env(safe-area-inset-top)) 18px 0;
}

.brand-logo {
  width: min(292px, 76vw);
  max-height: 104px;
  object-fit: contain;
  object-position: left center;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.18));
}

.icon-button,
.ghost-button,
.floating-back,
.viewer-button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
  box-shadow: 0 10px 24px rgba(9, 38, 45, 0.14);
}

.icon-button span,
.ghost-button span,
.floating-back span,
.viewer-button span {
  display: block;
  font-size: 24px;
  font-weight: 800;
  line-height: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  margin-top: 0;
  padding: 0 22px 24px;
}

.eyebrow {
  margin: 0 0 9px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 330px;
  margin: 2px 0 9px;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 27px;
  font-weight: 560;
  line-height: 1.05;
}

.hero-copy {
  max-width: 342px;
  margin-bottom: 12px;
  color: #4f6970;
  font-size: 15px;
  line-height: 1.45;
}

.hero-steps {
  display: flex;
  gap: 8px;
  margin: 0 0 14px;
}

.hero-steps span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border-radius: 999px;
  padding: 0 11px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--blue-dark);
  font-size: 12px;
  font-weight: 850;
  box-shadow: 0 8px 18px rgba(31, 71, 126, 0.08);
}

.hero-frame {
  position: relative;
  height: 184px;
  margin: 0 0 14px;
  overflow: hidden;
  border: 8px solid rgba(255, 255, 255, 0.9);
  border-radius: 8px;
  background: #123842;
  box-shadow: var(--shadow);
}

.hero-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(180deg, rgba(7, 31, 37, 0.06), rgba(7, 31, 37, 0.28));
  pointer-events: none;
}

.hero-frame-overlay {
  position: absolute;
  right: 12px;
  bottom: 12px;
  left: 12px;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.hero-frame-overlay span {
  border-radius: 999px;
  padding: 8px 11px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
  font-size: 12px;
  font-weight: 850;
  pointer-events: none;
}

.hero-actions,
.cta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.primary-action,
.secondary-action {
  min-height: 48px;
  border-radius: 8px;
  padding: 0 18px;
  color: #fff;
  font-size: 15px;
  font-weight: 820;
}

.primary-action {
  background: var(--blue);
  box-shadow: 0 10px 24px rgba(14, 110, 136, 0.2);
}

.secondary-action {
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
}

.secondary-action.light {
  background: #edf5f4;
}

.spot-dock {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.spot-dock::-webkit-scrollbar,
.filter-row::-webkit-scrollbar,
.places-list::-webkit-scrollbar {
  display: none;
}

.dock-card {
  position: relative;
  width: 100%;
  height: 92px;
  overflow: hidden;
  border-radius: 8px;
  background: #173843;
  box-shadow: var(--shadow);
  color: #fff;
  text-align: left;
}

.dock-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.82;
  transition: transform 240ms ease;
}

.dock-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 35, 42, 0.04), rgba(8, 35, 42, 0.78));
}

.dock-card strong,
.dock-card span {
  position: absolute;
  right: 11px;
  left: 11px;
  z-index: 2;
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.dock-card strong {
  bottom: 27px;
  font-size: 15px;
  color: #fff;
}

.dock-card span {
  bottom: 12px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 11px;
  font-weight: 760;
  text-transform: uppercase;
}

.dock-card:active img {
  transform: scale(1.04);
}

.souvenir-callout {
  margin-top: 12px;
}

.agenda-callout {
  margin-top: 12px;
}

.agenda-card {
  position: relative;
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 12px;
  width: 100%;
  min-height: 104px;
  border-radius: 8px;
  padding: 10px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(15, 61, 70, 0.94), rgba(31, 71, 126, 0.86)),
    #14343d;
  color: #fff;
  text-align: left;
  box-shadow: var(--shadow);
}

.agenda-card::after {
  content: "";
  position: absolute;
  inset: auto -24px -42px auto;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(116, 201, 238, 0.42), transparent 62%);
  pointer-events: none;
}

.agenda-badge {
  position: relative;
  z-index: 1;
  display: grid;
  min-height: 84px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.07)),
    rgba(255, 255, 255, 0.08);
}

.agenda-badge svg {
  width: 38px;
  height: 38px;
  fill: none;
  stroke: #c5efff;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.agenda-copy,
.agenda-copy span,
.agenda-card strong,
.agenda-card p {
  position: relative;
  z-index: 1;
  display: block;
}

.agenda-copy span {
  margin-bottom: 6px;
  color: #ffe0a3;
  font-size: 11px;
  font-weight: 920;
  text-transform: uppercase;
}

.agenda-card strong {
  font-size: 17px;
  line-height: 1.08;
}

.agenda-card p {
  margin: 6px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 12px;
  line-height: 1.28;
}

.souvenir-card {
  position: relative;
  overflow: hidden;
  width: 100%;
  min-height: 118px;
  border-radius: 8px;
  padding: 14px;
  color: #fff;
  text-align: left;
  box-shadow: var(--shadow);
  background: #173843;
}

.souvenir-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.78;
}

.souvenir-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, rgba(8, 35, 42, 0.82), rgba(8, 35, 42, 0.2)),
    linear-gradient(180deg, transparent, rgba(8, 35, 42, 0.62));
}

.souvenir-card span,
.souvenir-card strong,
.souvenir-card p {
  position: relative;
  z-index: 1;
  display: block;
}

.souvenir-card span {
  margin-bottom: 18px;
  color: #b8eaff;
  font-size: 11px;
  font-weight: 920;
  text-transform: uppercase;
}

.souvenir-card strong {
  max-width: 280px;
  font-size: 18px;
  line-height: 1.05;
}

.souvenir-card p {
  max-width: 330px;
  margin: 6px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 12px;
  line-height: 1.28;
}

.home-highlight {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.highlight-card {
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 12px;
  min-height: 92px;
  border-radius: 8px;
  padding: 10px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(232, 244, 250, 0.94)),
    #fff;
  box-shadow: var(--shadow);
  text-align: left;
}

.highlight-card img {
  width: 86px;
  height: 72px;
  border-radius: 6px;
  object-fit: cover;
}

.highlight-card span {
  display: block;
  margin-bottom: 4px;
  color: var(--orange);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.highlight-card strong {
  display: block;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.15;
}

.highlight-card p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.3;
}

.browse-screen {
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(circle at 20% -8%, rgba(74, 169, 220, 0.34), transparent 17rem),
    linear-gradient(180deg, #f6fbf9, #f8f2e5);
}

.browse-header {
  flex: 0 0 auto;
}

.browse-logo {
  width: 184px;
  height: 66px;
  object-fit: contain;
}

.search-block {
  display: grid;
  gap: 7px;
  padding: 0 18px 12px;
}

.search-block label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.search-block input {
  width: 100%;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 16px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  outline: none;
}

.filter-row {
  display: flex;
  flex: 0 0 auto;
  gap: 4px;
  overflow-x: hidden;
  padding: 2px 8px 12px;
}

.filter-pill {
  flex: 1 1 0;
  min-width: 0;
  height: 34px;
  border-radius: 999px;
  padding: 0 4px;
  background: #fff;
  color: var(--ink);
  font-size: 10px;
  font-weight: 800;
  box-shadow: 0 8px 18px rgba(12, 52, 60, 0.08);
  white-space: nowrap;
}

.filter-pill.active {
  background: var(--blue-dark);
  color: #fff;
}

.map-panel {
  position: relative;
  flex: 0 0 356px;
  margin: 0 18px;
  overflow: hidden;
  border-radius: 8px;
  background:
    radial-gradient(circle at 24% 20%, rgba(255, 255, 255, 0.68), transparent 11rem),
    linear-gradient(180deg, #eaf4f9 0%, #d8e8f2 100%);
  box-shadow: var(--shadow);
}

.map-panel[data-mode="defi"] {
  background:
    radial-gradient(circle at 28% 25%, rgba(255, 218, 124, 0.22), transparent 9rem),
    linear-gradient(135deg, #eef5f7, #d7e7f1);
  box-shadow: 0 18px 44px rgba(98, 55, 111, 0.22);
}

.map-panel[data-mode="defi"] .map-art {
  filter: saturate(1.12) contrast(1.04);
}

.map-panel[data-mode="culture"] {
  background:
    radial-gradient(circle at 30% 18%, rgba(255, 224, 163, 0.24), transparent 10rem),
    linear-gradient(135deg, #eaf4f9, #d9e9f3);
}

.map-toolbar {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 7;
  display: flex;
  gap: 7px;
}

.map-tool {
  display: grid;
  min-width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  font-size: 18px;
  font-weight: 850;
  box-shadow: 0 8px 18px rgba(12, 52, 60, 0.14);
}

.map-tool.wide {
  padding: 0 12px;
  font-size: 12px;
}

.map-viewport {
  position: absolute;
  inset: 0;
  overflow: hidden;
  touch-action: none;
}

.map-stage {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  transform: translate(-50%, -50%) scale(1);
  transform-origin: center;
  transition: transform 240ms ease;
}

.map-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: drop-shadow(0 12px 26px rgba(31, 71, 126, 0.18));
}

.map-pin {
  position: absolute;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 6px 12px rgba(11, 48, 56, 0.18);
  color: var(--blue-dark);
  font-size: 12px;
  font-weight: 900;
}

.map-pin span {
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
}

.map-pin svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.map-pin[data-category="restaurant"] span {
  background: var(--orange);
}

.map-pin[data-category="commerce"] span {
  background: #aa3d61;
}

.map-pin[data-category="hotel"] span {
  background: var(--green);
}

.map-pin[data-category="tourisme"] span {
  background: #28568f;
}

.map-pin[data-category="activite"] span {
  background: #2f7d74;
}

.map-pin[data-category="prestige"] span {
  background: #6e567d;
}

.map-pin[data-category="plage"] span {
  background: #0f81a0;
}

.map-pin[data-category="pointdevue"] span {
  background: #1f477e;
}

.map-pin[data-category="defi"] {
  background: #fff6d7;
}

.map-pin[data-category="defi"] span {
  background: linear-gradient(135deg, #6d4f9f, #d46f8f 52%, #e7a93d);
}

.map-pin[data-category="culture"] {
  background: #fff9e8;
}

.map-pin[data-category="culture"] span {
  background: linear-gradient(135deg, #1f477e, #286fb8 58%, #e7a93d);
}

.map-panel[data-mode="defi"] .map-pin {
  border-radius: 10px;
  transform: translate(-50%, -50%) rotate(-8deg);
}

.map-panel[data-mode="defi"] .map-pin.active {
  transform: translate(-50%, -50%) rotate(-8deg) scale(1.1);
}

.map-pin.active {
  outline: 2px solid rgba(255, 247, 218, 0.95);
  transform: translate(-50%, -50%) scale(1.1);
}

.places-list {
  display: grid;
  gap: 12px;
  overflow-y: auto;
  padding: 16px 18px calc(22px + env(safe-area-inset-bottom));
}

.place-card {
  display: grid;
  grid-template-columns: 104px 1fr;
  gap: 13px;
  min-height: 112px;
  border-radius: 8px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 10px 28px rgba(12, 52, 60, 0.1);
  text-align: left;
}

.place-card img {
  width: 104px;
  height: 92px;
  border-radius: 8px;
  object-fit: cover;
}

.place-card .meta {
  margin-bottom: 5px;
  color: var(--orange);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.place-card strong {
  display: block;
  color: var(--ink);
  font-size: 17px;
  line-height: 1.12;
}

.place-card p {
  display: -webkit-box;
  margin: 7px 0 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.3;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.detail-screen {
  overflow-y: auto;
  background: #fff;
}

.detail-hero {
  position: relative;
  min-height: 356px;
  background-size: auto 100%;
  background-position: center;
  color: #fff;
}

.detail-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 33, 39, 0.2), rgba(8, 33, 39, 0.7));
}

.floating-back,
.floating-chip,
.detail-title {
  position: absolute;
  z-index: 2;
}

.floating-back {
  top: calc(18px + env(safe-area-inset-top));
  left: 18px;
}

.floating-chip {
  top: calc(22px + env(safe-area-inset-top));
  right: 18px;
  height: 38px;
  border-radius: 999px;
  padding: 0 18px;
  background: #fff;
  color: var(--blue);
  font-size: 13px;
  font-weight: 900;
  box-shadow: 0 10px 24px rgba(9, 38, 45, 0.14);
}

.detail-title {
  right: 22px;
  bottom: 24px;
  left: 22px;
}

.detail-title p,
.viewer-topbar p {
  margin-bottom: 7px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.detail-title h2 {
  margin-bottom: 0;
  color: #fff;
  font-size: 34px;
  line-height: 1;
}

.detail-body {
  padding: 24px 22px calc(28px + env(safe-area-inset-bottom));
}

.detail-meta {
  display: flex;
  gap: 9px;
  margin-bottom: 16px;
}

.detail-meta span {
  border-radius: 999px;
  padding: 8px 12px;
  background: #eef6f5;
  color: var(--blue-dark);
  font-size: 12px;
  font-weight: 820;
}

#detailDescription {
  margin-bottom: 22px;
  color: #40595e;
  font-size: 16px;
  line-height: 1.5;
}

.business-card {
  margin-top: 20px;
  border-radius: 8px;
  padding: 18px;
  background: #fff7e8;
}

.business-card h3 {
  margin-bottom: 8px;
  font-size: 18px;
}

.business-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.viewer-screen {
  background: #071f25;
}

#viewerCanvas,
.viewer-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

#viewerCanvas {
  display: block;
}

.viewer-fallback {
  display: none;
  background-size: auto 100%;
  background-position: center;
}

.viewer-screen.fallback #viewerCanvas {
  display: none;
}

.viewer-screen.fallback .viewer-fallback {
  display: block;
}

.viewer-topbar {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  z-index: 3;
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  gap: 12px;
  align-items: center;
  padding: calc(16px + env(safe-area-inset-top)) 16px 12px;
  background: linear-gradient(180deg, rgba(4, 20, 24, 0.68), transparent);
}

.viewer-topbar h2 {
  margin: 0;
  color: #fff;
  font-size: 21px;
}

.viewer-topbar p {
  margin: 0 0 4px;
}

.viewer-bottom {
  position: absolute;
  right: 16px;
  bottom: calc(18px + env(safe-area-inset-bottom));
  left: 16px;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.tour-pill {
  flex: 1;
  height: 46px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  font-size: 14px;
  font-weight: 850;
}

.tour-pill.active {
  background: var(--blue);
  color: #fff;
}

@media (min-width: 760px) {
  body {
    display: grid;
    min-height: 100dvh;
    place-items: center;
    padding: 34px;
  }

  .app-shell {
    min-height: 880px;
    border-radius: 34px;
  }

  .hero-screen,
  .browse-screen,
  .detail-screen,
  .viewer-screen {
    min-height: 880px;
  }
}

@media (max-width: 360px) {
  h1 {
    font-size: 25px;
  }

  .hero-actions,
  .cta-grid {
    grid-template-columns: 1fr;
  }

  .map-panel {
    flex-basis: 318px;
  }
}

body.mobile-v2 {
  background:
    linear-gradient(180deg, rgba(226, 241, 249, 0.96), rgba(255, 250, 239, 0.96)),
    #edf7fb;
}

body.mobile-v2 .app-shell {
  background: #f4f9fc;
}

body.mobile-v2 .app-shell[data-screen="browse"] .hero-screen,
body.mobile-v2 .app-shell[data-screen="detail"] .hero-screen,
body.mobile-v2 .app-shell[data-screen="viewer"] .hero-screen {
  visibility: hidden;
}

body.mobile-v2 .app-shell[data-screen="home"] .hero-screen {
  visibility: visible;
}

body.mobile-v2 .hero-screen,
body.mobile-v2 .browse-screen {
  background: #f4f9fc;
}

body.mobile-v2 .brand-logo {
  width: min(270px, 72vw);
  max-height: 92px;
}

body.mobile-v2 .browse-header {
  min-height: 104px;
  padding: calc(16px + env(safe-area-inset-top)) 18px 10px;
  background: linear-gradient(180deg, #ffffff 0%, rgba(244, 249, 252, 0.96) 100%);
}

body.mobile-v2 .browse-logo {
  width: 214px;
  height: 72px;
  object-fit: contain;
}

body.mobile-v2 .ghost-button {
  width: 42px;
  height: 42px;
  color: #0f477e;
  background: #ffffff;
  box-shadow: 0 8px 18px rgba(15, 71, 126, 0.12);
}

body.mobile-v2 .ghost-button span {
  font-size: 21px;
}

body.mobile-v2 h1 {
  max-width: 360px;
  color: #123f62;
  font-size: 30px;
}

body.mobile-v2 .hero-copy {
  color: #4d6670;
}

body.mobile-v2 .hero-frame {
  height: 202px;
}

body.mobile-v2 .primary-action,
body.mobile-v2 .filter-pill.active,
body.mobile-v2 .tour-pill.active {
  background: #0f477e;
}

body.mobile-v2 .filter-row {
  display: grid;
  gap: 8px;
  overflow: visible;
  padding: 0 14px 12px;
}

body.mobile-v2 .filter-primary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

body.mobile-v2 .filter-secondary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}

body.mobile-v2 .filter-pill {
  width: 100%;
  min-width: 0;
  height: 34px;
  border: 1px solid rgba(15, 71, 126, 0.1);
  padding: 0 6px;
  background: #eaf4fa;
  color: #0f477e;
  box-shadow: none;
  font-size: 11px;
}

body.mobile-v2 .filter-pill.sub {
  height: 30px;
  background: rgba(255, 255, 255, 0.82);
  font-size: 10px;
}

body.mobile-v2 .filter-pill.active {
  color: #fff;
  background: #0f477e;
}

body.mobile-v2 .hero-actions {
  display: none;
}

body.mobile-v2 .map-panel {
  flex-basis: 486px;
  margin: 0 14px;
  border: 1px solid rgba(31, 71, 126, 0.12);
  border-radius: 8px;
  background:
    linear-gradient(180deg, #edf7fb 0%, #d7eaf4 100%),
    #d7eaf4;
}

body.mobile-v2 .map-toolbar {
  top: 50%;
  right: 12px;
  flex-direction: column;
  transform: translateY(-50%);
}

body.mobile-v2 .map-tool {
  min-width: 42px;
  height: 42px;
  background: rgba(255, 255, 255, 0.94);
  color: #0f477e;
  font-size: 19px;
}

body.mobile-v2 .map-tool.wide {
  width: 42px;
  padding: 0;
  overflow: hidden;
  font-size: 0;
}

body.mobile-v2 .map-tool.wide::before {
  content: "⌖";
  font-size: 19px;
}

body.mobile-v2 .map-art {
  filter: saturate(1.08) contrast(1.04) drop-shadow(0 14px 26px rgba(31, 71, 126, 0.2));
}

body.mobile-v2 .map-pin {
  width: 30px;
  height: 30px;
  box-shadow: 0 8px 18px rgba(11, 48, 56, 0.22);
}

body.mobile-v2 .map-pin span {
  width: 23px;
  height: 23px;
}

body.mobile-v2 .map-pin svg {
  width: 15px;
  height: 15px;
}

body.mobile-v2 .places-list {
  position: relative;
  z-index: 12;
  gap: 10px;
  margin-top: -80px;
  padding: 0 14px calc(106px + env(safe-area-inset-bottom));
}

body.mobile-v2 .place-card {
  position: relative;
  display: block;
  padding: 0;
  grid-template-columns: 106px 1fr;
  min-height: 112px;
  border: 1px solid rgba(15, 71, 126, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 16px 36px rgba(15, 71, 126, 0.13);
  text-align: left;
}

body.mobile-v2 .place-card-main {
  display: grid;
  grid-template-columns: 106px 1fr;
  gap: 13px;
  width: 100%;
  min-height: 112px;
  border-radius: 8px;
  padding: 10px 48px 10px 10px;
  color: inherit;
  background: transparent;
  text-align: left;
}

body.mobile-v2 .place-card:first-child {
  border: 2px solid rgba(255, 255, 255, 0.95);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
}

body.mobile-v2 .place-card .meta {
  color: #d9903d;
}

body.mobile-v2 .place-card strong {
  color: #0d3f75;
}

body.mobile-v2 .favorite-button,
body.mobile-v2 .detail-favorite {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  min-height: 38px;
  border: 1px solid rgba(15, 71, 126, 0.12);
  border-radius: 999px;
  color: #0f477e;
  background: rgba(255, 255, 255, 0.94);
  font-size: 21px;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 8px 18px rgba(15, 71, 126, 0.1);
}

body.mobile-v2 .favorite-button {
  position: absolute;
  top: 12px;
  right: 12px;
}

body.mobile-v2 .favorite-button.active,
body.mobile-v2 .detail-favorite.active {
  color: #fff;
  background: #0f477e;
}

body.mobile-v2 .empty-favorites {
  border: 1px dashed rgba(15, 71, 126, 0.22);
  border-radius: 8px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.9);
  color: #0d3f75;
  text-align: center;
}

body.mobile-v2 .empty-favorites strong {
  display: block;
  font-size: 17px;
}

body.mobile-v2 .empty-favorites p {
  margin: 8px 0 0;
  color: #667f8a;
  font-size: 13px;
  line-height: 1.35;
}

body.mobile-v2 .detail-screen {
  padding-bottom: calc(78px + env(safe-area-inset-bottom));
}

body.mobile-v2 .detail-meta {
  align-items: center;
  flex-wrap: wrap;
}

body.mobile-v2 .v2-bottom-nav {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: end;
  min-height: calc(74px + env(safe-area-inset-bottom));
  padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
  border-top: 1px solid rgba(15, 71, 126, 0.12);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 -12px 28px rgba(15, 71, 126, 0.1);
}

body.mobile-v2 .v2-bottom-nav button {
  display: grid;
  place-items: center;
  gap: 4px;
  min-width: 0;
  min-height: 52px;
  border-radius: 8px;
  color: #164b7c;
  background: transparent;
  font-size: 10px;
  font-weight: 840;
}

body.mobile-v2 .v2-bottom-nav button span {
  font-size: 20px;
  line-height: 1;
}

body.mobile-v2 .v2-bottom-nav button.active {
  color: #0f477e;
}

body.mobile-v2 .v2-bottom-nav .compass {
  width: 58px;
  height: 58px;
  min-height: 58px;
  justify-self: center;
  margin-top: -24px;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, #0f477e, #006da2);
  box-shadow: 0 16px 26px rgba(15, 71, 126, 0.28);
}

body.mobile-v2 .v2-bottom-nav .compass span {
  font-size: 24px;
}

body.mobile-v2 .app-shell[data-screen="home"] .v2-bottom-nav,
body.mobile-v2 .app-shell[data-screen="browse"] .v2-bottom-nav,
body.mobile-v2 .app-shell[data-screen="detail"] .v2-bottom-nav {
  display: grid;
}

body.mobile-v2 .app-shell[data-screen="viewer"] .v2-bottom-nav {
  display: none;
}

@media (max-width: 380px) {
  body.mobile-v2 .map-panel {
    flex-basis: 410px;
  }
}
