/*
  CHIBET Evolution preview landing style fixes — 30 Nov 2026,
  width bumped 1478 → 1480 on 1 Dec 2026 (ver=20261130-style2),
  laptop gutters appended 1 Dec 2026 (ver=20261130-style3),
  leftovers C+D (hero inner + final-form band) 1 Dec 2026
  (ver=20261130-style4).

  Additive. Upload to /evo-preview/assets/css/16-style-fixes-landing-20261130.css
  and link it AFTER chibet-approved-landing.patch.css and
  chibet-unique-pages-extras.css on the unique landing / catalog templates
  (?ver=20261130-style4). Those earlier files would otherwise keep heroes
  at 1380px, --max at 1240px, the catalog at 1240px, and .final-form at
  1280px with 42px padding.

  Do not invent featured-tour cards. Do not change homepage .home-v2 .shell
  here (homepage 1480 shells live in 16-style-fixes-20261130.css).
  Leave unique1 files and their query strings untouched.
*/

/* ------------------------------------------------------------------
   4 + 5. Designed shell 1480px for group / China landings and the
   /tibet-tour/ catalog. Full-bleed page backgrounds may stay full
   width; inner content, heroes, facts grids, and the dark inquiry
   band are 1480. The dark inquiry band must not stay at 1600px.
   ------------------------------------------------------------------ */
.ctl-approved-design {
  --max: 1480px;
}

.ctl-approved-design .hero,
.ctl-approved-design .group-hero {
  width: min(1480px, calc(100% - 32px));
}

.ctl-approved-design .container {
  width: min(var(--max), calc(100% - 64px));
}

/* After the TV move, overview sits under the hero. 57px = 92px − 35px
   on the tall landing blocks only. Do not cut .group-results (already
   padding-top: 48px) or tour-page H2s. */
.ctl-approved-design .overview-section,
.ctl-approved-design .format-comparison,
.ctl-approved-design #planning {
  padding-top: 57px;
}

/* Safety gap if facts ever follow the hero again (should not, after
   the overview is moved into landing_overview). */
.ctl-approved-design .group-hero + .facts {
  margin-top: 0;
  padding-top: 57px;
}

/* Contradictory facts spacing in the approved-landing patch computed
   as margin 0 / padding-top 0 when facts sat flush under the photo.
   Once overview is first, leave facts as a normal following section. */
.ctl-approved-design .overview-section + .facts,
.ctl-approved-design .facts {
  margin-top: 0;
}

/* Landing inquiry (chunk output .inquiry-v2 .shell.inquiry-grid).
   Unscoped .shell was stretching to the 1600px viewport. Constrain
   the dark band only on approved landings, not .home-v2. */
.ctl-approved-design .inquiry-v2 .shell,
.ctl-approved-design .inquiry-v2 .inquiry-grid,
body.chibet-tpl-tibet-group-tours .inquiry-v2 .shell,
body.chibet-tpl-tibet-group-tours .inquiry-v2 .inquiry-grid,
body.chibet-tpl-china-tibet-tours .inquiry-v2 .shell,
body.chibet-tpl-china-tibet-tours .inquiry-v2 .inquiry-grid {
  width: min(1480px, calc(100% - 48px));
  max-width: 1480px;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

/* /tibet-tour/ catalog is in the designed-shell family (not a WC archive). */
body.chibet-tpl-tibet-tour .chibet-tour-catalog {
  width: min(1480px, calc(100% - 64px));
}

@media (max-width: 760px) {
  body.chibet-tpl-tibet-tour .chibet-tour-catalog {
    width: calc(100% - 36px);
  }

  .ctl-approved-design .hero,
  .ctl-approved-design .group-hero {
    width: 100%;
  }
}


/* ------------------------------------------------------------------
   Laptop gutters — 1 Dec 2026 (append). After apply, load as
   ?ver=20261130-style3. Do not remove the rules above. Do not
   change overview / facts padding-top, and do not paste a full
   unique-template file over the live templates. Homepage shells
   are not edited here.
   ------------------------------------------------------------------ */

/* Replace tight desktop gutters: hero was 100% - 32px, container
   100% - 64px, leftover inquiry-v2 100% - 48px, catalog 100% - 64px.
   New formula min(1480px, calc(100% - 192px)) from 761px up.
   Mobile ≤760 keeps the existing catalog 100% - 36px and hero 100%.
   After the landing inquiry wrap switch, .final-form .container
   uses the same container rule. */

@media (min-width: 761px) {
  .ctl-approved-design {
    --max: 1480px;
  }

  .ctl-approved-design .hero,
  .ctl-approved-design .group-hero {
    width: min(1480px, calc(100% - 192px));
  }

  .ctl-approved-design .container {
    width: min(var(--max), calc(100% - 192px));
  }

  .ctl-approved-design .inquiry-v2 .shell,
  .ctl-approved-design .inquiry-v2 .inquiry-grid,
  body.chibet-tpl-tibet-group-tours .inquiry-v2 .shell,
  body.chibet-tpl-tibet-group-tours .inquiry-v2 .inquiry-grid,
  body.chibet-tpl-china-tibet-tours .inquiry-v2 .shell,
  body.chibet-tpl-china-tibet-tours .inquiry-v2 .inquiry-grid,
  .ctl-approved-design .final-form .container,
  body.chibet-tpl-tibet-group-tours .final-form .container,
  body.chibet-tpl-china-tibet-tours .final-form .container {
    width: min(1480px, calc(100% - 192px));
    max-width: 1480px;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
  }

  body.chibet-tpl-tibet-tour .chibet-tour-catalog {
    width: min(1480px, calc(100% - 192px));
  }
}


/* ------------------------------------------------------------------
   Featured-card price typography — 1 Dec 2026 (append).
   Live .group-results foot: small dark “From” + 16px/800 red US$ amount.
   “View tour →” stays a text link with :after, not a filled button.
   Do not change tour-page sidebar .ctp-price. Applied with the same
   landing companion ?ver=20261130-style3 bump as the gutter append
   when both go out in one pass; use style4 only if style3 already
   shipped without this block.
   ------------------------------------------------------------------ */

.ctl-approved-design .group-results .tour-card .tour-foot .price,
body.chibet-tpl-tibet-group-tours .group-results .tour-card .tour-foot .price,
body.chibet-tpl-china-tibet-tours .group-results .tour-card .tour-foot .price {
  display: block !important;
  white-space: nowrap;
  color: #b51435;
  font-size: 16px;
  font-weight: 800;
}

.ctl-approved-design .group-results .tour-card .price small,
body.chibet-tpl-tibet-group-tours .group-results .tour-card .price small,
body.chibet-tpl-china-tibet-tours .group-results .tour-card .price small {
  display: inline;
  color: #172a37;
  font-size: 13px;
  font-weight: 700;
  margin-right: 4px;
}

.ctl-approved-design .group-results .tour-card .price strong,
body.chibet-tpl-tibet-group-tours .group-results .tour-card .price strong,
body.chibet-tpl-china-tibet-tours .group-results .tour-card .price strong {
  display: inline;
  color: #b51435;
  font-size: 16px;
  font-weight: 800;
}

.ctl-approved-design .group-results .tour-card .tour-foot .text-link,
body.chibet-tpl-tibet-group-tours .group-results .tour-card .tour-foot .text-link,
body.chibet-tpl-china-tibet-tours .group-results .tour-card .tour-foot .text-link {
  display: inline-flex !important;
  min-height: 44px;
  align-items: center;
  padding: 0 !important;
  background: none !important;
  color: #b51435 !important;
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
  text-decoration: none;
}

.ctl-approved-design .group-results .tour-card .tour-foot .text-link:after,
body.chibet-tpl-tibet-group-tours .group-results .tour-card .tour-foot .text-link:after,
body.chibet-tpl-china-tibet-tours .group-results .tour-card .tour-foot .text-link:after {
  content: ' →';
  margin-left: 3px;
}


/* ------------------------------------------------------------------
   Leftovers C + D — 1 Dec 2026 (append). After apply, load as
   ?ver=20261130-style4 on templates 11, 12, and 13. Do not remove
   the rules above. Do not edit chibet-approved-landing.patch.css
   or chibet-unique-pages-extras.css (leave ?ver=20261127-unique1).
   Do not retarget homepage .home-v2 .shell or homepage inquiry.
   Mobile ≤760 stays as today (not forced 96px).
   ------------------------------------------------------------------ */

@media (min-width: 761px) {

  /* C) Group / China hero: keep the 1480-formula shell on .group-hero
     (min(1480px, calc(100% - 192px)) from 761px up).
     The inner .container.hero-inner must be 100% of that hero — no
     second 100% - 192px from .ctl-approved-design .container.
     At 1536 (scrollbar-free): hero *content* stays 1344 / 96px sides,
     not 1152 / 192px. At 1600: 1408 / 96. */

  .ctl-approved-design .group-hero,
  body.chibet-tpl-tibet-group-tours .group-hero,
  body.chibet-tpl-china-tibet-tours .group-hero {
    width: min(1480px, calc(100% - 192px));
  }

  .ctl-approved-design .group-hero .container.hero-inner,
  .ctl-approved-design .group-hero .container,
  body.chibet-tpl-tibet-group-tours .group-hero .container.hero-inner,
  body.chibet-tpl-tibet-group-tours .group-hero .container,
  body.chibet-tpl-china-tibet-tours .group-hero .container.hero-inner,
  body.chibet-tpl-china-tibet-tours .group-hero .container {
    width: 100%;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
    box-sizing: border-box;
  }

  /* D) .final-form leftover 1280 + double inset.
     Unique CSS still has:
       .ctl-approved-design .final-form {
         width: min(1280px, calc(100% - 48px));
         padding: 42px;
         margin-inline: auto;
       }
     and the style3 companion also sized .final-form .container to
     min(1480px, calc(100% - 192px)), which inside the 1280 + 42px
     padding box became ~1004 / 266 sides at 1536.

     Remy: the dark band may be full-bleed, but the content shell
     should be 1344 / 96px once at 1536, and 1408 / 96 at 1600 —
     not a leftover 1280 and not a double inset.

     From 761px up: make .final-form a full-bleed dark band
     (width 100%, no 1280 cap, horizontal margin 0). Keep vertical
     padding; drop the 42px side padding so it cannot shrink the
     shell off 1344/96. Size the immediate content wrapper once,
     relative to the full-bleed band. This later rule also overrides
     the style3 companion on .final-form .container so it cannot
     double-inset after the band is full-bleed. Do not change
     typographic inner max-widths (.form-intro h2 etc.). */

  .ctl-approved-design .final-form,
  body.chibet-tpl-tibet-group-tours .final-form,
  body.chibet-tpl-china-tibet-tours .final-form {
    width: 100%;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
    padding-left: 0;
    padding-right: 0;
    box-sizing: border-box;
  }

  .ctl-approved-design .final-form > .container,
  body.chibet-tpl-tibet-group-tours .final-form > .container,
  body.chibet-tpl-china-tibet-tours .final-form > .container,
  .ctl-approved-design .final-form .container,
  body.chibet-tpl-tibet-group-tours .final-form .container,
  body.chibet-tpl-china-tibet-tours .final-form .container {
    width: min(1480px, calc(100% - 192px));
    max-width: 1480px;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
  }
}
