.rotezi-trip-open{overflow:hidden}
.rotezi-trip-backdrop{--trip-ink:#132c45;--trip-muted:#496177;--trip-line:#dbe8f2;--trip-bg:#f8fbff;--trip-card:#fff;--trip-accent:#087f85;position:fixed;inset:0;z-index:370;display:flex;justify-content:flex-end;background:rgba(4,18,34,.58);backdrop-filter:blur(9px);color:var(--trip-ink)}
.rotezi-trip-backdrop[hidden]{display:none!important}
.rotezi-trip-panel{width:min(760px,100%);height:100%;overflow:auto;overscroll-behavior:contain;background:var(--trip-bg);box-shadow:-20px 0 70px #00172d33;font:15px/1.55 Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
.trip-header{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;padding:30px 28px 23px;border-bottom:1px solid var(--trip-line);background:radial-gradient(at 100% 0,rgba(40,162,255,.17),transparent 60%),linear-gradient(135deg,#edf7ff,#f9fcff)}
.trip-header h2{margin:3px 0 5px;font-size:clamp(30px,5vw,40px);line-height:1.15;letter-spacing:-.055em;color:inherit}
.trip-header p{margin:0;color:var(--trip-muted)}
.trip-eyebrow{font-size:11px;font-weight:750;letter-spacing:.12em;text-transform:uppercase;color:var(--trip-ink)}
.trip-header .trip-button{font-size:25px;line-height:1;min-width:42px;padding:7px}
.trip-header-actions{display:flex;align-items:center;gap:6px;flex-shrink:0}
.trip-header #trip-refresh{font-size:12px;line-height:1.3;min-height:44px;padding:8px}
.trip-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 28px 0;min-height:56px}
.trip-toolbar [data-trip-status]{margin:0;font-size:13px;color:var(--adaptive-accent,#126bd5)}
.trip-toolbar [data-trip-status].is-error{color:#b53a1b}
.trip-content{padding:15px 28px 36px}
.trip-preferences,.trip-editor{padding:20px;border:1px solid var(--trip-line);border-radius:20px;background:var(--trip-card);margin-bottom:23px}
.trip-section-head{display:flex;justify-content:space-between;align-items:flex-start;gap:14px}
.trip-section-head h3,.trip-editor h3{margin:0;font-size:18px;letter-spacing:-.025em}
.trip-section-head p,.trip-editor>p{margin:4px 0 12px;color:var(--trip-muted);font-size:13px}
.trip-section-head>.trip-button{flex-shrink:0}
.trip-muted,.trip-card-disclaimer{color:var(--trip-muted);font-size:13px}
.trip-preferences>.trip-muted{margin-bottom:0}
.trip-chips{display:flex;flex-wrap:wrap;gap:7px;padding:0;margin:6px 0 13px;list-style:none}
.trip-chips li{font-size:12px;border-radius:8px;padding:4px 9px;background:#edf6fa;border:1px solid #deedf3;overflow-wrap:anywhere}
.trip-interest-summary{font-size:13px;margin:9px 0 0;overflow-wrap:anywhere}
.trip-tabs{display:grid;grid-template-columns:repeat(4,1fr);gap:4px;padding:5px;background:#e8f0f7;border:1px solid var(--trip-line);border-radius:14px;margin:0 0 20px}
.trip-tabs button{min-height:42px;padding:8px 4px;border:0;border-radius:10px;background:transparent;color:var(--trip-muted);font:inherit;font-size:13px;font-weight:650;cursor:pointer}
.trip-tabs button[aria-selected="true"]{background:var(--trip-card);color:var(--trip-ink);box-shadow:0 2px 8px #0f294a0a}
.trip-tabs button span{font-size:10px;opacity:.8;margin-left:2px}
.trip-tab-intro{margin:0 0 18px;color:var(--trip-muted);font-size:13px}
.trip-day{margin:0 0 26px}
.trip-day>h3{font-size:18px;letter-spacing:-.025em;margin:0 0 12px}
.trip-group-label{font-size:11px;letter-spacing:.04em;text-transform:uppercase;font-weight:700;color:var(--trip-muted);margin:17px 0 8px}
.trip-card{padding:17px 18px;margin:10px 0;background:var(--trip-card);border:1px solid var(--trip-line);border-radius:16px;overflow-wrap:anywhere}
.trip-card.is-reservation{border-left:3px solid #087f85}
.trip-card h4{font-size:16px;font-weight:700;line-height:1.4;margin:9px 0 6px;color:inherit}
.trip-card-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}
.trip-badge{display:inline-block;font-size:10px;line-height:1.3;font-weight:750;text-transform:uppercase;letter-spacing:.06em;color:#53647e;background:#edf1f8;border-radius:6px;padding:5px 7px}
.trip-badge.is-reservation{background:#e6f5ef;color:#087347}
.trip-card-disclaimer{font-size:12px;margin:7px 0 13px}
.trip-note{font-size:13px;margin:6px 0;white-space:pre-wrap;color:var(--trip-muted)}
.trip-actions{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-top:12px}
.trip-button{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:40px;padding:8px 13px;border:1px solid var(--trip-line);border-radius:10px;font:inherit;font-size:12px;line-height:1.3;font-weight:650;background:var(--trip-card);color:var(--trip-ink);cursor:pointer;text-align:center}
.trip-button:hover:not(:disabled){border-color:#71b9bf;background:#f1fafb}
.trip-button.is-primary{background:var(--trip-accent);border-color:var(--trip-accent);color:#fff}
.trip-button.is-primary:hover:not(:disabled){background:#076b70}
.rotezi-trip-panel button:disabled{opacity:.45;cursor:default}
.rotezi-trip-panel :is(button,input,select,textarea):focus-visible{outline:3px solid #1b9ba657;outline-offset:3px}
.trip-reorder{display:inline-flex;gap:4px;margin-left:auto}
.trip-reorder .trip-button{min-width:38px;font-size:17px;padding:6px}
.trip-empty{padding:28px 20px;border:1px dashed var(--trip-line);border-radius:16px;text-align:center;color:var(--trip-muted);background:var(--trip-card)}
.trip-empty p{max-width:410px;margin:0 auto 15px;font-size:14px}
.trip-empty p:last-child{margin-bottom:0}
.trip-ro{display:flex;justify-content:space-between;align-items:center;gap:20px;border-top:1px solid var(--trip-line);margin-top:28px;padding:23px 0 0}
.trip-ro strong{font-size:14px}
.trip-ro p{max-width:370px;margin:5px 0;color:var(--trip-muted);font-size:12px}
.trip-ro .trip-button{flex-shrink:0}
.trip-reset-tools{display:flex;flex-wrap:wrap;justify-content:flex-start;gap:8px;margin-top:20px}
.trip-reset-tools .trip-button{font-weight:500;color:var(--trip-muted)}
.trip-reset-confirm{padding:22px;border:1px solid var(--trip-line);border-radius:18px;background:var(--trip-card)}
.trip-reset-confirm h3{margin:0 0 12px;font-size:21px;line-height:1.3;letter-spacing:-.025em}
.trip-reset-confirm p{margin:10px 0;max-width:560px}
.trip-reset-confirm .trip-actions{margin-top:22px}
.trip-form-body{border:0;padding:0;margin:18px 0 0;min-width:0}
.trip-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px 11px}
.trip-field{display:flex;flex-direction:column;gap:6px;font-size:12px;font-weight:650;margin:0 0 13px;color:var(--trip-ink)}
.trip-fields>.trip-field{margin:0}
.trip-field input,.trip-field select,.trip-field textarea{width:100%;min-height:43px;font:inherit;font-weight:400;font-size:14px;padding:10px 11px;background:var(--trip-card);color:var(--trip-ink);border:1px solid var(--trip-line);border-radius:10px;box-sizing:border-box}
.trip-field input[readonly]{background:#edf3f8;color:var(--trip-muted)}
.trip-field textarea{resize:vertical;min-height:85px}
.trip-fields+.trip-field{margin-top:13px}
.trip-interest-field{border:0;padding:0;margin:20px 0;min-width:0}
.trip-interest-field legend{font-size:13px;font-weight:700;padding:0}
.trip-interest-field p{margin:4px 0 10px}
.trip-interest-options{display:flex;flex-wrap:wrap;gap:7px}
.trip-interest-options label{position:relative;cursor:pointer}
.trip-interest-options input{position:absolute;opacity:0;width:1px;height:1px}
.trip-interest-options span{display:block;padding:7px 11px;border:1px solid var(--trip-line);border-radius:9px;font-size:12px;background:var(--trip-card)}
.trip-interest-options input:checked+span{background:#e7f6f4;color:#076960;border-color:#57a69b}
.trip-interest-options input:focus-visible+span{outline:3px solid #1b9ba657;outline-offset:3px}
.trip-editor{border-color:#82c4c1;background:#f4fbfa;scroll-margin-top:20px}
html[data-theme="dark"] .rotezi-trip-backdrop{--trip-ink:#e7f4ff;--trip-muted:#94aabd;--trip-line:#294a64;--trip-bg:#08192b;--trip-card:#0d2942;--trip-accent:#087f85;color-scheme:dark}
html[data-theme="dark"] .trip-header{background:radial-gradient(at 100% 0,#1c6d9840,transparent 70%),#0d2942}
html[data-theme="dark"] .trip-tabs,html[data-theme="dark"] .trip-chips li,html[data-theme="dark"] .trip-field input[readonly]{background:#14334b;border-color:#294a64}
html[data-theme="dark"] .trip-badge{background:#1c3a55;color:#b8d3e7}
html[data-theme="dark"] .trip-badge.is-reservation,html[data-theme="dark"] .trip-interest-options input:checked+span{background:#104840;color:#a2e5d3}
html[data-theme="dark"] .trip-editor{background:#103239;border-color:#367775}
html[data-theme="dark"] .trip-button:hover:not(:disabled){background:#17445a}
html[data-theme="dark"] .trip-toolbar [data-trip-status].is-error{color:#ffb399}
@media(prefers-color-scheme:dark){
  html:not([data-theme="light"]) .rotezi-trip-backdrop{--trip-ink:#e7f4ff;--trip-muted:#94aabd;--trip-line:#294a64;--trip-bg:#08192b;--trip-card:#0d2942;--trip-accent:#087f85;color-scheme:dark}
  html:not([data-theme="light"]) .trip-header{background:radial-gradient(at 100% 0,#1c6d9840,transparent 70%),#0d2942}
  html:not([data-theme="light"]) .trip-tabs,html:not([data-theme="light"]) .trip-chips li,html:not([data-theme="light"]) .trip-field input[readonly]{background:#14334b;border-color:#294a64}
  html:not([data-theme="light"]) .trip-badge{background:#1c3a55;color:#b8d3e7}
  html:not([data-theme="light"]) .trip-badge.is-reservation,html:not([data-theme="light"]) .trip-interest-options input:checked+span{background:#104840;color:#a2e5d3}
  html:not([data-theme="light"]) .trip-editor{background:#103239;border-color:#367775}
  html:not([data-theme="light"]) .trip-button:hover:not(:disabled){background:#17445a}
  html:not([data-theme="light"]) .trip-toolbar [data-trip-status].is-error{color:#ffb399}
}
@media(max-width:600px){.trip-header{padding:calc(24px + env(safe-area-inset-top)) 18px 20px}.trip-content{padding:12px 16px calc(28px + env(safe-area-inset-bottom))}.trip-toolbar{padding:10px 16px 0}.trip-preferences,.trip-editor{padding:16px;border-radius:16px}.trip-fields{grid-template-columns:1fr}.trip-field input,.trip-field select,.trip-field textarea{font-size:16px}.trip-card{padding:15px}.trip-ro{align-items:stretch;flex-direction:column;gap:12px}.trip-ro .trip-button{align-self:flex-start}.trip-tabs button{font-size:12px}.trip-tabs button span{display:none}.trip-section-head{gap:10px}.trip-section-head>.trip-button{max-width:115px}.trip-button{min-height:42px}}
@media(prefers-reduced-motion:reduce){.rotezi-trip-panel{scroll-behavior:auto}}
.trip-saved-label{display:inline-flex;align-items:center;gap:6px;align-self:flex-start;padding:5px 9px;border:1px solid #b4dbc9;border-radius:8px;color:#176344;background:#edf8f2;font-size:11px;line-height:1.4;font-weight:700;margin:7px 0 3px;max-width:100%;box-sizing:border-box}
.trip-saved-label svg{width:14px;height:14px;flex:none}
html[data-theme="dark"] .trip-saved-label{color:#bdebd6;background:#15392d;border-color:#3c6e5b}
@media(prefers-color-scheme:dark){html:not([data-theme="light"]) .trip-saved-label{color:#bdebd6;background:#15392d;border-color:#3c6e5b}}

.transport-departure-filter{display:flex;align-items:end;gap:16px;flex-wrap:wrap;margin:18px 0 24px;padding:16px;border:1px solid var(--adaptive-border,#d6e4ef);border-radius:18px;background:var(--adaptive-surface,#fff);color:var(--adaptive-text,#132c45)}
.transport-departure-filter label{display:grid;gap:8px;flex:1 1 260px;max-width:460px;font-weight:700;color:var(--adaptive-text,#132c45)}
.transport-departure-filter select{width:100%;min-height:44px;border:1px solid var(--adaptive-border,#d6e4ef);border-radius:12px;padding:10px 12px;background:var(--adaptive-control,#f7fafe);color:var(--adaptive-text,#132c45);font:inherit}
.transport-departure-filter p{margin:0 0 10px;flex:1 1 220px;font-size:13px;line-height:1.5;color:var(--adaptive-muted,#5d748b)}
.exit-option-v08 em{color:var(--adaptive-accent,#126bd5)}
.exit-option-v08 small{color:var(--adaptive-muted,#5d748b)}
.transport-card[hidden],.transport-card .direction-block[hidden]{display:none!important}
@media(max-width:600px){.transport-departure-filter{gap:10px;padding:12px}.transport-departure-filter label{max-width:none}.transport-departure-filter p{margin:0}}
/* Approved journey experience: progressive planning, honest totals and visible next steps. */
.rotezi-trip-panel{width:min(850px,100%);scrollbar-gutter:stable}
.trip-header{position:sticky;top:0;z-index:3;padding-top:24px;padding-bottom:20px;backdrop-filter:blur(18px)}
.trip-header h2{font-size:34px;letter-spacing:-.04em}
.trip-preferences{padding:18px 20px;background:var(--trip-card);box-shadow:0 3px 18px #153b5710}
.trip-preferences .trip-section-head h3{font-size:16px}
.trip-preferences .trip-chips{margin-bottom:0}
.trip-tabs{gap:5px;border-radius:16px;padding:6px}
.trip-tabs button{min-height:46px;font-size:14px}
.trip-tabs button[aria-selected="true"]{box-shadow:0 3px 10px #05294a12}
.trip-next-step{border:1px solid var(--trip-line);border-radius:20px;padding:23px;margin-bottom:24px;background:linear-gradient(140deg,color-mix(in srgb,var(--trip-accent) 9%,var(--trip-card)),var(--trip-card))}
.trip-next-step h3{font-size:23px;line-height:1.25;letter-spacing:-.035em;margin:9px 0}
.trip-next-step p{font-size:14px;color:var(--trip-muted);margin:8px 0 18px;max-width:570px}
.trip-next-step .trip-button{min-height:44px}
.trip-plan-meta{display:flex;flex-wrap:wrap;gap:7px 16px;font-size:12px;color:var(--trip-muted);margin:7px 0 10px}
.trip-price-line{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:baseline;gap:6px 14px;margin:10px 0;font-size:13px;color:var(--trip-muted)}
.trip-price-line strong{color:var(--trip-ink);font-weight:750}
.trip-card{box-shadow:0 4px 14px #0d345006}
.trip-card .trip-note{max-height:90px;overflow:auto}
.trip-badge.is-pending{background:#fff3d8;color:#81560a}
.trip-schedule-warning{padding:11px 13px;border:1px solid #d6a24b60;border-radius:11px;background:#fff9ea;color:#79501c;font-size:12px;line-height:1.55;margin:8px 0}
.trip-budget{background:var(--trip-card);border:1px solid var(--trip-line);border-radius:18px;margin:0 0 23px;overflow:hidden}
.trip-budget summary{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:18px 20px;cursor:pointer;color:var(--trip-ink);list-style:none;position:relative}
.trip-budget summary::after{content:'＋';font-size:20px;color:var(--trip-muted);flex-shrink:0}
.trip-budget[open] summary::after{content:'−'}
.trip-budget summary>span:first-child{flex:1}
.trip-budget summary>span:nth-child(2){text-align:right;font-size:18px;font-weight:750;white-space:nowrap}
.trip-budget summary small{display:block;font-size:11px;font-weight:450;color:var(--trip-muted);margin-top:3px;white-space:normal}
.trip-budget summary strong{font-size:15px}
.trip-budget summary:focus-visible{outline:3px solid #1b9ba657;outline-offset:-4px}
.trip-budget-body{padding:0 20px 18px;font-size:13px;border-top:1px solid var(--trip-line)}
.trip-budget-row{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;border-top:1px solid var(--trip-line);padding:12px 0}
.trip-budget-row>span{max-width:72%;overflow-wrap:anywhere}
.trip-budget-row small{display:block;font-size:11px;color:var(--trip-muted);margin-top:4px}
.trip-budget-row>strong{font-size:12px;text-align:right;max-width:38%}
.trip-share-actions{display:flex;gap:9px;flex-wrap:wrap;padding:16px 0;border-top:1px solid var(--trip-line)}
.trip-day>h3{display:flex;align-items:center;gap:10px;margin-top:26px}
.trip-day>h3::before{content:'';display:block;width:8px;height:8px;border-radius:50%;background:var(--trip-accent)}
.trip-day>.trip-card{margin-left:5px}
html[data-theme="dark"] .trip-badge.is-pending{color:#ffdc93;background:#513b17}
html[data-theme="dark"] .trip-schedule-warning{color:#eed3a5;background:#332b1c;border-color:#685332}
@media(prefers-color-scheme:dark){html:not([data-theme="light"]) .trip-badge.is-pending{color:#ffdc93;background:#513b17}html:not([data-theme="light"]) .trip-schedule-warning{color:#eed3a5;background:#332b1c;border-color:#685332}}
@media(max-width:600px){
 .trip-header{padding:calc(12px + env(safe-area-inset-top)) 14px 12px;gap:10px;align-items:center}.trip-header h2{font-size:22px;margin:2px 0 4px}.trip-header p{font-size:11px;line-height:1.35}.trip-header .trip-eyebrow{font-size:9px;letter-spacing:.08em}.trip-header #trip-close{min-width:44px;min-height:44px}
 .trip-toolbar:has(>[data-trip-status]:empty):not(:has(>.trip-button)){display:none}
 .trip-content{padding-left:14px;padding-right:14px}.trip-preferences{padding:16px}.trip-tabs button{font-size:12px;min-height:44px}
 .trip-next-step{padding:19px 17px}.trip-next-step h3{font-size:23px}.trip-next-step p{font-size:13px}
 .trip-budget summary{padding:15px 13px;gap:10px}.trip-budget summary strong{font-size:13px}.trip-budget summary>span:nth-child(2){font-size:16px}
 .trip-budget-body{padding-left:13px;padding-right:13px}.trip-actions .trip-button{flex-grow:1;min-height:44px}.trip-reorder{margin-left:0}.trip-reorder .trip-button{min-width:44px}
 .trip-price-line{display:block}.trip-price-line strong{display:block;margin-top:5px}.trip-share-actions .trip-button{flex:1}.trip-day>.trip-card{margin-left:0}
}

/* Prevent intrinsic input, budget and long-title widths from exceeding narrow iPhones. */
.rotezi-trip-panel,.rotezi-trip-panel *{box-sizing:border-box}
.rotezi-trip-panel{min-width:0;max-width:100vw;overflow-x:hidden}
.rotezi-trip-panel :is(.trip-header>div,.trip-section-head>div,.trip-field,.trip-budget summary>span,.trip-budget-row>span){min-width:0}
.rotezi-trip-panel :is(input,select,textarea){min-width:0;max-width:100%}
.rotezi-trip-panel :is(h2,h3,p,label,button){overflow-wrap:anywhere}
/* Pair short planning fields without squeezing lodging, origin or other free text. */
@media(max-width:600px){
 .rotezi-trip-panel .trip-fields{grid-template-columns:repeat(2,minmax(0,1fr))}
 .rotezi-trip-panel .trip-fields>.trip-field{grid-column:1/-1;justify-content:flex-end}
 .rotezi-trip-panel .trip-fields>.trip-field:has(>input:is([type="date"],[type="time"],[type="number"])){grid-column:auto}
 .rotezi-trip-panel .trip-field input:is([type="date"],[type="time"]){display:block;appearance:none;-webkit-appearance:none;inline-size:100%;min-inline-size:0;max-inline-size:100%;padding-inline:8px;text-align:left}
 .rotezi-trip-panel .trip-field input:is([type="date"],[type="time"])::-webkit-date-and-time-value{min-width:0;text-align:left}
 .rotezi-trip-panel .trip-field input:is([type="date"],[type="time"])::-webkit-datetime-edit{min-width:0;padding:0}
}
@media(max-width:359px){
 .rotezi-trip-panel .trip-fields>.trip-field:has(>input:is([type="date"],[type="time"])){grid-column:1/-1}
}
@media(max-width:430px){.trip-budget summary{flex-wrap:wrap}.trip-budget summary>span:first-child{flex:1 1 120px}.trip-budget summary>span:nth-child(2){white-space:normal}.trip-budget-row{gap:10px}.trip-budget-row>strong{overflow-wrap:anywhere}.trip-toolbar{min-width:0}.trip-toolbar>p{min-width:0}.trip-toolbar>.trip-button{flex-shrink:0}}
