/* Trip cost estimator — violet / slate money theme */
.tc-hero {
  background: linear-gradient(135deg, #4c1d95 0%, #5b21b6 35%, #312e81 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.tc-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 90% 60% at 80% -10%, rgba(167, 139, 250, 0.45), transparent 55%),
    radial-gradient(ellipse 70% 50% at 0% 100%, rgba(56, 189, 248, 0.2), transparent 50%);
  pointer-events: none;
}
.tc-hero-inner {
  position: relative;
  max-width: 72rem;
  margin: 0 auto;
  padding: 2.75rem 1rem 3rem;
}
@media (min-width: 640px) {
  .tc-hero-inner {
    padding: 3.5rem 1rem 3.75rem;
  }
}
.tc-hero-kicker {
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(196, 181, 253, 0.95);
  margin-bottom: 0.5rem;
}
.tc-hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -0.02em;
  max-width: 22ch;
}
.tc-hero-lead {
  margin-top: 1rem;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.88);
  max-width: 40rem;
}
.tc-hero-anchors {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.tp-hero-actions .tc-hero-anchors {
  margin-top: 0;
}
.tc-hero-actions-row {
  margin-top: 1.5rem;
}
.tc-hero-anchors a {
  display: inline-flex;
  align-items: center;
  padding: 0.625rem 1.125rem;
  border-radius: 0.75rem;
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s;
}
.tc-hero-anchors a:first-child {
  background: #fff;
  color: #4c1d95;
}
.tc-hero-anchors a:first-child:hover {
  background: #ede9fe;
}
.tc-hero-anchors a:last-child {
  border: 2px solid rgba(255, 255, 255, 0.35);
  color: #fff;
}
.tc-hero-anchors a:last-child:hover {
  background: rgba(255, 255, 255, 0.1);
}

#travel-cost-app {
  scroll-margin-top: 5rem;
}

.tc-layout {
  display: grid;
  gap: 1.75rem;
  align-items: start;
}
@media (min-width: 1024px) {
  .tc-layout {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
    gap: 2rem;
  }
}

.tc-sticky-panel {
  border-radius: 1.25rem;
  border: 1px solid #e7e5e4;
  background: linear-gradient(180deg, #fafaf9 0%, #f5f5f4 100%);
  padding: 1.25rem 1.35rem;
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
}
@media (min-width: 1024px) {
  .tc-sticky-panel {
    position: sticky;
    top: 5.5rem;
  }
}

.tc-total-grid {
  margin-bottom: 1rem;
}
.tc-total-label {
  font-size: 0.6875rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #78716c;
  margin: 0 0 0.25rem;
}
.tc-total-num {
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 900;
  color: #4c1d95;
  letter-spacing: -0.03em;
  margin: 0;
  line-height: 1;
}
.tc-total-range {
  margin: 0.5rem 0 0;
  font-size: 0.8125rem;
  color: #57534e;
  font-weight: 500;
}

.tc-bar-wrap {
  margin-top: 1rem;
}
.tc-bar-label {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #78716c;
  margin-bottom: 0.5rem;
}
.tc-breakdown-bar {
  display: flex;
  height: 14px;
  border-radius: 999px;
  overflow: hidden;
  background: #e7e5e4;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.06);
}
.tc-seg {
  min-width: 4px;
  transition: width 0.35s ease;
}
.tc-seg-empty {
  width: 100% !important;
  background: #d6d3d1;
  font-size: 0.65rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #78716c;
  padding: 0 0.5rem;
  height: auto;
  min-height: 14px;
}
.tc-seg-before {
  background: linear-gradient(90deg, #a78bfa, #8b5cf6);
}
.tc-seg-lodging {
  background: linear-gradient(90deg, #818cf8, #6366f1);
}
.tc-seg-food {
  background: linear-gradient(90deg, #34d399, #10b981);
}
.tc-seg-transport {
  background: linear-gradient(90deg, #38bdf8, #0ea5e9);
}
.tc-seg-act {
  background: linear-gradient(90deg, #f472b6, #db2777);
}

.tc-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin-top: 0.85rem;
  font-size: 0.75rem;
  color: #44403c;
}
.tc-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.tc-legend-swatch {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  flex-shrink: 0;
}
.tc-legend-swatch.tc-seg-before {
  background: #8b5cf6;
}
.tc-legend-swatch.tc-seg-lodging {
  background: #6366f1;
}
.tc-legend-swatch.tc-seg-food {
  background: #10b981;
}
.tc-legend-swatch.tc-seg-transport {
  background: #0ea5e9;
}
.tc-legend-swatch.tc-seg-act {
  background: #db2777;
}

.tc-card {
  background: #fff;
  border: 1px solid #e7e5e4;
  border-radius: 1rem;
  padding: 1.15rem 1.25rem;
  margin-bottom: 1rem;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}
.tc-card-title {
  font-size: 0.9375rem;
  font-weight: 800;
  color: #1c1917;
  margin: 0 0 0.75rem;
}
.tc-card-blurb {
  margin: 0.75rem 0 0;
  font-size: 0.8125rem;
  line-height: 1.55;
  color: #57534e;
}
.tc-label {
  display: block;
  font-size: 0.6875rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #78716c;
  margin-bottom: 0.5rem;
}
.tc-select,
.tc-input {
  width: 100%;
  border-radius: 0.75rem;
  border: 1px solid #d6d3d1;
  padding: 0.65rem 0.85rem;
  font-size: 0.9375rem;
  font-weight: 500;
  background: #fff;
  color: #1c1917;
}
.tc-select:focus,
.tc-input:focus {
  outline: 2px solid #8b5cf6;
  outline-offset: 1px;
  border-color: #a78bfa;
}

.tc-radio {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 0.5rem 0;
  cursor: pointer;
  border-bottom: 1px solid #f5f5f4;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: #292524;
}
.tc-radio:last-child {
  border-bottom: 0;
}
.tc-radio input {
  margin-top: 0.2rem;
  accent-color: #7c3aed;
}
.tc-radio-text {
  flex: 1;
}

.tc-seg-toggle {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.tc-toggle {
  border: 1px solid #d6d3d1;
  background: #fafaf9;
  color: #44403c;
  padding: 0.45rem 0.75rem;
  border-radius: 0.65rem;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.tc-toggle:hover {
  border-color: #a78bfa;
  background: #f5f3ff;
}
.tc-toggle.is-on {
  background: linear-gradient(135deg, #6d28d9, #5b21b6);
  border-color: transparent;
  color: #fff;
}

.tc-section {
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e7e5e4;
}
.tc-section-title {
  font-size: 1.0625rem;
  font-weight: 800;
  color: #1c1917;
  margin: 0 0 0.35rem;
}
.tc-section-hint {
  font-size: 0.75rem;
  color: #78716c;
  margin: 0 0 1rem;
}

.tc-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.75rem 1rem;
  align-items: start;
  padding: 1rem 0;
  border-bottom: 1px solid #f5f5f4;
}
@media (max-width: 640px) {
  .tc-line {
    grid-template-columns: 1fr;
  }
}
.tc-line:last-child {
  border-bottom: 0;
}
.tc-line-main {
  min-width: 0;
}
.tc-line-title {
  font-weight: 700;
  font-size: 0.875rem;
  color: #292524;
  line-height: 1.35;
}
.tc-line-hint {
  font-size: 0.75rem;
  color: #78716c;
  margin-top: 0.25rem;
  line-height: 1.45;
}
.tc-line-suggested-label {
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #a8a29e;
  margin-top: 0.65rem;
}
.tc-line-suggested {
  font-size: 0.75rem;
  font-weight: 600;
  color: #6d28d9;
  margin-top: 0.2rem;
  font-variant-numeric: tabular-nums;
}

.tc-line-edit {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.65rem;
  margin-top: 0.65rem;
}
.tc-line-edit--slider {
  flex-direction: column;
  align-items: stretch;
  gap: 0.55rem;
}
.tc-line-edit-label {
  font-size: 0.6875rem;
  font-weight: 700;
  color: #57534e;
  flex: 1 1 100%;
}
@media (min-width: 480px) {
  .tc-line-edit-label {
    flex: 0 0 auto;
    margin-right: 0.25rem;
  }
}
.tc-unit-slider-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem 0.75rem;
}
.tc-unit-slider-label {
  flex: 1 1 auto;
  margin-right: 0;
  font-size: 0.75rem;
  font-weight: 800;
  color: #44403c;
}
.tc-unit-slider-wrap {
  width: 100%;
  padding: 0.35rem 0 0.15rem;
}
.tc-unit-range {
  --tc-fill: 0%;
  display: block;
  width: 100%;
  height: 1.5rem;
  margin: 0;
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  cursor: pointer;
}
.tc-unit-range:focus {
  outline: none;
}
.tc-unit-range:focus-visible::-webkit-slider-thumb {
  box-shadow: 0 2px 14px rgba(109, 40, 217, 0.55), 0 0 0 4px rgba(167, 139, 250, 0.45);
}
.tc-unit-range:focus-visible::-moz-range-thumb {
  box-shadow: 0 2px 14px rgba(109, 40, 217, 0.55), 0 0 0 4px rgba(167, 139, 250, 0.45);
}
/* WebKit track + fill */
.tc-unit-range::-webkit-slider-runnable-track {
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(
    to right,
    #7c3aed 0%,
    #a78bfa var(--tc-fill),
    #e7e5e4 var(--tc-fill),
    #e7e5e4 100%
  );
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.06);
}
.tc-unit-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  margin-top: -6px;
  border-radius: 50%;
  background: linear-gradient(145deg, #ffffff 0%, #ede9fe 55%, #ddd6fe 100%);
  border: 2px solid #6d28d9;
  box-shadow: 0 2px 12px rgba(109, 40, 217, 0.4), 0 0 0 3px rgba(167, 139, 250, 0.25);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.tc-unit-range:hover::-webkit-slider-thumb {
  transform: scale(1.06);
  box-shadow: 0 3px 16px rgba(109, 40, 217, 0.5), 0 0 0 4px rgba(196, 181, 253, 0.35);
}
.tc-unit-range:active::-webkit-slider-thumb {
  transform: scale(1.02);
  cursor: grabbing;
}
/* Firefox */
.tc-unit-range::-moz-range-track {
  height: 10px;
  border-radius: 999px;
  background: #e7e5e4;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.06);
}
.tc-unit-range::-moz-range-progress {
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, #6d28d9, #a78bfa);
}
.tc-unit-range::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid #6d28d9;
  background: linear-gradient(145deg, #ffffff, #ede9fe);
  box-shadow: 0 2px 12px rgba(109, 40, 217, 0.4), 0 0 0 3px rgba(167, 139, 250, 0.25);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.tc-unit-range:hover::-moz-range-thumb {
  transform: scale(1.06);
}
.tc-unit-slider-foot {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: 0.4rem;
  font-size: 0.6875rem;
  font-variant-numeric: tabular-nums;
}
.tc-unit-extent-lo,
.tc-unit-extent-hi {
  font-weight: 600;
  color: #a8a29e;
}
.tc-unit-slider-current {
  font-size: 0.8125rem;
  font-weight: 900;
  color: #5b21b6;
  letter-spacing: -0.02em;
}
.tc-unit-reset {
  font-size: 0.6875rem;
  font-weight: 700;
  color: #6d28d9;
  background: transparent;
  border: 0;
  padding: 0.25rem 0.35rem;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.tc-unit-reset:hover {
  color: #4c1d95;
}

.tc-line-subtotal-wrap {
  margin-top: 0.55rem;
  font-size: 0.75rem;
  line-height: 1.45;
  color: #78716c;
}
.tc-line-subtotal-label {
  font-weight: 600;
  color: #57534e;
}
.tc-line-subtotal {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: #a8a29e;
}
.tc-line-subtotal.tc-line-subtotal-active {
  color: #5b21b6;
}

.tc-qty-col {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.25rem;
  padding-top: 0.15rem;
}
.tc-qty-col-label {
  font-size: 0.625rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #a8a29e;
}

.tc-qty {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
}
.tc-qty-btn {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.65rem;
  border: 1px solid #d6d3d1;
  background: #fff;
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1;
  color: #44403c;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.tc-qty-btn:hover {
  background: #f5f3ff;
  border-color: #a78bfa;
  color: #5b21b6;
}
.tc-qty-val {
  min-width: 1.75rem;
  text-align: center;
  font-weight: 800;
  font-size: 0.9375rem;
  font-variant-numeric: tabular-nums;
  color: #1c1917;
}

.tc-reset {
  margin-top: 1.5rem;
  width: 100%;
  padding: 0.65rem 1rem;
  border-radius: 0.75rem;
  border: 1px dashed #a8a29e;
  background: transparent;
  color: #57534e;
  font-size: 0.8125rem;
  font-weight: 700;
  cursor: pointer;
}
.tc-reset:hover {
  border-color: #7c3aed;
  color: #5b21b6;
  background: #faf5ff;
}

.tc-examples {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid #e7e5e4;
}
.tc-seo-h2 {
  font-size: 1.25rem;
  font-weight: 800;
  color: #1c1917;
  margin: 0 0 0.5rem;
}
.tc-seo-lead {
  font-size: 0.875rem;
  color: #57534e;
  line-height: 1.6;
  margin: 0 0 1.25rem;
  max-width: 48rem;
}
.tc-example-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}
.tc-example-card {
  border: 1px solid #e7e5e4;
  border-radius: 1rem;
  padding: 1.1rem 1.2rem;
  background: #fff;
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.04);
}
.tc-example-title {
  font-size: 0.9375rem;
  font-weight: 800;
  color: #292524;
  margin: 0 0 0.5rem;
  line-height: 1.35;
}
.tc-example-sum {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #6d28d9;
  margin: 0 0 0.85rem;
  font-variant-numeric: tabular-nums;
}
.tc-example-btn {
  width: 100%;
  padding: 0.55rem 0.85rem;
  border-radius: 0.65rem;
  border: 0;
  background: linear-gradient(135deg, #6d28d9, #5b21b6);
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 700;
  cursor: pointer;
}
.tc-example-btn:hover {
  filter: brightness(1.06);
}

.tc-error {
  color: #b91c1c;
  padding: 2rem;
  text-align: center;
  font-weight: 600;
}

.tc-article {
  max-width: 48rem;
  margin: 3rem auto 0;
  padding: 0 0 3rem;
  font-size: 0.9375rem;
  line-height: 1.7;
  color: #44403c;
}
.tc-article h2 {
  font-size: 1.35rem;
  font-weight: 800;
  color: #1c1917;
  margin: 2rem 0 0.75rem;
}
.tc-article h2:first-child {
  margin-top: 0;
}
.tc-article h3 {
  font-size: 1.05rem;
  font-weight: 800;
  color: #292524;
  margin: 1.5rem 0 0.5rem;
}
.tc-article p {
  margin: 0 0 0.85rem;
}
.tc-article a {
  color: #6d28d9;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.tc-article a:hover {
  color: #5b21b6;
}

.tc-disclaimer {
  border-radius: 0.75rem;
  border: 1px solid #e7e5e4;
  border-left: 4px solid #8b5cf6;
  background: #fafaf9;
  padding: 0.9rem 1rem 0.95rem 1.1rem;
  margin-bottom: 2rem;
  max-width: 52rem;
}
.tc-disclaimer-title {
  margin: 0 0 0.35rem;
  font-size: 0.8125rem;
  font-weight: 800;
  color: #44403c;
  letter-spacing: 0.02em;
}
.tc-disclaimer-text {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.55;
  color: #57534e;
}
