:root {
  --bg: #04070d;
  --ink: #f5fbff;
  --muted: #9fb0c1;
  --panel: rgba(4, 9, 18, 0.91);
  --panel-soft: rgba(6, 19, 35, 0.76);
  --line: rgba(89, 231, 255, 0.24);
  --cyan: #21e4ff;
  --blue: #2597ff;
  --gold: #ffc044;
  --pink: #ff4b91;
  --purple: #c05cff;
  --green: #47ff94;
  --radius: 8px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--bg); }
html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #04070d;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -3;
  content: "";
  background:
    linear-gradient(90deg, rgba(4, 7, 13, 0.96), rgba(4, 7, 13, 0.58) 43%, rgba(4, 7, 13, 0.86)),
    url("assets/vegas-strip-bg.png") center / cover no-repeat;
  filter: saturate(1.18) contrast(1.08);
}

.moving-vegas {
  position: fixed;
  inset: -8% -6%;
  z-index: -2;
  background:
    radial-gradient(circle at 18% 36%, rgba(33, 228, 255, 0.2), transparent 22rem),
    radial-gradient(circle at 72% 18%, rgba(255, 75, 145, 0.16), transparent 24rem),
    url("assets/mgm-grand-bg.png") center / cover no-repeat;
  opacity: 0.34;
  animation: vegasDrift 28s ease-in-out infinite alternate;
}

@keyframes vegasDrift {
  0% { transform: scale(1.02) translate3d(-18px, -8px, 0); filter: hue-rotate(0deg); }
  100% { transform: scale(1.09) translate3d(18px, 12px, 0); filter: hue-rotate(8deg); }
}

@media (prefers-reduced-motion: reduce) {
  .moving-vegas, .strip-route, .current-marker::before, .current-marker::after { animation: none !important; }
}

a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
h1, h2, h3, p { margin-top: 0; }

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100;
  transform: translateY(-140%);
  padding: 10px 12px;
  border: 1px solid var(--cyan);
  border-radius: 7px;
  background: #04070d;
  color: #fff;
  font-weight: 900;
}

.skip-link:focus {
  transform: translateY(0);
}

.vegas-shell {
  min-height: 100vh;
  padding: 0 10px 10px;
}

.topbar {
  display: grid;
  grid-template-columns: minmax(300px, 1fr) auto minmax(190px, 1fr);
  align-items: stretch;
  height: 64px;
  border-bottom: 1px solid rgba(33, 228, 255, 0.18);
  background: rgba(2, 6, 12, 0.92);
  box-shadow: 0 10px 34px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(18px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  text-decoration: none;
  text-transform: uppercase;
}

.brand span { font-size: 1rem; font-weight: 900; }
.brand strong { color: #dce8f2; font-size: 0.92rem; }
.brand em {
  color: var(--green);
  font-size: 0.92rem;
  font-style: normal;
  font-weight: 900;
}

.nav-tabs {
  display: flex;
  align-items: stretch;
}

.nav-tab {
  min-width: 78px;
  border: 0;
  border-left: 1px solid rgba(255, 255, 255, 0.06);
  background: transparent;
  color: #b7c2d0;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
}

.nav-tab.active, .nav-tab:hover {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(33, 228, 255, 0.08));
  color: #fff;
  box-shadow: inset 0 -3px 0 var(--cyan);
}

.top-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding-right: 10px;
}

.icon-action, .map-tool {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--cyan);
  cursor: pointer;
}

.icon-action span {
  width: 14px;
  height: 14px;
  border: 2px solid currentColor;
  border-radius: 50%;
  box-shadow: 0 0 18px currentColor;
}

.avatar {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 2px solid rgba(255, 192, 68, 0.55);
  background: linear-gradient(135deg, #1f3648, #875025);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 900;
}

.trip-grid {
  display: grid;
  grid-template-columns: minmax(300px, 0.72fr) minmax(430px, 1.08fr) minmax(180px, 0.42fr);
  gap: 10px;
  height: calc(100vh - 74px);
  padding-top: 10px;
}

.panel, .side-widget {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.04), 0 18px 60px rgba(0, 0, 0, 0.52);
  backdrop-filter: blur(16px);
}

.panel-title, .itinerary-header, .timeline-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.map-panel {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border-color: rgba(33, 228, 255, 0.68);
  box-shadow: 0 0 28px rgba(33, 228, 255, 0.18);
}

.companion-panel {
  position: relative;
  display: grid;
  grid-template-rows: auto auto 1fr;
  min-width: 0;
  overflow: hidden;
  border-color: rgba(33, 228, 255, 0.55);
  background:
    linear-gradient(180deg, rgba(2, 7, 18, 0.2), rgba(2, 7, 18, 0.95) 62%),
    linear-gradient(90deg, rgba(2, 7, 18, 0.76), rgba(2, 7, 18, 0.18)),
    url("assets/mgm-grand-bg.png") center / cover no-repeat;
  box-shadow: 0 0 30px rgba(33, 228, 255, 0.16);
}

.companion-image {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.28;
}

.companion-hero {
  display: grid;
  align-content: end;
  min-height: 360px;
  padding: 24px;
  background:
    radial-gradient(circle at 34% 26%, rgba(33, 228, 255, 0.26), transparent 18rem),
    radial-gradient(circle at 78% 18%, rgba(255, 75, 145, 0.22), transparent 17rem);
}

.panel-kicker {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 10px;
  padding: 6px 9px;
  border: 1px solid rgba(71, 255, 148, 0.34);
  border-radius: 7px;
  background: rgba(0, 0, 0, 0.54);
  color: var(--green);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.companion-hero h2 {
  max-width: 440px;
  margin: 0 0 10px;
  font-size: clamp(2rem, 3.4vw, 4.4rem);
  line-height: 0.95;
  font-weight: 900;
  text-transform: uppercase;
  text-shadow: 0 8px 30px rgba(0, 0, 0, 0.78);
}

.companion-hero p {
  max-width: 520px;
  margin-bottom: 18px;
  color: #d7e4ee;
  font-size: 0.95rem;
  line-height: 1.45;
}

.around-button {
  display: grid;
  justify-items: start;
  width: min(100%, 380px);
  min-height: 78px;
  padding: 14px 16px;
  border: 1px solid rgba(33, 228, 255, 0.72);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(33, 228, 255, 0.22), rgba(255, 75, 145, 0.2));
  color: #fff;
  cursor: pointer;
  box-shadow: 0 0 34px rgba(33, 228, 255, 0.2);
}

.around-button span {
  font-size: 1.04rem;
  font-weight: 900;
  text-transform: uppercase;
}

.around-button small {
  margin-top: 4px;
  color: #c8d7e4;
  font-size: 0.78rem;
  font-weight: 800;
}

.around-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 0 16px 16px;
}

.around-grid a {
  display: flex;
  align-items: center;
  min-height: 54px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: var(--radius);
  background: rgba(3, 7, 14, 0.78);
  color: #e7fbff;
  font-size: 0.84rem;
  font-weight: 900;
  text-decoration: none;
}

.around-grid a:hover,
.around-button:hover {
  border-color: rgba(255, 192, 68, 0.72);
}

.companion-card {
  align-self: end;
  padding: 14px 16px 16px;
  border-top: 1px solid rgba(33, 228, 255, 0.2);
  background: rgba(2, 7, 18, 0.92);
}

.companion-card strong {
  display: block;
  margin-bottom: 5px;
  font-size: 0.9rem;
  text-transform: uppercase;
}

.companion-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.35;
}

.panel-title {
  position: absolute;
  z-index: 4;
  top: 12px;
  left: 12px;
  right: 12px;
  pointer-events: none;
}

.panel-title strong {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 7px;
  background: rgba(0, 0, 0, 0.7);
  font-size: 0.9rem;
  text-transform: uppercase;
}

.live-dot {
  position: absolute;
  left: 10px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 14px var(--green);
}

.map-tool {
  margin-left: auto;
  pointer-events: auto;
}

.map-canvas {
  position: absolute;
  inset: 0 0 88px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(7, 25, 48, 0.94), rgba(2, 7, 18, 0.98)),
    repeating-linear-gradient(0deg, transparent 0 28px, rgba(33, 228, 255, 0.1) 29px 31px),
    repeating-linear-gradient(90deg, transparent 0 34px, rgba(33, 228, 255, 0.08) 35px 37px);
}

.street-grid {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent 0 30%, rgba(33, 228, 255, 0.22) 31% 32%, transparent 33%),
    linear-gradient(90deg, transparent 0 52%, rgba(255, 75, 145, 0.18) 53% 54%, transparent 55%),
    repeating-linear-gradient(12deg, rgba(33, 228, 255, 0.18) 0 2px, transparent 2px 38px),
    repeating-linear-gradient(96deg, rgba(33, 228, 255, 0.12) 0 2px, transparent 2px 45px);
  opacity: 0.82;
}

.strip-route {
  position: absolute;
  top: -10%;
  left: 46%;
  width: 58px;
  height: 122%;
  border: 2px solid rgba(255, 192, 68, 0.6);
  border-radius: 40px;
  background: linear-gradient(180deg, rgba(255, 192, 68, 0.08), rgba(255, 75, 145, 0.28), rgba(33, 228, 255, 0.08));
  transform: rotate(18deg);
  box-shadow: 0 0 32px rgba(255, 75, 145, 0.28);
  animation: routePulse 3s ease-in-out infinite;
}

@keyframes routePulse {
  0%, 100% { filter: brightness(0.95); }
  50% { filter: brightness(1.35); }
}

.map-pin {
  position: absolute;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255, 192, 68, 0.9);
  color: #1a0d04;
  font-size: 0.72rem;
  font-weight: 900;
  box-shadow: 0 0 16px rgba(255, 192, 68, 0.6);
}

.pin-a { top: 18%; left: 70%; }
.pin-b { top: 36%; left: 58%; }
.pin-c { top: 62%; left: 52%; }
.pin-d { top: 78%; left: 62%; }

.current-marker {
  position: absolute;
  left: 49%;
  top: 48%;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border: 3px solid rgba(255, 255, 255, 0.84);
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 30px rgba(37, 151, 255, 0.95);
}

.current-marker::before, .current-marker::after {
  position: absolute;
  content: "";
  inset: -20px;
  border: 2px solid rgba(37, 151, 255, 0.35);
  border-radius: 50%;
  animation: markerPing 2.5s ease-out infinite;
}

.current-marker::after { animation-delay: 1.2s; }

@keyframes markerPing {
  from { transform: scale(0.5); opacity: 1; }
  to { transform: scale(1.5); opacity: 0; }
}

.current-marker span {
  width: 0;
  height: 0;
  border-left: 9px solid transparent;
  border-right: 9px solid transparent;
  border-bottom: 18px solid #fff;
  transform: translateY(-2px);
}

.map-controls {
  position: absolute;
  top: 54px;
  right: 12px;
  display: grid;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 7px;
}

.map-controls button {
  width: 34px;
  height: 34px;
  border: 0;
  background: rgba(0, 0, 0, 0.64);
  color: #fff;
  cursor: pointer;
}

.map-walk-link {
  display: inline-flex;
  width: fit-content;
  margin-top: 12px;
  padding: 9px 11px;
  border: 1px solid rgba(33, 228, 255, 0.42);
  border-radius: 7px;
  background: rgba(0, 0, 0, 0.64);
  color: var(--cyan);
  font-size: 0.82rem;
  font-weight: 900;
  text-decoration: none;
}

.location-card {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 12px 16px 14px;
  border-top: 1px solid rgba(33, 228, 255, 0.2);
  background: rgba(2, 7, 18, 0.9);
}

.location-card strong {
  display: block;
  margin-bottom: 3px;
  font-size: 0.88rem;
  text-transform: uppercase;
}

.location-card p, .side-widget p {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.35;
}

.walk-line {
  margin-top: 10px !important;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff !important;
}

.itinerary-panel {
  display: grid;
  grid-template-rows: auto auto auto minmax(0, 1fr);
  overflow: hidden;
  padding: 16px 16px 0;
}

.itinerary-header h1 {
  margin: 0 0 8px;
  font-size: clamp(1.5rem, 2vw, 2.1rem);
  line-height: 1;
  font-weight: 900;
  text-transform: uppercase;
}

.date-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  color: #dbe7f3;
  font-size: 0.9rem;
  font-weight: 800;
  text-transform: uppercase;
}

.date-strip em {
  color: var(--cyan);
  font-style: normal;
}

.expired-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  white-space: nowrap;
  cursor: pointer;
}

.expired-toggle input { accent-color: var(--cyan); }

.quick-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 10px;
}

.tool-tab, .primary-button, .ghost-button, .button-grid a, .link-list a, .type-button, .expand-button {
  min-height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.05);
  color: #dce8f2;
  font-size: 0.82rem;
  font-weight: 850;
  text-decoration: none;
  cursor: pointer;
}

.tool-tab {
  padding: 0 12px;
}

.tool-tab.active, .primary-button {
  border-color: rgba(33, 228, 255, 0.7);
  background: rgba(33, 228, 255, 0.14);
  color: #fff;
}

.timeline-meta {
  padding: 3px 0 10px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.timeline {
  display: grid;
  gap: 10px;
  min-height: 0;
  overflow-y: auto;
  padding: 0 2px 18px 0;
  scrollbar-color: rgba(33, 228, 255, 0.55) rgba(255, 255, 255, 0.08);
}

.event-row {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: stretch;
  position: relative;
}

.event-row::before {
  position: absolute;
  left: 64px;
  top: -10px;
  bottom: -10px;
  width: 2px;
  content: "";
  background: rgba(255, 255, 255, 0.18);
}

.event-time {
  position: relative;
  display: grid;
  align-content: center;
  min-height: 58px;
  padding-right: 8px;
  text-align: right;
}

.event-time strong {
  color: #fff;
  font-size: 0.95rem;
}

.event-time span {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
}

.event-card {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 58px;
  padding: 9px 10px;
  border: 1px solid var(--event-color);
  border-radius: var(--radius);
  background: linear-gradient(90deg, color-mix(in srgb, var(--event-color) 28%, rgba(4, 9, 18, 0.95)), rgba(4, 9, 18, 0.72));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 0 24px color-mix(in srgb, var(--event-color) 18%, transparent);
}

.event-row.next .event-card {
  outline: 2px solid rgba(33, 228, 255, 0.32);
  box-shadow: 0 0 28px rgba(33, 228, 255, 0.2);
}

.event-row.expired {
  opacity: 0.45;
}

.event-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 7px;
  color: var(--event-color);
  background: rgba(0, 0, 0, 0.25);
  font-size: 0.82rem;
  font-weight: 900;
}

.event-main h3 {
  margin: 0 0 4px;
  overflow: hidden;
  color: #fff;
  font-size: 0.98rem;
  line-height: 1.12;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.event-main p {
  margin: 0;
  overflow: hidden;
  color: #c7d4df;
  font-size: 0.78rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.event-actions {
  display: flex;
  align-items: center;
  gap: 7px;
}

.type-button, .expand-button {
  padding: 0 9px;
  color: #dff9ff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.expand-button {
  width: 34px;
  padding: 0;
  text-decoration: none;
}

.event-details {
  grid-column: 2 / -1;
  display: grid;
  gap: 10px;
  margin-top: -2px;
  margin-bottom: 4px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.34);
}

.event-details ul {
  margin: 0;
  padding-left: 18px;
  color: #cbd7e5;
  font-size: 0.84rem;
  line-height: 1.45;
}

.link-panel, .ride-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border: 1px solid rgba(33, 228, 255, 0.18);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.04);
}

.link-panel strong, .ride-panel strong {
  color: var(--gold);
  font-size: 0.82rem;
  text-transform: uppercase;
}

.link-panel p, .ride-panel p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.8rem;
}

.link-list, .button-grid, .rail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.link-list a, .button-grid a, .ghost-button, .primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
}

.right-rail {
  display: grid;
  align-content: start;
  gap: 10px;
  min-width: 0;
}

.side-widget {
  min-width: 0;
  padding: 10px;
  background: rgba(3, 7, 14, 0.9);
}

.side-widget h2 {
  margin: 0 0 10px;
  color: var(--gold);
  font-size: 0.84rem;
  font-weight: 900;
  text-transform: uppercase;
}

.next-mini {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
}

.next-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--cyan);
  border-radius: 7px;
  color: var(--cyan);
  background: rgba(33, 228, 255, 0.1);
  font-weight: 900;
}

.next-mini strong {
  display: block;
  font-size: 0.82rem;
  line-height: 1.16;
}

.next-mini span, .next-mini p, .rail-label {
  display: block;
  margin: 3px 0 0;
  color: #c6d3df;
  font-size: 0.76rem;
  font-style: normal;
}

.countdown {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin: 12px 0;
}

.walk-estimate {
  margin: -2px 0 10px;
  color: #d7e4ee;
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.3;
}

.time-unit {
  padding: 7px 5px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.05);
  text-align: center;
}

.time-unit strong {
  display: block;
  color: var(--gold);
  font-size: 1rem;
  line-height: 1;
}

.time-unit span {
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 900;
  text-transform: uppercase;
}

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

.alert-list span {
  color: #fff;
  font-size: 0.82rem;
  font-weight: 800;
}

.button-grid a {
  flex: 1 1 94px;
  min-height: 32px;
  color: #e7fbff;
}

.transport-card p {
  margin: 0 0 9px;
}

.flight-strip {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 2px 8px;
  padding: 8px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.flight-strip span {
  color: var(--blue);
  font-weight: 900;
}

.flight-strip strong {
  font-size: 0.82rem;
}

.flight-strip em {
  grid-column: 2;
  color: var(--muted);
  font-size: 0.72rem;
  font-style: normal;
}

@media (max-width: 940px) {
  .topbar {
    grid-template-columns: 1fr;
    height: auto;
  }

  .nav-tabs {
    overflow-x: auto;
  }

  .top-actions {
    display: none;
  }

  .trip-grid {
    grid-template-columns: 1fr;
    height: auto;
  }

  .map-panel {
    min-height: 460px;
  }

  .itinerary-panel {
    max-height: 720px;
  }

  .right-rail {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .vegas-shell { padding: 0 8px 8px; }
  .brand { flex-wrap: wrap; min-height: 58px; }
  .nav-tab { min-width: 92px; min-height: 46px; }
  .map-panel { min-height: 390px; }
  .right-rail { grid-template-columns: 1fr; }
  .itinerary-header { align-items: flex-start; flex-direction: column; }
  .event-row {
    grid-template-columns: 72px minmax(0, 1fr);
  }
  .event-row::before { left: 54px; }
  .event-card {
    grid-template-columns: 38px minmax(0, 1fr);
  }
  .event-actions {
    grid-column: 1 / -1;
    justify-content: flex-end;
  }
  .event-details {
    grid-column: 1 / -1;
  }
  .link-panel, .ride-panel {
    grid-template-columns: 1fr;
  }
}

/* Mobile-only trip companion layout */
body {
  font-size: 18px;
}

body::before {
  opacity: 0.62;
}

.vegas-shell {
  width: min(100%, 460px);
  margin: 0 auto;
  padding: 0 10px 18px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  min-height: 62px;
  height: auto;
  margin: 0 -10px;
  padding: 10px 12px;
}

.brand {
  flex: 1;
  flex-wrap: wrap;
  gap: 5px 8px;
  padding: 0;
}

.brand span {
  flex-basis: 100%;
  font-size: 1.15rem;
  line-height: 1;
}

.brand strong,
.brand em {
  font-size: 0.86rem;
}

.nav-tabs,
.top-actions,
.alert-widget,
.food-card,
.transport-card,
.flight-card,
.timeline-meta span:last-child,
.event-row::before,
.companion-card .walk-line {
  display: none;
}

.trip-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: auto;
  padding-top: 12px;
}

.right-rail {
  display: contents;
}

.mobile-app-nav {
  position: sticky;
  bottom: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  width: min(100%, 460px);
  margin: 0 auto;
  padding: 8px 10px 10px;
  border-top: 1px solid rgba(33, 228, 255, 0.2);
  background: rgba(2, 6, 12, 0.92);
  backdrop-filter: blur(16px);
}

.mobile-app-nav a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-size: 0.94rem;
  font-weight: 900;
  text-decoration: none;
}

.mobile-app-nav a:hover,
.mobile-app-nav a:focus-visible {
  border-color: rgba(33, 228, 255, 0.7);
}

.next-widget {
  order: 1;
}

.companion-panel {
  order: 2;
}

.itinerary-panel {
  order: 3;
}

.panel,
.side-widget {
  border-radius: 8px;
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.42);
}

.next-widget {
  padding: 15px;
  border-color: rgba(255, 192, 68, 0.42);
  background: linear-gradient(135deg, rgba(255, 192, 68, 0.12), rgba(3, 7, 14, 0.94));
}

.side-widget h2 {
  font-size: 0.9rem;
}

.next-mini {
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 12px;
}

.next-icon {
  width: 46px;
  height: 46px;
  font-size: 1rem;
}

.next-mini strong {
  font-size: 1.18rem;
  line-height: 1.15;
}

.next-mini span,
.next-mini p {
  font-size: 0.92rem;
}

.countdown {
  gap: 8px;
}

.time-unit {
  padding: 10px 6px;
}

.time-unit strong {
  font-size: 1.28rem;
}

.time-unit span {
  font-size: 0.72rem;
}

.rail-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.rail-actions .primary-button {
  grid-column: 1 / -1;
}

.primary-button,
.ghost-button,
.button-grid a,
.link-list a,
.type-button,
.expand-button,
.tool-tab {
  min-height: 46px;
  font-size: 0.96rem;
  font-weight: 900;
}

.companion-panel {
  display: block;
  min-height: auto;
}

.companion-hero {
  min-height: 0;
  padding: 14px;
}

.panel-kicker {
  display: none;
}

.companion-hero h2 {
  margin-bottom: 8px;
  font-size: 1.85rem;
  line-height: 1;
}

.companion-hero p {
  display: none;
}

.around-button {
  width: 100%;
  min-height: 68px;
  padding: 14px;
}

.around-button span {
  font-size: 1.08rem;
}

.around-button small {
  font-size: 0.88rem;
}

.around-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 0 14px 14px;
}

.around-grid a {
  min-height: 48px;
  font-size: 0.9rem;
  line-height: 1.08;
}

.companion-card {
  display: none;
}

.companion-card strong {
  font-size: 0.95rem;
}

.companion-card p {
  font-size: 0.92rem;
}

.map-walk-link {
  width: 100%;
  justify-content: center;
  min-height: 46px;
  font-size: 0.95rem;
}

.itinerary-panel {
  display: block;
  max-height: none;
  padding: 15px;
}

.itinerary-header {
  display: block;
}

.itinerary-header h1 {
  margin-bottom: 8px;
  font-size: 1.55rem;
  line-height: 1.05;
}

.date-strip {
  gap: 7px;
  font-size: 0.92rem;
}

.expired-toggle {
  margin-top: 12px;
  min-height: 42px;
  font-size: 0.95rem;
}

.quick-filters {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 14px 0 12px;
}

.tool-tab {
  width: 100%;
  padding: 0 6px;
}

.timeline-meta {
  display: block;
  padding-bottom: 10px;
  font-size: 1rem;
}

.timeline {
  gap: 10px;
  overflow: visible;
  padding: 0;
}

.event-row {
  grid-template-columns: 1fr;
  gap: 6px;
}

.event-time {
  min-height: 0;
  padding: 0 2px;
  text-align: left;
}

.event-time strong,
.event-time span {
  display: inline;
  font-size: 0.95rem;
}

.event-time span::before {
  content: " - ";
}

.event-card {
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 10px;
  min-height: 86px;
  padding: 12px;
}

.event-mark {
  width: 42px;
  height: 42px;
  font-size: 0.96rem;
}

.event-main h3 {
  white-space: normal;
  font-size: 1.12rem;
  line-height: 1.16;
}

.event-main p {
  white-space: normal;
  font-size: 0.96rem;
}

.event-actions {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 46px;
  gap: 8px;
}

.type-button,
.expand-button {
  text-decoration: none;
}

.event-details {
  grid-column: 1;
  margin: 0 0 4px;
  padding: 12px;
}

.event-details ul {
  font-size: 0.98rem;
}

.link-panel,
.ride-panel {
  grid-template-columns: 1fr;
}

.link-panel strong,
.ride-panel strong {
  font-size: 0.86rem;
}

.link-panel p,
.ride-panel p {
  font-size: 0.95rem;
}

.link-list {
  display: grid;
  grid-template-columns: 1fr;
}

@media (min-width: 461px) {
  body {
    background:
      radial-gradient(circle at center, rgba(33, 228, 255, 0.08), transparent 26rem),
      #04070d;
  }
}

@media (min-width: 901px) {
  body {
    font-size: 16px;
  }

  .vegas-shell {
    width: 100%;
    max-width: none;
    min-height: 100vh;
    padding: 0 12px 12px;
  }

  .topbar {
    display: grid;
    grid-template-columns: minmax(300px, 1fr) auto minmax(190px, 1fr);
    align-items: stretch;
    height: 64px;
    margin: 0 -12px;
    padding: 0;
  }

  .brand {
    padding: 0 14px;
  }

  .brand span {
    flex-basis: auto;
    font-size: 1rem;
  }

  .brand strong,
  .brand em {
    font-size: 0.92rem;
  }

  .nav-tabs,
  .top-actions,
  .alert-widget,
  .food-card,
  .transport-card,
  .flight-card,
  .timeline-meta span:last-child,
  .companion-card .walk-line {
    display: flex;
  }

  .flight-card,
  .transport-card,
  .food-card,
  .alert-widget {
    display: block;
  }

  .mobile-app-nav {
    display: none;
  }

  .trip-grid {
    display: grid;
    grid-template-columns: minmax(340px, 0.75fr) minmax(560px, 1.35fr) minmax(270px, 0.55fr);
    gap: 12px;
    height: calc(100vh - 76px);
    padding-top: 12px;
  }

  .right-rail {
    display: grid;
    align-content: start;
    gap: 10px;
  }

  .next-widget,
  .companion-panel,
  .itinerary-panel {
    order: initial;
  }

  .companion-panel {
    display: grid;
    grid-template-rows: minmax(260px, 1fr) auto auto;
    min-height: 0;
  }

  .companion-hero {
    align-content: end;
    min-height: 0;
    padding: 22px;
  }

  .panel-kicker,
  .companion-hero p,
  .companion-card {
    display: block;
  }

  .companion-hero h2 {
    font-size: clamp(2.6rem, 4vw, 4.8rem);
  }

  .around-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .itinerary-panel {
    display: grid;
    grid-template-rows: auto auto auto minmax(0, 1fr);
    max-height: none;
    padding: 18px 18px 0;
  }

  .itinerary-header {
    display: flex;
  }

  .itinerary-header h1 {
    font-size: clamp(1.8rem, 2.4vw, 2.7rem);
  }

  .quick-filters {
    display: flex;
  }

  .tool-tab {
    width: auto;
    padding: 0 13px;
  }

  .timeline {
    overflow-y: auto;
    padding: 0 4px 18px 0;
  }

  .event-row {
    grid-template-columns: 102px minmax(0, 1fr);
    gap: 12px;
  }

  .event-row::before {
    display: block;
  }

  .event-time {
    text-align: right;
  }

  .event-time strong,
  .event-time span {
    display: block;
    font-size: 0.9rem;
  }

  .event-time span::before {
    content: "";
  }

  .event-card {
    grid-template-columns: 46px minmax(0, 1fr) auto;
    min-height: 66px;
  }

  .event-main h3 {
    white-space: nowrap;
    font-size: 1rem;
  }

  .event-main p {
    white-space: nowrap;
    font-size: 0.82rem;
  }

  .event-actions {
    grid-column: auto;
    display: flex;
  }

  .rail-actions {
    grid-template-columns: 1fr;
  }
}
