/* ==========================================================================
   Treatment cost and savings calculator (tool id "cost")
   Sits inside <section class="panel dark tool-panel" id="tool">, on the same navy
   as the online eye test (.etest). Every new class starts with tl-cost-; colours
   come from the theme variables (--navy, --blue, --soft, --pale, --tint), so
   both site themes work. White is used for the result card and inputs.
   ========================================================================== */

.tl-cost {
  --tlc-line: rgba(255, 255, 255, 0.16);
  --tlc-card: rgba(255, 255, 255, 0.05);
  --tlc-muted: rgba(255, 255, 255, 0.8);
  --tlc-gap: clamp(14px, 1.2vw, 26px);
  --tlc-rad: calc(var(--r) * 0.7);
  display: flex;
  flex-direction: column;
  color: #fff;
  font-size: clamp(16px, 1.05vw, 20px);
  line-height: 1.5;
}
.tl-cost *, .tl-cost *::before, .tl-cost *::after { box-sizing: border-box; }
.tl-cost [hidden] { display: none !important; }
.tl-cost p, .tl-cost dl, .tl-cost dd { margin: 0; }
.tl-cost h3, .tl-cost h4 { margin: 0; font-weight: 500; }
.tl-cost :focus-visible { outline: 3px solid var(--soft); outline-offset: 3px; }
.tl-cost .ph { background: rgba(255, 255, 255, 0.2); color: #fff; overflow-wrap: anywhere; }
.tl-cost-ico { flex: none; }

/* --- Top bar: what the tool does and the currency --- */
.tl-cost-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 28px; margin-bottom: clamp(20px, 1.8vw, 36px); padding-bottom: clamp(20px, 1.8vw, 36px); border-bottom: 1px solid var(--tlc-line); }
.tl-cost-bartxt { display: flex; align-items: flex-start; gap: 12px; max-width: 46em; color: var(--tlc-muted); }
.tl-cost-bartxt .tl-cost-ico { margin-top: 0.2em; color: var(--soft); }
.tl-cost-curs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.tl-cost-curl { margin-right: 6px; color: var(--tlc-muted); }
.tl-cost .fchip { height: 46px; padding: 0 18px; gap: 6px; border-color: rgba(255, 255, 255, 0.45); background: transparent; color: #fff; font-size: clamp(16px, 0.95vw, 18px); cursor: pointer; }
.tl-cost .fchip:hover { border-color: #fff; color: #fff; }
.tl-cost .fchip[aria-pressed="true"] { border-color: #fff; background: #fff; color: var(--navy); }
.tl-cost-curfix { display: inline-flex; align-items: center; gap: 12px; padding: 7px 18px 7px 7px; border: 1px solid var(--tlc-line); border-radius: 999px; color: #fff; }
.tl-cost-curbadge { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--soft); color: var(--navy); font-weight: 500; }

/* --- Steps --- */
.tl-cost-steps { display: grid; gap: var(--tlc-gap); }
.tl-cost-step { min-width: 0; padding: clamp(20px, 2.2vw, 46px); border: 1px solid var(--tlc-line); border-radius: var(--r); background: var(--tlc-card); }
.tl-cost-head { display: flex; align-items: flex-start; gap: 16px; margin-bottom: clamp(18px, 1.6vw, 30px); }
.tl-cost-num { flex: none; display: grid; place-items: center; width: clamp(40px, 2.7vw, 54px); height: clamp(40px, 2.7vw, 54px); border-radius: 50%; background: var(--soft); color: var(--navy); font-size: clamp(17px, 1.1vw, 22px); font-weight: 500; }
.tl-cost-headtxt { min-width: 0; padding-top: 2px; }
.tl-cost-head h3 { color: #fff; font-size: clamp(22px, 1.65vw, 34px); line-height: 1.2; }
.tl-cost-hint { color: var(--tlc-muted); font-size: clamp(16px, 0.95vw, 18px); line-height: 1.45; }
.tl-cost-head .tl-cost-hint { margin-top: 6px; }
.tl-cost-step.is-row { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: var(--tlc-gap) 4vw; align-items: center; }
.tl-cost-step.is-row .tl-cost-head { margin-bottom: 0; }

/* --- Form building blocks --- */
.tl-cost-fs { min-width: 0; margin: 0; padding: 0; border: 0; }
.tl-cost-lbl { display: block; padding: 0; color: #fff; font-size: clamp(16px, 1.02vw, 20px); font-weight: 500; line-height: 1.35; }
.tl-cost-fs > legend.tl-cost-lbl { margin-bottom: 10px; }
.tl-cost-fs > legend.tl-cost-lbl + .tl-cost-hint { margin: -4px 0 10px; }
.tl-cost-fld { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
fieldset.tl-cost-fld { display: block; }
.tl-cost-fld > .tl-cost-money { margin-top: auto; }
.tl-cost-err { color: #fecaca; font-size: 16px; }
.tl-cost-radio { position: absolute; width: 1px; height: 1px; margin: 0; opacity: 0; pointer-events: none; }

/* option boxes (treatments, eyes, quote / typical, hotel, transfers, typical prices) */
.tl-cost-opt { position: relative; display: block; min-width: 0; cursor: pointer; }
.tl-cost-box { position: relative; display: flex; flex-direction: column; justify-content: center; gap: 3px; height: 100%; min-height: 66px; padding: 14px 52px 14px 18px; border: 1px solid rgba(255, 255, 255, 0.32); border-radius: var(--tlc-rad); background: rgba(255, 255, 255, 0.04); color: #fff; transition: background-color 0.3s var(--ease), border-color 0.3s, color 0.3s; }
.tl-cost-box::after { content: ""; position: absolute; top: 50%; right: 16px; width: 22px; height: 22px; margin-top: -11px; border: 1.5px solid rgba(255, 255, 255, 0.6); border-radius: 50%; }
.tl-cost-box b { font-size: clamp(16px, 1.02vw, 20px); font-weight: 500; line-height: 1.3; }
.tl-cost-box small { color: rgba(255, 255, 255, 0.78); font-size: clamp(16px, 0.9vw, 17px); line-height: 1.35; }
.tl-cost-opt:hover .tl-cost-box { border-color: #fff; background: rgba(255, 255, 255, 0.09); }
.tl-cost-radio:checked + .tl-cost-box { border-color: #fff; background: #fff; color: var(--navy); }
.tl-cost-radio:checked + .tl-cost-box small { color: var(--gray-700); }
.tl-cost-radio:checked + .tl-cost-box::after { border-color: var(--blue); background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' d='m6 12.5 4 4 8-9'/%3E%3C/svg%3E") center / 14px no-repeat; }
.tl-cost-radio:checked + .tl-cost-box .ph { background: rgb(var(--blue-rgb) / 0.12); color: var(--blue-dk); }
.tl-cost-radio:focus-visible + .tl-cost-box { outline: 3px solid var(--soft); outline-offset: 3px; }
.tl-cost-opt.is-off { cursor: not-allowed; }
.tl-cost-opt.is-off .tl-cost-box { border-style: dashed; opacity: 0.5; }
.tl-cost-opt.is-off:hover .tl-cost-box { border-color: rgba(255, 255, 255, 0.32); background: rgba(255, 255, 255, 0.04); }

.tl-cost-seg { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.tl-cost-seg-sm .tl-cost-box { min-height: 60px; }

/* pill-shaped radio chips (country, travellers) */
.tl-cost-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.tl-cost-chip { position: relative; display: inline-flex; cursor: pointer; }
.tl-cost-chip > span { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 20px; border: 1px solid rgba(255, 255, 255, 0.45); border-radius: 999px; color: #fff; font-weight: 500; transition: background-color 0.3s var(--ease), border-color 0.3s, color 0.3s; }
.tl-cost-chip:hover > span { border-color: #fff; }
.tl-cost-chip .tl-cost-radio:checked + span { border-color: #fff; background: #fff; color: var(--navy); }
.tl-cost-chip .tl-cost-radio:focus-visible + span { outline: 3px solid var(--soft); outline-offset: 3px; }
.tl-cost-chip-n > span { width: 56px; padding: 0; font-size: clamp(17px, 1.1vw, 21px); }

/* money and number inputs: white field on navy, currency in front */
.tl-cost-money { display: flex; align-items: stretch; min-width: 0; height: clamp(54px, 3.4vw, 66px); overflow: hidden; border: 2px solid transparent; border-radius: calc(var(--r) * 0.6); background: #fff; color: var(--navy); transition: border-color 0.2s, box-shadow 0.2s; }
.tl-cost-money:focus-within { border-color: var(--soft); box-shadow: 0 0 0 4px rgb(var(--soft-rgb) / 0.35); }
.tl-cost-money.is-invalid { border-color: #fca5a5; }
.tl-cost-sym { flex: none; display: grid; place-items: center; min-width: 54px; padding: 0 12px; border-right: 1px solid rgb(var(--navy-rgb) / 0.12); background: var(--tint); color: var(--navy); font-weight: 500; }
.tl-cost-in { flex: 1 1 auto; width: 100%; min-width: 0; padding: 0 16px; border: 0; background: transparent; color: var(--navy); font-size: clamp(17px, 1.12vw, 22px); font-variant-numeric: tabular-nums; }
.tl-cost-in:focus, .tl-cost-in:focus-visible { outline: none; }
.tl-cost-in::placeholder { color: var(--gray-500); }
.tl-cost-suf { flex: none; display: grid; place-items: center; padding: 0 16px; color: var(--gray-500); }
.tl-cost-cursel { flex: none; padding: 0 34px 0 14px; border: 0; border-right: 1px solid rgb(var(--navy-rgb) / 0.12); border-radius: 0; background-color: var(--tint); background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%); background-position: right 17px center, right 12px center; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; color: var(--navy); font-size: clamp(16px, 1vw, 19px); font-weight: 500; -webkit-appearance: none; appearance: none; cursor: pointer; }
.tl-cost-cursel:focus-visible { outline: 3px solid var(--blue); outline-offset: -3px; }

/* notes and messages */
.tl-cost-info, .tl-cost-note { display: flex; align-items: flex-start; gap: 12px; padding: 14px 18px; border-radius: var(--tlc-rad); background: rgba(255, 255, 255, 0.08); color: rgba(255, 255, 255, 0.9); }
.tl-cost-info .tl-cost-ico, .tl-cost-note .tl-cost-ico { margin-top: 0.15em; color: var(--soft); }
.tl-cost-notes { display: flex; flex-wrap: wrap; gap: 10px; }
.tl-cost-notes:empty { display: none; }
.tl-cost-note { flex: 1 1 340px; min-width: 0; }
.tl-cost-note.is-warn { border: 1px solid rgba(253, 211, 77, 0.45); background: rgba(253, 211, 77, 0.1); }
.tl-cost-note.is-warn .tl-cost-ico { color: #fcd34d; }

/* --- Step 1: treatment --- */
.tl-cost-treats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.tl-cost[lang="tr"] .tl-cost-treats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.tl-cost[lang="tr"] .tl-cost-treat.is-lead { grid-column: span 2; }
.tl-cost-treat .tl-cost-box { min-height: 92px; }
.tl-cost-doc { display: flex; align-items: center; gap: 16px; margin-top: var(--tlc-gap); padding: 14px 20px; border-radius: var(--tlc-rad); background: rgba(255, 255, 255, 0.08); }
.tl-cost-avs { display: flex; flex: none; }
.tl-cost-avs li { display: grid; place-items: center; width: 48px; height: 48px; margin-left: -12px; border: 2px solid var(--navy); border-radius: 50%; background: var(--pale); color: var(--navy); font-size: 15px; font-weight: 500; letter-spacing: 0.02em; }
.tl-cost-avs li:first-child { margin-left: 0; }
.tl-cost-doctxt { display: flex; flex-wrap: wrap; gap: 4px 32px; min-width: 0; }
.tl-cost-doctxt strong { font-weight: 500; }
.tl-cost-k { color: var(--tlc-muted); }
.tl-cost-k::after { content: ":"; }
.tl-cost-doctxt b { font-weight: 500; }
.tl-cost-unit { color: var(--tlc-muted); }

/* --- Step 2: eyes --- */
.tl-cost-eyes .tl-cost-info { min-height: 66px; align-items: center; }

/* --- Step 3: home price / current option --- */
.tl-cost-row { display: flex; flex-wrap: wrap; align-items: stretch; gap: var(--tlc-gap); }
.tl-cost-row + .tl-cost-row, .tl-cost-f-mode + .tl-cost-row { margin-top: calc(var(--tlc-gap) * 1.2); }
.tl-cost-row-top > .tl-cost-f-country { flex: 1.25 1 440px; }
.tl-cost-row-top > .tl-cost-f-mode { flex: 1 1 400px; }
/* the price row holds 2 to 4 fields; the script sets data-n so every row is filled */
.tl-cost-row-price { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tl-cost-row-price[data-n="3"] { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr); }
.tl-cost-row-price[data-typ] { grid-template-columns: minmax(0, 3fr) minmax(0, 1fr); }
.tl-cost-f-qunit .tl-cost-seg { grid-template-columns: repeat(auto-fit, minmax(min(100%, 130px), 1fr)); }
.tl-cost-seg-tr .tl-cost-box b { font-size: clamp(16px, 1vw, 19px); }
.tl-cost-typs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.tl-cost-typs.n1 { grid-template-columns: minmax(0, 1fr); }
.tl-cost-typ .tl-cost-box { min-height: 104px; }
.tl-cost-typ .tl-cost-pk { color: inherit; font-size: 15px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.85; }
.tl-cost-typ .tl-cost-pv { font-size: clamp(22px, 1.6vw, 32px); line-height: 1.15; font-variant-numeric: tabular-nums; }
.tl-cost-notes3 { margin-top: var(--tlc-gap); }
.tl-cost-refs { margin-top: var(--tlc-gap); padding: 18px 22px; border: 1px dashed rgba(255, 255, 255, 0.32); border-radius: var(--tlc-rad); }
.tl-cost-refs h4 { color: #fff; font-size: clamp(17px, 1.05vw, 20px); }
.tl-cost-reft { margin-top: 2px; color: var(--tlc-muted); }
.tl-cost-refs ul { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.tl-cost-refs li { flex: 1 1 280px; padding: 10px 14px; border-radius: 12px; background: rgba(255, 255, 255, 0.07); }

/* --- Step 4: trip costs --- */
.tl-cost-trip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: calc(var(--tlc-gap) * 1.3) var(--tlc-gap); align-items: stretch; }
.tl-cost-f-hotel, .tl-cost-f-transfer, .tl-cost-f-margin { grid-column: span 2; }
.tl-cost[lang="tr"] .tl-cost-f-lost { grid-column: span 2; }
.tl-cost-separate { grid-column: 1 / -1; }
.tl-cost-sub { margin-top: 12px; }
.tl-cost-sub .tl-cost-lbl { color: var(--tlc-muted); font-weight: 400; }
.tl-cost-lblrow { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.tl-cost-out { color: var(--soft); font-size: clamp(22px, 1.6vw, 32px); font-weight: 500; line-height: 1; font-variant-numeric: tabular-nums; }
.tl-cost-range { margin-top: auto; }
.tl-cost-range input[type="range"] { display: block; width: 100%; height: 44px; margin: 0; background: transparent; accent-color: var(--soft); cursor: pointer; }
.tl-cost-ticks { display: flex; justify-content: space-between; color: var(--tlc-muted); font-size: 16px; }

/* --- Step 5: result --- */
.tl-cost-res { display: grid; gap: var(--tlc-gap); }
.tl-cost-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 22px 4vw; align-items: center; padding: clamp(24px, 2.6vw, 52px); border-radius: var(--r); background: #fff; color: var(--navy); }
.tl-cost-hero .ph { background: rgb(var(--blue-rgb) / 0.12); color: var(--blue-dk); }
.tl-cost-kicker { color: var(--gray-500); font-size: clamp(15px, 0.9vw, 17px); font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; }
.tl-cost-big { margin-top: 10px; color: var(--blue); font-size: clamp(48px, 5.4vw, 108px); font-weight: 500; line-height: 1; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.tl-cost-big.is-neg { color: var(--navy); }
.tl-cost-big.is-text { font-size: clamp(22px, 1.8vw, 36px); line-height: 1.3; letter-spacing: 0; color: var(--navy); }
.tl-cost-cap { margin-top: 12px; color: var(--navy); font-size: clamp(18px, 1.25vw, 24px); font-weight: 500; }
.tl-cost-pick, .tl-cost-rng { margin-top: 6px; color: var(--gray-700); }
.tl-cost-heromsg { padding-left: clamp(0px, 3vw, 56px); border-left: 1px solid rgb(var(--navy-rgb) / 0.12); }
.tl-cost-heromsg p { color: var(--gray-700); font-size: clamp(17px, 1.15vw, 22px); line-height: 1.6; }
.tl-cost-heromsg b { color: var(--navy); font-weight: 500; white-space: nowrap; }
.tl-cost-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.tl-cost-stats > div { min-width: 0; padding: 16px 18px; border-radius: calc(var(--r) * 0.6); background: var(--tint); }
.tl-cost-stats dt { color: var(--gray-500); font-size: 15px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; }
.tl-cost-stats dd { margin-top: 6px; color: var(--navy); font-size: clamp(19px, 1.35vw, 26px); font-weight: 500; line-height: 1.3; overflow-wrap: anywhere; }
.tl-cost-hero .tl-cost-amt { color: inherit; }

.tl-cost-cols { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: var(--tlc-gap); align-items: stretch; }
.tl-cost-side { display: flex; flex-direction: column; gap: var(--tlc-gap); min-width: 0; }
.tl-cost-side > .tl-cost-inc { flex: 1 1 auto; }
.tl-cost-card { min-width: 0; padding: clamp(18px, 1.7vw, 32px); border: 1px solid var(--tlc-line); border-radius: var(--r); background: var(--tlc-card); }
.tl-cost-card h4 { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; color: #fff; font-size: clamp(18px, 1.2vw, 23px); line-height: 1.25; }
.tl-cost-card h4 .tl-cost-ico { color: var(--soft); }
.tl-cost-card p { color: rgba(255, 255, 255, 0.88); }
.tl-cost-card p b { color: #fff; font-weight: 500; }

/* breakdown table (the text equivalent of the bars) */
.tl-cost-tblwrap { display: flex; flex-direction: column; min-width: 0; overflow: hidden; border: 1px solid var(--tlc-line); border-radius: var(--r); background: rgba(255, 255, 255, 0.03); }
/* the table fills the height of the column beside it, so no empty block is left under it */
.tl-cost-tbl { flex: 1 0 auto; width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.tl-cost-tbl th, .tl-cost-tbl td { padding: 14px clamp(14px, 1.3vw, 24px); text-align: left; vertical-align: top; line-height: 1.4; }
.tl-cost-tbl thead th { background: rgba(255, 255, 255, 0.07); color: rgba(255, 255, 255, 0.75); font-size: 15px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; }
.tl-cost-tbl thead th + th, .tl-cost-tbl td { text-align: right; }
.tl-cost-tbl tbody > tr > * { border-top: 1px solid rgba(255, 255, 255, 0.12); }
.tl-cost-tbl tbody th { color: #fff; font-weight: 500; }
.tl-cost-cell { display: block; min-width: 0; overflow-wrap: anywhere; }
.tl-cost-rowsub { display: block; color: var(--tlc-muted); font-size: clamp(16px, 0.9vw, 17px); font-weight: 400; }
.tl-cost-amt { color: #fff; font-weight: 500; white-space: nowrap; }
.tl-cost-det { display: block; margin-top: 2px; color: var(--tlc-muted); font-size: clamp(16px, 0.9vw, 17px); }
.tl-cost-na, .tl-cost-dash { color: rgba(255, 255, 255, 0.45); }
.tl-cost-tbl tr.is-sub > * { background: rgba(255, 255, 255, 0.05); }
.tl-cost-tbl tfoot th, .tl-cost-tbl tfoot td { padding-block: 18px; border-top: 2px solid rgba(255, 255, 255, 0.4); background: rgba(255, 255, 255, 0.08); color: #fff; font-size: clamp(19px, 1.35vw, 26px); font-weight: 500; }

/* bars: total cost each side */
.tl-cost-barrow + .tl-cost-barrow { margin-top: 18px; }
.tl-cost-barlbl { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; margin-bottom: 8px; }
.tl-cost-barlbl span { color: var(--tlc-muted); }
.tl-cost-barlbl b { font-weight: 500; text-align: right; }
.tl-cost-track { display: flex; align-items: center; height: 24px; overflow: hidden; border-radius: 999px; background: rgba(255, 255, 255, 0.1); }
.tl-cost-track > span { flex: none; height: 100%; transition: width 0.6s var(--ease); }
.tl-cost-seg-home { background: #fff; }
.tl-cost-seg-home.is-unscaled { background: repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.85) 0 6px, rgba(255, 255, 255, 0.35) 6px 12px); }
.tl-cost-seg-treat { background: var(--soft); }
.tl-cost-seg-trip { background: var(--pale); }
.tl-cost-seg-margin { background: repeating-linear-gradient(135deg, var(--pale) 0 4px, rgba(255, 255, 255, 0.15) 4px 8px); }
.tl-cost-track > .tl-cost-seg-unknown { display: grid; place-items: center; height: 100%; padding: 0 12px; border: 1.5px dashed var(--pale); border-radius: 999px; color: var(--pale); font-size: 15px; font-weight: 500; line-height: 1; }
.tl-cost-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 16px; color: var(--tlc-muted); font-size: 16px; }
.tl-cost-legend i { display: inline-block; width: 12px; height: 12px; margin-right: 8px; border-radius: 3px; vertical-align: -1px; }
.tl-cost-sw-home { background: #fff; }
.tl-cost-sw-treat { background: var(--soft); }
.tl-cost-sw-trip { background: var(--pale); }
.tl-cost-sw-margin { background: repeating-linear-gradient(135deg, var(--pale) 0 3px, transparent 3px 6px); }
.tl-cost-barnote { margin-top: 12px; color: var(--tlc-muted); }

.tl-cost-cols2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--tlc-gap); }
.tl-cost-notinc ul { display: grid; gap: 6px; margin: 4px 0 14px; }
.tl-cost-notinc li { position: relative; padding-left: 22px; color: rgba(255, 255, 255, 0.9); }
.tl-cost-notinc li::before { content: ""; position: absolute; top: 0.6em; left: 2px; width: 8px; height: 8px; border-radius: 50%; background: var(--soft); }
.tl-cost-act { display: flex; flex-direction: column; gap: 18px; }
.tl-cost-act .tl-cost-doc { margin-top: 0; }
.tl-cost-btns { display: flex; flex-wrap: wrap; gap: 10px; }
.tl-cost-btns .pill { flex: 1 1 auto; font-size: clamp(16px, 1.05vw, 21px); }
.tl-cost-privacy { display: flex; align-items: flex-start; gap: 10px; margin-top: auto; color: var(--tlc-muted); }
.tl-cost-privacy .tl-cost-ico { margin-top: 0.2em; color: var(--soft); }
.tl-cost-disc { display: flex; align-items: flex-start; gap: 12px; padding-top: 4px; color: rgba(255, 255, 255, 0.78); font-size: clamp(16px, 0.95vw, 18px); }
.tl-cost-disc .tl-cost-ico { margin-top: 0.2em; color: var(--soft); }
.tl-cost-rates { display: block; margin-top: 6px; }
.tl-cost-print { display: none; }

/* --- Laptop and tablet --- */
@media (max-width: 1199px) {
  .tl-cost-treats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tl-cost[lang="tr"] .tl-cost-treats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tl-cost-trip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tl-cost-hero { grid-template-columns: 1fr; }
  .tl-cost-heromsg { padding: 20px 0 0; border-top: 1px solid rgb(var(--navy-rgb) / 0.12); border-left: 0; }
  .tl-cost-cols { grid-template-columns: 1fr; }
  .tl-cost-side { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tl-cost-side > .tl-cost-bars { grid-column: 1 / -1; }
}
@media (max-width: 999px) {
  .tl-cost-row-price[data-n="3"], .tl-cost-row-price[data-typ] { grid-template-columns: 1fr; }
}
@media (max-width: 899px) {
  .tl-cost-step.is-row { grid-template-columns: 1fr; }
  .tl-cost-step.is-row .tl-cost-head { margin-bottom: 4px; }
  .tl-cost-cols2 { grid-template-columns: 1fr; }
}

/* --- Phones --- */
@media (max-width: 699px) {
  .tl-cost-bar { align-items: flex-start; }
  .tl-cost[lang="tr"] .tl-cost-treats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tl-cost-trip { grid-template-columns: 1fr; }
  .tl-cost-f-hotel, .tl-cost-f-transfer, .tl-cost-f-margin, .tl-cost[lang="tr"] .tl-cost-f-lost { grid-column: auto; }
  .tl-cost-stats { grid-template-columns: 1fr; }
  .tl-cost-stats > div { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; }
  .tl-cost-stats dd { margin-top: 0; text-align: right; }
  .tl-cost-side { grid-template-columns: 1fr; }
  .tl-cost-typs { grid-template-columns: 1fr; }
  .tl-cost-typ .tl-cost-box { min-height: 0; }
  .tl-cost-row-price, .tl-cost-row-price[data-n] { grid-template-columns: 1fr; }
  .tl-cost-btns .pill { width: 100%; }

  /* breakdown table becomes stacked rows */
  .tl-cost-tbl thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .tl-cost-tbl, .tl-cost-tbl tbody, .tl-cost-tbl tfoot, .tl-cost-tbl tr, .tl-cost-tbl th, .tl-cost-tbl td { display: block; }
  .tl-cost-tbl tr { padding: 14px 16px; }
  .tl-cost-tbl tbody > tr > * { border-top: 0; }
  .tl-cost-tbl tbody tr + tr, .tl-cost-tbl tfoot tr { border-top: 1px solid rgba(255, 255, 255, 0.14); }
  .tl-cost-tbl tfoot tr { border-top: 2px solid rgba(255, 255, 255, 0.4); background: rgba(255, 255, 255, 0.08); }
  .tl-cost-tbl th, .tl-cost-tbl td, .tl-cost-tbl tfoot th, .tl-cost-tbl tfoot td { padding: 0; border: 0; background: none; text-align: left; }
  .tl-cost-tbl td { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-top: 6px; }
  .tl-cost-tbl td::before { content: attr(data-label); flex: none; max-width: 48%; color: var(--tlc-muted); font-size: 16px; font-weight: 400; }
  .tl-cost-tbl td.is-na { display: none; }
  .tl-cost-tbl .tl-cost-cell { text-align: right; }
}
@media (max-width: 559px) {
  .tl-cost-treats, .tl-cost[lang="tr"] .tl-cost-treats { grid-template-columns: 1fr; }
  .tl-cost[lang="tr"] .tl-cost-treat.is-lead { grid-column: auto; }
  .tl-cost-treat .tl-cost-box { min-height: 0; }
  .tl-cost-step { padding: 20px 16px; border-radius: 22px; }
  .tl-cost-head { gap: 12px; }
  .tl-cost-doc { flex-direction: column; align-items: flex-start; gap: 10px; padding: 14px 16px; }
  .tl-cost-hero { padding: 22px 18px; border-radius: 22px; }
  .tl-cost-card, .tl-cost-tblwrap { border-radius: 22px; }
  .tl-cost-tbl tr { padding: 14px; }
  .tl-cost-curl { flex-basis: 100%; }
}
@media (max-width: 419px) {
  .tl-cost-seg { grid-template-columns: 1fr; }
  .tl-cost .fchip { padding: 0 14px; }
  .tl-cost-chip > span { padding: 0 16px; }
  .tl-cost-box { padding-right: 46px; }
  .tl-cost-box::after { right: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .tl-cost *, .tl-cost *::before, .tl-cost *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* --- Print / save as PDF: inputs, date, totals, rates date and disclaimer --- */
@media print {
  /* the navy panel around the tool prints white, so the black text stays readable */
  .tool-panel:has(.tl-cost) { margin: 0 !important; padding: 0 !important; border-radius: 0 !important; background: #fff !important; color: #000 !important; }
  .tl-cost, .tl-cost * { border-color: #bbb !important; background: transparent !important; box-shadow: none !important; color: #000 !important; }
  .tl-cost-notinc li::before { background: #000 !important; }
  .tl-cost .ph { padding: 0; }
  .tl-cost-bar, .tl-cost-s1, .tl-cost-s2, .tl-cost-s3, .tl-cost-s4, .tl-cost-btns, .tl-cost-bars, .tl-cost-privacy, .tl-cost-act .tl-cost-avs { display: none !important; }
  .tl-cost-step { padding: 0; border: 0; }
  .tl-cost-s5 .tl-cost-head { display: none; }
  .tl-cost-print { display: block; order: -1; margin-bottom: 18px; }
  .tl-cost-print h3 { margin-bottom: 8px; font-size: 20px; }
  .tl-cost-print dl > div { display: flex; gap: 16px; padding: 4px 0; border-bottom: 1px solid #ddd; }
  .tl-cost-print dt { flex: 0 0 45%; font-weight: 500; }
  .tl-cost-print dd { margin: 0; }
  .tl-cost-hero, .tl-cost-cols, .tl-cost-cols2, .tl-cost-side { display: block !important; }
  .tl-cost-hero, .tl-cost-card, .tl-cost-tblwrap, .tl-cost-notes { margin-bottom: 12px; break-inside: avoid; }
  .tl-cost-heromsg { padding: 8px 0 0; border: 0; }
  .tl-cost-big { font-size: 40px; }
  html.tl-cost-printing body * { visibility: hidden !important; }
  html.tl-cost-printing .tl-cost.is-printing, html.tl-cost-printing .tl-cost.is-printing * { visibility: visible !important; }
  html.tl-cost-printing .tl-cost.is-printing { position: absolute; top: 0; left: 0; width: 100%; }
}
