/* Whispering Woods Events · private tour drawer (Calendly) */
:root {
  --ww-tour-gold: #c49a5a;
  --ww-tour-pine: #141f19;
  --ww-tour-linen: #f9f6f0;
  --ww-tour-cream: #d6cdc2;
}

.ww-tour-root {
  position: fixed;
  inset: 0;
  z-index: 10050;
  pointer-events: none;
  visibility: hidden;
  transition: visibility 0.35s ease;
}

.ww-tour-root.is-open {
  pointer-events: auto;
  visibility: visible;
}

.ww-tour-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 31, 25, 0.62);
  opacity: 0;
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.ww-tour-root.is-open .ww-tour-backdrop {
  opacity: 1;
}

.ww-tour-sheet {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(100%, 440px);
  max-width: 100%;
  background: var(--ww-tour-pine);
  color: var(--ww-tour-linen);
  display: flex;
  flex-direction: column;
  box-shadow: -24px 0 64px rgba(0, 0, 0, 0.45);
  border-left: 1px solid rgba(196, 154, 90, 0.35);
  transform: translateX(100%);
  transition: transform 0.42s cubic-bezier(0.16, 1, 0.3, 1);
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

.ww-tour-root.is-open .ww-tour-sheet {
  transform: translateX(0);
}

.ww-tour-header {
  flex-shrink: 0;
  padding: 20px 20px 12px;
  text-align: center;
  border-bottom: 1px solid rgba(196, 154, 90, 0.22);
}

.ww-tour-close {
  position: absolute;
  top: calc(12px + env(safe-area-inset-top, 0px));
  right: 12px;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(196, 154, 90, 0.35);
  border-radius: 2px;
  background: rgba(20, 31, 25, 0.85);
  color: var(--ww-tour-linen);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  transition: border-color 0.2s ease, transform 0.16s ease;
}

.ww-tour-close:active {
  transform: scale(0.96);
}

.ww-tour-eyebrow {
  font-family: "Montserrat", system-ui, sans-serif;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--ww-tour-gold);
  margin: 0 0 8px;
}

.ww-tour-title {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.85rem;
  font-weight: 500;
  line-height: 1.15;
  margin: 0;
}

.ww-tour-dek {
  font-family: "Inter", system-ui, sans-serif;
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--ww-tour-cream);
  margin: 10px 0 0;
}

.ww-tour-hairline {
  width: 72px;
  height: 2px;
  margin: 14px auto 0;
  border-radius: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--ww-tour-gold),
    #e8d4a8,
    var(--ww-tour-gold),
    transparent
  );
  background-size: 200% 100%;
  animation: ww-tour-shimmer 4s ease-in-out infinite;
}

@keyframes ww-tour-shimmer {
  0% {
    background-position: 120% 0;
  }
  100% {
    background-position: -120% 0;
  }
}

.ww-tour-tz {
  flex-shrink: 0;
  margin: 12px 16px 0;
  padding: 12px 14px;
  border: 1px solid rgba(196, 154, 90, 0.28);
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.03);
  text-align: center;
}

.ww-tour-tz p {
  margin: 0;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--ww-tour-cream);
}

.ww-tour-tz strong {
  color: var(--ww-tour-linen);
  font-weight: 600;
}

.ww-tour-tz-sub {
  margin-top: 6px !important;
  font-size: 0.65rem !important;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.75;
}

.ww-tour-frame-wrap {
  flex: 1;
  min-height: 0;
  margin: 12px 12px 16px;
  padding: 1px;
  border-radius: 2px;
  background: linear-gradient(145deg, rgba(196, 154, 90, 0.35), rgba(196, 154, 90, 0.08));
  position: relative;
}

.ww-tour-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 2px;
  border: 1px solid rgba(196, 154, 90, 0.45);
  background: rgba(20, 31, 25, 0.92);
  font-family: "Montserrat", system-ui, sans-serif;
  font-size: 0.55rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  pointer-events: none;
}

.ww-tour-badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ww-tour-gold);
  box-shadow: 0 0 10px rgba(196, 154, 90, 0.6);
}

.ww-tour-frame {
  position: relative;
  height: 100%;
  min-height: 420px;
  border-radius: 2px;
  overflow: hidden;
  background: #0a0a0a;
}

.ww-tour-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 420px;
  border: 0;
  background: #fff;
  opacity: 0;
  transition: opacity 0.45s ease;
}

.ww-tour-frame iframe.is-loaded {
  opacity: 1;
}

.ww-tour-frame.is-loading::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    110deg,
    rgba(20, 31, 25, 0.95) 8%,
    rgba(196, 154, 90, 0.12) 18%,
    rgba(20, 31, 25, 0.95) 33%
  );
  background-size: 200% 100%;
  animation: ww-tour-shimmer 1.4s ease-in-out infinite;
  pointer-events: none;
}

.ww-tour-sheet-grab {
  display: none;
}

@media (max-width: 640px) {
  .ww-tour-sheet-grab {
    display: block;
    flex-shrink: 0;
    width: 40px;
    height: 4px;
    margin: 10px auto 0;
    border-radius: 4px;
    background: rgba(196, 154, 90, 0.45);
  }
}

.ww-tour-footer {
  flex-shrink: 0;
  padding: 0 16px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-family: "Montserrat", system-ui, sans-serif;
  font-size: 0.55rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(214, 205, 194, 0.55);
}

@media (max-width: 640px) {
  .ww-tour-sheet {
    width: 100%;
    border-left: none;
    border-top: 1px solid rgba(196, 154, 90, 0.35);
    top: auto;
    left: 0;
    right: 0;
    max-height: 94vh;
    border-radius: 2px 2px 0 0;
    transform: translateY(100%);
  }

  .ww-tour-root.is-open .ww-tour-sheet {
    transform: translateY(0);
  }

  .ww-tour-frame {
    min-height: 55vh;
  }

  .ww-tour-frame iframe {
    min-height: 55vh;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ww-tour-backdrop,
  .ww-tour-sheet {
    transition: none;
  }

  .ww-tour-hairline,
  .ww-tour-frame.is-loading::after {
    animation: none;
  }
}

html.ww-tour-open {
  overflow: hidden;
}
