/* SofiaGoTravel — mobile refinement layer (2026).
   Visual only, and ONLY inside the max-width:760px media query below:
   desktop, colours, copy, functionality, booking/tracking and the hero image
   text styling stay exactly as they are. Loaded from the first line of
   _shared/header.html and _shared/header-bg.html (so it always wins over the
   page's own head styles) and by _shared/footer.html / _shared/footer-bg.html,
   so every page that includes the shared header or footer gets it. */

@media (max-width:760px){
  /* ---------- Rhythm: tighter, more even vertical spacing ---------- */
  /* Home-style section shell (its own mobile value is 3.25rem) */
  .section{padding-block:2.4rem!important}
  .hairline{margin-block:2.2rem!important}
  .section-head{margin-bottom:1.35rem!important}
  .section-head h2{margin-top:.45rem!important}
  .section-head .note{margin-top:.7rem!important}
  .sgt-v2 main section h2::after{margin-top:14px!important;width:56px!important}
  .sgt-v2 footer::before{margin:-20px auto 32px!important}

  /* ---------- Grids: shorter gaps, no stray spacing ---------- */
  .hotel-grid,.guide-grid,.district-grid,.owx-grid,.pillars{gap:.95rem!important}
  .pillars{margin-top:.35rem!important}

  /* ---------- Cards: calmer padding, softer media ---------- */
  .owx-card{padding:1rem .95rem!important}
  .owx-card h3{margin-top:.35rem!important}
  .pillar{padding:.85rem 0!important}
  .guide-body{padding:.9rem 1rem 1.05rem!important}
  .hotel-info{padding:1rem 1.05rem 1.1rem!important}
  .reserve-btn{margin-top:.75rem!important;padding:.66rem!important}
  .guide-read{margin-top:.55rem!important}
  #hotels a::after,.sgt-v2 [data-hp-grid]>a::after,.sgt-v2 [data-ttd-item]::after{inset:auto 16px 0!important}
  .sgt-v2 #areas img,.sgt-v2 #stories img,.sgt-v2 #explore img{min-height:170px!important}

  /* ---------- Icons: no oversized glyphs ---------- */
  .owx-ic{width:1.9rem!important;height:1.9rem!important;font-size:.95rem!important;margin-bottom:.55rem!important}
  .pillar svg{width:1.25rem!important;height:1.25rem!important}
  .pillar h3{margin-top:.7rem!important}
  .star-badge{padding:.24rem .5rem!important;font-size:.68rem!important}
  .brand-badge{width:1.85rem!important;height:1.85rem!important;font-size:.88rem!important}

  /* ---------- Header + menu: lighter chrome ---------- */
  body header > div,body .site-header > div{padding:8px 14px!important}
  body header .head-row{gap:.75rem!important}
  .mobile-menu{padding:5.1rem 1.25rem 1.5rem!important;gap:0!important}
  .mobile-menu a{font-size:1.32rem!important;padding-block:.62rem!important}
  .mobile-menu .find-stay-btn{margin-top:1rem!important}
  .mobile-menu a.find-stay-btn{display:inline-flex!important;align-items:center!important;justify-content:center!important;padding:.7rem 1.35rem!important;font-size:.85rem!important;border-bottom:0!important}

  /* ---------- Blocks: search plate, stats, quotes, footer ---------- */
  .sgt-v2 [data-sf-grid]{padding:8px!important}
  .sgt-v2 [data-sf-grid]>*{padding:8px 6px!important;min-height:40px!important}
  .sgt-v2 [data-sf-grid] input,.sgt-v2 [data-sf-grid] select,.sgt-v2 [data-sf-grid] summary{min-height:36px!important}
  .stats-grid > div{padding-block:.85rem .8rem!important}
  .stat-label{margin-top:.35rem!important}
  .testimonial blockquote{line-height:1.3!important}
  .testimonial cite{margin-top:.85rem!important}
  blockquote{margin-block:1.2rem!important}
  footer.site-foot{padding-block:2.8rem 1.6rem!important}
  .foot-col h4,.foot-col .hgqc-h1{margin-bottom:.6rem!important}
  .foot-col ul{gap:.45rem!important}
  .foot-top{gap:1.6rem!important}
  .foot-bottom{margin-top:2rem!important;padding-top:1.1rem!important;gap:.5rem!important}
  .sgt-v2 footer a{font-size:.82rem!important}
  footer .brand-url{margin-top:.6rem!important}
  .sgt-v2 details{margin-block:.5rem!important}

  /* ---------- Inner pages: article / guide / district / hotel-detail prose ---------- */
  .sec{padding-block:2.6rem!important}
  .sec.tint,.sec.paper{padding-block:2.6rem!important}
  /* NOTE: hero / subhero TEXT styling is deliberately left untouched (owner
     rule). Only the band's own padding above the text is tightened, so the
     fixed header does not leave a huge empty gap on mobile. */
  .subhero{padding-top:6.6rem!important}
  .frameimg{margin-top:1.4rem!important}
  .frameimg img{height:clamp(190px,44vw,290px)!important}
  .headb{margin-bottom:1.2rem!important}
  .article .lead{margin-bottom:1.1rem!important}
  /* Headings of sections *below* the hero keep their styling; only the icon and
     card chrome above/below them is tightened. */
  .article ul,.article ol{margin-block:.9rem!important;gap:.35rem!important}
  .article figure{margin-block:1.1rem!important}
  .article .cardgrid,.cardgrid{gap:1rem!important}
  .faqs > * + *, .qa + .qa{margin-top:.6rem!important}
  .callout,.note-box{margin-block:1rem!important;padding:.9rem 1rem!important}

  /* Illustration icons inside inner-page content stay modest (never touch hero text) */
  .main-nav svg,.mobile-menu svg{width:1.15rem;height:1.15rem}
  footer.site-foot svg{width:1.05rem;height:1.05rem}

  /* ---------- Floating controls: smaller, less intrusive ---------- */
  .asf-launcher{left:12px!important;bottom:12px!important;padding:.6rem .95rem!important;font-size:.8rem!important;gap:7px!important}
  .asf-launcher .asf-bubble{font-size:.95rem!important}

  /* ---------- Icons drawn as <img>/<svg> inside content blocks ---------- */
  .owx-card svg,.pillar img,.callout img.icon{width:1.25rem!important;height:1.25rem!important}

  /* ---------- Pages without the shared header/footer (e.g. /privacy/) ---------- */
  body > main{padding-top:2rem!important;padding-bottom:2.75rem!important}
  body > main > h2{margin-top:1.5rem!important;margin-bottom:.4rem!important}
  body > main > h3{margin-top:1rem!important;margin-bottom:.2rem!important}
}
