/* ============================================================
   TravelDK — Prissammenligning Stylesheet
   ============================================================ */

/* ── Hero ─────────────────────────────────────────────────── */
.compare-hero {
  background: linear-gradient(160deg, #0a1628 0%, #0f2040 50%, #0d1a35 100%);
  padding: 3rem 0 2rem;
  margin-top: 64px;
  position: relative;
  overflow: hidden;
}

.compare-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 80% 50%, rgba(37,99,235,.12) 0%, transparent 60%),
              radial-gradient(ellipse at 20% 80%, rgba(201,168,76,.08) 0%, transparent 50%);
  pointer-events: none;
}

.compare-hero-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.compare-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .3rem .875rem;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 999px;
  color: rgba(255,255,255,.8);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .03em;
  margin-bottom: 1rem;
}

.live-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #34d399;
  animation: livePulse 1.5s ease-in-out infinite;
}

@keyframes livePulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: .6; transform: scale(1.4); }
}

.compare-hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 700;
  color: white;
  line-height: 1.2;
  margin-bottom: .75rem;
}

.compare-hero-title em {
  font-style: italic;
  background: linear-gradient(135deg, #f59e0b, #fbbf24);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.compare-hero-sub {
  color: rgba(255,255,255,.65);
  font-size: 1rem;
  max-width: 480px;
}

/* Best deal box */
.compare-best-deal {
  background: rgba(255,255,255,.08);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 20px;
  padding: 1.5rem;
  text-align: center;
  min-width: 220px;
  flex-shrink: 0;
}

.compare-best-label {
  font-size: .75rem;
  font-weight: 700;
  color: rgba(255,255,255,.6);
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: .5rem;
}

.compare-best-platform {
  font-size: 1rem;
  font-weight: 600;
  color: white;
  margin-bottom: .25rem;
}

.compare-best-price {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 700;
  color: #fbbf24;
  margin-bottom: .25rem;
}

.compare-best-sub {
  font-size: .8rem;
  color: rgba(255,255,255,.55);
  margin-bottom: 1rem;
}

.compare-best-btn {
  display: inline-flex;
  align-items: center;
  padding: .6rem 1.25rem;
  background: #f59e0b;
  color: #0f1c2e;
  border-radius: 10px;
  font-weight: 700;
  font-size: .875rem;
  transition: all 200ms cubic-bezier(0.23,1,0.32,1);
  text-decoration: none;
}

.compare-best-btn:hover {
  background: #fbbf24;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(245,158,11,.4);
  text-decoration: none;
}

/* ── Search form ──────────────────────────────────────────── */
.compare-search-wrap {
  background: white;
  border-bottom: 1px solid #e2e8f0;
  padding: 1.25rem 0;
  position: sticky;
  top: 64px;
  z-index: 80;
  box-shadow: 0 4px 16px rgba(0,0,0,.06);
}

.compare-search-form { }

.compare-type-tabs {
  display: flex;
  gap: .25rem;
  margin-bottom: 1rem;
  background: #f1f5f9;
  padding: .25rem;
  border-radius: 12px;
  width: fit-content;
}

.compare-type-tab {
  padding: .45rem 1rem;
  border-radius: 10px;
  border: none;
  background: transparent;
  color: #64748b;
  font-size: .85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 200ms cubic-bezier(0.23,1,0.32,1);
  white-space: nowrap;
}

.compare-type-tab.active {
  background: white;
  color: #0f1c2e;
  box-shadow: 0 1px 4px rgba(0,0,0,.1);
}

.compare-type-tab:hover:not(.active) { color: #0f1c2e; }

.compare-fields {
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
  align-items: flex-end;
}

.compare-field {
  display: flex;
  flex-direction: column;
  gap: .3rem;
  flex: 1;
  min-width: 130px;
}

.compare-field-dest { min-width: 200px; flex: 2; }
.compare-field-sm { min-width: 120px; flex: 0 0 auto; }
.compare-field-btn { flex: 0 0 auto; }

.compare-field label {
  font-size: .72rem;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.compare-field input,
.compare-field select {
  padding: .6rem .875rem;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  font-size: .875rem;
  color: #0f172a;
  background: white;
  outline: none;
  transition: border-color 200ms;
  font-family: 'Inter', sans-serif;
}

.compare-field input:focus,
.compare-field select:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37,99,235,.1);
}

.compare-search-btn {
  padding: .65rem 1.5rem;
  background: linear-gradient(135deg, #2563eb, #0ea5e9);
  color: white;
  border: none;
  border-radius: 10px;
  font-weight: 700;
  font-size: .9rem;
  cursor: pointer;
  transition: all 200ms cubic-bezier(0.23,1,0.32,1);
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(37,99,235,.3);
}

.compare-search-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(37,99,235,.4);
}

.compare-search-btn:active { transform: scale(0.97); }

/* ── Main layout ──────────────────────────────────────────── */
.compare-main { padding: 2rem 0 4rem; }

.compare-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 1.5rem;
  align-items: start;
}

/* ── Advice banner ────────────────────────────────────────── */
.compare-advice {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: .875rem 1.25rem;
  border-radius: 12px;
  margin-bottom: 1.5rem;
  font-size: .875rem;
  flex-wrap: wrap;
}

.compare-advice-good {
  background: rgba(5,150,105,.08);
  border: 1px solid rgba(5,150,105,.2);
  color: #065f46;
}

.compare-advice-warn {
  background: rgba(245,158,11,.08);
  border: 1px solid rgba(245,158,11,.25);
  color: #92400e;
}

.compare-advice-icon { font-size: 1.25rem; flex-shrink: 0; }
.compare-advice > div { flex: 1; }
.compare-advice-saving {
  font-size: .875rem;
  font-weight: 700;
  white-space: nowrap;
  padding: .3rem .75rem;
  background: rgba(5,150,105,.12);
  border-radius: 999px;
  color: #065f46;
}

/* ── Sidebar ──────────────────────────────────────────────── */
.compare-sidebar {
  position: sticky;
  top: 140px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.compare-sidebar-card {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 1.125rem;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
}

.compare-sidebar-title {
  font-weight: 700;
  font-size: .875rem;
  color: #0f172a;
  margin-bottom: .875rem;
}

.compare-filter-group { margin-bottom: 1rem; }
.compare-filter-group:last-child { margin-bottom: 0; }

.compare-filter-label {
  font-size: .72rem;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: .4rem;
}

.compare-filter-options {
  display: flex;
  flex-direction: column;
  gap: .25rem;
}

.compare-filter-btn {
  padding: .4rem .75rem;
  border-radius: 8px;
  border: 1.5px solid #e2e8f0;
  background: white;
  color: #64748b;
  font-size: .8rem;
  font-weight: 500;
  cursor: pointer;
  text-align: left;
  transition: all 150ms cubic-bezier(0.23,1,0.32,1);
}

.compare-filter-btn:hover { border-color: #0f1c2e; color: #0f1c2e; }
.compare-filter-btn.active { background: #0f1c2e; border-color: #0f1c2e; color: white; }

/* Range slider */
.compare-range {
  width: 100%;
  accent-color: #2563eb;
  margin: .4rem 0 .25rem;
}

.compare-range-labels {
  display: flex;
  justify-content: space-between;
  font-size: .72rem;
  color: #94a3b8;
}

/* Chart */
.compare-chart-wrap {
  background: #f8fafc;
  border-radius: 10px;
  padding: .5rem;
  margin-bottom: .5rem;
}

.compare-chart-labels {
  display: flex;
  justify-content: space-between;
  font-size: .7rem;
  color: #94a3b8;
}

/* Quick links */
.compare-quick-links {
  display: flex;
  flex-direction: column;
  gap: .35rem;
}

.compare-quick-link {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .45rem .75rem;
  border-radius: 8px;
  border: 1px solid;
  font-size: .8rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 150ms cubic-bezier(0.23,1,0.32,1);
}

.compare-quick-link:hover {
  transform: translateX(3px);
  text-decoration: none;
}

.compare-quick-arrow { margin-left: auto; opacity: .5; }

/* ── Results ──────────────────────────────────────────────── */
.compare-results { }

.compare-results-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .75rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #e2e8f0;
}

.compare-results-count { font-size: .875rem; color: #64748b; }
.compare-results-count strong { color: #0f172a; }

.meal-tag {
  display: inline-block;
  padding: .15rem .5rem;
  background: rgba(37,99,235,.1);
  color: #1e3a8a;
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 600;
}

.compare-refresh {
  display: flex;
  align-items: center;
  gap: .75rem;
}

.compare-refresh-btn {
  padding: .4rem .875rem;
  border: 1.5px solid #e2e8f0;
  border-radius: 8px;
  background: white;
  color: #64748b;
  font-size: .8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 150ms cubic-bezier(0.23,1,0.32,1);
}

.compare-refresh-btn:hover { border-color: #2563eb; color: #2563eb; }
.compare-refresh-btn:disabled { opacity: .5; cursor: not-allowed; }

.compare-updated { font-size: .75rem; color: #94a3b8; }

/* ── Compare card ─────────────────────────────────────────── */
.compare-card {
  background: white;
  border: 1.5px solid #e2e8f0;
  border-radius: 16px;
  margin-bottom: .875rem;
  position: relative;
  overflow: hidden;
  transition: all 220ms cubic-bezier(0.23,1,0.32,1);
  box-shadow: 0 1px 4px rgba(0,0,0,.05);
}

.compare-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 8px 32px rgba(0,0,0,.1);
  transform: translateY(-2px);
}

.compare-card-best {
  border-color: #f59e0b;
  box-shadow: 0 4px 20px rgba(245,158,11,.15);
  background: linear-gradient(135deg, #fffbeb 0%, white 40%);
}

.compare-card-best:hover {
  box-shadow: 0 8px 32px rgba(245,158,11,.2);
}

.compare-card-ribbon {
  position: absolute;
  top: 0; right: 0;
  padding: .3rem .875rem;
  background: #f59e0b;
  color: #0f1c2e;
  font-size: .72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
  border-radius: 0 14px 0 12px;
}

.compare-card-ribbon-worst {
  background: #f1f5f9;
  color: #94a3b8;
}

.compare-card-inner {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.125rem 1.25rem;
}

/* Platform column */
.compare-card-platform {
  display: flex;
  align-items: center;
  gap: .75rem;
  min-width: 160px;
  flex-shrink: 0;
}

.compare-card-logo {
  width: 48px; height: 48px;
  border-radius: 12px;
  border: 1.5px solid;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.compare-card-platform-name {
  font-weight: 700;
  font-size: .9rem;
}

.compare-card-rating {
  display: flex;
  align-items: center;
  gap: 1px;
  margin-top: .15rem;
}

.star-filled { color: #f59e0b; font-size: .8rem; }
.star-empty  { color: #e2e8f0; font-size: .8rem; }

.compare-card-rating-val {
  font-size: .75rem;
  font-weight: 600;
  color: #64748b;
  margin-left: .25rem;
}

/* Details column */
.compare-card-details { flex: 1; min-width: 0; }

.compare-card-detail {
  font-size: .8125rem;
  color: #64748b;
  margin-bottom: .2rem;
}

.compare-card-meal { margin: .35rem 0; }

.compare-meal-badge {
  display: inline-flex;
  align-items: center;
  padding: .2rem .6rem;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 700;
}

.compare-card-includes {
  display: flex;
  flex-wrap: wrap;
  gap: .3rem;
  margin-top: .4rem;
}

.compare-include {
  font-size: .72rem;
  color: #059669;
  background: rgba(5,150,105,.08);
  padding: .15rem .5rem;
  border-radius: 999px;
  white-space: nowrap;
}

/* Price column */
.compare-card-price-col {
  text-align: right;
  flex-shrink: 0;
  min-width: 160px;
}

.compare-card-price {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #0f1c2e;
  transition: color .3s;
}

.price-flash { color: #2563eb !important; }

.compare-card-diff {
  font-size: .75rem;
  color: #ef4444;
  margin-bottom: .5rem;
}

.compare-card-diff-best {
  color: #059669;
  font-weight: 600;
}

.compare-book-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .5rem 1rem;
  border-radius: 10px;
  font-size: .8125rem;
  font-weight: 700;
  border: 2px solid;
  cursor: pointer;
  transition: all 150ms cubic-bezier(0.23,1,0.32,1);
  text-decoration: none;
  white-space: nowrap;
  margin-bottom: .35rem;
  display: block;
}

.compare-book-btn:hover {
  transform: translateY(-1px);
  text-decoration: none;
}

.compare-book-btn-best {
  background: #f59e0b;
  border-color: #f59e0b;
  color: #0f1c2e;
}

.compare-book-btn-best:hover {
  background: #fbbf24;
  box-shadow: 0 4px 14px rgba(245,158,11,.35);
}

.compare-save-btn {
  display: block;
  width: 100%;
  padding: .35rem .75rem;
  border: 1.5px solid #e2e8f0;
  border-radius: 8px;
  background: white;
  color: #94a3b8;
  font-size: .75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 150ms;
  text-align: center;
}

.compare-save-btn:hover { border-color: #ef4444; color: #ef4444; background: #fef2f2; }

/* ── Summary bar ──────────────────────────────────────────── */
.compare-summary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  padding: 1.25rem;
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  margin-top: 1.25rem;
  flex-wrap: wrap;
}

.compare-summary-item { text-align: center; }
.compare-summary-label { display: block; font-size: .72rem; font-weight: 600; color: #94a3b8; text-transform: uppercase; letter-spacing: .04em; margin-bottom: .2rem; }
.compare-summary-val { font-family: 'Playfair Display', serif; font-size: 1.25rem; font-weight: 700; }
.compare-summary-green { color: #059669; }
.compare-summary-red   { color: #ef4444; }
.compare-summary-gold  { color: #d97706; }
.compare-summary-sep   { font-size: 1.25rem; color: #cbd5e1; }

/* ── Empty state ──────────────────────────────────────────── */
.compare-empty {
  text-align: center;
  padding: 4rem 2rem;
  max-width: 640px;
  margin: 0 auto;
}

.compare-empty-icon { font-size: 4rem; margin-bottom: 1.25rem; }
.compare-empty h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.75rem;
  color: #0f1c2e;
  margin-bottom: .75rem;
}
.compare-empty p { color: #64748b; font-size: 1rem; line-height: 1.65; margin-bottom: 2rem; }

.compare-popular { margin-bottom: 3rem; }
.compare-popular-title { font-weight: 700; font-size: .875rem; color: #64748b; margin-bottom: .75rem; text-transform: uppercase; letter-spacing: .05em; }
.compare-popular-tags { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; }
.compare-popular-tag {
  padding: .4rem 1rem;
  background: white;
  border: 1.5px solid #e2e8f0;
  border-radius: 999px;
  font-size: .875rem;
  font-weight: 600;
  color: #0f1c2e;
  text-decoration: none;
  transition: all 150ms;
}
.compare-popular-tag:hover {
  border-color: #f59e0b;
  background: #fffbeb;
  text-decoration: none;
  transform: scale(1.04);
}

/* Platform logos grid */
.compare-platform-logos { }
.compare-platform-logos-title { font-weight: 700; font-size: .875rem; color: #64748b; margin-bottom: 1rem; text-transform: uppercase; letter-spacing: .05em; }
.compare-platform-logos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: .5rem;
}
.compare-platform-logo-item {
  display: flex;
  align-items: center;
  gap: .4rem;
  padding: .5rem .75rem;
  border-radius: 10px;
  border: 1px solid;
}
.compare-platform-logo-icon { font-size: 1.1rem; }
.compare-platform-logo-name { font-size: .78rem; font-weight: 700; }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 1024px) {
  .compare-layout { grid-template-columns: 220px 1fr; }
}

@media (max-width: 900px) {
  .compare-layout { grid-template-columns: 1fr; }
  .compare-sidebar { position: static; }
  .compare-hero-inner { flex-direction: column; }
  .compare-best-deal { width: 100%; }
}

@media (max-width: 640px) {
  .compare-card-inner { flex-direction: column; align-items: flex-start; }
  .compare-card-price-col { text-align: left; width: 100%; }
  .compare-book-btn { width: 100%; }
  .compare-card-platform { min-width: unset; }
  .compare-fields { flex-direction: column; }
  .compare-field, .compare-field-sm, .compare-field-dest { min-width: 100%; }
  .compare-search-wrap { position: static; }
  .compare-summary { gap: .75rem; }
}

/* ── Homepage promo banner ────────────────────────────────── */
.compare-promo-banner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  background: linear-gradient(135deg, #0f1c2e 0%, #162236 100%);
  border-radius: 24px;
  padding: 3rem;
  overflow: hidden;
  position: relative;
}

.compare-promo-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 30%, rgba(37,99,235,.15) 0%, transparent 60%),
              radial-gradient(ellipse at 20% 80%, rgba(245,158,11,.08) 0%, transparent 50%);
  pointer-events: none;
}

.compare-promo-left { position: relative; z-index: 1; }

.compare-promo-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .25rem .75rem;
  background: rgba(245,158,11,.15);
  border: 1px solid rgba(245,158,11,.3);
  border-radius: 999px;
  color: #fbbf24;
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: 1rem;
}

.compare-promo-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 700;
  color: white;
  line-height: 1.25;
  margin-bottom: .875rem;
}

.compare-promo-desc {
  color: rgba(255,255,255,.65);
  font-size: .9375rem;
  line-height: 1.65;
  margin-bottom: 1.25rem;
}

.compare-promo-platforms {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
}

.compare-promo-platform {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .25rem .6rem;
  border-radius: 8px;
  font-size: .75rem;
  font-weight: 700;
}

/* Demo box */
.compare-promo-right { position: relative; z-index: 1; }

.compare-promo-demo {
  background: rgba(255,255,255,.06);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 18px;
  padding: 1.5rem;
}

.compare-promo-demo-title {
  font-size: .8rem;
  font-weight: 700;
  color: rgba(255,255,255,.5);
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: 1rem;
}

.compare-promo-row {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .625rem .75rem;
  border-radius: 10px;
  margin-bottom: .4rem;
  background: rgba(255,255,255,.04);
  transition: background 150ms;
}

.compare-promo-row-best {
  background: rgba(245,158,11,.12);
  border: 1px solid rgba(245,158,11,.25);
}

.compare-promo-row-logo {
  width: 32px; height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.compare-promo-row-name {
  flex: 1;
  font-size: .8125rem;
  font-weight: 600;
  color: rgba(255,255,255,.85);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.compare-promo-row-price {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  font-weight: 700;
  color: white;
  white-space: nowrap;
}

.compare-promo-row-badge {
  padding: .15rem .5rem;
  background: #f59e0b;
  color: #0f1c2e;
  border-radius: 999px;
  font-size: .65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
  white-space: nowrap;
}

.compare-promo-see-all {
  display: block;
  text-align: center;
  margin-top: 1rem;
  padding: .6rem;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 10px;
  color: rgba(255,255,255,.8);
  font-size: .8125rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 150ms;
}

.compare-promo-see-all:hover {
  background: rgba(255,255,255,.14);
  color: white;
  text-decoration: none;
}

@media (max-width: 768px) {
  .compare-promo-banner {
    grid-template-columns: 1fr;
    padding: 2rem 1.5rem;
    gap: 2rem;
  }
}
