/* Extends the existing Explorer without changing the Jaguar package rules. */
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { overflow: auto; }
body { color: #18291f; font-size: 1rem; line-height: 1.5; }
body:not(.catalog-mode) { display: grid; grid-template-rows: auto auto minmax(0, 1fr) auto; height: 100vh; height: 100dvh; }
button, input, textarea { font: inherit; }
a, button { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .55; }
:focus-visible { outline: 3px solid #cc9215; outline-offset: 4px; }
.topbar { position: sticky; height: auto; min-height: 64px; padding: 12px 24px; justify-content: space-between; gap: 20px; grid-row: 1; }
.logo { color: #fff; text-decoration: none; font-size: 1.15rem; }
.home-link { color: #fff; font-size: .95rem; text-decoration: none; border: 1px solid #ffffff60; border-radius: 30px; padding: 7px 16px; white-space: nowrap; }
.catalog-mode { height: auto; min-height: 100vh; overflow: auto; background: #0f2118; color: #fff; }
.expedition-catalog { max-width: 1250px; padding: 48px 24px 60px; margin: auto; }
.catalog-heading { max-width: 850px; margin-bottom: 32px; }
.eyebrow { color: #b7820e; font-size: .78rem; font-weight: 800; letter-spacing: .12em; }
.catalog-mode .eyebrow { color: #e5be53; }
.catalog-heading h1 { font-size: clamp(2rem, 5vw, 3.5rem); line-height: 1.15; letter-spacing: -.03em; margin: 12px 0; }
.catalog-heading p { color: #d8e5de; margin: 0; font-size: 1.1rem; }
.expedition-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.expedition-card { display: flex; flex-direction: column; padding: 24px; background: #193d2c; border: 1px solid #ffffff2b; border-top: 4px solid #d4a52c; border-radius: 14px; }
.chapada-card { border-top-color: #ca8051; }.jaciara-card { border-top-color: #52b5c3; }.nobres-card { border-top-color: #58b7a3; }.caceres-card { border-top-color: #d99145; }.alta-floresta-card { border-top-color: #75a94c; }
.expedition-number { font-size: .78rem; font-weight: 800; letter-spacing: .12em; color: #d9e5dd; }
.expedition-cover { position: relative; width: 100%; aspect-ratio: 2 / 1; margin: 18px 0 18px; display: grid; place-items: center; overflow: hidden; border: 1px solid #ffffff24; border-radius: 11px; background: #102b1e; }
.cover-fallback { font-size: 3rem; }.cover-photo { position: absolute; inset: 0; background-position: center; background-size: cover; background-repeat: no-repeat; }
.cover-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, #071a1066); }
.porto-jofre-cover .cover-photo { background-image: url("../assets/expedicoes/porto-jofre.jpg"); }
.chapada-cover .cover-photo { background-image: url("../assets/expedicoes/chapada-dos-guimaraes.jpg"); }
.jaciara-cover .cover-photo { background-image: url("../assets/expedicoes/jaciara.jpg"); }
.nobres-cover .cover-photo { background-image: url("../assets/expedicoes/nobres.jpg"); }
.caceres-cover .cover-photo { background-image: url("../assets/expedicoes/caceres.jpg"); }
.alta-floresta-cover .cover-photo { background-image: url("../assets/expedicoes/alta-floresta.jpg"); }
.expedition-card h2 { font-size: 1.75rem; line-height: 1.18; margin: 0 0 12px; }
.expedition-card h3 { font-size: 1rem; margin: 0; color: #e5be53; }
.expedition-card p { color: #e0e9e3; line-height: 1.65; margin: 15px 0 24px; }
.expedition-link, .action-button { display: inline-flex; justify-content: center; align-items: center; gap: 8px; padding: 12px 18px; min-height: 46px; border: 1px solid transparent; border-radius: 9px; background: #d9af3f; color: #152419; text-decoration: none; font-weight: 700; text-align: center; font-size: 1rem; }
.expedition-link { margin-top: auto; }
.expedition-link:hover, .action-button:hover { background: #ebc462; }
.action-button.light { background: #fff; border-color: #9aaca0; color: #173a2b; }
.catalog-guides { margin-top: 28px; padding: 26px; display: flex; align-items: center; justify-content: space-between; gap: 24px; border: 1px solid #c9a22777; border-radius: 14px; background: #10281c; }
.catalog-guides h2 { margin: 8px 0; font-size: 1.5rem; }.catalog-guides p { margin: 0; color: #e0e9e3; }.catalog-guides .action-button { flex-shrink: 0; }
.route-bar { grid-row: 2; display: flex; justify-content: space-between; align-items: center; padding: 12px 20px; background: #fff; gap: 16px; border-bottom: 1px solid #ccd5ce; }
.route-bar strong, .route-bar span { display: block; }.route-bar span { font-size: .9rem; margin-top: 2px; }
#selected-lodge-label:not(:empty) { color: #765707; font-weight: 700; }
.route-bar-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 9px; }
#map { grid-row: 3; position: relative; top: auto; bottom: auto; left: auto; right: auto; min-width: 0; min-height: 0; background: #dae1db; }
.bottom-menu { grid-row: 4; position: static; min-height: 68px; height: auto; padding-bottom: env(safe-area-inset-bottom); }
.regional-actions { grid-row: 4; display: flex; justify-content: space-between; gap: 10px; padding: 12px 20px calc(12px + env(safe-area-inset-bottom)); background: #fff; }
.chapada-bottom-menu { grid-row: 4; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding: 8px max(12px, calc((100vw - 720px) / 2)) calc(8px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid #cdd8d0; box-shadow: 0 -2px 10px #0002; z-index: 1000; }
.chapada-bottom-menu button { min-height: 58px; display: flex; justify-content: center; align-items: center; gap: 10px; border: 1px solid #cad6ce; border-radius: 10px; background: #f7faf8; color: #173a2b; font-weight: 800; }
.chapada-bottom-menu button:hover { background: #edf4ef; }
.chapada-bottom-menu button[aria-pressed="true"] { color: #fff; border-color: #173a2b; background: #173a2b; }
.chapada-bottom-menu svg { width: 27px; height: 27px; fill: currentColor; flex: 0 0 auto; }
.chapada-bottom-menu span { line-height: 1.15; text-align: center; }
#info-panel, #roteiro-panel { width: 410px; max-width: 100%; }
#panel-content h2, #roteiro-content h2 { line-height: 1.2; padding-right: 16px; }
#panel-content p, #roteiro-content p { line-height: 1.6; }
#panel-content img { max-height: 220px; object-fit: cover; }
#panel-content a { overflow-wrap: anywhere; }
#roteiro-content button { padding: 10px 16px; background: #173a2b; color: #fff; border: 0; border-radius: 8px; }
#close-panel, #close-roteiro { min-width: 44px; min-height: 44px; }
#roteiro-count { width: auto; min-width: 30px; padding: 0 4px; }
.map-error { position: fixed; z-index: 1600; top: 45%; left: 50%; transform: translate(-50%, -50%); width: min(90vw, 400px); padding: 22px; border: 1px solid #94701f; background: #fff; border-radius: 12px; }
.regional-marker { background: none; border: 0; }
.map-pin { display: grid; place-items: center; width: 36px; height: 36px; border: 2px solid #fff; border-radius: 50%; box-shadow: 0 2px 8px #0007; background: #e8b930; color: #142219; font-size: 14px; font-weight: 800; }
.airport-pin { background: #176da0; color: #fff; font-size: 21px; }.destination-pin { background: #943b24; color: #fff; font-size: 20px; }
.lodge-pin { width: 40px; height: 40px; background: #9a5c2f; color: #fff; font-size: 22px; }.lodge-pin.selected-lodge { border-width: 4px; border-color: #f5c841; box-shadow: 0 0 0 4px #173a2b, 0 3px 10px #0008; }.attraction-pin { width: 40px; height: 40px; background: #178398; color: #fff; }.fuel-pin { background: #e2a925; color: #17251c; font-size: 15px; }
.fuel-list { list-style: none; padding: 0; }
#panel-content .fuel-item,
#panel-content .attraction-item { width: 100%; display: block; text-align: left; border: 1px solid #c9d5cd; background: #f0f5f1; color: #173a2b; margin: 8px 0; padding: 14px; }
.fuel-item span,
.attraction-item span { display: block; font-size: .9rem; font-weight: normal; margin-top: 5px; }
.explorer-dialog { width: min(700px, calc(100% - 28px)); max-height: calc(100dvh - 32px); padding: 30px; color: #18291f; background: #fff; border: 0; border-radius: 16px; overflow-y: auto; box-shadow: 0 18px 90px #0005; }
.explorer-dialog::backdrop { background: #071a10b3; }
.explorer-dialog h2 { font-size: 1.7rem; line-height: 1.2; margin: 12px 26px 16px 0; }
.explorer-dialog p { line-height: 1.6; }.dialog-close { position: absolute; right: 12px; top: 10px; border: 0; border-radius: 50%; background: #eff3f0; min-width: 44px; min-height: 44px; font-size: 1.4rem; }
.vip-guide-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.vip-guide-card { border: 2px solid #d4ddd7; border-radius: 12px; overflow: hidden; }
.vip-guide-card:has(input:checked) { border-color: #a47b14; background: #fff8e6; }
.vip-choice { padding: 16px; display: grid; grid-template-columns: 22px 64px minmax(0, 1fr); align-items: center; gap: 10px; cursor: pointer; }
.vip-choice input { width: 20px; height: 20px; accent-color: #173a2b; }
.vip-avatar { width: 64px; height: 64px; display: grid; place-items: center; border-radius: 50%; overflow: hidden; background: #173a2b; color: #fff; font-size: 1.4rem; font-weight: 800; }
.vip-avatar img { width: 100%; height: 100%; object-fit: cover; }.vip-description { min-width: 0; }.vip-description>* { display: block; }.vip-description strong { font-size: 1.06rem; margin: 4px 0; overflow-wrap: anywhere; }.vip-description span { font-size: .88rem; }.vip-badge { color: #7c5c0c; font-weight: 700; }
.vip-profile-link { display: block; padding: 10px 16px; border-top: 1px solid #d4ddd7; color: #173a2b; font-size: .9rem; }
.dialog-footer { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 12px; margin-top: 24px; }
#request-summary { display: block; width: 100%; margin-top: 8px; min-height: 250px; line-height: 1.5; resize: vertical; padding: 14px; border: 1px solid #a0b2a6; border-radius: 8px; color: #1d3627; background: #f5f8f6; }
.small-note { font-size: .88rem; color: #4c5f53; }.noscript-message { padding: 20px; background: #fff; color: #173a2b; }
.chapada-place-type { color: #426150; font-weight: 700; }
.chapada-panel-actions { display: grid; gap: 9px; margin: 18px 0; }
.chapada-lodge-options { display: grid; gap: 12px; margin: 18px 0; }
.chapada-lodge-option { padding: 14px; border: 2px solid #d2ddd6; border-radius: 12px; background: #f8faf8; }
.chapada-lodge-option.selected { border-color: #a67b10; background: #fff8e5; box-shadow: 0 0 0 2px #d9af3f33; }
.chapada-lodge-option label { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 9px; align-items: start; cursor: pointer; }
.chapada-lodge-option input { width: 20px; height: 20px; margin-top: 3px; accent-color: #173a2b; }
.chapada-lodge-option strong, .chapada-lodge-option small { display: block; }
.chapada-lodge-option small { margin-top: 3px; color: #52685a; line-height: 1.35; }
.chapada-lodge-option p { margin: 9px 0 0; font-size: .9rem; }
.chapada-lodge-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 10px; }
.chapada-lodge-links a { color: #174f37; font-weight: 800; }
.chapada-lodge-facts { margin: 18px 0; }
.chapada-lodge-facts div { padding: 10px 0; border-bottom: 1px solid #d8e0da; }
.chapada-lodge-facts dt { color: #6a7b70; font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }.chapada-lodge-facts dd { margin: 3px 0 0; }
.chapada-planner { margin-top: 28px; padding-top: 24px; border-top: 3px solid #d9af3f; }
.chapada-planner h3 { line-height: 1.3; margin: 8px 0 12px; }.chapada-planner label { display: block; font-weight: 800; margin: 15px 0 7px; }
#panel-content .chapada-planner select { width: 100%; min-height: 48px; padding: 8px 12px; border: 1px solid #84998c; border-radius: 8px; background: #fff; color: #173a2b; }
#panel-content #chapada-confirm-stay { width: 100%; margin-top: 12px; background: #d9af3f; color: #152419; }
@media(max-width: 950px) { .expedition-grid { grid-template-columns: 1fr; }.expedition-card { min-height: 0; }.expedition-catalog { max-width: 750px; }.catalog-guides { flex-direction: column; align-items: stretch; } }
@media(max-width: 650px) {
  .topbar { padding: 10px 14px; gap: 8px; }.logo { font-size: 1rem; }.home-link { padding: 7px 12px; font-size: .88rem; }
  .expedition-catalog { padding: 28px 16px; }.expedition-card { padding: 20px; }
  .route-bar { padding: 9px 12px; gap: 8px; flex-wrap: wrap; }.chapada-mode .route-bar-actions { width: 100%; display: grid; grid-template-columns: 1fr; }.route-bar .action-button { padding: 8px 9px; font-size: .84rem; }
  .regional-actions { padding: 10px 10px calc(10px + env(safe-area-inset-bottom)); }.regional-actions .action-button { flex: 1; font-size: .88rem; padding: 10px 8px; }
  .chapada-bottom-menu { gap: 5px; padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); }.chapada-bottom-menu button { min-height: 56px; flex-direction: column; gap: 1px; font-size: .78rem; }.chapada-bottom-menu svg { width: 24px; height: 24px; }
  .vip-guide-options { grid-template-columns: 1fr; }.explorer-dialog { padding: 26px 18px; }.explorer-dialog h2 { font-size: 1.4rem; }
  .dialog-footer .action-button { flex: 1; }.vip-choice { grid-template-columns: 22px 64px minmax(0, 1fr); }
  #roteiro-btn { right: 14px; padding: 13px 16px; }
}
@media(prefers-reduced-motion: reduce) { #info-panel, #roteiro-panel { transition: none; } }
