/* ── Hotel Intelligence — Notion-inspired design ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #FFFFFF;
  --bg-secondary: #F7F7F5;
  --bg-hover: #F1F1EF;
  --bg-active: #EDECE9;
  --text: #37352F;
  --text-secondary: #787774;
  --text-tertiary: #ACABA9;
  --accent: #2EAADC;
  --accent-bg: rgba(46,170,220,0.08);
  --accent-hover: #2697C4;
  --red: #EB5757;
  --red-bg: rgba(235,87,87,0.08);
  --orange: #D9730D;
  --orange-bg: rgba(217,115,13,0.08);
  --gray: #9B9A97;
  --gray-bg: rgba(155,154,151,0.08);
  --green: #0F7B6C;
  --green-bg: rgba(15,123,108,0.08);
  --border: #E9E9E7;
  --divider: #EBEBEA;
  --radius: 6px;
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans', Helvetica, Arial, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── Header ── */
.header {
  background: var(--bg);
  border-bottom: 1px solid var(--divider);
  position: sticky;
  top: 0;
  z-index: 10;
}
.header-inner {
  max-width: 720px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.header h1 { font-size: 15px; font-weight: 500; color: var(--text); letter-spacing: -0.01em; }
.badge { font-size: 13px; font-weight: 500; color: var(--accent); background: var(--accent-bg); padding: 2px 8px; border-radius: var(--radius); }

/* ── Layout ── */
.section { max-width: 720px; margin: 0 auto; padding: 6px 20px; }

/* ── Page Title ── */
.page-icon { font-size: 40px; margin-bottom: 8px; line-height: 1; }
.page-title { font-size: 32px; font-weight: 700; color: var(--text); letter-spacing: -0.02em; line-height: 1.2; margin-bottom: 4px; }
.page-subtitle { font-size: 15px; color: var(--text-secondary); margin-bottom: 20px; }

/* ── Card ── */
.card { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px; }
.card h2 { font-size: 13px; font-weight: 600; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 12px; }
.card h3 { font-size: 16px; font-weight: 600; color: var(--text); }
.card-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; gap: 8px; flex-wrap: wrap; }

/* ── Hotel List ── */
.hotel-list { display: flex; flex-direction: column; gap: 2px; }
.hotel-item { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px; border-radius: var(--radius); cursor: pointer; transition: background 120ms ease; }
.hotel-item:hover { background: var(--bg-hover); }
.hotel-item.selected { background: var(--accent-bg); }
.hotel-item-name { font-size: 15px; font-weight: 500; color: var(--text); }
.hotel-item-meta { font-size: 14px; color: var(--text-secondary); margin-top: 1px; }
.hotel-item-arrow { color: var(--text-tertiary); font-size: 18px; }

/* ── Hotel Info ── */
.hotel-info-card { border: none; background: var(--bg-secondary); border-radius: var(--radius); }
.hotel-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.hotel-header h2 { font-size: 20px; font-weight: 700; color: var(--text); text-transform: none; letter-spacing: -0.01em; margin-bottom: 2px; }
.hotel-stats { display: flex; gap: 20px; flex-shrink: 0; }
.stat { display: flex; flex-direction: column; align-items: center; }
.stat-value { font-size: 24px; font-weight: 700; color: var(--text); }
.stat-label { font-size: 13px; color: var(--text-secondary); }

/* ── Tabs ── */
.tabs { display: flex; gap: 0; border-bottom: 1px solid var(--divider); margin-bottom: 4px; }
.tab { padding: 8px 16px; border: none; background: transparent; font-size: 15px; font-weight: 500; font-family: var(--font); color: var(--text-secondary); cursor: pointer; transition: color 120ms ease; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tab.active { color: var(--text); border-bottom-color: var(--text); }
.tab:not(.active):hover { color: var(--text); background: var(--bg-hover); }

/* ── Buttons ── */
.btn { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border: none; border-radius: var(--radius); font-size: 15px; font-weight: 500; font-family: var(--font); cursor: pointer; transition: background 120ms ease; white-space: nowrap; }
.btn-primary { background: var(--accent); color: #FFF; }
.btn-primary:hover { background: var(--accent-hover); }
.btn-primary:disabled { opacity: 0.4; cursor: not-allowed; }
.btn svg { width: 15px; height: 15px; }

/* ── Pain Points ── */
.pain-point { padding: 14px 0; border-bottom: 1px solid var(--divider); }
.pain-point:last-child { border-bottom: none; }
.pp-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; margin-bottom: 4px; }
.pp-title { font-size: 16px; font-weight: 600; color: var(--text); }
.pp-severity { font-size: 13px; font-weight: 500; padding: 2px 8px; border-radius: var(--radius); flex-shrink: 0; white-space: nowrap; }
.pp-severity.critical { color: var(--red); background: var(--red-bg); }
.pp-severity.major { color: var(--orange); background: var(--orange-bg); }
.pp-severity.minor { color: var(--gray); background: var(--gray-bg); }
.pp-description { font-size: 15px; color: var(--text-secondary); margin-bottom: 8px; line-height: 1.5; }
.pp-meta { display: flex; gap: 16px; font-size: 14px; color: var(--text-tertiary); margin-bottom: 8px; align-items: center; }
.pp-meta span { display: inline-flex; align-items: center; gap: 4px; }
.pp-meta svg { width: 14px; height: 14px; }
.pp-quotes { margin-bottom: 10px; }
.pp-quote { font-size: 15px; color: var(--text-secondary); font-style: italic; padding: 8px 14px; border-left: 3px solid var(--divider); margin-bottom: 4px; line-height: 1.5; }
.pp-solution { background: var(--green-bg); border-radius: var(--radius); padding: 12px 14px; }
.pp-solution-label { font-size: 12px; font-weight: 600; color: var(--green); text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 4px; }
.pp-solution-product { font-size: 15px; font-weight: 600; color: var(--green); margin-bottom: 2px; }
.pp-solution-desc { font-size: 14px; color: var(--text-secondary); line-height: 1.5; }
.pp-no-solution { font-size: 14px; color: var(--text-tertiary); font-style: italic; }

/* ── Reviews ── */
.review-item { padding: 14px 0; border-bottom: 1px solid var(--divider); }
.review-item:last-child { border-bottom: none; }
.review-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.review-rating { font-weight: 600; font-size: 15px; color: var(--orange); letter-spacing: 1px; }
.review-rating.low { color: var(--red); }
.review-rating.mid { color: var(--orange); }
.review-date { font-size: 14px; color: var(--text-tertiary); }
.review-text { font-size: 15px; color: var(--text-secondary); line-height: 1.6; }
.review-travel { font-size: 14px; color: var(--text-tertiary); margin-top: 6px; display: flex; align-items: center; gap: 4px; }
.review-travel svg { width: 14px; height: 14px; }

/* ── Select ── */
.select { padding: 6px 10px; border: 1px solid var(--border); border-radius: var(--radius); font-size: 15px; font-family: var(--font); background: var(--bg); color: var(--text); cursor: pointer; }
.select:focus { outline: none; border-color: var(--accent); }

/* ── Modal ── */
.modal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(15,15,15,0.6); }
.modal-content { position: relative; background: var(--bg); border-radius: 8px; padding: 32px 28px; text-align: center; max-width: 340px; width: 90%; box-shadow: 0 8px 40px rgba(0,0,0,0.12), 0 0 0 1px rgba(0,0,0,0.06); }
.modal-icon { margin-bottom: 12px; }
.modal-icon svg { width: 36px; height: 36px; color: var(--accent); }
.modal-content h3 { font-size: 16px; font-weight: 600; margin-bottom: 6px; }
.modal-content p { font-size: 15px; color: var(--text-secondary); margin-bottom: 16px; }
.progress-bar { height: 3px; background: var(--divider); border-radius: 2px; overflow: hidden; }
.progress-fill { height: 100%; background: var(--accent); border-radius: 2px; width: 0%; animation: progress 30s ease-out forwards; }
@keyframes progress { 0% { width: 5%; } 30% { width: 40%; } 60% { width: 65%; } 90% { width: 85%; } 100% { width: 92%; } }

/* ── Summary ── */
.summary-bar { display: flex; gap: 8px; padding: 0 0 12px; margin-bottom: 4px; border-bottom: 1px solid var(--divider); flex-wrap: wrap; }
.summary-chip { font-size: 14px; font-weight: 500; padding: 2px 10px; border-radius: var(--radius); }
.summary-chip.critical { color: var(--red); background: var(--red-bg); }
.summary-chip.major { color: var(--orange); background: var(--orange-bg); }
.summary-chip.minor { color: var(--gray); background: var(--gray-bg); }
.summary-chip.solved { color: var(--green); background: var(--green-bg); }

/* ── Utilities ── */
.hidden { display: none !important; }
.text-secondary { color: var(--text-secondary); font-size: 15px; }
.loading { text-align: center; padding: 32px; color: var(--text-tertiary); font-size: 15px; }
.empty-state { text-align: center; padding: 40px 16px; color: var(--text-tertiary); font-size: 15px; }
.filter-row { display: flex; gap: 8px; }
