/* Hawaii lodging and dining calculators */

.tcc-page {
  max-width: 1160px;
  margin: 0 auto;
}

.tcc-page input[type='number'],
.tcc-page select {
  height: auto;
  margin: 0;
  border: none;
  border-radius: 0;
  background: none;
  background-color: transparent;
  box-shadow: none;
  color: inherit;
  font-family: inherit;
  font-size: inherit;
  line-height: 1.4;
  padding: 0;
  width: auto;
}

.tcc-hero {
  position: relative;
  min-height: 230px;
  margin-bottom: 22px;
  overflow: hidden;
  border-radius: 24px 24px 24px 8px;
  background-size: cover;
  background-position: center;
}

.tcc-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15, 48, 56, 0.78), rgba(15, 48, 56, 0.32));
}

.tcc-hero-back {
  position: absolute;
  top: 28px;
  left: 32px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.42);
  color: #fff !important;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none !important;
}

.tcc-hero-copy {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 62px 42px 38px;
}

.tcc-hero h1 {
  max-width: 760px;
  margin: 0 0 8px;
  color: #fff;
  font-size: 34px;
  line-height: 1.18;
}

.tcc-hero p {
  max-width: 680px;
  margin: 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: 17px;
  line-height: 1.5;
}

.tcc-stamp {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 20px;
  padding: 10px 14px;
  border: 1px solid #dce7ef;
  border-radius: 8px;
  background: #f6fbff;
  color: #31566b;
  font-size: 14px;
}

.tcc-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 24px;
  align-items: start;
}

.tcc-panel,
.tcc-results,
.tcc-note {
  border: 1px solid #e2e6e9;
  border-radius: 8px;
  background: #fff;
}

.tcc-panel {
  padding: 20px 22px;
  margin-bottom: 18px;
}

.tcc-panel-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 15px;
  color: #1f2f36;
  font-size: 18px;
  font-weight: 800;
}

.tcc-panel-title i {
  color: #1D9771;
}

.tcc-label {
  display: block;
  margin: 0 0 8px;
  color: #43525a;
  font-size: 14px;
  font-weight: 700;
}

.tcc-island-tabs,
.tcc-month-grid,
.tcc-card-grid,
.tcc-comparison-grid {
  display: grid;
  gap: 8px;
}

.tcc-island-tabs {
  grid-template-columns: repeat(4, 1fr);
  margin-bottom: 18px;
}

.tcc-month-grid {
  grid-template-columns: repeat(6, 1fr);
}

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

.tcc-btn,
.tcc-card {
  border: 2px solid #e2e6e9;
  border-radius: 8px;
  background: #fff;
  color: #3f4f56;
  cursor: pointer;
  text-align: left;
}

.tcc-btn {
  padding: 10px 8px;
  text-align: center;
  font-size: 13px;
  font-weight: 800;
}

.tcc-btn i {
  display: block;
  margin-bottom: 3px;
  font-size: 20px;
}

.tcc-month {
  padding: 8px 4px;
  text-align: center;
  font-size: 12px;
  line-height: 1.25;
}

.tcc-month span {
  display: block;
  margin-top: 2px;
  color: #7a8790;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}

.tcc-btn:hover,
.tcc-card:hover {
  border-color: #aebbc3;
}

.tcc-btn.is-active,
.tcc-card.is-active {
  border-color: #1866B4;
  box-shadow: 0 0 0 3px rgba(24, 102, 180, 0.12);
}

.tcc-island-tabs .tcc-btn.is-active {
  color: #fff;
  box-shadow: none;
}

.tcc-btn[data-island="oahu"].is-active { background: #F27A24; border-color: #F27A24; }
.tcc-btn[data-island="maui"].is-active { background: #1866B4; border-color: #1866B4; }
.tcc-btn[data-island="big-island"].is-active { background: #c3232f; border-color: #c3232f; }
.tcc-btn[data-island="kauai"].is-active { background: #1D9771; border-color: #1D9771; }

.tcc-card {
  padding: 14px;
}

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

.tcc-card-name {
  color: #1f2f36;
  font-size: 15px;
  font-weight: 800;
}

.tcc-card-rate {
  color: #1866B4;
  font-size: 16px;
  font-weight: 800;
  white-space: nowrap;
}

.tcc-card-desc {
  margin: 0;
  color: #65747c;
  font-size: 13px;
  line-height: 1.45;
}

.tcc-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 140px;
  gap: 14px;
  align-items: center;
  margin-bottom: 14px;
}

.tcc-row:last-child {
  margin-bottom: 0;
}

.tcc-row-select {
  grid-template-columns: 150px minmax(260px, 1fr);
  align-items: start;
  gap: 16px;
}

.tcc-row-select .tcc-label {
  margin-top: 11px;
}

.tcc-page input[type='number'].tcc-num,
.tcc-page select.tcc-select {
  display: block;
  box-sizing: border-box;
  width: 100%;
  min-height: 40px;
  border: 1px solid #ccd5db;
  border-radius: 8px;
  background: #fff;
  color: #1f2f36;
  font-size: 16px;
  font-weight: 700;
}

.tcc-page input[type='number'].tcc-num {
  padding: 7px 10px;
  text-align: center;
}

.tcc-page select.tcc-select {
  min-height: 46px;
  max-width: 100%;
  overflow: hidden;
  padding: 9px 42px 9px 13px;
  border-color: #c8d4dc;
  background-color: #f8fbfd;
  background-image: linear-gradient(45deg, transparent 50%, #31566b 50%), linear-gradient(135deg, #31566b 50%, transparent 50%);
  background-position: calc(100% - 18px) 19px, calc(100% - 12px) 19px;
  background-repeat: no-repeat;
  background-size: 6px 6px, 6px 6px;
  color: #1f2f36;
  font-size: 16px;
  font-weight: 800;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
  appearance: none;
  -webkit-appearance: none;
}

.tcc-page select.tcc-select:focus {
  border-color: #1866B4;
  box-shadow: 0 0 0 3px rgba(24, 102, 180, 0.14);
  outline: none;
}

.tcc-switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 0;
  border-top: 1px solid #edf0f2;
}

.tcc-switch-row:first-child {
  border-top: 0;
  padding-top: 0;
}

.tcc-switch-copy strong {
  display: block;
  color: #1f2f36;
  font-size: 14px;
}

.tcc-switch-copy span {
  display: block;
  margin-top: 2px;
  color: #687984;
  font-size: 13px;
}

.tcc-switch {
  position: relative;
  flex: 0 0 52px;
  width: 52px;
  height: 30px;
}

.tcc-switch input {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.tcc-track {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: #c9d1d6;
  cursor: pointer;
}

.tcc-track::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.28);
  transition: transform 0.18s ease;
}

.tcc-switch input:checked + .tcc-track {
  background: #1D9771;
}

.tcc-switch input:checked + .tcc-track::after {
  transform: translateX(22px);
}

.tcc-results {
  position: sticky;
  top: 92px;
  padding: 22px;
}

.tcc-results-kicker {
  color: #6d7b83;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tcc-total {
  margin: 4px 0 2px;
  color: #1f2f36;
  font-size: 42px;
  font-weight: 900;
  line-height: 1.05;
}

.tcc-subtotal {
  margin: 0 0 18px;
  color: #65747c;
  font-size: 14px;
  line-height: 1.45;
}

.tcc-lines {
  margin: 0 0 18px;
  border-top: 1px solid #edf0f2;
}

.tcc-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #edf0f2;
  color: #43525a;
  font-size: 14px;
}

.tcc-line strong {
  color: #1f2f36;
}

.tcc-cta {
  display: block;
  padding: 13px 16px;
  border-radius: 8px;
  background: #1866B4;
  color: #fff !important;
  font-size: 15px;
  font-weight: 800;
  text-align: center;
  text-decoration: none !important;
}

.tcc-note {
  margin-top: 18px;
  padding: 14px 16px;
  color: #556871;
  font-size: 13px;
  line-height: 1.5;
}

.tcc-comparison-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 14px;
}

.tcc-compare-card {
  border: 1px solid #e2e6e9;
  border-radius: 8px;
  padding: 12px;
  background: #fbfcfd;
}

.tcc-compare-card.is-current {
  border-color: #1D9771;
  background: #f5fff9;
}

.tcc-compare-name {
  color: #45555d;
  font-size: 13px;
  font-weight: 800;
}

.tcc-compare-total {
  margin-top: 4px;
  color: #1f2f36;
  font-size: 22px;
  font-weight: 900;
}

.tcc-compare-daily {
  color: #70808a;
  font-size: 12px;
}

@media (max-width: 900px) {
  .tcc-layout {
    grid-template-columns: 1fr;
  }

  .tcc-results {
    position: static;
  }
}

@media (max-width: 620px) {
  .tcc-hero {
    min-height: 270px;
    border-radius: 12px;
  }

  .tcc-hero-copy {
    padding: 70px 24px 28px;
  }

  .tcc-hero h1 {
    font-size: 28px;
  }

  .tcc-island-tabs,
  .tcc-card-grid,
  .tcc-comparison-grid {
    grid-template-columns: 1fr;
  }

  .tcc-month-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .tcc-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .tcc-row-select .tcc-label {
    margin-top: 0;
  }
}
