/* Airline Intelligence Directory & Head-to-Head Comparator Styles */

/* <small> defaults to 'smaller' (11-13px here); keep it at the 14px floor. */
small {
  font-size: 14px;
}

.airline-comparator-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 4px 24px -2px rgba(15, 23, 42, 0.07);
  margin: 28px 0 36px;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.airline-comparator-card:focus-within {
  border-color: #cbd5e1;
}

.comparator-kicker-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 8px;
}

.comparator-kicker {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #0369a1;
  background: #f0f9ff;
  padding: 4px 10px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.comparator-badge-verified {
  font-size: 14px;
  font-weight: 600;
  color: #047857;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  padding: 4px 10px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.comparator-title {
  margin: 0 0 6px;
  font-size: 22px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.02em;
}

.comparator-subtitle {
  margin: 0 0 20px;
  font-size: 14px;
  color: #475569;
  line-height: 1.5;
}

/* Selector Bar */
.comparator-selectors-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  background: #f8fafc;
  padding: 16px 20px;
  border-radius: 14px;
  border: 1px solid #e2e8f0;
}

@media (max-width: 680px) {
  .comparator-selectors-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

.carrier-select-box {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.carrier-select-box label {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #475569;
}

.carrier-dropdown {
  width: 100%;
  padding: 12px 16px;
  font-size: 15px;
  font-weight: 600;
  color: #0f172a;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  outline: none;
  cursor: pointer;
  transition: all 0.15s ease;
}

.carrier-dropdown:focus {
  border-color: #0369a1;
  box-shadow: 0 0 0 3px rgba(3, 105, 161, 0.12);
}

.swap-btn-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 18px;
}

@media (max-width: 680px) {
  .swap-btn-wrap {
    padding-top: 0;
  }
}

.swap-carriers-btn {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 50%;
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  cursor: pointer;
  color: #475569;
  box-shadow: 0 2px 4px rgba(15, 23, 42, 0.05);
  transition: all 0.15s ease;
}

.swap-carriers-btn:hover {
  background: #f1f5f9;
  color: #0f172a;
  border-color: #94a3b8;
  transform: rotate(180deg);
}

/* Preset Matchup Pills */
.comparator-presets-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 16px 0 24px;
}

.presets-label {
  font-size: 14px;
  font-weight: 700;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.preset-chip {
  padding: 5px 12px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 999px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: #334155;
  cursor: pointer;
  transition: all 0.15s ease;
}

.preset-chip:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.preset-chip.active {
  background: var(--ink, #0f172a);
  border-color: var(--ink, #0f172a);
  color: #ffffff;
}

/* Comparison Display Table / Cards */
.comparison-matrix-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 20px;
}

@media (max-width: 768px) {
  .comparison-matrix-container {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

.carrier-matrix-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.carrier-matrix-card.winner-highlight {
  border-color: #38bdf8;
  box-shadow: 0 4px 16px -2px rgba(3, 105, 161, 0.12);
}

.matrix-card-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid #f1f5f9;
}

.matrix-logo-box {
  width: 58px;
  height: 58px;
  border-radius: 14px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

.matrix-logo-box img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.matrix-airline-title h3 {
  margin: 0 0 4px;
  font-size: 19px;
  font-weight: 800;
  color: #0f172a;
}

.matrix-airline-meta {
  font-size: 14px;
  color: #475569;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: center;
}

/* Category Sections */
.matrix-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.matrix-section-title {
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #475569;
  display: flex;
  align-items: center;
  gap: 6px;
  padding-bottom: 6px;
  border-bottom: 2px solid #f1f5f9;
}

.matrix-spec-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 6px 0;
  font-size: 14px;
  border-bottom: 1px dashed #f1f5f9;
}

.matrix-spec-row:last-child {
  border-bottom: none;
}

.matrix-spec-label {
  color: #475569;
  font-weight: 500;
}

.matrix-spec-value {
  font-weight: 700;
  color: #0f172a;
  text-align: right;
  max-width: 65%;
}

/* Status Indicators */
.spec-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 700;
}

.spec-tag.tag-yes {
  background: #f0fdf4;
  color: #166534;
  border: 1px solid #bbf7d0;
}

.spec-tag.tag-no {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.spec-tag.tag-warn {
  background: #fff7ed;
  color: #c2410c;
  border: 1px solid #fed7aa;
}

.spec-tag.tag-neutral {
  background: #f1f5f9;
  color: #334155;
  border: 1px solid #e2e8f0;
}

.spec-tag.tag-indigo {
  background: #f0f9ff;
  color: #075985;
  border: 1px solid #bae6fd;
}

/* Actions in Matrix Footer */
.matrix-card-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 14px;
  border-top: 1px solid #f1f5f9;
  margin-top: auto;
}

.matrix-cta-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  background: #0369a1;
  color: #ffffff;
  text-decoration: none;
  transition: all 0.15s ease;
}

.matrix-cta-primary:hover {
  background: #075985;
  box-shadow: 0 4px 12px rgba(3, 105, 161, 0.25);
}

.matrix-cta-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  background: #f8fafc;
  color: #334155;
  border: 1px solid #cbd5e1;
  text-decoration: none;
  transition: all 0.15s ease;
}

.matrix-cta-secondary:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
  color: #0f172a;
}

/* Quick Compare Button on Directory Cards */
.card-actions-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.dir-compare-btn {
  font-size: 14px;
  font-weight: 700;
  color: #475569;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 4px 10px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.dir-compare-btn:hover {
  background: #e0f2fe;
  border-color: #bae6fd;
  color: #075985;
}

/* Competitor comparison badges on detail pages */
.competitor-compare-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 18px 20px;
  margin: 20px 0;
}

.competitor-compare-title {
  font-size: 14px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.competitor-chips-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.competitor-link-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  font-size: 14px;
  font-weight: 600;
  color: #334155;
  text-decoration: none;
  transition: all 0.15s ease;
}

.competitor-link-chip:hover {
  background: #f0f9ff;
  border-color: #7dd3fc;
  color: #075985;
}

/* Intelligence Snapshot Metric Bar */
.intel-stats-dashboard {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0 24px;
}

.stat-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
  font-size: 14px;
  font-weight: 600;
  color: #334155;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}

.stat-chip:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  transform: translateY(-1px);
}

.stat-chip.active {
  background: #0f172a;
  border-color: #0f172a;
  color: #ffffff;
}

.stat-chip-count {
  font-size: 14px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #0f172a;
}

.stat-chip.active .stat-chip-count {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

/* View Mode Toggle Controls */
.view-toggle-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 10px;
}

.view-mode-buttons {
  display: inline-flex;
  background: #e2e8f0;
  border-radius: 8px;
  padding: 2px;
  gap: 2px;
}

.view-mode-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 6px;
  border: none;
  background: transparent;
  font-size: 14px;
  font-weight: 600;
  color: #475569;
  cursor: pointer;
  transition: all 0.15s ease;
}

.view-mode-btn:hover {
  color: #0f172a;
}

.view-mode-btn.active {
  background: #ffffff;
  color: #0f172a;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
}

/* Master Comparison Table View */
.master-intel-table-wrap {
  width: 100%;
  overflow-x: auto;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.04);
  margin-top: 18px;
}

.master-intel-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  text-align: left;
  white-space: nowrap;
}

.master-intel-table thead {
  background: #f8fafc;
  position: sticky;
  top: 0;
  z-index: 10;
}

.master-intel-table th {
  padding: 12px 14px;
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #475569;
  border-bottom: 2px solid #e2e8f0;
}

.master-intel-table td {
  padding: 12px 14px;
  border-bottom: 1px solid #f1f5f9;
  color: #1e293b;
  vertical-align: middle;
}

.master-intel-table tbody tr:hover {
  background: #f8fafc;
}

.table-airline-cell {
  display: flex;
  align-items: center;
  gap: 10px;
}

.table-airline-logo {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

.table-airline-logo img {
  width: 26px;
  height: 26px;
  object-fit: contain;
}

.table-airline-name {
  font-weight: 700;
  color: #0f172a;
  text-decoration: none;
}

.table-airline-name:hover {
  color: #0369a1;
  text-decoration: underline;
}

/* Fleet Configurations Section on Detail Pages */
.fleet-configs-section {
  margin: 32px 0;
}

.fleet-configs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  gap: 16px;
  margin-top: 16px;
}

.fleet-config-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.fleet-config-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}

.fleet-aircraft-title {
  margin: 0 0 2px;
  font-size: 15px;
  font-weight: 800;
  color: #0f172a;
}

.fleet-config-code {
  font-size: 14px;
  font-weight: 700;
  color: #475569;
  background: #f1f5f9;
  padding: 2px 6px;
  border-radius: 4px;
}

.fleet-cabins-bar {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  padding: 10px 0;
  border-top: 1px solid #f1f5f9;
  border-bottom: 1px solid #f1f5f9;
}

.fleet-cabin-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

.fleet-cabin-pill.business {
  background: #f0f9ff;
  border-color: #bae6fd;
  color: #0c4a6e;
}

.fleet-cabin-pill.premium {
  background: #fdf2f8;
  border-color: #fbcfe8;
  color: #9d174d;
}

.fleet-cabin-pill.first {
  background: #fefce8;
  border-color: #fef08a;
  color: #854d0e;
}

.fleet-equipment-row {
  display: flex;
  gap: 8px;
  font-size: 14px;
  color: #475569;
}

/* seat-data-rules §2: unsourced specs carry an explicit unverified notice. */
.intel-unverified-note {
  margin: 12px 0 0;
  padding: 10px 14px;
  border: 1px solid #b54708;
  border-radius: 6px;
  background: #fffaeb;
  color: #7a2e0e;
  font-size: 14px;
  line-height: 1.5;
}
@media (prefers-color-scheme: dark) {
  .intel-unverified-note { background: #2e1a05; color: #fedf89; border-left-color: #f79009; }
}
