/* Eden Voice widget — immersive voice-mode overlay, themed to edendevprayag.com.
   Palette from the live site: plum #231426, gold #b88e40, bright gold #fee362, cream, font "Play". */

#eden-voice {
  --ev-plum: #231426; --ev-plum-2: #34203a;
  --ev-gold: #b88e40; --ev-gold-lite: #d6b163; --ev-script-gold: #fee362;
  --ev-cream: #f7f2e9; --ev-ink: #231426;
  font-family: "Play", "Segoe UI", system-ui, sans-serif;
}
#eden-voice * { box-sizing: border-box; }
#eden-voice [hidden] { display: none !important; }

/* ---- Launcher ---- */
#eden-voice-btn {
  position: fixed; right: 22px; bottom: 22px; z-index: 2147482000;
  display: flex; align-items: center; gap: 9px; cursor: pointer;
  border: 1px solid rgba(184,142,64,.55); border-radius: 999px; padding: 12px 20px;
  font-family: inherit; font-size: 15px; font-weight: 700; letter-spacing: .2px;
  color: var(--ev-gold-lite); background: linear-gradient(135deg, var(--ev-plum-2), var(--ev-plum));
  box-shadow: 0 10px 28px rgba(35,20,38,.4); transition: transform .12s ease, box-shadow .2s;
}
#eden-voice-btn:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(35,20,38,.5); }
#eden-voice-btn .ev-ico { display: inline-flex; color: var(--ev-gold); }
#eden-voice-btn.on { color: #ffe0dd; border-color: rgba(212,99,90,.6); background: linear-gradient(135deg, #5a2230, #3a1622); }
#eden-voice-btn.on .ev-ico { color: #ff9d96; }

/* ---- Docked panel (bottom-right, not full-screen) ---- */
.ev-overlay {
  position: fixed; right: 22px; bottom: 88px; z-index: 2147483000;
  width: min(370px, calc(100vw - 28px)); max-height: min(74vh, 584px);
  display: flex; flex-direction: column; overflow: hidden;
  background: radial-gradient(135% 100% at 50% 0%, #34203a 0%, #231426 68%, #190f1d 100%);
  border: 1px solid rgba(184,142,64,.35); border-radius: 18px; box-shadow: 0 24px 60px rgba(0,0,0,.45);
  animation: evPop .2s ease;
}
@keyframes evPop { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }

.ev-stage { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center;
  width: 100%; padding: 20px 18px 18px; overflow-y: auto; }

.ev-close { position: absolute; top: 10px; right: 12px; background: rgba(255,255,255,.1); border: none; color: #e8dcc2;
  cursor: pointer; width: 32px; height: 32px; border-radius: 50%; font-size: 21px; line-height: 1; transition: background .15s; }
.ev-close:hover { background: rgba(255,255,255,.22); color: #fff; }

.ev-brand { display: flex; align-items: center; gap: 11px; margin: 2px 0 18px; }
.ev-avatar { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 18px;
  background: radial-gradient(circle at 30% 30%, var(--ev-gold-lite), var(--ev-gold)); color: var(--ev-plum); box-shadow: 0 0 0 2px rgba(254,227,98,.3); }
.ev-titles { display: flex; flex-direction: column; line-height: 1.2; text-align: left; }
.ev-title { font-size: 17px; font-weight: 700; color: #fff; letter-spacing: .3px; }
.ev-sub { font-size: 11.5px; color: var(--ev-gold-lite); }

/* ---- Gate (centered card on the glass) ---- */
.ev-gate { width: 100%; display: flex; flex-direction: column; gap: 11px;
  background: rgba(255,255,255,.97); border-radius: 14px; padding: 16px 15px; box-shadow: 0 12px 30px rgba(0,0,0,.3); text-align: left; }
.ev-gate-lead { margin: 0 0 4px; font-size: 14px; line-height: 1.55; color: var(--ev-ink); }
.ev-field { display: flex; flex-direction: column; gap: 5px; font-size: 12.5px; font-weight: 700; color: #6a5a3f; }
.ev-field input { font: inherit; font-weight: 500; padding: 11px 13px; border-radius: 10px; border: 1.5px solid #ddd0b6;
  background: #fff; color: var(--ev-ink); outline: none; transition: border-color .15s, box-shadow .15s; }
.ev-field input::placeholder { color: #b3a587; }
.ev-field input:focus { border-color: var(--ev-gold); box-shadow: 0 0 0 3px rgba(184,142,64,.18); }
.ev-err { min-height: 16px; font-size: 12px; font-weight: 600; color: #b3261e; }
.ev-start { border: none; cursor: pointer; padding: 13px; border-radius: 11px; font-family: inherit; font-size: 15px; font-weight: 700;
  color: var(--ev-plum); background: linear-gradient(135deg, var(--ev-gold-lite), var(--ev-gold)); letter-spacing: .3px; transition: filter .15s, transform .1s; }
.ev-start:hover { filter: brightness(1.06); transform: translateY(-1px); }
.ev-consent { margin: 2px 0 0; font-size: 10.5px; color: #9a8c6f; text-align: center; line-height: 1.4; }

/* ---- Voice mode ---- */
.ev-chat { display: flex; flex-direction: column; align-items: center; }

.ev-live { display: none; align-items: center; gap: 6px; margin-bottom: 14px; font-size: 11px; font-weight: 800; letter-spacing: .14em; color: #ff6b5e; text-transform: uppercase; }
.ev-live i { width: 8px; height: 8px; border-radius: 50%; background: #ff4d3d; box-shadow: 0 0 0 0 rgba(255,77,61,.6); animation: evBlink 1.2s infinite; }
@keyframes evBlink { 0% { box-shadow: 0 0 0 0 rgba(255,77,61,.6); } 70% { box-shadow: 0 0 0 9px rgba(255,77,61,0); } 100% { box-shadow: 0 0 0 0 rgba(255,77,61,0); } }
#eden-voice-chat[data-state="listening"] .ev-live,
#eden-voice-chat[data-state="speaking"] .ev-live,
#eden-voice-chat[data-state="working"] .ev-live { display: inline-flex; }

/* the fluid, audio-reactive orb (--ev-amp set each frame, 0..1) */
.ev-orb { --ev-amp: 0; position: relative; width: 122px; height: 122px; display: grid; place-items: center; margin-bottom: 16px; }
.ev-orb::before { content: ""; position: absolute; inset: 14px; border-radius: 50%;
  background: conic-gradient(from 0deg, transparent, rgba(214,177,99,.55), transparent 45%); filter: blur(5px); opacity: .55; animation: evSpin 7s linear infinite; }
@keyframes evSpin { to { transform: rotate(360deg); } }
.ev-orb u { position: absolute; inset: 0; margin: auto; width: 78px; height: 78px; border-radius: 50%;
  background: radial-gradient(circle, rgba(254,227,98,.55), transparent 68%); filter: blur(13px);
  transform: scale(calc(1.1 + var(--ev-amp) * 0.9)); transition: transform .08s linear; }
.ev-orb b { position: relative; width: 74px; height: 74px; border-radius: 50%; display: block;
  background: radial-gradient(circle at 36% 30%, #fff6d4, var(--ev-gold) 68%, #7e5c1e);
  transform: scale(calc(1 + var(--ev-amp) * 0.34)); transition: transform .07s linear, box-shadow .07s linear;
  box-shadow: 0 0 calc(20px + var(--ev-amp) * 56px) calc(5px + var(--ev-amp) * 16px) rgba(197,162,83,.6); }

.ev-state-label { font-size: 11.5px; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; color: var(--ev-gold-lite); margin-bottom: 10px; }
#eden-voice-chat[data-state="listening"] .ev-state-label { color: #57d39a; }
#eden-voice-chat[data-state="error"] .ev-state-label { color: #ff6b5e; }

.ev-userline { min-height: 18px; font-size: 13px; font-style: italic; color: var(--ev-gold-lite); opacity: .85; margin-bottom: 6px; }
.ev-caption { min-height: 46px; max-width: 300px; font-size: 16px; line-height: 1.5; font-weight: 500; color: #fff; text-shadow: 0 1px 12px rgba(0,0,0,.4); }

/* inline map / media (e.g. travel-time) */
.ev-media { width: 100%; max-width: 320px; margin: 12px 0 2px; display: flex; flex-direction: column; gap: 8px; }
.ev-map { width: 100%; height: 150px; border: 1px solid rgba(214,177,99,.4); border-radius: 12px; background: #0d0710; }
.ev-media-meta { font-size: 14px; font-weight: 700; color: var(--ev-gold-lite); letter-spacing: .2px; }
.ev-media-link { font-size: 12.5px; font-weight: 600; color: var(--ev-script-gold); text-decoration: none; }
.ev-media-link:hover { text-decoration: underline; }
.ev-list { display: flex; flex-direction: column; width: 100%; max-width: 320px; border: 1px solid rgba(214,177,99,.3); border-radius: 12px; overflow: hidden; }
.ev-list-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 12px; border-bottom: 1px solid rgba(214,177,99,.15); }
.ev-list-row:last-child { border-bottom: none; }
.ev-list-name { display: flex; flex-direction: column; font-size: 13.5px; font-weight: 600; color: #fff; text-align: left; }
.ev-list-name small { font-size: 10.5px; font-weight: 600; color: var(--ev-gold-lite); opacity: .8; text-transform: uppercase; letter-spacing: .05em; }
.ev-list-right { font-size: 13px; font-weight: 700; color: var(--ev-gold-lite); white-space: nowrap; }
.ev-card { width: 100%; max-width: 320px; border: 1px solid rgba(214,177,99,.35); border-radius: 12px; overflow: hidden; background: rgba(255,255,255,.05); }
.ev-card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 11px 13px; background: rgba(214,177,99,.12); }
.ev-card-head span { font-size: 11.5px; font-weight: 700; color: var(--ev-gold-lite); text-transform: uppercase; letter-spacing: .04em; }
.ev-card-head b { font-size: 18px; font-weight: 700; color: var(--ev-script-gold); white-space: nowrap; }
.ev-card-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 7px 13px; font-size: 13px; color: #f1e6cb; border-top: 1px solid rgba(214,177,99,.12); }
.ev-card-row span:first-child { color: var(--ev-gold-lite); opacity: .85; }
.ev-card-note { padding: 8px 13px; font-size: 10.5px; color: #c7b48a; opacity: .8; border-top: 1px solid rgba(214,177,99,.12); }

/* subtle glass chips */
.ev-chips { display: flex; flex-wrap: wrap; gap: 7px; justify-content: center; max-width: 100%; margin-top: 16px; }
.ev-chip { font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; white-space: nowrap; color: #f1e6cb;
  padding: 8px 14px; border-radius: 999px; border: 1px solid rgba(214,177,99,.5); background: rgba(255,255,255,.08);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); transition: background .15s, color .15s, transform .1s; }
.ev-chip:hover { background: var(--ev-gold); color: var(--ev-plum); transform: translateY(-1px); }

.ev-end { margin-top: 24px; padding: 11px 26px; border: none; border-radius: 999px; cursor: pointer; font: inherit;
  font-size: 13px; font-weight: 700; letter-spacing: .3px; color: #fff; background: rgba(143,29,23,.85); transition: background .15s; }
.ev-end:hover { background: rgba(168,40,32,.95); }

/* Toast + flash live in the page's light DOM — explicit colors */
#eden-booking-toast { position: fixed; left: 50%; bottom: 96px; transform: translateX(-50%);
  background: #231426; color: #d6b163; padding: 12px 18px; border-radius: 12px; font-weight: 600;
  border: 1px solid #b88e40; box-shadow: 0 10px 28px rgba(35,20,38,.34); z-index: 2147483600; display: none;
  font-family: "Play", system-ui, sans-serif; }
.eden-flash { animation: edenFlash 1.5s ease; }
@keyframes edenFlash { 0% { box-shadow: inset 0 0 0 3px #b88e40; } 100% { box-shadow: inset 0 0 0 0 transparent; } }

.hidden { display: none !important; }

@media (max-width: 480px) {
  #eden-voice-btn { right: 14px; bottom: 14px; }
  .ev-orb { width: 140px; height: 140px; }
  .ev-orb b { width: 86px; height: 86px; }
  .ev-caption { font-size: 16px; }
}
