/* Trip tools: /tools/, trip planner, travel budget. Loaded only on those pages. */

.tc-tool { max-width: 1280px; }
.tc-tool__head { max-width: 760px; margin-bottom: 28px; }
.tc-tool__lede { margin: 0; font-size: 18px; line-height: 1.6; color: var(--tc-body); }
.tc-tool__about { max-width: 760px; margin-top: 64px; }
.tc-tools-grid .tc-plan__card { position: relative; }
.tc-tools-grid .tc-plan__card:hover { border-color: var(--tc-line-strong); }

/* Shared bits */
.tc-step { border: 0; margin: 0 0 26px; padding: 0; min-width: 0; }
.tc-step__title { display: flex; align-items: center; gap: 10px; padding: 0; margin: 0 0 14px; font-family: var(--tc-head); font-size: 20px; font-weight: 700; color: var(--tc-ink); }
.tc-step__num { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: var(--tc-ink); color: #fff; font-family: var(--tc-sans); font-size: 14px; font-weight: 700; }
.tc-status { min-height: 1.4em; margin: 10px 0 0; font-size: 14px; font-weight: 600; color: var(--tc-evergreen-dark); }
.tc-status:empty { margin: 0; min-height: 0; }
.tc-honest { margin: 14px 0 22px; padding: 12px 16px; border-radius: 12px; background: #fff7e6; border: 1px solid #f6dca3; color: #5c3d08; font-size: 15px; }
.tc-textbtn { border: 0; background: none; padding: 6px 4px; font: inherit; font-size: 14px; font-weight: 700; color: var(--tc-evergreen); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.tc-textbtn:hover { color: var(--tc-evergreen-dark); }
.tc-textbtn:disabled { color: var(--tc-muted); cursor: not-allowed; text-decoration: none; }
.tc-textbtn:focus-visible, .tc-iconbtn:focus-visible, .tc-chipbtn:focus-visible { outline: none; box-shadow: var(--tc-focus); border-radius: 8px; }
.tc-pbtn--sm { height: 38px; padding: 0 14px; font-size: 14px; }
.tc-field input[type="search"], .tc-field input[type="number"] {
	width: 100%; border: 1px solid var(--tc-line-strong); border-radius: 14px; padding: 12px 14px; font: inherit; font-size: 16px; color: var(--tc-ink); background: #fff;
}
.tc-field input[type="search"]:focus, .tc-field input[type="number"]:focus { outline: none; border-color: var(--tc-evergreen); box-shadow: 0 0 0 3px rgba(17, 89, 175, .15); }

/* Planner layout */
.tc-planner { display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: 32px; align-items: start; }
.tc-planner__controls { background: var(--tc-mist); border: 1px solid var(--tc-line); border-radius: 24px; padding: 26px; position: sticky; top: 20px; }
.tc-planner__result { min-width: 0; }
.tc-planner__empty { border: 2px dashed var(--tc-line-strong); border-radius: 24px; padding: 48px 32px; text-align: center; color: var(--tc-muted); }
.tc-planner__empty .tc-plan__icon { margin: 0 auto 18px; }
.tc-planner__empty .tc-h2 { margin-bottom: 8px; }
.tc-planner__empty p { margin: 0; }

/* Town combobox */
.tc-combo { position: relative; margin: 0; }
.tc-combo__list { position: absolute; z-index: 20; left: 0; right: 0; top: 76px; margin: 0; padding: 6px; list-style: none; background: #fff; border: 1px solid var(--tc-line-strong); border-radius: 14px; box-shadow: 0 12px 30px rgba(13, 27, 46, .14); max-height: 320px; overflow-y: auto; }
.tc-combo__opt { display: flex; justify-content: space-between; gap: 12px; padding: 10px 12px; border-radius: 10px; cursor: pointer; }
.tc-combo__opt:hover, .tc-combo__opt[aria-selected="true"] { background: var(--tc-leaf); }
.tc-combo__name { font-weight: 600; color: var(--tc-ink); }
.tc-combo__count { font-size: 13px; color: var(--tc-muted); white-space: nowrap; }
.tc-combo__none { padding: 10px 12px; color: var(--tc-muted); font-size: 14px; }

/* Segmented radios */
.tc-seg { display: flex; gap: 6px; margin-bottom: 10px; background: #fff; border: 1px solid var(--tc-line); border-radius: 14px; padding: 4px; }
.tc-seg input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.tc-seg label { flex: 1 1 0; display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 42px; padding: 6px 4px; border-radius: 10px; font-size: 14px; font-weight: 600; color: var(--tc-ink); cursor: pointer; text-align: center; line-height: 1.25; }
.tc-seg label span { font-size: 12px; font-weight: 500; color: var(--tc-muted); }
.tc-seg input:checked + label { background: var(--tc-evergreen); color: #fff; }
.tc-seg input:checked + label span { color: #dbe7f7; }
.tc-seg input:focus-visible + label { box-shadow: var(--tc-focus); }

/* Interest chips */
.tc-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.tc-chipbtn { border: 1px solid var(--tc-line-strong); background: #fff; color: var(--tc-ink); border-radius: 999px; padding: 8px 14px; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.tc-chipbtn:hover { border-color: var(--tc-evergreen); }
.tc-chipbtn[aria-pressed="true"] { background: var(--tc-ink); border-color: var(--tc-ink); color: #fff; }
.tc-chipbtn[aria-pressed="true"]::before { content: "\2713\00a0"; }
.tc-step--saved { margin: 0; padding-top: 18px; border-top: 1px solid var(--tc-line); }

/* Plan header */
.tc-planbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; }
.tc-planbar__title { margin: 0; }
.tc-planbar__sub { margin: 4px 0 0; color: var(--tc-muted); font-weight: 600; }
.tc-planbar__actions { display: flex; flex-wrap: wrap; gap: 8px; }

/* Days and stops */
.tc-day { border: 1px solid var(--tc-line); border-radius: 22px; padding: 22px; margin-bottom: 18px; background: #fff; }
.tc-day__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; margin-bottom: 12px; }
.tc-day__title { margin: 0; font-family: var(--tc-head); font-size: 22px; font-weight: 700; color: var(--tc-ink); }
.tc-day__title:focus { outline: none; }
.tc-day__areas { margin: 0; font-size: 14px; font-weight: 600; color: var(--tc-evergreen); }
.tc-day__warn { margin: 0; font-size: 13px; font-weight: 700; color: #8a5a12; background: #fff3d6; padding: 2px 9px; border-radius: 999px; }
.tc-day__empty { margin: 0; color: var(--tc-muted); }
.tc-stops { list-style: none; margin: 0; padding: 0; }
.tc-stop { display: grid; grid-template-columns: 28px 72px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 12px 0; border-top: 1px solid var(--tc-line); }
.tc-stop:first-child { border-top: 0; }
.tc-stop.is-swapping { background: var(--tc-sand); border-radius: 14px; padding-left: 8px; padding-right: 8px; }
.tc-stop__n { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: var(--tc-leaf); color: var(--tc-evergreen-dark); font-weight: 700; font-size: 14px; }
.tc-stop__img { width: 72px; height: 72px; border-radius: 14px; object-fit: cover; display: block; }
.tc-stop__img--tint { display: flex; align-items: center; justify-content: center; color: #fff; font-family: var(--tc-head); font-size: 28px; font-weight: 800; }
.tc-stop__img--none { background: none; }
.tc-stop__body { min-width: 0; }
.tc-stop__name { margin: 0 0 4px; font-size: 17px; font-weight: 700; line-height: 1.3; }
.tc-stop__name a { color: var(--tc-ink); text-decoration: none; }
.tc-stop__name a:hover { color: var(--tc-evergreen); text-decoration: underline; }
.tc-stop__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 0; font-size: 14px; color: var(--tc-muted); }
.tc-freetag { font-size: 12px; font-weight: 700; color: #1a5e2b; background: #e7f6ec; border-radius: 999px; padding: 2px 8px; }
.tc-stop__tools { display: flex; align-items: center; gap: 4px; }
.tc-iconbtn { width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--tc-line-strong); background: #fff; color: var(--tc-ink); font-size: 16px; font-weight: 700; cursor: pointer; line-height: 1; }
.tc-iconbtn:hover:not(:disabled) { background: var(--tc-mist); }
.tc-iconbtn:disabled { opacity: .35; cursor: not-allowed; }

/* More options */
.tc-more-opts { margin-top: 30px; }
.tc-more-opts__title { margin: 0 0 4px; font-family: var(--tc-head); font-size: 22px; font-weight: 700; }
.tc-more-opts__list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 10px; }
.tc-opt { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 12px; border: 1px solid var(--tc-line); border-radius: 16px; background: var(--tc-mist); }
.tc-opt .tc-stop__img { width: 56px; height: 56px; border-radius: 12px; font-size: 22px; }
.tc-opt .tc-stop__name { font-size: 16px; }
.tc-opt__act { display: flex; gap: 6px; align-items: center; }
.tc-opt__day { height: 38px; border: 1px solid var(--tc-line-strong); border-radius: 10px; padding: 0 8px; font: inherit; font-size: 14px; background: #fff; }
.tc-opt--cancel { display: block; background: none; border: 0; padding: 0; }

/* Budget */
.tc-budget { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 400px); gap: 36px; align-items: start; }
.tc-budget__form { min-width: 0; }
.tc-budget__form .tc-step { background: #fff; border: 1px solid var(--tc-line); border-radius: 22px; padding: 22px 22px 8px; }
.tc-budget__form .tc-step__title { float: left; width: 100%; }
.tc-budget__form .tc-step__title + * { clear: both; }
.tc-grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.tc-grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 16px; }
.tc-num__box { display: flex; align-items: center; border: 1px solid var(--tc-line-strong); border-radius: 14px; background: #fff; overflow: hidden; }
.tc-num__box:focus-within { border-color: var(--tc-evergreen); box-shadow: 0 0 0 3px rgba(17, 89, 175, .15); }
.tc-num__box input[type="number"] { border: 0; border-radius: 0; box-shadow: none !important; min-width: 0; }
.tc-num__affix { padding: 0 0 0 14px; color: var(--tc-muted); font-weight: 600; }
.tc-num__box input + .tc-num__affix { padding: 0 14px 0 0; }
.tc-budget__result { position: sticky; top: 20px; }
.tc-budget__card { background: var(--tc-ink); color: #fff; border-radius: 24px; padding: 28px; }
.tc-budget__title { margin: 0; font-size: 14px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--tc-gold); }
.tc-budget__total { margin: 6px 0 2px; font-family: var(--tc-head); font-size: 52px; font-weight: 800; line-height: 1.05; letter-spacing: -0.03em; }
.tc-budget__sub { margin: 0 0 18px; color: var(--tc-on-ink); font-size: 15px; }
.tc-stack { display: flex; height: 16px; border-radius: 999px; overflow: hidden; background: rgba(255, 255, 255, .12); margin-bottom: 16px; }
.tc-stack__seg { display: block; height: 100%; }
.tc-stack__seg + .tc-stack__seg { box-shadow: inset 2px 0 0 var(--tc-ink); }
.tc-stack__dot { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 8px; vertical-align: 0; box-shadow: 0 0 0 1px rgba(255, 255, 255, .5); }
.tc-budget__table { width: 100%; border-collapse: collapse; font-size: 15px; }
.tc-budget__table th { text-align: left; font-weight: 600; padding: 8px 0; color: #fff; }
.tc-budget__table td { text-align: right; padding: 8px 0; font-variant-numeric: tabular-nums; font-weight: 700; }
.tc-budget__table tr { border-top: 1px solid rgba(255, 255, 255, .12); }
.tc-budget__rownote { display: block; margin-left: 18px; font-size: 12px; font-weight: 500; color: var(--tc-on-ink); }
.tc-budget__subrow th, .tc-budget__subrow td { color: var(--tc-on-ink); font-weight: 600; }
.tc-budget__totalrow th, .tc-budget__totalrow td { font-size: 18px; font-weight: 800; color: var(--tc-gold); }
.tc-budget__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.tc-budget__card .tc-pbtn { border-color: rgba(255, 255, 255, .35); background: transparent; color: #fff; }
.tc-budget__card .tc-pbtn:hover { background: rgba(255, 255, 255, .1); }
.tc-budget__card .tc-pbtn--primary { background: var(--tc-gold); border-color: var(--tc-gold); color: var(--tc-ink); }
.tc-budget__card .tc-pbtn--primary:hover { background: #ffc860; color: var(--tc-ink); }
.tc-budget__card .tc-status { color: var(--tc-gold); }
.tc-budget__card :focus-visible { box-shadow: 0 0 0 3px var(--tc-ink), 0 0 0 5px var(--tc-gold) !important; }
.tc-budget__note { margin: 16px 0 0; font-size: 13px; color: var(--tc-on-ink); }

@media (max-width: 1023.98px) {
	.tc-planner, .tc-budget { grid-template-columns: minmax(0, 1fr); }
	.tc-planner__controls, .tc-budget__result { position: static; }
}
@media (max-width: 640px) {
	.tc-tool__lede { font-size: 17px; }
	.tc-planner__controls { padding: 20px; border-radius: 20px; }
	.tc-day { padding: 16px; }
	.tc-stop { grid-template-columns: 56px minmax(0, 1fr); gap: 4px 12px; }
	.tc-stop__n { display: none; }
	.tc-stop__img { width: 56px; height: 56px; grid-row: span 2; }
	.tc-stop__tools { grid-column: 2; }
	.tc-opt { grid-template-columns: 48px minmax(0, 1fr); }
	.tc-opt .tc-stop__img { width: 48px; height: 48px; }
	.tc-opt__act { grid-column: 1 / -1; }
	.tc-planbar__actions .tc-pbtn { flex: 1 1 auto; justify-content: center; height: 44px; padding: 0 14px; }
	.tc-grid3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.tc-budget__total { font-size: 44px; }
	.tc-budget__card { padding: 22px; }
}

/* Print: only the plan or the budget, in plain ink. */
@media print {
	html { zoom: 1 !important; }
	.tc-header, .tc-footer, .tc-breadcrumb, .tc-noprint, .tc-tool__about, .tc-planner__empty, .tc-modal, .tc-skip, #wpadminbar { display: none !important; }
	body { background: #fff; color: #000; font-size: 12pt; }
	.tc-page { padding: 0; }
	.tc-tool__head { margin-bottom: 12px; }
	.tc-tool__head .tc-h1 { font-size: 22pt; margin-bottom: 4px; }
	.tc-tool__lede { display: none; }
	.tc-planner, .tc-budget { display: block; }
	.tc-honest { background: none; border: 1px solid #999; color: #000; }
	.tc-day { break-inside: avoid; border: 1px solid #bbb; border-radius: 8px; padding: 12px; }
	.tc-stop { grid-template-columns: 24px 48px minmax(0, 1fr); }
	.tc-stop__img { width: 48px; height: 48px; }
	.tc-stop__name a { color: #000; }
	.tc-stop__name a::after { content: " (" attr(href) ")"; font-size: 9pt; font-weight: 400; color: #444; word-break: break-all; }
	.tc-scorechip { border: 1px solid #000; background: #fff; }
	.tc-budget__form { display: none; }
	.tc-budget__card { background: #fff; color: #000; border: 1px solid #999; padding: 16px; }
	.tc-budget__card * { color: #000 !important; }
	.tc-budget__table tr { border-top: 1px solid #ccc; }
	.tc-stack { -webkit-print-color-adjust: exact; print-color-adjust: exact; border: 1px solid #999; }
}

/* 5+ days (2026-11-16) */
.tc-seg { position: relative; } /* keeps the hidden radios inside the control, so focusing one never scrolls the page */
.tc-days-more { margin: 0 0 12px; }
.tc-days-more input { width: 110px; }
#tc-days { overflow-anchor: none; }
