:root {
  color-scheme: light;
  --po-bg: #ffffff;
  --po-panel: #f8fafc;
  --po-panel-strong: #eef2f7;
  --po-line: #d9e1ea;
  --po-line-soft: #edf2f7;
  --po-text: #111827;
  --po-muted: #5b6675;
  --po-accent: #0f766e;
  --po-accent-soft: #e6fffb;
  --po-group-a: #ffffff;
  --po-group-b: #f6f9fc;
  --po-group-start: #eef8f7;
  --po-group-start-b: #eef3f8;
  --po-group-line: rgba(15, 118, 110, 0.55);
  --po-section-bg: #eaf7f5;
  --po-section-border: rgba(15, 118, 110, 0.28);
  --po-region-header-bg: #0f4c5c;
  --po-region-header-text: #ffffff;
  --po-region-header-border: #0891b2;
  --po-region-header-accent: #f97316;
  --po-region-header-chip-bg: rgba(255, 255, 255, 0.16);
  --po-region-header-chip-text: #ffffff;
  --po-region-header-chip-border: rgba(255, 255, 255, 0.38);
  --po-double-bg: #fff4cf;
  --po-double-bg-hover: #ffec99;
  --po-double-head-bg: #7c4a03;
  --po-double-text: #3b2a05;
  --po-double-head-text: #fff7d6;
  --po-double-border: rgba(180, 83, 9, 0.42);
  --po-plan-bg: #ecfdf5;
  --po-plan-text: #047857;
  --po-plan-border: rgba(5, 150, 105, 0.32);
  --po-day-weekday-bg: #e0f2fe;
  --po-day-weekday-text: #075985;
  --po-day-weekday-border: rgba(2, 132, 199, 0.32);
  --po-day-weekend-bg: #fff7ed;
  --po-day-weekend-text: #9a3412;
  --po-day-weekend-border: rgba(234, 88, 12, 0.34);
  --po-day-other-bg: #f4f4f5;
  --po-day-other-text: #3f3f46;
  --po-day-other-border: rgba(113, 113, 122, 0.28);
  --po-danger: #b91c1c;
  --po-radius: 8px;
  --po-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}

html[data-theme="dark"] {
  color-scheme: dark;
  --po-bg: #0f172a;
  --po-panel: #172033;
  --po-panel-strong: #1e293b;
  --po-line: #334155;
  --po-line-soft: #263448;
  --po-text: #e5e7eb;
  --po-muted: #a7b0be;
  --po-accent: #2dd4bf;
  --po-accent-soft: rgba(45, 212, 191, 0.12);
  --po-group-a: #0f172a;
  --po-group-b: #121c30;
  --po-group-start: #17333d;
  --po-group-start-b: #18263a;
  --po-group-line: rgba(45, 212, 191, 0.62);
  --po-section-bg: #112f3a;
  --po-section-border: rgba(45, 212, 191, 0.34);
  --po-region-header-bg: #0e7490;
  --po-region-header-text: #f0fdfa;
  --po-region-header-border: #22d3ee;
  --po-region-header-accent: #f59e0b;
  --po-region-header-chip-bg: rgba(8, 47, 73, 0.62);
  --po-region-header-chip-text: #ecfeff;
  --po-region-header-chip-border: rgba(165, 243, 252, 0.52);
  --po-double-bg: rgba(245, 158, 11, 0.18);
  --po-double-bg-hover: rgba(245, 158, 11, 0.28);
  --po-double-head-bg: #4a3413;
  --po-double-text: #fde68a;
  --po-double-head-text: #fef3c7;
  --po-double-border: rgba(251, 191, 36, 0.42);
  --po-plan-bg: rgba(16, 185, 129, 0.14);
  --po-plan-text: #a7f3d0;
  --po-plan-border: rgba(52, 211, 153, 0.3);
  --po-day-weekday-bg: rgba(14, 165, 233, 0.18);
  --po-day-weekday-text: #bae6fd;
  --po-day-weekday-border: rgba(56, 189, 248, 0.34);
  --po-day-weekend-bg: rgba(249, 115, 22, 0.2);
  --po-day-weekend-text: #fed7aa;
  --po-day-weekend-border: rgba(251, 146, 60, 0.38);
  --po-day-other-bg: rgba(148, 163, 184, 0.16);
  --po-day-other-text: #d1d5db;
  --po-day-other-border: rgba(148, 163, 184, 0.3);
  --po-danger: #fca5a5;
  --po-shadow: none;
}

* {
  box-sizing: border-box;
}

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

body {
  background: var(--po-bg);
  color: var(--po-text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.4;
}

a {
  color: inherit;
}

button,
input {
  font: inherit;
}

.po-version-nav {
  border-bottom: 1px solid var(--po-line);
  background: var(--po-bg);
}

.po-version-nav-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: min(100%, 1680px);
  margin: 0 auto;
  padding: 10px 18px;
}

.po-version-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  border: 1px solid var(--po-line);
  border-radius: var(--po-radius);
  background: var(--po-panel);
  color: var(--po-text);
  text-decoration: none;
  font-weight: 600;
  padding: 7px 13px;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.po-version-icon {
  flex: none;
}

/* Light version — amber */
.po-version-light {
  color: #b45309;
  border-color: rgba(245, 158, 11, 0.45);
  background: #fffbeb;
}

.po-version-light:hover {
  border-color: #f59e0b;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.18);
}

/* Full version — indigo */
.po-version-full {
  color: #4338ca;
  border-color: rgba(79, 70, 229, 0.4);
  background: #eef2ff;
}

.po-version-full:hover {
  border-color: #4f46e5;
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.18);
}

html[data-theme="dark"] .po-version-light {
  color: #fcd34d;
  border-color: rgba(245, 158, 11, 0.45);
  background: rgba(245, 158, 11, 0.14);
}

html[data-theme="dark"] .po-version-full {
  color: #c7d2fe;
  border-color: rgba(129, 140, 248, 0.5);
  background: rgba(99, 102, 241, 0.18);
}

.po-page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 24px 14px;
  border-bottom: 1px solid var(--po-line);
  background: var(--po-bg);
}

.po-page-header h1 {
  margin: 0;
  font-size: clamp(1.35rem, 2.4vw, 2rem);
  line-height: 1.15;
  letter-spacing: 0;
}

.po-page-header p {
  max-width: 760px;
  margin: 6px 0 0;
  color: var(--po-muted);
}

.po-header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.po-header-actions a,
.po-header-actions button,
.po-source-tabs button,
.po-view-tab {
  min-height: 34px;
  border: 1px solid var(--po-line);
  border-radius: var(--po-radius);
  background: var(--po-panel);
  color: var(--po-text);
  text-decoration: none;
  padding: 7px 11px;
  cursor: pointer;
}

.po-header-actions a:hover,
.po-header-actions button:hover,
.po-source-tabs button:hover,
.po-view-tab:hover {
  border-color: var(--po-accent);
}

.po-shell {
  width: min(100%, 1680px);
  margin: 0 auto;
  padding: 14px 18px 44px;
}

.po-toolbar {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--po-line);
  border-radius: var(--po-radius);
  background: var(--po-panel);
  box-shadow: var(--po-shadow);
}

.po-search-label {
  color: var(--po-muted);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
}

#po-search {
  width: 100%;
  min-height: 38px;
  border: 1px solid var(--po-line);
  border-radius: var(--po-radius);
  background: var(--po-bg);
  color: var(--po-text);
  padding: 8px 10px;
  outline: none;
}

#po-search:focus {
  border-color: var(--po-accent);
  box-shadow: 0 0 0 3px var(--po-accent-soft);
}

.po-view-tabs {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.po-view-tab[aria-selected="true"],
.po-source-tabs button[aria-selected="true"] {
  border-color: var(--po-accent);
  background: var(--po-accent-soft);
  color: var(--po-text);
  font-weight: 800;
}

.po-check {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
  color: var(--po-muted);
  white-space: nowrap;
}

.po-check input {
  width: 16px;
  height: 16px;
  accent-color: var(--po-accent);
}

.po-source-tabs {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  padding: 12px 2px 4px;
  scrollbar-width: thin;
}

.po-source-tabs button {
  white-space: nowrap;
}

.po-status-row {
  display: none;
}

.po-status-row p {
  margin: 0;
}

.po-content {
  min-height: 260px;
}

.po-market-blocks {
  display: grid;
  gap: 18px;
}

.po-region-blocks {
  display: grid;
  gap: 18px;
}

.po-market-block,
.po-region-block {
  display: grid;
  gap: 8px;
}

.po-market-block-header,
.po-region-block-header {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--po-line);
  border-radius: var(--po-radius);
  padding: 10px 12px 10px 15px;
  background: var(--po-panel);
  box-shadow: inset 5px 0 0 var(--po-accent);
}

.po-market-block-header h2,
.po-region-block-header h2 {
  margin: 0;
  color: var(--po-text);
  font-size: 0.98rem;
  font-weight: 850;
  line-height: 1.25;
}

.po-market-block-stats,
.po-region-block-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px 10px;
}

.po-market-block-stats span,
.po-region-block-stats span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border: 1px solid var(--po-section-border);
  border-radius: 999px;
  padding: 2px 8px;
  background: var(--po-bg);
  color: var(--po-muted);
  font-size: 0.76rem;
  font-weight: 750;
  white-space: nowrap;
}

.po-region-block-header {
  border-color: var(--po-region-header-border);
  background: var(--po-region-header-bg);
  color: var(--po-region-header-text);
  box-shadow: inset 7px 0 0 var(--po-region-header-accent), var(--po-shadow);
}

.po-region-block-header h2 {
  color: var(--po-region-header-text);
}

.po-region-block-stats span {
  border-color: var(--po-region-header-chip-border);
  background: var(--po-region-header-chip-bg);
  color: var(--po-region-header-chip-text);
}

.po-table-wrap {
  overflow: auto;
  border: 1px solid var(--po-line);
  border-radius: var(--po-radius);
  background: var(--po-bg);
  box-shadow: var(--po-shadow);
}

.po-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.84rem;
}

.po-table th,
.po-table td {
  padding: 7px 9px;
  border-bottom: 1px solid var(--po-line-soft);
  vertical-align: top;
  text-align: start;
}

.po-table th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--po-panel-strong);
  color: var(--po-muted);
  font-size: 0.73rem;
  font-weight: 800;
  text-transform: uppercase;
  white-space: nowrap;
}

.po-pricing-table th.po-double-head {
  background: var(--po-double-head-bg);
  color: var(--po-double-head-text);
  box-shadow: inset 1px 0 0 var(--po-double-border), inset -1px 0 0 var(--po-double-border);
}

.po-table tbody tr.po-price-row.po-hotel-band-a td {
  background: var(--po-group-a);
}

.po-table tbody tr.po-price-row.po-hotel-band-b td {
  background: var(--po-group-b);
}

.po-table tbody tr.po-price-row:hover td,
.po-table tbody tr.po-section-row:hover td {
  background: var(--po-panel-strong);
}

.po-pricing-table td.po-double-cell {
  background: var(--po-double-bg) !important;
  color: var(--po-double-text);
  font-weight: 900;
  box-shadow: inset 1px 0 0 var(--po-double-border), inset -1px 0 0 var(--po-double-border);
}

.po-pricing-table tr.po-price-row:hover td.po-double-cell {
  background: var(--po-double-bg-hover) !important;
}

.po-section-row td {
  border-bottom: 1px solid var(--po-section-border);
  padding: 0;
  background: var(--po-section-bg);
}

.po-section-cell {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-height: 54px;
  padding: 9px 12px 9px 15px;
}

/* Coloured box around every hotel block. The hue (--hb) cycles through 7
   values so two neighbouring hotels never share the same colour. */
.po-pricing-table tr.po-hotel-row > td:first-child {
  border-left: 3px solid var(--hb, var(--po-accent));
}

.po-pricing-table tr.po-hotel-row > td:last-child {
  border-right: 3px solid var(--hb, var(--po-accent));
}

.po-pricing-table tr.po-section-row.po-hotel-row > td {
  border-top: 3px solid var(--hb, var(--po-accent));
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
}

.po-pricing-table tr.po-hotel-close > td {
  height: 0;
  padding: 0;
  line-height: 0;
  border-left: 3px solid var(--hb, var(--po-accent));
  border-right: 3px solid var(--hb, var(--po-accent));
  border-bottom: 3px solid var(--hb, var(--po-accent));
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
}

.po-pricing-table tr.po-hotel-gap > td {
  height: 12px;
  padding: 0;
  border: 0;
  background: var(--po-bg);
}

.po-hotel-c0 { --hb: #0d9488; }
.po-hotel-c1 { --hb: #4f46e5; }
.po-hotel-c2 { --hb: #db2777; }
.po-hotel-c3 { --hb: #b45309; }
.po-hotel-c4 { --hb: #047857; }
.po-hotel-c5 { --hb: #0369a1; }
.po-hotel-c6 { --hb: #a21caf; }

html[data-theme="dark"] .po-hotel-c0 { --hb: #2dd4bf; }
html[data-theme="dark"] .po-hotel-c1 { --hb: #818cf8; }
html[data-theme="dark"] .po-hotel-c2 { --hb: #fb7185; }
html[data-theme="dark"] .po-hotel-c3 { --hb: #fbbf24; }
html[data-theme="dark"] .po-hotel-c4 { --hb: #34d399; }
html[data-theme="dark"] .po-hotel-c5 { --hb: #38bdf8; }
html[data-theme="dark"] .po-hotel-c6 { --hb: #e879f9; }

/* Child-policy chip sits on the hotel's area line + its hover tooltip */
.po-section-subrow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  margin-top: 5px;
}

.po-section-subrow .po-section-subline {
  margin-top: 0;
}

.po-child-policy {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 2px 10px;
  border: 1px solid var(--po-accent);
  border-radius: 999px;
  background: var(--po-bg);
  color: var(--po-accent);
  font-size: 0.76rem;
  font-weight: 800;
  white-space: nowrap;
  cursor: help;
}

.po-hotel-policy {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 2px 10px;
  border: 1px solid var(--po-day-weekday-border);
  border-radius: 999px;
  background: var(--po-day-weekday-bg);
  color: var(--po-day-weekday-text);
  font-size: 0.76rem;
  font-weight: 800;
  white-space: nowrap;
  cursor: help;
}

.po-hotel-policy:hover,
.po-hotel-policy:focus-visible {
  border-color: var(--po-day-weekday-text);
  outline: none;
}

.po-child-policy:hover,
.po-child-policy:focus-visible {
  background: var(--po-accent-soft);
  outline: none;
}

.po-adults-only {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 2px 10px;
  border: 1px solid var(--po-day-weekend-border);
  border-radius: 999px;
  background: var(--po-day-weekend-bg);
  color: var(--po-day-weekend-text);
  font-size: 0.76rem;
  font-weight: 800;
  white-space: nowrap;
}

#po-policy-tip {
  position: fixed;
  z-index: 1000;
  max-width: min(360px, calc(100vw - 24px));
  padding: 14px 16px 15px;
  border: 1px solid var(--po-line);
  border-radius: 14px;
  background: var(--po-bg);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.28);
  font-family: 'Tajawal', 'Inter', sans-serif;
  direction: rtl;
  text-align: right;
}

#po-policy-tip[hidden] {
  display: none;
}

.po-cp-title {
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--po-line-soft);
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--po-text);
}

.po-cp-rule {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  padding: 6px 0;
}

.po-cp-rule + .po-cp-rule {
  border-top: 1px dashed var(--po-line-soft);
}

.po-cp-child {
  min-width: 84px;
  font-size: 0.86rem;
  font-weight: 800;
  color: var(--po-text);
}

.po-cp-age {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--po-muted);
}

.po-cp-charge {
  margin-inline-start: auto;
  padding: 2px 10px;
  border-radius: 999px;
  border: 1px solid var(--po-line);
  background: var(--po-panel-strong);
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--po-text);
  white-space: nowrap;
}

.po-cp-charge.po-cp-free {
  border-color: transparent;
  background: transparent;
  padding-inline: 0;
  color: var(--po-plan-text);
}

.po-cp-rooms {
  flex-basis: 100%;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--po-text);
}

.po-cp-line {
  padding: 4px 0;
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--po-text);
}

.po-section-title {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 10px;
  font-size: 0.98rem;
  font-weight: 850;
  line-height: 1.25;
  color: var(--po-text);
}

.po-section-subline {
  display: block;
  margin-top: 4px;
  color: var(--po-muted);
  font-size: 0.78rem;
  font-weight: 750;
  line-height: 1.25;
}

.po-section-stats {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  color: var(--po-muted);
  font-size: 0.76rem;
  font-weight: 700;
}

.po-section-stats {
  justify-content: flex-end;
}

.po-section-stat {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border: 1px solid var(--po-section-border);
  border-radius: 999px;
  padding: 2px 8px;
  background: var(--po-bg);
  white-space: nowrap;
}

.po-subblock-row td {
  padding: 5px 12px 5px 15px;
  background: var(--po-panel);
  border-top: 1px solid var(--po-line-soft);
  border-bottom: 1px solid var(--po-line-soft);
}

.po-subblock-tag {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 2px 10px;
  border: 1px solid var(--po-line);
  border-radius: 999px;
  background: var(--po-panel-strong);
  color: var(--po-text);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.po-table tr[hidden] {
  display: none;
}

.po-upgrades-row td {
  padding: 8px 12px 9px 15px;
  background: var(--po-panel);
  border-top: 1px solid var(--po-section-border);
}

.po-upgrades {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.po-upgrades-title {
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--po-muted);
}

.po-upgrades-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.po-upgrade {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 4px 10px;
  border: 1px solid var(--po-line);
  border-radius: 10px;
  background: var(--po-bg);
}

.po-upgrade-name {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--po-text);
}

.po-upgrade-price {
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--po-accent);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.po-upgrade-basis {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--po-muted);
  white-space: nowrap;
}

.po-markettabs-row td {
  padding: 7px 12px 7px 15px;
  background: var(--po-section-bg);
  border-bottom: 1px solid var(--po-section-border);
}

.po-market-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
}

.po-market-tab {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 12px;
  border: 1px solid var(--po-line);
  border-radius: 999px;
  background: var(--po-bg);
  color: var(--po-muted);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 750;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}

.po-market-tab:hover {
  border-color: var(--po-accent);
  color: var(--po-text);
}

.po-market-tab.is-active {
  border-color: var(--po-accent);
  background: var(--po-accent);
  color: #ffffff;
}

.po-num,
.po-market,
.po-date,
.po-updated {
  white-space: nowrap;
}

.po-num {
  text-align: end;
  font-variant-numeric: tabular-nums;
}

.po-table td.po-num {
  padding-inline: 4px;
}

.po-table td.po-date {
  padding-inline-end: 4px;
}

.po-pax-cell {
  text-align: end;
}

.po-pax-label {
  display: inline-flex;
  align-items: center;
  margin-inline-end: 8px;
  padding: 2px 8px;
  border: 1px solid var(--po-plan-border);
  border-radius: 999px;
  background: var(--po-plan-bg);
  color: var(--po-plan-text);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.po-period-cell {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.po-period-dates {
  white-space: nowrap;
}

.po-dt {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
}

.po-dt-d {
  font-weight: 800;
  color: var(--po-text);
  font-variant-numeric: tabular-nums;
}

.po-dt-m {
  font-weight: 800;
  color: var(--po-accent);
  letter-spacing: 0.02em;
}

.po-dt-y {
  font-weight: 500;
  font-size: 0.86em;
  color: var(--po-muted);
}

.po-dt-sep {
  margin: 0 8px;
  color: var(--po-muted);
  font-weight: 700;
}

.po-period-badge {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  border: 1px solid var(--po-day-other-border);
  border-radius: 999px;
  padding: 2px 8px;
  background: var(--po-day-other-bg);
  color: var(--po-day-other-text);
  font-size: 0.72rem;
  font-weight: 850;
  line-height: 1;
  white-space: nowrap;
}

.po-period-badge-weekday {
  border-color: var(--po-day-weekday-border);
  background: var(--po-day-weekday-bg);
  color: var(--po-day-weekday-text);
}

.po-period-badge-weekend {
  border-color: var(--po-day-weekend-border);
  background: var(--po-day-weekend-bg);
  color: var(--po-day-weekend-text);
}


.po-hotel-name {
  min-width: 190px;
  font-weight: 800;
}

.po-hotel-title {
  display: block;
  line-height: 1.35;
}

.po-hotel-start .po-hotel-title {
  font-size: 0.92rem;
}

.po-hotel-continued .po-hotel-title {
  color: var(--po-muted);
  font-weight: 650;
}

.po-hotel-subline {
  display: block;
  margin-top: 2px;
  color: var(--po-muted);
  font-size: 0.73rem;
  font-weight: 600;
}

.po-muted {
  color: var(--po-muted);
}

.po-pill {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  border: 1px solid var(--po-line);
  border-radius: 999px;
  padding: 2px 8px;
  background: var(--po-panel);
  color: var(--po-muted);
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
}

.po-policy-table .po-policy-cell {
  min-width: 380px;
  max-width: 920px;
  white-space: pre-wrap;
}

.po-empty,
.po-loading,
.po-error {
  border: 1px solid var(--po-line);
  border-radius: var(--po-radius);
  background: var(--po-panel);
  color: var(--po-muted);
  padding: 28px 18px;
  text-align: center;
}

.po-error {
  color: var(--po-danger);
}

.po-error code {
  color: var(--po-text);
}

.po-policy-missing {
  color: var(--po-muted);
  font-style: italic;
}

@media print {
  .po-page-header,
  .po-toolbar,
  .po-source-tabs {
    display: none;
  }

  .po-shell {
    padding: 0;
  }

  .po-table-wrap {
    border: none;
    overflow: visible;
  }

  .po-table th {
    position: static;
  }
}

@media (max-width: 900px) {
  .po-page-header {
    flex-direction: column;
  }

  .po-header-actions {
    justify-content: flex-start;
  }

  .po-toolbar {
    grid-template-columns: 1fr;
  }

  .po-search-label {
    display: none;
  }

  .po-check {
    justify-content: flex-start;
  }

  .po-status-row {
    flex-direction: column;
    gap: 4px;
  }

  .po-market-block-header,
  .po-region-block-header {
    grid-template-columns: 1fr;
  }

  .po-market-block-stats,
  .po-region-block-stats {
    justify-content: flex-start;
  }
}

@media (max-width: 560px) {
  body {
    font-size: 13px;
  }

  .po-page-header {
    padding: 16px;
  }

  .po-version-nav-inner {
    justify-content: center;
    padding-left: 10px;
    padding-right: 10px;
  }

  .po-shell {
    padding-left: 10px;
    padding-right: 10px;
  }

  /* Keep the hotel section header inside the viewport even while the
     table scrolls horizontally, and stack the chips under the name so
     there is no empty gap and nothing gets clipped off-screen. */
  .po-section-row td {
    position: sticky;
    left: 0;
  }

  .po-section-cell {
    grid-template-columns: 1fr;
    gap: 8px;
    max-width: calc(100vw - 20px);
    box-sizing: border-box;
  }

  .po-section-stats {
    justify-content: flex-start;
  }
}
