/* =====================================================================
   AondeVou — folha de estilos pública
   Cores/tipografia vêm de theme-vars.css (Admin → Configurações → Aparência)
   ===================================================================== */

:root {
  --av-bg: #f7f6f2;
  --av-surface: #ffffff;
  --av-ink: #16232a;
  --av-muted: #5b6b72;
  --av-line: #e6e9e4;
  --av-shadow: 0 6px 24px rgba(16, 34, 40, .06);
  --av-shadow-lg: 0 16px 40px rgba(16, 34, 40, .12);
  --av-header-h: 64px;
}

/* ---------- Base ---------- */
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--av-header-h) + 16px); }
body { font-family: var(--av-font); color: var(--av-ink); background: var(--av-bg); -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, .av-display { font-family: var(--av-font-head); color: var(--av-ink); letter-spacing: -.015em; }
a { color: var(--av-link); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--av-link-hover); }
img { max-width: 100%; height: auto; }
.av-main { min-height: 60vh; }
.av-skip { position: absolute; left: 1rem; top: .5rem; z-index: 2000; background: #fff; padding: .5rem 1rem; border-radius: 8px; }
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.text-muted { color: var(--av-muted) !important; }
::selection { background: var(--av-primary); color: var(--av-on-primary); }

/* ---------- Botões ---------- */
.av-btn-primary, .btn-primary {
  background: var(--av-primary); border: 2px solid var(--av-primary); color: var(--av-on-primary) !important; font-weight: 700;
}
.av-btn-primary:hover, .av-btn-primary:focus, .btn-primary:hover, .btn-primary:focus {
  background: var(--av-primary-dark); border-color: var(--av-primary-dark); color: var(--av-on-primary) !important;
}
.av-btn-dark { background: var(--av-dark); border: 2px solid var(--av-dark); color: var(--av-on-dark) !important; font-weight: 700; }
.av-btn-dark:hover { background: var(--av-dark-2); color: var(--av-on-dark) !important; }
.av-btn-outline { border: 2px solid var(--av-line); background: #fff; color: var(--av-ink); font-weight: 600; }
.av-btn-outline:hover { border-color: var(--av-ink); color: var(--av-ink); }
.btn-outline-primary { color: var(--av-link); border-color: var(--av-link); }
.btn-outline-primary:hover { background: var(--av-link); border-color: var(--av-link); color: #fff; }
.btn { border-radius: var(--av-radius-sm); }
.form-control:focus, .form-select:focus { border-color: var(--av-link); box-shadow: 0 0 0 .2rem rgba(var(--bs-primary-rgb), .15); }
.form-check-input:checked { background-color: var(--av-link); border-color: var(--av-link); }

/* ---------- Cabeçalho ---------- */
.av-header { position: sticky; top: 0; z-index: 1030; background: var(--av-dark); transition: transform .25s ease, box-shadow .25s ease; }
.av-header.is-scrolled { box-shadow: 0 6px 24px rgba(0, 0, 0, .18); }
.av-header.is-hidden { transform: translateY(-100%); }
.av-header .navbar { min-height: var(--av-header-h); padding: .35rem 0; }
.av-brand { display: flex; align-items: center; gap: .55rem; font-family: var(--av-font-head); font-weight: 800; font-size: 1.3rem; color: #fff !important; }
.av-brand img { max-height: 40px; width: auto; display: block; }
.av-brand-mark { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--av-primary); color: var(--av-on-primary); }
.av-header .nav-link { color: rgba(255, 255, 255, .82); font-weight: 600; padding: .5rem .8rem !important; border-radius: 8px; }
.av-header .nav-link:hover, .av-header .nav-link:focus { color: #fff; background: rgba(255, 255, 255, .07); }
.av-header .nav-link.active { color: var(--av-primary); }
.av-header .dropdown-menu { border: 0; border-radius: 12px; box-shadow: var(--av-shadow-lg); padding: .4rem; }
.av-header .dropdown-item { border-radius: 8px; padding: .5rem .8rem; }
.av-header .dropdown-item:active { background: var(--av-primary); color: var(--av-on-primary); }
.av-icon-btn { color: #fff; font-size: 1.15rem; width: 42px; height: 42px; }
.av-icon-btn:hover { color: var(--av-primary); }
.av-search { position: relative; display: flex; align-items: center; min-width: 230px; }
.av-search .form-control { border-radius: 999px; padding: .5rem 2.6rem .5rem 1rem; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18); color: #fff; }
.av-search .form-control::placeholder { color: rgba(255, 255, 255, .6); }
.av-search .form-control:focus { background: #fff; color: var(--av-ink); }
.av-search button { position: absolute; right: 4px; border: 0; width: 34px; height: 34px; border-radius: 50%; background: var(--av-primary); color: var(--av-on-primary); }
.av-avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--av-primary); color: var(--av-on-primary); display: inline-grid; place-items: center; font-weight: 800; font-size: .85rem; }
@media (max-width: 991.98px) {
  .av-header .navbar-collapse { max-height: calc(100dvh - var(--av-header-h)); overflow-y: auto; padding: .5rem 0 1rem; }
  .av-header .nav-link { padding: .75rem .5rem !important; }
  .av-header .dropdown-menu { background: var(--av-dark-2); box-shadow: none; }
  .av-header .dropdown-item { color: #fff; }
  .av-search { min-width: 0; width: 100%; }
}

/* ---------- Secções e títulos ---------- */
.av-section { padding: clamp(2.5rem, 5vw, 4.5rem) 0; }
.av-section-white { background: #fff; }
.av-section-dark { background: var(--av-dark); color: var(--av-on-dark); }
.av-section-dark h2, .av-section-dark h3 { color: var(--av-on-dark); }
.av-section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1.75rem; flex-wrap: wrap; }
.av-title { font-size: clamp(1.5rem, 2.6vw, 2.2rem); font-weight: 800; margin: 0; }
.av-title::before { content: ""; display: block; width: 44px; height: 4px; border-radius: 4px; background: var(--av-primary); margin-bottom: .8rem; }
.av-sub { color: var(--av-muted); margin: .5rem 0 0; max-width: 680px; }
.av-kicker { font-size: .75rem; letter-spacing: .16em; font-weight: 800; text-transform: uppercase; color: var(--av-link); }
.av-link-more { font-weight: 700; text-decoration: none; white-space: nowrap; }
.av-link-more::after { content: " →"; }

/* ---------- Page hero (listagens) ---------- */
.av-page-hero { position: relative; padding: clamp(2.5rem, 6vw, 4.5rem) 0; color: #fff; background: var(--av-dark); overflow: hidden; }
.av-page-hero.has-image { background-size: cover; background-position: center; }
.av-page-hero.has-image::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(var(--av-dark-rgb), .92), rgba(var(--av-dark-rgb), .55)); }
.av-page-hero > .container { position: relative; z-index: 1; }
.av-page-hero h1 { color: #fff; font-weight: 800; font-size: clamp(1.9rem, 4vw, 3rem); margin: .4rem 0 .6rem; }
.av-page-hero p { color: rgba(255, 255, 255, .86); max-width: 680px; font-size: 1.08rem; margin: 0; }
.av-page-hero .breadcrumb { margin: 0; }
.av-page-hero .breadcrumb a, .av-page-hero .breadcrumb-item.active, .av-page-hero .breadcrumb-item + .breadcrumb-item::before { color: rgba(255, 255, 255, .75); }

/* ---------- Hero da página inicial ---------- */
.av-hero { position: relative; color: #fff; display: flex; align-items: center; min-height: clamp(460px, 70vh, 640px); overflow: hidden; background: var(--av-dark); }
.av-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.av-hero::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(var(--av-dark-rgb), .92) 0%, rgba(var(--av-dark-rgb), .6) 55%, rgba(var(--av-dark-rgb), .15) 100%); }
.av-hero .container { position: relative; z-index: 2; }
.av-hero h1 { color: #fff; font-size: clamp(2.2rem, 5vw, 3.8rem); font-weight: 800; line-height: 1.06; letter-spacing: -.035em; margin: 1rem 0; max-width: 720px; text-wrap: balance; }
.av-hero-lead { font-size: clamp(1rem, 1.6vw, 1.22rem); color: rgba(255, 255, 255, .88); max-width: 580px; line-height: 1.65; }
.av-hero-eyebrow { display: inline-flex; gap: .5rem; align-items: center; color: var(--av-primary); font-weight: 800; font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; }
.av-hero-search { display: flex; align-items: center; background: #fff; border-radius: 16px; padding: 6px; max-width: 600px; margin-top: 1.6rem; box-shadow: 0 14px 40px rgba(0, 0, 0, .25); }
.av-hero-search i { color: #6b7a80; margin: 0 .7rem; font-size: 1.15rem; }
.av-hero-search input { flex: 1; min-width: 0; border: 0; outline: 0; padding: .85rem .2rem; color: var(--av-ink); background: transparent; }
.av-hero-search button { border: 0; border-radius: 12px; padding: .8rem 1.4rem; font-weight: 800; background: var(--av-primary); color: var(--av-on-primary); }
.av-hero-cards { display: grid; gap: .75rem; }
.av-hero-card { display: flex; align-items: center; gap: .9rem; padding: 1rem 1.1rem; border-radius: 14px; color: #fff; text-decoration: none; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .18); backdrop-filter: blur(6px); transition: background .2s, border-color .2s; }
.av-hero-card:hover { color: #fff; background: rgba(255, 255, 255, .16); border-color: var(--av-primary); }
.av-hero-card > i:first-child { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--av-primary); color: var(--av-on-primary); font-size: 1.25rem; flex-shrink: 0; }
.av-hero-card small { display: block; color: rgba(255, 255, 255, .72); }
.av-stats { display: flex; gap: 2rem; flex-wrap: wrap; margin-top: 1.8rem; }
.av-stats strong { display: block; font-size: 1.6rem; color: var(--av-primary); font-family: var(--av-font-head); }
.av-stats span { font-size: .85rem; color: rgba(255, 255, 255, .75); }

/* ---------- Cartões ---------- */
.av-card { position: relative; background: var(--av-surface); border: 1px solid var(--av-line); border-radius: var(--av-radius); overflow: hidden; box-shadow: var(--av-shadow); transition: transform .2s ease, box-shadow .2s ease; height: 100%; display: flex; flex-direction: column; }
.av-card:hover { transform: translateY(-3px); box-shadow: var(--av-shadow-lg); }
.av-card-media { position: relative; aspect-ratio: 16 / 10; background: #e9ece7; overflow: hidden; display: block; }
.av-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.av-card:hover .av-card-media img { transform: scale(1.04); }
.av-card-media.ratio-portrait { aspect-ratio: 4 / 3.4; }
.av-card-body { padding: 1.1rem 1.15rem 1.25rem; display: flex; flex-direction: column; gap: .45rem; flex: 1; }
.av-card-title { font-size: 1.08rem; font-weight: 800; line-height: 1.35; margin: 0; }
.av-card-title a { color: var(--av-ink); text-decoration: none; }
.av-card-title a::after { content: ""; position: absolute; inset: 0; }
.av-card:hover .av-card-title a { color: var(--av-link); }
.av-card-text { color: var(--av-muted); font-size: .92rem; line-height: 1.55; margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.av-card-meta { color: var(--av-muted); font-size: .8rem; display: flex; gap: .9rem; flex-wrap: wrap; margin-top: auto; }
.av-badge { position: absolute; top: 12px; left: 12px; z-index: 2; background: var(--av-primary); color: var(--av-on-primary); font-size: .68rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; padding: .3rem .6rem; border-radius: 6px; }
.av-badge-dark { background: rgba(var(--av-dark-rgb), .85); color: #fff; }
.av-chip { display: inline-flex; align-items: center; gap: .35rem; padding: .32rem .75rem; border-radius: 999px; background: var(--av-accent-soft); color: var(--av-ink); font-size: .82rem; font-weight: 600; border: 1px solid transparent; text-decoration: none; }
a.av-chip:hover { border-color: var(--av-accent); color: var(--av-ink); }
.av-chip i { color: var(--av-accent); }
.av-chip-primary { background: var(--av-primary-soft); }
.av-chip-primary i { color: var(--av-primary-dark); }
.av-stars { color: #f5a400; letter-spacing: 1px; }
.av-rating { display: inline-flex; align-items: center; gap: .35rem; font-weight: 700; font-size: .88rem; }

/* Lista horizontal (blog) */
.av-row-card { display: flex; gap: 1.1rem; background: #fff; border: 1px solid var(--av-line); border-radius: var(--av-radius); overflow: hidden; margin-bottom: 1rem; position: relative; transition: box-shadow .2s, border-color .2s; }
.av-row-card:hover { box-shadow: var(--av-shadow-lg); }
.av-row-card .av-card-media { width: 230px; flex-shrink: 0; aspect-ratio: 16 / 11; }
.av-row-card .av-card-body { padding: 1rem 1.1rem 1rem 0; }
@media (max-width: 575.98px) {
  .av-row-card { flex-direction: column; }
  .av-row-card .av-card-media { width: 100%; }
  .av-row-card .av-card-body { padding: 1rem; }
}

/* Cartão de província / atalhos */
.av-tile { display: flex; flex-direction: column; align-items: flex-start; gap: .35rem; padding: 1.1rem; height: 100%; background: #fff; border: 1px solid var(--av-line); border-radius: var(--av-radius); text-decoration: none; color: var(--av-ink); transition: transform .2s, box-shadow .2s, border-color .2s; }
.av-tile:hover { transform: translateY(-3px); box-shadow: var(--av-shadow-lg); border-color: var(--av-primary); color: var(--av-ink); }
.av-tile i { font-size: 1.5rem; color: var(--av-accent); }
.av-tile strong { font-size: .98rem; }
.av-tile small { color: var(--av-muted); }

/* Destaque grande (layout jornal/blog) */
.av-feature { position: relative; display: block; border-radius: var(--av-radius); overflow: hidden; min-height: 420px; height: 100%; color: #fff; background: var(--av-dark); text-decoration: none; }
.av-feature img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.av-feature:hover img { transform: scale(1.03); }
.av-feature::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(8, 18, 22, .92), rgba(8, 18, 22, .35) 55%, rgba(8, 18, 22, .05)); }
.av-feature-body { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.5rem; z-index: 2; }
.av-feature-body h2, .av-feature-body h3 { color: #fff; font-weight: 800; line-height: 1.2; margin: .5rem 0; }
.av-feature-body h2 { font-size: clamp(1.4rem, 2.6vw, 2.1rem); }
.av-feature-body h3 { font-size: 1.05rem; }
.av-feature-sm { min-height: 200px; }
.av-feature-meta { font-size: .8rem; opacity: .85; display: flex; gap: 1rem; }
.av-feature:hover h2, .av-feature:hover h3 { text-decoration: underline; text-decoration-color: var(--av-primary); }

/* Carrossel horizontal no telemóvel */
@media (max-width: 767.98px) {
  .av-scroller { display: grid !important; grid-auto-flow: column; grid-auto-columns: minmax(240px, 78%); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: .6rem; margin-right: calc(var(--bs-gutter-x) * -.5); }
  .av-scroller > * { width: auto !important; scroll-snap-align: start; }
}

/* ---------- Barra lateral ---------- */
.av-sidebar { position: sticky; top: calc(var(--av-header-h) + 20px); }
.av-side-card { background: #fff; border: 1px solid var(--av-line); border-radius: var(--av-radius); margin-bottom: 1.25rem; overflow: hidden; }
.av-side-head { padding: .85rem 1.1rem; font-weight: 800; font-size: .95rem; border-bottom: 1px solid var(--av-line); display: flex; align-items: center; gap: .5rem; }
.av-side-head i { color: var(--av-accent); }
.av-side-body { padding: .6rem 1.1rem 1rem; }
.av-mini { display: flex; gap: .8rem; padding: .65rem 0; border-bottom: 1px solid #f0f2ee; text-decoration: none; align-items: center; }
.av-mini:last-child { border-bottom: 0; }
.av-mini-img { width: 76px; height: 58px; border-radius: 8px; overflow: hidden; flex-shrink: 0; background: #eceee9; }
.av-mini-img img { width: 100%; height: 100%; object-fit: cover; }
.av-mini-title { font-size: .87rem; font-weight: 700; color: var(--av-ink); line-height: 1.32; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.av-mini:hover .av-mini-title { color: var(--av-link); }
.av-mini-date { font-size: .75rem; color: var(--av-muted); }
.av-cat-link { display: flex; justify-content: space-between; align-items: center; padding: .5rem 0; color: var(--av-ink); text-decoration: none; border-bottom: 1px solid #f0f2ee; font-weight: 500; }
.av-cat-link:last-child { border-bottom: 0; }
.av-cat-link:hover { color: var(--av-link); }
.av-cat-link span:last-child { background: var(--av-bg); color: var(--av-muted); border-radius: 999px; padding: .05rem .55rem; font-size: .78rem; font-weight: 700; }
.av-cta-card { border-radius: var(--av-radius); padding: 1.5rem; text-align: center; color: var(--av-on-dark); background: linear-gradient(140deg, var(--av-dark), var(--av-dark-2)); margin-bottom: 1.25rem; }
.av-cta-card h3 { color: var(--av-on-dark); font-size: 1.15rem; font-weight: 800; }

/* ---------- Artigo ---------- */
.av-article-head { padding: 1.5rem 0 .5rem; }
.av-article-head h1 { font-size: clamp(1.75rem, 4vw, 2.7rem); font-weight: 800; line-height: 1.15; margin: .6rem 0 1rem; text-wrap: balance; }
.av-article-meta { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; color: var(--av-muted); font-size: .88rem; padding-bottom: 1.1rem; border-bottom: 1px solid var(--av-line); margin-bottom: 1.5rem; align-items: center; }
.av-author-mini { display: inline-flex; align-items: center; gap: .5rem; color: var(--av-ink); font-weight: 600; }
.av-author-mini img, .av-author-mini .av-avatar { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; }
.av-article-cover { margin: 0 0 1.75rem; border-radius: var(--av-radius); overflow: hidden; background: #e9ece7; aspect-ratio: 16 / 9; }
.av-article-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.av-prose { font-size: 1.08rem; line-height: 1.8; color: #22313a; }
.av-prose > * + * { margin-top: 1.1rem; }
.av-prose h2 { font-size: 1.6rem; font-weight: 800; margin-top: 2.4rem; margin-bottom: .2rem; }
.av-prose h3 { font-size: 1.28rem; font-weight: 800; margin-top: 1.8rem; }
.av-prose h4 { font-size: 1.1rem; font-weight: 700; margin-top: 1.4rem; }
.av-prose p { margin-bottom: 0; }
.av-prose ul, .av-prose ol { padding-left: 1.4rem; }
.av-prose li + li { margin-top: .35rem; }
.av-prose img { border-radius: var(--av-radius-sm); margin: 1rem 0; height: auto; }
.av-prose figure { margin: 1.5rem 0; }
.av-prose figcaption { font-size: .85rem; color: var(--av-muted); text-align: center; margin-top: .4rem; }
.av-prose a { color: var(--av-link); text-decoration: underline; }
.av-prose blockquote { border-left: 4px solid var(--av-primary); background: #fff; padding: .9rem 1.2rem; border-radius: 0 var(--av-radius-sm) var(--av-radius-sm) 0; font-style: italic; color: #3d4c53; }
.av-prose table { width: 100%; border-collapse: collapse; font-size: .95rem; display: block; overflow-x: auto; }
.av-prose th, .av-prose td { border: 1px solid var(--av-line); padding: .6rem .8rem; }
.av-prose th { background: #f1f3ef; font-weight: 700; }
.av-prose iframe { max-width: 100%; border-radius: var(--av-radius-sm); }
.av-toc { background: #fff; border: 1px solid var(--av-line); border-radius: var(--av-radius); padding: 1rem 1.25rem; margin-bottom: 1.75rem; }
.av-toc summary { font-weight: 800; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.av-toc summary::-webkit-details-marker { display: none; }
.av-toc ol { margin: .75rem 0 0; padding-left: 1.2rem; }
.av-toc li { margin: .3rem 0; }
.av-toc a { color: var(--av-ink); text-decoration: none; }
.av-toc a:hover { color: var(--av-link); text-decoration: underline; }
.av-related-inline { margin: 2rem 0 !important; padding: 1rem 0; border-top: 2px solid var(--av-line); border-bottom: 2px solid var(--av-line); }
.av-related-inline p { font-weight: 800; color: var(--av-link); text-transform: uppercase; font-size: .76rem; letter-spacing: .08em; margin: 0 0 .6rem !important; }
.av-related-inline a { display: flex; gap: .85rem; align-items: center; text-decoration: none; padding: .35rem; border-radius: 8px; }
.av-related-inline a:hover { background: var(--av-primary-soft); }
.av-related-inline img { width: 86px; height: 64px; object-fit: cover; border-radius: 8px; margin: 0 !important; flex-shrink: 0; }
.av-related-inline span { font-weight: 700; color: var(--av-ink); line-height: 1.35; font-size: .95rem; }
.av-share { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.av-share a, .av-share button { width: 42px; height: 42px; border-radius: 50%; display: inline-grid; place-items: center; color: #fff; border: 0; font-size: 1.05rem; text-decoration: none; transition: transform .15s; }
.av-share a:hover, .av-share button:hover { transform: translateY(-2px); color: #fff; }
.av-share .s-fb { background: #1877f2; } .av-share .s-x { background: #111; } .av-share .s-wa { background: #25d366; }
.av-share .s-in { background: #0a66c2; } .av-share .s-pin { background: #bd081c; } .av-share .s-link, .av-share .s-native { background: var(--av-dark); }
.av-author-box { display: flex; gap: 1rem; background: #fff; border: 1px solid var(--av-line); border-radius: var(--av-radius); padding: 1.25rem; }
.av-author-box .av-avatar { width: 64px; height: 64px; font-size: 1.5rem; flex-shrink: 0; }
.av-tags a { display: inline-block; margin: 0 .35rem .45rem 0; padding: .3rem .8rem; border-radius: 999px; background: #fff; border: 1px solid var(--av-line); color: var(--av-ink); font-size: .84rem; text-decoration: none; }
.av-tags a:hover { border-color: var(--av-link); color: var(--av-link); }

/* FAQ */
.av-faq .accordion-item { border: 1px solid var(--av-line); border-radius: var(--av-radius-sm) !important; overflow: hidden; margin-bottom: .6rem; }
.av-faq .accordion-button { font-weight: 700; color: var(--av-ink); }
.av-faq .accordion-button:not(.collapsed) { background: var(--av-primary-soft); color: var(--av-ink); box-shadow: none; }
.av-faq .accordion-button:focus { box-shadow: none; }
.av-faq .accordion-body { color: #42535b; line-height: 1.7; }

/* Comentários / avaliações */
.av-comment { display: flex; gap: .9rem; padding: 1rem 0; border-bottom: 1px solid var(--av-line); }
.av-comment:last-child { border-bottom: 0; }
.av-comment .av-avatar { width: 42px; height: 42px; flex-shrink: 0; }
.av-comment-name { font-weight: 700; }
.av-comment-date { font-size: .78rem; color: var(--av-muted); }
.av-form-card { background: #fff; border: 1px solid var(--av-line); border-radius: var(--av-radius); padding: 1.4rem; }
.js-star-input button { border: 0; background: none; font-size: 1.6rem; color: #f5a400; padding: 0 .1rem; line-height: 1; }

/* ---------- Praia / local / perfil ---------- */
.av-detail-hero { position: relative; min-height: clamp(320px, 52vh, 520px); display: flex; align-items: flex-end; color: #fff; background: var(--av-dark); overflow: hidden; }
.av-detail-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.av-detail-hero::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(to top, rgba(8, 18, 22, .9) 0%, rgba(8, 18, 22, .35) 55%, rgba(8, 18, 22, .1) 100%); }
.av-detail-hero .container { position: relative; z-index: 2; padding-bottom: 2rem; padding-top: 4rem; }
.av-detail-hero h1 { color: #fff; font-weight: 800; font-size: clamp(2rem, 5vw, 3.4rem); margin: .4rem 0; }
.av-detail-hero .breadcrumb a, .av-detail-hero .breadcrumb-item.active, .av-detail-hero .breadcrumb-item + .breadcrumb-item::before { color: rgba(255, 255, 255, .8); }
.av-detail-hero p { color: rgba(255, 255, 255, .88); max-width: 720px; font-size: 1.08rem; }
.av-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .75rem; }
.av-fact { background: #fff; border: 1px solid var(--av-line); border-radius: var(--av-radius-sm); padding: .85rem 1rem; }
.av-fact small { display: block; color: var(--av-muted); font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; }
.av-fact strong { font-size: .98rem; }
.av-block { background: #fff; border: 1px solid var(--av-line); border-radius: var(--av-radius); padding: clamp(1.1rem, 3vw, 1.75rem); margin-bottom: 1.25rem; }
.av-block > h2 { font-size: 1.35rem; font-weight: 800; display: flex; align-items: center; gap: .6rem; margin-bottom: 1rem; }
.av-block > h2 i { color: var(--av-accent); }
.av-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .6rem; }
.av-gallery button { border: 0; padding: 0; border-radius: var(--av-radius-sm); overflow: hidden; aspect-ratio: 4 / 3; background: #e9ece7; }
.av-gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.av-gallery button:hover img { transform: scale(1.06); }
.av-map { position: relative; height: 260px; border-radius: var(--av-radius-sm); overflow: hidden; background: #dfe7e3 center / cover; cursor: pointer; display: grid; place-items: center; }
.av-map .av-map-cta { background: #fff; padding: .6rem 1rem; border-radius: 999px; font-weight: 700; box-shadow: var(--av-shadow); }
.av-map.is-loaded { cursor: default; }
.av-contact-list a { display: flex; align-items: center; gap: .6rem; padding: .7rem .9rem; border: 1px solid var(--av-line); border-radius: var(--av-radius-sm); margin-bottom: .5rem; color: var(--av-ink); text-decoration: none; font-weight: 600; }
.av-contact-list a:hover { border-color: var(--av-link); color: var(--av-link); }
.av-contact-list i { font-size: 1.15rem; color: var(--av-accent); }
.av-hours td { padding: .35rem 0; }
.av-hours tr.is-today td { font-weight: 800; color: var(--av-link); }
.av-profile-head { display: flex; gap: 1.5rem; align-items: center; flex-wrap: wrap; }
.av-profile-photo { width: 140px; height: 140px; border-radius: 50%; object-fit: cover; border: 5px solid #fff; box-shadow: var(--av-shadow-lg); background: #eef0ec; }
.av-guide-card .av-card-media { aspect-ratio: 1 / 1; }
.btn-wish { border: 2px solid rgba(255, 255, 255, .7); color: #fff; background: rgba(0, 0, 0, .25); font-weight: 700; }
.btn-wish:hover, .btn-wish.is-active { background: #e0245e; border-color: #e0245e; color: #fff; }

/* ---------- Filtros ---------- */
.av-filters { background: #fff; border: 1px solid var(--av-line); border-radius: var(--av-radius); padding: 1.1rem; }
.av-filters .form-label { font-weight: 700; font-size: .85rem; }
.av-filter-group { max-height: 220px; overflow-y: auto; }
.av-results-bar { display: flex; justify-content: space-between; align-items: center; gap: .75rem; margin-bottom: 1rem; flex-wrap: wrap; }

/* ---------- Paginação ---------- */
.av-pagination { margin-top: 2rem; }
.av-pagination .page-link { color: var(--av-ink); border-color: var(--av-line); margin: 0 2px; border-radius: 8px !important; min-width: 40px; text-align: center; }
.av-pagination .page-item.active .page-link { background: var(--av-dark); border-color: var(--av-dark); color: #fff; }

/* ---------- Publicidade ---------- */
.ad-zone { text-align: center; overflow: hidden; }
.ad-zone-label { display: block; font-size: .65rem; text-transform: uppercase; letter-spacing: .1em; color: #98a3a8; margin-bottom: .25rem; }
.ad-zone-article_middle, .ad-zone-article_top, .ad-zone-article_bottom { margin: 1.8rem 0; min-height: 100px; }

/* ---------- Rodapé ---------- */
.av-footer { background: var(--av-dark); color: rgba(255, 255, 255, .75); padding: 3.5rem 0 1.5rem; margin-top: 3rem; }
.av-footer a { color: rgba(255, 255, 255, .8); text-decoration: none; }
.av-footer a:hover { color: var(--av-primary); }
.av-footer-brand { font-family: var(--av-font-head); font-size: 1.45rem; font-weight: 800; color: #fff !important; }
.av-footer-title { font-size: .8rem; text-transform: uppercase; letter-spacing: .14em; color: #fff; font-weight: 800; margin-bottom: 1rem; }
.av-footer-links li { margin-bottom: .5rem; }
.av-socials { display: flex; gap: .5rem; flex-wrap: wrap; }
.av-socials a { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .08); color: #fff; font-size: 1.05rem; }
.av-socials a:hover { background: var(--av-primary); color: var(--av-on-primary); }
.av-newsletter .form-control { border: 0; }
.av-footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 2.5rem; padding-top: 1.25rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; font-size: .85rem; }

/* ---------- Newsletter / CTA ---------- */
.av-cta-band { background: var(--av-primary); color: var(--av-on-primary); border-radius: var(--av-radius); padding: clamp(1.75rem, 4vw, 3rem); }
.av-cta-band h2 { color: var(--av-on-primary); font-weight: 800; }
.av-cta-band p { color: var(--av-on-primary); opacity: .9; }

/* ---------- Autenticação ---------- */
.av-auth { min-height: calc(100vh - var(--av-header-h)); display: grid; grid-template-columns: 1fr 1fr; }
.av-auth-side { position: relative; background: var(--av-dark) center / cover; color: #fff; display: flex; align-items: flex-end; padding: 3rem; }
.av-auth-side::before { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(var(--av-dark-rgb), .95), rgba(var(--av-dark-rgb), .35)); }
.av-auth-side > div { position: relative; }
.av-auth-side h2 { color: #fff; font-weight: 800; }
.av-auth-main { display: flex; align-items: center; justify-content: center; padding: 2.5rem 1.25rem; background: #fff; }
.av-auth-box { width: 100%; max-width: 440px; }
.av-auth-box h1 { font-weight: 800; font-size: 1.8rem; }
.av-type-choice { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; }
.av-type-choice label { border: 2px solid var(--av-line); border-radius: var(--av-radius-sm); padding: .8rem .5rem; text-align: center; cursor: pointer; font-size: .85rem; font-weight: 600; height: 100%; }
.av-type-choice label i { display: block; font-size: 1.4rem; color: var(--av-accent); margin-bottom: .25rem; }
.av-type-choice input:checked + label { border-color: var(--av-link); background: var(--av-accent-soft); }
.btn-google { background: #fff; border: 1px solid #dadce0; color: #3c4043; font-weight: 600; }
.btn-google:hover { background: #f7f8f8; }
.av-divider { display: flex; align-items: center; gap: .75rem; color: var(--av-muted); font-size: .85rem; margin: 1.25rem 0; }
.av-divider::before, .av-divider::after { content: ""; flex: 1; height: 1px; background: var(--av-line); }
@media (max-width: 991.98px) { .av-auth { grid-template-columns: 1fr; } .av-auth-side { display: none; } }

/* ---------- Painéis de utilizador ---------- */
.av-panel { display: grid; grid-template-columns: 250px 1fr; gap: 1.5rem; padding: 1.5rem 0 3rem; }
.av-panel-nav { background: #fff; border: 1px solid var(--av-line); border-radius: var(--av-radius); padding: .75rem; align-self: start; position: sticky; top: calc(var(--av-header-h) + 16px); }
.av-panel-nav .av-panel-user { display: flex; gap: .7rem; align-items: center; padding: .5rem .5rem 1rem; border-bottom: 1px solid var(--av-line); margin-bottom: .5rem; }
.av-panel-nav a { display: flex; align-items: center; gap: .65rem; padding: .6rem .75rem; border-radius: 10px; color: var(--av-ink); text-decoration: none; font-weight: 600; font-size: .93rem; }
.av-panel-nav a i { color: var(--av-muted); width: 20px; text-align: center; }
.av-panel-nav a:hover { background: var(--av-bg); }
.av-panel-nav a.active { background: var(--av-dark); color: #fff; }
.av-panel-nav a.active i { color: var(--av-primary); }
.av-panel-nav .badge { margin-left: auto; }
.av-panel-main { min-width: 0; }
.av-panel-title { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.av-panel-title h1 { font-size: 1.6rem; font-weight: 800; margin: 0; }
.av-stat { background: #fff; border: 1px solid var(--av-line); border-radius: var(--av-radius); padding: 1.1rem 1.2rem; height: 100%; }
.av-stat small { color: var(--av-muted); font-weight: 700; text-transform: uppercase; font-size: .72rem; letter-spacing: .06em; }
.av-stat strong { display: block; font-size: 1.8rem; font-family: var(--av-font-head); line-height: 1.2; }
.av-stat i { float: right; font-size: 1.6rem; color: var(--av-accent); }
.av-card-plain { background: #fff; border: 1px solid var(--av-line); border-radius: var(--av-radius); padding: 1.25rem; }
@media (max-width: 991.98px) {
  .av-panel { grid-template-columns: 1fr; }
  .av-panel-nav { position: static; display: flex; overflow-x: auto; gap: .25rem; padding: .5rem; }
  .av-panel-nav .av-panel-user { display: none; }
  .av-panel-nav a { white-space: nowrap; }
}

/* Chat */
.av-chat { display: grid; grid-template-columns: 300px 1fr; height: min(70vh, 640px); background: #fff; border: 1px solid var(--av-line); border-radius: var(--av-radius); overflow: hidden; }
.av-chat-list { border-right: 1px solid var(--av-line); overflow-y: auto; }
.av-chat-list a { display: flex; gap: .7rem; padding: .85rem 1rem; border-bottom: 1px solid #f0f2ee; color: var(--av-ink); text-decoration: none; align-items: center; }
.av-chat-list a.active, .av-chat-list a:hover { background: var(--av-bg); }
.av-chat-main { display: flex; flex-direction: column; min-width: 0; }
.av-chat-msgs { flex: 1; overflow-y: auto; padding: 1rem; background: #fafaf7; display: flex; flex-direction: column; gap: .5rem; }
.av-msg { max-width: 75%; padding: .6rem .85rem; border-radius: 14px; background: #fff; border: 1px solid var(--av-line); align-self: flex-start; white-space: pre-wrap; word-wrap: break-word; }
.av-msg.me { align-self: flex-end; background: var(--av-dark); color: #fff; border-color: var(--av-dark); }
.av-msg time { display: block; font-size: .7rem; opacity: .65; margin-top: .2rem; }
.av-chat-form { display: flex; gap: .5rem; padding: .75rem; border-top: 1px solid var(--av-line); }
@media (max-width: 767.98px) { .av-chat { grid-template-columns: 1fr; height: auto; } .av-chat-list { max-height: 220px; border-right: 0; border-bottom: 1px solid var(--av-line); } .av-chat-msgs { min-height: 50vh; } }

/* Utilitários */
.av-empty { text-align: center; padding: 3rem 1rem; color: var(--av-muted); background: #fff; border: 1px dashed var(--av-line); border-radius: var(--av-radius); }
.av-empty i { font-size: 2.6rem; opacity: .35; display: block; margin-bottom: .6rem; }
.object-fit-cover { object-fit: cover; }
.breadcrumb { font-size: .86rem; }
.breadcrumb a { text-decoration: none; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
.av-user-nav .nav-link, .av-user-nav .btn, .av-header .nav-link { white-space: nowrap; }
@media (min-width: 992px) { .av-user-nav { align-items: center; } }

/* ---------- Arquivo de artigos (/blog) ---------- */
.av-archive-header { background: linear-gradient(135deg, var(--av-dark), var(--av-dark-2)); color: var(--av-on-dark); padding: 2.6rem 0 2.2rem; margin-bottom: 2rem; }
.av-archive-header h1 { color: #fff; font-size: clamp(1.7rem, 3.6vw, 2.2rem); font-weight: 800; margin: .3rem 0 .5rem; }
.av-archive-header .subtitle { font-size: 1.08rem; opacity: .9; margin: 0; }
.av-archive-header .breadcrumb { margin: 0; font-size: .88rem; }
.av-archive-header .breadcrumb a, .av-archive-header .breadcrumb-item.active, .av-archive-header .breadcrumb-item + .breadcrumb-item::before { color: rgba(255, 255, 255, .75); text-decoration: none; }
.av-filter-bar { background: #fff; border: 1px solid #e0e6ee; border-radius: var(--av-radius-sm); padding: 1rem 1.25rem; margin-bottom: 1.5rem; }
.av-cat-chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.5rem; }
.av-cat-chip { padding: .45rem 1rem; background: #fff; border: 1px solid #e0e6ee; color: #1f2a38; border-radius: 999px; font-size: .88rem; font-weight: 500; text-decoration: none; transition: border-color .2s, color .2s, background .2s; }
.av-cat-chip:hover { border-color: var(--av-accent); color: var(--av-accent); }
.av-cat-chip.active { background: var(--av-dark); border-color: var(--av-dark); color: #fff; }
.av-cat-chip .count { opacity: .7; font-weight: 400; margin-left: 2px; }
.av-article-card { position: relative; background: #fff; border: 1px solid #e6eaf0; border-radius: var(--av-radius-sm); overflow: hidden; height: 100%; display: flex; flex-direction: column; transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.av-article-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(var(--av-dark-rgb), .12); border-color: #c3cedd; }
.av-article-card-img { display: block; aspect-ratio: 16 / 9; background: #eef2f7; overflow: hidden; }
.av-article-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.av-article-card:hover .av-article-card-img img { transform: scale(1.05); }
.av-article-card-ph { display: flex; align-items: center; justify-content: center; height: 100%; color: #c3cedd; font-size: 3rem; }
.av-article-card-badge { position: absolute; top: 12px; left: 12px; background: rgba(255, 255, 255, .95); color: var(--av-dark); padding: .3rem .75rem; border-radius: 999px; font-size: .72rem; font-weight: 700; text-decoration: none; text-transform: uppercase; letter-spacing: .5px; transition: background .2s, color .2s; }
.av-article-card-badge:hover { background: var(--av-primary); color: var(--av-on-primary); }
.av-article-card-body { padding: 1.25rem; flex: 1; display: flex; flex-direction: column; }
.av-article-card-title { font-size: 1.12rem; font-weight: 700; line-height: 1.35; margin-bottom: .6rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.av-article-card-title a { color: #1f2a38; text-decoration: none; }
.av-article-card-title a::after { content: ""; position: absolute; inset: 0; z-index: 0; }
.av-article-card:hover .av-article-card-title a { color: var(--av-link); }
.av-article-card-badge { z-index: 1; }
.av-article-card-excerpt { color: #64748b; font-size: .92rem; line-height: 1.5; margin-bottom: 1rem; flex: 1; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.av-article-card-meta { font-size: .8rem; color: #6b7889; padding-top: .75rem; border-top: 1px solid #eef2f7; display: flex; justify-content: space-between; align-items: center; }
.av-empty-state { background: #fff; border: 2px dashed #e0e6ee; border-radius: var(--av-radius-sm); padding: 4rem 2rem; text-align: center; }
.av-empty-state > i { font-size: 4rem; color: #c3cedd; display: block; margin-bottom: 1rem; }
.av-pagination .page-link { color: var(--av-dark); border-color: #e0e6ee; }
.av-pagination .page-link:hover { background: #f0f5fa; border-color: var(--av-dark); }
.av-pagination .page-item.active .page-link { background: var(--av-dark); border-color: var(--av-dark); color: #fff; }