/* Round 288: booking links built from the plan -- one stylesheet for the companion and the trip page (booking-ui.js). */
.booking-preview { display: flex; align-items: center; gap: 8px; margin: 10px 0 12px; padding: 9px 12px; border-radius: 12px; background: #FFF7E6; border: 1px solid #F5D9A8; font-family: var(--font-ui); font-size: 12px; color: #7A4B00; font-weight: 600; }
.booking-preview b { background: #7A4B00; color: #fff; border-radius: 99px; padding: 2px 8px; font-size: 10.5px; letter-spacing: .04em; white-space: nowrap; text-transform: uppercase; }
.stay-card { background: #1F1C38; border: 1px solid #322C58; border-radius: 20px; padding: 16px 16px 14px; margin: 0 0 16px; color: #fff; font-family: var(--font-ui); }
.stay-kicker { display: flex; align-items: center; gap: 6px; font-size: 10px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-bright); }
.stay-name { margin: 6px 0 2px; font-family: var(--font-display); font-size: 20px; font-weight: 800; letter-spacing: -.01em; line-height: 1.15; }
.stay-meta { font-size: 12.5px; font-weight: 600; color: rgba(245, 246, 249, .7); }
.stay-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.partner-btn { display: inline-flex; align-items: center; gap: 6px; border-radius: 100px; padding: 9px 14px; font-family: var(--font-ui); font-size: 12.5px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.partner-btn.primary { background: #fff; color: #14213D; }
.partner-btn.ghost { background: transparent; color: #fff; border: 1px solid rgba(255, 255, 255, .35); }
.stay-note { margin: 10px 0 0; font-size: 11px; line-height: 1.45; color: rgba(245, 246, 249, .6); }
.stay-card.is-booked { border-color: #15803D; }
.booked-pill { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 700; color: #15803D; background: #E8F7EE; border-radius: 99px; padding: 5px 10px; white-space: nowrap; }
.stub-booking { display: flex; flex-wrap: wrap; gap: 6px; flex-basis: 100%; align-items: center; }
.stub-booking .book-link-btn { text-decoration: none; }
.stub-booking-note { flex-basis: 100%; font-size: 11.5px; color: var(--muted); margin-top: -2px; }
.book-panel { width: 100%; background: var(--bg); border: 1px solid var(--border); border-radius: 16px; padding: 18px 16px 14px; margin: -2px 0 14px; font-family: var(--font-ui); }
.book-panel h3 { margin: 0; font-family: var(--font-display); font-size: 22px; font-weight: 800; letter-spacing: -.015em; color: var(--ink); }
.book-sub { margin: 4px 0 0; font-size: 13px; color: var(--muted); font-weight: 600; }
.book-bar { height: 8px; border-radius: 99px; background: var(--accent-bg-soft); margin: 12px 0 6px; overflow: hidden; }
.book-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent-dark), var(--accent)); border-radius: 99px; transition: width .3s ease; }
.book-list { list-style: none; margin: 8px 0 0; padding: 0; }
.book-item { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-top: 1px solid var(--border); }
.book-item:first-child { border-top: none; }
.book-ic { width: 38px; height: 38px; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: var(--accent-bg-soft); color: var(--accent-ink); flex-shrink: 0; }
.book-item.done .book-ic { background: #E8F7EE; color: #15803D; }
.book-txt { flex: 1; min-width: 0; }
.book-t { font-size: 15px; font-weight: 700; color: var(--ink); line-height: 1.25; }
.book-m { font-size: 12.5px; color: var(--muted); font-weight: 600; margin-top: 2px; }
.book-acts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.book-acts .mini { display: inline-flex; align-items: center; gap: 4px; border-radius: 99px; padding: 6px 12px; font-size: 12px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.book-acts .mini.solid { background: var(--accent); color: #fff; }
.book-acts .mini.line { border: 1px solid var(--border); color: var(--accent-ink); background: var(--bg); }
.book-nolink { font-size: 12px; color: var(--muted); font-weight: 600; }
.book-tick { width: 26px; height: 26px; border-radius: 8px; border: 2px solid #C9CFDA; background: var(--bg); flex-shrink: 0; margin-top: 6px; display: flex; align-items: center; justify-content: center; color: #fff; cursor: pointer; padding: 0; }
.book-tick.on { background: #15803D; border-color: #15803D; }
.book-tick:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.book-foot { margin: 12px 0 0; font-size: 11.5px; line-height: 1.45; color: var(--muted); }
.td-booking { margin: 0 0 18px; }
.td-booking .book-panel { margin: 0; }
.td-stop-actions .stub-booking { margin-top: 2px; }
/* Round 289: "Flying from", the network's confirmation, the shared plan */
.book-origin { display: block; margin: 10px 0 4px; padding: 10px 12px; border: 1px dashed var(--border); border-radius: 12px; font-size: 13px; color: var(--ink); }
.book-origin label { display: block; font-weight: 700; }
.book-origin-hint { display: block; font-weight: 500; font-size: 12px; color: var(--muted); margin-top: 2px; }
.book-origin-row { display: flex; align-items: center; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.book-origin-row input { width: 5.5em; font: inherit; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 7px 10px; border: 1px solid var(--border); border-radius: 10px; background: var(--bg); color: var(--ink); }
.book-origin-row input:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.book-origin-row .mini { display: inline-flex; align-items: center; border-radius: 99px; padding: 7px 14px; font-size: 12px; font-weight: 700; border: 0; cursor: pointer; }
.book-origin-row .mini.solid { background: var(--accent); color: #fff; }
.book-origin-name { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.booked-pill.is-confirmed { background: #15803D; color: #fff; }
.shared-booking { margin: 0 0 20px; }
.shared-booking .stay-card { margin-bottom: 12px; }
.shared-activity-list .stub-booking, .shared-activity-list .partner-btn { margin-top: 6px; }
.shared-activity-list .partner-btn { display: inline-flex; align-items: center; gap: 4px; border-radius: 99px; padding: 6px 12px; font-size: 12px; font-weight: 700; text-decoration: none; border: 1px solid var(--border); color: var(--accent-ink); background: var(--bg); margin-right: 6px; }
/* Round 289b: the "Flying from" city search */
.book-origin { position: relative; }
.book-origin-row input[type="search"] { width: min(100%, 320px); letter-spacing: 0; text-transform: none; font-weight: 600; }
.book-origin-row .mini.line { border: 1px solid var(--border); color: var(--accent-ink); background: var(--bg); }
.book-origin-list { list-style: none; margin: 6px 0 0; padding: 4px; border: 1px solid var(--border); border-radius: 12px; background: var(--bg); box-shadow: 0 8px 24px rgba(0,0,0,.12); max-height: 260px; overflow: auto; }
.book-origin-list li { display: flex; gap: 8px; align-items: baseline; padding: 8px 10px; border-radius: 8px; cursor: pointer; font-size: 13px; color: var(--ink); }
.book-origin-list li:hover, .book-origin-list li:focus { background: var(--accent-bg-soft); }
.book-origin-list li span { color: var(--muted); font-size: 12px; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.book-origin-list li i { font-style: normal; font-weight: 700; color: var(--accent-ink); letter-spacing: .06em; }
.book-origin-list .book-origin-none { color: var(--muted); cursor: default; }
/* Round 289c: Flying from + Returning to side by side */
.book-origins { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px; margin: 10px 0 4px; }
.book-origins .book-origin { margin: 0; }
