.c-saved-trips {
  padding: 32px 0 8px;
  background: #f8fafb;
  border-bottom: 1px solid #e8edf2;
  scroll-margin-top: 110px;
}

.c-saved-trips__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.c-saved-trips__head h2 {
  margin: 0 0 6px;
  font-size: 22px;
}

.c-saved-trips__head p {
  margin: 0;
  color: #666;
  font-size: 14px;
}

.c-saved-trips__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 18px;
}

.c-saved-trips__empty {
  margin: 0;
  padding: 24px;
  border: 1px dashed #d5dee8;
  border-radius: 12px;
  background: #fff;
  color: #666;
  text-align: center;
}

.c-saved-trip-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px;
  border: 1px solid #e3eaf0;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(20, 40, 60, 0.04);
}

.c-saved-trip-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.c-saved-trip-card__title {
  margin: 0;
  font-size: 17px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.c-saved-route {
  margin: 2px 0 4px;
}

.c-saved-route__track {
  display: flex;
  align-items: stretch;
  gap: 0;
  overflow-x: auto;
  padding: 4px 2px 8px;
  scrollbar-width: thin;
}

.c-saved-route__item {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
}

.c-saved-route__stop {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 132px;
  max-width: 168px;
  padding: 8px 10px;
  border: 1px solid #e6edf3;
  border-radius: 12px;
  background: linear-gradient(180deg, #fff 0%, #f8fbfd 100%);
  box-shadow: 0 4px 14px rgba(20, 40, 60, 0.05);
}

.c-saved-route__thumb {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 12px;
  overflow: hidden;
  background: #dfe8f0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.c-saved-route__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.c-saved-route__flag-img {
  object-fit: cover;
  background: #fff;
}

.c-saved-route__fallback {
  font-size: 18px;
  font-weight: 700;
  color: #567;
}

.c-saved-route__copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.c-saved-route__role {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #7a8a99;
}

.c-saved-route__name {
  font-size: 13px;
  line-height: 1.2;
  color: #223;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.c-saved-route__country {
  font-size: 10px;
  color: #778;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.c-saved-route__arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  color: #9ab;
  font-size: 11px;
}

.c-saved-route__empty {
  margin: 0;
  color: #777;
  font-size: 13px;
}

.c-saved-route--compact .c-saved-route__stop {
  min-width: 118px;
  max-width: 140px;
  padding: 6px 8px;
}

.c-saved-route--compact .c-saved-route__thumb {
  width: 42px;
  height: 42px;
  border-radius: 10px;
}

.c-saved-route--compact .c-saved-route__name {
  font-size: 12px;
}

.c-saved-route--compact .c-saved-route__country {
  display: none;
}

.c-saved-route--compact .c-saved-route__role {
  font-size: 8px;
}

.c-saved-trip-card__step {
  flex-shrink: 0;
  padding: 4px 8px;
  border-radius: 999px;
  background: #eef5fb;
  color: #2d6f9a;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.c-saved-trip-card__route {
  margin: 0;
  color: #444;
  font-size: 13px;
  line-height: 1.45;
}

.c-saved-trip-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: #666;
  font-size: 12px;
}

.c-saved-trip-card__meta li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.c-saved-trip-card__updated {
  margin: 0;
  color: #888;
  font-size: 11px;
}

.c-saved-trip-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 6px;
}

.c-button--danger {
  color: #b42318;
  border-color: #f1c0bc;
}

.c-button--danger:hover {
  background: #fff5f4;
}

.c-trip-save-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  margin-bottom: 12px;
  padding: 12px 14px;
  border: 1px solid #dce9f2;
  border-radius: 10px;
  background: #fafcfe;
}

.c-trip-save-bar__name {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.c-trip-save-bar__name strong {
  font-size: 14px;
  color: #223;
}

.c-trip-save-bar__name small {
  color: #777;
  font-size: 11px;
}

.c-trip-save-bar__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.c-programa-save-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
  padding: 14px 16px;
  border: 1px solid #dce9f2;
  border-radius: 10px;
  background: #fff;
}

.c-programa-save-bar__info strong {
  display: block;
  margin-bottom: 4px;
}

.c-programa-save-bar__info small {
  color: #777;
}

.c-programa-save-bar__info .c-saved-route,
.c-trip-save-bar__name .c-saved-route {
  margin-top: 8px;
  max-width: 100%;
  overflow: hidden;
}

.c-programa-save-bar__info .c-saved-route__track,
.c-trip-save-bar__name .c-saved-route__track {
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
}

.c-programa-save-bar__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.c-save-draft-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.c-save-draft-form label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
}

.c-save-draft-form input {
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font: inherit;
}

.c-save-draft-form__hint {
  margin: 0;
  color: #666;
  font-size: 13px;
}

.c-save-toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 3000;
  padding: 12px 16px;
  border-radius: 10px;
  background: #1f6f43;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
}

.c-save-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* —— Página dedicada mis-ideas-viaje.html —— */
.page-mis-ideas .c-mis-ideas-page {
  background: #f4f7fa;
  min-height: calc(100vh - 120px);
}

.c-mis-ideas-hero {
  padding: 28px 0 8px;
  background: linear-gradient(180deg, #0b1220 0%, #152238 100%);
  color: #fff;
}

.c-mis-ideas-hero h1 {
  margin: 0 0 8px;
  font-family: var(--font-display, 'Syne', sans-serif);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
}

.c-mis-ideas-hero__eyebrow {
  margin: 0 0 8px;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.c-mis-ideas-hero__lead {
  margin: 0;
  max-width: 760px;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.6;
  font-size: 15px;
}

.c-saved-trips--page {
  padding: 24px 0 48px;
  background: transparent;
  border-bottom: none;
}

.c-mis-ideas-note {
  margin-top: 28px;
  padding: 20px 22px;
  border-radius: 14px;
  border: 1px solid #dbe4ee;
  background: #fff;
  color: #475569;
  font-size: 14px;
  line-height: 1.6;
}

.c-mis-ideas-note h3 {
  margin: 0 0 8px;
  color: #0f172a;
  font-size: 15px;
}

.c-mis-ideas-note h3:not(:first-child) {
  margin-top: 18px;
}

.c-mis-ideas-note ul {
  margin: 0 0 10px;
  padding-left: 18px;
}

.c-mis-ideas-note p {
  margin: 0 0 10px;
}

.c-saved-trip-card__owner {
  display: inline-flex;
  margin-top: 4px;
  padding: 3px 8px;
  border-radius: 999px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1d4ed8;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  word-break: break-all;
}

.c-saved-trips-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  margin-left: 6px;
  padding: 0 6px;
  border-radius: 999px;
  background: #0077c8;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}

.c-header-subnav__saved {
  font-weight: 700;
  color: var(--brand-color, #0077c8) !important;
}

.c-search-recent__saved-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: inherit;
  font-weight: 600;
  text-decoration: none;
}

.c-search-recent__saved-link:hover {
  color: var(--brand-color, #0077c8);
}

.c-search-recent__saved-arrow {
  transform: rotate(-90deg);
  font-size: 12px;
  opacity: 0.7;
}

@media (max-width: 700px) {
  .c-trip-save-bar,
  .c-programa-save-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .c-trip-save-bar__actions,
  .c-programa-save-bar__actions {
    width: 100%;
  }

  .c-trip-save-bar__actions .c-button,
  .c-programa-save-bar__actions .c-button {
    flex: 1;
  }
}
