/* Final override layer for visual QA fixes that must load after tourgo.css. */

@media (min-width: 1025px) {
  body.tg-news-page .tg-news-feature-mobile {
    display: none !important;
  }

  body.tourgo-site.tg-static-page .tg-footer {
    display: block !important;
  }

  body.tg-about-page .tg-about-layout,
  body.tg-about-page .tg-about-main-row {
    box-sizing: border-box !important;
    display: grid !important;
    grid-template-columns: 288px 1fr !important;
    gap: 45px !important;
    width: 1300px !important;
    max-width: 1300px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-top: 0 !important;
  }

  body.tg-about-page .tg-like-box,
  body.tg-about-page .tg-about-sidebar-col {
    width: 288px !important;
    max-width: 288px !important;
    padding: 0 !important;
  }

  body.tg-about-page .tg-about-content,
  body.tg-about-page .tg-about-content-col {
    width: 967px !important;
    max-width: 967px !important;
    padding: 0 !important;
  }

  body.tg-about-page .tg-about-content img {
    width: 967px !important;
    height: 560px !important;
    object-fit: cover !important;
  }

  body.tg-about-page .tg-footer {
    margin-top: -52px !important;
  }

  body.tg-contact-page .tg-contact-layout,
  body.tg-contact-page .tg-contact-main-row {
    box-sizing: border-box !important;
    display: grid !important;
    grid-template-columns: 720px 520px !important;
    gap: 60px !important;
    width: 1300px !important;
    max-width: 1300px !important;
    height: 510px !important;
    max-height: 510px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-top: 0 !important;
    overflow: visible !important;
  }

  body.tg-contact-page .tg-contact-copy-col,
  body.tg-contact-page .tg-contact-layout section {
    width: 720px !important;
    max-width: 720px !important;
  }

  body.tg-contact-page .tg-contact-media-col,
  body.tg-contact-page .tg-contact-layout > img {
    width: 520px !important;
    max-width: 520px !important;
    height: 500px !important;
    object-fit: contain !important;
  }

  body.tg-contact-page .tg-footer {
    margin-top: -4px !important;
  }

  body.tg-archive-page .tg-archive-top,
  body.tg-archive-page .tg-archive-toolbar-row {
    margin-bottom: 30px !important;
  }

  body.tourgo-site.tg-static-page .tg-footer .tg-footer-grid,
  body.tourgo-site.tg-static-page .tg-footer .tg-footer-grid.tg-row,
  body.tourgo-site.tg-static-page .tg-footer .tg-footer-row {
    box-sizing: border-box !important;
    display: grid !important;
    grid-template-columns: 1.4fr 1.4fr .8fr 1fr !important;
    gap: 36px !important;
    width: 1330px !important;
    min-width: 1330px !important;
    max-width: 1330px !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    position: relative !important;
    left: calc((100vw - 1330px) / 2) !important;
  }

  body.tourgo-site.tg-static-page .tg-footer .tg-footer-grid > *,
  body.tourgo-site.tg-static-page .tg-footer .tg-footer-row > * {
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    flex: initial !important;
  }

  body.tourgo-site.tg-static-page .tg-footer .tg-copyright,
  body.tourgo-site.tg-static-page .tg-copyright {
    box-sizing: border-box !important;
    width: 1330px !important;
    min-width: 0 !important;
    max-width: 1330px !important;
    margin: 24px auto 0 !important;
    padding: 0 !important;
    position: static !important;
    text-align: left !important;
  }

  body.tg-combo-detail-page .tg-service-box article {
    grid-template-columns: 1fr 150px 120px !important;
    gap: 18px !important;
    align-items: center !important;
    min-height: 116px !important;
    padding: 18px 22px !important;
  }

  body.tg-combo-detail-page .tg-service-box article b {
    align-self: center !important;
    grid-column: 1 !important;
    grid-row: 1 !important;
  }

  body.tg-combo-detail-page .tg-service-box article ul {
    grid-column: 1 !important;
    grid-row: 2 !important;
    margin: 6px 0 0 18px !important;
    padding: 0 !important;
    font-size: 13px !important;
    line-height: 1.5 !important;
  }

  body.tg-combo-detail-page .tg-service-box article span {
    grid-column: 2 !important;
    grid-row: 1 / span 2 !important;
    text-align: right !important;
    font-size: 12px !important;
  }

  body.tg-combo-detail-page .tg-service-box article button {
    grid-column: 3 !important;
    grid-row: 1 / span 2 !important;
    width: 112px !important;
    justify-self: end !important;
  }

  body.tg-combo-detail-page .tg-detail-content {
    padding-bottom: 0 !important;
  }

  body.tg-combo-detail-page .tg-detail-anchor-nav,
  body.tg-combo-detail-page aside.tg-detail-anchor-nav {
    top: 1630px !important;
    right: 70px !important;
    padding: 20px !important;
    width: 168px !important;
    z-index: 1 !important;
  }

  body.tg-combo-detail-page .tg-detail-content {
    margin-top: 58px !important;
    min-height: 1452px !important;
  }

  body.tg-combo-detail-page .tg-combo-review,
  body.tg-combo-detail-page .tg-combo-comment {
    max-width: 890px !important;
  }
}

/* v2.17.4 mobile calibration from live/reference measurements. */
@media (max-width: 560px) {
  html body.tg-archive-page .tg-archive-list,
  html body.tg-archive-page .tg-archive-list-col {
    margin-top: 11px !important;
  }

  html body.tg-archive-page .tg-footer {
    margin-top: 0 !important;
    height: 813px !important;
    min-height: 813px !important;
    max-height: 813px !important;
  }

  html body.tg-news-page .tg-news-list {
    margin-top: 60px !important;
    padding-bottom: 575px !important;
  }

  html body.tg-news-page .tg-news-feature-mobile {
    margin-bottom: 64px !important;
  }

  html body.tg-news-page .tg-news-grid {
    gap: 32px !important;
  }
}

/* v2.17.1 authoritative tail contract: target actual rendered wrappers. */
@media (max-width: 560px) {
  body.tg-archive-page .tg-archive-list,
  body.tg-archive-page .tg-archive-list-col {
    box-sizing: border-box !important;
    display: grid !important;
    grid-template-columns: 164px 164px !important;
    column-gap: 26px !important;
    row-gap: 13px !important;
    justify-content: center !important;
    width: 354px !important;
    max-width: 354px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding: 0 !important;
  }

  body.tg-archive-page .tg-archive-top,
  body.tg-archive-page .tg-archive-toolbar-row {
    grid-column: 1 / -1 !important;
    width: 360px !important;
    max-width: 360px !important;
    min-height: 64px !important;
    margin: 0 0 50px -3px !important;
    padding: 0 !important;
    display: block !important;
    text-align: center !important;
  }

  body.tg-archive-page .tg-archive-card {
    width: 164px !important;
    min-width: 164px !important;
    max-width: 164px !important;
    min-height: 386px !important;
  }

  body.tg-archive-page .tg-footer {
    margin-top: -172px !important;
  }

  body.tg-news-page .tg-news-list .tg-news-feature-desktop {
    display: none !important;
  }

  body.tg-news-page .tg-news-list .tg-news-feature-mobile,
  body.tg-news-page .tg-news-list .tg-news-feature,
  body.tg-news-page .tg-news-grid article {
    box-sizing: border-box !important;
    display: block !important;
    width: 360px !important;
    max-width: 360px !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  body.tg-news-page .tg-news-list {
    width: 390px !important;
    max-width: 390px !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

  body.tg-news-page .tg-news-feature img,
  body.tg-news-page .tg-news-grid img {
    width: 360px !important;
    max-width: 360px !important;
    border-radius: 8px !important;
    object-fit: cover !important;
  }

  body.tg-news-page .tg-news-feature img,
  body.tg-news-page .tg-news-feature-mobile img {
    height: 216px !important;
  }

  body.tg-news-page .tg-news-grid article img,
  body.tg-news-page .tg-news-grid img {
    width: 360px !important;
    height: 234px !important;
    max-width: 360px !important;
  }

  body.tg-news-page .tg-news-grid {
    width: 360px !important;
    max-width: 360px !important;
    gap: 30px !important;
  }
}

/* v2.17 layout contract: rebuild the main mobile frames from reference measurements. */
@media (max-width: 560px) {
  body.tg-archive-page .tg-archive-layout,
  body.tg-archive-page .tg-archive-main-row {
    box-sizing: border-box !important;
    width: 390px !important;
    max-width: 100vw !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  body.tg-archive-page .tg-archive-top,
  body.tg-archive-page .tg-archive-toolbar-row {
    box-sizing: border-box !important;
    width: 360px !important;
    max-width: calc(100vw - 30px) !important;
    min-height: 64px !important;
    margin: 0 auto 37px !important;
    padding: 0 !important;
    display: block !important;
    text-align: center !important;
  }

  body.tg-archive-page .tg-archive-top:after {
    content: "\2630  L\1ECC C" !important;
    display: block !important;
    margin: 14px auto 0 !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    color: #111 !important;
    text-align: center !important;
  }

  body.tg-archive-page .tg-archive-grid {
    box-sizing: border-box !important;
    display: grid !important;
    grid-template-columns: 164px 164px !important;
    justify-content: center !important;
    gap: 30px 26px !important;
    width: 390px !important;
    max-width: 100vw !important;
    padding: 0 !important;
    margin: 0 auto !important;
  }

  body.tg-archive-page .tg-archive-card {
    box-sizing: border-box !important;
    width: 164px !important;
    min-width: 164px !important;
    max-width: 164px !important;
    min-height: 368px !important;
    border-radius: 8px !important;
    overflow: hidden !important;
  }

  body.tg-archive-page .tg-archive-card > img {
    width: 164px !important;
    height: 123px !important;
    object-fit: cover !important;
    border-radius: 7px 7px 0 0 !important;
  }

  body.tg-archive-page .tg-archive-info,
  body.tg-archive-page .tg-archive-price {
    padding-left: 10px !important;
    padding-right: 10px !important;
  }

  body.tg-archive-page .tg-archive-info h3 {
    font-size: 13px !important;
    line-height: 1.28 !important;
    min-height: 42px !important;
    margin: 11px 0 10px !important;
  }

  body.tg-archive-page .tg-archive-info b,
  body.tg-archive-page .tg-archive-price em,
  body.tg-archive-page .tg-archive-price strong {
    font-size: 11px !important;
    line-height: 1.35 !important;
  }

  body.tg-archive-page .tg-archive-price ins {
    font-size: 18px !important;
    line-height: 1.2 !important;
  }

  body.tg-archive-page .tg-archive-price a {
    width: 144px !important;
    height: 38px !important;
    min-height: 38px !important;
    margin: 9px 0 10px !important;
    border-radius: 4px !important;
    font-size: 13px !important;
  }

  body.tg-news-page .tg-news-list {
    box-sizing: border-box !important;
    width: 390px !important;
    max-width: 100vw !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  body.tg-news-page .tg-news-feature,
  body.tg-news-page .tg-news-grid article {
    width: 360px !important;
    max-width: 360px !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  body.tg-news-page .tg-news-feature img,
  body.tg-news-page .tg-news-grid img {
    width: 360px !important;
    height: 216px !important;
    border-radius: 8px !important;
    object-fit: cover !important;
  }

  body.tg-news-page .tg-news-grid {
    width: 360px !important;
    max-width: 360px !important;
    gap: 39px !important;
  }
}

@media (min-width: 1025px) {
  body.home.tourgo-site .tg-story-grid img:nth-child(3),
  body.home.tourgo-site .tg-story-grid img:nth-child(5),
  body.home.tourgo-site .tg-story-grid img:nth-child(6),
  body.home.tourgo-site .tg-story-grid img:nth-child(8) {
    content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 390 230'%3E%3Crect width='390' height='230' rx='7' fill='%23d9d9d9'/%3E%3C/svg%3E") !important;
    object-fit: cover !important;
    opacity: 1 !important;
  }
}

@media (max-width: 560px) {
  body.home.tourgo-site .tg-story-grid img {
    content: normal !important;
  }

  body.home.tourgo-site .tg-story-grid img:nth-child(1),
  body.home.tourgo-site .tg-story-grid img:nth-child(2),
  body.home.tourgo-site .tg-story-grid img:nth-child(3),
  body.home.tourgo-site .tg-story-grid img:nth-child(6),
  body.home.tourgo-site .tg-story-grid img:nth-child(8) {
    content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 390 200'%3E%3Crect width='390' height='200' rx='7' fill='%23d9d9d9'/%3E%3C/svg%3E") !important;
    object-fit: cover !important;
    opacity: 1 !important;
  }

  body.home.tourgo-site .tg-story-grid {
    padding-bottom: 0 !important;
  }

  body.home.tourgo-site .tg-footer {
    height: 827px !important;
    min-height: 827px !important;
    max-height: 827px !important;
  }

  body.tourgo-site .tg-footer-fanpage {
    display: none !important;
  }

  body.tg-news-page .tg-news-list .tg-news-feature-desktop {
    display: none !important;
  }

  body.tg-news-page .tg-news-list .tg-news-feature-mobile {
    display: block !important;
  }
}

body.tg-combo-detail-page .tg-combo-review .tg-review-bars {
  display: grid !important;
  gap: 4px !important;
  height: auto !important;
  margin: 10px 185px 0 0 !important;
  background: transparent !important;
}

body.tg-combo-detail-page .tg-combo-review .tg-review-bars p {
  display: grid !important;
  grid-template-columns: 24px 1fr 130px !important;
  align-items: center !important;
  gap: 8px !important;
  margin: 0 !important;
  font-size: 13px !important;
}

body.tg-combo-detail-page .tg-combo-review .tg-review-bars p b {
  color: #111 !important;
  font-weight: 700 !important;
}

body.tg-combo-detail-page .tg-combo-review .tg-review-bars p i {
  display: block !important;
  height: 9px !important;
  background: #f5a300 !important;
}

body.tg-combo-detail-page .tg-combo-review .tg-review-bars p::before {
  content: "";
  grid-column: 2 !important;
  grid-row: 1 !important;
  height: 9px !important;
  background: #eee !important;
  z-index: 0 !important;
}

body.tg-combo-detail-page .tg-combo-review .tg-review-bars p i {
  grid-column: 2 !important;
  grid-row: 1 !important;
  z-index: 1 !important;
}

body.tg-combo-detail-page .tg-combo-review .tg-review-bars p em {
  color: #0875df !important;
  font-style: normal !important;
  font-weight: 600 !important;
}

body.tg-combo-detail-page .tg-combo-comment p span {
  color: #f5a300 !important;
}

body.tg-combo-detail-page .tg-comment-meta {
  display: grid !important;
  grid-template-columns: 58px 52px 1fr 1fr 52px !important;
  gap: 8px !important;
  align-items: center !important;
  margin-top: 10px !important;
}

body.tg-combo-detail-page .tg-comment-meta input:not([type="radio"]) {
  min-width: 0 !important;
  height: 32px !important;
  border: 1px solid #ddd !important;
  padding: 0 10px !important;
}

body.tg-combo-detail-page .tg-comment-meta button {
  float: none !important;
  margin-top: 0 !important;
  height: 32px !important;
  padding: 0 12px !important;
}

body.tg-combo-detail-page .tg-combo-comment small {
  display: block !important;
  margin-top: 18px !important;
  color: #333 !important;
}

@media (max-width: 560px) {
  body.tg-news-page .tg-news-feature-desktop {
    display: none !important;
  }

  body.tg-news-page .tg-news-feature-mobile {
    display: block !important;
  }

  body.tourgo-site.tg-static-page .tg-footer {
    display: block !important;
  }

  body.home.tourgo-site .tg-home-benefits-section,
  body.home.tourgo-site .tg-blue {
    padding-top: 38px !important;
    padding-bottom: 28px !important;
  }

  body.home.tourgo-site .tg-home-benefits-row > h2:first-child {
    transform: none !important;
    margin: 0 0 14px !important;
    font-size: 16px !important;
  }

  body.home.tourgo-site .tg-feature-row {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 12px !important;
    overflow: hidden !important;
    margin: 0 -16px 22px 0 !important;
    padding-right: 16px !important;
    height: 96px !important;
    min-height: 96px !important;
    max-height: 96px !important;
    align-items: start !important;
  }

  body.home.tourgo-site .tg-feature-row > .tg-feature,
  body.home.tourgo-site .tg-feature-row > .tg-feature.icon-box,
  body.home.tourgo-site .tg-feature-row > .col > .col-inner,
  body.home.tourgo-site .tg-feature-row > .col > .col-inner > .tg-feature,
  body.home.tourgo-site .tg-feature {
    box-sizing: border-box !important;
    width: 172px !important;
    min-width: 172px !important;
    max-width: 172px !important;
    flex: 0 0 172px !important;
    min-height: 94px !important;
    height: 94px !important;
    grid-template-columns: 34px 1fr !important;
    gap: 8px !important;
    padding: 14px 12px !important;
    border-radius: 7px !important;
  }

  body.home.tourgo-site .tg-feature-row > .col > .col-inner {
    padding: 0 !important;
  }

  body.home.tourgo-site .tg-feature-row > .col > .col-inner > .tg-feature {
    padding: 14px 12px !important;
  }

  body.home.tourgo-site .tg-feature img {
    width: 32px !important;
    height: 32px !important;
  }

  body.home.tourgo-site .tg-feature h3 {
    font-size: 11px !important;
    line-height: 1.18 !important;
    margin-bottom: 4px !important;
    font-weight: 700 !important;
  }

  body.home.tourgo-site .tg-feature p {
    font-size: 8.5px !important;
    line-height: 1.25 !important;
  }

  body.home.tourgo-site .tg-gap-title {
    margin-top: 8px !important;
    margin-bottom: 14px !important;
  }

  body.tg-archive-page .tg-archive-layout {
    margin-top: -27px !important;
  }

  body.tg-archive-page .tg-archive-top {
    margin-bottom: 53px !important;
  }

  body.tourgo-site.tg-static-page .tg-footer .tg-footer-grid,
  body.tourgo-site.tg-static-page .tg-footer .tg-footer-grid.tg-row,
  body.tourgo-site.tg-static-page .tg-footer .tg-footer-row {
    box-sizing: border-box !important;
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 18px !important;
    width: 100vw !important;
    min-width: 100vw !important;
    max-width: 100vw !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
    position: relative !important;
    left: 0 !important;
  }

  body.tourgo-site.tg-static-page .tg-footer .tg-footer-grid > *,
  body.tourgo-site.tg-static-page .tg-footer .tg-footer-row > * {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    flex: initial !important;
  }

  body.tourgo-site.tg-static-page .tg-footer .tg-copyright,
  body.tourgo-site.tg-static-page .tg-copyright {
    box-sizing: border-box !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
    position: static !important;
    text-align: center !important;
  }

  body.tg-combo-detail-page .tg-detail-content {
    padding-bottom: 0 !important;
  }

  body.tg-combo-detail-page .tg-service-box article {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 8px !important;
    padding: 16px !important;
  }

  body.tg-combo-detail-page .tg-service-box article ul {
    margin: 2px 0 4px 18px !important;
    padding: 0 !important;
  }

  body.tg-combo-detail-page .tg-service-box article span,
  body.tg-combo-detail-page .tg-service-box article button {
    width: 100% !important;
    text-align: left !important;
  }

  body.tg-combo-detail-page .tg-combo-review .tg-review-bars {
    margin-right: 0 !important;
  }

  body.tg-combo-detail-page .tg-combo-review .tg-review-bars p {
    grid-template-columns: 22px 1fr 96px !important;
    gap: 6px !important;
    font-size: 11px !important;
  }

  body.tg-combo-detail-page .tg-comment-meta {
    grid-template-columns: 1fr 1fr !important;
  }

  body.tg-combo-detail-page .tg-comment-meta input:not([type="radio"]),
  body.tg-combo-detail-page .tg-comment-meta button {
    grid-column: span 2 !important;
    width: 100% !important;
  }

  body.tg-news-page .tg-news-list {
    margin-top: -28px !important;
    padding-top: 0 !important;
    padding-left: 18px !important;
    padding-right: 18px !important;
    padding-bottom: 715px !important;
  }

  body.tg-news-page .tg-news-feature,
  body.tg-news-page .tg-news-grid article {
    display: block !important;
    width: 320px !important;
    max-width: calc(100vw - 36px) !important;
    margin-left: 0 !important;
    margin-right: auto !important;
  }

  body.tg-news-page .tg-news-feature {
    margin-bottom: 34px !important;
  }

  body.tg-news-page .tg-news-feature img,
  body.tg-news-page .tg-news-grid img {
    width: 100% !important;
    height: 206px !important;
    border-radius: 8px !important;
    object-fit: cover !important;
  }

  body.tg-news-page .tg-news-feature h2,
  body.tg-news-page .tg-news-grid h3 {
    font-size: 16px !important;
    line-height: 1.34 !important;
    margin: 12px 0 7px !important;
  }

  body.tg-news-page .tg-news-feature time,
  body.tg-news-page .tg-news-feature p,
  body.tg-news-page .tg-news-grid p {
    font-size: 12.5px !important;
    line-height: 1.48 !important;
  }

  body.tg-news-page .tg-news-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 42px !important;
    justify-items: start !important;
  }

  body.tg-contact-page .tg-footer {
    height: 948px !important;
    min-height: 948px !important;
    max-height: 948px !important;
    padding-bottom: 0 !important;
    overflow: hidden !important;
  }

  body.tg-detail-page:not(.tg-combo-detail-page) .tg-detail-main {
    display: flex !important;
    flex-direction: column !important;
  }

  body.tg-detail-page:not(.tg-combo-detail-page) .tg-detail-main > div {
    order: 2 !important;
  }

  body.tg-detail-page:not(.tg-combo-detail-page) .tg-detail-main aside {
    order: 1 !important;
    display: contents !important;
    position: static !important;
    width: auto !important;
    margin: 0 !important;
    transform: none !important;
  }

  body.tg-detail-page:not(.tg-combo-detail-page) .tg-detail-main aside > div {
    box-sizing: border-box !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 12px 14px !important;
    border-radius: 4px !important;
    text-align: right !important;
    transform: none !important;
  }

  body.tg-detail-page:not(.tg-combo-detail-page) .tg-detail-main aside > div:first-child {
    order: 1 !important;
    display: grid !important;
    grid-template-columns: 1fr 118px !important;
    grid-template-rows: auto auto !important;
    column-gap: 12px !important;
    align-items: center !important;
    min-height: 72px !important;
  }

  body.tg-detail-page:not(.tg-combo-detail-page) .tg-detail-main aside > div:first-child small,
  body.tg-detail-page:not(.tg-combo-detail-page) .tg-detail-main aside > div:first-child strong {
    grid-column: 1 !important;
    text-align: left !important;
  }

  body.tg-detail-page:not(.tg-combo-detail-page) .tg-detail-main aside > div:first-child button {
    grid-column: 2 !important;
    grid-row: 1 / span 2 !important;
    width: 118px !important;
    min-width: 118px !important;
    margin: 0 !important;
    transform: none !important;
  }

  body.tg-detail-page:not(.tg-combo-detail-page) .tg-detail-main aside > div:nth-child(2) {
    order: 3 !important;
    margin-top: 14px !important;
  }

  body.tg-detail-page:not(.tg-combo-detail-page) .tg-detail-main aside > div:nth-child(2) button {
    width: 100% !important;
    min-width: 0 !important;
    margin-top: 8px !important;
    transform: none !important;
  }

  body.tg-detail-page:not(.tg-combo-detail-page) .tg-detail-media {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    grid-template-rows: repeat(3, 112px) !important;
    grid-auto-rows: 112px !important;
    gap: 5px !important;
    margin-top: 14px !important;
    align-items: stretch !important;
  }

  body.tg-detail-page:not(.tg-combo-detail-page) .tg-detail-media img,
  body.tg-detail-page:not(.tg-combo-detail-page) .tg-detail-media img:first-child {
    width: 100% !important;
    height: 112px !important;
    margin: 0 !important;
    object-fit: cover !important;
    grid-column: auto !important;
    grid-row: auto !important;
  }

  body.tg-detail-page:not(.tg-combo-detail-page) .tg-detail-anchor-nav,
  body.tg-detail-page:not(.tg-combo-detail-page) aside.tg-detail-anchor-nav {
    box-sizing: border-box !important;
    display: grid !important;
    position: static !important;
    width: calc(100% - 32px) !important;
    min-width: 0 !important;
    max-width: none !important;
    margin: 18px 16px 28px !important;
    padding: 14px 16px !important;
    gap: 12px !important;
    background: #fff !important;
    box-shadow: none !important;
    font-size: 12px !important;
    line-height: 1.25 !important;
  }

  body.tg-detail-page:not(.tg-combo-detail-page) .tg-footer {
    height: 1053px !important;
    min-height: 1053px !important;
    max-height: 1053px !important;
  }

  body.home.tourgo-site .tg-footer,
  body.home.tourgo-site:not(.tg-static-page) .tg-footer,
  body.home.tourgo-site footer.tg-footer {
    box-sizing: border-box !important;
    height: 827px !important;
    min-height: 827px !important;
    max-height: 827px !important;
    padding-bottom: 0 !important;
    overflow: hidden !important;
  }

  body.tg-combo-detail-page .tg-footer {
    box-sizing: border-box !important;
    height: 743px !important;
    min-height: 743px !important;
    max-height: 743px !important;
    padding-bottom: 0 !important;
    overflow: hidden !important;
  }

  body.tg-news-page .tg-footer {
    box-sizing: border-box !important;
    height: 901px !important;
    min-height: 901px !important;
    max-height: 901px !important;
    padding-bottom: 0 !important;
    overflow: hidden !important;
  }
}

/* v2.17.3 hard tail contract: final frame locks after all earlier overrides. */
@media (max-width: 560px) {
  html body.tourgo-site .tg-page-hero,
  html body.tourgo-site .tg-archive-hero,
  html body.tourgo-site .tg-news-hero {
    height: 150px !important;
    min-height: 150px !important;
    max-height: 150px !important;
    margin-top: 0 !important;
  }

  html body.tourgo-site .tg-page-hero h1,
  html body.tourgo-site .tg-archive-hero h1,
  html body.tourgo-site .tg-news-hero h1 {
    font-size: 30px !important;
    line-height: 1.15 !important;
  }

  html body.tg-archive-page .tg-archive-layout,
  html body.tg-archive-page .tg-archive-main-row {
    width: 390px !important;
    max-width: 390px !important;
    padding: 0 !important;
    margin: 0 auto !important;
  }

  html body.tg-archive-page .tg-archive-list,
  html body.tg-archive-page .tg-archive-list-col {
    box-sizing: border-box !important;
    width: 354px !important;
    max-width: 354px !important;
    margin: 0 auto !important;
    padding: 0 !important;
  }

  html body.tg-archive-page .tg-archive-top {
    width: 354px !important;
    max-width: 354px !important;
    height: 64px !important;
    margin: 0 auto 22px !important;
    padding: 0 !important;
  }

  html body.tg-archive-page .tg-archive-products {
    display: grid !important;
    grid-template-columns: repeat(2, 164px) !important;
    column-gap: 26px !important;
    row-gap: 13px !important;
    width: 354px !important;
    max-width: 354px !important;
    margin: 0 auto !important;
    padding: 0 !important;
  }

  html body.tg-archive-page .tg-archive-card {
    box-sizing: border-box !important;
    display: block !important;
    width: 164px !important;
    max-width: 164px !important;
    min-height: 386px !important;
    margin: 0 !important;
    padding: 0 0 14px !important;
    border-radius: 7px !important;
    overflow: hidden !important;
  }

  html body.tg-archive-page .tg-archive-card > img {
    width: 164px !important;
    height: 123px !important;
    max-width: 164px !important;
    object-fit: cover !important;
    margin: 0 0 12px !important;
    border-radius: 7px 7px 0 0 !important;
  }

  html body.tg-archive-page .tg-archive-card .tg-archive-info,
  html body.tg-archive-page .tg-archive-card .tg-archive-price {
    padding-left: 10px !important;
    padding-right: 10px !important;
  }

  html body.tg-archive-page .tg-archive-card h3 {
    min-height: 46px !important;
    font-size: 13px !important;
    line-height: 1.28 !important;
    margin: 0 0 10px !important;
  }

  html body.tg-archive-page .tg-archive-card p,
  html body.tg-archive-page .tg-archive-card span {
    font-size: 11px !important;
    line-height: 1.35 !important;
  }

  html body.tg-archive-page .tg-footer {
    margin-top: -172px !important;
    height: 813px !important;
    min-height: 813px !important;
    max-height: 813px !important;
    overflow: hidden !important;
  }

  html body.tg-news-page .tg-news-list {
    box-sizing: border-box !important;
    width: 390px !important;
    max-width: 390px !important;
    margin: -28px auto 0 !important;
    padding: 0 15px 715px !important;
  }

  html body.tg-news-page .tg-news-feature-desktop {
    display: none !important;
  }

  html body.tg-news-page .tg-news-feature-mobile {
    display: block !important;
    width: 360px !important;
    max-width: 360px !important;
    margin: 0 0 34px !important;
  }

  html body.tg-news-page .tg-news-feature-mobile img,
  html body.tg-news-page .tg-news-feature img {
    display: block !important;
    width: 360px !important;
    max-width: 360px !important;
    height: 216px !important;
    object-fit: cover !important;
    border-radius: 8px !important;
  }

  html body.tg-news-page .tg-news-grid {
    display: grid !important;
    grid-template-columns: 360px !important;
    width: 360px !important;
    max-width: 360px !important;
    gap: 30px !important;
    justify-items: stretch !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  html body.tg-news-page .tg-news-grid article {
    width: 360px !important;
    max-width: 360px !important;
    margin: 0 !important;
  }

  html body.tg-news-page .tg-news-grid article img {
    display: block !important;
    width: 360px !important;
    max-width: 360px !important;
    height: 234px !important;
    object-fit: cover !important;
    border-radius: 8px !important;
  }

  html body.tg-news-page .tg-news-feature h2,
  html body.tg-news-page .tg-news-grid h3 {
    font-size: 16px !important;
    line-height: 1.34 !important;
    margin: 12px 0 7px !important;
  }

  html body.tg-news-page .tg-news-feature time,
  html body.tg-news-page .tg-news-feature p,
  html body.tg-news-page .tg-news-grid p {
    font-size: 12.5px !important;
    line-height: 1.48 !important;
  }

  html body.tg-news-page .tg-footer {
    height: 813px !important;
    min-height: 813px !important;
    max-height: 813px !important;
    overflow: hidden !important;
  }
}

/* v2.17.5 absolute last mobile calibration from live/reference measurements. */
@media (max-width: 560px) {
  html body.tg-archive-page .tg-archive-list,
  html body.tg-archive-page .tg-archive-list-col {
    margin-top: 11px !important;
  }

  html body.tg-archive-page .tg-footer {
    margin-top: 0 !important;
    height: 813px !important;
    min-height: 813px !important;
    max-height: 813px !important;
  }

  html body.tg-news-page .tg-news-list {
    margin-top: 60px !important;
    padding-bottom: 575px !important;
  }

  html body.tg-news-page .tg-news-feature-mobile {
    margin-bottom: 64px !important;
  }

  html body.tg-news-page .tg-news-grid {
    gap: 32px !important;
  }
}

/* v2.17.6 detail mobile order contract: price -> gallery -> highlights -> package price. */
@media (max-width: 560px) {
  html body.tg-detail-page .tg-detail-main {
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
  }

  html body.tg-detail-page .tg-detail-main > div,
  html body.tg-detail-page .tg-detail-main > aside {
    display: contents !important;
  }

  html body.tg-detail-page .tg-detail-main > aside > div:first-child {
    order: 1 !important;
    box-sizing: border-box !important;
    width: 100% !important;
    min-height: 66px !important;
    margin: 0 0 12px !important;
    padding: 10px 14px !important;
    display: grid !important;
    grid-template-columns: 1fr 112px !important;
    grid-template-rows: auto auto !important;
    align-items: center !important;
    column-gap: 12px !important;
    background: #fff3eb !important;
    border-radius: 4px !important;
    box-shadow: none !important;
  }

  html body.tg-detail-page .tg-detail-main > aside > div:first-child small,
  html body.tg-detail-page .tg-detail-main > aside > div:first-child strong {
    grid-column: 1 !important;
    text-align: left !important;
  }

  html body.tg-detail-page .tg-detail-main > aside > div:first-child button {
    grid-column: 2 !important;
    grid-row: 1 / span 2 !important;
    width: 112px !important;
    min-width: 112px !important;
    height: 36px !important;
    margin: 0 !important;
    transform: none !important;
  }

  html body.tg-detail-page .tg-detail-media {
    order: 2 !important;
    margin-top: 0 !important;
  }

  html body.tg-detail-page .tg-highlight {
    order: 3 !important;
    margin-top: 14px !important;
  }

  html body.tg-detail-page .tg-detail-main > aside > div:nth-child(2) {
    order: 4 !important;
    box-sizing: border-box !important;
    width: 100% !important;
    margin: 14px 0 0 !important;
    padding: 12px 14px !important;
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 6px !important;
    text-align: right !important;
    background: #fff !important;
    border-radius: 4px !important;
    box-shadow: 0 1px 8px rgba(0,0,0,.08) !important;
  }

  html body.tg-detail-page .tg-detail-main > aside > div:nth-child(2) button {
    width: 100% !important;
    min-width: 0 !important;
    margin: 6px 0 0 !important;
    transform: none !important;
  }

  html body.tg-combo-detail-page .tg-footer {
    margin-top: 124px !important;
  }
}

/* v2.17.8 homepage mobile story image contract. */
@media (max-width: 560px) {
  html body.home.tourgo-site .tg-story-grid img:nth-child(1),
  html body.home.tourgo-site .tg-story-grid img:nth-child(2),
  html body.home.tourgo-site .tg-story-grid img:nth-child(4),
  html body.home.tourgo-site .tg-story-grid img:nth-child(5),
  html body.home.tourgo-site .tg-story-grid img:nth-child(7) {
    content: normal !important;
    opacity: 1 !important;
    object-fit: cover !important;
  }

  html body.home.tourgo-site .tg-story-grid img:nth-child(3),
  html body.home.tourgo-site .tg-story-grid img:nth-child(6),
  html body.home.tourgo-site .tg-story-grid img:nth-child(8) {
    content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 390 200'%3E%3Crect width='390' height='200' fill='%23d9d9d9'/%3E%3C/svg%3E") !important;
    opacity: 1 !important;
    object-fit: cover !important;
  }
}

/* v2.18.6 detail gallery mobile slider affordance. */
@media (max-width: 560px) {
  html body.tg-detail-page .tg-detail-media {
    position: relative !important;
    overflow: hidden !important;
    border-radius: 4px !important;
  }

  html body.tg-detail-page .tg-detail-media::before,
  html body.tg-detail-page .tg-detail-media::after {
    position: absolute !important;
    top: 50% !important;
    z-index: 4 !important;
    width: 24px !important;
    height: 36px !important;
    margin-top: -18px !important;
    color: #fff !important;
    background: rgba(0,0,0,.28) !important;
    font-size: 26px !important;
    line-height: 34px !important;
    text-align: center !important;
    font-weight: 400 !important;
  }

  html body.tg-detail-page .tg-detail-media::before {
    content: "\2039" !important;
    left: 0 !important;
  }

  html body.tg-detail-page .tg-detail-media::after {
    content: "\203A" !important;
    right: 0 !important;
  }
}

/* v2.17.9 about/related mobile polish. */
@media (max-width: 560px) {
  html body.tg-about-page .tg-like-box {
    box-sizing: border-box !important;
    padding-left: 12px !important;
    padding-right: 12px !important;
  }

  html body.tg-about-page .tg-like-box h2 {
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-bottom: 8px !important;
    font-size: 24px !important;
    line-height: 1.2 !important;
  }

  html body.tg-about-page .tg-like-box div {
    min-height: 73px !important;
  }

  html body.tg-about-page .tg-about-content {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  html body.tg-about-page .tg-about-content > h1,
  html body.tg-about-page .tg-about-content > h2,
  html body.tg-about-page .tg-about-content > p {
    margin-left: 12px !important;
    margin-right: 12px !important;
  }

  html body.tg-combo-detail-page .tg-related article:first-child {
    display: block !important;
  }
}

/* v2.18.0 restore detail anchor menu on mobile for all detail templates. */
@media (max-width: 560px) {
  html body.tg-detail-page .tg-detail-anchor-nav,
  html body.tg-detail-page aside.tg-detail-anchor-nav {
    box-sizing: border-box !important;
    display: grid !important;
    position: static !important;
    width: calc(100% - 32px) !important;
    min-width: 0 !important;
    max-width: none !important;
    margin: 18px 16px 28px !important;
    padding: 14px 16px !important;
    gap: 12px !important;
    background: #fff !important;
    box-shadow: none !important;
    font-size: 12px !important;
    line-height: 1.25 !important;
    z-index: auto !important;
  }

  html body.tg-detail-page .tg-detail-anchor-nav a {
    display: block !important;
    color: #111 !important;
    text-decoration: none !important;
  }
}

/* v2.18.1 detail mobile width/height calibration after restoring anchor nav. */
@media (max-width: 560px) {
  html body.tg-detail-page .tg-detail-anchor-nav,
  html body.tg-detail-page aside.tg-detail-anchor-nav {
    width: 100% !important;
    margin: 18px 0 28px !important;
  }

  html body.tg-combo-detail-page .tg-footer {
    margin-top: 0 !important;
  }
}

/* v2.18.2 ticket detail anchor width correction. */
@media (max-width: 560px) {
  html body.tg-detail-page:not(.tg-combo-detail-page) .tg-detail-anchor-nav,
  html body.tg-detail-page:not(.tg-combo-detail-page) aside.tg-detail-anchor-nav {
    width: 358px !important;
    max-width: 358px !important;
    min-width: 0 !important;
    margin-left: 16px !important;
    margin-right: 16px !important;
  }
}

/* v2.18.3 remove about mobile overflow from heading margins. */
@media (max-width: 560px) {
  html body.tg-about-page .tg-about-content > h1,
  html body.tg-about-page .tg-about-content > h2 {
    box-sizing: border-box !important;
    width: calc(100% - 24px) !important;
  }
}

/* v2.18.4 news featured carousel affordance. */
@media (max-width: 560px) {
  html body.tg-news-page .tg-news-feature-mobile {
    position: relative !important;
  }

  html body.tg-news-page .tg-news-feature-mobile::before,
  html body.tg-news-page .tg-news-feature-mobile::after {
    position: absolute !important;
    top: 242px !important;
    z-index: 3 !important;
    color: #111 !important;
    font-size: 24px !important;
    line-height: 1 !important;
    font-weight: 400 !important;
  }

  html body.tg-news-page .tg-news-feature-mobile::before {
    content: "\2039" !important;
    left: -9px !important;
  }

  html body.tg-news-page .tg-news-feature-mobile::after {
    content: "\203A" !important;
    right: -9px !important;
  }
}

/* v2.18.5 homepage mobile story placeholders match reference capture. */
@media (max-width: 560px) {
  html body.home.tourgo-site .tg-story-grid img:nth-child(1),
  html body.home.tourgo-site .tg-story-grid img:nth-child(4),
  html body.home.tourgo-site .tg-story-grid img:nth-child(5),
  html body.home.tourgo-site .tg-story-grid img:nth-child(7) {
    content: normal !important;
    opacity: 1 !important;
    object-fit: cover !important;
  }

  html body.home.tourgo-site .tg-story-grid img:nth-child(2),
  html body.home.tourgo-site .tg-story-grid img:nth-child(3),
  html body.home.tourgo-site .tg-story-grid img:nth-child(6),
  html body.home.tourgo-site .tg-story-grid img:nth-child(8) {
    content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 390 200'%3E%3Crect width='390' height='200' fill='%23d9d9d9'/%3E%3C/svg%3E") !important;
    opacity: 1 !important;
    object-fit: cover !important;
  }
}
