:root {
  --bg: #f3f5f7;
  --surface: #ffffff;
  --surface-soft: #f8fafc;
  --surface-tint: #eef7f5;
  --ink: #17202a;
  --muted: #5f6d7a;
  --muted-strong: #405064;
  --line: #d8e0e7;
  --line-strong: #c7d2dc;
  --accent: #0f766e;
  --accent-strong: #0b5f59;
  --accent-soft: #dff5f0;
  --blue: #2563eb;
  --blue-soft: #e7eefc;
  --amber: #b7791f;
  --amber-soft: #fff3d1;
  --rose: #c24154;
  --rose-soft: #ffe5e9;
  --green: #16803f;
  --green-soft: #dcf4e5;
  --shadow: 0 18px 40px rgba(25, 38, 52, 0.08);
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    linear-gradient(180deg, #eef3f5 0, #f7f8fa 360px, var(--bg) 100%);
  color: var(--ink);
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
}

.is-hidden {
  display: none !important;
}

.benchmark-shell {
  width: min(1500px, calc(100% - 40px));
  margin: 0 auto;
  padding: 22px 0 42px;
}

.topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.title-block {
  min-width: 0;
}

.eyebrow,
.panel-kicker {
  display: inline-flex;
  align-items: center;
  margin: 0 0 6px;
  color: var(--accent-strong);
  font-size: 0.73rem;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
h4,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  font-size: 2rem;
  line-height: 1.05;
}

h2 {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.18;
}

.title-subtitle {
  max-width: 720px;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.45;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.primary-button,
.secondary-button,
.ghost-button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 8px;
  padding: 0 15px;
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
}

.primary-button {
  background: var(--accent);
  color: #ffffff;
}

.primary-button:hover {
  background: var(--accent-strong);
}

.secondary-button {
  background: var(--blue-soft);
  color: var(--blue);
}

.ghost-button {
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink);
}

.decision-panel {
  display: grid;
  grid-template-columns: minmax(240px, 0.8fr) minmax(0, 2.3fr);
  gap: 18px;
  align-items: stretch;
  margin-bottom: 16px;
}

.decision-copy {
  display: grid;
  align-content: center;
  gap: 8px;
  border-left: 4px solid var(--accent);
  padding: 6px 0 6px 15px;
}

.decision-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.42;
}

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

.insight-card {
  min-height: 142px;
  display: grid;
  align-content: start;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 14px;
}

.insight-card span,
.metric span,
.compact-summary span,
.comparison-card span,
.details-overview span {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
}

.insight-card strong {
  color: var(--ink);
  font-size: 1.35rem;
  line-height: 1.08;
}

.insight-card p,
.insight-card small {
  margin: 0;
  color: var(--muted-strong);
  font-weight: 800;
  line-height: 1.3;
}

.insight-card.good {
  border-color: rgba(22, 128, 63, 0.34);
  background: linear-gradient(180deg, #ffffff 0, var(--green-soft) 100%);
}

.insight-card.blue {
  border-color: rgba(37, 99, 235, 0.28);
  background: linear-gradient(180deg, #ffffff 0, var(--blue-soft) 100%);
}

.insight-card.warning {
  border-color: rgba(183, 121, 31, 0.38);
  background: linear-gradient(180deg, #ffffff 0, var(--amber-soft) 100%);
}

.filter-panel,
.status-grid,
.add-panel,
.table-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.filter-panel {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(130px, 0.75fr) minmax(165px, 0.9fr) minmax(185px, auto) minmax(145px, 0.75fr) minmax(155px, 0.8fr) minmax(205px, 1.25fr) minmax(145px, 0.75fr);
  gap: 12px;
  align-items: end;
  padding: 14px;
  margin-bottom: 10px;
}

.field {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.field span,
.stars-field legend {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
}

input,
select {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  outline: none;
  padding: 10px 11px;
}

input:focus,
select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.12);
}

.stars-field {
  min-width: 0;
  min-height: 42px;
  display: flex;
  align-items: end;
  gap: 10px;
  margin: 0;
  border: 0;
  padding: 0;
}

.stars-field legend {
  width: 100%;
  margin-bottom: 7px;
}

.stars-field label {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  padding: 0 10px;
  color: var(--ink);
  font-weight: 900;
}

.stars-field input {
  width: 16px;
  min-height: 16px;
  accent-color: var(--accent);
}

.zone-tabs {
  display: flex;
  gap: 8px;
  margin: 0 0 14px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.zone-tab {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--muted-strong);
  padding: 0 13px;
  font-weight: 900;
  white-space: nowrap;
}

.zone-tab.is-active {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.status-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  margin-bottom: 14px;
}

.metric {
  min-height: 82px;
  display: grid;
  align-content: center;
  gap: 5px;
  background: var(--surface-soft);
  padding: 13px 15px;
}

.metric strong {
  font-size: 1.02rem;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.comparison-panel {
  margin: 0 0 14px;
}

.comparison-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 10px;
}

.comparison-content {
  display: grid;
  gap: 10px;
}

.comparison-note {
  margin: 0;
  color: var(--muted);
  font-weight: 800;
}

.comparison-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}

.comparison-card {
  position: relative;
  min-height: 162px;
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 13px;
}

.comparison-card > button {
  position: absolute;
  top: 9px;
  right: 9px;
  width: 28px;
  height: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--muted);
  font-weight: 950;
}

.comparison-card strong {
  padding-right: 32px;
  line-height: 1.22;
}

.comparison-card dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}

.comparison-card dl div {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
  padding: 8px;
}

.comparison-card dt {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.comparison-card dd {
  margin: 3px 0 0;
  color: var(--ink);
  font-weight: 950;
}

.add-panel {
  margin-bottom: 14px;
  padding: 0;
}

.add-panel summary {
  min-height: 48px;
  display: flex;
  align-items: center;
  padding: 0 16px;
  color: var(--ink);
  font-weight: 900;
  cursor: pointer;
}

.add-form {
  display: grid;
  grid-template-columns: minmax(220px, 2fr) minmax(150px, 1fr) minmax(120px, 0.7fr) minmax(130px, 0.8fr) auto;
  gap: 12px;
  align-items: end;
  border-top: 1px solid var(--line);
  padding: 16px;
}

.notice {
  margin: 0 0 14px;
  border: 1px solid var(--amber);
  border-radius: 8px;
  background: var(--amber-soft);
  color: var(--amber);
  padding: 11px 13px;
  font-weight: 800;
}

.notice[data-type="success"] {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.notice[data-type="danger"] {
  border-color: var(--rose);
  background: var(--rose-soft);
  color: var(--rose);
}

.table-panel {
  overflow: hidden;
}

.table-scroll {
  overflow-x: auto;
}

table {
  width: 100%;
  min-width: 1420px;
  border-collapse: collapse;
  background: var(--surface);
}

th,
td {
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
  padding: 10px 11px;
  text-align: left;
  vertical-align: top;
}

th:last-child,
td:last-child {
  border-right: 0;
}

thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #eef3f7;
  color: #334155;
  font-size: 0.74rem;
  font-weight: 950;
  text-transform: uppercase;
}

thead tr:first-child th {
  background: #dfe8ee;
}

tbody tr:hover > td {
  background: #fbfdff;
}

.hotel-row.is-opportunity > td {
  background: #fbfffc;
}

.select-heading,
.select-cell {
  width: 76px;
  text-align: center;
}

.row-check {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  position: relative;
}

.row-check input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.row-check span {
  width: 22px;
  height: 22px;
  display: block;
  border: 2px solid var(--line-strong);
  border-radius: 7px;
  background: #ffffff;
}

.row-check input:checked + span {
  border-color: var(--accent);
  background:
    linear-gradient(135deg, transparent 45%, #ffffff 45% 58%, transparent 58%),
    linear-gradient(45deg, transparent 48%, #ffffff 48% 60%, transparent 60%),
    var(--accent);
}

.hotel-cell {
  width: 320px;
}

.hotel-name {
  display: grid;
  gap: 9px;
}

.hotel-name strong {
  display: block;
  margin-bottom: 4px;
  line-height: 1.18;
}

.hotel-name span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.hotel-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.hotel-badges span,
.stars-pill,
.mode-pill,
.price-mode {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  border-radius: 999px;
  padding: 0 8px;
  font-size: 0.72rem;
  font-weight: 900;
}

.hotel-badges span {
  background: var(--surface-soft);
  color: var(--muted-strong);
  border: 1px solid var(--line);
}

.details-button {
  width: fit-content;
  min-height: 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--accent-strong);
  padding: 0 10px;
  font-size: 0.78rem;
  font-weight: 900;
}

.compact-summary,
.price-cell,
.review-cell {
  min-width: 124px;
  display: grid;
  gap: 4px;
}

.compact-summary strong {
  font-size: 1rem;
  line-height: 1.15;
}

.compact-summary small {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 850;
}

.price-cell,
.review-cell {
  min-height: 128px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 8px;
}

.price-cell.is-best {
  border-color: rgba(22, 128, 63, 0.28);
  background: var(--green-soft);
}

.price-cell.is-highest:not(.is-best) {
  border-color: rgba(194, 65, 84, 0.22);
  background: var(--rose-soft);
}

.price-cell strong,
.review-cell strong {
  color: var(--ink);
  font-size: 0.95rem;
  line-height: 1.15;
}

.price-cell span,
.review-cell span {
  color: var(--muted);
  font-size: 0.77rem;
  font-weight: 800;
  line-height: 1.25;
}

.price-mode {
  width: fit-content;
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.price-mode.variable {
  background: var(--amber-soft);
  color: var(--amber);
}

.rating-meter {
  width: 100%;
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: #e4eaf0;
}

.rating-meter i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--blue));
}

.empty-row td {
  height: 220px;
  color: var(--muted);
  font-weight: 900;
  text-align: center;
  vertical-align: middle;
}

.details-row td {
  background: #f8fafc;
  padding: 0;
}

.details-panel {
  display: grid;
  gap: 18px;
  padding: 16px;
}

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

.details-overview div,
.detail-box {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  padding: 11px;
}

.details-overview strong {
  display: block;
  margin-top: 4px;
  font-size: 1.05rem;
}

.details-overview small {
  color: var(--muted);
  font-weight: 800;
}

.details-section {
  display: grid;
  gap: 10px;
}

.details-section h3 {
  margin: 0;
  font-size: 1rem;
}

.nightly-grid,
.review-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 10px;
}

.detail-box h4 {
  margin: 0 0 8px;
  font-size: 0.9rem;
}

.night-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  max-height: 210px;
  overflow: auto;
}

.calendar-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(74px, 1fr));
}

.night-chip {
  min-height: 48px;
  display: grid;
  align-content: center;
  gap: 3px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
  padding: 7px;
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 900;
}

.night-chip small {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
}

.night-chip.is-low {
  border-color: rgba(22, 128, 63, 0.3);
  background: var(--green-soft);
}

.night-chip.is-high {
  border-color: rgba(183, 121, 31, 0.36);
  background: var(--amber-soft);
}

.review-lines {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.review-lines a,
.source-link {
  color: var(--blue);
  font-weight: 900;
}

@media (max-width: 1180px) {
  .decision-panel {
    grid-template-columns: 1fr;
  }

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

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

  .stars-field,
  .search-field {
    grid-column: 1 / -1;
  }

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

  .metric.wide {
    grid-column: span 1;
  }

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

  .add-form button {
    grid-column: 1 / -1;
  }
}

@media (max-width: 700px) {
  .benchmark-shell {
    width: min(100% - 20px, 1500px);
    padding-top: 12px;
  }

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

  .topbar-actions,
  .topbar-actions button {
    width: 100%;
  }

  h1 {
    font-size: 1.62rem;
  }

  .title-subtitle {
    font-size: 0.9rem;
  }

  .insight-grid,
  .filter-panel,
  .add-form,
  .status-grid,
  .details-overview {
    grid-template-columns: 1fr;
  }

  .filter-panel {
    position: static;
  }

  .stars-field {
    flex-wrap: wrap;
  }

  .stars-field legend {
    margin-bottom: 0;
  }

  .stars-field label {
    flex: 1;
    justify-content: center;
  }

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

  .comparison-head .ghost-button {
    width: 100%;
  }
}
