/*
 * private_jets.css
 * ================
 * Empty legs listing + detail + charter pages + my charters.
 * Scoped under .aviation-scope.
 */

/* ===========================================================================
 * Shared shell
 * =========================================================================== */

.aviation-scope .pj-shell {
  max-width: 1100px;
  margin: 0 auto;
  padding: 18px 16px 60px;
}
.aviation-scope .pj-shell__header h1 { margin: 8px 0 6px; font-size: 28px; }
.aviation-scope .pj-shell__header p { margin: 0 0 14px; color: var(--av-muted); }

/* ===========================================================================
 * Empty legs — listing
 * =========================================================================== */

.aviation-scope .pj-filter {
  background: var(--av-paper);
  border: 1px solid var(--av-rule);
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 18px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 8px 12px;
  align-items: end;
}
.aviation-scope .pj-filter label {
  display: flex; flex-direction: column; gap: 3px;
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.04em;
  color: var(--av-muted);
}
.aviation-scope .pj-filter input,
.aviation-scope .pj-filter select {
  background: var(--av-paper-2);
  border: 1px solid var(--av-rule);
  border-radius: 6px;
  padding: 7px 9px;
  font-family: inherit;
  font-size: 14px;
}
.aviation-scope .pj-filter button {
  background: var(--av-accent);
  color: #fff; border: 0; border-radius: 6px;
  padding: 8px 14px;
  cursor: pointer; font-weight: 600;
}

.aviation-scope .pj-leg-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 12px;
}
.aviation-scope .pj-leg-card {
  background: var(--av-paper);
  border: 1px solid var(--av-rule);
  border-radius: 12px;
  padding: 14px 16px;
  position: relative;
  transition: border-color 0.12s ease, transform 0.12s ease;
}
.aviation-scope .pj-leg-card:hover {
  border-color: var(--av-accent);
  transform: translateY(-1px);
}
.aviation-scope .pj-leg-card__route {
  display: flex; align-items: baseline; gap: 8px;
  font-family: var(--av-mono);
  font-size: 20px;
  font-weight: 700;
  color: var(--av-accent);
}
.aviation-scope .pj-leg-card__route .arrow { color: var(--av-muted); }
.aviation-scope .pj-leg-card__cities {
  font-size: 12px; color: var(--av-muted); margin-top: 2px;
}
.aviation-scope .pj-leg-card__date {
  margin-top: 8px;
  font-size: 13px;
}
.aviation-scope .pj-leg-card__jet {
  margin-top: 10px;
  padding: 8px 0;
  border-top: 1px dashed var(--av-rule);
  font-size: 13px;
}
.aviation-scope .pj-leg-card__jet small {
  display: block; color: var(--av-muted); font-size: 11px; margin-top: 2px;
}
.aviation-scope .pj-leg-card__price {
  margin-top: 10px;
  display: flex; justify-content: space-between; align-items: baseline;
}
.aviation-scope .pj-leg-card__amount {
  font-size: 22px; font-weight: 700; color: var(--av-text);
}
.aviation-scope .pj-leg-card__strikeout {
  text-decoration: line-through; color: var(--av-muted);
  font-size: 13px; margin-right: 6px;
}
.aviation-scope .pj-leg-card__discount {
  display: inline-block;
  background: #dcfce7; color: #166534;
  padding: 2px 8px; border-radius: 999px;
  font-size: 11px; font-weight: 700;
}
.aviation-scope .pj-leg-card__cta {
  display: block; margin-top: 12px;
  background: var(--av-accent); color: #fff !important;
  text-align: center;
  padding: 10px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
}
.aviation-scope .pj-leg-card__cta:hover { background: var(--av-accent-2); }
.aviation-scope .pj-leg-card__shared-pill {
  position: absolute; top: 10px; right: 10px;
  background: #ddd6fe; color: #5b21b6;
  padding: 2px 8px; border-radius: 999px;
  font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.04em;
}

.aviation-scope .pj-leg-empty {
  background: var(--av-paper);
  border: 1px dashed var(--av-rule);
  border-radius: 12px;
  text-align: center;
  padding: 40px 20px;
  color: var(--av-muted);
}

/* ===========================================================================
 * Empty leg detail
 * =========================================================================== */

.aviation-scope .pj-leg-detail {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 20px;
  align-items: start;
}
@media (max-width: 760px) {
  .aviation-scope .pj-leg-detail { grid-template-columns: 1fr; }
}
.aviation-scope .pj-detail-section {
  background: var(--av-paper);
  border: 1px solid var(--av-rule);
  border-radius: 10px;
  padding: 16px 18px;
  margin-bottom: 14px;
}
.aviation-scope .pj-detail-section h3 {
  margin: 0 0 10px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--av-muted);
}
.aviation-scope .pj-detail-route {
  display: flex; gap: 16px; align-items: center;
  font-family: var(--av-mono);
  font-size: 32px;
  font-weight: 700;
}
.aviation-scope .pj-detail-route .iata {
  color: var(--av-accent);
  border: 2px solid var(--av-accent);
  padding: 6px 16px;
  border-radius: 8px;
}
.aviation-scope .pj-detail-route .arrow { color: var(--av-muted); }
.aviation-scope .pj-amenities {
  display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px;
}
.aviation-scope .pj-amenity-pill {
  background: var(--av-paper-2);
  border: 1px solid var(--av-rule);
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 11px;
  font-family: var(--av-mono);
}

.aviation-scope .pj-claim-aside {
  position: sticky;
  top: 16px;
  background: var(--av-paper);
  border: 2px solid var(--av-accent);
  border-radius: 12px;
  padding: 18px 20px;
}
.aviation-scope .pj-claim-aside h3 { margin: 0 0 4px; font-size: 14px; }
.aviation-scope .pj-claim-aside__price {
  font-size: 32px;
  font-weight: 800;
  color: var(--av-accent);
  margin: 8px 0;
}
.aviation-scope .pj-claim-aside__strikeout {
  text-decoration: line-through;
  color: var(--av-muted);
  font-size: 14px;
}
.aviation-scope .pj-claim-form { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.aviation-scope .pj-claim-form input,
.aviation-scope .pj-claim-form select,
.aviation-scope .pj-claim-form textarea {
  background: var(--av-paper-2);
  border: 1px solid var(--av-rule);
  border-radius: 6px;
  padding: 8px 10px;
  font-family: inherit;
  font-size: 14px;
}
.aviation-scope .pj-claim-form button {
  background: var(--av-accent);
  color: #fff; border: 0; border-radius: 8px;
  padding: 11px;
  cursor: pointer; font-weight: 600;
  font-size: 14px;
  margin-top: 4px;
}

/* ===========================================================================
 * Charter request + detail
 * =========================================================================== */

.aviation-scope .charter-form { display: flex; flex-direction: column; gap: 14px; }
.aviation-scope .charter-leg {
  background: var(--av-paper);
  border: 1px solid var(--av-rule);
  border-radius: 10px;
  padding: 12px 14px;
}
.aviation-scope .charter-leg legend { font-weight: 600; font-size: 13px; padding: 0 6px; }
.aviation-scope .charter-leg__grid {
  display: grid; gap: 8px;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}
.aviation-scope .charter-leg__grid label {
  display: flex; flex-direction: column; gap: 3px;
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.04em;
  color: var(--av-muted);
}
.aviation-scope .charter-leg__grid input,
.aviation-scope .charter-leg__grid select {
  background: var(--av-paper-2);
  border: 1px solid var(--av-rule);
  border-radius: 6px;
  padding: 7px 9px;
  font: inherit; font-size: 14px;
}
.aviation-scope .charter-form__add-leg {
  background: transparent;
  border: 2px dashed var(--av-rule);
  border-radius: 8px;
  padding: 8px 16px;
  cursor: pointer;
  color: var(--av-muted);
  font-weight: 600;
  align-self: flex-start;
}

.aviation-scope .charter-detail__quotes {
  list-style: none;
  padding: 0;
  margin: 12px 0;
  display: grid;
  gap: 10px;
}
.aviation-scope .charter-quote {
  background: var(--av-paper);
  border: 1px solid var(--av-rule);
  border-radius: 10px;
  padding: 14px 16px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 14px;
}
.aviation-scope .charter-quote--accepted { border-color: #22c55e; background: #f0fdf4; }
.aviation-scope .charter-quote--rejected { opacity: 0.5; }
.aviation-scope .charter-quote__operator { font-weight: 600; }
.aviation-scope .charter-quote__price {
  font-size: 22px; font-weight: 800;
  color: var(--av-accent);
}
.aviation-scope .charter-quote button {
  background: var(--av-accent);
  color: #fff; border: 0; border-radius: 6px;
  padding: 8px 14px; cursor: pointer; font-weight: 600;
}

/* ===========================================================================
 * Anywhere mode
 * =========================================================================== */

.aviation-scope .any-shell {
  max-width: 1100px;
  margin: 0 auto;
  padding: 18px 16px 60px;
}
.aviation-scope .any-form {
  background: var(--av-paper);
  border: 1px solid var(--av-rule);
  border-radius: 12px;
  padding: 18px 20px;
}
.aviation-scope .any-form__row {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  margin-bottom: 12px;
}
.aviation-scope .any-form label {
  display: flex; flex-direction: column; gap: 4px;
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.04em;
  color: var(--av-muted);
}
.aviation-scope .any-form input,
.aviation-scope .any-form select {
  background: var(--av-paper-2);
  border: 1px solid var(--av-rule);
  border-radius: 6px;
  padding: 8px 10px;
  font: inherit; font-size: 14px;
}
.aviation-scope .any-interests {
  display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px;
}
.aviation-scope .any-interest-pill {
  display: inline-flex; align-items: center; gap: 4px;
  background: var(--av-paper-2);
  border: 1px solid var(--av-rule);
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 12px;
  cursor: pointer;
  user-select: none;
}
.aviation-scope .any-interest-pill input { display: none; }
.aviation-scope .any-interest-pill:has(input:checked) {
  background: var(--av-accent);
  color: #fff;
  border-color: var(--av-accent);
}
.aviation-scope .any-form button {
  background: var(--av-accent);
  color: #fff; border: 0; border-radius: 10px;
  padding: 14px 20px;
  font-size: 16px;
  cursor: pointer; font-weight: 600;
  margin-top: 8px;
}

.aviation-scope .any-results {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px;
  margin-top: 18px;
}
.aviation-scope .any-card {
  background: var(--av-paper);
  border: 1px solid var(--av-rule);
  border-radius: 12px;
  padding: 14px 16px;
  position: relative;
  transition: border-color 0.12s ease, transform 0.12s ease;
}
.aviation-scope .any-card:hover {
  border-color: var(--av-accent);
  transform: translateY(-1px);
}
.aviation-scope .any-card--over-budget { opacity: 0.7; }
.aviation-scope .any-card__score {
  position: absolute; top: 10px; right: 10px;
  background: var(--av-accent); color: #fff;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 11px; font-weight: 700;
  font-family: var(--av-mono);
}
.aviation-scope .any-card--over-budget .any-card__score { background: #f59e0b; }
.aviation-scope .any-card__city {
  font-size: 18px; font-weight: 700; margin: 0 0 4px;
}
.aviation-scope .any-card__country {
  font-size: 12px; color: var(--av-muted); font-family: var(--av-mono);
}
.aviation-scope .any-card__route {
  margin-top: 8px;
  font-family: var(--av-mono); font-size: 13px; color: var(--av-muted);
}
.aviation-scope .any-card__price {
  margin-top: 10px;
  font-size: 24px; font-weight: 800; color: var(--av-accent);
}
.aviation-scope .any-card__reason {
  margin-top: 8px;
  font-size: 12px; color: var(--av-muted);
  line-height: 1.4;
}
.aviation-scope .any-card__cta {
  display: inline-block;
  margin-top: 12px;
  text-decoration: none;
  color: var(--av-accent);
  font-size: 13px;
  font-weight: 600;
}
.aviation-scope .any-card__cta:hover { text-decoration: underline; }

/* Anywhere map toggle */
.any-view-toggle {
  display: flex; gap: 6px; margin-bottom: 14px;
}
.any-toggle-btn {
  padding: 7px 18px; border-radius: 20px; border: 1px solid var(--av-rule);
  background: var(--av-paper); color: var(--av-text);
  font-size: 13px; cursor: pointer; transition: all 0.15s;
}
.any-toggle-btn--active {
  background: var(--av-accent); color: #fff; border-color: var(--av-accent);
}

/* Country picker */
.country-picker { position: relative; }
.country-search {
  width: 100%; padding: 6px 10px; border: 1px solid var(--av-rule);
  border-radius: 6px; font-size: 13px; box-sizing: border-box;
}
.country-dropdown {
  position: absolute; top: 100%; left: 0; right: 0; z-index: 100;
  background: var(--av-paper); border: 1px solid var(--av-rule);
  border-radius: 6px; box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  max-height: 200px; overflow-y: auto;
}
.country-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.country-tag {
  background: var(--av-paper-2); border: 1px solid var(--av-rule);
  border-radius: 20px; padding: 2px 8px; font-size: 12px;
  display: flex; align-items: center; gap: 4px;
}
.country-tag button {
  background: none; border: none; cursor: pointer; font-size: 14px;
  color: var(--av-muted); padding: 0; line-height: 1;
}
.country-tag button:hover { color: var(--av-accent); }

/* Country tag — compact × button */
.country-tag {
  padding: 2px 6px 2px 8px !important;
}
.country-tag button {
  font-size: 12px !important;
  padding: 0 2px !important;
  line-height: 1 !important;
  opacity: 0.6;
}
.country-tag button:hover { opacity: 1; color: var(--av-accent) !important; }

/* Alert cards */
.alerts-list { display: flex; flex-direction: column; gap: 12px; max-width: 700px; }
.alert-card {
  background: var(--av-paper); border: 1px solid var(--av-rule);
  border-radius: 12px; padding: 16px 20px;
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
}
.alert-card__route { font-size: 18px; min-width: 120px; }
.alert-card__details { display: flex; flex-wrap: wrap; gap: 6px; flex: 1; }
.btn-delete-alert {
  background: none; border: 1px solid var(--av-rule); border-radius: 8px;
  padding: 6px 12px; cursor: pointer; color: var(--av-muted); font-size: 13px;
  display: flex; align-items: center; gap: 4px; transition: all 0.15s;
}
.btn-delete-alert:hover { border-color: #dc2626; color: #dc2626; }
