/* Manuel Antonio Travel Guide — travel-site theme (ocean navy, turquoise, sunset orange) */
:root {
  --navy: #0e3b43;
  --navy-2: #15505a;
  --teal: #0f9c97;
  --teal-soft: #e3f4f3;
  --orange: #ff7a3d;
  --orange-dark: #e9652a;
  --bg: #f5f8f8;
  --white: #ffffff;
  --text: #2c3a3d;
  --muted: #667679;
  --line: #e1e8e9;
  --red: #d64545;
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 14px;
  --shadow: 0 6px 24px -10px rgba(14, 59, 67, 0.25);
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 1.05rem; line-height: 1.7; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); }
a:hover { color: var(--navy); }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
h1, h2, h3 { color: var(--navy); line-height: 1.2; font-weight: 800; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); margin: 0 0 .4em; }
h2 { font-size: clamp(1.45rem, 3vw, 1.9rem); margin: 1.8em 0 .6em; }
h3 { font-size: 1.15rem; margin: 1.4em 0 .4em; }
p, ul, ol { margin: 0 0 1em; }
li { margin-bottom: .35em; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 8px; background: #fff; padding: 8px 12px; z-index: 50; }

/* Top bar + header */
.topbar { background: var(--teal); color: #fff; font-size: .88rem; text-align: center; padding: 7px 16px; }
.topbar a { color: #fff; font-weight: 700; }
.site-head { background: var(--white); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); font-weight: 800; font-size: 1.08rem; line-height: 1.15; }
.brand svg { flex: none; }
.brand span small { display: block; font-weight: 500; font-size: .76rem; color: var(--muted); }
.site-nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 22px; margin: 0; padding: 0; }
.site-nav a { color: var(--navy); text-decoration: none; font-weight: 600; font-size: .95rem; }
.site-nav a:hover, .site-nav a[aria-current] { color: var(--teal); }
.nav-toggle { display: none; }

/* Buttons */
.btn { display: inline-block; background: var(--orange); color: #fff; font-weight: 700; text-decoration: none; padding: 12px 24px; border-radius: 999px; border: 2px solid var(--orange); line-height: 1.2; text-align: center; }
.btn:hover { background: var(--orange-dark); border-color: var(--orange-dark); color: #fff; }
.btn.light { background: rgba(255, 255, 255, .12); border-color: #fff; color: #fff; }
.btn.light:hover { background: #fff; color: var(--navy); }
.btn.outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn.outline:hover { background: var(--navy); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }

/* Home hero */
.hero { position: relative; color: #fff; background: var(--navy) center/cover no-repeat; min-height: 560px; display: flex; align-items: flex-end; }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8, 35, 40, .25) 0%, rgba(8, 35, 40, .75) 100%); }
.hero .wrap { position: relative; padding-top: 80px; padding-bottom: 56px; width: 100%; }
.hero h1 { color: #fff; max-width: 17ch; }
.hero .lede { font-size: 1.2rem; max-width: 46ch; color: #eaf3f3; }
.today { display: inline-flex; align-items: center; gap: 10px; background: rgba(255, 255, 255, .95); color: var(--navy); border-radius: 999px; padding: 7px 16px 7px 10px; font-size: .92rem; font-weight: 600; margin-bottom: 18px; }
.today .dot { width: 12px; height: 12px; border-radius: 50%; background: #2bb673; box-shadow: 0 0 0 4px rgba(43, 182, 115, .2); }
.today.closed .dot { background: var(--red); box-shadow: 0 0 0 4px rgba(214, 69, 69, .2); }

/* Facts strip */
.facts-strip { background: var(--white); box-shadow: var(--shadow); border-radius: var(--radius); margin: -40px auto 0; position: relative; display: grid; grid-template-columns: repeat(4, 1fr); }
.facts-strip div { padding: 20px 22px; border-right: 1px solid var(--line); }
.facts-strip div:last-child { border-right: 0; }
.facts-strip b { display: block; color: var(--navy); font-size: 1.05rem; }
.facts-strip span { color: var(--muted); font-size: .9rem; }

.section { padding: 56px 0 8px; }
.section-head { max-width: 640px; }
.section-head h2 { margin-top: 0; }
.section-head p { color: var(--muted); }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin: 24px 0; }
.card { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.card img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.card .body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.card h3 { margin: 0 0 6px; }
.card .for { color: var(--muted); font-size: .95rem; margin-bottom: 12px; }
.card ul { list-style: none; padding: 0; margin: 0 0 18px; font-size: .95rem; }
.card ul li { padding-left: 26px; position: relative; }
.card ul li::before { content: ""; position: absolute; left: 0; top: .45em; width: 16px; height: 16px; border-radius: 50%; background: var(--teal-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.2l2.5 2.5L12 5.3' fill='none' stroke='%230f9c97' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center/12px no-repeat; }
.card .btn { margin-top: auto; }
.card .note { font-size: .78rem; color: var(--muted); text-align: center; margin: 8px 0 0; }
.badge { display: inline-block; background: var(--teal-soft); color: var(--teal); font-weight: 700; font-size: .78rem; border-radius: 999px; padding: 3px 10px; margin-bottom: 8px; align-self: flex-start; }
.card a.more { font-weight: 700; text-decoration: none; margin-top: auto; }

.tips { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px 32px; list-style: none; padding: 0; }
.tips li { background: var(--white); border-radius: var(--radius); padding: 18px 20px; margin: 0; border-left: 4px solid var(--teal); }
.tips strong { color: var(--navy); display: block; }

.banner { position: relative; border-radius: var(--radius); overflow: hidden; color: #fff; margin: 56px 0 64px; background: var(--navy) center/cover no-repeat; }
.banner::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8, 35, 40, .88) 0%, rgba(8, 35, 40, .45) 100%); }
.banner .inner { position: relative; padding: 44px 40px; max-width: 620px; }
.banner h2 { color: #fff; margin-top: 0; }
.banner small { display: block; color: #cfe1e1; margin-top: 14px; font-size: .85rem; }

/* Article pages */
.page-hero { position: relative; background: var(--navy) center/cover no-repeat; color: #fff; }
.page-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8, 35, 40, .35), rgba(8, 35, 40, .82)); }
.page-hero .wrap { position: relative; padding-top: 72px; padding-bottom: 40px; }
.page-hero h1 { color: #fff; max-width: 22ch; }
.page-hero .lede { color: #e6f0f0; max-width: 62ch; font-size: 1.12rem; margin: 0; }
.crumbs { font-size: .85rem; margin-bottom: 14px; color: #cfe1e1; }
.crumbs a { color: #fff; }
.page { padding: 40px 0 64px; }
.page-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; align-items: start; }
.prose { background: var(--white); border-radius: var(--radius); padding: 36px 40px; box-shadow: var(--shadow); min-width: 0; }
.prose > :first-child { margin-top: 0; }
.prose p, .prose ul, .prose ol { max-width: 70ch; }
.prose table { width: 100%; border-collapse: collapse; margin: 0 0 1.4em; font-size: .97rem; }
.prose th, .prose td { text-align: left; padding: 11px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { background: var(--teal-soft); color: var(--navy); }
.table-scroll { overflow-x: auto; }
.updated { font-size: .88rem; color: var(--muted); margin-bottom: 1.4em; }
.callout { background: #fff5ef; border-left: 4px solid var(--orange); padding: 14px 18px; margin: 1.4em 0; border-radius: 0 10px 10px 0; }
.callout p:last-child { margin-bottom: 0; }
.prose .cards { grid-template-columns: repeat(2, 1fr); }

.facts { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; position: sticky; top: 88px; font-size: .95rem; }
.facts h2 { background: var(--navy); color: #fff; margin: 0; padding: 14px 20px; font-size: 1.05rem; }
.facts dl { margin: 0; padding: 16px 20px 4px; }
.facts dt { color: var(--muted); font-size: .82rem; font-weight: 600; }
.facts dd { margin: 0 0 12px; color: var(--navy); font-weight: 600; }
.facts p { padding: 0 20px 18px; margin: 0; font-size: .8rem; color: var(--muted); }

/* Footer */
.site-foot { background: var(--navy); color: #c7d9da; font-size: .92rem; padding: 44px 0 28px; }
.site-foot a { color: #fff; }
.site-foot .cols { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.site-foot h3 { color: #fff; font-size: 1rem; margin: 0 0 10px; }
.site-foot ul { list-style: none; padding: 0; margin: 0; }
.site-foot .copy { border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 28px; padding-top: 18px; font-size: .82rem; }

@media (max-width: 960px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .page-grid { grid-template-columns: 1fr; }
  .facts { position: static; }
  .facts-strip { grid-template-columns: repeat(2, 1fr); }
  .facts-strip div:nth-child(2) { border-right: 0; }
  .facts-strip div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}
@media (max-width: 640px) {
  body { font-size: 1rem; }
  .site-nav { width: 100%; overflow-x: auto; }
  .site-nav ul { flex-wrap: nowrap; padding-bottom: 10px; white-space: nowrap; }
  .site-head { position: static; }
  .hero { min-height: 520px; }
  .cards, .prose .cards, .tips { grid-template-columns: 1fr; }
  .prose { padding: 24px 18px; }
  .banner .inner { padding: 32px 22px; }
  .site-foot .cols { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
@media (max-width: 640px) {
  .topbar { font-size: .8rem; padding: 6px 12px; }
  .facts-strip div { padding: 14px 16px; line-height: 1.4; }
  .facts-strip b { font-size: .98rem; }
  .facts-strip span { font-size: .82rem; }
}
