/* Trip list: one card per trip (country + dates), empty state, add / clear buttons. */

.trips {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.trip {
  padding: 12px;
}
.trip-top {
  display: flex;
  gap: 8px;
  align-items: center;
}

.country-btn {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  font-size: 15px;
  font-weight: 600;
  text-align: start;
  transition: border-color 0.15s;
}
.country-btn:hover {
  border-color: var(--line-strong);
}
.country-btn .cname {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.country-btn .cname.muted {
  color: var(--muted);
  font-weight: 500;
}

/* ---- Date fields ---- */

.dates {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 10px;
}
/* A label above a box with the date; the whole thing is one button that opens the picker. */
.date-field {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  text-align: start;
}
.date-label {
  display: block;
  margin: 0 2px 4px;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
}
.date-value {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 42px;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  font-size: 15px;
  font-variant-numeric: tabular-nums;
  transition: border-color 0.15s;
}
.date-value.empty {
  color: var(--muted);
}
.date-field:hover .date-value {
  border-color: var(--line-strong);
}
.date-field:focus-visible {
  outline: none;
}
.date-field:focus-visible .date-value {
  border-color: var(--ink);
  box-shadow: 0 0 0 1px var(--ink);
}
.cal-icon {
  width: 16px;
  height: 16px;
  flex: none;
  color: var(--muted);
}

.trip-meta {
  margin: 8px 2px 0;
  font-size: 12px;
  color: var(--muted);
}
.trip-meta.err {
  color: var(--accent-text);
}

/* ---- Add / empty state / footer ---- */

.add-btn {
  width: 100%;
  height: 48px;
  margin-top: 8px;
  border: 1px dashed var(--line-strong);
  border-radius: 12px;
  background: transparent;
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition:
    border-color 0.15s,
    background 0.15s;
}
.add-btn:hover {
  border-color: var(--ink);
  background: var(--surface);
}
.add-btn:focus:not(:focus-visible) {
  outline: none;
}
.add-btn svg {
  width: 18px;
  height: 18px;
}

.empty {
  padding: 28px 20px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}
.empty-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 12px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  color: var(--text);
}
.empty-icon svg {
  width: 24px;
  height: 24px;
}

.footer-links {
  display: flex;
  justify-content: flex-end;
  margin: 18px 2px 0;
  font-size: 13px;
}
