/*
 * MyHolidayMatch – Budget Guide shared styles
 * Used by all pages in /budget-guides/
 */

/* ── Hero ────────────────────────────────────────────── */
.guide-hero {
  background: linear-gradient(135deg, var(--primary-gradient-start, #ff7e5f) 0%, var(--primary-gradient-end, #00b8a9) 100%);
  color: #fff;
  padding: 100px 0 60px; /* top padding accounts for fixed header */
  margin-top: 0;
}

.breadcrumb {
  font-size: 0.82rem;
  opacity: 0.85;
  margin-bottom: 16px;
}
.breadcrumb a { color: #fff; text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span { margin: 0 6px; }

.guide-hero h1 {
  font-size: clamp(1.6rem, 4vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 14px;
  line-height: 1.25;
}

.guide-hero .lead {
  font-size: 1.05rem;
  opacity: 0.93;
  max-width: 640px;
  line-height: 1.7;
}

.budget-badges {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 22px;
}

.badge {
  background: rgba(255,255,255,0.2);
  border: 1px solid rgba(255,255,255,0.4);
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 0.85rem;
  font-weight: 600;
}

/* ── Table of Contents ───────────────────────────────── */
.toc {
  background: #f8f8f8;
  border-left: 4px solid var(--accent-teal, #1a9988);
  padding: 20px 24px;
  margin: 36px 0;
  border-radius: 0 8px 8px 0;
}

.toc h2 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--accent-teal, #1a9988);
  margin-bottom: 12px;
  font-weight: 700;
}

.toc ol {
  padding-left: 18px;
  margin: 0;
}

.toc li { margin-bottom: 5px; }

.toc a {
  color: #444;
  font-size: 0.9rem;
  text-decoration: none;
}

.toc a:hover {
  color: var(--accent-teal, #1a9988);
  text-decoration: underline;
}

/* ── Article body ────────────────────────────────────── */
.article-body {
  padding: 40px 0 80px;
  max-width: 860px;
  margin: 0 auto;
}

/* Override container max-width for article content */
.article-body .container {
  max-width: 860px;
}

.article-body h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #222;
  margin: 42px 0 16px;
  border-bottom: 2px solid #f0f0f0;
  padding-bottom: 8px;
}

.article-body h3 {
  font-size: 1.15rem;
  font-weight: 600;
  color: #333;
  margin: 28px 0 10px;
}

.article-body p {
  margin-bottom: 16px;
  color: #444;
  line-height: 1.8;
}

.article-body ul,
.article-body ol {
  padding-left: 22px;
  margin-bottom: 16px;
}

.article-body li {
  margin-bottom: 7px;
  color: #444;
  line-height: 1.7;
}

/* ── Budget tier cards ───────────────────────────────── */
.budget-tiers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 24px 0;
}

@media (max-width: 640px) {
  .budget-tiers { grid-template-columns: 1fr; }
}

.tier-card {
  border-radius: 10px;
  padding: 20px;
  text-align: center;
}

.tier-card.budget {
  background: #e8f5e9;
  border: 1px solid #a5d6a7;
}

.tier-card.mid {
  background: #fff3e0;
  border: 1px solid #ffcc80;
}

.tier-card.luxury {
  background: #e0f2f1;
  border: 1px solid #80cbc4;
}

.tier-card .tier-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.tier-card.budget .tier-label { color: #2e7d32; }
.tier-card.mid    .tier-label { color: #e65100; }
.tier-card.luxury .tier-label { color: #00695c; }

.tier-card .tier-price {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 4px;
  font-family: 'Montserrat', sans-serif;
  color: #222;
}

.tier-card .tier-desc {
  font-size: 0.82rem;
  color: #666;
}

/* ── Cost table ──────────────────────────────────────── */
.cost-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 0.9rem;
}

.cost-table th {
  background: var(--accent-teal, #1a9988);
  color: #fff;
  padding: 10px 14px;
  text-align: left;
  font-weight: 600;
}

.cost-table td {
  padding: 10px 14px;
  border-bottom: 1px solid #f0f0f0;
}

.cost-table tr:nth-child(even) td {
  background: #fafafa;
}

.cost-table .total td {
  font-weight: 700;
  background: #e0f2f1;
  border-top: 2px solid var(--accent-teal, #1a9988);
}

/* ── Day itinerary grid ──────────────────────────────── */
.day-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 20px 0;
}

.day-item {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 16px;
  align-items: start;
}

.day-num {
  background: var(--accent-teal, #1a9988);
  color: #fff;
  border-radius: 8px;
  padding: 10px;
  text-align: center;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  line-height: 1.3;
}

.day-content h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 4px;
  color: #222;
}

.day-content p {
  font-size: 0.9rem;
  color: #555;
  margin: 0;
}

/* ── Tips grid ───────────────────────────────────────── */
.tips-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 20px 0;
}

@media (max-width: 600px) {
  .tips-grid { grid-template-columns: 1fr; }
}

.tip-card {
  background: #f9f9f9;
  border-radius: 8px;
  padding: 18px;
  border-left: 3px solid var(--accent-teal, #1a9988);
}

.tip-card h4 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: #222;
}

.tip-card p {
  font-size: 0.88rem;
  color: #555;
  margin: 0 !important;
}

/* ── FAQ ─────────────────────────────────────────────── */
.faq-item {
  border-bottom: 1px solid #eee;
  padding: 18px 0;
}

.faq-item h3 {
  font-size: 1rem;
  font-weight: 600;
  color: #222;
  margin-bottom: 8px !important;
  margin-top: 0 !important;
}

.faq-item p {
  font-size: 0.92rem;
  color: #555;
  margin: 0 !important;
}

/* ── CTA box ─────────────────────────────────────────── */
.cta-box {
  background: linear-gradient(135deg, var(--primary-gradient-start, #ff7e5f), var(--primary-gradient-end, #00b8a9));
  color: #fff;
  border-radius: 12px;
  padding: 36px 32px;
  text-align: center;
  margin: 48px 0;
}

.cta-box h3 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.cta-box p {
  font-size: 0.95rem;
  opacity: 0.92;
  margin-bottom: 22px !important;
}

.cta-btn {
  display: inline-block;
  background: #fff;
  color: var(--accent-teal, #1a9988);
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  padding: 13px 30px;
  border-radius: 25px;
  font-size: 0.95rem;
  text-decoration: none;
  transition: opacity 0.2s;
}

.cta-btn:hover {
  opacity: 0.9;
  text-decoration: none;
}

/* ── Budget guide footer extras ──────────────────────── */
.footer .footer-links a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.footer .footer-links a:hover {
  color: var(--accent-teal, #1a9988);
}
