/* ============================================================
   GUIDE PAGES — Shared Stylesheet
   Used by: visa.html, etiquette.html, getting-around.html,
            money.html, best-time.html
   ============================================================ */

/* ===== HERO ===== */
.guide-hero {
  height: 52vh; min-height: 380px;
  background: no-repeat center center / cover;
  display: flex; align-items: flex-end; justify-content: flex-start;
  position: relative;
  margin-top: 0;
}
.guide-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.82) 0%, rgba(0,0,0,0.25) 60%, transparent 100%);
}
.guide-hero-content {
  position: relative; z-index: 1;
  padding: 40px 2cm 44px;
  color: white; max-width: 860px;
}
.guide-hero-content h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 300; margin: 8px 0 14px;
}
.guide-hero-content p {
  font-size: 1rem; font-weight: 300;
  opacity: 0.88; max-width: 560px; margin: 0;
}

/* ===== WRAPPER ===== */
.guide-wrapper {
  max-width: 1100px;
  margin: 0 auto;
  padding: 48px 40px 80px;
  background: var(--bg-card);
}
@media (max-width: 768px) { .guide-wrapper { padding: 32px 20px 60px; } }

/* ===== SECTION ===== */
.guide-section {
  padding: 44px 0;
  border-bottom: 1px solid var(--border);
}
.guide-section:last-child { border-bottom: none; }
.guide-section h2 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  font-weight: 400; color: var(--heading);
  margin: 0 0 8px; letter-spacing: -0.01em;
}
.guide-section h3 {
  font-family: var(--font-display);
  font-size: 1.2rem; font-weight: 600;
  color: var(--heading); margin: 0 0 10px;
}
.section-lead {
  font-size: 0.97rem; color: var(--text-secondary);
  margin-bottom: 28px; line-height: 1.7;
}

/* ===== QUICK FACTS BAR ===== */
.quick-facts {
  display: flex; flex-wrap: wrap; gap: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 36px;
  box-shadow: var(--shadow-sm);
}
.qf-item {
  flex: 1 1 160px;
  display: flex; flex-direction: column; align-items: center;
  padding: 20px 16px; text-align: center;
  border-right: 1px solid var(--border);
  gap: 4px;
}
.qf-item:last-child { border-right: none; }
.qf-icon { font-size: 1.6rem; }
.qf-label { font-size: 0.7rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.09em; color: var(--text-muted); }
.qf-value { font-size: 0.92rem; font-weight: 600; color: var(--heading); }

/* ===== INFO BANNERS ===== */
.info-banner {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 16px 20px; border-radius: var(--radius-sm);
  font-size: 0.9rem; line-height: 1.6;
  margin-bottom: 32px;
}
.info-banner-icon { font-size: 1.3rem; flex-shrink: 0; margin-top: 2px; }
.info-banner--green { background: rgba(46,125,79,0.08); border-left: 4px solid var(--primary); color: var(--text-secondary); }
.info-banner--gold  { background: rgba(200,144,43,0.1); border-left: 4px solid var(--accent); color: var(--text-secondary); }
.info-banner--amber { background: rgba(255,160,0,0.1); border-left: 4px solid #f0a500; color: var(--text-secondary); }
.info-banner--red   { background: rgba(220,50,50,0.08); border-left: 4px solid #dc3232; color: var(--text-secondary); }

/* ===== CARD GRIDS ===== */
.card-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.card-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px) { .card-grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .card-grid-2, .card-grid-3 { grid-template-columns: 1fr; } }

/* ===== INFO CARDS ===== */
.info-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px 20px;
  font-size: 0.88rem; color: var(--text-secondary); line-height: 1.7;
}
.info-card h3 { font-size: 1.05rem; color: var(--heading); margin: 0 0 10px; }
.info-card ul { margin: 0; padding-left: 18px; }
.info-card li { margin-bottom: 5px; }
.info-card a { color: var(--primary); }
.info-card--green { border-left: 3px solid var(--primary); }
.info-card--blue  { border-left: 3px solid #5b7fba; }
.info-card--amber { border-left: 3px solid var(--accent); }

/* ===== TABLES ===== */
.guide-table {
  width: 100%; border-collapse: collapse;
  font-size: 0.88rem; color: var(--text-secondary);
}
.guide-table th {
  background: var(--bg); padding: 10px 14px;
  text-align: left; font-weight: 600;
  color: var(--heading); font-size: 0.8rem;
  text-transform: uppercase; letter-spacing: 0.06em;
  border-bottom: 2px solid var(--border);
}
.guide-table td {
  padding: 10px 14px; border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.guide-table tr:last-child td { border-bottom: none; }
.table-subtotal td { background: var(--bg); font-style: italic; }
.table-total td { background: rgba(46,125,79,0.07); font-weight: 700; color: var(--heading); }
.guide-table--compact td, .guide-table--compact th { padding: 7px 10px; font-size: 0.82rem; }
.sdf-table-wrapper, .cost-table-wrapper, .sdf-table-wrapper, .phrase-table-wrapper { overflow-x: auto; }

/* ===== STEPS ===== */
.steps-list { display: flex; flex-direction: column; gap: 0; }
.step-item {
  display: flex; gap: 20px; padding: 22px 0;
  border-bottom: 1px solid var(--border);
}
.step-item:last-child { border-bottom: none; }
.step-num {
  flex-shrink: 0; width: 38px; height: 38px;
  background: var(--primary); color: white;
  border-radius: 50%; display: flex; align-items: center;
  justify-content: center; font-weight: 700; font-size: 0.95rem;
  margin-top: 2px;
}
.step-body h3 { font-size: 1rem; color: var(--heading); margin: 0 0 6px; }
.step-body p { font-size: 0.88rem; color: var(--text-secondary); margin: 0; line-height: 1.7; }
.step-body a { color: var(--primary); }

/* ===== FAQ ===== */
.faq-list { display: flex; flex-direction: column; gap: 2px; }
.faq-item { border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; margin-bottom: 8px; }
.faq-q {
  width: 100%; text-align: left;
  background: var(--bg); border: none;
  padding: 16px 20px; cursor: pointer;
  font-size: 0.92rem; font-weight: 600; color: var(--heading);
  font-family: var(--font-body);
  display: flex; justify-content: space-between; align-items: center;
  transition: background var(--speed);
}
.faq-q:hover { background: rgba(46,125,79,0.06); }
.faq-q span { font-size: 1.2rem; color: var(--primary); flex-shrink: 0; margin-left: 12px; }
.faq-a {
  display: none; padding: 14px 20px 18px;
  font-size: 0.88rem; color: var(--text-secondary); line-height: 1.75;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
}

/* ===== LINK CARDS ===== */
.link-cards { display: flex; flex-wrap: wrap; gap: 14px; }
.link-card {
  flex: 1 1 200px;
  display: flex; flex-direction: column; gap: 4px;
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 18px 20px;
  color: var(--text-primary); transition: box-shadow var(--speed), transform var(--speed);
}
.link-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.link-card-icon { font-size: 1.5rem; }
.link-card-title { font-weight: 700; font-size: 0.92rem; color: var(--primary); }
.link-card-sub { font-size: 0.78rem; color: var(--text-muted); }

/* ===== DOS & DONTS ===== */
.dos-donts { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 16px; }
@media (max-width: 700px) { .dos-donts { grid-template-columns: 1fr; } }
.dos, .donts {
  padding: 20px; border-radius: var(--radius-sm);
  font-size: 0.88rem; color: var(--text-secondary); line-height: 1.7;
}
.dos { background: rgba(46,125,79,0.07); border: 1px solid rgba(46,125,79,0.2); }
.donts { background: rgba(220,50,50,0.06); border: 1px solid rgba(220,50,50,0.18); }
.dos h3 { color: var(--primary); margin: 0 0 12px; }
.donts h3 { color: #c0392b; margin: 0 0 12px; }
.dos ul, .donts ul { margin: 0; padding-left: 18px; }
.dos li, .donts li { margin-bottom: 7px; }

/* ===== RULES GRID ===== */
.rules-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; margin-top: 16px; }
.rule-card {
  padding: 20px; border-radius: var(--radius-sm);
  font-size: 0.87rem; color: var(--text-secondary); line-height: 1.65;
}
.rule-card h3 { font-size: 0.95rem; margin: 8px 0 8px; color: var(--heading); }
.rule-icon { font-size: 1.8rem; }
.rule-card--red   { background: rgba(220,50,50,0.07); border: 1px solid rgba(220,50,50,0.2); }
.rule-card--amber { background: rgba(200,144,43,0.08); border: 1px solid rgba(200,144,43,0.25); }
.rule-card--green { background: rgba(46,125,79,0.07); border: 1px solid rgba(46,125,79,0.2); }

/* ===== TIPS GRID ===== */
.tips-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; margin-top: 16px; }
.tip-item {
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 16px;
  font-size: 0.87rem; color: var(--text-secondary); line-height: 1.65;
}
.tip-icon { font-size: 1.4rem; flex-shrink: 0; margin-top: 1px; }
.tip-item strong { color: var(--heading); }

/* ===== MONTH BAR (Best Time) ===== */
.month-bar {
  display: flex; overflow-x: auto; gap: 4px;
  padding-bottom: 8px; margin-bottom: 10px;
}
.month-bar::-webkit-scrollbar { height: 4px; }
.month-item {
  flex: 0 0 auto; min-width: 72px;
  display: flex; flex-direction: column; align-items: center;
  padding: 12px 8px; border-radius: var(--radius-sm);
  font-size: 0.88rem; font-weight: 700; color: white;
  text-align: center; gap: 4px;
}
.month-item span { font-size: 0.68rem; font-weight: 400; opacity: 0.85; line-height: 1.3; }
.month--best  { background: var(--primary); }
.month--peak  { background: var(--accent); }
.month--off   { background: #888; }
.month-legend { display: flex; gap: 20px; flex-wrap: wrap; margin-top: 8px; }

/* ===== SEASON CARDS ===== */
.season-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden; margin-bottom: 20px;
}
.season-header {
  display: flex; align-items: center; gap: 16px;
  padding: 18px 24px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.season-icon { font-size: 2rem; }
.season-header h3 { margin: 0 0 4px; font-size: 1.15rem; }
.season-badge {
  display: inline-block; font-size: 0.72rem; font-weight: 700;
  padding: 3px 10px; border-radius: var(--radius-pill);
  letter-spacing: 0.07em; text-transform: uppercase;
}
.season-badge--best { background: var(--primary); color: white; }
.season-badge--shoulder { background: var(--accent); color: white; }
.season-body {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  padding: 0;
}
.season-col {
  padding: 20px 24px;
  font-size: 0.87rem; color: var(--text-secondary); line-height: 1.7;
}
.season-col:first-child { border-right: 1px solid var(--border); }
.season-col h4 { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); margin: 0 0 8px; }
.season-col ul { margin: 0; padding-left: 18px; }
.season-col li { margin-bottom: 6px; }
@media (max-width: 700px) { .season-body { grid-template-columns: 1fr; } .season-col:first-child { border-right: none; border-bottom: 1px solid var(--border); } }

/* ===== BUDGET TIERS ===== */
.budget-tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 20px; }
@media (max-width: 900px) { .budget-tiers { grid-template-columns: 1fr; } }
.budget-card {
  border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 24px 20px; font-size: 0.86rem; color: var(--text-secondary);
}
.budget-tier-label { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-muted); margin-bottom: 8px; }
.budget-total { font-family: var(--font-display); font-size: 2.4rem; font-weight: 300; color: var(--heading); line-height: 1; margin-bottom: 2px; }
.budget-total span { font-size: 0.9rem; color: var(--text-muted); }
.budget-card--basic  { border-top: 3px solid #5b7fba; }
.budget-card--mid    { border-top: 3px solid var(--primary); }
.budget-card--luxury { border-top: 3px solid var(--accent); }
