:root {
  --bg: #f5f5f7;
  --card: #ffffff;
  --text: #1d1d1f;
  --muted: #6e6e73;
  --line: rgba(0, 0, 0, 0.08);
  --blue: #0071e3;
  --radius: 20px;
  --shadow: 0 8px 28px rgba(0, 0, 0, 0.06);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Helvetica Neue", sans-serif;
  --page: min(1040px, calc(100% - 40px));
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background: var(--bg);
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.47;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

.hero,
main,
.site-footer {
  width: var(--page);
  margin: 0 auto;
}

.hero {
  padding: 48px 0 8px;
  text-align: center;
}

.eyebrow {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--blue);
}

.hero h1 {
  margin: 0;
  font-size: clamp(40px, 6vw, 56px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.hero-sub {
  margin: 10px 0 28px;
  color: var(--muted);
  font-size: 19px;
}

.hero-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  text-align: left;
}

.hero-photo {
  margin: 0;
}

.hero-photo img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  object-position: center;
  border-radius: 18px;
  display: block;
  background: #e8e8ed;
}

.hero-photo figcaption {
  margin-top: 8px;
  font-size: 13px;
  color: var(--muted);
}

main {
  padding: 28px 0 48px;
}

.view-tabs {
  display: flex;
  justify-content: center;
  gap: 4px;
  width: fit-content;
  margin: 0 auto 28px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.06);
}

.view-tab {
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  padding: 8px 16px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
}

.view-tab.is-active {
  background: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
}

.view-panel[hidden] {
  display: none !important;
}

.agenda h2,
.map-lead,
.timeline-eyebrow {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.agenda-section-title {
  margin: 36px 0 14px;
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.agenda-dimension:first-child .agenda-section-title {
  margin-top: 8px;
}

#card-pool[hidden] {
  display: none !important;
}

.logistics-card,
.day-card,
.timeline-card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 16px;
  overflow: hidden;
}

.card-body {
  padding: 22px 24px 24px;
}

.card-photo {
  margin: 0;
  line-height: 0;
}

.card-photo img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  display: block;
  background: #e8e8ed;
}

.card-photo figcaption {
  padding: 8px 24px 0;
  font-size: 12px;
  color: var(--muted);
}

.stay-gallery {
  margin: 0;
  line-height: 0;
  background: #e8e8ed;
}

.stay-gallery-hero {
  width: 100%;
  height: 260px;
  object-fit: cover;
  object-position: center;
  display: block;
}

.stay-gallery-rest {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: 3px;
  margin-top: 3px;
}

.stay-gallery-rest img {
  width: 100%;
  height: 110px;
  object-fit: cover;
  object-position: center;
  display: block;
}

.session-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 10px;
}

.badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  background: #f5f5f7;
  color: var(--text);
}

.badge-muted {
  color: var(--muted);
  font-weight: 500;
}

.logistics-card h3,
.day-card h3,
.map-detail-title {
  margin: 0 0 6px;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.speaker,
.venue-inline,
.venue-directions,
.trip-note,
.trip-priorities,
.map-lead,
.map-detail-lead,
.map-detail-body {
  color: var(--muted);
}

.speaker,
.venue-inline,
.venue-directions {
  margin: 0 0 8px;
  font-style: normal;
}

.card-body p:last-child {
  margin-bottom: 0;
}

.callout {
  margin: 14px 0 0;
  padding: 12px 14px;
  border-radius: 12px;
  background: #f5f5f7;
  color: var(--text);
  font-size: 15px;
}

.trip-summary {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-bottom: 12px;
  font-size: 15px;
}

.trip-summary th,
.trip-summary td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

.trip-summary thead {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.trip-note {
  margin: 0 0 8px;
  font-size: 15px;
}

.day-card-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 10px;
}

.day-card-header h3 {
  margin: 0;
}

.day-schedule,
.day-plan {
  margin: 8px 0 0;
  padding-left: 1.15rem;
}

.day-schedule li,
.day-plan li {
  margin-bottom: 6px;
}

.day-card--today,
.session--today {
  box-shadow: 0 0 0 2px #0071e3, var(--shadow);
}

.day-card--next {
  box-shadow: 0 0 0 2px rgba(0, 113, 227, 0.35), var(--shadow);
}

.timeline-card {
  padding: 24px;
}

.timeline-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 18px;
}

.timeline-today {
  margin: 0;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.timeline-phase {
  margin: 0;
  max-width: 280px;
  color: var(--muted);
  font-size: 15px;
}

.timeline-track-labels {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 8px;
}

.timeline-bar {
  position: relative;
  height: 6px;
  border-radius: 999px;
  background: #e8e8ed;
  margin: 0 0 28px;
}

.timeline-bar-fill {
  height: 100%;
  border-radius: inherit;
  background: var(--text);
}

.timeline-now {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
}

.timeline-now-dot {
  display: block;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 4px #fff;
}

.timeline-now-label {
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 11px;
  font-weight: 600;
  color: var(--blue);
}

.timeline-marker {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
}

.timeline-marker-dot {
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #86868b;
}

.timeline-marker--today .timeline-marker-dot {
  background: var(--blue);
  border-color: var(--blue);
}

.timeline-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.timeline-item {
  padding: 12px 14px;
  border-radius: 14px;
  background: #f5f5f7;
}

.timeline-item--today {
  background: #e8f2fc;
}

.timeline-item--past {
  opacity: 0.55;
}

.timeline-item-when,
.timeline-item-detail {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.timeline-item-label {
  display: block;
  font-weight: 600;
  margin: 2px 0;
}

.timeline-past-block {
  margin-bottom: 12px;
}

.timeline-past-summary {
  cursor: pointer;
  color: var(--muted);
  font-size: 14px;
}

.map-layout {
  display: flex;
  gap: 16px;
  align-items: stretch;
}

.map-controls {
  flex: 0 0 220px;
  background: #fff;
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 12px;
  max-height: 560px;
  overflow: auto;
}

.map-controls-toolbar {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}

.map-bulk-btn {
  font: inherit;
  font-size: 12px;
  border: 0;
  background: #f5f5f7;
  border-radius: 999px;
  padding: 6px 10px;
  cursor: pointer;
}

.map-layer-group {
  border: 0;
  margin: 0 0 8px;
  padding: 0;
}

.map-layer-group--collapsed .map-point-list {
  display: none;
}

.map-group-label,
.map-point-label {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-size: 14px;
  margin: 4px 0;
}

.map-group-label {
  font-weight: 600;
}

.map-point-list {
  padding-left: 8px;
}

.map-map-shell {
  position: relative;
  flex: 1;
  min-width: 0;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #fff;
}

.trip-map {
  height: 560px;
  background: #e8e8ed;
}

.map-detail-panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(320px, 46%);
  background: #fff;
  transform: translateX(105%);
  transition: transform 0.28s ease;
  z-index: 500;
  box-shadow: -8px 0 24px rgba(0, 0, 0, 0.08);
}

.map-detail-panel.is-open {
  transform: translateX(0);
}

.map-detail-panel-inner {
  padding: 20px 18px;
  height: 100%;
  overflow: auto;
}

.map-detail-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: #f5f5f7;
  font-size: 18px;
  cursor: pointer;
}

.map-detail-group {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.site-footer {
  padding: 0 0 40px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.site-footer p {
  margin: 0 0 6px;
}

@media (max-width: 800px) {
  .hero-gallery,
  .map-layout,
  .timeline-header {
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .hero-photo img,
  .card-photo img,
  .stay-gallery-hero {
    height: 180px;
  }

  .stay-gallery-rest img {
    height: 84px;
  }

  .map-controls {
    flex: none;
    max-width: none;
    max-height: 180px;
  }

  .trip-map {
    height: 420px;
  }

  .map-detail-panel {
    width: 100%;
    top: auto;
    height: 46%;
    transform: translateY(105%);
  }

  .map-detail-panel.is-open {
    transform: translateY(0);
  }
}
