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

:root {
  --brand-primary: #0b5259;
  --brand-bg: #ffefda;
  --brand-table-bg: #ffca9c;
  --brand-accent: #e4754d;
  --text-dark: #2e2e2e;
  --white: #fff;
  --border: rgba(11, 82, 89, 0.15);
  --card-shadow: 0 2px 8px rgba(11, 82, 89, 0.08);
}

html,
body {
  overflow-x: hidden;
  background: var(--brand-bg);
  color: var(--text-dark);
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

/* ── BANNER ── */
.banner {
  background: var(--brand-primary);
  color: var(--white);
  padding: 0 16px;
  display: flex;
  align-items: center;
  height: 52px;
}
.banner-logo {
  font-family: "Dosis", sans-serif;
  font-weight: 700;
  font-size: 1.45rem;
  letter-spacing: 0.02em;
  color: var(--white);
  text-decoration: none;
  display: flex;
  align-items: center;
}
#fff-icon {
  height: 32px;
  width: auto;
  margin-right: 8px;
  margin-left: 10px;
  background-color: var(--brand-bg);
  border-radius: 23px;
}

/* ── PAGE HEADER ── */
.page-header {
  background: var(--brand-primary);
  color: var(--white);
  padding: 0 16px 24px;
}
.page-header h1 {
  font-family: "Dosis", sans-serif;
  font-size: 1.7rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  margin-bottom: 4px;
}
.page-header p {
  font-size: 0.9rem;
  opacity: 0.8;
  font-weight: 300;
  font-family: "Dosis", sans-serif;
}

/* ── FILTER TABS ── */
.filter-bar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 0 16px;
  display: flex;
  overflow-x: auto;
  scrollbar-width: none;
  position: sticky;
  top: 0;
  z-index: 10;
}
.filter-bar::-webkit-scrollbar {
  display: none;
}
.filter-tab {
  font-family: "Dosis", sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  padding: 12px 14px;
  border: none;
  background: none;
  color: var(--brand-primary);
  opacity: 0.55;
  cursor: pointer;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition:
    opacity 0.15s,
    border-color 0.15s;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.filter-tab.active,
.filter-tab:hover {
  opacity: 1;
  border-bottom-color: var(--brand-primary);
}
.filter-tab.active {
  border-bottom-color: var(--brand-accent);
}

/* ── MAIN ── */
.main {
  max-width: 960px;
  margin: 0 auto;
  padding: 20px 16px 48px;
}

/* ── SECTION LABEL ── */
h2.section-label {
  font-family: "Playfair Display", serif;
  font-weight: 600;
  font-size: 1.3rem;
  color: var(--brand-primary);
  margin: 32px 0 12px;
  display: flex;
  align-items: center;
  gap: 12px;
}
h2.section-label::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ── FEATURED CARD ── */
.card-featured {
  background: var(--white);
  margin-bottom: 10px;
  box-shadow: var(--card-shadow);
  text-decoration: none;
  display: block;
  transition: background 0.15s;
  overflow: hidden;
}
.card-featured:hover {
  background: #fff8f0;
}
.card-featured-thumb {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
  background: var(--brand-table-bg);
}
.card-featured-body {
  padding: 14px 16px 16px;
}
.card-featured .tag {
  display: inline-block;
  font-family: "Dosis", sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--brand-table-bg);
  color: var(--brand-primary);
  padding: 2px 8px;
  border-radius: 2px;
  margin-bottom: 8px;
}
.card-featured h3 {
  font-family: "Dosis", sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--brand-primary);
  line-height: 1.35;
  margin-bottom: 6px;
}
.card-featured .desc {
  font-size: 0.85rem;
  color: var(--text-dark);
  opacity: 0.75;
  margin-bottom: 8px;
  line-height: 1.5;
}
.card-featured .meta {
  font-size: 0.8rem;
  color: var(--text-dark);
  opacity: 0.55;
}
.card-featured .meta .source {
  font-weight: 500;
  opacity: 0.9;
  color: var(--brand-primary);
}

/* ── NEWS LIST ── */
.news-list {
  margin-bottom: 32px;
}
.news-item {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-direction: column-reverse;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
  margin: 10px 0;
  padding: 7px;
  background: white;
}
.news-item:first-child {
  border-top: 1px solid var(--border);
}
.news-item:hover .news-headline {
  text-decoration: underline;
  text-decoration-color: var(--brand-primary);
}
.news-item-thumb {
  flex-shrink: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: var(--brand-table-bg);
  border-radius: 4%;
}
.img-default {
  filter: grayscale(29.1%);
  display: none;
  background: #fff;
}
.news-item-text {
  flex: 1;
  min-width: 0;
  padding: 10px 16px;
}
h3.news-headline {
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-dark);
  line-height: 1.45;
}
.news-meta {
  font-size: 0.78rem;
  color: var(--text-dark);
  opacity: 0.5;
  margin-top: 3px;
}
.news-meta .source {
  color: var(--brand-primary);
  opacity: 1;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.source-favicon {
  width: 12px;
  height: 12px;
  object-fit: contain;
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}
.news-cat {
  font-weight: 600;
  color: var(--brand-primary);
  opacity: 0.7;
}
.news-cat.disruption,
.news-cat.disruptions {
  color: #b03020;
  opacity: 1;
}
.news-cat.weather {
  color: #4a7010;
  opacity: 1;
}
.news-cat.routes {
  color: #0b5259;
  opacity: 1;
}

/* ── EMPTY STATE ── */
.empty-state {
  padding: 20px;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-dark);
  opacity: 0.45;
  background: white;
  border: 1px solid var(--border);
}

/* ── PRICE WATCH ── */
.price-watch-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-bottom: 32px;
}
.price-card {
  background: var(--white);
  padding: 16px;
  box-shadow: var(--card-shadow);
}
.price-card-title {
  font-family: "Dosis", sans-serif;
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--brand-primary);
  margin-bottom: 2px;
}
.price-card-subtitle {
  font-size: 0.72rem;
  color: var(--text-dark);
  opacity: 0.5;
  margin-bottom: 10px;
}
.price-card-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 8px;
}
.pw-btn {
  font-family: "Dosis", sans-serif;
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  padding: 3px 8px;
  border: 1.5px solid var(--brand-primary);
  border-radius: 2px;
  cursor: pointer;
  background: none;
  color: var(--brand-primary);
  transition:
    background 0.15s,
    color 0.15s;
}
.pw-btn.active {
  background: var(--brand-primary);
  color: var(--white);
}
.pw-pair-btn {
  font-family: "Dosis", sans-serif;
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.03em;
  padding: 3px 8px;
  border: 1.5px solid var(--brand-table-bg);
  border-radius: 2px;
  cursor: pointer;
  background: none;
  color: var(--brand-primary);
  transition:
    background 0.15s,
    color 0.15s;
}
.pw-pair-btn.active {
  background: var(--brand-table-bg);
  color: var(--brand-primary);
}
.price-note {
  font-size: 0.68rem;
  color: var(--text-dark);
  opacity: 0.4;
  margin-top: 6px;
}

/* ── LOAD MORE ── */
.load-more {
  display: block;
  width: 100%;
  padding: 13px;
  margin-top: 8px;
  border: 1.5px solid var(--brand-primary);
  font-family: "Dosis", sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    background 0.15s,
    color 0.15s;
  background: var(--brand-primary);
  color: var(--white);
}
.load-more:hover:not(:disabled) {
  color: var(--brand-primary);
  background: none;
}
.load-more:disabled {
  opacity: 0.45;
  cursor: default;
}

/* ── FOOTER NOTE ── */
.footer-note {
  margin-top: 40px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: 0.78rem;
  color: var(--text-dark);
  opacity: 0.45;
  text-align: center;
}

@media (min-width: 768px) {
  .page-header {
    padding: 0 24px 32px;
  }
  .page-header h1 {
    font-size: 2.1rem;
  }
  .main {
    padding: 28px 24px 64px;
  }
  .card-featured h3 {
    font-size: 1.3rem;
  }
  .card-featured-thumb {
    height: 200px;
  }
  .top-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .top-grid .card-featured {
    margin-bottom: 0;
  }
  .price-watch-grid {
    grid-template-columns: 1fr 1fr;
  }
  .news-item-thumb {
    width: 72px;
    height: 52px;
  }
  .news-item {
    flex-direction: row-reverse;
  }
}
@media (min-width: 1280px) {
  .main {
    padding: 36px 32px 80px;
  }
}
