/* ===========================
   TicketScout — Main Styles
   =========================== */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  color: #1a1a1a;
  background: #ffffff;
  line-height: 1.6;
}

a {
  color: #1a6fc4;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* ===========================
   Navigation
   =========================== */

.navbar {
  background: #ffffff;
  border-bottom: 1px solid #e0e0e0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 20px;
  font-weight: 600;
  color: #1a6fc4;
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 24px;
}

.nav-links a {
  font-size: 14px;
  color: #555;
  text-decoration: none;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: #1a6fc4;
}

/* ===========================
   Hero
   =========================== */

.hero {
  background: #e8f2fc;
  padding: 60px 24px 48px;
  text-align: center;
}

.hero-inner {
  max-width: 680px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 36px;
  font-weight: 600;
  color: #0c447c;
  margin-bottom: 12px;
  line-height: 1.25;
}

.hero p {
  font-size: 17px;
  color: #185fa5;
  margin-bottom: 32px;
}

/* ===========================
   Search Bar
   =========================== */

.search-bar {
  background: #ffffff;
  border: 1px solid #c8dff5;
  border-radius: 8px;
  display: flex;
  align-items: center;
  padding: 0 0 0 14px;
  gap: 10px;
  max-width: 580px;
  margin: 0 auto 20px;
  box-shadow: 0 2px 8px rgba(26,111,196,0.08);
}

.search-bar input {
  flex: 1;
  border: none;
  padding: 14px 0;
  font-size: 15px;
  font-family: 'Inter', sans-serif;
  color: #1a1a1a;
  outline: none;
  background: transparent;
}

.search-bar input::placeholder {
  color: #aaa;
}

.search-bar button {
  background: #1a6fc4;
  color: #ffffff;
  border: none;
  padding: 14px 24px;
  font-size: 15px;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  cursor: pointer;
  border-radius: 0 7px 7px 0;
  transition: background 0.2s;
}

.search-bar button:hover {
  background: #155da0;
}

/* ===========================
   Category Pills
   =========================== */

.cat-row {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.cat-pill {
  background: #ffffff;
  border: 1px solid #b0d0f0;
  border-radius: 20px;
  padding: 7px 18px;
  font-size: 13px;
  font-family: 'Inter', sans-serif;
  color: #185fa5;
  cursor: pointer;
  transition: all 0.2s;
}

.cat-pill:hover {
  background: #d0e8f8;
}

.cat-pill.active {
  background: #1a6fc4;
  color: #ffffff;
  border-color: #1a6fc4;
}

/* ===========================
   Trust Bar
   =========================== */

.trust-bar {
  display: flex;
  justify-content: center;
  gap: 32px;
  padding: 20px 24px;
  border-top: 1px solid #e8f2fc;
  border-bottom: 1px solid #e8f2fc;
  background: #f7fbff;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #444;
  font-weight: 500;
}

/* ===========================
   Events Section
   =========================== */

.section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 44px 24px;
}

.section-title {
  font-size: 22px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 24px;
}

.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}

.loading {
  color: #888;
  font-size: 15px;
  padding: 20px 0;
}

.error-msg {
  color: #c0392b;
  font-size: 15px;
  padding: 20px 0;
}

/* ===========================
   Event Cards
   =========================== */

.event-card {
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
  display: block;
  color: inherit;
}

.event-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(26,111,196,0.12);
  border-color: #b0d0f0;
}

.event-img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  background: #e8f2fc;
  display: block;
}

.event-img-placeholder {
  width: 100%;
  height: 140px;
  background: #e8f2fc;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
}

.event-body {
  padding: 14px;
}

.event-name {
  font-size: 14px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 4px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.event-meta {
  font-size: 12px;
  color: #777;
  margin-bottom: 10px;
  line-height: 1.5;
}

.event-price {
  font-size: 14px;
  color: #1a6fc4;
  font-weight: 600;
}

.compare-badge {
  display: inline-block;
  background: #e8f2fc;
  color: #185fa5;
  font-size: 11px;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: 20px;
  margin-top: 6px;
}

/* ===========================
   How It Works
   =========================== */

.how-section {
  background: #f7fbff;
  padding: 52px 24px;
  border-top: 1px solid #e0ecf8;
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  max-width: 900px;
  margin: 28px auto 0;
}

.step {
  text-align: center;
  padding: 24px 16px;
}

.step-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #e8f2fc;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.step-title {
  font-size: 15px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 8px;
}

.step-desc {
  font-size: 13px;
  color: #666;
  line-height: 1.6;
}

/* ===========================
   Footer
   =========================== */

.footer {
  background: #f0f4f8;
  border-top: 1px solid #e0e0e0;
  padding: 32px 24px;
  text-align: center;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.footer p {
  font-size: 13px;
  color: #777;
}

.footer a {
  color: #1a6fc4;
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}

/* ===========================
   Responsive
   =========================== */

@media (max-width: 600px) {
  .hero h1 {
    font-size: 26px;
  }

  .nav-links {
    display: none;
  }

  .trust-bar {
    gap: 16px;
  }

  .events-grid {
    grid-template-columns: 1fr 1fr;
  }
}
/* ===========================
   View breadcrumb (back links for search/artist/event views)
   =========================== */

.view-breadcrumb {
  margin-bottom: 12px;
  font-size: 13px;
}

.view-breadcrumb a {
  color: #1a6fc4;
  text-decoration: none;
}

.view-breadcrumb a:hover {
  text-decoration: underline;
}

/* ===========================
   Artist picker (shown when a search matches multiple artists)
   =========================== */

.picker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px;
}

.picker-card {
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
}

.picker-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(26,111,196,0.12);
  border-color: #b0d0f0;
}

.picker-img {
  width: 100%;
  height: 110px;
  object-fit: cover;
  display: block;
  background: #e8f2fc;
}

.picker-img-placeholder {
  width: 100%;
  height: 110px;
  background: #e8f2fc;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
}

.picker-name {
  font-size: 14px;
  font-weight: 600;
  color: #1a1a1a;
  padding: 12px 10px 2px;
}

.picker-type {
  font-size: 12px;
  color: #888;
  padding-bottom: 12px;
}

/* ===========================
   Event detail page
   =========================== */

.detail-grid {
  display: block;
}

.detail-card {
  display: flex;
  gap: 20px;
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 24px;
}

.detail-img {
  width: 260px;
  height: 180px;
  object-fit: cover;
  flex-shrink: 0;
}

.detail-body {
  padding: 20px;
}

.detail-name {
  font-size: 20px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 10px;
}

.detail-meta {
  font-size: 14px;
  color: #555;
  line-height: 1.6;
}

@media (max-width: 600px) {
  .detail-card {
    flex-direction: column;
  }
  .detail-img {
    width: 100%;
    height: 160px;
  }
}

/* ===========================
   Inline price comparison block (on event detail page)
   =========================== */

.compare-block {
  background: #ffffff;
  border: 1px solid #c8dff5;
  border-radius: 12px;
  padding: 0;
  max-width: 600px;
  overflow: hidden;
}

.compare-title {
  font-size: 14px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 14px;
}

.compare-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #eee;
}

.compare-source {
  font-size: 13px;
  color: #1a1a1a;
  font-weight: 500;
}

.compare-right {
  text-align: right;
}

.price-label {
  font-size: 14px;
  font-weight: 600;
  color: #1a6fc4;
}

.compare-buy {
  font-size: 11px;
  color: #1a6fc4;
}

.compare-loading {
  font-size: 12px;
  color: #aaa;
  padding: 8px 0;
}

.compare-footnote {
  margin-top: 14px;
  font-size: 11px;
  color: #aaa;
  text-align: center;
}

.best-price-badge {
  background: #e8f2fc;
  color: #185fa5;
  font-size: 10px;
  font-weight: 500;
  padding: 2px 8px;
  border-radius: 20px;
  margin-left: 6px;
  vertical-align: middle;
  display: inline-block;
}

/* Tribute act label in artist picker */
.picker-tribute {
  color: #999;
  font-style: italic;
}

/* ===========================
   Search autocomplete suggestions
   =========================== */
.suggestion-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  cursor: pointer;
  transition: background 0.15s;
  border-bottom: 1px solid #f0f0f0;
}

.suggestion-item:last-child {
  border-bottom: none;
}

.suggestion-item:hover,
.suggestion-item.active {
  background: #f0f7ff;
}

/* Did you mean suggestion */
.no-results-msg {
  padding: 24px;
  text-align: center;
  color: #555;
  font-size: 15px;
  line-height: 1.8;
}

.suggestion-link {
  color: #1a6fc4;
  font-weight: 600;
  text-decoration: none;
}

.suggestion-link:hover {
  text-decoration: underline;
}


/* ── Hotel card (event detail page) ────────────────────────────── */
.hotel-card {
  background: #ffffff;
  border: 1px solid #c8dff5;
  border-radius: 12px;
  padding: 20px 24px;
  margin-top: 16px;
}

.hotel-card-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 12px;
}

.hotel-card-title svg {
  color: #1a6fc4;
  flex-shrink: 0;
}

.hotel-card-date {
  font-size: 12px;
  color: #888;
  margin-bottom: 14px;
}

.hotel-card-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.hotel-btn {
  display: inline-block;
  padding: 9px 18px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s;
}

.hotel-btn--primary {
  background: #1a6fc4;
  color: #ffffff;
}

.hotel-btn--primary:hover {
  background: #155da0;
}

.hotel-btn--secondary {
  background: #f0f4ff;
  color: #1a6fc4;
  border: 1px solid #c8dff5;
}

.hotel-btn--secondary:hover {
  background: #e0ecff;
}

.hotel-card-note {
  font-size: 11px;
  color: #999;
  line-height: 1.5;
}

/* ── Price history component (event pages; entity pages later) ─────────── */
.ts-pricehist {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  padding: 18px 20px 14px;
  margin-bottom: 24px;
}
.ts-ph-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 2px; }
.ts-ph-title { font-size: 15px; font-weight: 600; color: #0c2d5a; margin: 0; }
.ts-ph-scope { font-size: 12px; color: #888; font-weight: 400; }
.ts-ph-figs { display: flex; align-items: baseline; gap: 16px; margin: 10px 0 14px; flex-wrap: wrap; }
.ts-ph-current { font-size: 26px; font-weight: 700; color: #0c2d5a; line-height: 1; letter-spacing: -0.5px; }
.ts-ph-current .cur { font-size: 16px; font-weight: 600; vertical-align: 2px; margin-right: 1px; }
.ts-ph-trend { font-size: 13px; font-weight: 600; padding: 3px 9px; border-radius: 20px; display: inline-flex; align-items: center; gap: 4px; }
.ts-ph-trend.up   { background: #fdecea; color: #c0392b; }
.ts-ph-trend.down { background: #e8f6ee; color: #1e8449; }
.ts-ph-trend.flat { background: #eef1f4; color: #5a6b7b; }
.ts-ph-low { font-size: 13px; color: #666; }
.ts-ph-low b { color: #0c2d5a; font-weight: 600; }
.ts-ph-chart { width: 100%; display: block; height: auto; }
.ts-ph-foot { font-size: 11.5px; color: #9aa4ae; margin-top: 8px; line-height: 1.5; }
.ts-ph-foot .anchor { color: #666; }
.ts-ph-sparse .ts-ph-current { font-size: 22px; }
