html.hamdi-assistant-open{overflow:hidden}
#hamdi-ai-dialog{width:min(560px,calc(100vw - 24px));height:min(840px,94vh);height:min(840px,94dvh);max-height:94dvh;margin:auto;padding:0;border:1px solid #d7dfd17a;border-radius:16px;background:rgba(246,242,234,.64);color:#183b30;overflow:hidden;box-shadow:0 24px 90px #071d2840;-webkit-backdrop-filter:blur(18px) saturate(1.08);backdrop-filter:blur(18px) saturate(1.08);isolation:isolate}
#hamdi-ai-dialog[open]{display:flex;flex-direction:column}
#hamdi-ai-dialog::backdrop{background:rgba(16,35,26,.2);-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px)}
#hamdi-ai-dialog .hamdi-ai-bar{display:flex;flex:none;align-items:center;gap:12px;padding:12px 16px;border-bottom:1px solid #b6c2ad70;background:rgba(255,255,255,.14);min-height:76px}
#hamdi-ai-dialog .hamdi-ai-heading{flex:1;min-width:0}
#hamdi-ai-dialog h2{font:700 15px/1.4 Arial,sans-serif;letter-spacing:.09em;margin:0}
#hamdi-ai-subtitle{font:11px/1.6 Arial,sans-serif;color:#626f5d;margin:4px 0 0}
#hamdi-ai-dialog button{min-height:44px;cursor:pointer;font:12px/1.5 Arial,sans-serif;outline-offset:3px}
#hamdi-ai-close{flex:none;width:40px;padding:0;border:1px solid #c7d2be;border-radius:6px;background:transparent;color:#183b30;font-size:25px!important}
#hamdi-ai-dialog button:focus-visible{outline:2px solid #a86e4d}
#hamdi-ai-frame{display:block;flex:1;width:100%;height:0;min-height:0;border:0;background:transparent}
#hamdi-ai-frame[hidden]{display:none}
#hamdi-ai-dialog[data-loading],#direct-booking[data-loading]{background:#ece7de}
#hamdi-ai-dialog,#direct-booking{transition:background-color .12s ease}
#booking{scroll-margin-top:24px}
html.hamdi-booking-open{overflow:hidden}
#direct-booking{width:min(38rem,calc(100vw - 24px));max-height:calc(100vh - 24px);max-height:calc(100dvh - 24px);margin:auto;padding:0;border:1px solid #d7dfd17a;border-radius:16px;background:rgba(246,242,234,.64);color:#183b30;overflow:auto;overscroll-behavior:contain;box-shadow:0 24px 90px #071d2840;-webkit-backdrop-filter:blur(18px) saturate(1.08);backdrop-filter:blur(18px) saturate(1.08);isolation:isolate}
#direct-booking:not([open]),#hamdi-ai-dialog:not([open]),#manual-booking-section[hidden]{display:none}
#direct-booking::backdrop{background:rgba(16,35,26,.2);-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px)}
.direct-booking-bar{position:sticky;top:0;z-index:1;display:flex;justify-content:flex-end;background:rgba(246,242,234,.74);border-bottom:1px solid #b6c2ad70;padding:.5rem .75rem;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px)}
#direct-booking-close{min-height:44px;padding:0 .8rem;color:#183b30;background:transparent;border:1px solid #c7d2be;border-radius:6px;font:inherit;cursor:pointer}
#direct-booking-close:focus-visible,#direct-booking-fallback:focus-visible{outline:2px solid #a86e4d;outline-offset:2px}
#direct-booking-frame{display:block;width:100%;border:0;background:transparent}
#direct-booking-status{margin:.75rem;text-align:center;font-size:.9rem}
#direct-booking-fallback{margin:.5rem .75rem;min-height:44px;padding:.4rem .8rem;color:#183b30;background:transparent;border:1px solid #c7d2be;border-radius:6px;font:inherit;cursor:pointer}
#direct-booking [hidden]{display:none}
#direct-booking-loading { display:grid; gap:20px; padding:28px 24px; min-height:330px; }
#direct-booking-loading i { display:block; height:20px; border-radius:8px; background:rgba(255,252,246,.55); }
#direct-booking-loading i:first-child { width:42%; height:30px; }
#direct-booking-loading i:nth-child(2) { width:65%; }
#direct-booking-loading i:nth-child(3) { height:52px; }
#direct-booking-loading i:last-child { width:90px; height:46px; justify-self:end; background:rgba(24,59,48,.3); }
#direct-booking .booking-loading-label { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
@media(max-width:640px),(max-height:500px){
  #direct-booking[open],#hamdi-ai-dialog[open]{position:fixed;inset:0 0 auto;top:var(--modal-viewport-top,0px);display:flex;flex-direction:column;width:100%;height:100vh;height:var(--modal-viewport-height,100dvh);max-width:none;max-height:none;margin:0;border:0;border-radius:0;overflow:hidden;padding-bottom:env(safe-area-inset-bottom)}
  .direct-booking-bar,#hamdi-ai-dialog .hamdi-ai-bar{flex:none;padding-top:max(.5rem,env(safe-area-inset-top))}
  #direct-booking-frame{flex:1;min-height:0;height:0}
}
#direct-booking.mobile-dialog-fallback[open],#hamdi-ai-dialog.mobile-dialog-fallback[open]{position:fixed;inset:0 0 auto;top:var(--modal-viewport-top,0px);z-index:1000;display:flex;flex-direction:column;width:100%;height:100vh;height:var(--modal-viewport-height,100dvh);max-width:none;max-height:none;margin:0;border:0;border-radius:0;overflow:hidden}
#direct-booking.mobile-dialog-fallback[open] #direct-booking-frame{flex:1;min-height:0;height:0}
@media(max-width:420px){#hamdi-ai-dialog .hamdi-ai-bar{gap:8px;min-height:60px}#hamdi-ai-subtitle{font-size:10px}}

/* A thin moving tint stays on the perimeter, clear of the controls. */
@supports ((mask-composite:exclude) or (-webkit-mask-composite:xor)) {
  #hamdi-ai-dialog::before,#direct-booking::before {
    content:"";
    position:absolute;
    inset:0;
    z-index:3;
    padding:1.5px;
    border-radius:inherit;
    pointer-events:none;
    background:linear-gradient(120deg,#e9a9b3b8,#b4aed8a8,#a4c9e9bf,#a1d4bdb8,#e8c4a7b8,#e9a9b3b8);
    background-size:300% 300%;
    -webkit-mask:linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0);
    -webkit-mask-composite:xor;
    mask:linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0);
    mask-composite:exclude;
    animation:hamdi-glass-edge 28s ease-in-out infinite;
  }
}
@keyframes hamdi-glass-edge {
  0%,100% { background-position:0% 50%; }
  50% { background-position:100% 50%; }
}
@media (prefers-reduced-motion:reduce) {
  #hamdi-ai-dialog::before,#direct-booking::before { animation:none; }
}

/* Live conversation surface, matching the capsule entry beside booking. */
#hamdi-ai-dialog{border-radius:24px;border-color:rgba(144,177,197,.4)}
#hamdi-ai-dialog::before{padding:2px;background:linear-gradient(115deg,#8db8e5b8,#a9cbbcb8,#e1bc97b8,#b3b9e9b8,#8db8e5b8);background-size:300% 300%;animation-duration:22s}
#hamdi-ai-dialog .hamdi-ai-bar{background:rgba(247,250,248,.2);border-bottom-color:rgba(144,177,197,.25)}
@media(max-width:640px){#hamdi-ai-dialog[open]{border-radius:0}}

@media(max-width:640px),(max-height:500px){
  #hamdi-ai-dialog[open],#direct-booking[open]{box-sizing:border-box;max-inline-size:100%;border-radius:0}
  #hamdi-ai-dialog .hamdi-ai-bar{min-height:56px;padding-inline:max(12px,env(safe-area-inset-left)) max(12px,env(safe-area-inset-right))}
  #hamdi-ai-dialog .hamdi-ai-heading{min-width:0}
  #hamdi-ai-close{width:44px;min-width:44px}
  .direct-booking-bar{padding-inline:max(12px,env(safe-area-inset-left)) max(12px,env(safe-area-inset-right))}
}



/* Nur voice surface without the former ornamental frame or glowing perimeter. */
#hamdi-ai-dialog{border:0;border-radius:0;box-shadow:none;background:transparent;-webkit-backdrop-filter:none;backdrop-filter:none}
#hamdi-ai-dialog::before{content:none!important;display:none!important;animation:none!important}
#hamdi-ai-dialog .hamdi-ai-bar{border-bottom:0;border-radius:0;background:transparent}
#hamdi-ai-dialog #hamdi-ai-close{border:0;border-radius:50%;background:rgba(246,242,234,.7)}

/* Floating Nur: transparent illustration and no visible action buttons.
   Keep the modal smaller than the viewport so tapping its backdrop closes it on mobile. */
#hamdi-ai-dialog[open]{width:min(470px,calc(100vw - 32px));height:min(630px,78dvh);max-height:78dvh;margin:auto;inset:0;border:0;border-radius:0;background:transparent;box-shadow:none}
#hamdi-ai-dialog .hamdi-ai-bar{display:none!important}
#hamdi-ai-dialog #hamdi-ai-frame{background:transparent!important}
#hamdi-ai-dialog::backdrop{background:rgba(10,20,15,.14);-webkit-backdrop-filter:none;backdrop-filter:none}
@media(max-width:640px),(max-height:500px){#hamdi-ai-dialog[open],#hamdi-ai-dialog.mobile-dialog-fallback[open]{position:fixed;inset:0;top:0;width:calc(100vw - 24px);height:min(72dvh,640px);max-height:72dvh;max-width:470px;margin:auto;padding:0;border:0;border-radius:0;overflow:hidden}}

/* Nur: fully clear floating layer, without the white title bar or dimming overlay. */
#hamdi-ai-dialog[open],#hamdi-ai-dialog[data-loading]{
  background:transparent!important;border:0!important;outline:0!important;
  border-radius:0!important;box-shadow:none!important;
  -webkit-backdrop-filter:none!important;backdrop-filter:none!important;
}
#hamdi-ai-dialog::backdrop{
  background:transparent!important;-webkit-backdrop-filter:none!important;backdrop-filter:none!important;
}
#hamdi-ai-dialog .hamdi-ai-bar{display:none!important}
#hamdi-ai-dialog #hamdi-ai-frame{background:transparent!important}


/* Nur: comfortably sized and exactly centered, keeping the transparent voice layer. */
#hamdi-ai-dialog[open],
#hamdi-ai-dialog.mobile-dialog-fallback[open] {
  position: fixed;
  inset: 0;
  top: 0;
  width: min(550px, calc(100vw - 32px));
  max-width: 550px;
  height: min(700px, 82dvh);
  max-height: 82dvh;
  margin: auto;
  padding: 0;
  display: flex;
  flex-direction: column;
  background: transparent;
  border: 0;
  box-shadow: none;
}
#hamdi-ai-dialog #hamdi-ai-frame {
  flex: 1 1 auto;
  min-height: 0;
  height: 0;
  width: 100%;
  background: transparent !important;
}
@media (max-width: 640px), (max-height: 500px) {
  #hamdi-ai-dialog[open],
  #hamdi-ai-dialog.mobile-dialog-fallback[open] {
    inset: 0;
    top: 0;
    width: min(94vw, 550px);
    max-width: 550px;
    height: min(660px, 76dvh);
    max-height: 76dvh;
    margin: auto;
  }
}


/* Nur XL: larger centered canvas without a visible panel, border or backdrop. */
#hamdi-ai-dialog[open],
#hamdi-ai-dialog.mobile-dialog-fallback[open] {
  position: fixed;
  inset: 0;
  top: 0;
  width: min(860px, calc(100vw - 18px));
  max-width: 860px;
  height: min(900px, 91dvh);
  max-height: 91dvh;
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent !important;
  box-shadow: none !important;
  overflow: hidden;
}
#hamdi-ai-dialog #hamdi-ai-frame {
  width: 100%;
  min-width: 0;
  height: 0;
  min-height: 0;
  flex: 1 1 auto;
  background: transparent !important;
}
@media (max-width: 640px), (max-height: 500px) {
  #hamdi-ai-dialog[open],
  #hamdi-ai-dialog.mobile-dialog-fallback[open] {
    inset: 0;
    top: 0;
    width: min(98vw, 860px);
    max-width: 860px;
    height: min(94dvh, 820px);
    max-height: 94dvh;
    margin: auto;
    padding: 0;
  }
}

/* Instant appearance of the direct booking panel; no 120 ms background fade. */
#direct-booking { transition: none; }
#direct-booking[open] { animation: none; }
#direct-booking::backdrop { animation: none; }


/* Clear fallback if a remote booking form fails, with a non-JavaScript email path. */
#direct-booking .booking-error{
  margin:.6rem 1.1rem .3rem;
  color:#7c2624;
  line-height:1.7;
  font-size:.93rem;
  text-align:start;
}
#direct-booking .booking-contact-fallback{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:44px;
  margin:.45rem 1.1rem 1rem;
  padding:.65rem 1rem;
  border:1px solid #314739;
  border-radius:.55rem;
  background:#254334;
  color:#fff;
  text-decoration:none;
  font-size:.92rem;
  font-weight:700;
  touch-action:manipulation;
}
#direct-booking .booking-contact-fallback[hidden],
#direct-booking .booking-error[hidden]{display:none!important}
#direct-booking .booking-contact-fallback:focus-visible{
  outline:3px solid #a86e4d;
  outline-offset:3px;
}
@media(pointer:coarse){
  /* Pause modal perimeter effects while mobile keyboards and audio are in use. */
  html.hamdi-booking-open #direct-booking::before{
    animation:none!important;
  }
}
