/* Fly Together Rendezvous Planner Styles */
.together-body {
  background-color: #f8fafc;
}

.together-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
  margin-top: 16px;
}

.together-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 20px;
}

.together-title {
  font-size: 20px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 6px;
}

.together-desc {
  font-size: 14px;
  color: #64748b;
  margin: 0;
}

.presets-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.presets-label {
  font-size: 12px;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
}

.preset-btn {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: 9999px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
  color: #334155;
  cursor: pointer;
  transition: all 0.15s ease;
}

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

.preset-btn.active {
  background: #0f172a;
  border-color: #0f172a;
  color: #fff;
}

/* Dual Origins Input Grid */
.origins-input-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 16px;
}

@media (max-width: 768px) {
  .origins-input-grid {
    grid-template-columns: 1fr;
  }
  .origin-divider {
    text-align: center;
    margin: -6px 0;
  }
}

.origin-input-col {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.traveler-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: #e0f2fe;
  color: #0369a1;
  padding: 2px 8px;
  border-radius: 4px;
  width: fit-content;
}

.traveler-tag.t2 {
  background: #fef3c7;
  color: #b45309;
}

.origin-label {
  font-size: 12px;
  font-weight: 700;
  color: #475569;
}

.origin-select {
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 600;
  color: #0f172a;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  background: #fff;
  outline: none;
}

.origin-divider {
  font-size: 18px;
  color: #94a3b8;
  text-align: center;
}

.pair-summary-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 10px;
  padding: 14px 18px;
}

.pair-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.pair-meta strong {
  font-size: 15px;
  color: #1e3a8a;
}

.pair-meta span {
  font-size: 13px;
  color: #3b82f6;
}

.btn-map-link {
  background: #1e40af;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 8px;
  transition: background 0.15s ease;
}

.btn-map-link:hover {
  background: #1d4ed8;
}

/* Rendezvous Cards Grid */
.rendezvous-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.rendezvous-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 22px;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.dest-badge-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.dest-iata {
  background: #0f172a;
  color: #fff;
  font-size: 16px;
  font-weight: 900;
  padding: 8px 12px;
  border-radius: 8px;
  letter-spacing: 0.04em;
}

.dest-name {
  font-size: 18px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 2px;
}

.dest-tz {
  font-size: 12px;
  color: #64748b;
  font-weight: 600;
}

.score-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  padding: 6px 12px;
  min-width: 54px;
}

.score-badge.score-high {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #047857;
}

.score-badge.score-med {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1d4ed8;
}

.score-val {
  font-size: 20px;
  font-weight: 900;
  line-height: 1;
}

.score-lbl {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.card-highlight {
  background: #f8fafc;
  border-left: 3px solid #3b82f6;
  border-radius: 6px;
  padding: 10px 14px;
  font-size: 13px;
  color: #334155;
  line-height: 1.45;
}

.flights-comparison-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (max-width: 540px) {
  .flights-comparison-grid {
    grid-template-columns: 1fr;
  }
}

.flight-leg-col {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.leg-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.traveler-chip {
  font-size: 11px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
}

.traveler-chip.t1 {
  background: #e0f2fe;
  color: #0369a1;
}

.traveler-chip.t2 {
  background: #fef3c7;
  color: #b45309;
}

.leg-duration {
  font-size: 13px;
  color: #0f172a;
}

.leg-meta {
  font-size: 11px;
  color: #475569;
  line-height: 1.35;
}

.btn-leg-search {
  margin-top: auto;
  display: inline-block;
  background: #fff;
  border: 1px solid #cbd5e1;
  color: #0f172a;
  font-size: 11px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  padding: 6px 8px;
  border-radius: 6px;
  transition: all 0.15s ease;
}

.btn-leg-search:hover {
  background: #0f172a;
  border-color: #0f172a;
  color: #fff;
}

.card-footer-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  border-top: 1px solid #f1f5f9;
  padding-top: 14px;
}

.fare-total-callout {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.total-lbl {
  font-size: 11px;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
}

.total-val {
  font-size: 15px;
  color: #15803d;
}

.action-buttons-group {
  display: flex;
  gap: 8px;
}

.btn-action-tz,
.btn-action-map,
.btn-action-share {
  background: #fff;
  border: 1px solid #cbd5e1;
  color: #334155;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.15s ease;
}

.btn-action-tz:hover,
.btn-action-map:hover,
.btn-action-share:hover {
  background: #f1f5f9;
  color: #0f172a;
}

/* Timezone Modal */
.timezone-modal {
  border: none;
  border-radius: 16px;
  padding: 0;
  max-width: 680px;
  width: 90vw;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2);
}

.timezone-modal::backdrop {
  background: rgba(15, 23, 42, 0.5);
}

.tz-modal-shell {
  padding: 24px;
  background: #fff;
}

.tz-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
}

.tz-title {
  font-size: 18px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 4px;
}

.tz-subtitle {
  font-size: 13px;
  color: #64748b;
  margin: 0;
}

.tz-close-btn {
  background: none;
  border: none;
  font-size: 24px;
  color: #64748b;
  cursor: pointer;
  line-height: 1;
}

.tz-table-wrap {
  max-height: 400px;
  overflow-y: auto;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
}

.tz-grid-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  text-align: left;
}

.tz-grid-table th {
  background: #f8fafc;
  color: #475569;
  font-weight: 700;
  padding: 10px 12px;
  border-bottom: 2px solid #e2e8f0;
}

.tz-grid-table td {
  padding: 8px 12px;
  border-bottom: 1px solid #f1f5f9;
}

.tz-row-biz {
  background: #f0fdf4;
}

.tz-row-wake {
  background: #fefce8;
}

.tz-pill {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
}

.tz-pill.biz {
  background: #dcfce7;
  color: #166534;
}

.tz-pill.wake {
  background: #fef08a;
  color: #854d0e;
}

.tz-pill.off {
  color: #94a3b8;
}

/* Fairness Explanation Grid */
.fairness-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.fairness-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 18px;
  display: flex;
  gap: 14px;
}

.fairness-icon {
  font-size: 24px;
  flex-shrink: 0;
}

.fairness-card h3 {
  font-size: 14px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 6px;
}

.fairness-card p {
  font-size: 13px;
  color: #475569;
  line-height: 1.5;
  margin: 0;
}

/* FAQ Grid */
.faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.faq-item {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 20px;
}

.faq-item h3 {
  font-size: 15px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 8px;
}

.faq-item p {
  font-size: 13px;
  color: #475569;
  line-height: 1.5;
  margin: 0;
}
