/* map.css - Consolidated styles for the map page (index.html)
   Dark theme, fullscreen map, FlightRadar24-style layout */

/* ============================================================
   MAP PAGE BASE LAYOUT
   ============================================================ */

/* Map page reset — only reset direct layout elements, not Google Maps internals */

html, body {
  height: 100%;
}

body.map-page {
  font-family: var(--dsc-font);
  background: var(--dsc-bg);
  overflow: hidden;
  position: fixed;
  width: 100%;
}

/* Header override for map page */
body.map-page .header {
  position: sticky;
}

/* ============================================================
   MAP HEADER SPECIFIC ELEMENTS
   ============================================================ */

.menu-search {
  display: flex;
  align-items: center;
}

#search {
  padding: 7px 16px;
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.06);
  color: var(--dsc-text);
  font-size: 13px;
  width: 220px;
  margin-right: 8px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  backdrop-filter: blur(4px);
}

#search::placeholder {
  color: var(--dsc-text-muted);
  font-size: 12px;
}

#search:focus {
  border-color: var(--dsc-primary);
  box-shadow: 0 0 0 3px rgba(0, 174, 239, 0.15);
  background: rgba(255, 255, 255, 0.08);
  outline: none;
}

/* Map page menu-button overrides */
body.map-page .menu-button {
  display: inline-block;
}

/* Hide Font Awesome icons on desktop (hamburger menu buttons) */
.menu-button i {
  display: none;
}

/* Always show icons inside the limit modal */
#limit-modal .menu-button i {
  display: inline-block;
}

/* ============================================================
   MAP CONTAINER — fullscreen
   ============================================================ */

.map-container {
  position: absolute;
  top: 64px;
  left: 0;
  right: 0;
  bottom: 0;
  background: #12141a;
}

#map {
  height: 100%;
  width: 100%;
}

/* ============================================================
   AIRPORT PANEL (slide-in left)
   ============================================================ */

.airport-panel {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 420px;
  background: rgba(27, 29, 35, 0.92);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), width 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
  z-index: 10;
  color: var(--dsc-text);
  padding: 16px;
  padding-top: 48px;
  box-shadow: 4px 0 24px rgba(0, 0, 0, 0.4);
}

.airport-panel.open {
  transform: translateX(0);
}

.airport-panel-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--dsc-border);
  color: var(--dsc-text-muted);
  font-size: 24px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: background-color 0.15s ease, color 0.15s ease;
  z-index: 11;
}

.airport-panel-close:hover {
  background: var(--dsc-danger);
  color: #fff;
}

/* Expand button — positioned left of the close button */
.airport-panel-expand {
  position: absolute;
  top: 12px;
  right: 56px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--dsc-border);
  color: var(--dsc-text-muted);
  font-size: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: background-color 0.15s ease, color 0.15s ease;
  z-index: 11;
}

.airport-panel-expand:hover {
  background: var(--dsc-primary);
  color: #fff;
}

/* Expanded state */
.airport-panel.expanded {
  width: 70vw;
}

/* Scrollbar for airport panel */
.airport-panel::-webkit-scrollbar {
  width: 6px;
}

.airport-panel::-webkit-scrollbar-track {
  background: transparent;
}

.airport-panel::-webkit-scrollbar-thumb {
  background-color: rgba(255, 255, 255, 0.15);
  border-radius: 999px;
}

/* ============================================================
   BOTTOM TOOLBAR
   ============================================================ */

.bottom-toolbar {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  padding: 6px 8px 4px;
  background: rgba(27, 29, 35, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  z-index: 5;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.toolbar-main {
  display: flex;
  gap: 2px;
}

.toolbar-links {
  display: flex;
  gap: 10px;
  padding: 2px 0 2px;
  font-size: 10px;
}

.toolbar-links a {
  color: var(--dsc-text-muted);
  text-decoration: none;
  opacity: 0.5;
  transition: color 0.15s, opacity 0.15s;
}

.toolbar-links a:hover {
  color: var(--dsc-primary);
  opacity: 1;
}

.toolbar-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: transparent;
  color: var(--dsc-text-muted);
  border: none;
  padding: 10px 20px;
  border-radius: 12px;
  cursor: pointer;
  font-size: 10px;
  gap: 5px;
  transition: all 0.2s ease;
  font-family: var(--dsc-font);
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  position: relative;
}

.toolbar-btn:hover {
  background: rgba(0, 174, 239, 0.1);
  color: var(--dsc-primary);
}

.toolbar-btn.active {
  background: rgba(0, 174, 239, 0.15);
  color: var(--dsc-primary);
}

.toolbar-btn i {
  font-size: 17px;
  transition: transform 0.2s ease;
}

.toolbar-btn:hover i {
  transform: scale(1.15);
}

/* ============================================================
   LEGEND (bottom-left, dark glass)
   ============================================================ */

.filter-toggle-btn {
  position: absolute;
  bottom: 80px;
  left: 12px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(27, 29, 35, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: var(--dsc-text-muted);
  font-size: 14px;
  cursor: pointer;
  z-index: 4;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.filter-toggle-btn:hover {
  background: rgba(50, 54, 65, 0.9);
}

/* Hidden by default — shown on mobile via media query */
.mobile-trophy-btn {
  display: none;
}

/* Hidden by default — shown on mobile via media query */
.mobile-suggest-airport-btn {
  display: none;
  position: absolute;
  bottom: 124px;
  left: 12px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(0, 174, 239, 0.3);
  background: rgba(27, 29, 35, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: var(--dsc-primary);
  font-size: 14px;
  cursor: pointer;
  z-index: 4;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  align-items: center;
  justify-content: center;
}

.pin {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin-right: 6px;
  border: 1.5px solid rgba(255, 255, 255, 0.5);
  vertical-align: middle;
}

.pin-blue {
  background-color: #3b82f6;
}

.pin-red {
  background-color: #ef4444;
}

.pin-green {
  background-color: #22c55e;
}

.pin-yellow {
  background-color: #eab308;
}

.pin-gray {
  background-color: #f97316;
}

/* ============================================================
   MAP FOOTER LINKS (bottom-right, discrete)
   ============================================================ */

/* Legacy map-footer-links (now integrated into toolbar) */

/* ============================================================
   AIRPORT INFO MODAL (kept for permits/country data)
   ============================================================ */

.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: background-color 0.3s;
}

.modal-content {
  width: 80%;
  max-height: 70%;
  overflow-y: auto;
  overflow-x: hidden;
  box-sizing: border-box;
  background-color: var(--dsc-bg-elevated);
  color: var(--dsc-text);
  margin: 10% auto;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  max-width: 1200px;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.05);
  transition: transform 0.3s;
  position: relative;
  word-break: break-word;
  overflow-wrap: break-word;
}

.modal-content a {
  word-break: break-all;
  overflow-wrap: break-word;
}

.modal-content::-webkit-scrollbar {
  width: 6px;
}

.modal-content::-webkit-scrollbar-track {
  background: transparent;
}

.modal-content::-webkit-scrollbar-thumb {
  background-color: rgba(255, 255, 255, 0.15);
  border-radius: 999px;
}

.modal-content:hover {
  transform: none;
}

@media (min-width: 768px) {
  .modal-content {
    margin: 10% auto;
    width: 50%;
  }
}

.close {
  color: var(--dsc-text-muted);
  position: absolute;
  top: 14px;
  right: 14px;
  font-size: 22px;
  font-weight: bold;
  background-color: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.2s ease;
  cursor: pointer;
  z-index: 10;
}

.close:hover,
.close:focus {
  color: #ffffff;
  background-color: var(--dsc-danger);
  border-color: var(--dsc-danger);
  text-decoration: none;
  transform: scale(1.1);
}

/* ============================================================
   AI (AIRPORT INFO) STYLES WITHIN PANEL
   ============================================================ */

.ai-container {
  width: 100%;
  margin: 0;
  padding: 0;
  background-color: transparent;
  color: var(--dsc-text);
  border-radius: 0;
  box-shadow: none;
}

.ai-airportinfo h2 {
  margin-bottom: 1rem;
  font-size: 1.5rem;
  color: var(--dsc-text);
}

.ai-title {
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
  color: var(--dsc-text);
}

.ai-list {
  list-style-type: none;
}

.ai-list li {
  margin-bottom: 0.5rem;
  background: var(--dsc-bg);
  border: 1px solid var(--dsc-border);
  color: var(--dsc-text);
  border-radius: 10px;
  padding: 10px;
}

.ai-service-category {
  font-size: 1.1rem;
  margin-top: 1rem;
  margin-bottom: 0.5rem;
  color: var(--dsc-primary);
}

.ai-service-category:not(:first-child) {
  margin-top: 2rem;
}

.provider-name,
.provider-email,
.provider-phone,
.provider-frequency,
.provider-emergency-phone,
.provider-description {
  font-weight: 400;
  margin-left: 0.5rem;
}

/* ============================================================
   ALERT
   ============================================================ */

.alert-container {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 6;
  width: 90%;
  max-width: 500px;
}

@media (max-width: 1024px) {
  .alert-container {
    top: 60px;
  }
}

.alert-warning {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background-color: rgba(254, 243, 205, 0.9);
  color: #856404;
  border: 1px solid #ffeaa7;
  border-radius: 8px;
  font-size: 13px;
  padding: 8px 12px;
}

.alert-text {
  flex: 1;
}

.close-alert {
  cursor: pointer;
  font-weight: bold;
  font-size: 18px;
  line-height: 1;
  flex-shrink: 0;
  padding: 2px 4px;
}

.bold-warning {
  font-weight: bold;
}

.alert-collab {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: rgba(13, 17, 23, 0.92);
  color: #e0e6ed;
  border: 1px solid rgba(0,174,239,0.35);
  border-radius: 8px;
  font-size: 13px;
  padding: 10px 14px;
  backdrop-filter: blur(8px);
}

.bold-collab {
  font-weight: 700;
  color: #00aeef;
}

.collab-link {
  color: #00aeef;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.collab-link:hover {
  color: #fff;
}

/* Forgot password link */
.forgot-password {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.9rem;
  text-decoration: none;
  color: var(--dsc-primary);
  text-align: right;
}

.forgot-password:hover {
  text-decoration: underline;
}

/* ============================================================
   REPORT MODAL (dark)
   ============================================================ */

/* ============================================================
   REPORT MODAL
   ============================================================ */
.report-modal {
  display: none;
  justify-content: center;
  align-items: center;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2000;
}

.report-modal-content {
  background: var(--dsc-bg-elevated);
  color: var(--dsc-text);
  border: 1px solid var(--dsc-border);
  border-radius: 16px;
  padding: 32px;
  width: 90%;
  max-width: 520px;
  max-height: 92vh;
  overflow-y: auto;
  overflow-x: hidden;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
}

/* Prevent form elements from overflowing modal */
.report-modal-content input,
.report-modal-content select,
.report-modal-content textarea {
  max-width: 100%;
  min-width: 0;
}

.report-modal-content::-webkit-scrollbar {
  width: 5px;
}

.report-modal-content::-webkit-scrollbar-track {
  background: transparent;
}

.report-modal-content::-webkit-scrollbar-thumb {
  background-color: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
}

.report-modal-content h2 {
  color: var(--dsc-text);
  font-size: 18px;
  font-weight: 600;
  text-align: center;
  margin: 0 0 20px;
}

/* Form layout */
.report-modal-content form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.report-modal-content .form-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.report-modal-content .form-row.hidden {
  display: none !important;
}

.report-modal-content label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--dsc-text-muted);
}

/* Inputs, selects, textarea */
.report-modal-content input[type="text"],
.report-modal-content input[type="email"],
.report-modal-content input[type="number"],
.report-modal-content select,
.report-modal-content textarea {
  padding: 10px 14px;
  border: 1px solid var(--dsc-border);
  border-radius: 8px;
  font-size: 14px;
  font-family: var(--dsc-font);
  background: var(--dsc-bg);
  color: var(--dsc-text);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.report-modal-content input:focus,
.report-modal-content select:focus,
.report-modal-content textarea:focus {
  border-color: var(--dsc-primary);
  box-shadow: 0 0 0 3px rgba(0, 174, 239, 0.15);
  outline: none;
}

.report-modal-content textarea {
  resize: vertical;
  min-height: 90px;
}

/* Radio button row — pill-style tabs */
.report-modal-content .radio-buttons-row {
  display: flex;
  gap: 0;
  background: var(--dsc-bg);
  border-radius: 8px;
  padding: 3px;
  margin-bottom: 4px;
  border: 1px solid var(--dsc-border);
}

.report-modal-content .radio-buttons-row input[type="radio"] {
  display: none;
}

.report-modal-content .radio-buttons-row label {
  flex: 1;
  text-align: center;
  padding: 8px 6px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--dsc-text-muted);
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}

.report-modal-content .radio-buttons-row input[type="radio"]:checked + label {
  background: var(--dsc-primary);
  color: #fff;
  box-shadow: 0 2px 8px rgba(0, 174, 239, 0.3);
}

/* Recaptcha */
.report-modal-content .recaptcha-container {
  display: flex;
  justify-content: center;
  margin: 4px 0;
}

/* Buttons */
.report-modal-content .buttons-row {
  display: flex;
  gap: 10px;
  margin-top: 4px;
}

.report-modal-content button {
  border: none;
  border-radius: 8px;
  color: #fff;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  font-family: var(--dsc-font);
  padding: 11px 20px;
  text-align: center;
  width: 100%;
  transition: background-color 0.15s ease, transform 0.1s ease;
}

.report-modal-content button:hover {
  transform: translateY(-1px);
}

.report-modal-content button:active {
  transform: translateY(0);
}

.report-modal-content button[name="submitReportButton"] {
  background: var(--dsc-primary);
  width: 50%;
}

.report-modal-content button[name="submitReportButton"]:hover {
  background: var(--dsc-primary-hover);
}

#closeReportModalButton {
  background: rgba(255, 255, 255, 0.08);
  color: var(--dsc-text-muted);
  border: 1px solid var(--dsc-border);
  width: 50%;
}

#closeReportModalButton:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--dsc-text);
  cursor: pointer;
}

/* Flash messages */
.report-modal-content .modal-message {
  border-radius: 8px;
  margin-bottom: 8px;
  padding: 10px 14px;
  text-align: center;
  font-size: 13px;
}

.report-modal-content .alert-success {
  background: rgba(16, 185, 129, 0.15);
  color: var(--dsc-success);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.report-modal-content .alert-danger {
  background: rgba(239, 68, 68, 0.15);
  color: var(--dsc-danger);
  border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Specific-fields sections */
.report-modal-content .report-specific-fields {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* ============================================================
   FILTER PANEL (floating, bottom-right, dark glass)
   ============================================================ */

/* Sheet overlay + handle (hidden on desktop, shown on mobile) */
.filter-sheet-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1099;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.filter-sheet-handle {
  display: none;
}

.filter-panel {
  position: absolute;
  bottom: 80px;
  left: 12px;
  background: rgba(27, 29, 35, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  color: var(--dsc-text-muted);
  font-size: 12px;
  padding: 12px 16px;
  z-index: 4;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  min-width: 160px;
}

.filter-close-btn {
  position: absolute;
  top: 4px;
  right: 4px;
  background: none;
  border: none;
  color: var(--dsc-text-muted);
  font-size: 16px;
  cursor: pointer;
  line-height: 1;
  opacity: 0.6;
  transition: opacity 0.15s, background 0.15s;
  padding: 6px 10px;
  border-radius: 6px;
}

.filter-close-btn:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.08);
}

.filter-panel-title {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--dsc-text-muted);
  margin-bottom: 8px;
  opacity: 0.7;
}

.filter-option {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 3px 0;
  cursor: pointer;
  transition: opacity 0.15s ease;
  opacity: 0.5;
}

.filter-option:has(input:checked) {
  opacity: 1;
}

.filter-option input[type="checkbox"] {
  width: 14px;
  height: 14px;
  accent-color: var(--dsc-primary);
  cursor: pointer;
  margin: 0;
}

.filter-option .pin {
  flex-shrink: 0;
}

.filter-beta-badge {
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1;
  padding: 2px 5px;
  border-radius: 4px;
  background: rgba(234, 179, 8, 0.25);
  color: #eab308;
  margin-left: 4px;
  vertical-align: middle;
}

.filter-country {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  position: relative;
}

.country-input-wrap {
  display: flex;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: var(--dsc-bg);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.country-input-wrap:focus-within {
  border-color: var(--dsc-primary);
  box-shadow: 0 0 0 2px rgba(0, 174, 239, 0.15);
}

#countryInput {
  flex: 1;
  min-width: 0;
  padding: 5px 8px;
  border: none;
  border-radius: 8px 0 0 8px;
  font-size: 11px;
  background: transparent;
  color: var(--dsc-text);
  outline: none;
  box-sizing: border-box;
}

.country-clear-btn {
  flex-shrink: 0;
  background: transparent;
  border: none;
  color: var(--dsc-text-muted);
  padding: 4px 6px;
  cursor: pointer;
  font-size: 10px;
  display: flex;
  align-items: center;
  opacity: 0.5;
  transition: opacity 0.15s, color 0.15s;
}

.country-clear-btn:hover {
  opacity: 1;
  color: var(--dsc-danger);
}

.country-dropdown-toggle {
  flex-shrink: 0;
  background: transparent;
  border: none;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--dsc-text-muted);
  padding: 4px 8px;
  cursor: pointer;
  font-size: 10px;
  display: flex;
  align-items: center;
  transition: color 0.15s ease;
}

.country-dropdown-toggle:hover {
  color: var(--dsc-primary);
}

/* Go button (shown after country selection on mobile) */
.country-go-btn {
  display: none;
  width: 100%;
  margin-top: 8px;
  padding: 10px;
  border: none;
  border-radius: 8px;
  background: var(--dsc-primary);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  gap: 6px;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}

.country-go-btn:hover {
  background: var(--dsc-primary-hover);
}

.country-suggestions {
  display: none;
  position: absolute;
  bottom: 100%;
  left: 0;
  right: 0;
  margin: 0;
  padding: 4px 0;
  list-style: none;
  background: rgba(27, 29, 35, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  max-height: 180px;
  overflow-y: auto;
  z-index: 10;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.4);
}

.country-suggestions li {
  padding: 6px 10px;
  font-size: 11px;
  color: var(--dsc-text);
  cursor: pointer;
  transition: background 0.12s ease;
}

.country-suggestions li:hover {
  background: rgba(0, 174, 239, 0.2);
  color: var(--dsc-primary);
}

.country-suggestions::-webkit-scrollbar {
  width: 4px;
}

.country-suggestions::-webkit-scrollbar-track {
  background: transparent;
}

.country-suggestions::-webkit-scrollbar-thumb {
  background-color: rgba(255, 255, 255, 0.15);
  border-radius: 999px;
}

/* ============================================================
   LIMIT MODAL (dark)
   ============================================================ */

#limit-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3000;
  background-color: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

#limit-modal .limit-modal-card {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: var(--dsc-bg-elevated);
  color: var(--dsc-text);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 32px;
  border-radius: 20px;
  width: 80%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.05);
  text-align: center;
}

#limit-modal .limit-modal-card h2 {
  margin-top: 0;
  color: var(--dsc-text);
}

#limit-modal #timer {
  font-size: 24px;
  font-weight: bold;
  text-align: center;
  color: var(--dsc-success);
}

#limit-modal .limit-modal-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 1rem;
  width: 100%;
}

/* ── 16-bit pixel art: grounded plane in the rain ────────── */
.limit-scene {
  position: relative;
  width: 100%;
  height: 140px;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 1.25rem;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  background: linear-gradient(180deg,
    #0d1520 0%, #152030 25%, #1a2840 45%, #1e3050 60%,
    #1a1e28 60%, #151a22 75%, #111418 100%
  );
}

/* ── Rain ── */
.limit-rain {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  background-image:
    linear-gradient(180deg, transparent 0%, transparent 94%, rgba(150,180,210,0.35) 94%, transparent 100%),
    linear-gradient(180deg, transparent 0%, transparent 96%, rgba(130,160,200,0.2) 96%, transparent 100%);
  background-size: 6px 18px, 10px 22px;
  background-position: 0 0, 3px 5px;
  animation: lRainFall 0.35s linear infinite;
}

@keyframes lRainFall {
  from { background-position: 0 -18px, 3px -13px; }
  to   { background-position: 2px 0, 5px 9px; }
}

/* ── Clouds ── */
.limit-cloud {
  position: absolute;
  z-index: 3;
  border-radius: 0;
}

/* Cloud built with box-shadow pixels */
.lc-1 {
  width: 6px; height: 6px;
  top: 8px;
  background: #2a3a52;
  box-shadow:
    6px 0 #2a3a52, 12px 0 #2a3a52, 18px 0 #2a3a52, 24px 0 #2a3a52, 30px 0 #2a3a52, 36px 0 #2a3a52, 42px 0 #2a3a52,
    -6px 0 #2a3a52,
    0 -6px #253350, 6px -6px #253350, 12px -6px #253350, 18px -6px #253350, 24px -6px #253350, 30px -6px #253350,
    6px -12px #213050, 12px -12px #213050, 18px -12px #213050, 24px -12px #213050;
  animation: lCloudDrift 22s linear infinite;
}

.lc-2 {
  width: 6px; height: 6px;
  top: 18px;
  background: #253550;
  box-shadow:
    6px 0 #253550, 12px 0 #253550, 18px 0 #253550, 24px 0 #253550, 30px 0 #253550,
    0 -6px #203048, 6px -6px #203048, 12px -6px #203048, 18px -6px #203048, 24px -6px #203048,
    6px -12px #1c2c44, 12px -12px #1c2c44, 18px -12px #1c2c44;
  opacity: 0.8;
  animation: lCloudDrift 30s linear infinite 8s;
}

.lc-3 {
  width: 6px; height: 6px;
  top: 4px;
  background: #263a55;
  box-shadow:
    6px 0 #263a55, 12px 0 #263a55, 18px 0 #263a55, 24px 0 #263a55,
    0 -6px #223250, 6px -6px #223250, 12px -6px #223250, 18px -6px #223250;
  opacity: 0.5;
  animation: lCloudDrift 26s linear infinite 14s;
}

@keyframes lCloudDrift {
  from { left: -80px; }
  to   { left: calc(100% + 20px); }
}

/* ── Ground details ── */

/* Runway center dashes */
.limit-scene::before {
  content: '';
  position: absolute;
  bottom: 28px;
  left: 5%;
  right: 5%;
  height: 2px;
  z-index: 1;
  background: repeating-linear-gradient(90deg,
    rgba(255,255,255,0.12) 0px, rgba(255,255,255,0.12) 14px,
    transparent 14px, transparent 28px
  );
}

/* Taxiway yellow line */
.limit-scene::after {
  content: '';
  position: absolute;
  bottom: 14px;
  left: 8%;
  width: 35%;
  height: 2px;
  z-index: 1;
  background: rgba(245, 158, 11, 0.2);
}

/* Ground edge highlight */

/* ── Control tower (right) ── */
.limit-tower {
  position: absolute;
  bottom: 56px;
  right: 12%;
  width: 8px;
  height: 36px;
  background: #1e2838;
  border: 1px solid #2a3650;
  border-bottom: none;
  z-index: 2;
}

/* Tower cab */
.limit-tower::before {
  content: '';
  position: absolute;
  top: -10px;
  left: -6px;
  width: 20px;
  height: 10px;
  background: #1a2435;
  border: 1px solid #2a3650;
  box-shadow:
    inset 2px 2px 0 #3a6080,
    inset -2px 2px 0 #3a6080;
}

/* Tower beacon */
.limit-tower::after {
  content: '';
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  background: #ef4444;
  box-shadow: 0 0 6px #ef4444, 0 0 12px rgba(239,68,68,0.4);
  animation: lBeacon 1.5s ease-in-out infinite;
}

@keyframes lBeacon {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.15; }
}

/* ── Hangar (left) ── */
.limit-hangar {
  position: absolute;
  bottom: 56px;
  left: 8%;
  width: 40px;
  height: 22px;
  background: #181e2a;
  border: 1px solid #252e3e;
  border-bottom: none;
  z-index: 2;
}

/* Hangar roof */
.limit-hangar::before {
  content: '';
  position: absolute;
  top: -8px;
  left: -1px;
  width: 42px;
  height: 9px;
  background: #222a38;
  border-radius: 50% 50% 0 0;
  border: 1px solid #2a3448;
  border-bottom: none;
}

/* Hangar door glow */
.limit-hangar::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 6px;
  width: 28px;
  height: 14px;
  background: rgba(245, 158, 11, 0.06);
  border: 1px solid #252e3e;
  border-bottom: none;
}

/* ── Plane (centered, grounded) ── */
.limit-plane {
  position: absolute;
  bottom: 38px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  /* Fuselage */
  width: 64px;
  height: 14px;
  background: linear-gradient(180deg, #b0b8c4 0%, #8a929e 40%, #6e7682 100%);
  border-radius: 2px 10px 6px 2px;
  box-shadow:
    0 2px 0 rgba(0,0,0,0.3),
    0 -1px 0 rgba(255,255,255,0.05);
}

/* Wings */
.limit-plane::before {
  content: '';
  position: absolute;
  top: 1px;
  left: 14px;
  width: 36px;
  height: 5px;
  background: linear-gradient(180deg, #a0a8b4 0%, #808890 100%);
  border-radius: 1px;
  box-shadow:
    0 1px 0 rgba(0,0,0,0.2),
    0 -1px 0 rgba(255,255,255,0.06);
  transform: scaleY(1) perspective(20px) rotateX(5deg);
}

/* Tail fin */
.limit-plane::after {
  content: '';
  position: absolute;
  top: -10px;
  left: -2px;
  width: 4px;
  height: 12px;
  background: linear-gradient(90deg, #8a929e 0%, #a0a8b4 50%, #8a929e 100%);
  border-radius: 2px 2px 0 0;
  clip-path: polygon(0 100%, 30% 0, 100% 0, 100% 100%);
}

/* ── Cockpit windows (via box-shadow on plane) — handled by ::before already ── */

/* ── Zzz — floating sleep bubbles ── */
.limit-zzz {
  position: absolute;
  bottom: 56px;
  left: calc(50% + 26px);
  z-index: 5;
  font-family: 'Courier New', monospace;
  font-weight: 900;
  font-size: 0;
  line-height: 1;
}

.limit-zzz::before {
  content: 'z';
  position: absolute;
  bottom: 0;
  left: 0;
  font-size: 11px;
  color: rgba(200, 220, 255, 0.5);
  animation: lZzz1 2.5s ease-in-out infinite;
}

.limit-zzz::after {
  content: 'z';
  position: absolute;
  bottom: 10px;
  left: 8px;
  font-size: 8px;
  color: rgba(200, 220, 255, 0.35);
  animation: lZzz2 2.5s ease-in-out infinite 0.4s;
}

@keyframes lZzz1 {
  0%   { opacity: 0; transform: translate(0, 4px); }
  15%  { opacity: 1; }
  80%  { opacity: 1; }
  100% { opacity: 0; transform: translate(6px, -14px); }
}

@keyframes lZzz2 {
  0%   { opacity: 0; transform: translate(0, 4px); }
  15%  { opacity: 0.8; }
  80%  { opacity: 0.8; }
  100% { opacity: 0; transform: translate(4px, -12px); }
}

/* ── Traffic cones ── */
.limit-cone {
  position: absolute;
  bottom: 56px;
  z-index: 2;
  width: 8px;
  height: 10px;
  background: linear-gradient(180deg, #f59e0b 0%, #d97706 100%);
  clip-path: polygon(50% 0%, 100% 100%, 0% 100%);
}

.limit-cone::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: -1px;
  width: 10px;
  height: 3px;
  background: #92400e;
  border-radius: 1px;
}

/* White stripe */
.limit-cone::after {
  content: '';
  position: absolute;
  top: 5px;
  left: 2px;
  width: 4px;
  height: 2px;
  background: rgba(255,255,255,0.8);
}

.lc-left  { left: calc(50% - 50px); }
.lc-right { left: calc(50% + 44px); }

/* ── Puddles (reflections) ── */
.limit-puddle {
  position: absolute;
  z-index: 1;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(100,140,180,0.12) 0%, transparent 70%);
  animation: lPuddle 3s ease-in-out infinite alternate;
}

.lp-1 {
  bottom: 8px;
  left: 30%;
  width: 30px;
  height: 6px;
}

.lp-2 {
  bottom: 12px;
  right: 25%;
  width: 20px;
  height: 4px;
  animation-delay: 1.5s;
}

@keyframes lPuddle {
  0%   { opacity: 0.4; }
  100% { opacity: 0.8; }
}

/* Map blocked state */
body.map-blocked .map-container {
  pointer-events: none;
  opacity: 0.5;
}

body.map-blocked .seo-page-container {
  pointer-events: none;
  opacity: 0.5;
}

body.map-blocked {
  overflow: hidden;
}

/* ============================================================
   QUIZ UNLOCK (Fase 3)
   ============================================================ */

.quiz-unlock-btn {
  flex-basis: 100%;
  padding: 12px 20px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, #4a6cf7 0%, #7c3aed 100%);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.quiz-unlock-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(74, 108, 247, 0.4);
}

.quiz-unlock-btn i {
  margin-right: 6px;
  color: #fbbf24;
}

.quiz-nudge-text {
  flex-basis: 100%;
  margin: 0;
  padding: 10px 16px;
  border-radius: 8px;
  background: rgba(251, 191, 36, 0.1);
  border: 1px solid rgba(251, 191, 36, 0.25);
  color: #fbbf24;
  font-size: 13px;
  line-height: 1.5;
  text-align: center;
}

/* ── Loss Aversion + Email Unlock (Fase 4) ── */

.loss-aversion-block {
  flex-basis: 100%;
  padding: 18px 20px;
  border-radius: 10px;
  background: rgba(59, 130, 246, 0.08);
  border: 1px solid rgba(59, 130, 246, 0.2);
  text-align: center;
}

.loss-aversion-title {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 700;
  color: #fbbf24;
}

.loss-aversion-subtitle {
  margin: 0 0 12px;
  font-size: 13px;
  color: var(--dsc-text-muted, #a1a1aa);
}

.loss-aversion-perks {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  text-align: left;
  display: inline-block;
}

.loss-aversion-perks li {
  padding: 4px 0;
  font-size: 13px;
  color: var(--dsc-text, #e4e4e7);
  line-height: 1.5;
}

.loss-aversion-perks li i {
  width: 18px;
  margin-right: 8px;
  color: #4a6cf7;
  text-align: center;
  font-size: 12px;
}

.loss-aversion-cta {
  display: inline-block;
  padding: 10px 28px;
  border-radius: 8px;
  background: linear-gradient(135deg, #4a6cf7 0%, #7c3aed 100%);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.loss-aversion-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(74, 108, 247, 0.4);
  color: #fff;
  text-decoration: none;
}

.email-unlock-divider {
  flex-basis: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 4px 0;
  color: var(--dsc-text-muted, #a1a1aa);
  font-size: 12px;
}

.email-unlock-divider::before,
.email-unlock-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(161, 161, 170, 0.25);
}

.email-unlock-block {
  flex-basis: 100%;
  padding: 16px 20px;
  border-radius: 10px;
  background: rgba(251, 191, 36, 0.06);
  border: 1px solid rgba(251, 191, 36, 0.18);
  text-align: center;
}

.email-unlock-label {
  margin: 0 0 10px;
  font-size: 13px;
  color: #fbbf24;
  font-weight: 600;
}

.email-unlock-form {
  display: flex;
  gap: 8px;
}

.email-unlock-input {
  flex: 1;
  padding: 9px 12px;
  border-radius: 6px;
  border: 1px solid rgba(161, 161, 170, 0.3);
  background: rgba(255, 255, 255, 0.06);
  color: var(--dsc-text, #e4e4e7);
  font-size: 13px;
  outline: none;
  transition: border-color 0.15s;
}

.email-unlock-input:focus {
  border-color: #fbbf24;
}

.email-unlock-input::placeholder {
  color: var(--dsc-text-muted, #a1a1aa);
}

.email-unlock-btn {
  padding: 9px 16px;
  border: none;
  border-radius: 6px;
  background: #fbbf24;
  color: #1b1d23;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s;
}

.email-unlock-btn:hover {
  background: #f59e0b;
}

.email-unlock-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.email-unlock-status {
  margin: 8px 0 0;
  font-size: 13px;
  line-height: 1.4;
}

.email-unlock-sent {
  color: #22c55e;
}

.email-unlock-error {
  color: #ef4444;
}

/* ── Quiz container ── */
.quiz-container {
  width: 100%;
  text-align: center;
}

.quiz-loading {
  padding: 40px 0;
  color: var(--dsc-text-muted, #a1a1aa);
  font-size: 15px;
}

.quiz-title {
  margin: 0 0 4px;
  font-size: 18px;
  color: var(--dsc-text);
}

.quiz-title i {
  margin-right: 6px;
  color: var(--dsc-primary, #4a6cf7);
}

.quiz-subtitle {
  margin: 0 0 12px;
  font-size: 13px;
  color: var(--dsc-text-muted, #a1a1aa);
}

.quiz-disclaimer {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  text-align: left;
  font-size: 11px;
  line-height: 1.55;
  color: var(--dsc-text-muted, #a1a1aa);
  background: rgba(251, 191, 36, 0.06);
  border: 1px solid rgba(251, 191, 36, 0.18);
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 12px;
}

.quiz-disclaimer i {
  color: #f59e0b;
  font-size: 14px;
  margin-top: 1px;
  flex-shrink: 0;
}

.quiz-disclaimer p {
  margin: 0 0 3px;
}

.quiz-disclaimer p:last-child {
  margin-bottom: 0;
}

.quiz-disclaimer strong {
  color: var(--dsc-danger, #ef4444);
}

.quiz-progress {
  margin-bottom: 16px;
  font-size: 13px;
  color: var(--dsc-text-muted, #a1a1aa);
  letter-spacing: 0.5px;
}

.quiz-progress-count {
  font-weight: 700;
  color: var(--dsc-success, #22c55e);
}

/* ── Quiz field cards ── */
.quiz-field {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 10px;
  text-align: left;
  transition: border-color 0.25s ease;
}

.quiz-field-confirmed {
  border-color: rgba(34, 197, 94, 0.5);
  background: rgba(34, 197, 94, 0.06);
}

.quiz-field-flagged {
  border-color: rgba(239, 68, 68, 0.5);
  background: rgba(239, 68, 68, 0.06);
}

.quiz-field-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.quiz-field-icao {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 700;
  color: var(--dsc-primary, #4a6cf7);
  background: rgba(74, 108, 247, 0.12);
  padding: 2px 6px;
  border-radius: 4px;
}

.quiz-field-airport {
  font-size: 12px;
  color: var(--dsc-text-muted, #a1a1aa);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.quiz-field-body {
  margin-bottom: 8px;
  font-size: 14px;
}

.quiz-field-label {
  color: var(--dsc-text-muted, #a1a1aa);
}

.quiz-field-value {
  font-weight: 600;
  color: var(--dsc-text);
}

.quiz-field-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.quiz-field-question {
  font-size: 12px;
  color: var(--dsc-text-muted, #a1a1aa);
  margin-right: auto;
}

/* ── Quiz buttons (confirm / flag) ── */
.quiz-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.12);
  background: transparent;
  color: rgba(255, 255, 255, 0.4);
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.quiz-btn:hover {
  border-color: rgba(255, 255, 255, 0.3);
  color: rgba(255, 255, 255, 0.7);
}

.quiz-btn-confirm.selected {
  border-color: #22c55e;
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
}

.quiz-btn-flag.selected {
  border-color: #ef4444;
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
}

/* ── Quiz action buttons (back / submit) ── */
.quiz-actions {
  display: flex;
  justify-content: space-between;
  margin-top: 16px;
  gap: 12px;
}

.quiz-back-btn,
.quiz-submit-btn {
  flex: 1;
  padding: 10px 16px;
  border-radius: 8px;
  border: none;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.15s ease;
}

.quiz-back-btn {
  background: rgba(255, 255, 255, 0.08);
  color: var(--dsc-text-muted, #a1a1aa);
}

.quiz-back-btn:hover {
  background: rgba(255, 255, 255, 0.12);
}

.quiz-submit-btn {
  background: linear-gradient(135deg, #4a6cf7 0%, #7c3aed 100%);
  color: #fff;
}

.quiz-submit-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.quiz-submit-btn:not(:disabled):hover {
  box-shadow: 0 4px 16px rgba(74, 108, 247, 0.4);
}

/* ── Quiz success screen ── */
.quiz-success {
  padding: 30px 0;
}

.quiz-success-icon {
  font-size: 56px;
  color: #22c55e;
  margin-bottom: 12px;
  animation: quizPulse 0.6s ease-out;
}

.quiz-success h3 {
  margin: 0 0 4px;
  font-size: 20px;
  color: var(--dsc-text);
}

.quiz-success p {
  margin: 0 0 6px;
  font-size: 15px;
  color: var(--dsc-success, #22c55e);
  font-weight: 600;
}

.quiz-success-detail {
  font-size: 13px !important;
  color: var(--dsc-text-muted, #a1a1aa) !important;
  font-weight: 400 !important;
}

@keyframes quizPulse {
  0%   { transform: scale(0.5); opacity: 0; }
  50%  { transform: scale(1.15); }
  100% { transform: scale(1); opacity: 1; }
}

/* ── Limit modal mobile adjustments ── */
@media (max-width: 600px) {
  #limit-modal .limit-modal-card {
    width: 92%;
    padding: 20px 16px;
    max-height: 90vh;
    max-height: 90dvh;
    overflow-y: auto;
    border-radius: 16px;
  }

  #limit-modal .limit-modal-card h2 {
    font-size: 18px;
    margin-bottom: 6px;
  }

  #limit-modal .limit-modal-card p {
    font-size: 13px;
    line-height: 1.45;
    margin-bottom: 8px;
  }

  #limit-modal #timer {
    font-size: 20px;
  }

  .limit-scene {
    height: 100px;
    margin-bottom: 0.8rem;
    border-radius: 10px;
  }

  #limit-modal .limit-modal-actions {
    gap: 8px;
    margin-top: 0.75rem;
  }
}

/* ── Quiz mobile adjustments ── */
@media (max-width: 480px) {
  .quiz-field {
    padding: 10px 12px;
  }

  .quiz-btn {
    width: 32px;
    height: 32px;
    font-size: 12px;
  }

  .quiz-unlock-btn {
    font-size: 13px;
    padding: 10px 16px;
  }

  .quiz-title {
    font-size: 16px;
  }

  .quiz-disclaimer {
    font-size: 10px;
    padding: 8px 10px;
    gap: 8px;
  }

  .quiz-disclaimer i {
    font-size: 12px;
  }

  .quiz-success-icon {
    font-size: 44px;
  }

  .email-unlock-form {
    flex-direction: column;
  }

  .email-unlock-btn {
    width: 100%;
  }

  .loss-aversion-cta {
    font-size: 13px;
    padding: 9px 22px;
  }
}

/* ============================================================
   COOKIE BANNER (dark)
   ============================================================ */

.cookie-banner {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 15px;
  background-color: var(--dsc-bg-elevated);
  border-top: 1px solid var(--dsc-border);
  text-align: center;
  z-index: 1000;
  color: var(--dsc-text);
}

.cookie-banner a {
  color: var(--dsc-primary);
}

.cookie-banner button {
  background-color: var(--dsc-primary);
  border: none;
  color: white;
  padding: 10px 28px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 14px;
  margin: 10px 2px;
  cursor: pointer;
  border-radius: 50px;
  font-weight: 500;
  transition: background-color 0.15s ease, transform 0.15s ease;
}

.cookie-banner button:hover {
  background-color: var(--dsc-primary-hover);
  transform: translateY(-1px);
}

/* ============================================================
   TABLES (dark)
   ============================================================ */

.table th {
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 600;
  color: var(--dsc-text-muted);
  letter-spacing: 0.03em;
}

.table td {
  color: var(--dsc-text);
}

.table {
  border-color: var(--dsc-border);
}

.table-striped > tbody > tr:nth-of-type(odd) {
  background-color: rgba(255, 255, 255, 0.03);
}

/* ============================================================
   RESPONSIVE TABLE
   ============================================================ */

@media (max-width: 767px) {
  .table-responsive {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .table-responsive thead,
  .table-responsive tbody,
  .table-responsive tr,
  .table-responsive th,
  .table-responsive td {
    display: block;
  }

  .table-responsive tr {
    border-bottom: 1px solid var(--dsc-border);
    margin-bottom: 10px;
  }

  .table-responsive th,
  .table-responsive td {
    border: none;
    border-bottom: 1px solid var(--dsc-border);
  }

  .table-responsive th {
    font-weight: bold;
  }

  .table-responsive th,
  .table-responsive td {
    text-align: left;
  }

  .table-responsive td:nth-of-type(1):before {
    content: attr(data-th) " ";
    font-weight: bold;
  }
}

/* ============================================================
   MAP PAGE MOBILE RESPONSIVE
   ============================================================ */

@media (max-width: 767px) {
  .mobile-menu {
    display: none;
  }

  .logo-img {
    width: 100px;
    height: auto;
  }
}

@media (max-width: 1024px) {
  .menu-search {
    display: flex;
    flex: 1;
    min-width: 0;
    margin: 0 8px;
  }

  .menu-search #search {
    flex: 1;
    min-width: 0;
    width: auto;
    font-size: 16px;
    padding: 6px 12px;
  }

  .menu-search #search-button {
    display: none;
  }

  .menu-search #search-autocomplete {
    font-size: 15px;
  }

  .menu-search #search-autocomplete .ac-item {
    touch-action: manipulation;
  }

  .mobile-menu {
    display: block;
  }

  /* On mobile: hide button text, show only icons */
  body.map-page .menu-button {
    font-size: 0;
    padding: 6px 10px;
  }

  body.map-page .menu-button i {
    display: inline-block;
    font-size: 1rem;
  }

  /* Airport panel fullscreen on mobile */
  .airport-panel {
    width: 100%;
  }

  /* Hide expand button on mobile — panel is already 100% */
  .airport-panel-expand {
    display: none;
  }

  /* Bottom toolbar adjustments */
  .bottom-toolbar {
    bottom: 16px;
  }

  .toolbar-btn span:not(.toolbar-beta-badge) {
    display: none;
  }

  .toolbar-links {
    font-size: 9px;
    gap: 8px;
  }

  /* Hide trophy from toolbar on mobile — shown as floating btn */
  .toolbar-btn-trophy {
    display: none;
  }

  /* Floating suggest airport button on mobile — between filter and trophy */
  .mobile-suggest-airport-btn {
    display: flex;
  }

  /* Floating trophy button on mobile — above suggest airport */
  .mobile-trophy-btn {
    display: flex;
    position: absolute;
    bottom: 168px;
    left: 12px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid rgba(245, 158, 11, 0.3);
    background: rgba(27, 29, 35, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    color: #f59e0b;
    font-size: 14px;
    cursor: pointer;
    z-index: 4;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    align-items: center;
    justify-content: center;
  }

  /* Filter toggle button on mobile */
  .filter-toggle-btn {
    bottom: 80px;
    left: 12px;
  }

  /* Bottom Sheet filter panel on mobile */
  .filter-panel {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    top: auto;
    width: 100%;
    min-width: unset;
    max-height: 55vh;
    border-radius: 20px 20px 0 0;
    padding: 8px 20px 24px;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1100;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .filter-panel.sheet-open {
    transform: translateY(0);
  }

  /* Drag handle */
  .filter-sheet-handle {
    display: flex;
    justify-content: center;
    padding: 8px 0 12px;
    cursor: grab;
  }

  .filter-sheet-handle span {
    width: 36px;
    height: 4px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.25);
  }

  /* Hide the X close button on mobile (use drag/overlay instead) */
  .filter-close-btn {
    display: none;
  }

  /* Bigger touch targets on mobile */
  .filter-option {
    padding: 8px 0;
    font-size: 14px;
  }

  .filter-option input[type="checkbox"] {
    width: 18px;
    height: 18px;
  }

  .filter-panel-title {
    font-size: 11px;
    margin-bottom: 10px;
  }

  /* Country input — 16px prevents iOS auto-zoom on focus */
  #countryInput {
    font-size: 16px;
    padding: 10px 12px;
  }

  .country-dropdown-toggle {
    font-size: 12px;
    padding: 10px 12px;
  }

  .country-input-wrap {
    width: 100%;
  }

  /* Go button visible on mobile */
  .country-go-btn {
    display: flex;
  }

  /* Suggestions list inside sheet */
  .country-suggestions {
    max-height: 140px;
  }

  .country-suggestions li {
    padding: 10px 12px;
    font-size: 14px;
  }

  /* Overlay behind sheet */
  .filter-sheet-overlay {
    display: block;
  }

  .filter-sheet-overlay.open {
    opacity: 1;
    visibility: visible;
  }
}

/* ============================================================
   NOTAM PULSE OVERLAY — Neon glow rings behind alert pins
   ============================================================ */

.notam-pulse-container {
  position: absolute;
  pointer-events: none;
  transform: translate(-50%, -50%);
}

.notam-pulse-ring {
  position: absolute;
  border-radius: 50%;
  border: 2px solid var(--pulse-color, #ef4444);
  box-shadow: 0 0 8px var(--pulse-color, #ef4444);
  animation: notamPulse 2s ease-in-out infinite;
  pointer-events: none;
  will-change: transform, opacity;
}

.notam-pulse-ring.inner {
  width: 30px;
  height: 30px;
  top: -15px;
  left: -15px;
  opacity: 0.6;
}

.notam-pulse-ring.outer {
  width: 38px;
  height: 38px;
  top: -19px;
  left: -19px;
  opacity: 0.3;
  animation-delay: 0.5s;
}

@keyframes notamPulse {
  0%, 100% {
    transform: scale(1);
    opacity: var(--pulse-start-opacity, 0.6);
  }
  50% {
    transform: scale(1.4);
    opacity: var(--pulse-end-opacity, 1);
  }
}

.notam-pulse-ring.outer {
  --pulse-start-opacity: 0.2;
  --pulse-end-opacity: 0.7;
}

.notam-pulse-ring.inner {
  --pulse-start-opacity: 0.4;
  --pulse-end-opacity: 1;
}

.permit-suggest-toggle:hover {
  background: rgba(0, 174, 239, 0.1) !important;
}

/* ============================================================
   SUGGEST AIRPORT — Mobile floating button (visibility in media query)
   ============================================================ */

/* ══════════════════════════════════════════════════════════════
   LEADERBOARD — Trophy Button + Overlay
   ══════════════════════════════════════════════════════════════ */

/* Trophy toolbar button — gold accent inside bottom toolbar (desktop) */
.toolbar-btn-trophy {
  color: #f59e0b;
}
.toolbar-btn-trophy:hover {
  color: #fbbf24;
  background: rgba(245, 158, 11, 0.12);
}

/* Floating trophy button — styles only, visibility controlled by media query */

/* ── Overlay ── */
.lb-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  overflow-y: auto;
}

.lb-overlay.open {
  display: flex;
}

/* ── Modal card ── */
.lb-modal {
  background: linear-gradient(135deg, rgba(27, 29, 35, 0.98), rgba(20, 22, 28, 0.98));
  border: 1px solid rgba(245, 158, 11, 0.15);
  border-radius: 20px;
  max-width: 520px;
  width: 92%;
  max-height: 85vh;
  overflow-y: auto;
  padding: 0;
  position: relative;
  box-shadow:
    0 0 40px rgba(245, 158, 11, 0.08),
    0 25px 60px rgba(0, 0, 0, 0.5);
}

.lb-close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: none;
  border: none;
  color: var(--dsc-text-muted, #9ca3af);
  font-size: 24px;
  cursor: pointer;
  z-index: 10;
  transition: color 0.2s;
}

.lb-close:hover {
  color: var(--dsc-text, #e4e4e7);
}

/* ── Header ── */
.lb-header {
  text-align: center;
  padding: 32px 24px 20px;
  border-bottom: 1px solid rgba(245, 158, 11, 0.1);
}

@keyframes lbTrophyPulse {
  0%, 100% { transform: scale(1); filter: drop-shadow(0 0 8px rgba(245, 158, 11, 0.3)); }
  50% { transform: scale(1.1); filter: drop-shadow(0 0 16px rgba(245, 158, 11, 0.5)); }
}

.lb-trophy-icon {
  font-size: 40px;
  color: #f59e0b;
  animation: lbTrophyPulse 2s ease-in-out infinite;
  margin-bottom: 10px;
}

.lb-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: #e4e4e7;
  margin: 0 0 6px;
}

.lb-subtitle {
  font-size: 0.8rem;
  color: var(--dsc-text-muted, #9ca3af);
  margin: 0;
}

/* ── List ── */
.lb-list {
  padding: 16px 20px;
}

@keyframes lbSlideIn {
  from { opacity: 0; transform: translateX(-20px); }
  to { opacity: 1; transform: translateX(0); }
}

.lb-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  margin-bottom: 4px;
  animation: lbSlideIn 0.4s ease forwards;
  opacity: 0;
  transition: background 0.2s;
}

.lb-row:hover {
  background: rgba(255, 255, 255, 0.04);
}

/* Top 3 tinted backgrounds */
.lb-row.lb-gold {
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.2);
}
.lb-row.lb-silver {
  background: rgba(192, 192, 192, 0.1);
  border: 1px solid rgba(192, 192, 192, 0.15);
}
.lb-row.lb-bronze {
  background: rgba(205, 127, 50, 0.1);
  border: 1px solid rgba(205, 127, 50, 0.15);
}

.lb-rank {
  font-weight: 700;
  font-size: 14px;
  color: var(--dsc-text-muted, #9ca3af);
  min-width: 28px;
  text-align: center;
}

.lb-handle {
  font-weight: 600;
  font-size: 14px;
  color: var(--dsc-text, #e4e4e7);
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lb-airports {
  font-size: 12px;
  color: var(--dsc-text-muted, #9ca3af);
  white-space: nowrap;
}

.lb-points {
  font-weight: 600;
  font-size: 13px;
  color: #f59e0b;
  white-space: nowrap;
  min-width: 60px;
  text-align: right;
}

/* Incentive message */
.lb-incentive {
  text-align: center;
  padding: 16px 12px;
  font-size: 13px;
  color: #f59e0b;
  opacity: 0.8;
}

.lb-incentive i {
  margin-right: 6px;
}

/* ── Footer ── */
.lb-footer {
  padding: 16px 24px 24px;
  text-align: center;
  border-top: 1px solid rgba(245, 158, 11, 0.1);
}

.lb-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  color: #fff;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.3s;
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.25);
}

.lb-share-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(245, 158, 11, 0.35);
}

.lb-share-btn:active {
  transform: translateY(0);
}

/* ============================================================
   FLOATING SUGGEST AIRPORT BUTTON (desktop)
   ============================================================ */

.floating-suggest-btn {
  position: absolute;
  bottom: 130px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(27, 29, 35, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: var(--dsc-text-muted);
  font-size: 15px;
  cursor: pointer;
  z-index: 5;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  opacity: 0.7;
}

.floating-suggest-btn:hover {
  transform: translateX(-50%) scale(1.08);
  color: var(--dsc-primary);
  border-color: rgba(0, 174, 239, 0.3);
  box-shadow: 0 0 12px rgba(0, 174, 239, 0.2), 0 2px 8px rgba(0, 0, 0, 0.2);
  opacity: 1;
}

.floating-suggest-plus {
  position: absolute;
  bottom: 2px;
  right: 2px;
  font-size: 9px;
  font-weight: 700;
  color: #fff;
  background: var(--dsc-primary);
  width: 14px;
  height: 14px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  opacity: 0.85;
}

@media (max-width: 1024px) {
  .floating-suggest-btn {
    display: none;
  }
}

/* Lat/Lon coordinate row — forced equal columns */
.na-coord-row {
  display: flex;
  gap: 10px;
}

.na-coord-row .form-row {
  flex: 1 1 0;
  min-width: 0;
  width: 0;
}

/* ============================================================
   SUGGEST AIRPORT — Info Box
   ============================================================ */

.suggest-info-box {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: rgba(0, 174, 239, 0.08);
  border: 1px solid rgba(0, 174, 239, 0.2);
  border-radius: 8px;
  padding: 10px 14px;
  margin-bottom: 16px;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--dsc-text-muted);
}

.suggest-info-box i {
  color: var(--dsc-primary);
  font-size: 14px;
  margin-top: 2px;
  flex-shrink: 0;
}

/* ============================================================
   SUGGEST AIRPORT — Auth Overlay (non-logged users)
   ============================================================ */

.suggest-auth-overlay {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 24px 16px;
}

.suggest-auth-icon {
  font-size: 40px;
  color: var(--dsc-primary);
  margin-bottom: 16px;
  opacity: 0.8;
}

.suggest-auth-text {
  font-size: 15px;
  line-height: 1.6;
  color: var(--dsc-text);
  margin: 0 0 20px;
  max-width: 360px;
}

.suggest-auth-signup-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 32px;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  background: var(--dsc-primary);
  border: none;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.15s ease, transform 0.1s ease;
}

.suggest-auth-signup-btn:hover {
  background: var(--dsc-primary-hover);
  transform: translateY(-1px);
}

.suggest-auth-login {
  margin-top: 14px;
  font-size: 13px;
  color: var(--dsc-text-muted);
}

.suggest-auth-login a {
  color: var(--dsc-primary);
  text-decoration: none;
  font-weight: 600;
}

.suggest-auth-login a:hover {
  text-decoration: underline;
}

/* ── Suggest Airport: field error highlight ── */
.na-field-error {
  border-color: var(--dsc-danger) !important;
  box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.25) !important;
}

/* ── Suggest Airport: success toast ── */
.na-toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: rgba(16, 185, 129, 0.95);
  color: #fff;
  padding: 12px 24px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  z-index: 100001;
  opacity: 0;
  transition: opacity 0.35s ease, transform 0.35s ease;
  pointer-events: none;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
  max-width: 90vw;
  text-align: center;
}
.na-toast i {
  margin-right: 6px;
}
.na-toast-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.na-toast-hiding {
  opacity: 0;
  transform: translateX(-50%) translateY(20px);
}

/* ── Mobile adjustments ── */
@media (max-width: 1024px) {
  .lb-modal {
    width: 96%;
    max-height: 90vh;
    border-radius: 16px;
  }

  /* Tighter modal on mobile */
  .report-modal-content {
    padding: 20px 16px;
    width: 94%;
    max-height: 90vh;
    border-radius: 12px;
  }
}
