/* =========================================================
   KKF Saved Trips — matches the Trip Basket UI (v2.0.0)
   Loads after kkf-trip-basket.css and reuses its tokens.
   ========================================================= */

/* ---------------------------------------- Save button in the hero */

.kkf-save-trip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 22px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: var(--kkf-radius-pill, 999px);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 700;
  cursor: pointer;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  transition: background 0.22s ease, border-color 0.22s ease;
}

.kkf-save-trip::before {
  content: "";
  width: 16px;
  height: 16px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h11l5 5v11a2 2 0 0 1-2 2z'/%3E%3Cpath d='M17 21v-8H7v8M7 3v5h8'/%3E%3C/svg%3E")
    center / contain no-repeat;
}

.kkf-save-trip:hover {
  background: rgba(255, 255, 255, 0.24);
  border-color: #fff;
}

.kkf-save-trip.kkf-is-saved {
  background: #fff;
  border-color: #fff;
  color: var(--kkf-teal, #0e6e63);
}

.kkf-save-trip.kkf-is-saved::before {
  display: none;
}

/* ---------------------------------------- Modal */

.kkf-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(23, 33, 31, 0.55);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  animation: kkf-fade 0.18s ease both;
}

.kkf-modal {
  width: 100%;
  max-width: 430px;
  padding: 30px 28px 26px;
  border-radius: 24px;
  background: #fff;
  color: var(--kkf-ink, #17211f);
  font-family: var(--kkf-font-body, system-ui, sans-serif);
  text-align: center;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.6);
  animation: kkf-pop 0.22s cubic-bezier(0.32, 0.72, 0.35, 1) both;
}

.kkf-modal-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--kkf-sun-wash, #fff1ea);
  font-size: 26px;
  line-height: 1;
}

.kkf-modal h3 {
  margin: 0 0 8px;
  font-family: var(--kkf-font-display, Georgia, serif);
  font-size: 23px;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.kkf-modal p {
  margin: 0 0 18px;
  color: var(--kkf-ink-soft, #5f6f6a);
  font-size: 14.5px;
  line-height: 1.6;
}

.kkf-modal-input {
  width: 100%;
  min-height: 52px;
  margin-bottom: 18px;
  padding: 13px 18px;
  border: 1.5px solid var(--kkf-line, #ecdfd3);
  border-radius: var(--kkf-radius-pill, 999px);
  background: var(--kkf-sand, #fbf6f0);
  font-family: inherit;
  font-size: 16px;
  color: inherit;
  text-align: center;
}

.kkf-modal-input:focus {
  outline: none;
  border-color: var(--kkf-sun, #f0522b);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(240, 82, 43, 0.14);
}

.kkf-modal-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.kkf-modal-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 13px 24px;
  border: 0;
  border-radius: var(--kkf-radius-pill, 999px);
  background: linear-gradient(120deg, var(--kkf-mango, #f7941d),
    var(--kkf-sun, #f0522b));
  color: #fff !important;
  font-family: inherit;
  font-size: 15.5px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 14px 28px -14px rgba(240, 82, 43, 0.9);
  transition: transform 0.22s ease;
}

.kkf-modal-primary:hover {
  transform: translateY(-2px);
}

.kkf-modal-primary:disabled {
  opacity: 0.6;
  transform: none;
  cursor: progress;
}

.kkf-modal-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 24px;
  border: 1.5px solid var(--kkf-line, #ecdfd3);
  border-radius: var(--kkf-radius-pill, 999px);
  background: #fff;
  color: var(--kkf-ink, #17211f) !important;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  transition: border-color 0.22s ease, color 0.22s ease;
}

.kkf-modal-ghost:hover {
  border-color: var(--kkf-sun, #f0522b);
  color: var(--kkf-sun-deep, #c33b16) !important;
}

.kkf-modal-text {
  min-height: 40px;
  border: 0;
  background: none;
  color: var(--kkf-ink-soft, #5f6f6a);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.kkf-modal-text:hover {
  color: var(--kkf-ink, #17211f);
}

.kkf-modal-note {
  margin: 16px 0 0 !important;
  font-size: 12.5px !important;
}

/* ---------------------------------------- Saved trips page */

.kkf-saved-wrap {
  max-width: 900px;
  margin: 0 auto;
  font-family: var(--kkf-font-body, system-ui, sans-serif);
  color: var(--kkf-ink, #17211f);
}

.kkf-saved-head {
  margin-bottom: 22px;
}

.kkf-saved-head .kkf-eyebrow {
  display: block;
  margin-bottom: 8px;
  color: var(--kkf-sun, #f0522b);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.kkf-saved-head h2 {
  margin: 0 0 8px;
  font-family: var(--kkf-font-display, Georgia, serif);
  font-size: clamp(28px, 3.4vw, 38px);
  font-weight: 600;
  letter-spacing: -0.015em;
}

.kkf-saved-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.kkf-saved-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 22px;
  border: 1px solid var(--kkf-line, #ecdfd3);
  border-left: 5px solid var(--kkf-sun, #f0522b);
  border-radius: var(--kkf-radius-lg, 24px);
  background: #fff;
  box-shadow: 0 2px 10px rgba(23, 33, 31, 0.05);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.kkf-saved-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px -22px rgba(23, 33, 31, 0.42);
}

.kkf-saved-card-body {
  min-width: 0;
}

.kkf-saved-card h3 {
  margin: 0 0 6px;
  font-family: var(--kkf-font-display, Georgia, serif);
  font-size: 20px;
  font-weight: 600;
}

.kkf-saved-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 6px;
  color: var(--kkf-ink-soft, #5f6f6a);
  font-size: 13px;
  font-weight: 600;
}

.kkf-saved-places {
  color: var(--kkf-ink-soft, #5f6f6a);
  font-size: 13.5px;
  line-height: 1.5;
}

.kkf-saved-card-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-shrink: 0;
}

.kkf-saved-delete {
  min-height: 40px;
  padding: 9px 18px;
  border: 1px solid var(--kkf-line, #ecdfd3);
  border-radius: var(--kkf-radius-pill, 999px);
  background: #fff;
  color: var(--kkf-ink-soft, #5f6f6a);
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.kkf-saved-delete:hover {
  color: #b42318;
  border-color: #f3c3bf;
  background: #fef2f1;
}

.kkf-saved-empty,
.kkf-saved-loading {
  padding: 44px 24px;
  border: 1.5px dashed var(--kkf-line, #ecdfd3);
  border-radius: var(--kkf-radius-lg, 24px);
  background: var(--kkf-sand, #fbf6f0);
  color: var(--kkf-ink-soft, #5f6f6a);
  text-align: center;
}

.kkf-saved-empty p {
  margin: 0 0 16px;
}

@keyframes kkf-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes kkf-pop {
  from { opacity: 0; transform: translateY(14px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 640px) {
  .kkf-saved-card {
    flex-direction: column;
    align-items: stretch;
  }

  .kkf-saved-card-actions {
    flex-direction: row;
  }

  .kkf-saved-card-actions > * {
    flex: 1 1 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .kkf-modal,
  .kkf-modal-backdrop,
  .kkf-saved-card {
    animation: none !important;
    transition: none !important;
  }
}