/* Endless Summer Concierge — brand tokens mirror packages/ui tokens.css */
:root {
  --ocean-900: #0A1E28;
  --ocean-700: #0E3540;
  --ocean-500: #14424E;
  --gold-400: #D8B36A;
  --gold-300: #E6C88C;
  --sunset-500: #E98C4A;
  --sand-100: #F4EDE0;
  --cream-50: #FAF7F0;
  --ink-900: #101418;
  --wa: #1FA855;
  --font-display: "Fraunces", ui-serif, Georgia, serif;
  --font-body: "Hanken Grotesk", ui-sans-serif, system-ui, sans-serif;
  --radius: 20px;
  --shadow: 0 1px 2px rgba(10, 30, 40, .06), 0 8px 24px -8px rgba(10, 30, 40, .18);
  --ease: cubic-bezier(.2, .8, .2, 1);
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--ocean-900);
  color: var(--ink-900);
  font: 16px/1.5 var(--font-body);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
@media (min-width: 640px) {
  body {
    background:
      radial-gradient(1200px 600px at 10% -10%, rgba(216, 179, 106, .18), transparent 60%),
      radial-gradient(900px 600px at 110% 110%, rgba(233, 140, 74, .14), transparent 60%),
      var(--ocean-900);
  }
}
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
a { color: var(--ocean-500); }
:focus-visible { outline: 2px solid var(--gold-400); outline-offset: 2px; }

.shell {
  display: flex; flex-direction: column;
  height: 100dvh; max-width: 560px; margin: 0 auto;
  background: var(--sand-100);
  position: relative;
}
@media (min-width: 640px) {
  .shell { height: min(100dvh - 48px, 900px); margin-top: 24px; border-radius: 28px; overflow: hidden; box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .5); }
}

/* ── Top bar ───────────────────────────────────────────── */
.bar {
  display: flex; align-items: center; gap: 12px;
  padding: calc(10px + env(safe-area-inset-top)) 16px 10px;
  background: var(--ocean-900); color: var(--cream-50);
  position: relative; z-index: 2;
}
.bar-logo { width: 40px; height: 40px; border-radius: 50%; background: var(--cream-50); object-fit: contain; padding: 3px; }
.bar-title { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.bar-name { font: 600 18px/1.1 var(--font-display); letter-spacing: .01em; }
.bar-sub { font-size: 12.5px; color: rgba(250, 247, 240, .7); display: flex; align-items: center; gap: 6px; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: #4ADE80; box-shadow: 0 0 0 3px rgba(74, 222, 128, .2); }
.bar-human {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 12px; border-radius: 999px;
  background: rgba(250, 247, 240, .1); color: var(--cream-50);
  font-size: 13px; font-weight: 600; text-decoration: none;
  border: 1px solid rgba(250, 247, 240, .16);
  transition: background .2s;
}
.bar-human:hover { background: rgba(250, 247, 240, .18); }
.bar-human svg { width: 16px; height: 16px; fill: currentColor; }
@media (max-width: 380px) { .bar-human span { display: none; } }

/* ── Feed ──────────────────────────────────────────────── */
.feed { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 0 0 12px; scroll-behavior: smooth; }

.hero { position: relative; margin: 0 0 6px; color: var(--cream-50); background: var(--ocean-900); overflow: hidden; }
.hero-media { display: block; width: 100%; height: 230px; object-fit: cover; object-position: center 60%; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10, 30, 40, .05) 0%, rgba(10, 30, 40, .35) 40%, rgba(10, 30, 40, .96) 100%);
}
.hero-copy { position: absolute; left: 0; right: 0; bottom: 0; padding: 20px 20px 18px; z-index: 1; }
.eyebrow { margin: 0 0 6px; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-300); }
.hero h1 { margin: 0; font: 500 30px/1.08 var(--font-display); letter-spacing: -.01em; }
.hero h1 em { font-style: italic; color: var(--gold-300); }
.lede { margin: 8px 0 0; font-size: 14.5px; line-height: 1.45; color: rgba(250, 247, 240, .82); }
.hero.compact .hero-media { height: 120px; }
.hero.compact .lede { display: none; }

.trips { padding: 14px 0 4px; }
.trips-head { display: flex; align-items: baseline; justify-content: space-between; padding: 0 18px 8px; }
.trips-head h2 { margin: 0; font: 600 17px var(--font-display); color: var(--ocean-900); }
.trips-head span { font-size: 12px; color: var(--ocean-500); display: inline-flex; align-items: center; gap: 6px; }
.trips-head span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--wa); }
.trip-rail { display: flex; gap: 12px; overflow-x: auto; padding: 2px 18px 10px; scroll-snap-type: x mandatory; scroll-padding-inline: 18px; scrollbar-width: none; }
.trip-rail::-webkit-scrollbar { display: none; }
.trip {
  flex: 0 0 72%; max-width: 260px; scroll-snap-align: start;
  background: var(--cream-50); border-radius: 18px; overflow: hidden; box-shadow: var(--shadow);
  border: 0; padding: 0; text-align: left; cursor: pointer; font: inherit; color: inherit;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.trip:hover { transform: translateY(-2px); }
.trip:active { transform: scale(.98); }
.trip img { display: block; width: 100%; height: 118px; object-fit: cover; background: var(--ocean-700); }
.trip-body { padding: 10px 12px 12px; }
.trip-name { font: 600 15.5px/1.2 var(--font-display); color: var(--ocean-900); }
.trip-meta { margin-top: 3px; font-size: 12.5px; color: rgba(16, 20, 24, .6); }
.trip-price { margin-top: 6px; font-weight: 700; font-size: 14px; color: var(--ocean-700); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 6px 18px 4px; }
.chip {
  border: 1px solid rgba(14, 53, 64, .18); background: var(--cream-50); color: var(--ocean-700);
  padding: 9px 14px; border-radius: 999px; font: 600 13.5px var(--font-body); cursor: pointer;
  transition: background .2s, border-color .2s, transform .15s;
}
.chip:hover { border-color: var(--gold-400); background: #fff; }
.chip:active { transform: scale(.97); }

/* ── Messages ──────────────────────────────────────────── */
.msg { display: flex; padding: 4px 16px; animation: rise .35s var(--ease) both; }
.msg.user { justify-content: flex-end; }
.bubble {
  max-width: 86%; padding: 11px 14px; border-radius: var(--radius);
  font-size: 15.5px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere;
}
.msg.bot .bubble { background: var(--cream-50); border-bottom-left-radius: 6px; box-shadow: var(--shadow); }
.msg.user .bubble { background: var(--ocean-700); color: var(--cream-50); border-bottom-right-radius: 6px; }
.bubble strong { font-weight: 700; color: var(--ocean-900); }
.msg.user .bubble strong { color: var(--gold-300); }
.bubble a { color: var(--ocean-500); font-weight: 600; }
.avatar { width: 28px; height: 28px; border-radius: 50%; background: var(--ocean-900) url("/logo.webp") center/80% no-repeat; flex: 0 0 28px; margin: auto 8px 2px 0; }

.typing { display: inline-flex; gap: 4px; padding: 4px 2px; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--ocean-500); opacity: .35; animation: blink 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; }
.typing i:nth-child(3) { animation-delay: .3s; }

.status {
  display: inline-flex; align-items: center; gap: 8px; margin: 6px 0 0 52px;
  font-size: 12.5px; font-weight: 600; color: var(--ocean-500);
  background: linear-gradient(90deg, rgba(216, 179, 106, .15), rgba(216, 179, 106, .35), rgba(216, 179, 106, .15));
  background-size: 200% 100%; animation: shimmer 1.4s linear infinite;
  padding: 5px 10px; border-radius: 999px;
}

/* ── Booking card ──────────────────────────────────────── */
.card {
  margin: 8px 16px 6px 52px; background: var(--cream-50); border-radius: 22px; overflow: hidden;
  box-shadow: 0 2px 4px rgba(10, 30, 40, .06), 0 18px 40px -16px rgba(10, 30, 40, .35);
  animation: rise .45s var(--ease) both;
  border: 1px solid rgba(216, 179, 106, .45);
}
.card-media { position: relative; }
.card-media img { display: block; width: 100%; height: 132px; object-fit: cover; }
.card-tag {
  position: absolute; left: 12px; top: 12px; padding: 5px 10px; border-radius: 999px;
  background: rgba(10, 30, 40, .78); color: var(--cream-50); font-size: 12px; font-weight: 700;
  backdrop-filter: blur(6px); display: inline-flex; gap: 6px; align-items: center;
}
.card-tag.low { background: var(--sunset-500); color: #fff; }
.card-body { padding: 14px 16px 16px; }
.card h3 { margin: 0; font: 600 20px/1.15 var(--font-display); color: var(--ocean-900); }
.card-rows { margin: 10px 0 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; font-size: 14px; }
.card-rows dt { color: rgba(16, 20, 24, .55); }
.card-rows dd { margin: 0; font-weight: 600; text-align: right; }
.card-total { display: flex; justify-content: space-between; align-items: baseline; margin-top: 12px; padding-top: 12px; border-top: 1px dashed rgba(14, 53, 64, .2); }
.card-total span { font-size: 13px; color: rgba(16, 20, 24, .6); }
.card-total b { font: 600 24px var(--font-display); color: var(--ocean-900); font-variant-numeric: tabular-nums; }
.card-note { margin: 10px 0 0; font-size: 12.5px; color: var(--ocean-500); }
.card-cta { display: grid; gap: 8px; margin-top: 14px; }
.btn-gold, .btn-wa {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px; padding: 12px 18px; border-radius: 14px; border: 0; cursor: pointer;
  font: 700 15.5px var(--font-body); text-decoration: none; transition: transform .15s, filter .2s;
}
.btn-gold { background: linear-gradient(180deg, var(--gold-300), var(--gold-400)); color: var(--ocean-900); box-shadow: 0 6px 16px -6px rgba(216, 179, 106, .8); }
.btn-wa { background: var(--wa); color: #fff; }
.btn-gold:hover, .btn-wa:hover { filter: brightness(1.04); }
.btn-gold:active, .btn-wa:active { transform: scale(.98); }
.btn-wa svg { width: 18px; height: 18px; fill: currentColor; }
.link-quiet { text-align: center; font-size: 13px; color: var(--ocean-500); font-weight: 600; padding: 4px; text-decoration: underline; text-underline-offset: 3px; }
.card-ref { margin-top: 10px; text-align: center; font-size: 11.5px; color: rgba(16, 20, 24, .45); letter-spacing: .04em; }
.card.sent { border-color: var(--wa); }

/* ── Dock: notice + composer ───────────────────────────── */
.dock {
  padding: 10px 12px calc(8px + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, rgba(244, 237, 224, 0), var(--sand-100) 28%);
  position: relative; z-index: 2;
}
.notice {
  background: var(--ocean-900); color: rgba(250, 247, 240, .88); border-radius: 18px; padding: 14px;
  font-size: 13px; line-height: 1.45; box-shadow: var(--shadow); animation: rise .4s var(--ease) both;
}
.notice p { margin: 0 0 12px; }
.notice strong { color: var(--gold-300); }
.notice a { color: var(--gold-300); }
.notice .btn-gold { width: 100%; }
.composer {
  display: flex; align-items: flex-end; gap: 8px;
  background: #fff; border-radius: 24px; padding: 6px 6px 6px 16px;
  box-shadow: 0 6px 20px -8px rgba(10, 30, 40, .3); border: 1px solid rgba(14, 53, 64, .1);
}
.composer[hidden] { display: none; }
.composer textarea {
  flex: 1; border: 0; outline: 0; resize: none; background: transparent;
  font: 16px/1.45 var(--font-body); color: var(--ink-900); padding: 9px 0; max-height: 132px;
}
.composer textarea::placeholder { color: rgba(16, 20, 24, .42); }
.send {
  width: 42px; height: 42px; flex: 0 0 42px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--ocean-900); color: var(--gold-300); display: grid; place-items: center;
  transition: transform .15s, opacity .2s;
}
.send svg { width: 19px; height: 19px; fill: currentColor; }
.send:disabled { opacity: .35; cursor: default; }
.send:not(:disabled):active { transform: scale(.92); }
.ts:empty { display: none; }
.ts { display: flex; justify-content: center; margin-top: 8px; }
.fine { margin: 7px 4px 0; text-align: center; font-size: 11px; color: rgba(16, 20, 24, .48); }

.err { margin: 6px 16px 6px 52px; padding: 12px 14px; border-radius: 16px; background: #FFF4EC; border: 1px solid rgba(233, 140, 74, .4); font-size: 14px; }
.err a { font-weight: 700; color: var(--ocean-700); }

/* Embedded in the website (widget.js): the site already has its own chrome. */
.embed .shell { margin: 0; height: 100dvh; border-radius: 0; max-width: none; }
.embed .hero-media { height: 150px; }

@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes blink { 0%, 80%, 100% { opacity: .25; transform: translateY(0); } 40% { opacity: .9; transform: translateY(-2px); } }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
