/* Acabamento compartilhado entre a página principal e a tábua de marés. */
:root {
  --green:#214d3e; --deep:#102e26; --lime:#e4d29e; --cream:#f8f6f0;
  --ink:#182e27; --muted:#4b5e54; --line:#d9e1d9; --white:#fffefa;
  --shadow:0 10px 32px #102e260a; --champagne:#e4d29e;
  --paper:#fffefa; --sage:#eef3eb; --radius:18px;
  --gutter:clamp(16px,4vw,44px);
  --safe-top:env(safe-area-inset-top,0px);
  --safe-bottom:env(safe-area-inset-bottom,0px);
  --inset-left:max(var(--gutter),env(safe-area-inset-left,0px));
  --inset-right:max(var(--gutter),env(safe-area-inset-right,0px));
  --display:Georgia,"Times New Roman",serif;
}
body{background:var(--cream);color:var(--ink)}
button,a,input,select,summary{touch-action:manipulation}
img{max-width:100%}
:where(button,a,summary,input,select):focus-visible{outline:3px solid #537c66;outline-offset:3px}
.home-page .wrap,.tides-page .tides-wrap{
  width:min(1120px,calc(100% - var(--inset-left) - var(--inset-right)));
  margin-inline:auto
}
.home-page{font-size:16px;line-height:1.6}
.home-page :is(h1,h2){text-wrap:balance}
.home-page .section h2,.home-page .included h2{
  font-family:var(--display);font-size:clamp(1.9rem,4vw,3.05rem);
  line-height:1.08;font-weight:400;letter-spacing:-.036em
}
.home-page .section{padding-block:clamp(38px,6.8vw,86px)}
.home-page .section .intro{margin-top:12px}
.home-page .kicker{font-size:.72rem;letter-spacing:.14em;color:#52685a;margin-bottom:10px}
.home-page .top,.tides-page header{padding-top:var(--safe-top);background:var(--deep);border-bottom:1px solid #e4d29e44;box-shadow:none}
.home-page .top .wrap{min-height:74px;gap:12px;padding-block:10px}
.home-page .top .brand{font-size:clamp(1.15rem,3.3vw,2rem);line-height:1.02;translate:0 2px}
.home-page .top .brand small{color:var(--champagne);font-size:.66rem;font-weight:650;letter-spacing:.035em}
.home-page .nav a,.home-page .header-actions a{min-height:44px}
.home-page .nav a{display:flex;align-items:center}
.home-page .nav a:hover{text-decoration:underline;text-underline-offset:5px}
.home-page .lang-switch{border-color:#e4d29e7a;border-radius:8px}
.home-page .hero{padding-block:clamp(34px,5.8vw,76px);background:linear-gradient(125deg,#244b3c,var(--deep) 87%);box-shadow:none;border-color:#d6c392}
.home-page .hero-grid{grid-template-columns:minmax(0,1.08fr) minmax(0,.92fr);gap:clamp(20px,4.8vw,64px)}
.home-page .hero-grid>*{min-width:0}
.home-page .hero h1{font:400 clamp(2.125rem,5.8vw,4.8rem)/1.02 var(--display);letter-spacing:-.05em;text-shadow:none}
.home-page .hero-place{font-size:.91em;color:var(--champagne);letter-spacing:-.045em;margin-top:8px}
.home-page .hero p{font-size:clamp(.98rem,1.6vw,1.12rem);margin:16px 0 22px;color:#e4eee5}
.home-page .hero .luck-cover{border:1px solid #e4d29e58;background:#fffefa09;box-shadow:none;padding:clamp(14px,2.5vw,24px);border-radius:var(--radius);scroll-margin-top:0}
.home-page .luck-cover h2{font:400 clamp(1.38rem,1.08rem + 1.35vw,2.2rem)/1.15 var(--display);letter-spacing:-.027em;margin:0 0 14px;color:#fffefa}
.home-page .luck-cover p{font-size:.91rem;margin:12px 0}
.home-page .luck-cover .visual{border-radius:10px;min-width:0}
.home-page :is(.btn,.lang-switch){min-width:0;max-width:100%}
.home-page .btn{min-height:46px;border-radius:9px;white-space:normal}
.home-page .btn:not(.secondary):not(.dark){background:var(--champagne);color:var(--deep);box-shadow:none}
.home-page .btn.dark,.home-page .filter button[aria-pressed=true]{background:var(--green);color:#fff}
.home-page .btn.secondary{background:var(--paper);border-color:#a2b7a9;color:var(--green)}
.home-page .btn:hover,.tides-page button:hover{filter:brightness(.96)}
.home-page .service{background:var(--sage)}
.home-page .service .mark{padding:9px;border-radius:8px}
.home-page .quick{gap:10px;padding-top:clamp(16px,3vw,28px)}
.home-page .quick a{background:var(--paper);border:1px solid var(--line);box-shadow:none;padding:11px 9px;display:flex;align-items:center;justify-content:center;gap:6px;min-width:0;min-height:52px}
.home-page .quick b{margin:0;font-size:1.14rem;color:var(--green)}
.home-page #agenda-period{font-variant-numeric:tabular-nums}
.home-page .notice,.home-page .pay-banner{background:#f4eddb;border-color:#e2d5b0;border-radius:12px}
.home-page .filter{gap:7px}
.home-page .filter button{min-height:44px;padding:7px 12px;line-height:1.25;border-radius:8px}
.home-page .agenda-table-wrap,.home-page .calculator,.home-page .about{background:var(--paper);border-radius:var(--radius);box-shadow:var(--shadow)}
.home-page .agenda-table thead{background:var(--green)}
.home-page .agenda-table :is(th,td){vertical-align:top}
.home-page .agenda-table tbody th{background:#edf1eb}
.home-page .agenda-table tbody tr:nth-child(even) td{background:#f8faf6}
.home-page .agenda-table .agenda-today :is(th,td){background:#e8f0e5}
.home-page .agenda-table .agenda-today th{box-shadow:inset 3px 0 var(--green)}
.home-page .agenda-date{font-variant-numeric:tabular-nums}
.home-page .agenda-pill{max-width:100%;overflow-wrap:anywhere;background:#edf2eb;border-color:#dae5d9}
.home-page .agenda-pill.extra{background:#f3edda;border-color:#e3d5b0}
.home-page #mares{padding-block:0}
.home-page .tide-promo{
  display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:14px;
  padding:clamp(16px,3vw,28px);border:1px solid #b5c8b9;border-radius:var(--radius);
  background:#e8f0e9;color:var(--ink)
}
.home-page .tide-promo h3{font:400 clamp(1.55rem,3.1vw,2.1rem)/1.1 var(--display);letter-spacing:-.025em}
.home-page .tide-promo p{font-size:.93rem;color:var(--muted);margin-top:5px}
.home-page .tide-promo .btn{background:var(--green);color:#fff}
.home-page #passeios .destinations{gap:clamp(12px,2vw,22px)}
.home-page #passeios .destination{background:var(--paper);box-shadow:var(--shadow);border-radius:14px}
.home-page #passeios .destination .photo{aspect-ratio:16/9}
.home-page #passeios .destination .yt-shell{min-height:200px}
.home-page #passeios .content{padding:clamp(13px,2vw,19px)}
.home-page .included{background:var(--deep);border:1px solid #e4d29e55;box-shadow:none;border-radius:var(--radius);padding:clamp(18px,4vw,42px)}
.home-page .included h2{color:#fffefa}
.home-page .included-item{border-radius:10px}
.home-page .included-icon{color:var(--champagne)}
.home-page .big-warning{background:#f7f0de;border:1px solid #e5d6ad;border-radius:12px;box-shadow:none;padding:clamp(16px,3.2vw,26px)}
.home-page .big-warning h3{font-size:clamp(1.22rem,3vw,1.55rem)}
.home-page .tier{border-radius:12px;background:var(--paper);box-shadow:none;min-width:0}
.home-page .calcgrid{grid-template-columns:repeat(2,minmax(0,1fr))}
.home-page .result{min-width:0;background:var(--sage)}
.home-page :is(.choice,.counts select,.result,.about .avatar-photo){border-radius:10px}
.home-page .choice{min-height:44px}
.home-page .counts{grid-template-columns:repeat(3,minmax(0,1fr))}
.home-page .counts select{min-height:44px}
.home-page .about .avatar-photo{border:1px solid #c6d5c9;box-shadow:none}
.home-page .faq summary{min-height:32px}
.home-page footer{padding:clamp(26px,5.5vw,52px) 0 max(32px,var(--safe-bottom));background:var(--deep)}
.home-page footer a{text-underline-offset:4px}
html:has(.home-page){scroll-padding-top:calc(92px + var(--safe-top))}
@media(max-width:960px) and (min-width:761px){html:has(.home-page){scroll-padding-top:calc(124px + var(--safe-top))}}
@media(max-width:760px){
  /* Space below the controls for the host badge and the phone home indicator. */
  html:has(.home-page){--host-badge-zone:58px}
  .home-page .top .wrap{min-height:62px}
  .home-page .hero-grid,.home-page .calcgrid,.home-page .included-grid{grid-template-columns:minmax(0,1fr)}
  .home-page .hero{padding-block:32px}
  .home-page .hero-grid{gap:24px}
  .home-page .hero h1{font-size:clamp(2.125rem,8.9vw,3.5rem)}
  .home-page .luck-cover h2{font-size:clamp(1.42rem,5.5vw,1.9rem)}
  .home-page .mobilebar{
    padding:7px max(9px,env(safe-area-inset-right,0px)) calc(7px + var(--host-badge-zone) + var(--safe-bottom)) max(9px,env(safe-area-inset-left,0px));
    gap:3px;background:var(--deep);border-top:1px solid #e4d29e50;box-shadow:0 -3px 16px #102e2618
  }
  .home-page .mobilebar a{min-height:44px;display:flex;flex-direction:column;align-items:center;justify-content:center;font-size:clamp(.56rem,2.55vw,.73rem);padding-block:4px}
  .home-page .mobilebar b{font-size:1.05rem;margin-bottom:2px}
  .home-page .mobilebar a:last-child{background:var(--champagne);border-radius:8px}
  .home-page footer{padding-bottom:calc(82px + var(--host-badge-zone) + var(--safe-bottom))}
  html:has(.home-page){scroll-padding-top:calc(74px + var(--safe-top));scroll-padding-bottom:calc(68px + var(--host-badge-zone) + var(--safe-bottom))}
}
@media(max-width:540px){
  .home-page .tide-promo{grid-template-columns:minmax(0,1fr)}
  .home-page .tide-promo .btn{width:100%}
  .home-page #passeios .destinations{grid-template-columns:minmax(0,1fr)}
  .home-page .quick a{justify-content:flex-start;text-align:left;font-size:.84rem}
  .home-page .agenda-table th:first-child{width:76px}
  .home-page .agenda-table :is(td,th){padding:10px 8px}
}
@media(max-width:370px){
  .home-page .top .wrap{flex-wrap:nowrap;gap:7px}
  .home-page .top .brand{flex:0 1 auto;font-size:1.12rem}
  .home-page .top .brand small{font-size:.58rem}
  .home-page .header-actions{margin-left:auto;gap:4px}
  .home-page .header-actions .btn{font-size:.75rem;padding-inline:7px}
  .home-page .lang-switch{padding-inline:6px}
  .home-page .lang-switch svg{width:16px}
}
/* Marés: os dados e o compartilhamento continuam separados da apresentação. */
.tides-page{font:16px/1.55 system-ui,-apple-system,"Segoe UI",sans-serif}
.tides-page header{display:block;padding-inline:0;padding-bottom:0;position:relative}
.tides-page header .tides-wrap{max-width:760px;min-height:66px;display:flex;align-items:center;justify-content:space-between;gap:10px}
.tides-page header a{font-size:clamp(1.14rem,4.7vw,1.65rem);line-height:1.1}
.tides-page header a small{display:block;margin-top:4px;color:var(--champagne);font-size:.66rem;letter-spacing:.04em;font-weight:600}
.tides-page header button{min-height:44px;border-radius:8px;background:transparent;color:#fffefa;border-color:#e4d29e66}
.tides-page header button[aria-pressed=true]{background:var(--champagne);color:var(--deep)}
.tides-page main.tides-wrap{max-width:760px;padding:clamp(16px,4vw,32px) 0 calc(32px + var(--safe-bottom))}
.tides-page :is(.tabs,.actions){gap:8px;margin:0 0 12px}
.tides-page :is(.tabs,.actions) button{min-width:0;min-height:46px;line-height:1.2;border-radius:9px;text-wrap:balance}
.tides-page .tabs button{background:var(--paper);color:var(--green);border-color:#adc2b2}
.tides-page .tabs button[aria-pressed=true],.tides-page .actions button:first-child{background:var(--green);color:#fff;border-color:var(--green)}
.tides-page .preview{padding:11px 12px;font-size:.78rem;line-height:1.45;background:#f3eddd;color:#594720;border-color:#dfd1ab;margin:0 0 12px}
.tides-page .card{border-color:#c8d6ca;box-shadow:var(--shadow);border-radius:var(--radius)}
.tides-page .banner{
  text-align:left;padding:clamp(18px,4.4vw,34px);
  display:grid;grid-template-columns:minmax(0,1fr);background:linear-gradient(125deg,#244b3c,var(--deep));color:white
}
.tides-page .banner .brand{font-size:.73rem;letter-spacing:.11em;text-transform:uppercase;color:var(--champagne)}
.tides-page .banner .brand span{color:inherit}
.tides-page .banner h1{font:400 clamp(2rem,6.8vw,3.2rem)/1.1 var(--display);letter-spacing:-.035em;margin:4px 0 9px}
.tides-page .lowtag{justify-self:start;background:#ffffff12;border:1px solid #e4d29e8a;border-radius:6px;font-size:.7rem;letter-spacing:.055em;color:#ffefbc;padding:4px 8px}
.tides-page .destination{margin:12px 0 2px;font-size:1.05rem;font-weight:750;color:#fffefa}
.tides-page .period{color:#e0eae3;font-variant-numeric:tabular-nums}
.tides-page table{background:var(--paper)}
.tides-page table th{background:var(--green);font-size:.78rem;font-weight:650;padding:10px 6px;line-height:1.25}
.tides-page table th:first-child{width:28%}
.tides-page table :is(th,td):first-child{text-align:left;padding-left:clamp(10px,2.8vw,22px)}
.tides-page td{padding:9px 5px;border-color:#dce5dc}
.tides-page td strong{color:var(--ink)}
.tides-page td span{color:#41695a}
.tides-page tr:nth-child(even){background:#f4f7f2}
.tides-page tr.today{background:#e8f0e5}
.tides-page tr.today td:first-child{box-shadow:inset 3px 0 var(--green)}
.tides-page .source{text-align:left;padding:12px clamp(10px,2.8vw,22px);line-height:1.4;overflow-wrap:anywhere}
.tides-page .source a{text-underline-offset:3px}
.tides-page .actions{margin:12px 0 0}
.tides-page #status:empty{display:none}
.tides-page details{border:1px solid var(--line);border-radius:12px;background:var(--paper);overflow:hidden}
.tides-page details summary{padding:12px;min-height:44px}
.tides-page aside{background:var(--paper);border-color:var(--line);line-height:1.5;margin-bottom:0}
@media(max-width:360px){.tides-page .tabs button,.tides-page .actions button{font-size:.83rem}.tides-page table th{font-size:.72rem}}
.home-page #passeios .photo{background:#2a5143}
.home-page :is(.luck-cover,.destination) .play{
  display:grid;place-items:center;background:#102e26e8;color:#fffefa;padding:0;border:1px solid #e4d29e66
}
.home-page :is(.luck-cover,.destination) .play svg{display:block;width:23px;height:23px}
.home-page .mobilebar b svg{display:block;width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linejoin:round;stroke-linecap:round}

/* Entrada compacta e páginas separadas, com o mesmo cabeçalho. */
.home-page .entry-home{padding-block:clamp(24px,5vw,55px)}
.home-page .entry-home h1{color:var(--champagne);font-size:clamp(2.05rem,8vw,4rem)}
.home-page .entry-home p{margin:8px 0 17px;font-size:clamp(.9rem,3vw,1.05rem)}
.entry-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 10px}
.entry-tile{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:8px;min-height:68px;padding:10px 9px;border:1px solid #d7c28c7d;border-radius:10px;background:#fffefa0b;color:#fffefa;text-decoration:none;line-height:1.18}
.entry-tile:hover,.entry-tile:focus-visible{background:#fffefa20}
.entry-tile svg{color:var(--champagne);width:20px;height:20px}
.entry-tile strong{display:block;font-size:clamp(.85rem,3.35vw,1.05rem)}
.entry-tile small{display:block;margin-top:4px;color:#dbe7dc;font-size:clamp(.69rem,2.65vw,.84rem)}
.entry-arrow{color:var(--champagne);font-size:1.22rem}
.entry-secondary{margin-top:12px;color:#e7ecd9;font-size:.81rem;display:flex;align-items:center;gap:0 6px;flex-wrap:wrap}
.entry-secondary a{padding:9px 0;color:inherit;text-underline-offset:3px}
.topic-breadcrumb{padding-top:16px;font-size:.88rem}
.topic-view .topic-breadcrumb + .section{padding-top:clamp(15px,3vw,35px)}
.home-page .topic-title,.home-page .hero .luck-cover .topic-title{font:400 clamp(1.85rem,6vw,3.1rem)/1.12 var(--display);letter-spacing:-.025em;margin:0 0 12px}
.home-page .luck-page .wrap{max-width:820px}
.home-page .luck-page .visual{aspect-ratio:16/9}
.home-page .mobilebar [aria-current=page],.home-page .nav [aria-current=page]{text-decoration:underline;text-underline-offset:3px}
@media(max-width:365px){.entry-tile{gap:5px;padding-inline:7px}.entry-tile svg{width:17px;height:17px}.entry-arrow{display:none}.entry-tile{grid-template-columns:auto minmax(0,1fr)}}

/* Agenda: um filtro de passeio e um intervalo de visita, sem fileiras de botões. */
.home-page .agenda-controls{display:grid;gap:11px;margin:14px 0 18px}
.home-page .agenda-field{display:grid;gap:4px;min-width:0}
.home-page .agenda-field label,.home-page .agenda-stay legend{font-size:.92rem;font-weight:750}
.home-page .agenda-field :is(select,input){width:100%;min-width:0;min-height:44px;border:1px solid #b6c8bc;border-radius:8px;background:var(--paper);color:var(--ink);font:inherit;padding:6px 8px}
.home-page .agenda-stay{min-width:0;margin:0;padding:8px 10px 10px;border:1px solid var(--line);border-radius:9px}
.home-page .agenda-stay legend{padding:0 4px}
.home-page .agenda-range{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:6px}
.home-page .agenda-range input{display:block;box-sizing:border-box;font-size:.88rem}
.home-page #agenda-range-status:empty{display:none}
.home-page #agenda-range-status{margin:5px 0 0}
.home-page .agenda-reset{min-height:36px;border:0;padding:3px 0;color:var(--green);background:none;text-decoration:underline;text-underline-offset:3px;font-size:.83rem}
.home-page .agenda-today-label{display:block;width:max-content;max-width:100%;font-size:.65rem}
.home-page .agenda-tide{display:block;margin-top:6px;font-size:.75rem;color:var(--muted);line-height:1.3}
.home-page .agenda-tide :is(strong,span){display:block}
.home-page .agenda-pool-note{padding:7px 9px;margin:0}
@media(min-width:690px){.home-page .agenda-controls{grid-template-columns:minmax(185px,1fr) minmax(0,1.6fr);align-items:start}}
@media(max-width:540px){.home-page .agenda-table th:first-child{width:67px}}
.home-page .agenda-selects{display:grid;gap:8px}
.home-page .agenda-orig-note{margin:0 0 9px;color:var(--muted)}
.home-page .agenda-pill.agenda-spanish{display:inline-grid;max-width:100%;border:1px solid #b29a51;background:#fff0c0;color:#283522;font-weight:800;border-radius:8px}
.home-page .agenda-spanish small{font-size:.64rem;line-height:1.1;margin-top:2px;color:#51431e}

/* Avisos acompanham apenas o passeio ao qual se referem. */
.home-page .agenda-pill.agenda-pool-tour{display:inline-block;border-radius:8px}
.home-page .agenda-pool-tour .agenda-tide-note{display:block;margin-top:3px;font-size:.69rem;line-height:1.25;font-weight:600;color:inherit}
.home-page .agenda-pool-tour .agenda-tide{margin-top:4px;font-weight:500}

.home-page .agenda-footer{margin:11px 0 0;padding:12px 14px;border:1px solid var(--line);border-radius:8px;background:var(--paper)}
.home-page .agenda-footer p{margin:0}
.home-page .agenda-footer p:not([hidden])+p:not([hidden]){margin-top:.55rem}
.home-page .agenda-bus-note:not([hidden])::before{content:"";display:inline-block;width:.7em;height:.7em;margin-right:.42em;border:1px solid #a08645;border-radius:2px;background:#fff0c0}
