/* when-to-book-v1.css — "When Should You Book Hawaii?" tool
 * px font sizes per site rules (html{font-size:62.5%} makes rem = 10px).
 * All rules scoped to .wtb-page-app so global form rules can't reach in. */

/* ── Reset for site-wide form rules (04-08-25-v1.css) ──
   Type-specific selectors give (0,1,2) specificity + later source order,
   beating the global `main select`/`main input[type=text]` rules. */
.wtb-page-app input[type='text'],
.wtb-page-app input[type='search'],
.wtb-page-app select,
.wtb-page-app textarea {
  height: auto;
  margin: 0;
  background: none;
  background-color: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  font-size: inherit;
  font-family: inherit;
  color: inherit;
  line-height: 1.4;
  box-shadow: none;
  width: auto;
}

/* ── Hero (mirrors gas-prices hero pattern) ── */
.wtb-hero {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  min-height: 260px;
  display: flex;
  align-items: flex-end;
  background-size: cover;
  margin: 0 0 14px;
}
.wtb-hero-overlay {
  width: 100%;
  padding: 70px 26px 22px;
  background: linear-gradient(180deg, rgba(8,20,30,0) 0%, rgba(8,20,30,0.78) 78%);
  color: #fff;
  box-sizing: border-box;
}
.wtb-hero-overlay h1 {
  color: #fff;
  font-size: 38px;
  line-height: 1.12;
  margin: 0 0 6px;
}
.wtb-hero-overlay p {
  color: #eef4f8;
  font-size: 18px;
  margin: 0;
}
.wtb-hero-back {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(8, 20, 30, 0.55);
  color: #fff;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 14px;
  text-decoration: none;
}
.wtb-hero-back:hover { background: rgba(8, 20, 30, 0.8); color: #fff; }

.wtb-updated {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  align-items: center;
  font-size: 14px;
  color: #5a6b76;
  margin: 0 0 18px;
}

/* ── Controls ── */
.wtb-controls {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  background: #f2f6f8;
  border: 1px solid #dfe7ec;
  border-radius: 14px;
  padding: 16px;
  margin: 0 0 18px;
  box-sizing: border-box;
}
.wtb-control label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #48606e;
  margin: 0 0 5px;
}
.wtb-page-app .wtb-control select {
  width: 100%;
  background: #fff;
  border: 1px solid #c6d3db;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 17px;
  color: #21333f;
  box-sizing: border-box;
}
/* ── Verdict card ── */
.wtb-verdict {
  background: #fff;
  border: 1px solid #dfe7ec;
  border-top: 5px solid #0a5793;
  border-radius: 14px;
  padding: 20px 22px;
  margin: 0 0 20px;
  box-sizing: border-box;
}
.wtb-verdict-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  flex-wrap: wrap;
  margin: 0 0 10px;
}
.wtb-verdict-head h3 { font-size: 26px; margin: 8px 0 0; }
.wtb-sample-chip {
  display: inline-block;
  background: #fdf6e7;
  color: #8a5f13;
  border: 1px solid #ecd9a8;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  margin-left: 6px;
  vertical-align: middle;
}
.wtb-share { text-align: right; }
.wtb-page-app .wtb-copy-link {
  background: none;
  border: 1px solid #c6d3db;
  border-radius: 999px;
  color: #48606e;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  padding: 6px 13px;
}
.wtb-page-app .wtb-copy-link:hover { border-color: #0a5793; color: #0a5793; }
.wtb-share-status {
  display: block;
  min-height: 16px;
  font-size: 12px;
  color: #176a3a;
  margin-top: 3px;
}
.wtb-tier-badge {
  display: inline-block;
  font-size: 14px;
  font-weight: 700;
  padding: 5px 13px;
  border-radius: 999px;
  letter-spacing: 0.02em;
}
.wtb-tier-limited { background: #e8eef2; color: #3b515f; }
.wtb-tier-value { background: #e2f4e8; color: #176a3a; }
.wtb-tier-typical { background: #e8eef2; color: #3b515f; }
.wtb-tier-premium { background: #fdf0dc; color: #96610f; }
.wtb-tier-peak { background: #fbe3e4; color: #a51e28; }

.wtb-price-line { font-size: 18px; line-height: 1.55; margin: 0 0 6px; }
.wtb-samples { font-size: 14px; color: #5a6b76; margin: 0 0 12px; }
.wtb-src { color: #7d8d97; }
.wtb-demand-line { font-size: 17px; margin: 0 0 14px; }

.wtb-lead {
  background: #f6f9fb;
  border-radius: 12px;
  padding: 14px 16px;
  margin: 0 0 12px;
}
.wtb-lead h4 { font-size: 18px; margin: 0 0 8px; }
.wtb-lead ul { list-style: none; margin: 0 0 8px; padding: 0; }
.wtb-lead li { font-size: 17px; padding: 4px 0; }
.wtb-lead li i { width: 24px; text-align: center; color: #0a5793; }
.wtb-lead-note { font-size: 15px; color: #4c5f6b; margin: 0; }
.wtb-caveat {
  font-size: 15px;
  color: #4c5f6b;
  background: #fdf6e7;
  border-left: 4px solid #e3b23c;
  border-radius: 8px;
  padding: 10px 14px;
  margin: 0;
}
.wtb-nodata { font-size: 17px; color: #5a6b76; }
.wtb-next {
  border-top: 1px solid #e8eef2;
  font-size: 15px;
  color: #4c5f6b;
  margin: 14px 0 0;
  padding-top: 12px;
}
.wtb-next a { font-weight: 700; white-space: nowrap; }
.wtb-next-sep { color: #b7c4cc; margin: 0 8px; }
.wtb-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* ── Chart ── */
.wtb-chart {
  background: #fff;
  border: 1px solid #dfe7ec;
  border-radius: 14px;
  padding: 18px 20px 14px;
  margin: 0 0 20px;
  box-sizing: border-box;
}
.wtb-chart h4 { font-size: 19px; margin: 0 0 14px; }
.wtb-chart-bars {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 190px;
}
.wtb-bar-col {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  height: 100%;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  min-width: 0;
}
.wtb-bar {
  display: block;
  width: 100%;
  max-width: 34px;
  border-radius: 6px 6px 0 0;
  transition: background 0.15s ease;
}
/* Bars are colored by the month's pricing tier so the shape of the year
   reads at a glance; the selected month gets a darker shade + ring. */
.wtb-bar-value { background: #6cbd8f; }
.wtb-bar-typical { background: #c2cfd8; }
.wtb-bar-premium { background: #eec272; }
.wtb-bar-peak { background: #e58089; }
.wtb-bar-none { background: #e4e9ec; }
.wtb-bar-selected .wtb-bar-value { background: #2e8f57; }
.wtb-bar-selected .wtb-bar-typical { background: #7e95a3; }
.wtb-bar-selected .wtb-bar-premium { background: #d3941f; }
.wtb-bar-selected .wtb-bar-peak { background: #c9414d; }
.wtb-bar-selected .wtb-bar {
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px #21333f;
}
.wtb-bar-val {
  font-size: 11px;
  color: #7d8d97;
  margin-bottom: 3px;
  white-space: nowrap;
}
.wtb-bar-selected .wtb-bar-val { color: #21333f; font-weight: 700; }
.wtb-bar-label {
  font-size: 12px;
  color: #5a6b76;
  margin-top: 6px;
}
.wtb-bar-selected .wtb-bar-label { font-weight: 700; color: #21333f; }
.wtb-chart-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 14px;
  margin: 12px 0 0;
}
.wtb-lg {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  color: #5a6b76;
  font-weight: 700;
}
.wtb-lg-dot {
  display: inline-block;
  width: 11px;
  height: 11px;
  border-radius: 3px;
}
.wtb-lg-value { background: #6cbd8f; }
.wtb-lg-typical { background: #c2cfd8; }
.wtb-lg-premium { background: #eec272; }
.wtb-lg-peak { background: #e58089; }
.wtb-chart-note { font-size: 13px; color: #7d8d97; margin-left: auto; }

/* ── Island comparison ── */
.wtb-island-compare {
  background: #fff;
  border: 1px solid #dfe7ec;
  border-radius: 14px;
  padding: 16px 18px;
  margin: 0 0 20px;
  box-sizing: border-box;
}
.wtb-compare-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin: 0 0 10px;
}
.wtb-compare-head h4 { font-size: 19px; margin: 0; }
.wtb-compare-head span { font-size: 13px; color: #6f808b; font-weight: 700; text-transform: uppercase; }
.wtb-compare-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}
.wtb-compare-row {
  background: #f6f9fb;
  border: 1px solid #dfe7ec;
  border-radius: 10px;
  cursor: pointer;
  display: grid;
  gap: 3px;
  padding: 11px 12px;
  text-align: left;
}
.wtb-compare-row:hover,
.wtb-compare-row.is-active {
  border-color: #0a5793;
  box-shadow: 0 0 0 2px rgba(10, 87, 147, 0.12);
}
.wtb-compare-name { font-size: 14px; color: #33454f; font-weight: 700; }
.wtb-compare-price { font-size: 20px; color: #21333f; font-weight: 800; }
.wtb-compare-meta {
  border-radius: 999px;
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  justify-self: start;
  padding: 3px 8px;
}
.wtb-compare-note { font-size: 13px; color: #7d8d97; margin: 10px 0 0; }

/* ── Value months ── */
.wtb-value-months {
  background: #eef7f1;
  border: 1px solid #cfe8d8;
  border-radius: 14px;
  padding: 16px 20px;
  margin: 0 0 20px;
  box-sizing: border-box;
}
.wtb-value-months h4 { font-size: 19px; margin: 0 0 8px; }
.wtb-value-months ol { margin: 0; padding-left: 22px; }
.wtb-value-months li { font-size: 17px; padding: 3px 0; }
.wtb-page-app .wtb-value-months li button {
  background: none;
  border: none;
  color: #21333f;
  cursor: pointer;
  font-size: 17px;
  padding: 2px 4px;
  text-align: left;
  border-radius: 6px;
}
.wtb-page-app .wtb-value-months li button:hover {
  background: #dff0e6;
  color: #0f5232;
}
.wtb-value-months li button strong {
  color: #176a3a;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.wtb-value-months li button i { color: #176a3a; font-size: 14px; }
.wtb-value-note { font-size: 13px; color: #4c7a5d; margin: 8px 0 0; }

/* ── Editorial sections ── */
.wtb-body h2 { font-size: 27px; margin: 26px 0 10px; }
.wtb-body p, .wtb-body li { font-size: 17px; line-height: 1.6; }

@media (max-width: 640px) {
  .wtb-hero-overlay h1 { font-size: 28px; }
  .wtb-bar-val { display: none; }
  .wtb-bar-selected .wtb-bar-val { display: block; }
  .wtb-chart-bars { height: 150px; }
  .wtb-chart-note { margin-left: 0; width: 100%; }
  .wtb-compare-head { display: block; }
  .wtb-compare-head span { display: block; margin-top: 3px; }
  .wtb-compare-list { grid-template-columns: 1fr 1fr; }
  .wtb-verdict-head { display: block; }
  .wtb-share { text-align: left; margin-top: 8px; }
  .wtb-next a { white-space: normal; }
}
