/* flythrough.css — "Create fly-through video" modal. Dark glass + terracotta,
   self-contained so it reads consistently in light & dark app themes. */

.ft-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
.ft-modal[hidden] { display: none; }

.ft-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 10, 9, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.ft-dialog {
  position: relative;
  width: min(440px, 94vw);
  max-height: 92vh;
  overflow: auto;
  padding: 26px 24px 22px;
  border-radius: 20px;
  background: #1c1714;
  color: #f4efe9;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.ft-close {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #f4efe9;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.ft-close:hover { background: rgba(255, 255, 255, 0.16); }

/* Force a light title — the global `h2 { color: var(--text-color-heading) }`
   (dark, for light pages) otherwise makes it invisible on the dark card. */
.ft-modal .ft-title { margin: 0 0 5px; font-size: 22px; font-weight: 800; letter-spacing: -0.01em; color: #f7f2ec; line-height: 1.2; }
.ft-sub { margin: 0 0 18px; font-size: 13.5px; line-height: 1.45; color: rgba(244, 239, 233, 0.7); }

.ft-presets, .ft-styles, .ft-lengths { display: flex; gap: 8px; margin-bottom: 12px; }
.ft-length-chip { padding: 8px 4px; font-size: 12px; }
/* Style chips show a palette preview (valley→peak) above the name. */
.ft-style-chip { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.ft-swatch { display: block; height: 46px; width: 100%; background-size: cover; background-position: center; }
.ft-style-name { padding: 6px 2px 7px; font-size: 11.5px; font-weight: 700; }
.ft-row-label {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(244, 239, 233, 0.5);
  margin: 2px 0 6px;
}
.ft-chip {
  flex: 1;
  padding: 9px 6px;
  border-radius: 11px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: transparent;
  color: rgba(244, 239, 233, 0.85);
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.ft-chip:hover { background: rgba(255, 255, 255, 0.06); }
.ft-chip.is-active {
  border-color: var(--earth-terracotta, #b85c3c);
  background: color-mix(in srgb, var(--earth-terracotta, #b85c3c) 22%, transparent);
  color: #fff;
}
.ft-chip:disabled { opacity: 0.5; cursor: default; }

.ft-stage {
  display: grid;
  place-items: center;
  margin-bottom: 16px;
}
.ft-stage-inner {
  aspect-ratio: 1080 / 1920;
  max-height: 46vh;
  max-width: 100%;
  border-radius: 14px;
  overflow: hidden;
  background: #0e0c0b repeating-linear-gradient(45deg, rgba(255,255,255,0.02) 0 12px, transparent 12px 24px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  display: grid;
  place-items: center;
}
.ft-output-canvas { width: 100%; height: 100%; object-fit: contain; display: block; }

.ft-progress { margin: 0 0 14px; }
.ft-bar {
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.14);
  overflow: hidden;
}
.ft-bar i {
  display: block;
  height: 100%;
  width: 0%;
  background: var(--earth-terracotta, #b85c3c);
  transition: width 0.2s ease;
}
.ft-progress-label { display: block; margin-top: 7px; font-size: 12px; color: rgba(244, 239, 233, 0.7); }

.ft-actions { display: flex; gap: 10px; }
.ft-btn {
  flex: 1;
  padding: 12px 14px;
  border: 0;
  border-radius: 12px;
  font-size: 14.5px;
  font-weight: 800;
  cursor: pointer;
}
.ft-generate {
  background: var(--earth-terracotta, #b85c3c);
  color: #fff;
  box-shadow: 0 6px 18px color-mix(in srgb, var(--earth-terracotta, #b85c3c) 40%, transparent);
  transition: background 0.15s, transform 0.1s;
}
.ft-generate:hover { background: var(--earth-terracotta-hover, #9a4a2e); }
.ft-generate:active { transform: translateY(1px); }
.ft-generate:disabled { opacity: 0.65; cursor: default; box-shadow: none; }
.ft-download, .ft-share {
  background: rgba(255, 255, 255, 0.1);
  color: #f4efe9;
  border: 1px solid rgba(255, 255, 255, 0.16);
}
.ft-download:hover, .ft-share:hover { background: rgba(255, 255, 255, 0.18); }

.ft-note { margin: 12px 0 0; font-size: 12px; line-height: 1.45; color: rgba(244, 239, 233, 0.6); min-height: 1em; }

@media (prefers-reduced-motion: reduce) {
  .ft-bar i, .ft-generate { transition: none; }
}

/* Launcher chip — emoji only, a touch larger so the icon reads, otherwise a
   plain chip matching POIs / Add dot (no orange fill). */
#flythrough-btn.map-mode-btn { font-size: 15px; line-height: 1; padding-left: 9px; padding-right: 9px; }
