/* MyFishNavigator — shared UI primitives (light glass, mirrors mobile components) */

.ff-glass-card {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  backdrop-filter: saturate(160%) blur(18px);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.ff-glass-card--translucent {
  background: rgba(255, 255, 255, 0.55);
}

.ff-pill-tabs {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.ff-pill-tab {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 7px 14px;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  font-family: var(--font-body);
  white-space: nowrap;
}

.ff-pill-tab:hover:not(.active) {
  color: var(--text);
  background: rgba(255, 255, 255, 0.45);
}

.ff-pill-tab.active {
  color: var(--on-accent);
  background: var(--accent);
  box-shadow: 0 1px 4px rgba(0, 113, 227, 0.28);
}

.ff-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--on-accent);
  background: var(--accent);
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(0, 113, 227, 0.25);
  transition: background 0.15s, transform 0.1s;
}

.ff-btn-primary:hover {
  background: var(--accent-dim);
}

.ff-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  text-decoration: none;
}

.ff-btn-secondary:hover {
  border-color: var(--accent-dim);
  color: var(--accent);
}

.ff-empty-state {
  text-align: center;
  padding: 48px 28px;
}

.ff-empty-state h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  margin: 16px 0 10px;
  color: var(--text);
}

.ff-empty-state p {
  color: var(--text-muted);
  max-width: 420px;
  margin: 0 auto 20px;
  line-height: 1.55;
}

/* Subscription teaser — blurred preview + centered modal */
.ff-teaser-root {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.ff-teaser-root.is-locked .ff-teaser-content {
  filter: blur(7px) saturate(0.92);
  opacity: 0.65;
  pointer-events: none;
  user-select: none;
  transform: scale(1.008);
}

.ff-teaser-overlay {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(219, 228, 239, 0.35);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

.ff-teaser-root:not(.is-locked) .ff-teaser-overlay {
  display: none;
}

.ff-teaser-modal {
  width: 100%;
  max-width: 420px;
  padding: 28px 26px;
  text-align: left;
}

.ff-teaser-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  background: var(--accent-glow);
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.ff-teaser-tier {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
}

.ff-teaser-modal h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  margin: 0 0 14px;
  color: var(--text);
  line-height: 1.25;
}

.ff-teaser-bullets {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ff-teaser-bullets li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.ff-teaser-bullets li::before {
  content: "✓";
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 0.7rem;
  font-weight: 800;
  color: #15803d;
  background: rgba(21, 128, 61, 0.12);
}

.ff-teaser-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: stretch;
}

.ff-teaser-actions .btn-admin-back {
  align-self: center;
  margin-top: 4px;
}

.ff-btn-primary--purple {
  background: linear-gradient(135deg, #7c3aed, #6d28d9);
  box-shadow: 0 4px 14px rgba(124, 58, 237, 0.28);
}

.ff-btn-primary--purple:hover {
  background: linear-gradient(135deg, #6d28d9, #5b21b6);
}

.ff-teaser-icon-ring {
  position: relative;
  width: 56px;
  height: 56px;
  margin: 0 auto 14px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
}

.ff-teaser-icon-ring--purple {
  background: linear-gradient(145deg, rgba(124, 58, 237, 0.18), rgba(167, 139, 250, 0.12));
  border: 1px solid rgba(124, 58, 237, 0.22);
}

.ff-teaser-icon-ring--blue {
  background: linear-gradient(145deg, rgba(0, 113, 227, 0.16), rgba(96, 165, 250, 0.12));
  border: 1px solid rgba(0, 113, 227, 0.22);
}

.ff-teaser-icon-lock {
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--border);
  font-size: 0.65rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(15, 40, 80, 0.12);
}

.ff-teaser-feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 0 0 20px;
}

.ff-teaser-feature {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 12px 8px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.55);
  text-align: center;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text-muted);
  line-height: 1.35;
}

.ff-teaser-feature-icon {
  font-size: 1.15rem;
  line-height: 1;
}

.ff-teaser-modal {
  text-align: center;
}

.ff-teaser-modal .ff-teaser-tier {
  text-align: center;
}

.ff-teaser-modal h2 {
  text-align: center;
}

/* Saved searches table */
.saved-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}

.saved-table {
  width: 100%;
  border-collapse: collapse;
  background: rgba(255, 255, 255, 0.72);
  font-size: 0.88rem;
}

.saved-table th,
.saved-table td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.saved-table thead th {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.5);
}

.saved-table tbody tr:last-child td {
  border-bottom: none;
}

.saved-table tbody tr:hover {
  background: rgba(0, 113, 227, 0.04);
}

.saved-table tbody tr.saved-item {
  display: table-row !important;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 0;
  cursor: pointer;
}

.saved-table .saved-table-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.saved-table-loc {
  font-weight: 600;
  color: var(--text);
}

.saved-table-meta {
  font-size: 0.78rem;
  color: var(--text-dim);
  margin-top: 2px;
}

.saved-map-thumb {
  width: 72px;
  height: 52px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background-color: var(--bg-deep, #e8eef5);
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}

.saved-map-thumb--empty {
  background: linear-gradient(145deg, #dbeafe, #eff6ff);
}

.saved-map-thumb-pin {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 10px;
  height: 10px;
  margin: -5px 0 0 -5px;
  border-radius: 50%;
  background: var(--accent, #2563eb);
  border: 2px solid #fff;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.35);
}

.saved-table-thumb-cell {
  width: 84px;
  padding-right: 8px !important;
}

.saved-table-species,
.saved-table-conditions {
  display: block;
  font-size: 0.86rem;
  line-height: 1.4;
}

.saved-table-species {
  font-weight: 600;
  color: var(--text);
}

.saved-table-conditions {
  color: var(--text-muted);
}

.place-suggest-kind {
  margin-left: 8px;
  padding: 1px 7px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  background: rgba(59, 130, 246, 0.12);
  color: var(--accent, #2563eb);
  vertical-align: middle;
}

.saved-view-header {
  max-width: 1080px;
  margin: 0 auto 20px;
  padding: 0 24px;
}

/* Advmaps-style teardrop pins (search map + TOP SPOTS) */
.advmaps-pin {
  background: transparent !important;
  border: none !important;
}

.advmaps-pin-wrap {
  position: relative;
  display: block;
  width: 30px;
  height: 41px;
  transform: translate(-15px, -41px);
  pointer-events: none;
}

.advmaps-teardrop {
  position: absolute;
  left: 0;
  top: 0;
  width: 30px;
  height: 41px;
  pointer-events: auto;
  filter: drop-shadow(0 2px 4px rgba(8, 22, 43, 0.45));
}

.advmaps-teardrop-svg path {
  fill: #2563eb;
  stroke: #ffffff;
  stroke-width: 1.5;
}

.advmaps-teardrop-num {
  position: absolute;
  left: 0;
  top: 2px;
  width: 30px;
  height: 27px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  color: #ffffff;
  pointer-events: none;
}

.advmaps-pin-label {
  position: absolute;
  left: 34px;
  top: 4px;
  max-width: 148px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(15, 23, 42, 0.12);
  font-size: 11px;
  font-weight: 600;
  color: #0f172a;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.12);
  pointer-events: none;
}

.advmaps-pin--selected .advmaps-teardrop-svg path {
  fill: #ea580c;
}

.advmaps-pin--user .advmaps-teardrop-svg path {
  fill: #2563eb;
}

.advmaps-pin--user .advmaps-teardrop::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 9px;
  width: 8px;
  height: 8px;
  margin-left: -4px;
  border-radius: 50%;
  background: #fff;
}

.saved-view-header h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  margin: 0 0 6px;
}

.saved-view-header p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.saved-view-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 24px;
}
