/* ===== MeinReisePortal — Visual System ===== */
:root {
  /* Primary blue — confident, trustworthy, slightly cool */
  --brand-700: #0b3d91;
  --brand-600: #1452c8;
  --brand-500: #2563d9;
  --brand-100: #e7eefb;
  --brand-50:  #f3f7fe;

  /* Warm yellow CTA */
  --cta-500: #f5b800;
  --cta-600: #e0a800;
  --cta-ink: #1a1a1a;

  /* Neutrals — slightly warm */
  --ink-900: #14181f;
  --ink-700: #2f3845;
  --ink-500: #5a6675;
  --ink-400: #8a94a3;
  --ink-300: #c4ccd6;
  --ink-200: #e3e7ee;
  --ink-100: #eef1f6;
  --ink-50:  #f6f7fa;
  --paper:   #ffffff;

  /* Trust green */
  --ok-500: #2f9e6e;
  --ok-50:  #e9f6f0;

  /* Shadows */
  --shadow-soft: 0 1px 2px rgba(20, 24, 31, 0.04), 0 4px 14px rgba(20, 24, 31, 0.06);
  --shadow-card: 0 1px 2px rgba(20, 24, 31, 0.05), 0 8px 24px rgba(20, 24, 31, 0.08);

  /* Radii */
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-pill: 999px;

  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }

/* Default sizing for inline SVG icons so they don't stretch in flex/grid containers */
svg { width: 16px; height: 16px; flex-shrink: 0; }
.trust-icon svg { width: 14px; height: 14px; }
.mrp-logo-mark svg { width: 14px; height: 14px; }
.h-headline svg, .concept-title svg { width: auto; height: auto; }

.mrp {
  width: 390px;
  height: 844px;
  background: var(--ink-50);
  font-family: 'Manrope', sans-serif;
  color: var(--ink-900);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

/* ===== Top Bar ===== */
.mrp-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px 12px;
  background: var(--paper);
  border-bottom: 1px solid var(--ink-100);
  flex-shrink: 0;
}
.mrp-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 17px;
  letter-spacing: -0.01em;
  color: var(--ink-900);
}
.mrp-logo-mark {
  width: 26px; height: 26px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--brand-600), var(--brand-700));
  display: grid; place-items: center;
  color: white; font-weight: 800; font-size: 14px;
}
.mrp-logo-mark svg { width: 14px; height: 14px; }
.mrp-menu {
  display: flex; gap: 14px;
  font-size: 13px; color: var(--ink-500); font-weight: 600;
}
.mrp-menu-icon {
  width: 32px; height: 32px;
  border-radius: 10px;
  display: grid; place-items: center;
  color: var(--ink-700);
}

/* ===== Buttons ===== */
.btn {
  border: 0;
  border-radius: var(--r-pill);
  padding: 14px 22px;
  font-size: 15px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: transform 0.05s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}
.btn:active { transform: scale(0.98); }
.btn-primary {
  background: var(--cta-500);
  color: var(--cta-ink);
  box-shadow: 0 1px 0 rgba(0,0,0,0.04), 0 4px 12px rgba(245, 184, 0, 0.35);
}
.btn-primary:hover { background: var(--cta-600); }
.btn-brand {
  background: var(--brand-600);
  color: white;
}
.btn-brand:hover { background: var(--brand-700); }
.btn-ghost {
  background: transparent;
  color: var(--brand-600);
  font-weight: 700;
}
.btn-outline {
  background: var(--paper);
  color: var(--ink-900);
  border: 1.5px solid var(--ink-200);
  font-weight: 600;
}
.btn-outline:hover { border-color: var(--ink-300); }
.btn-block { width: 100%; }

/* ===== Pills / Chips ===== */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--paper);
  border: 1.5px solid var(--ink-200);
  border-radius: var(--r-pill);
  padding: 9px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-700);
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
  transition: all 0.15s ease;
}
.chip:hover { border-color: var(--brand-500); color: var(--brand-600); background: var(--brand-50); }
.chip-active { background: var(--brand-600); color: white; border-color: var(--brand-600); }

/* ===== Trust Bar ===== */
.trust-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 14px 20px;
  background: var(--paper);
  border-top: 1px solid var(--ink-100);
}
.trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
  font-size: 10px;
  color: var(--ink-500);
  font-weight: 600;
  line-height: 1.2;
}
.trust-icon {
  width: 28px; height: 28px;
  border-radius: 8px;
  background: var(--brand-50);
  display: grid; place-items: center;
  color: var(--brand-600);
}
.trust-icon svg { width: 14px; height: 14px; }

/* ===== Cards ===== */
.card {
  background: var(--paper);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-soft);
}

/* ===== Chat ===== */
.chat-area {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--ink-50);
}
.chat-row { display: flex; gap: 8px; align-items: flex-end; }
.chat-row.user { justify-content: flex-end; }
.avatar {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-500), var(--brand-700));
  display: grid; place-items: center;
  color: white; font-weight: 800; font-size: 13px;
  flex-shrink: 0;
}
.bubble {
  max-width: 78%;
  padding: 12px 14px;
  border-radius: 18px;
  font-size: 14px;
  line-height: 1.45;
  color: var(--ink-900);
}
.bubble.bot {
  background: var(--paper);
  border-bottom-left-radius: 6px;
  box-shadow: var(--shadow-soft);
}
.bubble.user {
  background: var(--brand-600);
  color: white;
  border-bottom-right-radius: 6px;
}

.suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-left: 38px;
  margin-top: -2px;
}

.composer {
  background: var(--paper);
  border-top: 1px solid var(--ink-100);
  padding: 10px 14px 14px;
  flex-shrink: 0;
}
.composer-field {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--ink-50);
  border: 1.5px solid var(--ink-200);
  border-radius: var(--r-pill);
  padding: 4px 6px 4px 16px;
}
.composer-field input {
  flex: 1; border: 0; background: transparent; outline: none;
  font-family: inherit; font-size: 14px; color: var(--ink-900); padding: 10px 0;
}
.composer-field input::placeholder { color: var(--ink-400); }
.icon-btn {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 0;
  background: var(--brand-600);
  color: white;
  display: grid; place-items: center;
  cursor: pointer;
  flex-shrink: 0;
}
.icon-btn svg { width: 16px; height: 16px; }
.mrp-menu-icon svg { width: 18px; height: 18px; }
.icon-btn.ghost { background: transparent; color: var(--ink-500); }

/* Context card */
.ctx-card {
  background: white;
  border: 1px solid var(--ink-200);
  border-radius: var(--r-md);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.ctx-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--brand-600);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
  display: flex; align-items: center; gap: 6px;
}
.ctx-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.ctx-pill {
  background: var(--ink-100);
  color: var(--ink-700);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--r-pill);
}

/* Concept cards */
.concept {
  background: var(--paper);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--ink-100);
}
.concept-photo {
  height: 130px;
  position: relative;
  background-size: cover;
  background-position: center;
}
.concept-badge {
  position: absolute;
  top: 12px; left: 12px;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(6px);
  color: var(--ink-900);
  padding: 5px 10px;
  border-radius: var(--r-pill);
  font-size: 11px;
  font-weight: 700;
}
.concept-body { padding: 14px 16px 16px; }
.concept-title {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 4px;
  color: var(--ink-900);
}
.concept-sub {
  font-size: 12.5px;
  color: var(--ink-500);
  line-height: 1.4;
  margin-bottom: 10px;
}
.concept-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 10px;
}
.concept-price-amount {
  font-size: 18px; font-weight: 800; color: var(--ink-900);
}
.concept-price-meta { font-size: 11.5px; color: var(--ink-500); font-weight: 600; }
.concept-highlights {
  list-style: none;
  padding: 0;
  margin: 0 0 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.concept-highlights li {
  font-size: 12.5px;
  color: var(--ink-700);
  display: flex;
  gap: 8px;
  line-height: 1.4;
}
.concept-highlights li::before {
  content: "";
  flex-shrink: 0;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--brand-600);
  margin-top: 8px;
}

/* Briefing list */
.briefing-list {
  display: flex;
  flex-direction: column;
}
.briefing-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--ink-100);
  font-size: 13.5px;
}
.briefing-row:last-child { border-bottom: 0; }
.briefing-key {
  color: var(--ink-500);
  font-weight: 600;
}
.briefing-val {
  color: var(--ink-900);
  font-weight: 700;
  text-align: right;
  max-width: 60%;
}

/* Filter sidebar (mobile uses top filter bar style) */
.filter-banner {
  background: var(--brand-50);
  border: 1px solid var(--brand-100);
  border-radius: var(--r-md);
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
  margin: 12px 16px 8px;
}
.filter-banner-text { color: var(--ink-700); line-height: 1.35; }
.filter-banner-text strong { color: var(--brand-700); }
.filter-banner button {
  background: transparent;
  border: 0;
  color: var(--brand-600);
  font-weight: 700;
  font-size: 12px;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
}

.filter-section {
  background: var(--paper);
  border-bottom: 1px solid var(--ink-100);
  padding: 14px 16px;
}
.filter-section h4 {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--ink-500);
  margin: 0 0 10px;
  letter-spacing: 0.06em;
}
.filter-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13.5px;
  padding: 4px 0;
  color: var(--ink-900);
}
.filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
  background: var(--brand-50);
  color: var(--brand-700);
  padding: 3px 8px;
  border-radius: var(--r-pill);
  border: 1px solid var(--brand-100);
}

/* Hotel result card */
.hotel-card {
  display: flex;
  gap: 12px;
  background: var(--paper);
  border-radius: var(--r-md);
  padding: 12px;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--ink-100);
}
.hotel-thumb {
  width: 88px; height: 88px;
  border-radius: var(--r-sm);
  flex-shrink: 0;
  background-size: cover;
  background-position: center;
}
.hotel-body { flex: 1; min-width: 0; }
.hotel-name {
  font-size: 14px;
  font-weight: 800;
  color: var(--ink-900);
  margin-bottom: 2px;
  letter-spacing: -0.01em;
}
.hotel-loc {
  font-size: 11.5px;
  color: var(--ink-500);
  margin-bottom: 6px;
}
.hotel-rating {
  display: flex; align-items: center; gap: 6px;
  font-size: 12px;
  margin-bottom: 6px;
}
.rating-pill {
  background: var(--ok-50);
  color: var(--ok-500);
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 6px;
  font-size: 11.5px;
}
.hotel-price {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}
.hotel-price-amount {
  font-size: 16px;
  font-weight: 800;
  color: var(--ink-900);
}
.hotel-price-meta {
  font-size: 11px;
  color: var(--ink-500);
}

/* Slider */
.slider-wrap { display: flex; flex-direction: column; gap: 8px; }
.slider-vals {
  display: flex; justify-content: space-between;
  font-size: 12px; color: var(--ink-500); font-weight: 600;
}
.slider-track {
  position: relative;
  height: 6px;
  background: var(--ink-200);
  border-radius: 999px;
}
.slider-fill {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  background: var(--brand-600);
  border-radius: 999px;
}
.slider-thumb {
  position: absolute;
  top: 50%;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: white;
  border: 2px solid var(--brand-600);
  transform: translate(-50%, -50%);
  box-shadow: 0 2px 6px rgba(20,24,31,0.18);
}

/* Misc */
.divider {
  height: 1px;
  background: var(--ink-100);
  margin: 16px 0;
}
.h-headline {
  font-size: 26px;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink-900);
  text-wrap: balance;
}
.h-sub {
  font-size: 14.5px;
  line-height: 1.45;
  color: var(--ink-500);
  text-wrap: pretty;
}
.scroll-y {
  flex: 1;
  overflow-y: auto;
}

/* hide scrollbars in mobile frames */
.scroll-y::-webkit-scrollbar,
.chat-area::-webkit-scrollbar { width: 0; height: 0; display: none; }
