/* Biplane fly-overs (biplane.js). Above markers (600), below popups (700) and
   the map controls (800+), so a plane never covers a button. */
.bp-layer {
  position: absolute;
  inset: 0;
  z-index: 650;
  pointer-events: none;
  overflow: hidden;
  transition: opacity .2s ease;
}

.bp-smoke { position: absolute; left: 0; top: 0; }

.bp-plane {
  position: absolute;
  left: 0;
  top: 0;
  width: 0;
  height: 0;
}
/* Fading out for good (biplane.js sets the opacity; the class times it). */
.bp-plane.bp-retiring { transition: opacity .9s ease; pointer-events: none; }
.bp-plane.bp-retiring .bp-craft-wrap { pointer-events: none; }

.bp-craft-wrap {
  position: absolute;
  pointer-events: auto; /* tap the plane for a trick */
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  /* Shadow well below and to the side: the plane is in the air, not on the map. */
  filter: drop-shadow(10px 16px 4px rgba(0, 0, 0, .22));
}
.bp-craft { width: 100%; height: 100%; display: block; overflow: visible; transform-origin: 50% 50%; }


/* The map-control button (same look as the others in .custom-map-controls). */
.custom-control-btn.bp-toggle .bp-toggle-slash { display: none; }
.custom-control-btn.bp-toggle.bp-toggle-off { opacity: .6; }
.custom-control-btn.bp-toggle.bp-toggle-off .bp-toggle-slash { display: inline; }

/* Propeller: one blade flipping through edge-on reads as a spinning prop at
   this size, with the pale disc for motion blur. */
.bp-prop {
  transform-box: fill-box;
  transform-origin: center;
  animation: bp-spin .09s linear infinite;
}
@keyframes bp-spin {
  0%   { transform: scaleY(1); }
  25%  { transform: scaleY(.15); }
  50%  { transform: scaleY(-1); }
  75%  { transform: scaleY(-.15); }
  100% { transform: scaleY(1); }
}
.bp-prop-disc { animation: bp-blur .18s ease-in-out infinite alternate; }
@keyframes bp-blur { from { opacity: .22; } to { opacity: .42; } }

.bp-scarf {
  transform-box: fill-box;
  transform-origin: 100% 50%;
  animation: bp-scarf .35s ease-in-out infinite alternate;
}
@keyframes bp-scarf {
  from { transform: scaleY(.7) skewY(-6deg); }
  to   { transform: scaleY(1.15) skewY(5deg); }
}

.bp-rope { position: absolute; overflow: visible; }

/* The banner: cloth that ripples. The ripple is a moving band of shade plus a
   slight wave of the whole cloth; the text itself stays still and legible. */
.bp-banner {
  position: absolute;
  display: block;
  white-space: nowrap;
  text-decoration: none;
  animation: bp-wave 1.1s ease-in-out infinite alternate;
  filter: drop-shadow(0 4px 4px rgba(0, 0, 0, .25));
}
.bp-banner-link { pointer-events: auto; cursor: pointer; }
.bp-banner-link:hover .bp-cloth,
.bp-banner-link:focus-visible .bp-cloth { background-color: #fff; outline: none; }
.bp-banner-link:focus-visible { outline: 2px solid #0a7f8f; outline-offset: 3px; }

.bp-cloth {
  display: block;
  padding: 5px 14px 5px 12px;
  font: 700 13px/1.2 'Poppins', system-ui, sans-serif;
  letter-spacing: .02em;
  color: #3b2a8c;
  background-color: #ffffff;
  background-image: linear-gradient(90deg,
    rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, .09) 12%, rgba(0, 0, 0, 0) 24%,
    rgba(255, 255, 255, .35) 36%, rgba(0, 0, 0, 0) 48%);
  background-size: 160px 100%;
  border: 1px solid rgba(47, 111, 224, .45);
  border-left: 4px solid #2f6fe0;
  border-radius: 2px 6px 6px 2px;
  animation: bp-ripple 1.4s linear infinite;
}
/* Flying east the cloth trails to the left, so the free (flapping) end is the
   left one; flying west it is the right one. */
.bp-banner-west .bp-cloth { border-radius: 6px 2px 2px 6px; animation-direction: reverse; border-left-width: 1px; border-right: 4px solid #2f6fe0; }

@keyframes bp-ripple { from { background-position: 0 0; } to { background-position: -160px 0; } }
@keyframes bp-wave {
  from { transform: skewY(-1.6deg) scaleY(.96); }
  to   { transform: skewY(1.6deg) scaleY(1.03); }
}

@media (max-width: 600px) {
  .bp-cloth { font-size: 11px; padding: 4px 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .bp-layer { display: none; }
}

/* Admin panel → Biplane tab (renderBiplaneView in enhancedMap.js). */
.bpa-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(0, 0, 0, .08);
}
.bpa-on { padding-top: 6px; }
.bpa-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.bpa-main input {
  width: 100%;
  box-sizing: border-box;
  padding: 6px 8px;
  border: 1px solid #cfd4da;
  border-radius: 6px;
  font: inherit;
  font-size: 14px;
}
.bpa-preview { overflow: hidden; }
.bpa-preview .bp-cloth { display: inline-block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.bpa-weight { display: flex; flex-direction: column; font-size: 12px; opacity: .8; gap: 4px; }
.bpa-weight input { width: 56px; padding: 6px; border: 1px solid #cfd4da; border-radius: 6px; text-align: center; }
.bpa-delete {
  border: 0;
  background: none;
  font-size: 22px;
  line-height: 1;
  color: #9a2a22;
  cursor: pointer;
  padding: 4px 6px;
}
.bpa-actions { display: flex; gap: 8px; align-items: center; margin-top: 12px; flex-wrap: wrap; }
.bpa-status { margin-top: 8px; font-size: 13px; opacity: .85; }
.bpa-status.bpa-error { color: #ff8a80; opacity: 1; }

/* Admin panel → Inbox tab (renderContactInbox in enhancedMap.js). Lives here
   with the other admin-tab styles this file already carries. */
.admin-tab-badge {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 18px; height: 18px; margin-left: 4px; padding: 0 5px;
  border-radius: 999px; background: #ff5a7a; color: #fff; font-size: 11px; font-weight: 700;
}
.admin-tab-badge[hidden] { display: none; }
.ci-filters { display: flex; gap: 8px; margin: 4px 0 12px; }
.ci-filter {
  border: 1px solid rgba(255, 255, 255, 0.16); background: rgba(255, 255, 255, 0.06);
  color: inherit; border-radius: 999px; padding: 6px 14px; font: inherit; font-size: 13px; cursor: pointer;
}
.ci-filter span { opacity: 0.7; margin-left: 4px; }
.ci-filter.is-on { background: #0a7f8f; border-color: #0a7f8f; color: #fff; }
.ci-note { font-size: 12px; opacity: 0.7; margin-bottom: 10px; }
.ci-list { display: flex; flex-direction: column; gap: 12px; }
.ci-card { padding: 14px 16px; border-radius: 14px; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.1); }
.ci-card.is-handled { opacity: 0.65; }
.ci-top { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.ci-topic { padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; background: rgba(12, 157, 176, 0.25); color: #8fe3ef; }
.ci-topic-correction { background: rgba(247, 197, 46, 0.2); color: #f7c52e; }
.ci-topic-partnership { background: rgba(255, 122, 89, 0.2); color: #ff9a80; }
.ci-topic-app-help { background: rgba(255, 90, 122, 0.2); color: #ff8fa6; }
.ci-when { margin-left: auto; font-size: 12px; opacity: 0.65; }
.ci-from { font-size: 14px; margin-bottom: 8px; }
.ci-from a { color: #4cd0e0; }
.ci-message { white-space: pre-wrap; font-size: 14px; line-height: 1.5; margin-bottom: 8px; }
.ci-extra { font-size: 13px; opacity: 0.8; }
.ci-extra a { color: #4cd0e0; }
.ci-actions { display: flex; align-items: center; gap: 10px; margin-top: 12px; }
.ci-actions a.btn-primary-sm { text-decoration: none; }
.ci-done-at { font-size: 12px; opacity: 0.6; }
.ci-empty { padding: 30px 0; text-align: center; opacity: 0.7; }
