/* Wah-Kit itinerary maker */
.trips { margin: 0 0 28px; }
.linkbtn { border: 0; background: none; padding: 0; color: var(--blue); font: inherit; font-size: 14px; text-decoration: underline; cursor: pointer; text-align: left; }
.linkbtn.danger, .tp-del { color: #B42318; }
.tp-card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 18px; }
.tp-center { text-align: center; max-width: 560px; margin: 0 auto; }
.tp-center p { color: var(--ink-soft); }
.tp-big { font-size: 46px; }
.tp-muted { color: var(--muted); font-size: 14px; }
.tp-err { color: #B42318; font-size: 14px; margin: 6px 0 0; }
.tp-err:empty { display: none; }
.tp-new h2, .tp-h2 { font-size: 19px; margin: 0 0 12px; }
.tp-h2 { margin: 22px 0 10px; }
.tp-newrow { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr) auto; gap: 10px; align-items: end; }
.tp-newrow label, .tp-f { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 600; color: var(--ink-soft); min-width: 0; }
.tp-newrow input, .tp-f input, .tp-f textarea, .tp-f select { min-height: 44px; border: 1px solid var(--line); border-radius: 10px; padding: 0 10px; font: 16px var(--font-body); color: var(--ink); background: #fff; width: 100%; box-sizing: border-box; min-width: 0; }
.tp-f textarea { padding: 8px 10px; resize: vertical; min-height: 0; }
.tp-f small { font-weight: 400; color: var(--muted); }
.tp-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px; }
.tp-trip { display: flex; flex-direction: column; gap: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px; }
.tp-tl { display: flex; flex-direction: column; gap: 2px; text-decoration: none; color: var(--ink); }
.tp-tl b { font-size: 17px; }
.tp-tl span { color: var(--ink-soft); font-size: 14px; }
.tp-tl small { color: var(--muted); font-size: 12.5px; }
.tp-tacts { display: flex; gap: 6px; }
.tp-mini { display: inline-flex; align-items: center; min-height: 34px; padding: 0 10px; border: 1px solid var(--line); border-radius: 8px; background: #fff; font: 600 13.5px var(--font-body); color: var(--ink); cursor: pointer; text-decoration: none; }
.tp-mini:hover { background: var(--ground); }
.tp-mini:disabled { opacity: .45; cursor: default; }
.tp-bar { position: sticky; top: 0; z-index: 30; display: flex; gap: 6px; align-items: center; padding: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 4px 14px rgba(29, 26, 57, .06); }
.tp-tb { display: inline-flex; align-items: center; gap: 2px; min-height: 40px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; font: 600 14px var(--font-body); color: var(--ink); cursor: pointer; text-decoration: none; white-space: nowrap; }
.tp-tb:hover { background: var(--ground); }
.tp-tb.pri { background: var(--accent-strong); border-color: var(--accent-strong); color: #fff; }
.tp-sp { flex: 1; }
.tp-saved { font-size: 13px; color: var(--muted); }
.tp-tip { margin: 10px 2px; font-size: 13.5px; color: var(--muted); }
.tp-note { margin: 8px 0 0; font-size: 14px; }
.tp-note:empty { display: none; }
.tp-note.ok { color: #145A33; background: #E9F8EE; padding: 8px 12px; border-radius: 10px; }
.tp-note.err { color: #8C2A14; background: #FDECE7; padding: 8px 12px; border-radius: 10px; }
.tp-view { padding: 4px 0 20px; }
.tp-view .tv-i[data-k] { cursor: pointer; }
.tp-view .tv-i[data-k]:hover { background: #F5F8FF; }
.tp-view .tv-i[data-k]:hover::after { content: "✎"; position: absolute; right: 12px; top: 12px; color: var(--muted); }
.tv-add { display: block; width: 100%; margin: 8px 0 0; min-height: 44px; border: 2px dashed #CDD5E3; border-radius: 14px; background: transparent; font: 700 14.5px var(--font-body); color: #46546F; cursor: pointer; }
.tv-add:hover { border-color: var(--ac, #0F5E8C); color: var(--ac, #0F5E8C); background: #fff; }
.tp-empty { background: #FFF8E1; border: 1px solid #F3DE9C; border-radius: 12px; padding: 10px 12px; font-size: 14px; margin-bottom: 4px; }
.tp-panel { position: fixed; z-index: 1000; top: 0; right: 0; bottom: 0; width: 420px; max-width: 100%; background: #fff; box-shadow: -10px 0 40px rgba(0, 0, 0, .18); display: flex; flex-direction: column; }
.tp-ph { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.tp-ph b { font-size: 17px; }
.tp-x { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--ground); cursor: pointer; font-size: 16px; }
.tp-pb { padding: 16px; overflow-y: auto; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.tp-pb p { margin: 0; }
.tp-two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tp-types { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tp-type { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer; font: inherit; color: inherit; text-align: left; }
.tp-type:hover { border-color: #9DB7EA; background: #F7FAFF; }
.tp-type span { font-size: 26px; line-height: 1; }
.tp-type b { font-size: 14.5px; }
.tp-sec { display: flex; flex-direction: column; gap: 8px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: #FAFBFD; }
.tp-sec small { color: var(--muted); font-size: 12.5px; line-height: 1.45; }
.tp-links { display: flex; flex-direction: column; gap: 8px; }
.tp-link { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) auto; gap: 6px; align-items: center; }
.tp-link input[type=text], .tp-link input[type=url] { min-height: 38px; border: 1px solid var(--line); border-radius: 8px; padding: 0 8px; font: 14px var(--font-body); min-width: 0; }
.tp-me { grid-column: 1 / 3; font-size: 12.5px; color: var(--ink-soft); display: flex; gap: 6px; align-items: center; }
.tp-pro { background: #F3F7FF; border: 1px solid #C9D8F5; border-radius: 12px; padding: 10px 12px; font-size: 14px; }
.tp-btns, .tp-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.tp-lab { font-size: 13px; color: var(--ink-soft); }
.tp-sws { display: flex; gap: 10px; flex-wrap: wrap; }
.tp-sw { width: 36px; height: 36px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 1px var(--line); cursor: pointer; }
.tp-sw.on { box-shadow: 0 0 0 3px var(--ink); }
.tp-check { display: flex; gap: 8px; align-items: center; font-size: 15px; cursor: pointer; }
.tp-check input { width: 20px; height: 20px; margin: 0; }
.tp-linkbox { display: flex; gap: 8px; align-items: center; background: var(--ground); border-radius: 10px; padding: 8px 10px; }
.tp-linkbox code { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; font-size: 14px; }
.tp-wa { background: #1B7F4A !important; }
.tp-pin { width: 110px; min-height: 40px; border: 1px solid var(--line); border-radius: 8px; padding: 0 10px; font: 18px var(--font-body); letter-spacing: 4px; }
.tp-eds { display: flex; flex-direction: column; gap: 6px; }
.tp-ed { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 14.5px; }
@media (max-width: 760px) {
  .tp-newrow { grid-template-columns: 1fr 1fr; }
  .tp-newrow label:first-child { grid-column: 1 / -1; }
  .tp-newrow .btn { grid-column: 1 / -1; }
  .tp-bar { padding: 6px; gap: 4px; }
  .tp-tb { padding: 0 10px; }
  .tp-tb span { display: none; }
  .tp-tb.pri span { display: inline; }
  .tp-view { margin: 0 -16px; }
  .tp-panel { top: auto; left: 0; width: 100%; max-height: 86vh; border-radius: 18px 18px 0 0; bottom: var(--tabbar, 0px); box-shadow: 0 -10px 40px rgba(0, 0, 0, .2); }
}

.tp-clk { display: grid; grid-template-columns: minmax(0, 1fr) 118px 28px 28px; gap: 8px; align-items: center; }
.tp-clk small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tp-clk .linkbtn { font-size: 16px; padding: 4px; text-decoration: none; text-align: center; }
.tp-clocks .tp-row input { flex: 1 1 180px; min-width: 0; }
@media (max-width: 560px) { .tp-clk { grid-template-columns: minmax(0, 1fr) 28px 28px; } .tp-clk small { display: none; } }
.tp-clk input, .tp-clocks .tp-row input { min-height: 40px; border: 1px solid var(--line); border-radius: 10px; padding: 0 10px; font: 16px var(--font-body); color: var(--ink); background: #fff; box-sizing: border-box; }
