/* Guará Passeios & Transfer — v1 */
:root {
  --red: #d42a1f;
  --red-deep: #9e1b14;
  --orange: #f0772b;
  --sun: #f5b72e;
  --green: #1d6b3f;
  --green-deep: #0f3d25;
  --sand: #f7f1e6;
  --sand-2: #efe5d2;
  --ink: #17140f;
  --ink-2: #4a443b;
  --line: #e2d7c3;
  --white: #fff;
  --wa: #1fae55;
  --radius: 18px;
  --shadow: 0 18px 40px -18px rgba(23, 20, 15, .35);
  --display: "Bricolage Grotesque", system-ui, sans-serif;
  --body: "Inter", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; font-family: var(--body); color: var(--ink); background: var(--sand); line-height: 1.55; -webkit-font-smoothing: antialiased; }
img, video { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.02; margin: 0; letter-spacing: -.02em; }
h2 { font-size: clamp(2rem, 4.4vw, 3.6rem); font-weight: 800; }
p { margin: 0 0 1em; }
.wrap { width: min(1240px, 100% - 40px); margin-inline: auto; }

.eyebrow { font: 600 .78rem/1 var(--body); letter-spacing: .16em; text-transform: uppercase; color: var(--sun); margin-bottom: 18px; }
.eyebrow--dark { color: var(--red); }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: .5em; padding: .9em 1.5em; border-radius: 999px; font: 600 .95rem var(--body); text-decoration: none; border: 0; cursor: pointer; transition: transform .2s, background .2s, color .2s; white-space: nowrap; }
.btn:hover { transform: translateY(-2px); }
.btn svg { width: 1.25em; height: 1.25em; }
.btn--light { background: var(--white); color: var(--ink); }
.btn--ghost { color: var(--white); box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.7); }
.btn--ghost:hover { background: rgba(255,255,255,.12); }
.btn--wa { background: var(--wa); color: var(--white); }
.btn--red { background: var(--red); color: var(--white); }
.btn--outline { box-shadow: inset 0 0 0 1.5px var(--ink); color: var(--ink); background: transparent; }
.btn--big { font-size: 1.15rem; padding: 1em 1.8em; }

/* NAV */
.nav { position: fixed; inset: 0 0 auto; z-index: 1000; display: flex; align-items: center; gap: 28px; padding: 14px clamp(16px, 3vw, 40px); color: var(--white); transition: background .3s, color .3s, box-shadow .3s; }
.nav.is-solid { background: rgba(247, 241, 230, .94); backdrop-filter: blur(12px); color: var(--ink); box-shadow: 0 1px 0 var(--line); }
.nav__brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 800 1.35rem/1 var(--display); }
.nav__brand img { width: 44px; height: 44px; }
.nav__brand small { display: block; font: 500 .66rem/1.4 var(--body); letter-spacing: .08em; text-transform: uppercase; opacity: .8; }
.nav__links { display: flex; gap: 26px; margin-left: auto; }
.nav__links a { text-decoration: none; font-weight: 500; font-size: .95rem; position: relative; }
.nav__links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; background: currentColor; transform: scaleX(0); transition: transform .25s; }
.nav__links a:hover::after { transform: scaleX(1); }
.nav__cta { padding: .7em 1.2em; }
.nav__toggle { display: none; background: none; border: 0; width: 40px; height: 40px; cursor: pointer; color: inherit; position: relative; }
.nav__toggle span { position: absolute; left: 9px; right: 9px; height: 2px; background: currentColor; transition: transform .25s; }
.nav__toggle span:first-child { top: 15px; } .nav__toggle span:last-child { top: 23px; }
.nav__toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* HERO */
.hero { position: relative; min-height: 100svh; display: grid; align-content: end; color: var(--white); overflow: hidden; background: #2b3a2e; }
.hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.35) 0%, rgba(0,0,0,0) 30%, rgba(0,0,0,.15) 55%, rgba(10,8,5,.78) 100%); }
.hero__content { position: relative; text-shadow: 0 2px 18px rgba(0,0,0,.3); padding: 0 clamp(16px, 5vw, 80px) 40px; max-width: 980px; }
.hero h1 { font-size: clamp(3.2rem, 10vw, 8.6rem); font-weight: 800; letter-spacing: -.035em; line-height: .92; margin-bottom: 24px; }
.hero h1 em { font-style: normal; color: #ff5a3c; }
.hero__lead { font-size: clamp(1.05rem, 1.6vw, 1.3rem); max-width: 560px; opacity: .92; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero__facts { position: relative; display: flex; gap: clamp(20px, 5vw, 64px); padding: 22px clamp(16px, 5vw, 80px) 30px; border-top: 1px solid rgba(255,255,255,.22); margin-top: 40px; }
.hero__facts strong { display: block; font: 800 clamp(1.6rem, 3vw, 2.4rem)/1 var(--display); }
.hero__facts span { font-size: .85rem; opacity: .8; }

/* SECTIONS */
.section { padding: clamp(72px, 10vw, 130px) 0; }
.section__head { max-width: 760px; margin-bottom: 40px; }
.section__sub { font-size: 1.1rem; color: var(--ink-2); max-width: 620px; margin-top: 18px; }

/* CHIPS */
.chips { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 32px; }
.chip { border: 1.5px solid var(--line); background: var(--white); color: var(--ink); border-radius: 999px; padding: .6em 1.15em; font: 500 .92rem var(--body); cursor: pointer; transition: all .2s; }
.chip:hover { border-color: var(--ink); }
.chip[aria-selected="true"] { background: var(--ink); color: var(--white); border-color: var(--ink); }

/* CARDS */
.cards { display: grid; grid-template-columns: repeat(12, 1fr); gap: 22px; }
.card { grid-column: span 4; position: relative; border-radius: var(--radius); overflow: hidden; background: #222; color: var(--white); min-height: 460px; display: flex; flex-direction: column; justify-content: flex-end; cursor: pointer; isolation: isolate; text-align: left; border: 0; padding: 0; font: inherit; box-shadow: var(--shadow); }
.card--wide { grid-column: span 8; }
.card--half { grid-column: span 6; }
.card--full { grid-column: span 12; }
.card img, .card video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.card:hover img, .card:hover video { transform: scale(1.05); }
.card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0,0,0,.05) 25%, rgba(0,0,0,.45) 55%, rgba(0,0,0,.88) 100%); }
.card h3, .card p { text-shadow: 0 1px 12px rgba(0,0,0,.35); }
.card--dark img { filter: brightness(.55) saturate(.8) hue-rotate(-10deg); }
.card__tag { position: absolute; top: 16px; left: 16px; background: rgba(255,255,255,.92); color: var(--ink); font: 600 .74rem var(--body); letter-spacing: .04em; padding: .45em .85em; border-radius: 999px; }
.card__tag i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; vertical-align: 1px; }
.card__body { padding: 24px; }
.card h3 { font-size: clamp(1.5rem, 2.2vw, 2rem); font-weight: 800; margin-bottom: 10px; }
.card p { font-size: .95rem; opacity: .88; margin-bottom: 14px; max-width: 520px; }
.meta { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .85rem; }
.meta span { display: inline-flex; align-items: center; gap: 6px; }
.meta svg { width: 16px; height: 16px; opacity: .85; }
.card__go { position: absolute; top: 14px; right: 14px; width: 42px; height: 42px; border-radius: 50%; background: var(--white); color: var(--ink); display: grid; place-items: center; transform: rotate(-45deg); transition: transform .3s; }
.card:hover .card__go { transform: rotate(0); }
.card__go svg { width: 20px; height: 20px; }

/* MAP SECTION */
.mapsec { display: grid; grid-template-columns: minmax(340px, 440px) 1fr; background: var(--white); min-height: 760px; }
.mapsec__panel { padding: clamp(40px, 5vw, 64px) clamp(20px, 3vw, 40px); overflow: auto; max-height: 100svh; }
.mapsec__panel h2 { font-size: clamp(1.9rem, 3vw, 2.8rem); }
.mapsec__panel .section__sub { font-size: 1rem; }
.maplist { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 8px; }
.maplist button { width: 100%; display: grid; grid-template-columns: 56px 1fr; gap: 14px; align-items: center; padding: 10px; border: 1.5px solid transparent; border-radius: 14px; background: var(--sand); cursor: pointer; text-align: left; font: inherit; color: inherit; transition: border-color .2s, background .2s; }
.maplist button:hover { border-color: var(--line); }
.maplist button[aria-pressed="true"] { border-color: var(--ink); background: var(--white); }
.maplist img { width: 56px; height: 56px; object-fit: cover; border-radius: 10px; }
.maplist strong { display: block; font: 700 1rem/1.15 var(--display); }
.maplist small { color: var(--ink-2); font-size: .8rem; display: flex; align-items: center; gap: 4px; margin-top: 3px; }
.maplist small i { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.mapsec__map { position: relative; min-height: 520px; }
#map { position: absolute; inset: 0; background: #cfd9cf; }
.mapcard { position: absolute; left: 20px; bottom: 20px; z-index: 500; width: min(380px, calc(100% - 40px)); background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.mapcard__img { height: 110px; object-fit: cover; width: 100%; }
.mapcard__body { padding: 18px 20px 20px; }
.mapcard h3 { font-size: 1.35rem; margin-bottom: 8px; }
.mapcard .meta { color: var(--ink-2); margin-bottom: 12px; }
.mapcard__start { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; background: var(--sand); padding: 10px 12px; border-radius: 12px; margin-bottom: 14px; }
.mapcard__start svg { width: 18px; height: 18px; flex: none; color: var(--red); margin-top: 2px; }
.mapcard__actions { display: flex; gap: 8px; flex-wrap: wrap; }
.mapcard__actions .btn { padding: .7em 1.1em; font-size: .88rem; }
.mapcard__close { position: absolute; top: 10px; right: 10px; width: 34px; height: 34px; border-radius: 50%; border: 0; background: rgba(255,255,255,.95); cursor: pointer; display: grid; place-items: center; }
.mapcard__close svg { width: 16px; height: 16px; }

/* Map markers */
.pin { width: 36px; height: 36px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--c, var(--red)); border: 3px solid #fff; box-shadow: 0 6px 14px rgba(0,0,0,.35); display: grid; place-items: center; }
.pin img { width: 18px; height: 18px; transform: rotate(45deg); filter: brightness(0) invert(1); }
.pin span { transform: rotate(45deg); color: #fff; font: 800 .8rem var(--display); }
.stop { width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 3px solid var(--c, var(--red)); box-shadow: 0 2px 6px rgba(0,0,0,.3); }
.stop--star { width: 22px; height: 22px; background: var(--c, var(--red)); border-color: #fff; display: grid; place-items: center; animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(212,42,31,.6); } 70% { box-shadow: 0 0 0 14px rgba(212,42,31,0); } 100% { box-shadow: 0 0 0 0 rgba(212,42,31,0); } }
.leaflet-tooltip.tip { background: var(--ink); color: #fff; border: 0; border-radius: 8px; font: 600 .78rem var(--body); padding: 6px 10px; box-shadow: none; }
.leaflet-tooltip.tip::before { display: none; }
.leaflet-popup-content-wrapper { border-radius: 12px; }
.leaflet-popup-content { margin: 12px 14px; font: .88rem/1.4 var(--body); }
.leaflet-popup-content strong { font-family: var(--display); font-size: 1rem; }
.mapnote { position: absolute; right: 12px; bottom: 26px; z-index: 500; background: rgba(255,255,255,.9); font-size: .72rem; padding: 4px 10px; border-radius: 999px; color: var(--ink-2); }

/* REVOADA */
.revoada { background: var(--red-deep); background: radial-gradient(120% 90% at 0% 0%, #e2452a 0%, #a61d15 45%, #5c0f0b 100%); color: var(--white); padding: clamp(72px, 10vw, 130px) 0; overflow: hidden; }
.revoada__grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(32px, 6vw, 90px); align-items: center; }
.revoada h2 { margin-bottom: 26px; }
.revoada p { font-size: 1.1rem; opacity: .92; max-width: 520px; }
.revoada__links { display: flex; flex-direction: column; gap: 10px; margin-top: 30px; }
.revoada__links button { display: flex; justify-content: space-between; align-items: center; gap: 12px; width: 100%; max-width: 520px; padding: 16px 20px; border-radius: 14px; border: 1px solid rgba(255,255,255,.3); background: rgba(255,255,255,.06); color: #fff; font: 600 1rem var(--body); cursor: pointer; text-align: left; transition: background .2s; }
.revoada__links button:hover { background: rgba(255,255,255,.16); }
.revoada__links small { display: block; font-weight: 400; opacity: .8; font-size: .85rem; }
.revoada__links svg { width: 20px; height: 20px; flex: none; }
.revoada__videos { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.revoada__videos video { width: 100%; aspect-ratio: 9/16; object-fit: cover; border-radius: var(--radius); box-shadow: 0 30px 60px -20px rgba(0,0,0,.5); }
.revoada__videos video:last-child { margin-top: 60px; }

/* MOSAIC */
.mosaic { display: grid; grid-auto-flow: dense; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 240px; gap: 16px; }
.mosaic figure { margin: 0; position: relative; border-radius: var(--radius); overflow: hidden; }
.mosaic .m-tall { grid-row: span 2; }
.mosaic img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s; }
.mosaic figure:hover img { transform: scale(1.04); }
.mosaic figcaption { position: absolute; left: 12px; bottom: 12px; background: rgba(255,255,255,.92); padding: .35em .8em; border-radius: 999px; font-size: .82rem; font-weight: 600; }

/* SOBRE */
.sobre { padding: clamp(72px, 10vw, 120px) 0; background: var(--sand-2); }
.sobre__grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(32px, 6vw, 90px); align-items: start; }
.pillars { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.pillars li { background: var(--white); border-radius: var(--radius); padding: 26px; }
.pillars svg { width: 30px; height: 30px; color: var(--green); margin-bottom: 14px; }
.pillars h3 { font-size: 1.3rem; margin-bottom: 8px; }
.pillars p { color: var(--ink-2); margin: 0; font-size: .95rem; }

/* CTA */
.cta { position: relative; min-height: 70svh; display: grid; place-items: center; text-align: center; color: #fff; overflow: hidden; background: #123; }
.cta video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 78%; }
.cta::after { content: ""; position: absolute; inset: 0; background: rgba(8, 20, 30, .5); }
.cta__inner { position: relative; z-index: 1; padding: 60px 20px; max-width: 760px; }
.cta h2 { margin-bottom: 18px; }
.cta p { font-size: 1.15rem; opacity: .92; margin-bottom: 30px; }

/* FOOTER */
.footer { background: var(--green-deep); color: #e8efe9; padding: 64px 0 28px; font-size: .95rem; }
.footer__grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 40px; }
.footer__brand img { margin-bottom: 14px; }
.footer h4 { font-size: 1rem; margin-bottom: 14px; color: #fff; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer a { text-decoration: none; opacity: .85; }
.footer a:hover { opacity: 1; text-decoration: underline; }
.footer__legal { width: min(1240px, 100% - 40px); margin: 40px auto 0; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.15); font-size: .82rem; opacity: .7; }

/* WhatsApp float */
.wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 900; width: 60px; height: 60px; border-radius: 50%; background: var(--wa); color: #fff; display: grid; place-items: center; box-shadow: 0 10px 25px rgba(0,0,0,.25); transition: transform .2s; }
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 32px; height: 32px; }

/* DETAIL DIALOG */
.detail { border: 0; padding: 0; width: min(1080px, 100% - 32px); max-height: calc(100svh - 48px); border-radius: 22px; background: var(--sand); color: var(--ink); box-shadow: 0 40px 90px rgba(0,0,0,.5); overflow: hidden; }
.detail::backdrop { background: rgba(10, 8, 5, .65); backdrop-filter: blur(4px); }
.detail[open] { animation: rise .35s cubic-bezier(.2,.7,.2,1); }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } }
.detail__inner { display: grid; grid-template-columns: 1fr 1fr; max-height: calc(100svh - 48px); }
.detail__media { position: relative; background: #111; min-height: 300px; }
.detail__media > img, .detail__media > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.detail__thumbs { position: absolute; left: 14px; bottom: 14px; display: flex; gap: 8px; }
.detail__thumbs button { width: 58px; height: 58px; border-radius: 10px; overflow: hidden; border: 2px solid rgba(255,255,255,.6); padding: 0; cursor: pointer; background: none; }
.detail__thumbs button[aria-current="true"] { border-color: #fff; box-shadow: 0 0 0 2px var(--red); }
.detail__thumbs img { width: 100%; height: 100%; object-fit: cover; }
.detail__content { overflow: auto; padding: 36px 34px 30px; }
.detail__close { position: absolute; top: 14px; right: 14px; z-index: 5; width: 42px; height: 42px; border: 0; border-radius: 50%; background: #fff; cursor: pointer; display: grid; place-items: center; box-shadow: 0 4px 12px rgba(0,0,0,.2); }
.detail__close svg { width: 20px; height: 20px; }
.detail h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); margin: 6px 0 14px; }
.detail .lead { color: var(--ink-2); }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 20px 0; }
.facts div { background: var(--white); border-radius: 12px; padding: 12px; }
.facts small { display: block; font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-2); margin-bottom: 3px; }
.facts strong { font-size: .92rem; line-height: 1.25; display: block; }
.start { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 14px; background: var(--white); border-left: 4px solid var(--red); margin-bottom: 22px; }
.start svg { width: 22px; height: 22px; color: var(--red); flex: none; margin-top: 1px; }
.start strong { display: block; }
.start span { font-size: .88rem; color: var(--ink-2); }
.timeline { list-style: none; padding: 0; margin: 0 0 22px; position: relative; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: var(--line); }
.timeline li { position: relative; padding: 0 0 14px 32px; font-size: .95rem; }
.timeline li::before { content: ""; position: absolute; left: 0; top: 5px; width: 12px; height: 12px; border-radius: 50%; background: var(--sand); border: 2.5px solid var(--green); }
.timeline li.is-hl::before { background: var(--red); border-color: var(--red); }
.timeline li.is-hl { font-weight: 600; }
.timeline time { display: inline-block; font: 700 .8rem var(--display); background: var(--ink); color: #fff; border-radius: 6px; padding: 1px 7px; margin-right: 8px; }
.note { font-size: .88rem; background: #fff6df; border-radius: 12px; padding: 10px 14px; color: #6a4c06; }
.detail__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }

/* Responsive */
@media (max-width: 1080px) {
  .card { grid-column: span 6; }
  .card--wide { grid-column: span 12; }
}
@media (max-width: 900px) {
  .nav__links { position: fixed; inset: 0; background: var(--sand); color: var(--ink); flex-direction: column; justify-content: center; align-items: center; gap: 28px; font-size: 1.4rem; opacity: 0; pointer-events: none; transition: opacity .25s; z-index: -1; }
  .nav__links a { font: 700 1.8rem var(--display); }
  .nav__links.is-open { opacity: 1; pointer-events: auto; }
  .nav.menu-open { color: var(--ink); }
  .nav__toggle { display: block; }
  .nav__cta { margin-left: auto; }
  .mapsec { grid-template-columns: 1fr; }
  .mapsec__panel { max-height: none; padding-bottom: 12px; }
  .maplist { grid-auto-flow: column; grid-auto-columns: 78%; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; }
  .maplist li { scroll-snap-align: start; }
  .mapsec__map { min-height: 70svh; }
  .mapcard { left: 12px; right: 12px; bottom: 12px; width: auto; }
  .mapcard__img { display: none; }
  .revoada__grid, .sobre__grid { grid-template-columns: 1fr; }
  .detail__inner { grid-template-columns: 1fr; overflow: auto; }
  .detail__media { min-height: 260px; }
  .detail__content { overflow: visible; }
  .footer__grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .wrap { width: calc(100% - 32px); }
  .card, .card--wide { grid-column: span 12; min-height: 420px; }
  .nav__cta { display: none; }
  .nav__brand small { display: none; }
  .mosaic { grid-template-columns: 1fr 1fr; grid-auto-rows: 180px; gap: 10px; }
  .pillars { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr 1fr; }
  .detail { width: 100%; max-height: 100svh; border-radius: 0; margin: 0; max-width: 100%; height: 100svh; }
  .detail__inner { max-height: 100svh; }
  .detail__content { padding: 26px 20px 30px; }
  .hero__facts { gap: 22px; }
  .revoada__videos video:last-child { margin-top: 30px; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

.hero .eyebrow { color: #ffd166; }
.detail__close { top: 14px; right: 14px; }
@media (max-width: 1080px) { .card--half { grid-column: span 6; } }
@media (max-width: 900px) {
  body.mapcard-open .wa-float { opacity: 0; pointer-events: none; }
  .mapnote { bottom: auto; top: 12px; right: 64px; }
}
@media (max-width: 640px) { .card--half, .card--full { grid-column: span 12; } }

/* Mídia do detalhe + crédito de fotos */
.detail__fig { position: absolute; inset: 0; }
.detail__fig img, .detail__fig video { width: 100%; height: 100%; object-fit: cover; }
.credit { position: absolute; right: 10px; top: 10px; background: rgba(0,0,0,.55); color: #fff; font-size: .7rem; padding: 3px 8px; border-radius: 999px; text-decoration: none; }
.credit:hover { background: rgba(0,0,0,.8); }
.footer__credits { margin-top: 6px; padding-top: 0; border-top: 0; font-size: .74rem; }
.footer__credits:empty { display: none; }
.detail__fig img.is-contain { object-fit: contain; background: #1b1b1b; }

/* Mapa: cabe na tela, controles não passam por cima do menu */
.mapsec__map { isolation: isolate; }
@media (min-width: 901px) {
  .mapsec { height: calc(100svh - 72px); min-height: 600px; }
  .mapsec__panel { max-height: none; height: 100%; }
}
.howto { display: inline-block; margin-top: 4px; font-size: .82rem; font-weight: 600; color: var(--red); text-decoration: none; }
.howto:hover { text-decoration: underline; }
.start .howto { display: block; }

/* Rodapé: associações */
.footer__grid { grid-template-columns: 1.3fr 1fr 1fr 1fr; }
.assoc a { display: inline-flex; align-items: center; gap: 8px; }
.assoc svg { width: 18px; height: 18px; flex: none; }
@media (max-width: 900px) { .footer__grid { grid-template-columns: 1fr; } }

/* Menu do celular: com a barra "sólida" (backdrop-filter) o menu fixo ficava preso
   à altura da barra e os links vazavam por cima da página. */
.nav.menu-open { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--sand); box-shadow: none; }

.inclui { list-style: none; padding: 0; margin: 0 0 20px; display: flex; flex-wrap: wrap; gap: 6px; }
.inclui li { background: #e6f4f1; color: #0b5e53; border-radius: 999px; padding: .3em .8em; font-size: .85rem; font-weight: 500; }
.mapcard__start .howto { display: block; }

/* Vídeo final: no celular o barco fica abaixo do botão */
@media (max-width: 700px) { .cta video { object-position: center top; } }

/* Detalhe no desktop: altura presa à tela para as miniaturas nunca serem cortadas; o texto rola por dentro */
@media (min-width: 901px) {
  .detail__inner { height: min(820px, calc(100svh - 48px)); grid-template-rows: minmax(0, 1fr); }
  .detail__content { min-height: 0; }
}
