:root {
    color-scheme: light;
    --blue: #2f2f2f;
    --blue-dark: #171717;
    --bubble: #f4f4f4;
    --ink: #212121;
    --muted: #6b6b6b;
    --line: #e5e5e5;
    --chip: #f7f7f7;
    --surface: #f7f7f8;
    --success: #2f8a5a;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; background: #fff; color: var(--ink); font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, Helvetica, sans-serif; }
button, input, textarea { font: inherit; }
.chat-page { height: 100vh; height: var(--chat-viewport-height, 100dvh); overflow: hidden; }
.assistant-shell { width: 100%; height: 100%; min-height: 0; display: flex; flex-direction: column; }
.top-controls { z-index: 4; width: min(960px, 100%); margin: 0 auto; min-height: 58px; padding: 12px 22px 8px; display: flex; align-items: center; gap: 12px; background: rgba(255, 255, 255, .8); backdrop-filter: blur(14px); }
.top-controls.top-controls-empty { min-height: 12px; padding-top: 0; padding-bottom: 0; }
.return-link { flex: 0 0 auto; color: var(--muted); font-size: 13px; text-decoration: none; }
.return-link:hover { color: var(--ink); }
.selection-toggle { margin-left: auto; border: 0; border-radius: 18px; padding: 7px 12px; background: var(--chip); color: var(--ink); cursor: pointer; font-size: 12px; }
.selection-toggle span { margin-left: 5px; color: var(--muted); }
.status { margin-left: auto; color: var(--muted); font-size: 12px; }
.selection-toggle:not([hidden]) + .status { margin-left: 0; }
.status.ready { color: #2d7a4c; }
.status.error { color: #a33a30; }
.top-controls .selection-toggle, .top-controls .status { display: none !important; }
.selection { width: min(920px, calc(100% - 40px)); margin: 0 auto 8px; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: #fafafa; }
.selection form { display: flex; flex-wrap: wrap; align-items: end; gap: 10px; }
.selection label { display: grid; gap: 5px; color: var(--muted); font-size: 12px; }
.selection input { min-height: 35px; border: 1px solid #cbd0d5; border-radius: 8px; padding: 7px 9px; background: #fff; color: var(--ink); }
.selection button { min-height: 35px; border: 0; border-radius: 8px; padding: 7px 15px; background: var(--ink); color: #fff; cursor: pointer; }
#selection-status { align-self: center; color: var(--muted); font-size: 12px; }
.messages { flex: 1 1 auto; min-height: 0; width: 100%; padding: 28px 28px 22px; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; scrollbar-gutter: stable both-edges; scrollbar-width: thin; scrollbar-color: #b8b8b8 transparent; scroll-behavior: auto; overflow-anchor: none; }
/* Reserve keeps the current turn stable through completion; real content/manual scrolling reclaims it. */
.messages::after { content: ""; display: block; height: var(--response-tail-space, 0px); pointer-events: none; }
.home-welcome { width: min(680px, 100%); min-height: 46vh; margin: 0 auto; display: grid; place-content: center; justify-items: center; text-align: center; animation: welcome-in .35s ease-out both; }
.home-welcome-icon { display: grid; width: 48px; height: 48px; margin-bottom: 18px; place-items: center; border: 1px solid #d8e8ee; border-radius: 15px; background: linear-gradient(145deg, #fff, #edf8fb); color: var(--blue); box-shadow: 0 10px 28px rgba(24, 92, 116, .11); font-size: 22px; }
.home-welcome h1 { margin: 0; color: #1f2c34; font-size: clamp(26px, 4vw, 38px); font-weight: 650; letter-spacing: -.025em; }
.home-welcome p { max-width: 580px; margin: 13px 0 0; color: var(--muted); font-size: 15px; line-height: 1.6; }
@keyframes welcome-in { from { opacity: 0; transform: translateY(7px); } }
.message-turn { width: min(100%, 790px); margin: 0 auto 22px; }
.message-turn.user-turn { display: flex; justify-content: flex-end; }
.assistant-turn + .user-turn { margin-top: 36px; }
.message { font-size: 15px; line-height: 1.62; white-space: pre-wrap; overflow-wrap: anywhere; }
.message.user { width: fit-content; max-width: min(78%, 660px); padding: 13px 18px; border: 1px solid #ececec; border-radius: 20px 20px 5px 20px; background: var(--bubble); color: var(--ink); box-shadow: none; }
.message.assistant { padding: 2px 4px; background: transparent; }
.message.assistant.progress { width: fit-content; padding: 8px 4px; color: var(--muted); font-size: 13px; }
.message.assistant.progress::after { content: ""; display: inline-block; width: 22px; height: 7px; margin-left: 8px; background: radial-gradient(circle, var(--blue) 2px, transparent 3px) 0 50% / 7px 7px repeat-x; vertical-align: 0; animation: assistant-dots 1s ease-in-out infinite; }
@keyframes assistant-dots { 50% { opacity: .28; transform: translateY(-1px); } }
.message.rich { white-space: normal; }
.message.rich p { margin: 0 0 10px; }
.message.rich p:last-child { margin-bottom: 0; }
.message.rich h2, .message.rich h3 { margin: 16px 0 7px; color: var(--ink); line-height: 1.35; }
.message.rich h2:first-child, .message.rich h3:first-child { margin-top: 0; }
.message.rich h2 { font-size: 16px; }
.message.rich h3 { font-size: 15px; }
.message.rich ul, .message.rich ol { margin: 7px 0 13px; padding-left: 23px; }
.message.rich li { padding-left: 3px; }
.message.rich li + li { margin-top: 7px; }
.message.rich strong { font-weight: 700; }
.message.rich code { padding: 2px 5px; border-radius: 5px; background: #f0f2f3; font-family: Consolas, monospace; font-size: .9em; }
.message.streaming::after { content: ""; display: inline-block; width: 7px; height: 1.05em; margin-left: 3px; vertical-align: -2px; background: var(--ink); animation: stream-caret .8s steps(1) infinite; }
@keyframes stream-caret { 50% { opacity: 0; } }
.message.assistant.warning { border-left: 3px solid #d99752; padding: 4px 0 4px 14px; color: #684929; }
.message h2 { margin: 0 0 8px; font-size: 15px; }
.message dl { margin: 10px 0 0; display: grid; grid-template-columns: minmax(100px, 1fr) 2.5fr; gap: 6px 12px; font-size: 13px; }
.message dt { color: var(--muted); }
.message dd { margin: 0; }
.message a { color: var(--blue); }
.progress { color: var(--muted); }
.tour-comparison-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.tour-comparison-actions .product-card-action { min-height: 32px; padding: 5px 10px; font-size: 11px; }
.tour-comparison { width: min(100%, 790px); margin: 8px auto 24px; overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: 0 10px 30px rgba(28, 70, 88, .07); }
.tour-comparison-scroll { overflow-x: auto; }
.tour-comparison-scroll:focus-visible { outline: 2px solid var(--blue); outline-offset: -2px; }
.tour-comparison-cell-content.is-collapsed { max-height: 9em; overflow: hidden; }
.tour-comparison-expand { display: block; margin-top: 8px; padding: 2px 0; border: 0; background: transparent; color: var(--blue-dark); font: inherit; font-weight: 600; cursor: pointer; }
.tour-comparison-note { margin: 0; padding: 12px 14px; color: var(--muted); font-size: 12px; line-height: 1.5; border-top: 1px solid var(--line); }
.tour-comparison table { width: 100%; min-width: 720px; border-collapse: collapse; table-layout: fixed; font-size: 13px; line-height: 1.45; }
.tour-comparison th, .tour-comparison td { padding: 13px 14px; border-right: 1px solid #edf1f3; border-bottom: 1px solid #edf1f3; vertical-align: top; text-align: left; overflow-wrap: anywhere; }
.tour-comparison tr:last-child th, .tour-comparison tr:last-child td { border-bottom: 0; }
.tour-comparison th:last-child, .tour-comparison td:last-child { border-right: 0; }
.tour-comparison thead th { background: #f7fafb; color: var(--ink); font-size: 14px; }
.tour-comparison thead th:first-child, .tour-comparison tbody th { width: 126px; color: var(--muted); font-weight: 650; }
.tour-comparison thead th:first-child, .tour-comparison tbody th { position: sticky; left: 0; z-index: 1; background: #f7fafb; }
.tour-comparison thead a { display: block; color: var(--ink); text-decoration: none; }
.tour-comparison thead a:hover { color: var(--blue); }
.tour-comparison-media { display: block; width: 100%; height: 116px; margin: 0 0 10px; overflow: hidden; border-radius: 11px; background: #eef1f3; }
.tour-comparison-media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.tour-comparison-media:hover img { opacity: .94; }
.tour-comparison-current { display: block; width: fit-content; margin-bottom: 6px; padding: 3px 7px; border-radius: 10px; background: #e7f6fb; color: var(--blue-dark); font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.tour-comparison-list { margin: 0; padding-left: 17px; display: grid; gap: 7px; }
.tour-comparison-list li { padding-left: 2px; line-height: 1.4; }
.tour-comparison-tag-groups { display: grid; gap: 10px; }
.tour-comparison-tag-group { display: grid; gap: 5px; }
.tour-comparison-tag-title { color: var(--ink); font-size: 12px; line-height: 1.3; }
.tour-comparison-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.tour-comparison-tag { display: inline-flex; padding: 3px 7px; border-radius: 7px; background: #f3f6fb; color: var(--ink); font-size: 11px; line-height: 1.35; }
.booking-card { position: relative; width: min(100%, 790px); margin: 6px auto 26px; padding: 24px; overflow: hidden; border: 1px solid #d7e4e9; border-radius: 22px; background: linear-gradient(180deg, #fbfeff 0, #fff 120px); box-shadow: 0 16px 42px rgba(28, 70, 88, .11); }
.booking-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: linear-gradient(90deg, var(--blue), #55b48a 62%, #f0a45b); }
.booking-eyebrow { display: flex; align-items: center; gap: 7px; margin-bottom: 7px; color: var(--blue-dark); font-size: 11px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.booking-eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #43a873; box-shadow: 0 0 0 3px rgba(67, 168, 115, .12); }
.booking-card h2 { margin: 0 0 7px; font-size: 19px; line-height: 1.35; }
.booking-card > p { margin: 0 0 20px; color: #53616a; font-size: 14px; line-height: 1.55; }
.booking-card-toolbar { display: flex; justify-content: flex-end; margin: -10px 0 14px; }
.booking-card-toggle { min-height: 32px; padding: 5px 12px; border: 1px solid #d5e3e8; border-radius: 999px; background: #fff; color: #4c626c; font: inherit; font-size: 12px; font-weight: 650; cursor: pointer; }
.booking-card-toggle:hover { border-color: #9fc8d6; background: #f4fafc; color: var(--blue-dark); }
.booking-card-collapsed { padding-top: 20px; padding-bottom: 16px; }
.booking-card-collapsed > p, .booking-card-collapsed > form, .booking-card-collapsed > .payment-order-card { display: none; }
.booking-card-collapsed h2 { margin-bottom: 4px; padding-right: 0; font-size: 16px; }
.booking-card-collapsed .booking-card-toolbar { margin: 8px 0 0; justify-content: flex-start; }
.booking-card-previous { opacity: .92; box-shadow: 0 8px 24px rgba(28, 70, 88, .07); }
.booking-card-form { display: block; }
.booking-card-form label { display: grid; gap: 6px; color: #5b6269; font-size: 12px; }
.booking-card-form select, .booking-card-form input { width: 100%; min-height: 44px; border: 1px solid #cbd3d8; border-radius: 10px; padding: 9px 11px; color: var(--ink); background: #fff; outline: none; }
.booking-card-form select:focus, .booking-card-form input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(23, 125, 166, .12); }
.booking-card-form button { min-height: 42px; border: 0; border-radius: 22px; padding: 9px 18px; background: var(--ink); color: #fff; cursor: pointer; }
.booking-card-form button:hover:not(:disabled) { filter: brightness(.96); }
.booking-card-form button:disabled { opacity: .5; cursor: not-allowed; }
.booking-overview { display: flex; flex-wrap: wrap; gap: 9px; margin: 0 0 18px; }
.booking-overview span { display: grid; gap: 3px; min-width: 138px; padding: 11px 14px; border: 1px solid #d9e5e9; border-radius: 12px; background: #fff; box-shadow: 0 3px 10px rgba(38, 71, 84, .04); }
.booking-overview span:last-child { min-width: 190px; }
.booking-overview small { color: var(--muted); font-size: 11px; }
.booking-overview strong { color: var(--ink); font-size: 14px; font-weight: 700; }
.booking-progress { margin: 0 0 20px; padding: 0; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 8px; list-style: none; }
.booking-progress li { position: relative; min-width: 0; }
.booking-progress button { width: 100%; min-height: 78px; display: grid; grid-template-columns: 32px minmax(0, 1fr); align-items: center; gap: 9px; padding: 10px; border: 1px solid #d8e0e4; border-radius: 12px; background: #f8fafb; color: #657079; line-height: 1.3; text-align: left; white-space: normal; }
.booking-progress-number { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: #e7ecef; color: #515b63; font-size: 14px; font-weight: 700; }
.booking-progress-copy { display: grid; gap: 3px; min-width: 0; }
.booking-progress-copy strong { color: #343c43; font-size: 14px; line-height: 1.2; }
.booking-progress-copy small { color: #68737c; font-size: 12px; line-height: 1.3; }
.booking-progress li.active button { border-color: var(--blue); background: #f2fafd; box-shadow: 0 0 0 2px rgba(23, 125, 166, .08); }
.booking-progress li.active .booking-progress-number { background: var(--blue); color: #fff; }
.booking-progress li.active .booking-progress-copy strong { color: var(--ink); }
.booking-progress li.complete button { border-color: #a9cfba; background: #f5fbf7; }
.booking-progress li.complete .booking-progress-number { background: #5c9b76; color: #fff; }
.booking-progress li.complete .booking-progress-copy strong { color: #397355; }
.booking-step-host { min-height: 258px; }
.booking-step { padding: 20px; border: 1px solid #dee7ea; border-radius: 17px; background: var(--surface); }
.booking-step[hidden] { display: none; }
.booking-step h3 { margin: 0 0 5px; font-size: 17px; }
.booking-step-guide { margin: 0 0 18px; color: var(--muted); font-size: 13px; line-height: 1.45; }
.booking-step-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; align-items: start; }
.booking-step-fields > label:first-of-type:nth-last-of-type(3) { grid-column: 1 / -1; }
.booking-date-fallback { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.booking-calendar { grid-column: 1 / -1; padding: 16px; border: 1px solid #d9e1e5; border-radius: 13px; background: #fff; }
.booking-calendar-header { display: grid; grid-template-columns: 38px 1fr 38px; align-items: center; margin-bottom: 12px; }
.booking-calendar-header strong { text-align: center; font-size: 16px; }
.booking-card-form .booking-calendar-header button { min-height: 38px; padding: 0; border-radius: 50%; background: #f0f3f4; color: var(--ink); font-size: 22px; }
.booking-calendar-promotion { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; padding: 10px 12px; border: 1px solid #f2c9ab; border-radius: 11px; background: #fff8f3; color: #75401b; font-size: 13px; line-height: 1.4; }
.booking-calendar-promotion[hidden] { display: none; }
.booking-calendar-promotion-badge { flex: 0 0 auto; padding: 3px 9px; border: 1px solid #f0a66f; border-radius: 999px; background: #fff; color: #e65c00; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .02em; }
.booking-calendar-promotion-copy { min-width: 0; }
.booking-calendar-week, .booking-calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.booking-calendar-week { margin-bottom: 7px; color: #5f6972; font-size: 12px; font-weight: 600; text-align: center; }
.booking-calendar-grid > span:not(.booking-calendar-day) { min-height: 56px; }
.booking-card-form .booking-calendar-day, .booking-calendar-day.unavailable { position: relative; min-width: 0; min-height: 58px; padding: 6px 3px; border: 1px solid transparent; border-radius: 10px; background: #f5f7f8; color: var(--ink); text-align: center; }
.booking-card-form .booking-calendar-day { display: grid; place-content: center; gap: 1px; }
.booking-card-form .booking-calendar-day:hover { border-color: #a7ccd9; background: #f0f9fc; filter: none; }
.booking-card-form .booking-calendar-day.deal { border-color: #efc39f; background: #fff8f2; }
.booking-card-form .booking-calendar-day.deal:hover { border-color: #e97927; background: #fff2e8; }
.booking-card-form .booking-calendar-day.selected { border-color: var(--blue); background: var(--blue); color: #fff; }
.booking-calendar-day-line { display: flex; align-items: center; justify-content: center; gap: 2px; }
.booking-calendar-day strong { font-size: 15px; line-height: 1.2; }
.booking-calendar-day small { font-size: 11px; font-weight: 600; line-height: 1.2; }
.booking-calendar-day.deal small, .booking-calendar-deal-mark { color: #ef6200; }
.booking-calendar-deal-mark { font-size: 13px; line-height: 1; }
.booking-calendar-day.selected small, .booking-calendar-day.selected .booking-calendar-deal-mark { color: #fff; }
.booking-calendar-day.unavailable { display: grid; place-content: center; color: #9ca6ae; font-size: 13px; background: transparent; }
.booking-inline-note { grid-column: 1 / -1; margin: 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.booking-card-form .booking-option-help { display: inline-flex; min-height: 30px; align-items: center; gap: 5px; margin: 0 0 0 12px; padding: 4px 10px; border: 1px solid #cbdfe6; border-radius: 999px; background: #fff; color: #176b89; font-size: 11px; font-weight: 700; line-height: 1.2; cursor: pointer; white-space: nowrap; }
.booking-card-form .booking-option-help:hover, .booking-card-form .booking-option-help.active { border-color: #8fc4d5; background: #eef8fb; color: var(--blue-dark); filter: none; }
.booking-option-guide { margin: 0 0 10px; padding: 14px 15px; border: 1px solid #cfe2e8; border-radius: 13px; background: linear-gradient(145deg, #f8fcfd, #fff); color: #33444d; box-shadow: 0 7px 20px rgba(28, 83, 101, .06); }
.booking-option-guide[hidden] { display: none; }
.booking-option-guide > strong { font-size: 14px; }
.booking-option-guide > p { margin: 5px 0 10px; color: #60717a; font-size: 12px; line-height: 1.45; }
.booking-option-guide ul { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.booking-option-guide li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 8px; padding-top: 8px; border-top: 1px solid #e4edef; }
.booking-option-guide li b { font-size: 12px; line-height: 1.4; }
.booking-option-guide li small { grid-column: 1 / -1; color: #65747c; font-size: 11px; line-height: 1.4; }
.booking-option-guide-selected { align-self: start; padding: 2px 7px; border-radius: 999px; background: #e2f4ea; color: #31724e; font-size: 10px; font-weight: 750; }
.booking-option-guide .booking-option-guide-prompt { margin-bottom: 0; color: #356275; }
.booking-passenger-counts { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.booking-passenger-child-ages { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, minmax(100px, 1fr)); gap: 10px; }
.booking-room-list, .booking-traveler-list { grid-column: 1 / -1; display: grid; gap: 10px; }
.booking-traveler-list { gap: 14px; }
.booking-room { display: grid; grid-template-columns: 74px repeat(3, minmax(100px, 1fr)) auto; gap: 12px; align-items: end; padding: 13px; border: 1px solid #e1e6e9; border-radius: 12px; background: #fff; }
.booking-room h4 { align-self: center; margin: 0; font-size: 13px; }
.booking-room-child-ages { grid-column: 2 / -1; display: grid; grid-template-columns: repeat(3, minmax(110px, 1fr)); gap: 10px; padding-top: 2px; }
.booking-share-room { display: flex !important; grid-template-columns: none !important; align-items: center; align-self: center; gap: 7px !important; min-height: 44px; color: var(--ink) !important; white-space: nowrap; }
.booking-share-room input { width: 17px; min-height: 17px; margin: 0; accent-color: var(--blue); }
.booking-room-actions { grid-column: 1 / -1; display: flex; align-items: center; gap: 9px; }
.booking-card-form .booking-room-actions button { min-height: 38px; padding: 7px 14px; border: 1px solid #b9d8e3; border-radius: 8px; background: #fff; color: var(--blue); }
.booking-room-summary { margin-left: 5px; font-size: 13px; }
.booking-option-field { grid-column: 1 / -1; min-width: 0; margin: 0; padding: 0; border: 0; }
.booking-option-field legend { width: 100%; margin-bottom: 8px; display: flex; align-items: center; justify-content: space-between; gap: 10px; color: #4b5158; font-size: 12px; font-weight: 700; }
.booking-option-description { margin: -2px 0 8px; color: var(--muted); font-size: 11px; }
.booking-option-list { display: grid; gap: 8px; }
.booking-option-choice { position: relative; display: grid !important; grid-template-columns: 20px 1fr; gap: 10px !important; align-items: start; padding: 11px 12px; border: 1px solid #dfe5e8; border-radius: 12px; background: #fff; color: var(--ink) !important; cursor: pointer; }
.booking-option-choice:has(input:checked) { border-color: var(--blue); background: #f5fbfd; box-shadow: 0 0 0 2px rgba(23, 125, 166, .08); }
.booking-option-choice input { width: 17px; min-height: 17px; margin: 2px 0 0; accent-color: var(--blue); }
.booking-option-copy { display: grid; gap: 3px; min-width: 0; }
.booking-option-copy strong { font-size: 13px; line-height: 1.35; }
.booking-option-copy small { max-height: 3.9em; overflow: hidden; color: var(--muted); font-size: 11px; line-height: 1.3; }
.booking-price-preview { grid-column: 1 / -1; margin-top: 6px; overflow: hidden; border: 1px solid #d8e3e8; border-radius: 15px; background: #f5f9fb; }
.booking-price-preview-header { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 16px; }
.booking-price-preview-header > span { display: grid; gap: 3px; }
.booking-price-preview-header small { color: #486378; font-size: 11px; font-weight: 700; letter-spacing: .02em; }
.booking-price-preview-header > span > strong { color: #f06400; font-size: 26px; line-height: 1.15; }
.booking-price-preview.pending .booking-price-preview-header > span > strong,
.booking-price-preview.loading .booking-price-preview-header > span > strong { color: #768089; font-size: 17px; }
.booking-card-form .booking-price-toggle { min-height: 34px; padding: 6px 11px; border-radius: 17px; background: transparent; color: var(--blue); font-size: 12px; }
.booking-price-message { margin: -8px 16px 14px; color: var(--muted); font-size: 12px; line-height: 1.4; }
.booking-price-preview.error .booking-price-message { color: #8a5528; }
.booking-price-breakdown { padding: 13px 16px 15px; border-top: 1px solid #dbe4e8; background: #fff; }
.booking-price-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px; padding: 8px 0; color: var(--ink); font-size: 13px; }
.booking-price-row > span { display: grid; gap: 3px; }
.booking-price-row > span small { color: var(--muted); font-size: 11px; font-weight: 400; line-height: 1.35; }
.booking-price-row.total { margin-top: 5px; padding-top: 13px; border-top: 1px dashed #cfd9de; font-size: 14px; }
.booking-activity-fields { display: grid; grid-template-columns: minmax(130px, 1fr) 70px 70px; gap: 6px; margin-top: 7px; }
.booking-activity-fields input, .booking-activity-fields select { min-height: 34px; padding: 5px 7px; }
.booking-traveler-room { overflow: hidden; border: 1px solid #dce4e8; border-radius: 14px; background: #fff; }
.booking-traveler-room-header { display: flex; align-items: baseline; gap: 10px; padding: 13px 14px 11px; border-bottom: 1px solid #e5eaed; background: #f6f9fa; }
.booking-traveler-room-header strong { color: var(--ink); font-size: 14px; }
.booking-traveler-room-header span { color: var(--muted); font-size: 12px; }
.booking-traveler-room-rows { display: grid; }
.booking-traveler-row { display: grid; grid-template-columns: 76px 82px repeat(2, minmax(0, 1fr)); gap: 10px; align-items: end; padding: 12px; border: 1px solid #e1e6e9; border-radius: 12px; background: #fff; }
.booking-traveler-room .booking-traveler-row { border: 0; border-bottom: 1px solid #edf0f2; border-radius: 0; }
.booking-traveler-room .booking-traveler-row:last-child { border-bottom: 0; }
.booking-traveler-identity { align-self: center; color: var(--ink); font-size: 12px; font-weight: 700; }
.booking-contact-grid { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.booking-phone-field .iti { width: 100%; color: var(--ink); font-size: 13px; }
.booking-card-form .booking-phone-field .iti__selected-country { min-height: 0; border: 0; border-radius: 0; padding: 0; background: transparent; color: var(--ink); }
.booking-card-form .booking-phone-field .iti__selected-country:hover { filter: none; }
.iti--detached-country-selector { z-index: 30; }
.iti__country-selector { max-width: min(360px, calc(100vw - 28px)); border: 1px solid #cbd3d8; border-radius: 10px; box-shadow: 0 12px 34px rgba(30, 48, 58, .18); color: var(--ink); font-size: 13px; }
.iti__search-input { min-height: 42px; border: 0; border-radius: 9px 9px 0 0; outline: none; font-size: 13px; }
.iti__country-list { max-height: 250px; }
.iti__country { min-height: 38px; }
.booking-card-form .booking-text-button { grid-column: 1 / -1; justify-self: start; min-height: 0; padding: 2px 0; border-radius: 0; background: transparent; color: var(--blue); font-size: 12px; }
.booking-controls { display: flex; justify-content: flex-end; gap: 9px; margin-top: 14px; }
.booking-controls button.secondary, .booking-confirmation button.secondary { background: #edf0f2; color: var(--ink); }
.booking-controls button[hidden] { display: none; }
.booking-card-note, .booking-card-status { margin: 10px 2px 0; color: var(--muted); font-size: 12px; line-height: 1.45; }
.booking-card-status { min-height: 18px; color: #8a5528; }
.booking-draft-status { min-height: 15px; margin: 3px 2px 0; color: #5e7b6b; font-size: 10px; line-height: 1.4; text-align: right; }
.booking-draft-status[hidden] { display: none; }
.booking-confirmation { margin-top: 16px; padding: 16px; border: 1px solid #b9d8c6; border-radius: 14px; background: #f7fcf9; }
.booking-confirmation h3 { margin: 0 0 8px; }
.booking-confirmation p { margin: 8px 0 12px; color: #555b62; font-size: 13px; line-height: 1.45; }
.booking-confirmation button { margin: 10px 8px 0 0; }
.booking-confirmation button.secondary { background: #e8eaec; color: var(--ink); }
.booking-confirmation a { display: inline-block; margin-top: 8px; color: var(--blue); font-weight: 600; }
.payment-order-card { display: grid; gap: 16px; padding: 20px; border-color: #cbdde4; background: linear-gradient(145deg, #fff, #f5fafb); box-shadow: 0 12px 30px rgba(25, 79, 99, .08); }
.payment-order-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.payment-order-heading h3 { margin: 2px 0 0; font-size: 20px; }
.payment-order-eyebrow { color: #177da6; font-size: 11px; font-weight: 800; letter-spacing: .12em; }
.payment-status { flex: 0 0 auto; padding: 7px 12px; border-radius: 999px; font-size: 12px; font-weight: 750; letter-spacing: .02em; }
.payment-status.pending { background: #fff1d8; color: #8a5710; }
.payment-status.paid { background: #dff4e7; color: #246c42; }
.payment-status.review { background: #e6f0f8; color: #315f7c; }
.payment-status.cancelled { background: #f7e4e4; color: #8b3636; }
.payment-order-prompt { display: grid; grid-template-columns: 38px 1fr; gap: 12px; align-items: start; padding: 14px; border: 1px solid #ead8b6; border-radius: 12px; background: #fffaf1; }
.payment-order-prompt.paid { border-color: #bfddc9; background: #f4fbf6; }
.payment-order-prompt-icon { display: grid; width: 36px; height: 36px; place-content: center; border-radius: 50%; background: #fff; box-shadow: 0 2px 8px rgba(68, 60, 40, .1); font-size: 17px; }
.payment-order-prompt strong { font-size: 15px; line-height: 1.4; }
.booking-confirmation .payment-order-message { margin: 5px 0 0; color: #4f5c64; font-size: 13px; line-height: 1.55; }
.payment-order-details { overflow: hidden; border: 1px solid #d8e3e8; border-radius: 14px; background: #fff; }
.payment-order-details-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border-bottom: 1px solid #e3eaed; background: #f5f9fb; }
.payment-order-details-heading h4 { margin: 0; font-size: 17px; }
.payment-order-details-heading > strong { color: #f06400; font-size: 22px; }
.payment-order-tour { display: block; padding: 16px 16px 7px; font-size: 16px; line-height: 1.45; }
.payment-order-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding: 8px 16px 14px; }
.payment-order-facts > span { display: grid; gap: 4px; padding: 11px 12px; border: 1px solid #edf1f3; border-radius: 11px; background: #f7f9fa; }
.payment-order-facts small { color: #64717a; font-size: 12px; font-weight: 600; }
.payment-order-facts strong { color: var(--ink); font-size: 14px; line-height: 1.4; }
.payment-order-detail-group, .payment-order-price { padding: 15px 16px; border-top: 1px solid #e6ecef; }
.payment-order-detail-group > strong, .payment-order-price > strong { font-size: 14px; }
.payment-order-detail-group ul { display: grid; gap: 7px; margin: 9px 0 0; padding: 0; color: #35434c; font-size: 14px; line-height: 1.55; list-style: none; }
.payment-order-detail-group li { padding: 8px 10px; border-radius: 9px; background: #f7f9fa; overflow-wrap: anywhere; }
.payment-order-price > div { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px; padding-top: 12px; font-size: 14px; }
.payment-order-price > div > span { display: grid; gap: 2px; }
.payment-order-price > div > strong { font-size: 15px; }
.payment-order-price small { color: #64717a; font-size: 12px; font-weight: 400; line-height: 1.5; }
.payment-trust-panel { padding: 16px 17px; border: 1px solid #cde2d5; border-radius: 14px; background: #f4faf6; }
.payment-trust-panel > strong { color: #245f3d; font-size: 15px; }
.payment-trust-panel ul { display: grid; gap: 7px; margin: 10px 0 0; padding: 0; list-style: none; color: #3f594b; font-size: 13px; line-height: 1.5; }
.payment-trust-panel li::before { content: "✓"; margin-right: 7px; color: #3d8b5d; font-weight: 800; }
.payment-order-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.payment-order-actions .payment-primary-action, .payment-order-actions .payment-secondary-link, .payment-order-actions button { display: inline-flex; min-height: 44px; box-sizing: border-box; align-items: center; justify-content: center; margin: 0; padding: 10px 17px; border: 1px solid #ccd9df; border-radius: 999px; background: #fff; color: #25343d; font: inherit; font-size: 14px; font-weight: 700; line-height: 1.2; text-decoration: none; cursor: pointer; transition: transform .16s ease, border-color .16s ease, background .16s ease; }
.payment-order-actions .payment-primary-action { padding-left: 22px; padding-right: 22px; border-color: var(--ink); background: var(--ink); color: #fff; box-shadow: 0 7px 18px rgba(35, 42, 50, .18); }
.payment-order-actions .payment-secondary-action { background: #eef6f9; border-color: #c4dbe4; color: #1e596e; }
.payment-order-actions .payment-secondary-link { color: #176e91; }
.payment-order-actions .payment-primary-action:hover, .payment-order-actions button:hover, .payment-order-actions .payment-secondary-link:hover { transform: translateY(-1px); border-color: #83b7c9; }
.payment-order-actions .payment-primary-action:hover { border-color: #075f7b; background: #075f7b; }
.payment-order-actions button:focus-visible, .payment-order-ask button:focus-visible, .payment-order-actions a:focus-visible { outline: 3px solid rgba(8, 126, 164, .2); outline-offset: 2px; }
.booking-confirmation .payment-order-note { margin: -3px 0 0; color: #66737b; font-size: 12px; line-height: 1.5; }
.payment-order-ask { padding-top: 16px; border-top: 1px solid #dce6ea; }
.payment-order-ask > strong { font-size: 15px; }
.booking-confirmation .payment-order-ask > p { margin: 5px 0 11px; font-size: 13px; line-height: 1.5; }
.payment-order-ask > div { display: flex; flex-wrap: wrap; gap: 9px; }
.payment-order-ask > div button { min-height: 40px; margin: 0; padding: 9px 14px; border: 1px solid #d5e1e6; border-radius: 999px; background: #f5f8f9; color: #34464f; font: inherit; font-size: 13px; font-weight: 650; cursor: pointer; transition: border-color .16s ease, background .16s ease, transform .16s ease; }
.payment-order-ask > div button:hover { border-color: #a8cbd7; background: #edf7fa; transform: translateY(-1px); }
.input-dock { position: relative; flex: 0 0 auto; z-index: 5; display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 8px; width: min(960px, 100%); margin: 0 auto; padding: 8px 28px max(10px, env(safe-area-inset-bottom)); background: #fff; }
.scroll-latest { grid-column: 2; grid-row: 1; align-self: start; margin-top: 4px; width: 38px; height: 38px; border: 1px solid #d7e3e8; border-radius: 50%; background: #fff; color: var(--ink); cursor: pointer; font-size: 19px; }
.scroll-latest[hidden] { display: none; }
.quick-actions { grid-column: 1; grid-row: 1; min-width: 0; min-height: 0; max-width: 100%; padding: 2px 0 10px; display: flex; flex-wrap: nowrap; gap: 8px; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: thin; }
.composer, .disclaimer { grid-column: 1 / -1; }
.quick-actions:empty { display: none; }
.quick-actions button { flex: 0 0 auto; border: 1px solid #e0e7ea; border-radius: 20px; padding: 10px 16px; background: rgba(255, 255, 255, .96); color: #46545c; box-shadow: 0 4px 13px rgba(35, 64, 78, .06); cursor: pointer; white-space: nowrap; transition: transform .16s ease, border-color .16s ease, background .16s ease; }
.quick-actions button:hover { border-color: #bdbdbd; background: #f7f7f7; transform: translateY(-1px); }
.quick-actions button[data-action-id^="compare"]::before { content: "⇄"; margin-right: 8px; color: var(--ink); font-size: 15px; }
.composer { min-height: 64px; display: flex; align-items: center; gap: 10px; border: 1px solid #dedede; border-radius: 32px; padding: 8px 9px 8px 22px; background: rgba(255, 255, 255, .98); box-shadow: 0 8px 28px rgba(0, 0, 0, .10); transition: border-color .18s ease, box-shadow .18s ease; }
.composer:focus-within { border-color: #bdbdbd; box-shadow: 0 10px 30px rgba(0, 0, 0, .13); }
.composer textarea { flex: 1; min-width: 0; min-height: 28px; max-height: 130px; resize: none; border: 0; outline: 0; padding: 5px 0; color: var(--ink); line-height: 1.4; }
.composer textarea::placeholder { color: #7b8086; }
.composer button { width: 46px; height: 46px; flex: 0 0 46px; display: inline-flex; align-items: center; justify-content: center; padding: 0; border: 0; border-radius: 50%; background: #212121; color: #fff; box-shadow: none; font-size: 24px; line-height: 1; cursor: pointer; }
.composer button:disabled { background: #f0f1f2; color: #a8adb2; cursor: not-allowed; }
.composer button.stop { background: #212121; box-shadow: none; }
.composer button.stop span { display: block; width: 12px; height: 12px; border-radius: 2px; background: #fff; font-size: 0; transform: none; }
.home-empty .quick-actions { width: min(720px, 100%); margin: 0 auto; }
.home-empty .quick-actions button { min-height: 45px; padding-left: 19px; padding-right: 19px; }
.disclaimer { margin: 8px 0 0; color: #8a8f95; font-size: 10px; text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

@media (max-width: 640px) {
    .top-controls { min-height: 54px; padding: 8px 12px; gap: 9px; }
    .return-link { width: 26px; overflow: hidden; font-size: 0; text-align: center; white-space: nowrap; }
    .return-link::before { content: "←"; font-size: 18px; }
    .selection-toggle { padding: 7px 10px; }
    .selection-toggle span { display: none; }
    .messages { padding: 20px 16px 20px; }
    .message-turn { margin-bottom: 18px; }
    .message.user { max-width: 88%; }
    .tour-comparison { border-radius: 14px; }
    .tour-comparison table { min-width: 650px; }
    .booking-card { padding: 17px; border-radius: 16px; }
    .booking-overview span { min-width: calc(50% - 4px); }
    .booking-overview span:last-child { min-width: calc(50% - 5px); }
    .booking-progress { margin-left: -2px; margin-right: -2px; padding: 2px; overflow-x: auto; grid-auto-columns: minmax(142px, 1fr); }
    .booking-calendar { padding: 11px; }
    .booking-calendar-promotion { align-items: flex-start; flex-direction: column; gap: 6px; }
    .booking-calendar-week, .booking-calendar-grid { gap: 3px; }
    .booking-card-form .booking-calendar-day, .booking-calendar-day.unavailable { min-height: 52px; }
    .booking-calendar-day strong { font-size: 14px; }
    .booking-calendar-day small { font-size: 10px; }
    .booking-step { padding: 14px; }
    .booking-step-host { min-height: 320px; }
    .booking-step-fields, .booking-contact-grid { grid-template-columns: 1fr; }
    .booking-step-fields > label:first-of-type:nth-last-of-type(3) { grid-column: auto; max-width: none; }
    .booking-room, .booking-traveler-row { grid-template-columns: 1fr; gap: 9px; }
    .booking-room-child-ages { grid-column: auto; grid-template-columns: 1fr; }
    .booking-passenger-counts, .booking-passenger-child-ages { grid-template-columns: 1fr; }
    .booking-room-actions { align-items: flex-start; flex-wrap: wrap; }
    .booking-room-summary { width: 100%; margin-left: 0; }
    .booking-traveler-identity { padding-bottom: 2px; }
    .booking-activity-fields { grid-template-columns: 1fr 64px 64px; }
    .booking-controls { position: sticky; bottom: 0; padding-top: 8px; background: #fff; }
    .payment-order-heading { align-items: flex-start; flex-direction: column; }
    .payment-order-card { padding: 15px; }
    .payment-order-facts { grid-template-columns: 1fr; }
    .payment-order-details-heading { align-items: flex-start; }
    .payment-order-prompt { grid-template-columns: 32px 1fr; }
    .payment-order-prompt-icon { width: 32px; height: 32px; }
    .payment-order-actions { align-items: stretch; flex-direction: column; }
    .payment-order-actions .payment-primary-action, .payment-order-actions button { width: 100%; box-sizing: border-box; text-align: center; }
    .payment-order-actions .payment-secondary-link { align-self: center; margin-left: 0; }
    .payment-order-ask > div { flex-direction: column; }
    .payment-order-ask > div button { width: 100%; }
    .input-dock { padding-left: 12px; padding-right: 12px; }
    .selection { margin-left: 14px; margin-right: 14px; }
}
