/* ==========================================================
   AW Final Itinerary — Styles
   Two domains: AW editorial brand (document canvas)
                Kaptio inspector chrome (Flux tokens)
   ========================================================== */

/* ── Reset & base ──────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: #faf7f2;
  color: #3a3a3a;
  font-family: 'Figtree', system-ui, sans-serif;
  font-weight: 400;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* ── AW Brand palette (CSS vars for the document canvas) ── */
:root {
  --aw-forest: #003c38;
  --aw-forest-light: #416c5f;
  --aw-sand: #f1f1ed;
  --aw-sand-dark: #e6e6df;
  --aw-terracotta: #416c5f;
  --aw-terracotta-light: #5d8a7a;
  --aw-charcoal: #3a3a3a;
  --aw-charcoal-light: #666;
  --aw-gold: #c8c9b8;
  --aw-rule: rgba(0,60,56,0.14);
}

/* ══════════════════════════════════════════════════════════
   DOCUMENT CANVAS — AW editorial travel-magazine
   ══════════════════════════════════════════════════════════ */

.document-canvas {
  max-width: 960px;
  margin: 0 auto;
  transition: margin-right var(--flux-duration-slow) var(--flux-ease),
              max-width var(--flux-duration-slow) var(--flux-ease);
}

body.inspect-mode .document-canvas {
  margin-right: 400px;
}

/* ── Hero ─────────────────────────────────────────────── */
.hero {
  position: relative;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  height: 85vh;
  min-height: 540px;
  max-height: 800px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: #fff;
}

body.inspect-mode .hero {
  width: calc(100vw - 400px);
  margin-left: calc(-50vw + 50% + 0px);
  margin-right: 0;
}

.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,60,56,0.10) 0%,
    rgba(0,60,56,0.45) 50%,
    rgba(0,60,56,0.88) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 3rem 4rem;
  max-width: 960px;
  margin: 0 auto;
  width: 100%;
}

.hero-wordmark {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.01em;
  opacity: 0.95;
  margin-bottom: 1rem;
}

.hero-title {
  font-family: 'Bricolage Grotesque', 'Arial Black', sans-serif;
  font-weight: 800;
  font-size: 3.5rem;
  line-height: 1.1;
  margin-bottom: 0.5rem;
}

.hero-subtitle {
  font-family: 'Bricolage Grotesque', 'Arial Black', sans-serif;
  font-weight: 400;
  font-size: 1.5rem;
  opacity: 0.9;
  margin-bottom: 1.5rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  font-size: 0.85rem;
  font-weight: 300;
}

.hero-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.2);
  padding: 0.3rem 0.75rem;
  border-radius: 0;
  font-size: 0.8rem;
  font-weight: 400;
}

.hero-agency {
  margin-top: 1rem;
  font-size: 0.8rem;
  opacity: 0.7;
  font-weight: 300;
}

/* ── Section wrappers ────────────────────────────────── */
.doc-section {
  padding: 3rem 2rem;
}

.doc-section + .doc-section {
  border-top: 1px solid var(--aw-rule);
}

.section-eyebrow {
  font-family: 'Figtree', sans-serif;
  font-weight: 600;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--aw-terracotta);
  margin-bottom: 0.5rem;
}

.section-title {
  font-family: 'Bricolage Grotesque', 'Arial Black', sans-serif;
  font-weight: 800;
  font-size: 2rem;
  color: var(--aw-forest);
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

/* ── Welcome text ────────────────────────────────────── */
.welcome-block {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
  padding: 3rem 2rem 2rem;
}

.welcome-block .section-eyebrow {
  text-align: center;
}

.welcome-text {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--aw-charcoal-light);
  font-weight: 300;
}

/* ── Journey at a Glance (summary table) ─────────────── */
.summary-table-wrap {
  overflow-x: auto;
  padding: 0 2rem;
}

.summary-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.summary-table thead th {
  font-family: 'Figtree', sans-serif;
  font-weight: 600;
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--aw-charcoal-light);
  text-align: left;
  padding: 0.75rem 1rem;
  border-bottom: 2px solid var(--aw-forest);
}

.summary-table tbody td {
  padding: 0.6rem 1rem;
  border-bottom: 1px solid var(--aw-rule);
  vertical-align: top;
  color: var(--aw-charcoal);
}

.summary-table tbody tr:last-child td {
  border-bottom: 2px solid var(--aw-forest);
}

.summary-date {
  font-weight: 600;
  color: var(--aw-forest);
  white-space: nowrap;
}

.summary-city {
  font-weight: 600;
  color: var(--aw-forest-light);
}

.summary-duration {
  font-weight: 400;
  color: var(--aw-terracotta);
  font-size: 0.8rem;
}

.summary-conf {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: var(--aw-charcoal-light);
}

/* ── Day chapter ─────────────────────────────────────── */
.day-chapter {
  padding: 3rem 2rem;
  border-top: 1px solid var(--aw-rule);
}

.day-chapter:first-of-type {
  border-top: none;
}

.day-image-wrap {
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  height: 280px;
  overflow: hidden;
  margin-bottom: 2rem;
  position: relative;
}

body.inspect-mode .day-image-wrap {
  width: calc(100vw - 400px);
  margin-left: calc(-50vw + 50%);
}

.day-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.day-date {
  font-family: 'Bricolage Grotesque', 'Arial Black', sans-serif;
  font-weight: 800;
  font-size: 1.75rem;
  color: var(--aw-forest);
  margin-bottom: 2rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--aw-terracotta);
  display: inline-block;
}

/* ── Service card ────────────────────────────────────── */
.service-card {
  background: #fff;
  border-radius: 6px;
  border: 1px solid var(--aw-rule);
  padding: 1.5rem 1.75rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.service-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.service-type-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: 'Figtree', sans-serif;
  font-weight: 600;
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.25rem 0.65rem;
  border-radius: 4px;
  white-space: nowrap;
  flex-shrink: 0;
}

.service-type-badge svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.badge-FLIGHT        { background: #e8f0fe; color: #1a5276; }
.badge-TRANSFER      { background: #fef3e2; color: #7d4e0e; }
.badge-ACCOMMODATION { background: #e8f5e9; color: #1e5631; }
.badge-ACTIVITY      { background: #fff3e0; color: #bf360c; }
.badge-RAIL          { background: #ede7f6; color: #4a148c; }
.badge-TICKET        { background: #fce4ec; color: #880e4f; }
.badge-OWN           { background: #f5f5f5; color: #616161; }

.service-name {
  font-family: 'Bricolage Grotesque', 'Arial Black', sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--aw-forest);
  flex: 1;
}

.service-status {
  font-family: 'Figtree', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #2e7d32;
  flex-shrink: 0;
}

/* ── Service details grid ────────────────────────────── */
.service-details {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.5rem 1.5rem;
  margin-bottom: 1rem;
  padding: 1rem;
  background: var(--aw-sand);
  border-radius: 4px;
}

.detail-item {
  display: flex;
  flex-direction: column;
}

.detail-label {
  font-family: 'Figtree', sans-serif;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--aw-charcoal-light);
  margin-bottom: 0.15rem;
}

.detail-value {
  font-size: 0.9rem;
  color: var(--aw-charcoal);
}

/* ── Service description ─────────────────────────────── */
.service-description {
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--aw-charcoal-light);
  margin-bottom: 1rem;
  font-weight: 300;
}

/* ── Inclusions / Exclusions ─────────────────────────── */
.incl-excl {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--aw-rule);
}

.incl-col h4,
.excl-col h4 {
  font-family: 'Figtree', sans-serif;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.incl-col h4 { color: #2e7d32; }
.excl-col h4 { color: #c62828; }

.incl-col ul,
.excl-col ul {
  list-style: none;
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--aw-charcoal-light);
}

.incl-col li::before {
  content: '✓';
  color: #2e7d32;
  font-weight: 700;
  margin-right: 0.5rem;
}

.excl-col li::before {
  content: '✗';
  color: #c62828;
  font-weight: 700;
  margin-right: 0.5rem;
}

/* ── Operator block ──────────────────────────────────── */
.operator-block {
  margin-top: 1rem;
  padding: 1rem 1.25rem;
  background: linear-gradient(135deg, var(--aw-forest) 0%, var(--aw-forest-light) 100%);
  border-radius: 6px;
  color: #fff;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.operator-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.operator-icon svg {
  width: 18px;
  height: 18px;
  color: #fff;
}

.operator-info {
  flex: 1;
}

.operator-label {
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  opacity: 0.7;
  margin-bottom: 0.25rem;
}

.operator-cols {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 3rem;
  margin-bottom: 0.65rem;
}

.operator-name {
  font-family: 'Bricolage Grotesque', 'Arial Black', sans-serif;
  font-weight: 700;
  font-size: 1rem;
}

.operator-region {
  opacity: 0.6;
  font-family: 'Figtree', sans-serif;
  font-size: 0.75rem;
  font-weight: 400;
}

.contact-tag {
  font-style: normal;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(255,255,255,0.15);
  border-radius: 999px;
  padding: 0.05rem 0.4rem;
  margin-left: 0.25rem;
}

.operator-contacts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  font-size: 0.8rem;
  font-weight: 300;
}

.operator-contacts span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  opacity: 0.9;
}

.operator-contacts svg {
  width: 14px;
  height: 14px;
  opacity: 0.7;
}

/* ── Emergency contacts section ──────────────────────── */
.contacts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.contact-card {
  background: #fff;
  border: 1px solid var(--aw-rule);
  border-radius: 6px;
  padding: 1.25rem;
}

.contact-region {
  font-family: 'Figtree', sans-serif;
  font-weight: 600;
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--aw-forest);
  margin-bottom: 0.5rem;
}

.contact-phone,
.contact-email {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.85rem;
  color: var(--aw-charcoal);
  margin-bottom: 0.25rem;
}

.contact-phone svg,
.contact-email svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  color: var(--aw-charcoal-light);
}

.contact-email {
  color: var(--aw-terracotta);
}

/* ── Before-you-travel notices ───────────────────────── */
.notice-text {
  font-size: 0.82rem;
  line-height: 1.65;
  color: var(--aw-charcoal-light);
  font-weight: 300;
}

.inspector-counts .counts-gap {
  color: var(--flux-orange-600);
}

/* ── Footer ──────────────────────────────────────────── */
.doc-footer {
  background: var(--aw-forest);
  color: rgba(255,255,255,0.6);
  padding: 2rem;
  text-align: center;
  font-size: 0.75rem;
  margin-top: 2rem;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
}

body.inspect-mode .doc-footer {
  width: calc(100vw - 400px);
  margin-left: calc(-50vw + 50%);
}

.doc-footer strong {
  color: #fff;
}

/* ── Scroll-reveal animations ────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}


/* ══════════════════════════════════════════════════════════
   INSPECTOR CHROME — Flux design system tokens
   ══════════════════════════════════════════════════════════ */

/* ── Toggle pill ─────────────────────────────────────── */
.inspect-toggle {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 1000;
  display: inline-flex;
  align-items: center;
  gap: var(--flux-space-2);
  padding: var(--flux-space-2) var(--flux-space-4);
  border: 1px solid var(--flux-grey-200);
  border-radius: var(--flux-radius-full);
  background: var(--flux-white);
  color: var(--flux-grey-700);
  font-family: var(--flux-font-sans);
  font-size: var(--flux-text-sm);
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--flux-shadow-md);
  transition: all var(--flux-duration-normal) var(--flux-ease);
}

.inspect-toggle:hover {
  border-color: var(--flux-primary-300);
  box-shadow: var(--flux-shadow-lg);
}

body.inspect-mode .inspect-toggle {
  background: var(--flux-primary-600);
  color: var(--flux-white);
  border-color: var(--flux-primary-600);
  /* Shift left of the open sidebar so it doesn't cover the header actions (mapping link, close) */
  right: calc(400px + 1rem);
}

/* ── Sidebar ─────────────────────────────────────────── */
.inspector-sidebar {
  position: fixed;
  top: 0;
  right: -400px;
  width: 380px;
  height: 100vh;
  background: var(--flux-white);
  border-left: 1px solid var(--flux-grey-100);
  z-index: 999;
  display: flex;
  flex-direction: column;
  font-family: var(--flux-font-sans);
  transition: right var(--flux-duration-slow) var(--flux-ease);
  box-shadow: var(--flux-shadow-xl);
  overflow-y: auto;
}

body.inspect-mode .inspector-sidebar {
  right: 0;
}

.inspector-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--flux-space-4) var(--flux-space-5);
  border-bottom: 1px solid var(--flux-grey-100);
  background: var(--flux-primary-800);
  color: var(--flux-white);
  flex-shrink: 0;
}

.inspector-header h3 {
  font-size: var(--flux-text-sm);
  font-weight: 600;
  letter-spacing: 0.05em;
}

.inspector-header-actions {
  display: flex;
  align-items: center;
  gap: var(--flux-space-3);
}

.inspector-mapping-link {
  font-size: var(--flux-text-xs);
  font-weight: 600;
  color: var(--flux-primary-100);
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: var(--flux-radius-sm);
  padding: 0.2rem 0.55rem;
  transition: background var(--flux-duration-fast) var(--flux-ease);
  white-space: nowrap;
}

.inspector-mapping-link:hover {
  background: rgba(255,255,255,0.1);
}

.inspector-close {
  background: none;
  border: none;
  color: var(--flux-white);
  font-size: 1.5rem;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity var(--flux-duration-fast) var(--flux-ease);
  line-height: 1;
}

.inspector-close:hover {
  opacity: 1;
}

/* ── Legend chips ─────────────────────────────────────── */
.inspector-legend {
  display: flex;
  flex-wrap: wrap;
  gap: var(--flux-space-1);
  padding: var(--flux-space-3) var(--flux-space-5);
  border-bottom: 1px solid var(--flux-grey-100);
  background: var(--flux-grey-50);
  flex-shrink: 0;
}

.legend-chip {
  font-family: var(--flux-font-sans);
  font-size: var(--flux-text-xs);
  font-weight: 600;
  padding: 0.15rem 0.5rem;
  border-radius: var(--flux-radius-full);
}

.legend-migrated { background: var(--flux-green-100); color: var(--flux-green-600); }
.legend-catalog  { background: var(--flux-blue-100);  color: var(--flux-blue-600); }
.legend-content  { background: var(--flux-yellow-100); color: var(--flux-yellow-800); }
.legend-live     { background: var(--flux-primary-100); color: var(--flux-primary-600); }
.legend-gap      { background: var(--flux-orange-100); color: var(--flux-orange-600); }

/* ── Counts strip ────────────────────────────────────── */
.inspector-counts {
  padding: var(--flux-space-3) var(--flux-space-5);
  border-bottom: 1px solid var(--flux-grey-100);
  font-size: var(--flux-text-xs);
  color: var(--flux-grey-500);
  line-height: 1.6;
  flex-shrink: 0;
}

.inspector-counts strong {
  color: var(--flux-grey-700);
  font-weight: 600;
}

/* ── Detail panel ────────────────────────────────────── */
.inspector-detail {
  flex: 1;
  padding: var(--flux-space-5);
  overflow-y: auto;
}

.inspector-empty {
  font-size: var(--flux-text-sm);
  color: var(--flux-grey-300);
  text-align: center;
  padding-top: var(--flux-space-8);
  line-height: 1.6;
}

.detail-field-label {
  font-size: var(--flux-text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--flux-grey-500);
  margin-bottom: var(--flux-space-1);
}

.detail-field-value {
  font-size: var(--flux-text-sm);
  color: var(--flux-grey-700);
  margin-bottom: var(--flux-space-4);
  word-break: break-word;
  line-height: 1.5;
}

.detail-panel {
  border: 1px solid var(--flux-grey-100);
  border-radius: var(--flux-radius-md);
  margin-bottom: var(--flux-space-3);
  overflow: hidden;
}

.detail-panel-header {
  font-size: var(--flux-text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: var(--flux-space-2) var(--flux-space-3);
  border-bottom: 1px solid var(--flux-grey-100);
}

.detail-panel-header.calypso-header {
  background: #fef8f0;
  color: #8b5e3c;
}

.detail-panel-header.kaptio-header {
  background: var(--flux-primary-100);
  color: var(--flux-primary-700);
}

.detail-panel-body {
  padding: var(--flux-space-3);
  font-size: var(--flux-text-sm);
}

.detail-mono {
  font-family: var(--flux-font-mono);
  font-size: var(--flux-text-xs);
  background: var(--flux-grey-50);
  padding: 0.2rem 0.4rem;
  border-radius: var(--flux-radius-sm);
  display: inline-block;
  margin-bottom: var(--flux-space-2);
  word-break: break-all;
}

.detail-note {
  font-size: var(--flux-text-xs);
  color: var(--flux-grey-500);
  margin-top: var(--flux-space-2);
  line-height: 1.5;
}

/* ── Migration badge ─────────────────────────────────── */
.migration-badge-wrap {
  margin-bottom: var(--flux-space-3);
}

.migration-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--flux-space-2);
  font-size: var(--flux-text-sm);
  font-weight: 600;
  padding: var(--flux-space-2) var(--flux-space-3);
  border-radius: var(--flux-radius-md);
}

.migration-badge.status-migrated { background: var(--flux-green-100); color: var(--flux-green-600); }
.migration-badge.status-catalog  { background: var(--flux-blue-100);  color: var(--flux-blue-600); }
.migration-badge.status-content  { background: var(--flux-yellow-100); color: var(--flux-yellow-800); }
.migration-badge.status-live     { background: var(--flux-primary-100); color: var(--flux-primary-600); }
.migration-badge.status-gap      { background: var(--flux-orange-100); color: var(--flux-orange-600); }

.migration-note {
  font-size: var(--flux-text-xs);
  color: var(--flux-grey-500);
  margin-top: var(--flux-space-2);
  line-height: 1.5;
}

.migration-legend-desc {
  font-size: var(--flux-text-xs);
  color: var(--flux-grey-300);
  margin-top: var(--flux-space-1);
  line-height: 1.4;
}

/* ── Inspect-mode highlights on document fields ──────── */
body.inspect-mode [data-prov] {
  cursor: pointer;
  transition: outline var(--flux-duration-fast) var(--flux-ease),
              background var(--flux-duration-fast) var(--flux-ease);
  border-radius: 2px;
}

body.inspect-mode [data-prov]:hover {
  outline: 2px dashed var(--aw-terracotta);
  outline-offset: 2px;
  background: rgba(198,93,33,0.06);
}

body.inspect-mode [data-prov].prov-selected {
  outline: 2px solid var(--flux-primary-500);
  outline-offset: 2px;
  background: rgba(5,98,113,0.06);
}

/* ══════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
  .hero-title { font-size: 2.25rem; }
  .hero-subtitle { font-size: 1.1rem; }
  .hero-content { padding: 2rem 1.5rem; }

  .document-canvas { padding: 0; }

  .doc-section,
  .day-chapter { padding: 2rem 1.25rem; }

  .incl-excl { grid-template-columns: 1fr; }

  .service-details { grid-template-columns: 1fr 1fr; }

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

  body.inspect-mode .document-canvas { margin-right: 0; }

  /* Sidebar is a bottom sheet on mobile — keep the pill in the corner */
  body.inspect-mode .inspect-toggle { right: 1rem; }

  body.inspect-mode .hero,
  body.inspect-mode .day-image-wrap,
  body.inspect-mode .doc-footer {
    width: 100vw;
  }

  /* Sidebar becomes bottom sheet on mobile */
  .inspector-sidebar {
    right: auto;
    left: 0;
    top: auto;
    bottom: -100%;
    width: 100%;
    height: 60vh;
    border-left: none;
    border-top: 1px solid var(--flux-grey-100);
    border-radius: var(--flux-radius-xl) var(--flux-radius-xl) 0 0;
    transition: bottom var(--flux-duration-slow) var(--flux-ease);
  }

  body.inspect-mode .inspector-sidebar {
    right: auto;
    bottom: 0;
  }

  .operator-block {
    flex-direction: column;
  }

  .operator-contacts {
    flex-direction: column;
    gap: 0.35rem;
  }
}

@media (max-width: 480px) {
  .hero { min-height: 400px; height: 70vh; }
  .hero-title { font-size: 1.75rem; }
  .hero-meta { flex-direction: column; align-items: flex-start; }
  .summary-table { font-size: 0.75rem; }
  .service-details { grid-template-columns: 1fr; }
}
