/* Your trip (trip.html, assets/js/trip.js) – trip planner. Builds on flights.css (pill button, stepper, section titles). */

/* hero: same photographic style as Flights and Hotels; honeycomb kept as a faint accent */
.page-hero.ph-trip { display: flex !important; flex-direction: column !important; justify-content: flex-end !important; align-items: stretch !important; min-height: 527px; padding-bottom: 56px !important; background: #0d2a45 center/cover no-repeat; }
.page-hero.ph-trip[data-dest="hu"] { background-image: url("../img/heroes/flights-budapest.webp"); background-position: left top; }
.page-hero.ph-trip[data-dest="ist"], .page-hero.ph-trip[data-dest="tr"] { background-image: url("../img/heroes/extras-istanbul.webp"); background-position: center 40%; }
.page-hero.ph-trip::before { opacity: .07 !important; z-index: 1; }
.page-hero.ph-trip::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(9, 30, 52, .82) 0%, rgba(9, 30, 52, .42) 45%, transparent 68%), linear-gradient(90deg, rgba(9, 30, 52, .55) 0%, rgba(9, 30, 52, .2) 45%, transparent 68%); pointer-events: none; }
.page-hero.ph-trip .container { position: relative; z-index: 2; width: 100%; }
.page-hero.ph-trip p { max-width: 540px; }
.tp-switch { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 18px; padding: 5px; border-radius: 16px; background: rgba(255, 255, 255, .14); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .28); backdrop-filter: blur(6px); }
.tp-switch button, .tp-other { height: 40px; padding: 0 16px; border: 0; border-radius: 12px; background: none; color: #fff; font: 600 14px var(--title); cursor: pointer; }
.tp-switch button[aria-checked="true"], .tp-other.on { background: #fff; color: var(--navy); }
.tp-other { position: relative; display: inline-flex; align-items: center; gap: 8px; padding-right: 10px; }
.tp-other select { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.tp-other::after { content: ""; width: 6px; height: 6px; margin-top: -3px; border: solid currentColor; border-width: 0 1.6px 1.6px 0; transform: rotate(45deg); }
@media (max-width: 760px) { .page-hero.ph-trip { min-height: 420px; padding-bottom: 40px !important; } .page-hero.ph-trip[data-dest="hu"] { background-image: url("../img/heroes/flights-budapest-1200.webp"); background-position: 12% top; } .tp-switch { display: flex; } .tp-switch button, .tp-other { flex: 1; justify-content: center; padding: 0 10px; font-size: 13px; } }

.tp-sec { padding-top: var(--hero-gap, 28px) !important; }
/* journey tracker */
.tp-track { padding: 16px 18px; border: 1px solid #e3e9ee; border-radius: 20px; background: #fff; }
.tp-track ol { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; }
.tp-track li { position: relative; display: flex; align-items: center; gap: 10px; min-width: 0; padding-right: 12px; font: 600 14px var(--title); color: #8a99a6; }
.tp-track li:not(:last-child)::after { content: ""; flex: 1; min-width: 12px; height: 2px; border-radius: 2px; background: #e3ecef; }
.tp-tn { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #f2f6f7; color: #8a99a6; }
.tp-tn .ic { width: 16px; height: 16px; }
.tp-track li > span:nth-child(2) { white-space: nowrap; }
.tp-track li.done { color: var(--navy); } .tp-track li.done .tp-tn { background: #04847f; color: #fff; } .tp-track li.done::after { background: #9edcd4; }
.tp-track li.now { color: var(--navy); } .tp-track li.now .tp-tn { background: #d9f2ef; color: #04645f; box-shadow: 0 0 0 4px #eef8f7; }
.tp-note { display: flex; align-items: center; gap: 8px; margin: 14px 0 0; padding: 10px 12px; border-radius: 12px; background: #eef8f7; font-size: 13.5px; color: #36525a; }
.tp-note .ic { flex: none; width: 17px; height: 17px; color: #04847f; }

/* planning cards */
.tp-head { margin: 40px 0 16px; } .tp-head .title { font-size: clamp(26px, 3vw, 36px); } .tp-head .lead { margin-top: 6px; font-size: 16px; }
.tp-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.tp-card { display: flex; flex-direction: column; border: 1px solid #e3e9ee; border-radius: 20px; background: #fff; overflow: hidden; box-shadow: 0 14px 34px -30px rgba(5, 56, 99, .5); }
.tp-card.done { border-color: #9edcd4; }
.tp-cimg { position: relative; height: 120px; background: #1b3550 center/cover no-repeat; }
.tp-cimg::before { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(9, 30, 52, .55), rgba(9, 30, 52, .05) 70%); }
.tp-cic { position: absolute; left: 14px; bottom: -18px; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: #fff; color: #04847f; box-shadow: 0 6px 16px -8px rgba(5, 56, 99, .5); }
.tp-cic .ic { width: 20px; height: 20px; }
.tp-opt { position: absolute; right: 10px; top: 10px; padding: 3px 9px; border-radius: 999px; background: #fff; font: 600 11px var(--title); color: #5f6a80; }
.tp-cb { display: flex; flex-direction: column; flex: 1; padding: 26px 16px 14px; }
.tp-cb h3 { margin: 0 0 10px; font: 700 18px var(--title); color: var(--navy); }
.tp-cb dl { margin: 0 0 14px; display: grid; gap: 8px; }
.tp-cb dl div { display: grid; grid-template-columns: 1fr; }
.tp-cb dt { font: 600 11px var(--title); letter-spacing: .06em; text-transform: uppercase; color: #8a99a6; }
.tp-cb dd { margin: 1px 0 0; font-size: 13.5px; line-height: 1.45; color: var(--navy); }
.tp-cgo { margin-top: auto; display: flex; flex-direction: column; align-items: stretch; gap: 6px; }
.tp-cgo .fl-go { margin: 0; justify-content: center; height: 46px; font-size: 14.5px; text-decoration: none; }
.tp-partner { display: flex; align-items: center; justify-content: center; gap: 4px; min-height: 16px; font-size: 12px; color: #5f6a80; }
.tp-partner img { height: 13px; width: auto; }
.tp-tick { display: flex; align-items: center; gap: 8px; margin-top: 10px; padding-top: 10px; border-top: 1px solid #eef2f5; font: 500 13px var(--title); color: #4a5b6b; cursor: pointer; }
.tp-tick input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.tp-tick i { flex: none; width: 18px; height: 18px; border-radius: 6px; box-shadow: inset 0 0 0 1.5px #b8c4cf; background: #fff center/12px no-repeat; }
.tp-tick input:checked + i { background-color: #04847f; box-shadow: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E"); }
.tp-tick input:focus-visible + i { outline: 3px solid var(--brand, #22b3a8); outline-offset: 2px; }

/* timeline */
.tp-tl { margin-top: 44px; }
.tp-tl .ht-h small { margin-left: 8px; font: 400 13.5px var(--text, inherit); color: #5f6a80; }
.tp-tl ol { position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.tp-tl ol::before { content: ""; position: absolute; left: 10%; right: 10%; top: 22px; height: 2px; background: repeating-linear-gradient(90deg, #cfe3e0 0 8px, transparent 8px 14px); }
.tp-tl li { position: relative; text-align: center; }
.tp-dot { display: grid; place-items: center; width: 46px; height: 46px; margin: 0 auto 10px; border-radius: 50%; background: #fff; color: #04847f; box-shadow: 0 0 0 1px #e3e9ee; }
.tp-dot .ic { width: 20px; height: 20px; }
.tp-tl li.clinic .tp-dot { background: #04847f; color: #fff; box-shadow: 0 0 0 5px #d9f2ef; }
.tp-tl b { display: block; font: 600 14.5px var(--title); color: var(--navy); }
.tp-tl small { display: block; margin-top: 2px; font-size: 12.5px; color: #5f6a80; }

/* summary */
.tp-sum { margin-top: 44px; padding: 18px 20px; border: 1px solid #cfece8; border-radius: 20px; background: #eef8f7; }
.tp-sumg { display: grid; grid-template-columns: 1fr 1.5fr auto 1.6fr; gap: 16px; align-items: center; }
.tp-sumg small { display: block; margin-bottom: 4px; font: 600 11px var(--title); letter-spacing: .06em; text-transform: uppercase; color: #04645f; }
.tp-sumg b { font: 600 15px var(--title); color: var(--navy); }
.tp-dates > span { display: flex; align-items: center; gap: 6px; }
.tp-dates input { min-width: 0; flex: 1; height: 38px; padding: 0 8px; border: 1px solid #cfe3e0; border-radius: 10px; background: #fff; font: 600 13.5px var(--title); color: var(--navy); }
.tp-sum .fl-step { background: #fff; }
.tp-open b { font-weight: 500; font-size: 14px; }
.tp-sumgo { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; margin-top: 16px; padding-top: 14px; border-top: 1px solid #cfe3e0; }
.tp-sumgo .btn { border-radius: 999px; }
.tp-sumgo .btn.ghost { background: #fff; color: var(--navy); box-shadow: inset 0 0 0 1px #cfe3e0; }
.tp-fine { margin: 12px 0 0; font-size: 12.5px; line-height: 1.5; color: #5f6a80; }

@media (max-width: 1100px) { .tp-cards { grid-template-columns: 1fr 1fr; } .tp-sumg { grid-template-columns: 1fr 1fr; } .tp-track li > span:nth-child(2) { white-space: normal; font-size: 12.5px; } }
@media (max-width: 760px) {
  .tp-track ol { display: flex; } .tp-track li { flex: 1; padding-right: 4px; } .tp-track li:last-child { flex: none; }
  .tp-track li > span:nth-child(2) { display: none; } .tp-track li.now > span:nth-child(2) { display: block; }
  .tp-cards { grid-template-columns: 1fr; }
  .tp-tl ol { grid-template-columns: 1fr; gap: 10px; } .tp-tl ol::before { left: 22px; right: auto; top: 10px; bottom: 10px; width: 2px; height: auto; background: repeating-linear-gradient(180deg, #cfe3e0 0 8px, transparent 8px 14px); }
  .tp-tl li { display: grid; grid-template-columns: 46px 1fr; column-gap: 12px; text-align: left; align-items: center; } .tp-dot { grid-row: span 2; margin: 0; }
  .tp-sumg { grid-template-columns: 1fr; } .tp-sumgo .btn { flex: 1; justify-content: center; }
}
.tp-mnow { display: none; }
@media (max-width: 760px) {
  .tp-track li.now > span:nth-child(2) { display: none; }
  .tp-mnow { display: block; margin: 10px 0 0; font: 600 14px var(--title); color: var(--navy); }
  .tp-sumgo { flex-direction: column; } .tp-sumgo .btn { width: 100%; }
}
/* summary buttons on iPad portrait: two side by side, the main action full width under them */
@media (min-width: 641px) and (max-width: 1100px) {
  .tp-sumgo { display: grid; grid-template-columns: 1fr 1fr; }
  .tp-sumgo .btn { justify-content: center; }
  .tp-sumgo .btn.green { grid-column: 1 / -1; }
}
@media (max-width: 420px) { .tp-switch button, .tp-other { padding: 0 8px; font-size: 12.5px; white-space: nowrap; } .tp-other { gap: 5px; } }

/* starting state: "where and when?" prompt, then the rest of the page labelled as an example */
.tp-start { padding: 22px 24px; border: 1px solid #cfece8; border-radius: 22px; background: #eef8f7; }
.tp-seye { display: inline-flex; align-items: center; gap: 6px; font: 600 12px var(--title); letter-spacing: .08em; text-transform: uppercase; color: #04645f; }
.tp-seye .ic { width: 15px; height: 15px; }
.tp-sh h2 { margin: 8px 0 4px; font: 700 clamp(22px, 2.4vw, 28px)/1.2 var(--title); color: var(--navy); }
.tp-sh p { margin: 0; max-width: 620px; font-size: 15px; color: #36525a; }
.tp-sform { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr) auto; gap: 14px; align-items: end; margin-top: 18px; }
.tp-sg { display: flex; flex-direction: column; gap: 6px; min-width: 0; font: 600 13px var(--title); color: var(--navy); }
.tp-sg em { font-style: normal; font-weight: 400; color: #5f6a80; }
.tp-sg input, .tp-sbox { box-sizing: border-box; height: 48px; padding: 0 12px; border: 1px solid #cfe3e0; border-radius: 12px; background: #fff; font: 600 14.5px var(--title); color: var(--navy); }
.tp-sbox { display: flex; align-items: center; gap: 8px; }
.tp-sbox .ic { flex: none; width: 18px; height: 18px; color: #04847f; }
.tp-sbox select { flex: 1; min-width: 0; height: 100%; border: 0; background: transparent; font: inherit; color: inherit; outline: none; cursor: pointer; }
.tp-sg input:focus, .tp-sbox:focus-within { outline: none; border-color: #04847f; box-shadow: 0 0 0 3px #d9f2ef; }
.tp-sgo { height: 48px; margin: 0; white-space: nowrap; }
.tp-snote { display: flex; align-items: center; gap: 8px; margin: 14px 0 0; font-size: 13.5px; color: #36525a; }
.tp-snote .ic { flex: none; width: 16px; height: 16px; color: #04847f; }
.tp-serr { margin: 10px 0 0; font: 600 13.5px var(--title); color: #a4472f; }
.tp-exh { display: flex; align-items: center; gap: 10px; margin: 34px 0 -22px; font-size: 14.5px; color: #4a5b6b; }
.tp-exb { flex: none; padding: 4px 10px; border-radius: 999px; background: var(--sand-100, #f6ead6); color: var(--sand-800, #6b4a1c); font: 700 11px var(--title); letter-spacing: .08em; text-transform: uppercase; }
.tp-reset { padding: 0; border: 0; background: none; font: 600 12.5px var(--title); color: #04847f; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
@media (max-width: 900px) { .tp-sform { grid-template-columns: 1fr 1fr; } .tp-sgd, .tp-sgo { grid-column: 1 / -1; } .tp-sgo { justify-content: center; } }
@media (max-width: 760px) { .tp-start { padding: 18px 16px; } .tp-exh { align-items: flex-start; margin-bottom: -26px; } }
