/* V12.25.8 — Mobile polish audit
   - smaller, better-positioned floating WhatsApp button on phones
   - cleaner archive hero proportions on mobile
   - tighter contact-page hero and form spacing
   Scope: TravelGate frontend only. */
@media (max-width: 767px) {
  html, body { overflow-x: hidden !important; }

  body .tg-fab {
    width: 52px !important;
    min-width: 52px !important;
    height: 52px !important;
    right: 14px !important;
    bottom: calc(22px + env(safe-area-inset-bottom)) !important;
    border-radius: 999px !important;
    box-shadow: 0 14px 28px rgba(0,149,169,.30) !important;
  }
  body .tg-fab > span:first-child {
    flex: 0 0 52px !important;
    height: 52px !important;
  }
  body .tg-fab > span:first-child .tg-ico { font-size: 24px !important; }
  body .tg-fab > span:last-child { display: none !important; }

  body.single-tour .tg-fab,
  body.single-attraction .tg-fab,
  body.post-type-archive-tour .tg-fab,
  body.post-type-archive-attraction .tg-fab,
  body.page-id-9 .tg-fab {
    bottom: calc(28px + env(safe-area-inset-bottom)) !important;
  }

  body .tg-bottombar ~ .tg-fab,
  body.single-tour .tg-fab,
  body.single-attraction .tg-fab {
    bottom: calc(112px + env(safe-area-inset-bottom)) !important;
  }

  body .tg-archive-hero {
    height: clamp(248px, 72vw, 320px) !important;
    min-height: 248px !important;
    border-radius: 0 0 24px 24px;
  }
  body .tg-archive-hero nav {
    font-size: 12px !important;
    flex-wrap: wrap !important;
    row-gap: 6px !important;
  }
  body .tg-archive-hero h1 {
    font-size: clamp(28px, 8vw, 38px) !important;
    line-height: 1.08 !important;
    max-width: 11ch !important;
    text-wrap: balance;
  }
  body .tg-archive-hero p {
    font-size: 15px !important;
    line-height: 1.55 !important;
    max-width: 32ch !important;
    margin-top: 12px !important;
  }

  body.page-id-9 .elementor-9 > .elementor-section:first-child,
  body.page-id-9 .elementor-9 > .e-con:first-child {
    min-height: 255px !important;
    border-radius: 0 0 26px 26px;
    overflow: hidden;
    background-position: 62% center !important;
  }
  body.page-id-9 .elementor-9 > .elementor-section:first-child h1,
  body.page-id-9 .elementor-9 > .e-con:first-child h1 {
    font-size: clamp(34px, 10vw, 46px) !important;
    max-width: 9.5ch !important;
    line-height: 1.08 !important;
    text-wrap: balance;
  }
  body.page-id-9 .elementor-9 > .elementor-section:first-child p,
  body.page-id-9 .elementor-9 > .e-con:first-child p {
    font-size: 16px !important;
    line-height: 1.65 !important;
    max-width: 26ch !important;
  }
  body.page-id-9 .elementor-9 .tgfp-form {
    padding: 18px !important;
    border-radius: 18px !important;
  }
  body.page-id-9 .elementor-9 .tgfp-field,
  body.page-id-9 .elementor-9 .tgfp-grid > * { min-width: 0 !important; }
  body.page-id-9 .elementor-9 .tgfp-field input,
  body.page-id-9 .elementor-9 .tgfp-field select,
  body.page-id-9 .elementor-9 .tgfp-field textarea {
    font-size: 16px !important;
  }
}
@media (max-width: 430px) {
  body .tg-fab {
    right: 12px !important;
    width: 50px !important;
    min-width: 50px !important;
    height: 50px !important;
  }
  body .tg-fab > span:first-child {
    flex-basis: 50px !important;
    height: 50px !important;
  }
  body .tg-fab > span:first-child .tg-ico { font-size: 23px !important; }
}

/* V12.25.11: shared desktop navigation must fit without clipping actions. */
@media(min-width:1101px) and (max-width:1500px){
.tg-header>div{gap:10px!important;width:calc(100% - 40px)!important;max-width:none!important}
.tg-header .tg-nav{gap:0!important;min-width:0}
.tg-header .tg-nav-link{font-size:13px!important;padding:10px 5px!important;gap:2px!important}
.tg-header .tg-actions{gap:6px!important;flex-shrink:0}
.tg-header .tg-pkg-btn,.tg-header .tg-plan-btn{font-size:12px!important;padding:10px!important}
.tg-header>div>a{gap:9px!important}
}
@media(min-width:1101px) and (max-width:1300px){
.tg-header>div{flex-wrap:wrap!important;height:auto!important;min-height:88px;padding-block:12px!important}
.tg-header .tg-nav{order:3;flex-basis:100%;justify-content:center}
.tg-header .tg-actions{margin-left:auto}
}

/* V12.25.24: readable category names and counts on mobile photographs. */
@media(max-width:767px){
 .home .tg-cardgrid--cat.tg-home-grid .tg-card>span:first-of-type{position:absolute!important;inset:0!important;z-index:1!important;background:linear-gradient(to top,rgba(8,43,92,.96) 0%,rgba(8,43,92,.78) 26%,rgba(8,43,92,.30) 52%,transparent 78%)!important;pointer-events:none}
 .home .tg-cardgrid--cat.tg-home-grid .tg-card>span:last-of-type{position:absolute!important;left:14px!important;right:38px!important;bottom:14px!important;z-index:2!important;overflow:visible!important;text-align:left}
 .home .tg-cardgrid--cat.tg-home-grid .tg-card>span:last-of-type>span:first-child{font-family:Manrope,sans-serif!important;font-size:14px!important;font-weight:800!important;line-height:1.3!important;letter-spacing:0!important;color:#fff!important;text-shadow:0 1px 3px rgba(0,0,0,.3);white-space:normal!important;overflow-wrap:normal;word-break:normal}
 .home .tg-cardgrid--cat.tg-home-grid .tg-card>span:last-of-type>span:last-child{font-family:Manrope,sans-serif!important;font-size:11px!important;font-weight:500!important;line-height:1.4!important;color:#edf7ff!important;margin-top:4px!important;letter-spacing:0!important;white-space:nowrap}
}

/* V12.25.25: crisp captions below photos and a visible chat SVG. */
.tg-fab svg{color:#fff!important;stroke:#fff!important;visibility:visible!important;opacity:1!important}
@media(max-width:767px){
 .home .tg-cardgrid--cat.tg-home-grid .tg-card{height:190px!important;background:#fff!important;border:1px solid #dce7ee!important;border-radius:15px!important}
 .home .tg-cardgrid--cat.tg-home-grid .tg-card img{height:124px!important;min-height:124px!important;width:100%!important;object-fit:cover!important;display:block!important}
 .home .tg-cardgrid--cat.tg-home-grid .tg-card>span:first-of-type{inset:0 0 66px!important;background:none!important}
 .home .tg-cardgrid--cat.tg-home-grid .tg-card>span:last-of-type{left:0!important;right:0!important;bottom:0!important;height:66px!important;box-sizing:border-box!important;padding:10px 36px 10px 12px!important;background:#fff!important;display:flex!important;flex-direction:column!important;justify-content:center!important;overflow:hidden!important}
 .home .tg-cardgrid--cat.tg-home-grid .tg-card>span:last-of-type>span:first-child{font-size:13px!important;font-weight:700!important;line-height:1.3!important;color:#082b5c!important;text-shadow:none!important;-webkit-text-stroke:0!important;white-space:normal!important}
 .home .tg-cardgrid--cat.tg-home-grid .tg-card>span:last-of-type>span:last-child{color:#526b80!important;font-size:10.5px!important;font-weight:500!important;text-shadow:none!important;margin-top:3px!important}
 .home .tg-cardgrid--cat.tg-home-grid .tg-card::after{bottom:18px!important;right:8px!important;background:#082b5c!important;border-color:#082b5c!important;z-index:3!important}
 .home .tg-cardgrid--cat.tg-home-grid .tg-card::before{bottom:27px!important;right:17px!important;z-index:4!important}
}

/* V12.25.27: video-audited mobile footer, hero contrast and drawer overlap. */
@media(max-width:767px){
 /* Keep the skyline in a bounded lower band instead of stretching it over the tall mobile footer. */
 body .tg-final-wrap{background-color:#082b5c!important;background-image:linear-gradient(to bottom,#082b5c 0%,rgba(8,43,92,.76) 28%,rgba(8,43,92,.48) 100%),url("https://travelgatetourism.com/wp-content/uploads/2026/09/ChatGPT-Image-Sep-15-2026-11_47_31-PM.png")!important;background-size:100% 320px,auto 320px!important;background-position:center bottom!important;background-repeat:no-repeat!important;filter:none!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important}
 body .tg-final-footer{background:transparent!important;filter:none!important;backdrop-filter:none!important}
 body.page-id-248 .tga-hero{position:relative!important;isolation:isolate;min-height:360px!important;height:auto!important;padding:36px 0!important;background-position:65% center!important}
 body.page-id-248 .tga-hero::before{content:""!important;position:absolute!important;inset:0!important;background:linear-gradient(90deg,rgba(8,43,92,.94),rgba(8,43,92,.70))!important;filter:none!important;backdrop-filter:none!important;z-index:0!important;pointer-events:none}
 body.page-id-248 .tga-hero .tga-wrap{position:relative!important;z-index:1!important;width:calc(100% - 40px)!important;max-width:100%!important;margin:auto!important}
 body.page-id-248 .tga-hero .tga-wrap::before{display:none!important}
 body.page-id-248 .tga-hero h1{font-size:30px!important;line-height:1.15!important;letter-spacing:-.6px!important;text-shadow:none!important;overflow-wrap:normal}
 body.page-id-248 .tga-hero p{font-size:14px!important;line-height:1.7!important;color:#f2f8ff!important;text-shadow:none!important}
 body.page-id-249 .elementor-top-section:first-of-type::before,body.page-id-250 .elementor-top-section:first-of-type::before,body.page-id-631 .elementor-top-section:first-of-type::before,body[class*="customize-package"] .elementor-top-section:first-of-type::before{backdrop-filter:none!important;-webkit-backdrop-filter:none!important}
 body.tg-drawer-open .tgp-nav,body.tg-drawer-open .tg-fab{visibility:hidden!important;pointer-events:none!important}
}

/* V12.25.29: complete mobile listing artwork and separation before footer CTA. */
@media(max-width:767px){
 /* Definite frames prevent intrinsic image heights from expanding card media. */
 body .tg-experience-listing .tg-card>.tg-card-media{position:relative!important;display:block!important;width:100%!important;aspect-ratio:16/10!important;height:auto!important;min-height:0!important;max-height:none!important;padding:0!important;overflow:hidden!important;background:#eef5f8!important}
 body .tg-experience-listing .tg-card>.tg-card-media>img{position:absolute!important;inset:0!important;display:block!important;width:100%!important;height:100%!important;min-height:0!important;max-height:none!important;max-width:none!important;margin:0!important;padding:0!important;object-fit:cover!important;object-position:center!important}
 body .tg-experience-listing .tg-card--full-art>.tg-card-media{aspect-ratio:16/9!important}
 body .tg-experience-listing .tg-card--full-art>.tg-card-media>img{object-fit:contain!important}
 body .tg-experience-listing{padding-bottom:56px!important}
 body .tg-experience-listing .tg-pagination{flex-wrap:wrap;row-gap:10px}
 body .tg-archive-hero-img{filter:none!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important}
}
