/* ===================================================================
   Run to America — Comparador de Destinos
   =================================================================== */

.cmp-picker {
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow-sm);
  margin-bottom: 32px;
}
.cmp-picker__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.cmp-picker__filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.cmp-picker__filters select { padding: 8px 10px; border-radius: var(--radius-sm); border: 1px solid var(--color-border-strong); font-family: inherit; }
.cmp-picker__search { flex: 1; min-width: 180px; padding: 8px 12px; border-radius: var(--radius-sm); border: 1px solid var(--color-border-strong); font-family: inherit; }

.cmp-slots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 18px; }
@media (max-width: 860px) { .cmp-slots { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .cmp-slots { grid-template-columns: 1fr; } }
.cmp-slot {
  border: 2px dashed var(--color-border-strong); border-radius: var(--radius-md); padding: 14px;
  min-height: 90px; display: flex; align-items: center; justify-content: center; text-align: center;
  color: var(--color-ink-faint); font-size: 0.9rem; position: relative;
}
.cmp-slot.is-filled { border-style: solid; border-color: var(--color-blue-500); background: var(--color-blue-100); color: var(--color-blue-900); flex-direction: column; align-items: flex-start; text-align: left; gap: 4px; }
.cmp-slot.is-filled strong { font-family: var(--font-display); color: var(--color-blue-900); }
.cmp-slot__remove { position: absolute; top: 8px; right: 8px; background: none; border: none; color: var(--color-red-700); font-weight: 900; cursor: pointer; font-size: 1rem; line-height: 1; }

.cmp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; max-height: 480px; overflow-y: auto; padding: 4px 2px; }
.cmp-option {
  border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: 14px; text-align: left;
  background: var(--color-surface); cursor: pointer; display: grid; gap: 4px;
}
.cmp-option:hover { border-color: var(--color-blue-500); }
.cmp-option.is-selected { border-color: var(--color-red-700); background: var(--color-red-100); }
.cmp-option.is-disabled { opacity: 0.4; cursor: not-allowed; }
.cmp-option strong { font-family: var(--font-display); color: var(--color-blue-900); font-size: 0.98rem; }
.cmp-option span { font-size: 0.8rem; color: var(--color-ink-faint); }
.cmp-option__thumb { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius-sm); margin-bottom: 2px; }

.cmp-slot__thumb { width: 36px; height: 36px; border-radius: var(--radius-sm); object-fit: cover; flex-shrink: 0; }
.cmp-slot.is-filled { flex-direction: row; align-items: center; }
.cmp-slot.is-filled .cmp-slot__text { display: flex; flex-direction: column; }

.cmp-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }

.cmp-empty { padding: 40px 20px; text-align: center; color: var(--color-ink-faint); border: 1px dashed var(--color-border-strong); border-radius: var(--radius-lg); }

.cmp-table-wrap { overflow-x: auto; border: 1px solid var(--color-border); border-radius: var(--radius-lg); background: var(--color-surface); }
.cmp-table { width: 100%; border-collapse: collapse; min-width: 640px; }
.cmp-table th, .cmp-table td { padding: 14px 16px; border-bottom: 1px solid var(--color-border); text-align: left; vertical-align: top; font-size: 0.92rem; }
.cmp-table thead th { background: var(--color-blue-900); color: #fff; position: sticky; top: 0; }
.cmp-table tbody th { background: var(--color-bg-alt); color: var(--color-blue-900); white-space: nowrap; }
.cmp-table tbody tr:last-child td, .cmp-table tbody tr:last-child th { border-bottom: none; }
.cmp-scale { display: flex; gap: 3px; }
.cmp-scale span { width: 10px; height: 10px; border-radius: 50%; background: var(--color-border-strong); }
.cmp-scale span.is-on { background: var(--color-red-700); }

.cmp-notes { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin: 24px 0; }
.cmp-notes .card { height: 100%; }
.cmp-notes .strengths { color: var(--color-green-600); }
.cmp-notes .limitations { color: var(--color-red-700); }

.cmp-saved { margin-top: 10px; }
.cmp-saved-list { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 8px; }
.cmp-saved-list li { display: flex; justify-content: space-between; align-items: center; gap: 10px; background: var(--color-bg-alt); border-radius: var(--radius-sm); padding: 10px 14px; font-size: 0.88rem; }
.cmp-saved-list button { background: none; border: none; color: var(--color-red-700); cursor: pointer; font-weight: 700; }

.cmp-disclaimer { font-size: 0.85rem; color: var(--color-ink-faint); background: var(--color-bg-alt); padding: 14px 18px; border-radius: var(--radius-md); margin: 24px 0; }

[data-cmp-status] { font-size: 0.85rem; color: var(--color-green-600); font-weight: 700; min-height: 1.2em; }
