/* top-stay.css — Mercados F2.2: bloco "onde dormir" no 1.o ecra do telemovel (5 paginas EN).
 * Padrao .wgo das webcams (datas + Stay22 + GYG + carro), adaptado ao hero .seo-hero / .pv2-hero.
 * Nao depende de css/style.css; so seletores .tst* e .tst-hero. */
.tst{--tst-ink:#07152a;--tst-g1:#d8b55a;--tst-g2:#f2d78f;--tst-line:#e6e0d2;--tst-soft:#f3f1ea;--tst-mute:#556377;
  position:relative;z-index:2;box-sizing:border-box;width:100%;max-width:640px;margin:0 auto;padding:18px 16px 16px;border-radius:22px;
  background:#fff;color:var(--tst-ink);text-align:left;box-shadow:0 30px 60px -30px rgba(4,12,24,.75),0 2px 0 rgba(255,255,255,.4) inset;
  font-family:'Inter',system-ui,-apple-system,sans-serif;}
.tst *{box-sizing:border-box;}
.tst .tst__h,.tst-hero .tst h2.tst__h{margin:0 0 4px;letter-spacing:0;text-align:left;font-family:'Bodoni Moda',Georgia,serif;font-size:1.32rem;line-height:1.12;font-weight:700;color:var(--tst-ink);text-wrap:balance;}
.tst .tst__s{margin:0 0 12px;text-align:left;max-width:none;font-size:.88rem;line-height:1.45;color:#475569;}
.tst__z{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin:0 0 8px;}
.tst__z button{min-width:0;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:1px;min-height:48px;padding:6px 12px;
  border:1px solid var(--tst-line);border-radius:12px;background:#fff;color:var(--tst-ink);font:700 .88rem/1.15 'Inter',system-ui,sans-serif;cursor:pointer;text-align:left;}
.tst__z button small{font-weight:500;font-size:.7rem;line-height:1.2;color:var(--tst-mute);}
.tst__z button[aria-pressed="true"]{border-color:var(--tst-ink);background:var(--tst-ink);color:#fff;}
.tst__z button[aria-pressed="true"] small{color:rgba(255,255,255,.75);}
.tst__d{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;padding:4px;margin:0 0 10px;border-radius:14px;background:var(--tst-soft);}
.tst__d button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;min-height:46px;padding:4px 4px;border:0;border-radius:10px;
  background:transparent;color:var(--tst-ink);font:600 .82rem/1.15 'Inter',system-ui,sans-serif;cursor:pointer;text-align:center;}
.tst__d button small{font-weight:400;font-size:.7rem;color:var(--tst-mute);}
.tst__d button[aria-pressed="true"]{background:var(--tst-ink);color:#fff;box-shadow:0 8px 16px -10px rgba(7,21,42,.7);}
.tst__d button[aria-pressed="true"] small{color:rgba(255,255,255,.72);}
.tst__pick{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:0 0 10px;}
.tst__pick[hidden]{display:none;}
.tst__pick label{display:flex;flex-direction:column;gap:4px;font-size:.76rem;font-weight:600;color:#475569;}
.tst__pick input{width:100%;min-height:44px;padding:0 10px;border-radius:10px;border:1px solid #d6dee8;background:#fff;color:var(--tst-ink);font:500 .95rem/1 'Inter',system-ui,sans-serif;}
.tst__hotel{display:flex;align-items:center;justify-content:center;gap:10px;min-height:56px;padding:0 18px;border-radius:14px;
  background:linear-gradient(135deg,var(--tst-g1) 0%,var(--tst-g2) 100%);color:var(--tst-ink);font:700 1.02rem/1.2 'Inter',system-ui,sans-serif;text-align:center;text-decoration:none;
  box-shadow:0 16px 30px -16px rgba(216,181,90,.95);transition:transform .2s ease,filter .2s ease;}
.tst__hotel:hover{transform:translateY(-1px);filter:brightness(1.04);}
.tst__hotel svg{width:18px;height:18px;flex:none;}
.tst__note{margin:8px 2px 12px;font-size:.78rem;line-height:1.45;color:var(--tst-mute);}
.tst__duo{display:grid;grid-template-columns:1fr 1fr;gap:8px;}
.tst__duo a{display:flex;flex-direction:column;gap:3px;min-height:64px;padding:11px 12px;border-radius:14px;border:1px solid var(--tst-line);background:#fff;color:var(--tst-ink);text-decoration:none;transition:border-color .2s ease;}
.tst__duo a:hover{border-color:#c9b98a;}
.tst__duo b{font-size:.88rem;line-height:1.2;}
.tst__duo small{font-size:.74rem;line-height:1.35;color:var(--tst-mute);}
.tst a:focus-visible,.tst button:focus-visible,.tst input:focus-visible{outline:3px solid var(--tst-g1);outline-offset:2px;}

/* Hero com foto real (substitui o gradiente vazio) */
.seo-hero.tst-hero{background:#07152a;padding:96px 5vw 56px;}
.seo-hero.tst-hero::before{background:var(--tst-photo) center top/cover no-repeat;bottom:auto;height:min(78%,640px);opacity:1;z-index:0;}
.seo-hero.tst-hero::after{content:'';position:absolute;inset:0;z-index:0;pointer-events:none;
  background:linear-gradient(180deg,rgba(4,12,24,.5) 0%,rgba(4,12,24,.18) 22%,rgba(4,12,24,.55) 48%,rgba(7,21,42,.92) 70%,#07152a 84%);}
.seo-hero.tst-hero > *{position:relative;z-index:1;}
.seo-hero.tst-hero h1{margin-bottom:18px;text-shadow:0 2px 24px rgba(0,0,0,.35);}
.seo-hero.tst-hero .seo-hero-lead{margin:26px auto 22px;}
.tst-credit{position:absolute !important;right:10px;bottom:6px;color:rgba(255,255,255,.3) !important;z-index:1;margin:0;font-size:9px;line-height:1;color:rgba(255,255,255,.38);}
.tst-credit a{color:inherit;text-decoration:none;}
@media (min-width:900px){
  .tst{display:grid;grid-template-columns:1fr 1fr;column-gap:18px;padding:22px 22px 20px;max-width:780px;}
  .tst__h,.tst__s,.tst__z{grid-column:1 / -1;}
  .tst__d{grid-column:1;margin:0;}
  .tst__pick{grid-column:1 / -1;grid-row:5;margin:10px 0 0;}
  .tst__hotel{grid-column:2;grid-row:4;}
  .tst__note{grid-column:1 / -1;margin:10px 2px 12px;}
  .tst__duo{grid-column:1 / -1;}
}
@media (max-width:640px){
  .seo-hero.tst-hero{padding:72px 16px 30px;}
  .seo-hero.tst-hero .seo-eyebrow{display:none;}
  .seo-hero.tst-hero h1{font-size:clamp(1.6rem,7vw,2rem);margin-bottom:14px;}
  .seo-hero.tst-hero .seo-hero-lead{margin:22px auto 18px;}
  .tst{margin:0 -4px;width:calc(100% + 8px);}
}
@media (max-width:640px) and (max-height:760px){
  .seo-hero.tst-hero{padding-top:66px;}
  .tst__s{display:none;}
  .tst{padding-top:14px;}
}
@media (prefers-reduced-motion:reduce){.tst__hotel,.tst__duo a{transition:none;}}

/* Hero com foto ja existente (.pv2-hero, /en/best-beaches-portugal): bloco na coluna do texto */
.pv2-hero.tst-hero .tst{margin:20px 0 22px;max-width:560px;}
@media (min-width:900px){ .pv2-hero.tst-hero .tst{display:block;} .pv2-hero.tst-hero .tst__d{margin:0 0 10px;} .pv2-hero.tst-hero .tst__note{margin:8px 2px 12px;} }
@media (max-width:640px){
  .pv2-hero.tst-hero .pv2-crumbs{display:none;}
  .pv2-hero.tst-hero .pv2-kicker{margin-bottom:8px;}
  .pv2-hero.tst-hero .tst{margin:16px -4px 20px;width:calc(100% + 8px);}
}
@media (max-width:640px) and (max-height:760px){
  .pv2-hero.tst-hero .pv2-kicker{display:none;}
  .pv2-hero.tst-hero h1{font-size:1.85rem;}
  .pv2-hero.tst-hero h1 em{margin-top:6px;}
  .pv2-hero.tst-hero .tst{margin-top:12px;}
}
