@font-face { font-family: Heebo; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/Heebo-Regular.ttf") format("truetype"); }
@font-face { font-family: Heebo; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/Heebo-Medium.ttf") format("truetype"); }
@font-face { font-family: Heebo; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/Heebo-SemiBold.ttf") format("truetype"); }
@font-face { font-family: Heebo; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/Heebo-Bold.ttf") format("truetype"); }

:root {
  --ink: #1c3236;
  --ink-soft: #4a6469;
  --muted: #6f878c;
  --placeholder: #8aa0a4;
  --turquoise: #0e8f93;
  --turquoise-dark: #0a6e72;
  --turquoise-deep: #08585c;
  --turquoise-soft: #e7f4f4;
  --line: #d7e6e7;
  --white: #fff;
  --shadow: 0 8px 28px rgba(14, 80, 86, 0.08), 0 0 0 1px rgba(14, 143, 147, 0.08);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }

body {
  font-family: Heebo, Assistant, Rubik, "Arial Hebrew", Arial, sans-serif;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  height: 100vh;
  height: 100dvh;
  display: flex;
  overflow: hidden;
  background:
    radial-gradient(900px 520px at 70% 18%, rgba(255,255,255,.7), transparent 60%),
    radial-gradient(700px 480px at 20% 90%, rgba(232,196,140,.16), transparent 55%),
    linear-gradient(165deg, #d8f1f2 0%, #eef8f7 42%, #f7f3ea 100%);
}

button, input, a { font-family: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; }
:focus-visible { outline: 2px solid var(--turquoise); outline-offset: 2px; }

.skip {
  position: absolute;
  right: 12px;
  top: 8px;
  z-index: 100;
  background: #fff;
  color: var(--turquoise-dark);
  padding: 8px 12px;
  border-radius: 10px;
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-160%);
}
.skip:focus { transform: none; }

.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;
}

.noscript {
  position: fixed;
  inset: auto 16px 16px 16px;
  z-index: 90;
  background: #fff;
  color: var(--ink);
  border-radius: 14px;
  padding: 12px 14px;
  box-shadow: var(--shadow);
  font-weight: 600;
}

.sidebar {
  width: 280px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  padding: 18px 14px 14px;
  color: #fff;
  background: linear-gradient(175deg, #0f9a9e 0%, #0a7478 55%, #08585c 100%);
  position: relative;
  z-index: 30;
  height: 100%;
}
.sidebar-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; padding: 0 4px; }
.brand { display: inline-flex; align-items: center; gap: 9px; }
.logo { width: 28px; height: 28px; flex-shrink: 0; }
.brand-name { font-size: 16px; font-weight: 700; letter-spacing: -.01em; }
.icon-btn { width: 40px; height: 40px; border: 0; background: transparent; border-radius: 12px; color: inherit; display: grid; place-items: center; flex-shrink: 0; }
.icon-btn svg { width: 22px; height: 22px; fill: currentColor; }
.close-menu { display: none; }

.new-chat {
  display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%;
  border: 1px solid rgba(255,255,255,.4); background: #fff; color: var(--turquoise-dark);
  font-size: 14.5px; font-weight: 700; padding: 11px 12px; border-radius: 14px;
  box-shadow: 0 6px 16px rgba(4, 50, 54, .22);
}
.new-chat svg { width: 16px; height: 16px; fill: currentColor; }
.new-chat:hover { background: #f1fbfb; }

.chats-label { margin: 22px 6px 8px; font-size: 11.5px; font-weight: 600; color: rgba(255,255,255,.82); letter-spacing: .02em; }
.chats { flex: 1; display: flex; flex-direction: column; gap: 5px; overflow: auto; }
.empty-chats { margin: 4px 8px 0; font-size: 12.5px; line-height: 1.5; color: rgba(255,255,255,.86); font-weight: 500; }
.chat-item {
  display: flex; align-items: center; gap: 10px; width: 100%; text-align: right;
  border: 0; background: transparent; color: #fff;
  font-size: 13.5px; font-weight: 500; line-height: 1.3; padding: 8px 10px; border-radius: 13px;
}
.chat-item:hover { background: rgba(255,255,255,.1); }
.chat-item.is-active { background: rgba(255,255,255,.2); font-weight: 700; }
.chat-dot { width: 30px; height: 30px; border-radius: 10px; flex-shrink: 0; display: grid; place-items: center; background: var(--c, #7fd6d9); }
.chat-dot svg { width: 16px; height: 16px; fill: rgba(8, 60, 64, .78); }
.chat-title { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-title small { display: block; font-size: 11px; font-weight: 500; opacity: .8; margin-top: 1px; }

.profile { margin-top: 12px; padding: 12px 8px 4px; border-top: 1px solid rgba(255,255,255,.2); display: flex; align-items: center; gap: 10px; }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: #fff; color: var(--turquoise-dark); font-weight: 700; font-size: 15px; display: grid; place-items: center; }
.profile-text { display: flex; flex-direction: column; line-height: 1.25; }
.profile-text strong { font-size: 13.5px; font-weight: 700; }
.profile-text span { font-size: 11.5px; opacity: .8; }

.backdrop { display: none; }

.shell { flex: 1; min-width: 0; height: 100%; display: flex; flex-direction: column; position: relative; }
.top { flex-shrink: 0; display: none; align-items: center; gap: 8px; padding: 12px 22px 0; min-height: 44px; }
.open-menu, .mobile-brand { display: none; }
.mobile-brand { color: var(--turquoise-dark); }
.mobile-brand .brand-name { font-size: 15px; }

.views { flex: 1; min-height: 0; position: relative; outline: none; }
.view { position: absolute; inset: 0; display: none; overflow-y: auto; scroll-behavior: smooth; }
.view.is-current { display: block; }

.stage {
  min-height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 24px 28px 40px; position: relative;
}
.motif { position: absolute; inset: 6% 0 auto; margin-inline: auto; width: min(760px, 92%); height: auto; color: var(--turquoise); opacity: .12; pointer-events: none; }
.prompt { position: relative; font-size: 36px; font-weight: 700; letter-spacing: -.03em; text-align: center; line-height: 1.25; margin-bottom: 8px; }
.prompt-sub { position: relative; font-size: 15px; color: var(--ink-soft); text-align: center; margin-bottom: 22px; max-width: 34em; }
.stage .widget { position: relative; max-width: 520px; width: 100%; }
.stage .widget .chips { justify-content: center; }

.thread { max-width: 760px; margin: 0 auto; padding: 14px 22px 28px; display: flex; flex-direction: column; gap: 14px; }
.msg { display: flex; flex-direction: column; align-items: flex-start; max-width: 100%; animation: rise .28s ease both; }
.msg-user { align-items: flex-end; }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.msg-label { font-size: 11px; font-weight: 600; color: var(--muted); margin-bottom: 4px; padding-inline: 4px; }
.bubble { display: inline-block; max-width: min(88%, 520px); border-radius: 18px; padding: 10px 14px; font-size: 15px; line-height: 1.55; font-weight: 500; white-space: pre-line; overflow-wrap: anywhere; }
.msg-bot .bubble { background: rgba(255,255,255,.85); color: var(--ink); border-top-right-radius: 6px; box-shadow: 0 1px 0 rgba(14,143,147,.06); }
.msg-user .bubble { background: var(--turquoise); color: #fff; border-top-left-radius: 6px; }
.msg-bot .bubble + .bubble { margin-top: 6px; }
.bubble .ltr, .ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }

.typing { display: inline-flex; gap: 4px; padding: 14px 16px; background: rgba(255,255,255,.85); border-radius: 18px; border-top-right-radius: 6px; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--turquoise); opacity: .35; animation: blink 1s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; }
.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }

.widget {
  margin-top: 8px; background: rgba(255,255,255,.96); border-radius: 18px; padding: 12px;
  box-shadow: var(--shadow); max-width: 480px; width: 100%;
}
.widget.settled { opacity: .55; pointer-events: none; box-shadow: none; background: rgba(255,255,255,.6); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--line); background: #fff; color: var(--ink);
  font-size: 14px; font-weight: 600; padding: 8px 14px; border-radius: 999px; min-height: 40px;
  transition: background .12s, border-color .12s;
}
.chip:hover { border-color: var(--turquoise); }
.chip.is-on { background: var(--turquoise); border-color: var(--turquoise); color: #fff; }
.chip small { font-size: 11px; font-weight: 500; opacity: .75; }
.chip.is-flex { border-style: dashed; color: var(--ink-soft); background: transparent; }
.chip.is-flex.is-on { color: #fff; background: var(--turquoise-dark); border-style: solid; }
.il-flag { width: 22px; height: 16px; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0,56,184,.22); flex-shrink: 0; display: block; }
.facts .il-flag { display: inline-block; vertical-align: -3px; margin-inline-end: 6px; }

.checks { display: flex; flex-wrap: wrap; gap: 8px; }
.check {
  display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: #fff; color: var(--ink);
  font-size: 14px; font-weight: 600; padding: 8px 12px; border-radius: 12px; min-height: 40px;
}
.check .box { width: 18px; height: 18px; border: 1.5px solid #b7c9cb; border-radius: 5px; display: grid; place-items: center; background: #fff; flex-shrink: 0; }
.check .box svg { width: 12px; height: 12px; fill: none; stroke: #fff; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; display: none; }
.check.is-on { border-color: var(--turquoise); background: var(--turquoise-soft); color: var(--turquoise-dark); }
.check.is-on .box { background: var(--turquoise); border-color: var(--turquoise); }
.check.is-on .box svg { display: block; }
.star-row .check { padding: 8px 14px; }
.star-row .star { color: #e0a51d; font-size: 15px; line-height: 1; }

.widget-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.btn {
  border: 0; background: var(--turquoise); color: #fff; font-size: 14.5px; font-weight: 700;
  padding: 10px 22px; border-radius: 999px; box-shadow: 0 6px 14px rgba(14,143,147,.26); min-height: 40px;
}
.btn:disabled { background: #b7cfd1; box-shadow: none; }

.cal-widget { max-width: 600px; }
.cal-months { display: flex; gap: 18px; align-items: flex-start; }
.cal-month { flex: 1; min-width: 0; }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; min-height: 34px; }
.cal-title { font-size: 15px; font-weight: 700; }
.cal-nav { display: flex; gap: 4px; }
.cal-nav button { width: 32px; height: 32px; border: 0; background: var(--turquoise-soft); color: var(--turquoise-dark); border-radius: 50%; font-size: 18px; font-weight: 700; line-height: 1; }
.cal-nav button:disabled { opacity: .35; }
table.cal { width: 100%; border-collapse: collapse; table-layout: fixed; }
.cal th { font-size: 11.5px; font-weight: 600; color: var(--muted); padding: 4px 0; }
.cal td { padding: 1px 0; text-align: center; }
.day {
  width: 100%; max-width: 38px; height: 36px; margin: 0 auto; border: 0; background: transparent; border-radius: 50%;
  font-size: 13.5px; font-weight: 500; color: var(--ink); display: grid; place-items: center;
}
.day:hover:not(:disabled) { background: var(--turquoise-soft); }
.day:disabled { color: #bccdcf; }
.day.in-range { background: var(--turquoise-soft); border-radius: 0; color: var(--turquoise-dark); font-weight: 600; max-width: none; }
.day.sel { background: var(--turquoise); color: #fff; font-weight: 700; border-radius: 50%; max-width: 38px; }
.cal-summary { margin-top: 10px; font-size: 13.5px; font-weight: 600; color: var(--turquoise-dark); min-height: 20px; }

.steppers { display: grid; gap: 4px; }
.stepper { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 4px; }
.stepper .who { font-size: 14px; font-weight: 600; }
.stepper .who small { display: block; font-size: 11.5px; font-weight: 500; color: var(--muted); }
.step-ctrl { display: flex; align-items: center; gap: 12px; direction: ltr; }
.step-ctrl button { width: 34px; height: 34px; border: 0; border-radius: 50%; background: var(--turquoise-soft); color: var(--turquoise-dark); font-size: 18px; font-weight: 700; line-height: 1; }
.step-ctrl button:disabled { opacity: .4; }
.step-ctrl .n { min-width: 1.2em; text-align: center; font-weight: 700; font-size: 16px; }

.widget.summary-wrap { max-width: 600px; padding: 0; overflow: hidden; background: #fff; box-shadow: 0 12px 32px rgba(14,80,86,.12), 0 0 0 1px rgba(14,143,147,.14); }
.summary-lead { background: var(--turquoise-soft); color: var(--turquoise-dark); font-size: 14px; font-weight: 600; line-height: 1.6; padding: 12px 16px; }
.summary-body { padding: 14px 16px 16px; }
.facts { list-style: none; display: grid; gap: 7px; font-size: 14px; line-height: 1.45; color: var(--ink-soft); font-weight: 500; }
.facts li { display: grid; grid-template-columns: minmax(6.4em, 8.4em) 1fr; gap: 8px; align-items: start; }
.facts b { color: var(--ink); font-weight: 700; }
.facts span { overflow-wrap: anywhere; }

.summary-actions {
  margin-top: 10px; max-width: 600px; width: 100%;
  background: linear-gradient(160deg, #0f9a9e, #0a6e72); color: #fff;
  border-radius: 20px; padding: 16px 18px 14px;
  box-shadow: 0 14px 30px rgba(10,110,114,.28);
}
.summary-kicker { font-size: 13px; font-weight: 600; opacity: .92; margin-bottom: 10px; }
.pay-btn {
  display: block; width: 100%; border: 0; background: #fff; color: var(--turquoise-dark);
  font-size: 16px; font-weight: 700; padding: 13px 16px; border-radius: 14px;
  text-align: center; text-decoration: none; min-height: 48px;
}
.pay-btn:hover { background: #f0fbfb; }
.summary-note { font-size: 13px; font-weight: 500; opacity: .95; text-align: center; margin-top: 8px; line-height: 1.5; }

.hotel-block { margin-top: 8px; max-width: 600px; width: 100%; }
.hotel-list { display: flex; flex-direction: column; gap: 10px; }
.hotel-card { background: #fff; border-radius: 18px; padding: 14px 16px; box-shadow: var(--shadow); }
.hotel-card h3 { font-size: 16.5px; line-height: 1.35; margin-bottom: 6px; }
.hotel-card p { font-size: 14px; line-height: 1.55; color: var(--ink-soft); font-weight: 500; margin-bottom: 12px; }
.hotel-card .pay-btn { background: var(--turquoise); color: #fff; }
.hotel-card .pay-btn:hover { background: var(--turquoise-dark); }
.hotel-note { margin-top: 8px; font-size: 12.5px; line-height: 1.45; color: #3e5558; text-align: center; }

.composer-dock { padding: 8px 24px 6px; flex-shrink: 0; }
.composer { max-width: 700px; margin: 0 auto; display: flex; align-items: center; gap: 10px; background: rgba(255,255,255,.95); border-radius: 30px; padding: 7px 8px; box-shadow: var(--shadow); min-height: 54px; }
.field { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 16px; color: var(--ink); padding: 8px 14px; }
.field::placeholder { color: var(--placeholder); }
.send { flex-shrink: 0; width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--turquoise); color: #fff; display: grid; place-items: center; box-shadow: 0 6px 14px rgba(14,143,147,.28); }
.send svg { width: 18px; height: 18px; fill: currentColor; }
.foot { flex-shrink: 0; padding: 4px 16px 12px; text-align: center; font-size: 12px; line-height: 1.45; color: #3e5558; max-width: 760px; margin: 0 auto; }
.toast { position: fixed; bottom: 96px; left: 50%; transform: translate(-50%, 20px); background: var(--ink); color: #fff; padding: 11px 18px; border-radius: 14px; font-size: 13.5px; font-weight: 600; line-height: 1.5; max-width: min(92vw, 420px); text-align: center; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 80; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 799px) {
  body { display: block; }
  .sidebar { position: fixed; top: 0; bottom: 0; right: 0; width: min(310px, 86vw); transform: translateX(100%); transition: transform .22s ease; }
  body.menu-open .sidebar { transform: translateX(0); box-shadow: -16px 0 40px rgba(14,55,62,.28); }
  .close-menu { display: grid; }
  .backdrop { display: block; position: fixed; inset: 0; background: rgba(20,51,58,.32); opacity: 0; pointer-events: none; transition: opacity .22s; z-index: 20; }
  body.menu-open .backdrop { opacity: 1; pointer-events: auto; }
  .shell { height: 100vh; height: 100dvh; }
  .top { display: flex; padding: 8px 8px 0; min-height: 52px; position: relative; }
  .open-menu { display: grid; color: var(--turquoise-dark); }
  .mobile-brand { display: inline-flex; position: absolute; left: 50%; top: 10px; transform: translateX(-50%); }
  .motif { display: none; }
  .stage { padding: 12px 18px 24px; justify-content: flex-start; padding-top: 7vh; }
  .prompt { font-size: 28px; }
  .prompt-sub { font-size: 14px; margin-bottom: 16px; }
  .thread { padding: 8px 14px 20px; }
  .bubble { max-width: 94%; font-size: 14.5px; }
  .widget, .cal-widget, .summary-actions, .widget.summary-wrap, .hotel-block { max-width: 100%; }
  .cal-month:nth-child(2) { display: none; }
  .composer-dock { padding: 6px 12px 4px; }
  .foot { font-size: 11.5px; padding-bottom: 8px; }
  .facts li { grid-template-columns: minmax(5.6em, 7em) 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
