/* Estilo global dos posts estáticos, aplicado pelo template no build (scripts/static-post-template.ts). */
:root {
  --of-blue: #2563eb;
  --of-blue-500: #3b82f6;
  --of-blue-50: #eff6ff;
  --of-blue-100: #dbeafe;
  --of-amber: #f59e0b;
  --of-amber-50: #fffbeb;
  --of-ink: #111827;
  --of-text: #1f2937;
  --of-muted: #4b5563;
  --of-line: #e5e7eb;
  --of-soft: #f9fafb;
  --of-grad: linear-gradient(135deg, hsl(211 100% 50%) 0%, hsl(45 100% 51%) 100%);
}

body.of-post {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--of-text);
  background: #fff;
  font-size: 17px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
.of-post a { color: var(--of-blue); }
.of-post img { max-width: 100%; height: auto; }

.of-wrap { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.of-wrap-narrow { max-width: 820px; margin: 0 auto; padding: 0 16px; }

/* Cabeçalho */
.of-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .96); backdrop-filter: blur(6px); border-bottom: 1px solid var(--of-blue-100); }
.of-header-in { height: 56px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.of-logo { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.of-logo-mark { width: 32px; height: 32px; border-radius: 8px; background: linear-gradient(135deg, #3b82f6, #fbbf24); display: grid; place-items: center; flex: none; }
.of-logo-text { font-size: 20px; font-weight: 800; background: linear-gradient(90deg, #2563eb, #f59e0b); -webkit-background-clip: text; background-clip: text; color: transparent; }
.of-nav { display: none; align-items: center; gap: 24px; }
.of-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 24px; }
.of-nav li { position: relative; }
.of-nav a { color: #374151; text-decoration: none; font-size: 14px; font-weight: 500; }
.of-nav a:hover { color: var(--of-blue); }
.of-has-sub > a::after { content: ""; display: inline-block; margin-left: 6px; width: 6px; height: 6px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-3px) rotate(45deg); }
.of-sub { position: absolute; left: 0; top: 100%; min-width: 220px; padding: 8px 0 !important; margin-top: 8px !important; display: block !important; background: #fff; border: 1px solid var(--of-line); border-radius: 10px; box-shadow: 0 10px 25px rgba(0, 0, 0, .08); opacity: 0; visibility: hidden; transition: opacity .15s; }
.of-sub::before { content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 10px; }
.of-has-sub:hover .of-sub, .of-has-sub:focus-within .of-sub { opacity: 1; visibility: visible; }
.of-sub a { display: block; padding: 8px 16px; }
.of-sub a:hover { background: var(--of-blue-50); }
.of-mnav { position: relative; }
.of-mnav summary { list-style: none; cursor: pointer; width: 40px; height: 40px; display: grid; place-content: center; gap: 4px; border-radius: 8px; }
.of-mnav summary::-webkit-details-marker { display: none; }
.of-mnav summary span { display: block; width: 20px; height: 2px; background: #374151; border-radius: 2px; }
.of-mnav nav { position: absolute; right: 0; top: 48px; width: min(300px, 88vw); background: #fff; border: 1px solid var(--of-line); border-radius: 12px; box-shadow: 0 16px 40px rgba(0, 0, 0, .12); padding: 16px; }
.of-mnav nav a { display: block; padding: 6px 0; color: #374151; text-decoration: none; }
.of-mnav nav ul { list-style: none; margin: 0 0 8px; padding: 0 0 0 12px; border-left: 1px solid var(--of-line); }
.of-mnav-strong { font-weight: 700; color: var(--of-ink) !important; }
@media (min-width: 1024px) {
  .of-nav { display: flex; }
  .of-mnav { display: none; }
}

/* Botões */
.of-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border-radius: 8px; padding: 9px 16px; font-weight: 600; font-size: 14px; text-decoration: none; transition: box-shadow .2s, transform .2s; }
.of-btn-grad { background: var(--of-grad); color: #fff !important; }
.of-btn-grad:hover { box-shadow: 0 6px 18px rgba(0, 128, 255, .25); }
.of-btn-light { background: #fff; color: var(--of-ink) !important; font-size: 16px; padding: 12px 22px; }
.of-btn-block { width: 100%; margin-top: 12px; box-sizing: border-box; }

/* Hero */
.of-hero { background: linear-gradient(180deg, var(--of-blue-50), #fff 70%); padding: 20px 0 8px; }
.of-crumbs { font-size: 14px; color: var(--of-muted); display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.of-crumbs a { color: var(--of-blue); text-decoration: none; }
.of-crumbs a:hover { text-decoration: underline; }
.of-badges { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 4px; }
.of-badge { display: inline-block; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; padding: 4px 10px; border-radius: 999px; background: var(--of-grad); color: #fff !important; text-decoration: none; }
.of-badge-soft { background: #fff; color: var(--of-blue) !important; border: 1px solid var(--of-blue-100); }
.of-post .of-hero h1 { font-size: clamp(28px, 4.6vw, 42px); line-height: 1.18; letter-spacing: -.015em; margin: 12px 0 14px; font-weight: 800; background: linear-gradient(90deg, #2563eb, #f59e0b); -webkit-background-clip: text; background-clip: text; color: transparent; }
.of-byline { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--of-muted); }
.of-byline img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex: none; }
.of-cover { margin: 20px 0 0; }
.of-cover img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 12px; box-shadow: 0 10px 30px rgba(0, 0, 0, .12); background: var(--of-soft); }

/* Artigo */
.of-post main { max-width: 820px; margin: 0 auto; padding: 8px 16px 40px; box-sizing: border-box; }
.of-post main h2 { color: var(--of-text); font-size: clamp(22px, 3vw, 28px); font-weight: 800; line-height: 1.3; margin: 44px 0 14px; scroll-margin-top: 80px; }
.of-post main h3 { color: var(--of-text); font-size: 20px; line-height: 1.35; margin: 26px 0 8px; }
.of-post .tldr { background: linear-gradient(90deg, var(--of-blue-50), var(--of-amber-50)); border: 1px solid var(--of-blue-100); border-left: 4px solid var(--of-blue-500); border-radius: 12px; padding: 16px 20px; margin: 24px 0; }
.of-post .tldr strong { color: var(--of-blue); }
.of-post .takeaways { border: 1px solid var(--of-line); border-radius: 12px; padding: 12px 20px; background: #fff; }
.of-post .takeaways h2 { font-size: 18px; margin: 8px 0; }
.of-post .box h2 { font-size: 22px; margin-top: 16px; }
.of-post .toc { background: linear-gradient(90deg, var(--of-blue-50), var(--of-amber-50)); border: 1px solid var(--of-blue-100); border-radius: 12px; padding: 14px 20px; }
.of-post .toc summary { color: var(--of-ink); }
.of-post .toc a { text-decoration: none; }
.of-post .toc a:hover { text-decoration: underline; }
.of-post .table-wrap { border-color: var(--of-line); border-radius: 12px; }
.of-post thead th { background: var(--of-blue-50); }
.of-post .hotel { border: 1px solid var(--of-line); border-radius: 14px; box-shadow: 0 1px 2px rgba(0, 0, 0, .04); }
.of-post .hotel-top { align-items: flex-start; gap: 12px; }
.of-post .hotel-n { background: var(--of-grad); margin-top: 0; }
.of-post main .hotel h3 { margin: 2px 0 0; line-height: 1.4; }
.of-post .btn { background: var(--of-grad); color: #fff; border-radius: 8px; font-weight: 600; }
.of-post .btn:hover { background: var(--of-grad); box-shadow: 0 6px 18px rgba(0, 128, 255, .25); }
.of-post .btn-outline { background: #fff; color: var(--of-blue); border: 2px solid var(--of-blue-500); }
.of-post .btn-outline:hover { background: var(--of-blue-50); }
.of-post .box { border: 1px solid var(--of-blue-100); border-radius: 14px; }
.of-post .box-soft { background: var(--of-soft); border-color: var(--of-line); }
.of-post .cta { background: var(--of-grad); color: #fff; border-radius: 16px; }
.of-post .cta a:not(.btn) { color: #fff; }
.of-post .cta .btn { background: #fff; color: var(--of-ink); }
.of-post .author { border-top-color: var(--of-line); }
.of-post .disclosure { background: var(--of-soft); }

/* CTA final + relacionados */
.of-cta { margin: 40px 0 0; padding: 24px; border-radius: 16px; background: var(--of-grad); color: #fff; }
.of-cta p { margin: 0 0 12px; }
.of-cta .of-cta-title { font-size: 22px; font-weight: 800; line-height: 1.25; margin-bottom: 6px; }
.of-related { margin-top: 40px; }
.of-post .of-related h2 { margin-top: 0; }
.of-cards { display: grid; gap: 16px; grid-template-columns: 1fr; }
.of-card { border: 1px solid var(--of-line); border-radius: 12px; overflow: hidden; background: #fff; }
.of-card-img { display: block; overflow: hidden; }
.of-card-img img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .3s; }
.of-card:hover .of-card-img img { transform: scale(1.04); }
.of-card-body { padding: 12px 14px 14px; }
.of-card-meta { margin: 0 0 4px; font-size: 12px; font-weight: 600; color: var(--of-blue); }
.of-post .of-card h3 { margin: 0; font-size: 16px; line-height: 1.4; }
.of-card h3 a { color: var(--of-ink); text-decoration: none; }
.of-card h3 a:hover { color: var(--of-blue); }
@media (min-width: 640px) { .of-cards { grid-template-columns: repeat(3, 1fr); } }

/* Busca de hospedagem (busca-hospedagem.js) */
.of-busca { margin: 32px 0; padding: 20px; border: 1px solid var(--of-blue-100); border-radius: 16px; background: linear-gradient(180deg, var(--of-blue-50), #fff); box-shadow: 0 10px 30px rgba(37, 99, 235, .08); }
.of-busca-titulo { margin: 0 0 14px !important; font-size: 20px; font-weight: 800; line-height: 1.3; color: var(--of-ink); }
.of-busca-grid { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
.of-campo-destino { grid-column: 1 / -1; }
.of-busca label, .of-busca legend { display: block; margin: 0 0 4px; padding: 0; font-size: 14px; font-weight: 600; color: var(--of-ink); }
.of-busca input, .of-busca select { display: block; width: 100%; height: 44px; margin: 0; padding: 0 10px; box-sizing: border-box; border: 1px solid #cbd5e1; border-radius: 8px; background: #fff; color: var(--of-ink); font: inherit; font-size: 16px; }
.of-busca input:focus, .of-busca select:focus { outline: 2px solid var(--of-blue-500); outline-offset: 1px; }
.of-busca [aria-invalid="true"] { border-color: #dc2626; }
.of-combo { position: relative; }
.of-busca .of-combo input { scroll-margin-top: 76px; }
.of-sugestoes { position: absolute; left: 0; right: 0; top: 100%; z-index: 30; margin-top: 4px; overflow: hidden; background: #fff; border: 1px solid #cbd5e1; border-radius: 8px; box-shadow: 0 12px 30px rgba(15, 23, 42, .15); }
.of-busca .of-sugestoes ul { list-style: none; margin: 0; padding: 4px 0; max-height: 320px; overflow-y: auto; }
.of-busca .of-sugestoes li { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0; padding: 10px 12px; font-size: 15px; line-height: 1.3; color: var(--of-ink); cursor: pointer; }
.of-busca .of-sugestoes li:hover, .of-busca .of-sugestoes li[aria-selected="true"] { background: var(--of-blue-50); }
.of-selo { flex-shrink: 0; padding: 2px 8px; border-radius: 999px; background: var(--of-blue-100); color: var(--of-blue); font-size: 11px; font-weight: 700; }
.of-busca .of-osm { margin: 0; padding: 4px 12px; border-top: 1px solid var(--of-line); font-size: 11px; color: var(--of-muted); text-align: right; }
.of-busca .of-erro { margin: 4px 0 0; font-size: 13px; line-height: 1.3; color: #dc2626; }
.of-idades { margin: 14px 0 0; padding: 0; border: 0; min-width: 0; }
.of-idades-lista { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
.of-idade label { font-size: 13px; font-weight: 500; color: var(--of-muted); }
.of-busca-btn { display: block; width: 100%; margin: 16px 0 0; padding: 13px 16px; border: 0; border-radius: 8px; background: var(--of-grad); color: #fff; font: inherit; font-size: 17px; font-weight: 700; cursor: pointer; }
.of-busca-btn:hover { box-shadow: 0 6px 18px rgba(0, 128, 255, .25); }
.of-busca [hidden] { display: none !important; }
@media (min-width: 720px) {
  .of-busca { padding: 24px; }
  .of-busca-grid { grid-template-columns: repeat(6, 1fr); }
  .of-campo-data { grid-column: span 3; }
  .of-campo-num { grid-column: span 2; }
}

/* Rodapé */
.of-footer { background: var(--of-soft); border-top: 1px solid var(--of-line); padding: 40px 0 24px; font-size: 14px; color: var(--of-muted); text-align: left; }
.of-footer-grid { display: grid; gap: 28px; grid-template-columns: 1fr; }
.of-footer h2 { font-size: 15px; color: var(--of-ink); margin: 0 0 12px; }
.of-footer ul { list-style: none; margin: 0; padding: 0; }
.of-footer li { margin: 6px 0; }
.of-footer a { color: var(--of-muted); text-decoration: none; }
.of-footer a:hover { color: var(--of-blue); }
.of-footer-brand p { max-width: 420px; }
.of-footer a.of-social { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--of-line); background: #fff; color: #db2777; box-shadow: 0 1px 2px rgba(15, 23, 42, .06); }
.of-footer a.of-social:hover { background: #fdf2f8; border-color: #fbcfe8; color: #db2777; }
.of-copy { text-align: center; margin: 28px 0 0; padding-top: 20px; border-top: 1px solid var(--of-line); }
@media (min-width: 768px) { .of-footer-grid { grid-template-columns: 2fr 1fr 1fr; } }

@media (max-width: 560px) {
  body.of-post { font-size: 16.5px; }
  .of-logo-text { font-size: 18px; }
  .of-cta { padding: 20px; }
}
