/* Shared by every design page: demo bar, booking dialog, demo toast, Made by credit.
   Each page sets --lv-surface, --lv-text, --lv-muted, --lv-line, --lv-accent, --lv-accent-ink
   and --lv-radius to match its own look. */

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

/* Demo bar */
.dm-bar {
  position: relative; z-index: 60;
  background: #111; color: #f4f4f4;
  font: 600 0.88rem/1.3 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
}
.dm-bar-inner {
  display: flex; align-items: center; gap: 12px;
  max-width: 1240px; margin: 0 auto; min-height: 48px; padding: 6px 16px;
}
.dm-pick { display: inline-flex; align-items: center; gap: 10px; min-width: 0; }
.dm-pick > span { opacity: 0.7; }
.dm-pick select {
  min-width: 0; max-width: 62vw; min-height: 36px; padding: 4px 32px 4px 12px;
  border-radius: 999px; border: 1.5px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.08) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23bbb' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 12px center;
  color: inherit; font: inherit; font-weight: 700; cursor: pointer;
  appearance: none; -webkit-appearance: none; text-overflow: ellipsis;
}
.dm-pick select option, .dm-pick select optgroup { color: #111; background: #fff; }
.dm-perks { flex: 1; min-width: 0; display: flex; justify-content: center; }
.dm-get {
  flex-shrink: 0; padding: 7px 14px; border-radius: 999px;
  background: #fff; color: #111; text-decoration: none; font-weight: 700; white-space: nowrap;
}
.dm-get:hover { background: #e9e9e9; }

/* "What you get" pill + card (markup from demo.js) */
.perks-pill {
  display: inline-flex; align-items: center; gap: 7px; max-width: 100%; min-height: 36px; padding: 5px 12px;
  border-radius: 999px; border: 1.5px solid #ff8da1; background: transparent; color: #fff;
  font: inherit; font-weight: 700; white-space: nowrap; cursor: pointer;
}
.perks-pill b { color: #ffb3c0; font-weight: 800; }
.perks-pill:hover { background: rgba(255, 255, 255, 0.1); }
.perks-pill:focus-visible { outline: 3px solid #ff8da1; outline-offset: 2px; }
.perks-caret { transition: transform 0.2s; }
.perks-pill[aria-expanded="true"] .perks-caret { transform: rotate(180deg); }
.perks-pop {
  position: absolute; z-index: 5; top: calc(100% + 6px); left: 50%; transform: translateX(-50%);
  width: min(760px, calc(100% - 32px)); padding: 8px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 2px;
  background: #fff; color: #111; border: 1px solid rgba(0, 0, 0, 0.12); border-radius: 16px;
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.3); font-weight: 500;
}
.perks-pop[hidden] { display: none; }
.perks-pop > div { padding: 12px 14px; border-radius: 12px; }
.perks-pop > div:hover { background: #f3f3f3; }
.perks-pop > div > span { margin-right: 6px; }
.perks-pop strong { font-size: 0.95rem; }
.perks-pop em { display: block; margin-top: 2px; font-style: normal; color: #555; font-size: 0.86rem; }
.perks-app { grid-column: 1 / -1; padding: 10px 14px; font-weight: 700; color: #111; text-underline-offset: 3px; }
.perks-short { display: none; }
@media (max-width: 420px) {
  .perks-full { display: none; }
  .perks-short { display: inline; }
  .perks-caret { display: none; }
  .perks-pill { padding-inline: 10px; gap: 5px; }
}
@media (max-width: 800px) {
  .perks-long { display: none; }
  .dm-pick select { max-width: 34vw; }
}
@media (max-width: 640px) {
  .perks-pop { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .dm-bar-inner { gap: 8px; padding-inline: 12px; }
  .dm-pick > span { display: none; }
  .dm-pick select { max-width: 30vw; }
  .dm-get { padding: 7px 11px; }
}

/* Booking dialog: the online booking page, embedded */
html.lv-dialog-open { overflow: hidden; }
.lv-dialog {
  width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh;
  margin: 0; padding: 0; border: 0; overflow: hidden;
  background: var(--lv-surface, #fff); color: var(--lv-text, #111);
}
.lv-dialog[open] { display: flex; flex-direction: column; }
.lv-dialog::backdrop { background: rgba(10, 10, 14, 0.6); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.lv-dialog-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 12px 10px 20px; border-bottom: 1px solid var(--lv-line, #ddd);
}
.lv-dialog-bar h2 { margin: 0; font-size: 1.4rem; }
.lv-dialog-close {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border: 0; border-radius: 50%;
  background: transparent; color: inherit; cursor: pointer;
}
.lv-dialog-close:hover { background: color-mix(in srgb, var(--lv-accent, #333) 15%, transparent); }
.lv-dialog-body { position: relative; flex: 1; min-height: 0; }
.lv-dialog-loading {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 14px; margin: 0; color: var(--lv-muted, #777);
}
.lv-spinner {
  width: 36px; height: 36px; border-radius: 50%;
  border: 3px solid color-mix(in srgb, var(--lv-accent, #333) 20%, transparent); border-top-color: var(--lv-accent, #333);
  animation: lv-spin 0.8s linear infinite;
}
@keyframes lv-spin { to { transform: rotate(360deg); } }
.lv-dialog iframe { position: relative; display: block; width: 100%; height: 100%; border: 0; opacity: 0; transition: opacity 0.2s ease; }
.lv-dialog iframe.is-loaded { opacity: 1; }
@media (min-width: 768px) {
  .lv-dialog {
    width: min(600px, calc(100vw - 48px)); height: min(860px, calc(100dvh - 48px)); margin: auto;
    border-radius: var(--lv-radius, 16px); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
  }
}

/* Demo toast */
.lv-toast {
  position: fixed; left: 50%; bottom: 88px; z-index: 80;
  width: max-content; max-width: calc(100vw - 32px);
  padding: 12px 18px; border-radius: 14px;
  background: #111; color: #fff; box-shadow: 0 14px 40px rgba(0, 0, 0, 0.35);
  font: 500 0.95rem/1.4 'DM Sans', system-ui, sans-serif; text-align: center;
  opacity: 0; transform: translate(-50%, 12px); pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.lv-toast.is-shown { opacity: 1; transform: translate(-50%, 0); }
@media (min-width: 768px) { .lv-toast { bottom: 32px; } }

/* Made by SoftApps */
.footer-madeby { margin: 20px 0 0; text-align: center; opacity: 0.8; }
.footer-madeby a { display: inline-flex; align-items: center; gap: 0.45rem; color: inherit; text-decoration: none; transition: opacity 0.2s ease; }
.footer-madeby a:hover { opacity: 0.7; }
.footer-madeby .madeby-label { font-size: 0.85rem; }
.footer-madeby svg { height: 24px; width: auto; }

@media (prefers-reduced-motion: reduce) {
  .lv-spinner { animation-duration: 2.4s; }
  .lv-toast, .lv-dialog iframe { transition: none; }
}
