/* Paleta costeira das seções públicas e da janela do passeio. */
:is(#galeria,#passeios,#seguranca,#duvidas),.tour-dialog{
  --s-bg:var(--sand);
  --s-glow:var(--muted);
  --s-text:var(--ink);
  --s-muted:var(--muted);
  --s-edge:rgb(2 48 71 / .20);
  --s-card:linear-gradient(165deg,var(--sand),rgb(142 202 230 / .36));
  --f-mono:'JetBrains Mono',ui-monospace,SFMono-Regular,Menlo,monospace;
  position:relative;
  color:var(--s-text);
  background:
    radial-gradient(1200px 500px at 85% -10%,rgb(33 158 188 / .08),transparent 60%),
    radial-gradient(900px 500px at -10% 110%,rgb(142 202 230 / .06),transparent 60%),
    var(--s-bg);
}
/* Divisores entre seções */
:is(#passeios,#seguranca,#duvidas)::before{
  content:"";position:absolute;left:50%;top:0;width:min(1100px,86%);height:1px;transform:translateX(-50%);
  background:linear-gradient(90deg,transparent,rgb(33 158 188 / .45),rgb(142 202 230 / .35),transparent);
}

/* "IB Passeios" da chamada final sem o traço */
.finale .eyebrow::before{display:none}

/* Destaque dos títulos */
:is(#galeria,#passeios,#seguranca,#duvidas) h2 em{color:var(--muted)}

/* ---------- Galeria ---------- */
.moments-heading p{color:var(--s-muted)}
.gallery button{border:1px solid rgb(142 202 230 / .1);transition:border-color .35s,box-shadow .35s}
.gallery-zoom{z-index:1;background:rgb(2 48 71 / .6);border-color:rgb(142 202 230 / .45);-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px)}
@media(hover:hover){.gallery button:hover{border-color:rgb(33 158 188 / .55);box-shadow:0 0 34px -10px rgb(33 158 188 / .6)}}

/* ---------- Passeios ---------- */
#passeios{--tour-surface:rgb(142 202 230 / .05);--tour-edge:var(--s-edge)}
.ib-catalog-heading{border-bottom-color:var(--s-edge)}
.ib-catalog-heading > p,#catalog > p{color:var(--s-muted)}
.ib-tour{position:relative;color:var(--s-text);background:var(--s-card);
  border-color:var(--tour-edge);border-radius:22px;box-shadow:inset 0 1px 0 rgb(248 243 239 / .05);transition:transform .35s,box-shadow .35s,border-color .35s}
.ib-tour-photo{border-radius:21px 0 0 21px;background:#023047}
.ib-tour-copy h3{color:var(--ink)}
.ib-tour-copy .ib-tour-meta{color:var(--s-glow);font-family:var(--f-mono);font-weight:500;font-size:11px;letter-spacing:.14em}
.ib-tour-copy .ib-tour-description{color:var(--s-muted)}
.ib-tour-copy .ib-tour-time{color:var(--ink)}
.ib-tour-footer{border-top-color:var(--s-edge)}
.ib-tour-footer strong{font-family:var(--f-display);font-weight:400;font-size:26px;color:var(--ink)}
.ib-tour-footer p > span{color:#023047}
.ib-tour-arrow{border-color:rgb(142 202 230 / .3);color:var(--s-glow);background:rgb(33 158 188 / .06)}
.ib-tour-link:is(:hover,:focus-visible) .ib-tour-arrow{background:#8ecae6;border-color:#8ecae6;color:#023047;box-shadow:0 0 24px rgb(142 202 230 / .6)}
.ib-tour-rating{color:var(--muted)}
@media(hover:hover){
  .ib-tour:hover{transform:translateY(-4px);border-color:rgb(33 158 188 / .45);box-shadow:0 30px 60px -30px rgb(2 48 71 / .9),0 0 40px -14px rgb(33 158 188 / .45)}
}
@media(max-width:980px){.ib-tour-photo{border-radius:21px 21px 0 0}}

/* ---------- Segurança ---------- */
.trust-section .secHead p{color:var(--s-muted)}
.trustItem{position:relative;color:var(--s-text);border:1px solid var(--s-edge);background:var(--s-card);
  box-shadow:inset 0 1px 0 rgb(248 243 239 / .05);-webkit-backdrop-filter:none;backdrop-filter:none;overflow:hidden;
  transition:border-color .35s,transform .45s,box-shadow .35s}
.trustItem::before{content:"";position:absolute;width:180px;height:180px;right:-60px;top:-60px;border-radius:50%;
  background:radial-gradient(circle,rgb(33 158 188 / .18),transparent 70%);transition:transform .6s}
.trustItem .ico{position:relative;color:var(--s-glow);background:rgb(33 158 188 / .08);border:1px solid rgb(33 158 188 / .3);
  box-shadow:0 0 24px -6px rgb(33 158 188 / .6),inset 0 0 12px rgb(33 158 188 / .12)}
.trustItem h3{color:var(--ink)}
.trustItem p{color:var(--s-muted)}
@media(hover:hover){
  .trustItem:hover{border-color:rgb(33 158 188 / .45);transform:translateY(-4px);box-shadow:0 0 40px -16px rgb(33 158 188 / .6)}
  .trustItem:hover::before{transform:scale(1.5)}
}

/* ---------- Dúvidas ---------- */
.faq aside p{color:var(--s-muted)}
#duvidas .btn-glass{background:rgb(142 202 230 / .08);border-color:rgb(142 202 230 / .32)}
#duvidas .btn-glass:hover{background:rgb(142 202 230 / .16);border-color:rgb(142 202 230 / .6);box-shadow:0 0 30px -8px rgb(33 158 188 / .6)}
.faq details{color:var(--s-text);border:1px solid var(--s-edge);background:var(--s-card);
  box-shadow:inset 0 1px 0 rgb(248 243 239 / .04);-webkit-backdrop-filter:none;backdrop-filter:none;transition:border-color .3s,background .3s}
.faq details[open]{border-color:rgb(33 158 188 / .4);background:var(--lagoon);
  box-shadow:inset 3px 0 0 var(--s-glow),0 0 40px -18px rgb(33 158 188 / .6)}
.faq summary i{background:rgb(33 158 188 / .1);color:var(--s-glow);border:1px solid rgb(33 158 188 / .3)}
.faq details[open] summary i{background:#8ecae6;color:#023047;border-color:var(--ink)}
.faq details p{color:#023047;border-top-color:var(--s-edge)}
@media(hover:hover){
  .faq summary:hover i{background:rgb(33 158 188 / .2)}
  .faq details[open] summary:hover i{background:var(--muted)}
  .faq details:hover{border-color:rgb(33 158 188 / .35)}
}

@media(prefers-reduced-motion:reduce){.ib-tour,.trustItem,.trustItem::before,.faq details,.gallery button{transition:none}}

/* Reserva lateral no computador */
@media (min-width:900px){
  .tour-dialog-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(360px,440px);grid-template-rows:auto 1fr;column-gap:clamp(24px,3vw,44px);max-width:1240px}
  #tourDetails{grid-column:1;grid-row:1}
  #tourMedia{grid-column:1;grid-row:2}
  #tourBooking{grid-column:2;grid-row:1/span 2;align-self:start;position:sticky;top:0;width:auto;margin:0;
    max-height:calc(min(940px,100dvh - 32px) - 150px);overflow:auto;overscroll-behavior:contain;border-radius:20px;scrollbar-width:thin}
  .tour-dialog #reserva .fields{grid-template-columns:1fr 1fr}
}

/* ==========================================================================
   Janela do passeio e formulário de reserva
   ========================================================================== */
.tour-dialog{
  position:fixed;color:var(--s-text);border:1px solid var(--s-edge);
  background:radial-gradient(1000px 500px at 90% -10%,rgb(33 158 188 / .08),transparent 60%),radial-gradient(800px 500px at -10% 110%,rgb(142 202 230 / .06),transparent 60%),var(--s-bg);
  box-shadow:0 40px 100px -30px rgb(2 48 71 / .9),0 0 60px -30px rgb(33 158 188 / .4);
}
.tour-dialog::backdrop{background:rgb(2 48 71 / .82);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}
.tour-dialog-bar{background:var(--sand);border-bottom:1px solid var(--s-edge);-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px)}
.tour-dialog-brand{color:var(--ink);letter-spacing:.02em}
.tour-dialog-bar button{background:rgb(142 202 230 / .08);border-color:rgb(142 202 230 / .3);color:var(--ink);border-radius:999px;padding:0 16px}
.tour-dialog-bar button:hover{background:rgb(142 202 230 / .16);border-color:rgb(142 202 230 / .6)}
.tour-dialog-heading{border:1px solid var(--s-edge);border-radius:22px;background:#023047}
.tour-dialog-heading::after{background:linear-gradient(0deg,rgb(2 48 71 / .95) 0%,rgb(2 48 71 / .45) 45%,rgb(2 48 71 / .05) 82%)}
.tour-dialog :is(a,button,input,select,textarea):focus-visible{outline:2px solid var(--s-glow);outline-offset:2px}

/* fatos e textos */
.tour-facts{border-color:var(--s-edge)}
.tour-facts dt{color:var(--s-glow);font-family:var(--f-mono);font-size:10.5px;letter-spacing:.14em;text-transform:uppercase}
.tour-facts dd{color:var(--ink);font-family:var(--f-display);font-weight:400;font-size:21px;margin-top:2px}
.tour-detail-section{border-bottom-color:var(--s-edge)}
.tour-detail-section h3{color:var(--ink)}
.tour-detail-section p{color:var(--s-muted)}
.tour-detail-section a{color:var(--s-glow);text-decoration:underline;text-underline-offset:3px}
.tour-photos img{border-radius:14px;border:1px solid rgb(142 202 230 / .12)}
.tour-videos video{border-radius:14px;border:1px solid rgb(142 202 230 / .12);background:#023047}
.tour-media-link{background:rgb(142 202 230 / .06);border-color:var(--s-edge);color:var(--ink);border-radius:12px}

/* avaliações */
.tour-review{background:var(--s-card);border-left:3px solid var(--s-glow);border-radius:0 14px 14px 0;color:var(--s-text)}
.tour-review p{color:var(--ink)}
.tour-review footer{color:var(--ink)}
.rv-stars i,.rv-pick label{color:rgb(142 202 230 / .22)}
.rv-pick label.on{color:var(--ink)}
.rv-form{background:var(--s-card);border-color:var(--s-edge);color:var(--s-text)}
.rv-done{background:var(--s-card);border:1px solid var(--s-edge)}
.rv-label,.rv-status{color:var(--s-glow)}
.tour-dialog .btn-line{border-color:rgb(142 202 230 / .4);color:var(--ink)}
.tour-dialog .btn-line:hover{background:rgb(142 202 230 / .14);color:var(--ink);border-color:var(--s-glow)}

/* formulário de reserva */
.tour-dialog #reserva{
  color:var(--s-text);border:1px solid rgb(142 202 230 / .2);
  background:var(--s-card);
  box-shadow:inset 0 1px 0 rgb(248 243 239 / .06),0 0 50px -24px rgb(33 158 188 / .55);
}
.booking-heading{border-bottom-color:var(--s-edge)}
.booking-heading h3{color:var(--ink)}
.tour-dialog .booking-guide,.tour-dialog .booking-optional,.tour-dialog .booking-payment-note{color:var(--s-muted)}
.booking-group legend{color:var(--s-glow);font-family:var(--f-mono);font-weight:500;font-size:11px;letter-spacing:.14em;text-transform:uppercase}
.tour-dialog .field,.tour-dialog .field label,.booking-date-field > span{color:var(--ink)}
.tour-dialog #reserva :is(input,select,textarea):not([type=hidden]){background:var(--sand);border-color:var(--s-edge);color:var(--ink)}
.tour-dialog #reserva :is(input,textarea)::placeholder{color:var(--muted)}
.tour-dialog #reserva :is(input,select,textarea):focus{border-color:var(--s-glow);box-shadow:0 0 0 3px rgb(33 158 188 / .18)}
.tour-dialog #reserva select option{background:var(--sand);color:var(--ink)}
.booking-qty{background:var(--sand);border-color:var(--s-edge)}
.booking-qty button{background:rgb(33 158 188 / .12);color:var(--s-glow)}
.tour-dialog #reserva .booking-qty input{background:transparent}
.booking-date-toggle{background:var(--sand);border-color:var(--s-edge);color:var(--ink)}
.booking-date-toggle .ico,.booking-date-chevron{color:var(--s-glow)}
.booking-calendar{background:var(--sand);border-color:rgb(142 202 230 / .25);box-shadow:0 20px 40px -10px rgb(2 48 71 / .8)}
.booking-calendar-nav strong{color:var(--ink)}
.booking-calendar-grid > span,.booking-calendar p{color:#023047}
.booking-calendar button{color:var(--ink)}
.booking-calendar button:disabled{color:var(--muted);opacity:.58}
.booking-calendar button[aria-current=date]{border-color:rgb(33 158 188 / .5)}
.booking-calendar button:not(:disabled):hover{background:rgb(33 158 188 / .14)}
.booking-calendar button[aria-pressed=true],.booking-calendar button[aria-pressed=true]:hover{background:var(--ink);color:var(--sand)}
.booking-status{background:rgb(33 158 188 / .1);color:var(--ink)}
.booking-status[data-kind="warning"]{background:var(--line);color:var(--ink)}
.booking-status[data-kind="success"]{background:rgb(33 158 188 / .14);color:var(--ink)}
#reserva .summary{background:rgb(142 202 230 / .35);border:1px solid var(--s-edge)}
#reserva .summary small{color:var(--s-muted)}
#reserva .summary b{color:var(--ink)}
#reserva button[type="submit"]:disabled{background:rgb(142 202 230 / .12);color:#023047}

/* ---------- Seletor de idioma (PT · EN · ES) ---------- */
.tr-wait body{visibility:hidden;animation:trMostra 0s 1.5s forwards}
@keyframes trMostra{to{visibility:visible}}
.lang-pick{position:relative;flex:none}
.lang-btn{display:inline-flex;align-items:center;gap:7px;height:44px;padding:0 12px 0 13px;border:1px solid currentColor;border-radius:999px;background:transparent;color:inherit;font:600 13px/1 var(--f-body);letter-spacing:.06em;cursor:pointer;opacity:.92;transition:opacity .2s,background .2s,box-shadow .2s}
.lang-btn:hover,.lang-btn[aria-expanded="true"]{opacity:1;background:rgb(142 202 230 / .12);box-shadow:0 0 22px -8px rgb(33 158 188 / .7)}
.lang-btn .ico{width:16px;height:16px}
.lang-chev{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;transition:transform .25s}
.lang-btn[aria-expanded="true"] .lang-chev{transform:rotate(180deg)}
.lang-menu{position:absolute;z-index:60;top:calc(100% + 10px);right:0;min-width:200px;padding:6px;border-radius:18px;
  border:1px solid rgb(142 202 230 / .22);background:var(--sand);
  box-shadow:0 24px 50px -16px rgb(2 48 71 / .75),0 0 40px -18px rgb(33 158 188 / .6);-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px);
  transform-origin:top right;animation:langAbre .18s ease-out}
@keyframes langAbre{from{opacity:0;transform:translateY(-6px) scale(.97)}}
.lang-menu[hidden]{display:none}
.lang-menu button{display:flex;align-items:center;gap:12px;width:100%;min-height:46px;padding:0 14px;border:0;border-radius:12px;background:transparent;color:var(--ink);font:500 15px/1 var(--f-body);text-align:left;cursor:pointer}
.lang-menu b{width:28px;color:var(--muted);font-family:'JetBrains Mono',ui-monospace,monospace;font-weight:500;font-size:12px;letter-spacing:.12em}
.lang-menu span{flex:1}
.lang-menu i{font-style:normal;color:var(--muted);opacity:0}
.lang-menu [aria-checked="true"]{background:rgb(33 158 188 / .12);color:var(--ink)}
.lang-menu [aria-checked="true"] i{opacity:1}
.lang-menu button:hover,.lang-menu button:focus-visible{background:rgb(33 158 188 / .18);color:var(--ink);outline:none}
@media (max-width:1080px){
  .nav .lang-pick{margin-left:auto}
  .nav .lang-pick ~ .burger,.nav .lang-pick ~ .nav-booking{margin-left:0}
}
@media (max-width:640px){
  .lang-btn{height:40px;padding:0 8px 0 10px;gap:5px;font-size:12px}
  .lang-btn .ico{width:14px;height:14px}
  .lang-chev{width:12px;height:12px}
}
@media (max-width:360px){.lang-btn .ico{display:none}}

/* selo "Reservas fechadas" no card do passeio */
.ib-tour-closed{display:inline-block;margin-bottom:10px;padding:4px 10px;border-radius:999px;background:rgb(142 202 230 / .16);border:1px solid rgb(142 202 230 / .5);color:var(--ink);font-size:11px;font-weight:600;letter-spacing:.08em;text-transform:uppercase}
@media (max-width:640px){.lang-menu{right:auto;left:0;transform-origin:top left}}

/* Fundos claros e contraste dos controles */
#galeria,#seguranca{--s-bg:var(--line)}
#duvidas .btn-glass{color:var(--ink);border-color:var(--s-edge)}
.tour-dialog-heading{color:var(--sand)}
.tour-dialog .rv-stars i,.tour-dialog .rv-pick label{color:var(--muted)}
.tour-dialog .rv-pick label.on{color:var(--tide)}

.custom-tour { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:1rem; margin-top:1.5rem; padding:clamp(1.2rem,4vw,2rem); border:1px solid currentColor; border-radius:1rem; }
.custom-tour p { max-width:54ch; margin:.4rem 0 0; }
html body .quote-dialog {
  width: min(36rem, calc(100% - 1.5rem));
  max-height: min(90dvh, 48rem);
  overflow: auto;
  padding: 0;
  border: 1px solid #dce7ea;
  border-radius: 22px;
  background: #fff;
  color: #122a35;
  box-shadow: 0 26px 80px #071f3860;
  color-scheme: light;
}
.quote-dialog::backdrop { background: #081e2bb8; backdrop-filter: blur(3px); }
.quote-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 20px clamp(18px,5vw,32px);
  background: #eff8fa;
  border-bottom: 1px solid #dfedf0;
}
.quote-heading h2 { margin: 0; font-size: clamp(1.55rem,5vw,2.15rem); line-height: 1.12; }
.quote-heading h2:focus { outline: none; }
.quote-heading button { flex: none; width: 44px; height: 44px; border: 1px solid #d6e4e8; border-radius: 50%; background: #fff; color: #122a35; font-size: 1.4rem; cursor: pointer; }
.quote-dialog [data-quote-guide] { margin: 20px clamp(18px,5vw,32px) 0; color: #45606c; }
.quote-dialog .fields { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 16px; margin: 20px clamp(18px,5vw,32px) 24px; }
.quote-dialog .field { min-width: 0; gap: 7px; color: #122a35; font-weight: 600; }
.quote-dialog .field.full { grid-column: 1 / -1; }
.quote-dialog .field small { font-size: .75rem; font-weight: 400; color: #526c76; }
.quote-dialog .field :is(input, textarea), .quote-dialog [data-quote-fallback] textarea {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 48px;
  padding: 11px 13px;
  border: 1px solid #cbdde3;
  border-radius: 10px;
  background: #f8fbfc;
  color: #122a35;
  font-family: inherit;
  font-weight: 400;
  line-height: 1.4;
  font-size: 1rem;
  box-sizing: border-box;
}
.quote-dialog .field :is(input, textarea):focus-visible { outline: 2px solid #197590; outline-offset: 2px; }
.quote-dialog textarea { resize: vertical; }
.quote-dialog .quote-actions { padding: 16px clamp(18px,5vw,32px); border-top: 1px solid #dfedf0; background: #f8fbfc; }
.quote-dialog .quote-submit { display: flex; justify-content: space-between; width: 100%; min-height: 48px; border-radius: 11px; background: #104b60; color: white; box-shadow: none; }
.quote-dialog .quote-submit:hover { background: #0b3b4c; }
.quote-dialog [data-quote-fallback] { padding: 12px clamp(18px,5vw,32px) 24px; }
@media (max-width: 420px) {
  .quote-dialog .fields { grid-template-columns: 1fr; gap: 12px; }
}

.private-quote-card {
  margin-top: 16px;
  padding: clamp(16px, 4vw, 24px);
  border: 1px solid #cbdde3;
  border-radius: 16px;
  background: #eff8fa;
  color: #122a35;
}
.private-quote-card h3 { margin: 0 0 8px; }
.private-quote-card p { margin: 0 0 14px; }
.private-quote-card .btn { width: 100%; min-height: 48px; text-align: center; }

.quote-dialog .booking-date-field { position: static; }
.quote-dialog .booking-date-toggle { width: 100%; min-height: 50px; background: #f8fbfc; border-color: #cbdde3; border-radius: 10px; color: #122a35; }
.quote-dialog .booking-calendar { position: static; width: 100%; min-width: 0; margin-top: 8px; background: white; border-color: #cbdde3; box-shadow: 0 8px 24px #122a3510; }
.quote-dialog .booking-date-field:has(.booking-calendar:not([hidden])) { grid-column: 1 / -1; }
.quote-qty { display: grid; grid-template-columns: 46px minmax(0,1fr) 46px; min-height: 50px; border: 1px solid #cbdde3; border-radius: 10px; background: #f8fbfc; }
.quote-dialog .quote-qty input { padding-inline: 0; border: 0; border-radius: 0; text-align: center; appearance: textfield; }
.quote-qty input::-webkit-inner-spin-button { appearance: none; }
.quote-qty button { border: 0; border-radius: 9px; background: #e6f2f5; color: #104b60; font-size: 1.25rem; cursor: pointer; }
.quote-qty button:disabled { opacity: .45; cursor: default; }
.quote-dialog .quote-details textarea { min-height: 114px; }
.quote-details-help { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; }

#passeio-personalizado { scroll-margin-top: 6rem; }

.quote-actions [data-quote-status] { margin: 0 0 12px; }

.tour-gallery .tour-photos {
  display: flex;
  gap: 0;
  overflow-x: auto;
  border-radius: 14px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.tour-gallery .tour-photos img {
  display: block;
  flex: 0 0 100%;
  min-width: 0;
  height: clamp(220px, 55vw, 440px);
  object-fit: contain;
  background: #e5eef1;
  scroll-snap-align: start;
}
.tour-gallery-controls { display: flex; justify-content: center; align-items: center; gap: 14px; margin-top: 12px; }
.tour-gallery-controls button { width: 44px; height: 44px; border: 1px solid #a8c8d4; border-radius: 50%; background: #edf6fa; color: #104b60; font-size: 1.1rem; cursor: pointer; }
.tour-gallery-controls button:disabled { opacity: .45; cursor: default; }

.tour-facts-wrap { padding-block: 14px 18px; }
.tour-facts-wrap .tour-summary-grid { grid-template-columns: repeat(2,minmax(0,1fr)); column-gap: clamp(12px,4vw,34px); row-gap: 14px; padding: 4px 6px 16px; }
.tour-summary-grid > div { min-width: 0; padding: 3px 0; }
.tour-summary-grid dt { font-size: .73rem; letter-spacing: .08em; line-height: 1.3; }
.tour-summary-grid dd { font-size: clamp(1rem,4.25vw,1.4rem); line-height: 1.25; margin: 5px 0 0; overflow-wrap: anywhere; }
.tour-summary-price dd strong { font-weight: 500; white-space: nowrap; }
.tour-summary-price dd small { display: block; margin-top: 2px; font: .78rem/1.2 system-ui,sans-serif; }
.tour-details-text p + p { margin-top: 12px; }

.tour-private-shortcut {
  padding: 0; border: 0; background: transparent; color: inherit; font: inherit;
  min-height: 44px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; text-align: start;
}

.tour-summary-grid .tour-private-shortcut { min-height: 44px; margin-block: -8px; font: inherit; }
