/* AirportCityGuide.com
   Rules: symmetric borders only (no one-sided accent bars), no emoji or decorative icons before text,
   CTA buttons carry their key styles inline (see cta_button() in includes/functions.php). */

:root {
  --navy: #12355b;
  --navy-soft: #1d4a7a;
  --accent: #c2410c;
  --accent-bright: #f97316;
  --bg: #fbfaf7;
  --surface: #ffffff;
  --surface-soft: #f3f1ec;
  --text: #1f2933;
  --muted: #5b6672;
  --line: #e4e1da;
  --radius: 12px;
  --shadow: 0 1px 3px rgba(18, 53, 91, 0.06);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
}

a { color: var(--navy-soft); text-underline-offset: 3px; }
a:hover { color: var(--accent); }

picture { display: block; max-width: 100%; }
img { max-width: 100%; height: auto; }

.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 16px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.skip-link { position: absolute; left: -999px; top: 8px; background: var(--navy); color: #fff; padding: 8px 12px; border-radius: 6px; z-index: 10; }
.skip-link:focus { left: 8px; }

/* ---------- Header ---------- */

.site-header { background: var(--surface); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; padding-top: 14px; padding-bottom: 14px; }

.brand { font-weight: 800; font-size: 22px; letter-spacing: -0.02em; text-decoration: none; color: var(--navy); }
.brand:hover { color: var(--navy); }
.brand-city { color: var(--accent); }

.site-nav { display: flex; gap: 18px; }
.site-nav a { color: var(--text); text-decoration: none; font-weight: 600; font-size: 16px; }
.site-nav a:hover { color: var(--accent); }

.header-search { margin-left: auto; display: flex; gap: 6px; }
.header-search input { width: 190px; }

input[type="search"] {
  font: inherit; font-size: 16px; padding: 9px 12px; color: var(--text);
  background: var(--surface); border: 1px solid #cfcac0; border-radius: 8px; min-width: 0;
}
input[type="search"]:focus { outline: 2px solid var(--accent-bright); outline-offset: 1px; border-color: var(--accent-bright); }

button {
  font: inherit; font-size: 16px; font-weight: 700; cursor: pointer;
  padding: 9px 16px; border-radius: 8px; border: 1px solid var(--navy);
  background: var(--navy); color: #fff;
}
button:hover { background: var(--navy-soft); }
button.secondary { background: var(--surface); color: var(--navy); }

/* ---------- Home ---------- */

.hero { padding: 36px 0 20px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 28px; align-items: center; }
/* Transparent pencil illustration: no frame or shadow, it melts into the page background */
.hero-art { margin: 0; }
.hero-art img { display: block; width: 100%; height: auto; }
.hero h1 { font-size: 40px; line-height: 1.15; color: var(--navy); margin: 0 0 16px; letter-spacing: -0.01em; }
.hero-lead { font-size: 19px; color: #36414c; margin: 0 0 12px; }

.hero-search { display: flex; gap: 8px; margin: 22px 0 8px; }
.hero-search input { flex: 1; padding: 12px 14px; font-size: 17px; }
.hero-search button { padding: 12px 20px; }

.listing { padding-bottom: 40px; }
.section-title { font-size: 15px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin: 26px 0 14px; font-weight: 700; }
.page-title { font-size: 34px; line-height: 1.2; color: var(--navy); margin: 32px 0 18px; }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 20px 22px; margin-bottom: 16px;
}
.card-meta { margin: 0 0 6px; font-size: 14px; color: var(--muted); }
.card-code {
  display: inline-block; font-weight: 700; font-size: 12px; letter-spacing: 0.06em; color: var(--navy);
  border: 1px solid #c9d3df; border-radius: 6px; padding: 1px 6px; margin-right: 4px; background: #f4f7fa;
}
.card-title { font-size: 23px; line-height: 1.3; margin: 0 0 8px; }
.card-title a { color: var(--text); text-decoration: none; }
.card-title a:hover { color: var(--accent); }
.card-excerpt { margin: 0 0 10px; color: #3d4852; }
.card-link { font-weight: 700; font-size: 15px; }

.pagination { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 24px; font-size: 15px; color: var(--muted); }

.search-hint { color: var(--muted); }

.guides-intro { color: var(--muted); margin: -6px 0 18px; }
.filter { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 24px; }
.filter-chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 999px;
  border: 1px solid #cfcac0; background: var(--surface); color: var(--text); text-decoration: none; font-size: 15px; font-weight: 600;
}
.filter-chip:hover { border-color: var(--accent); color: var(--accent); }
.filter-chip.is-active { background: var(--navy); border-color: var(--navy); color: #fff; }
.filter-count { font-size: 12px; font-weight: 700; opacity: 0.7; }
.filter-chip.is-empty { color: #9aa3ad; border-style: dashed; cursor: default; }
.filter-chip.is-empty:hover { border-color: #cfcac0; color: #9aa3ad; }
.more-guides { margin: 22px 0 0; }
.more-guides-link { font-weight: 700; }

/* ---------- Article ---------- */

.article { padding-bottom: 10px; }
.breadcrumb { font-size: 14px; color: var(--muted); margin: 26px 0 0; display: flex; gap: 8px; flex-wrap: wrap; }
.breadcrumb a { color: var(--muted); }

.article-header { margin: 14px 0 8px; }
.article-kicker { margin: 0 0 6px; font-size: 14px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--accent); }
.article-header h1 { font-size: 38px; line-height: 1.18; color: var(--navy); margin: 0 0 12px; letter-spacing: -0.01em; }
.article-meta { margin: 0; font-size: 14px; color: var(--muted); }

.article-art { margin: 10px 0 28px; }
.article-art img { display: block; width: auto; max-width: 100%; height: auto; max-height: 440px; margin: 0 auto; }
.prose { font-size: 18px; line-height: 1.75; }
.article-img { margin: 30px 0 32px; }
.article-img img { display: block; width: auto; max-width: 100%; height: auto; max-height: 420px; margin: 0 auto; }
.article-img figcaption { margin-top: 8px; text-align: center; font-size: 14px; line-height: 1.5; color: var(--muted); }
.prose p { margin: 0 0 1.15em; }
.prose h2 { font-size: 27px; line-height: 1.3; color: var(--navy); margin: 1.8em 0 0.6em; }
.prose h3 { font-size: 20px; line-height: 1.35; margin: 1.5em 0 0.5em; color: var(--text); }
.prose ul, .prose ol { margin: 0 0 1.2em; padding-left: 1.3em; }
.prose li { margin-bottom: 0.45em; }
.prose strong { color: #111a22; }

.prose table { width: 100%; border-collapse: collapse; margin: 0 0 1.4em; font-size: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.prose th, .prose td { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--line); }
.prose th { background: var(--surface-soft); font-weight: 700; color: var(--navy); }
.prose tr:last-child td { border-bottom: 0; }

.short-version {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 18px 22px; margin: 26px 0 28px;
}
.short-version p:last-child { margin-bottom: 0; }
.short-version .label { display: block; font-family: var(--font); font-size: 13px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); margin-bottom: 6px; }

.cta-box {
  background: #fff7f2; border: 1px solid #f6d3bf; border-radius: var(--radius);
  padding: 18px 20px; margin: 26px 0 30px; text-align: center;
}
.cta-note { margin: 10px 0 0 !important; font-size: 14px; line-height: 1.5; color: var(--muted); }

.checked-note {
  margin: 34px 0 10px; padding: 16px 20px; font-size: 15px; color: #3d4852;
  background: var(--surface-soft); border: 1px solid var(--line); border-radius: var(--radius);
}
.checked-note p { margin: 0; }

.related { padding-bottom: 40px; }

.page { padding-bottom: 40px; }

/* ---------- Footer ---------- */

.site-footer { background: var(--navy); color: #d6e0ea; margin-top: 30px; }
.footer-inner { padding-top: 30px; padding-bottom: 30px; }
.footer-brand { font-weight: 800; font-size: 18px; color: #fff; margin: 0 0 8px; }
.footer-text { font-size: 14px; margin: 0 0 8px; max-width: 720px; }
.footer-nav { display: flex; gap: 18px; flex-wrap: wrap; margin: 14px 0; }
.footer-nav a { color: #fff; font-size: 14px; font-weight: 600; }
.footer-nav a:hover { color: var(--accent-bright); }
.footer-copy { font-size: 13px; margin: 0; color: #a9bacb; }

/* ---------- Consent banner (only rendered when GA4 is configured) ---------- */

.consent {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 20; max-width: 520px; margin: 0 auto;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(18, 53, 91, 0.18); padding: 16px 18px; font-size: 15px;
}
.consent p { margin: 0 0 12px; }
.consent-actions { display: flex; gap: 8px; }

/* ---------- Mobile ---------- */

@media (max-width: 720px) {
  body { font-size: 16px; }
  .header-inner { gap: 12px; }
  .header-search { margin-left: 0; width: 100%; }
  .header-search input { flex: 1; width: auto; }
  .hero { padding: 16px 0 12px; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .hero-art { order: -1; width: 100%; max-width: 360px; margin: 0 auto; }
  .hero h1 { font-size: 30px; }
  .hero-lead { font-size: 17px; }
  .article-header h1 { font-size: 29px; }
  .page-title { font-size: 28px; }
  .prose { font-size: 17px; }
  .prose h2 { font-size: 23px; }
  .card { padding: 16px 16px; }
  .card-title { font-size: 20px; }
  .hero-search button { padding: 12px 14px; }
}
