:root {
  --bg: #f5efe4;
  --panel: rgba(255, 251, 245, 0.85);
  --text: #17322d;
  --muted: #5c6f68;
  --line: rgba(23, 50, 45, 0.12);
  --sea: #1d6b72;
  --sand: #d9a441;
  --coral: #d46a4d;
  --olive: #7e8f45;
  --shadow: 0 24px 50px rgba(45, 55, 46, 0.12);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 82% 22%, rgba(76, 145, 255, 0.34), transparent 28%),
    radial-gradient(circle at 94% 58%, rgba(59, 123, 241, 0.28), transparent 32%),
    radial-gradient(circle at 72% 88%, rgba(129, 186, 255, 0.22), transparent 24%),
    radial-gradient(circle at 18% 18%, rgba(255, 150, 206, 0.34), transparent 24%),
    radial-gradient(circle at 34% 68%, rgba(247, 132, 192, 0.26), transparent 22%),
    radial-gradient(circle at 12% 88%, rgba(255, 186, 221, 0.2), transparent 18%),
    linear-gradient(180deg, #fcf2f7 0%, #f5edf7 48%, #eef4fb 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 22% 24%, rgba(255, 255, 255, 0.16), transparent 18%),
    radial-gradient(circle at 78% 36%, rgba(255, 255, 255, 0.12), transparent 20%),
    radial-gradient(circle at 62% 78%, rgba(255, 255, 255, 0.1), transparent 16%);
}

.page-shell {
  max-width: 1380px;
  margin: 0 auto;
  padding: 28px;
}

.hero {
  margin-bottom: 24px;
}

.hero-copy,
.hero-highlight,
.panel {
  background: #ffffff;
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-copy,
.hero-highlight,
.panel {
  padding: 28px;
}

.hero-copy-full {
  position: relative;
  width: 100%;
  padding: 42px 180px 34px 40px;
}

.lang-switch {
  position: absolute;
  top: 22px;
  right: 24px;
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(23, 50, 45, 0.06);
  border: 1px solid rgba(23, 50, 45, 0.08);
  box-shadow: 0 10px 20px rgba(45, 55, 46, 0.08);
}

.lang-btn {
  border: 0;
  background: transparent;
  color: var(--text);
  border-radius: 999px;
  padding: 8px 12px;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 800;
  cursor: pointer;
  transition:
    background 160ms ease,
    color 160ms ease,
    transform 160ms ease,
    box-shadow 160ms ease;
}

.lang-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 18px rgba(45, 55, 46, 0.1);
}

.lang-btn.is-active {
  background: var(--text);
  color: #ffffff;
}

.hero-highlight {
  background: linear-gradient(145deg, rgba(29, 107, 114, 0.96), rgba(20, 62, 65, 0.94));
  color: #ecfffb;
}

.eyebrow,
.highlight-label {
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  font-weight: 800;
}

.eyebrow {
  color: var(--coral);
}

.highlight-label {
  color: rgba(236, 255, 251, 0.7);
}

h1,
h2 {
  margin: 0;
  font-family: "Fraunces", serif;
  line-height: 1.05;
}

h1 {
  font-size: clamp(2.4rem, 4vw, 4.7rem);
  max-width: none;
}

h2 {
  font-size: clamp(1.5rem, 2vw, 2.3rem);
}

.hero-text,
.panel-note,
#heroInsight {
  font-size: 1rem;
  line-height: 1.7;
}

.hero-text,
.panel-note {
  color: var(--muted);
}

.hero-note {
  margin: 16px 0 0;
  font-size: 0.98rem;
  color: var(--muted);
}

.dashboard {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
}

.panel {
  grid-column: span 6;
}

.chart-panel {
  padding-bottom: 20px;
}

.occupancy-panel {
  grid-column: span 12;
}

.origin-panel {
  grid-column: span 12;
}

.wide {
  grid-column: span 12;
}

.panel-heading {
  margin-bottom: 22px;
}

.chart-panel .panel-heading {
  margin-bottom: 10px;
}

.demand-explainer-heading {
  margin-top: 26px;
}

.split {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: end;
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}


.kpi-card,
.insight-card {
  padding: 18px;
  border-radius: 20px;
  background: #ffffff;
  border: 1px solid rgba(23, 50, 45, 0.08);
}

.kpi-card {
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
  transform-origin: center;
}

.kpi-card:hover {
  transform: scale(1.04);
  box-shadow: 0 18px 34px rgba(45, 55, 46, 0.14);
  border-color: rgba(23, 50, 45, 0.16);
}

.kpi-label,
.kpi-footnote,
.insight-card p {
  color: var(--muted);
}

.kpi-value {
  font-size: clamp(1.8rem, 2vw, 2.6rem);
  font-weight: 800;
  margin: 10px 0;
}

.chart-card {
  min-height: 360px;
}

#occupancyChart.chart-card,
#originChart.chart-card {
  min-height: 0;
}

#occupancyChart {
  padding-top: 26px;
}

#originChart {
  display: block;
}

.chart-shell {
  position: relative;
  display: grid;
  gap: 18px;
}

.mini-chart-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.mini-chart-card {
  position: relative;
  padding: 6px 4px 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.mini-chart-title {
  margin: 0 0 2px;
  font-size: 1.2rem;
  font-weight: 700;
  text-align: center;
}

.mini-chart-card .chart-svg {
  flex: 1;
  min-height: 470px;
  margin-bottom: -18px;
}

.chart-tooltip {
  position: absolute;
  z-index: 5;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, 10px);
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(23, 50, 45, 0.94);
  color: #ffffff;
  box-shadow: 0 14px 28px rgba(23, 50, 45, 0.18);
  min-width: 112px;
  transition: opacity 120ms ease;
  text-align: center;
}

.chart-tooltip--above {
  transform: translate(-50%, calc(-100% - 10px));
}

.chart-tooltip.is-visible {
  opacity: 1;
}

.chart-tooltip-label,
.chart-tooltip-value {
  display: block;
}

.chart-tooltip-label {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: 4px;
}

.chart-tooltip-value {
  font-size: 0.96rem;
  font-weight: 700;
}

.origin-chart-wrap {
  position: relative;
  width: 100%;
  max-width: none;
  margin: 0;
}

.origin-chart-layout {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 28px;
  align-items: stretch;
}

.origin-side-list {
  display: grid;
  gap: 12px;
  align-content: start;
  align-self: stretch;
  margin-top: 18px;
  margin-right: -160px;
}

.origin-side-item {
  display: grid;
  grid-template-columns: 14px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 14px;
  background:
    radial-gradient(circle at 14% 30%, rgba(255, 173, 215, 0.18), transparent 42%),
    radial-gradient(circle at 88% 50%, rgba(118, 176, 255, 0.14), transparent 46%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(249, 252, 255, 0.96));
  border: 1px solid rgba(23, 50, 45, 0.08);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
  transform-origin: center;
}

.origin-side-dot {
  width: 14px;
  height: 14px;
  border-radius: 999px;
}

.origin-side-text {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
}

.origin-side-item:hover,
.insight-card:hover {
  transform: scale(1.04);
  box-shadow: 0 18px 34px rgba(45, 55, 46, 0.14);
  border-color: rgba(23, 50, 45, 0.16);
}

.origin-chart-layout .origin-chart-wrap {
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  min-height: 580px;
  margin-top: 6px;
  padding-left: 132px;
}


.chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-top: -22px;
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--muted);
}

.legend-swatch {
  width: 12px;
  height: 12px;
  border-radius: 999px;
}

.insight-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

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

.definition-card {
  padding: 20px;
  border-radius: 20px;
  background: #ffffff;
  border: 1px solid rgba(23, 50, 45, 0.08);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
  transform-origin: center;
}

.definition-card h3,
.insight-card h3 {
  margin: 0 0 10px;
  font-size: 1rem;
}

.definition-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.definition-card:hover {
  transform: scale(1.04);
  box-shadow: 0 18px 34px rgba(45, 55, 46, 0.14);
  border-color: rgba(23, 50, 45, 0.16);
}

.section-note {
  margin: 18px 4px 0;
  font-size: 0.94rem;
  line-height: 1.65;
  color: var(--muted);
}

.table-wrap {
  overflow: auto;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: #ffffff;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 980px;
}

th,
td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  font-size: 0.94rem;
}

thead th {
  position: sticky;
  top: 0;
  background: #fff8ed;
}

.num {
  font-variant-numeric: tabular-nums;
}

.muted {
  color: #8b938e;
}

.chart-svg {
  width: 100%;
  height: auto;
  display: block;
}

.axis-label {
  fill: var(--muted);
  font-size: 18px;
  font-family: "Manrope", sans-serif;
  font-weight: 700;
}

.axis-line,
.grid-line {
  stroke: rgba(23, 50, 45, 0.12);
  stroke-width: 1;
}

.grid-line {
  stroke-dasharray: 4 4;
}

.area-fill {
  fill: rgba(29, 107, 114, 0.14);
}

.line-demand {
  fill: none;
  stroke: var(--sea);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.line-supply {
  fill: none;
  stroke: var(--sand);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.line-secondary {
  fill: none;
  stroke: var(--coral);
  stroke-width: 3.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.point {
  stroke: #fffaf1;
  stroke-width: 2;
}

.bar-foreign {
  fill: var(--sea);
}

.bar-domestic {
  fill: var(--sand);
}

.bar-country {
  fill: var(--olive);
}

.bar-travellers {
  fill: var(--sea);
}

.bar-overnight {
  fill: var(--coral);
}

.bar-beds {
  fill: var(--sand);
}

@media (max-width: 1100px) {
  .hero,
  .dashboard {
    grid-template-columns: 1fr;
  }

  .panel,
  .wide {
    grid-column: auto;
  }

  .kpi-grid,
  .insight-list,
  .definition-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mini-chart-grid {
    grid-template-columns: 1fr;
  }

  .origin-chart-layout {
    grid-template-columns: 1fr;
  }

  .split {
    flex-direction: column;
    align-items: start;
  }
}

@media (max-width: 720px) {
  .page-shell {
    padding: 16px;
  }

  .kpi-grid,
  .insight-list,
  .definition-grid {
    grid-template-columns: 1fr;
  }

  .mini-chart-grid {
    grid-template-columns: 1fr;
  }

  .origin-chart-layout {
    grid-template-columns: 1fr;
  }
}
