/* eatshub.food — Unified Stylesheet (brand: deep green / warm gold / off-white) */
:root {
  --primary: #24573a;
  --primary-dark: #1b422c;
  --accent: #b98a3b;
  --accent-soft: #f3e9d7;
  --bg: #faf9f5;
  --text: #22302a;
  --muted: #66756c;
  --card-bg: #ffffff;
  --border: #e3e7e1;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.7;
  max-width: 1080px;
  margin: 0 auto;
  padding: 24px 20px;
  font-size: 16px;
}

/* ===== Site header + top nav ===== */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  border-bottom: 2px solid var(--primary);
  padding-bottom: 14px;
  margin-bottom: 28px;
}

.brand {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--primary);
  text-decoration: none;
}

.brand span {
  color: var(--accent);
}

.top-nav {
  display: flex;
  gap: 20px;
}

.top-nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 4px 2px;
  border-bottom: 2px solid transparent;
}

.top-nav a:hover {
  color: var(--primary);
}

.top-nav a.active {
  color: var(--primary);
  border-bottom-color: var(--accent);
}

/* ===== Article page ===== */
.article-page {
  max-width: 760px;
  margin: 0 auto;
}

.article-head {
  border-bottom: 1px solid var(--border);
  padding-bottom: 20px;
  margin-bottom: 28px;
}

.article-head h1 {
  font-size: 2.1rem;
  font-weight: 800;
  line-height: 1.25;
  color: var(--primary-dark);
  margin-bottom: 12px;
}

.tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tag-chip {
  display: inline-block;
  background: var(--accent-soft);
  color: var(--primary-dark);
  border: 1px solid var(--border);
  padding: 3px 12px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
}

.tag-chip:hover {
  background: var(--primary);
  color: #fff;
}

/* ===== Article body ===== */
article {
  margin-bottom: 40px;
}

h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-top: 40px;
  margin-bottom: 16px;
}

h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-top: 24px;
  margin-bottom: 12px;
}

p {
  margin-bottom: 16px;
}

ul {
  margin: 16px 0 16px 24px;
}

li {
  margin-bottom: 8px;
}

a {
  color: var(--primary);
}

a:hover {
  color: var(--primary-dark);
}

.affiliate-disclosure {
  font-size: 0.875rem;
  color: var(--muted);
  font-style: italic;
}

/* ===== Affiliate hotel cards ===== */
.affiliate-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.hotel-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px;
  transition: box-shadow 0.2s, transform 0.2s;
}

.hotel-card:hover {
  box-shadow: 0 4px 14px rgba(27, 66, 44, 0.10);
  transform: translateY(-2px);
}

.hotel-card .rating {
  color: var(--accent);
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 12px;
}

.btn-primary {
  display: inline-block;
  background: var(--primary);
  color: #ffffff;
  padding: 10px 18px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.875rem;
  transition: background 0.2s;
}

.btn-primary:hover {
  background: var(--primary-dark);
  color: #fff;
}

article img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 24px 0;
}

figure {
  margin: 24px 0;
}

figcaption {
  font-size: 0.875rem;
  color: var(--muted);
  text-align: center;
  margin-top: 8px;
}

/* ===== Home page: sidebar + list ===== */
.home-head {
  margin-bottom: 24px;
}

.home-head h1 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary-dark);
  margin-bottom: 6px;
}

.home-head p {
  color: var(--muted);
}

.layout {
  display: grid;
  grid-template-columns: 230px 1fr;
  gap: 32px;
  align-items: start;
}

.sidebar {
  position: sticky;
  top: 20px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 18px;
}

.sidebar h3 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin: 0 0 10px;
}

.sidebar h3:not(:first-child) {
  margin-top: 20px;
}

.tag-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.tag {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  font-family: inherit;
  text-align: left;
}

.tag span {
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0 8px;
}

.tag:hover {
  border-color: var(--primary);
  color: var(--primary-dark);
}

.tag.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.tag.active span {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.clear-btn {
  margin-top: 16px;
  width: 100%;
  background: transparent;
  border: none;
  color: var(--muted);
  font-size: 0.8rem;
  cursor: pointer;
  font-family: inherit;
  text-decoration: underline;
}

.count {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 14px;
}

/* ===== Article cards ===== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s, transform 0.2s;
}

.card:hover {
  box-shadow: 0 4px 14px rgba(27, 66, 44, 0.10);
  transform: translateY(-2px);
}

.card .loc {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 6px;
}

.card h2 {
  font-size: 1.1rem;
  margin: 0 0 8px;
  line-height: 1.35;
}

.card h2 a {
  color: var(--primary-dark);
  text-decoration: none;
}

.card h2 a:hover {
  color: var(--primary);
  text-decoration: underline;
}

.card .blurb {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 12px;
  flex: 1;
}

.card .meta {
  font-size: 0.8rem;
  color: var(--muted);
}

/* ===== Footer ===== */
footer {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  margin-top: 48px;
  text-align: center;
  color: var(--muted);
  font-size: 0.875rem;
}

footer p {
  margin-bottom: 6px;
}

/* ===== Mobile ===== */
@media (max-width: 720px) {
  body {
    padding: 16px 14px;
  }
  .site-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .top-nav {
    gap: 16px;
  }
  .article-head h1 {
    font-size: 1.6rem;
  }
  .home-head h1 {
    font-size: 1.5rem;
  }
  .layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .sidebar {
    position: static;
  }
  .tag-list {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .tag {
    width: auto;
  }
}

/* ===== Ad slots ===== */
.ad-slot {
  margin: 24px 0;
  text-align: center;
  min-height: 50px; /* collapses when empty */
}
.ad-slot:empty {
  display: none; /* hide completely if no ad code */
}
.ad-slot script {
  display: block; /* ensure ad scripts render */
}
.ad-slot ins,
.ad-slot iframe,
.ad-slot > div {
  max-width: 100%;
  margin: 0 auto;
}
.ad-header,
.ad-home-header {
  margin-top: 0;
  margin-bottom: 24px;
}
.ad-inarticle {
  margin: 32px 0;
}
.ad-footer {
  margin-top: 32px;
  margin-bottom: 16px;
}
.ad-sidebar {
  margin: 20px 0 0;
  padding-top: 16px;
  border-top: 1px dashed var(--border);
}

/* Responsive ad: hide on mobile if needed */
@media (max-width: 720px) {
  .ad-sidebar {
    display: none; /* sidebar ads often don't fit well on mobile */
  }
}
