/* Kyrgyz Wonders — Group Tours page. Canonical page stylesheet.
   Group Tours-specific rules live only here; unified-site.css keeps shared/global rules. */

.kw-group-page {
  background: #fff;
  color: #5f6b75;
}

.kw-group-page-shell {
  width: min(var(--kw-shell, 1320px), calc(100% - 64px)) !important;
  max-width: var(--kw-shell, 1320px) !important;
  margin-inline: auto !important;
}

/* =========================================================
   HERO — one active Group Tours definition
   ========================================================= */
.kw-group-page-hero {
  position: relative !important;
  width: 100% !important;
  height: var(--kw-hero-desktop, 620px) !important;
  min-height: var(--kw-hero-desktop, 620px) !important;
  max-height: var(--kw-hero-desktop, 620px) !important;
  display: flex;
  align-items: center;
  overflow: hidden !important;
  isolation: isolate;
  color: #fff !important;
  background-image: var(--kw-hero-overlay), var(--kw-group-hero) !important;
  background-position: center !important;
  background-size: cover !important;
  background-repeat: no-repeat !important;
  box-shadow: inset 0 -72px 110px rgba(4, 18, 31, 0.16);
}

.kw-group-page-hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(
      90deg,
      rgba(3, 18, 29, 0.86) 0%,
      rgba(3, 18, 29, 0.62) 34%,
      rgba(3, 18, 29, 0.24) 62%,
      rgba(3, 18, 29, 0.12) 100%
    ),
    linear-gradient(
      180deg,
      rgba(2, 14, 24, 0.25),
      transparent 45%,
      rgba(2, 14, 24, 0.52)
    );
}

.kw-group-page-hero::after {
  pointer-events: none;
}

.kw-group-page-hero > .kw-group-page-shell {
  position: relative !important;
  z-index: 2 !important;
  width: min(var(--kw-shell, 1320px), calc(100% - 64px)) !important;
  max-width: var(--kw-shell, 1320px) !important;
  height: 100% !important;
  min-height: 0 !important;
  margin-inline: auto !important;
  padding: 104px 0 34px !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: flex-start !important;
}

.kw-group-page-hero__copy {
  max-width: 1200px !important;
  padding: 13px 0 18px;
  color: #fff;
}

.kw-group-page-hero__copy > span {
  display: block !important;
  margin: 10px 0 20px !important;
  color: #e2a53d !important;
  font-family: "Great Vibes", cursive !important;
  font-size: 32px !important;
  font-weight: 500 !important;
  line-height: 1.2;
  letter-spacing: 0.01em;
  text-transform: capitalize !important;
}

.kw-group-page-hero h1 {
  max-width: 1320px !important;
  margin: 0 0 34px !important;
  color: #fff !important;
  font-family: var(--kw-heading-font, Marcellus, Georgia, serif) !important;
  font-size: clamp(48px, 5vw, 72px) !important;
  font-weight: 400 !important;
  line-height: 1.02 !important;
  letter-spacing: -0.025em !important;
  text-shadow: 0 4px 26px rgba(0, 0, 0, 0.2) !important;
}

.kw-group-page-hero p {
  display: -webkit-box;
  max-width: 500px !important;
  margin-bottom: 40px !important;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.9) !important;
  font-family: var(--kw-body-font, Manrope, Arial, sans-serif) !important;
  font-size: 16px !important;
  font-weight: 400 !important;
  line-height: 1.7 !important;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.kw-group-page-hero__copy > a {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 0 22px;
  border: 1px solid rgba(218, 160, 67, 0.72);
  border-radius: 8px !important;
  background: rgba(4, 20, 31, 0.34);
  color: #fff;
  text-decoration: none;
  font: 700 11px/1 Manrope, sans-serif;
  text-transform: uppercase;
  transition: 0.22s ease;
}

.kw-group-page-hero__copy > a:hover {
  background: #c98b2b;
  border-color: #c98b2b;
  transform: translateY(-2px);
}

/* =========================================================
   SECTIONS
   ========================================================= */
.kw-group-departures,
.kw-group-page-tours {
  padding: 92px 0;
}

.kw-group-departures {
  background: #f8f6f2;
}

/* Group Tours section heading — editorial layout matching the “What to Pack” reference. */
.kw-group-section-heading {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  column-gap: 56px;
  width: 100%;
  max-width: none;
  margin: 0 0 44px;
  padding: 0;
  text-align: left;
}

.kw-group-section-heading > span {
  grid-column: 1;
  display: inline-flex;
  align-items: center;
  width: max-content;
  max-width: 100%;
  gap: 16px;
  margin: 0 0 10px;
  color: #c98b2b;
  font: 400 32px/1.05 "Great Vibes", cursive;
  letter-spacing: 0;
  text-transform: none;
}

.kw-group-section-heading > span::after {
  content: "";
  display: block;
  width: 46px;
  height: 1px;
  flex: 0 0 46px;
  background: #c98b2b;
}

.kw-group-section-heading h2 {
  grid-column: 1;
  margin: 0;
  max-width: 900px;
  color: #102033;
  font: 400 clamp(44px, 4vw, 58px)/1.04 Marcellus, Georgia, serif;
  letter-spacing: -0.025em;
}

.kw-group-section-heading p {
  grid-column: 1;
  max-width: 760px;
  margin: 12px 0 0;
  color: #5f7180;
  font: 400 14px/1.65 Manrope, Arial, sans-serif;
}

/* Right-side editorial note, so the existing HTML does not need to change. */
.kw-group-section-heading::after {
  content: "Small groups. Big adventures.";
  grid-column: 2;
  grid-row: 1 / span 3;
  align-self: end;
  margin: 0 0 6px;
  color: #9a641c;
  font: italic 17px/1.35 Georgia, "Times New Roman", serif;
  white-space: nowrap;
}

/* =========================================================
   DEPARTURES TABLE — final active values merged
   ========================================================= */
.kw-group-departure-table-wrap {
  overflow: hidden;
  border: 1px solid var(--kw-line, #e8e1d7) !important;
  border-radius: var(--kw-card-radius, 14px) !important;
  background: #fff;
  box-shadow: var(--kw-shadow, 0 14px 36px rgba(16, 32, 51, 0.08)) !important;
}

.kw-group-departure-table {
  width: 100%;
}

.kw-group-departure-row {
  display: grid;
  grid-template-columns:
    112px minmax(260px, 1fr) 88px 118px 108px 116px !important;
  align-items: center;
  gap: 0;
  min-height: 98px;
  border-top: 1px solid #eee7dc;
}

.kw-group-departure-row:first-child {
  border-top: 0;
}

.kw-group-departure-row > div {
  min-width: 0;
  padding: 16px 14px !important;
}

.kw-group-departure-row > div:last-child {
  padding-right: 16px !important;
}

.kw-group-departure-row.is-head {
  min-height: 48px;
  background: #102033;
  color: rgba(255, 255, 255, 0.72);
  font: 700 9px/1 Manrope, sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.kw-group-date-badge {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: end;
}

.kw-group-date-badge small {
  grid-column: 1/-1;
  color: #c98b2b;
  font: 800 10px/1 Manrope, sans-serif;
  letter-spacing: 0.08em;
}

.kw-group-date-badge strong {
  color: #102033;
  font: 400 28px/1 Marcellus, serif;
}

.kw-group-date-badge span {
  padding-bottom: 2px;
  color: #7b8791;
  font-size: 10px;
}

.kw-group-departure-tour strong {
  display: block;
  color: #102033;
  font: 700 13px/1.35 Manrope, sans-serif;
}

.kw-group-departure-tour small {
  display: block;
  margin-top: 6px;
  color: #85909a;
  font-size: 10px;
}

.kw-group-departure-days {
  color: #102033;
  font-weight: 700;
}

.kw-group-departure-slots {
  display: flex;
  align-items: baseline;
  gap: 5px;
}

.kw-group-departure-slots strong {
  color: #102033;
  font: 400 25px/1 Marcellus, serif;
}

.kw-group-departure-slots span {
  color: #7e8992;
  font-size: 10px;
}

.kw-group-status {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 11px;
  border-radius: 999px;
  background: #ecf7ef;
  color: #2b7a49;
  font: 700 9px/1 Manrope, sans-serif;
  text-transform: uppercase;
}

.kw-group-status.is-sold {
  background: #fbefef;
  color: #a65050;
}

.kw-group-row-button {
  width: 100%;
  min-width: 96px;
  min-height: 46px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 9px !important;
  padding: 0 20px !important;
  border: 1px solid var(--kw-gold, #c98b2b) !important;
  border-radius: var(--kw-button-radius, 8px) !important;
  background: var(--kw-gold, #c98b2b) !important;
  color: #fff !important;
  box-shadow: none !important;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  font-family: Manrope, sans-serif;
  font-size: 12px !important;
  font-weight: 500 !important;
  line-height: 1;
  letter-spacing: 0.035em !important;
  text-transform: uppercase !important;
  transition:
    background var(--kw-transition, 180ms ease),
    border-color var(--kw-transition, 180ms ease),
    color var(--kw-transition, 180ms ease),
    transform var(--kw-transition, 180ms ease) !important;
}

.kw-group-row-button:hover {
  background: var(--kw-gold-hover, #b87817) !important;
  border-color: var(--kw-gold-hover, #b87817) !important;
  color: #fff !important;
  transform: translateY(-1px);
}

.kw-group-row-button i {
  font-size: var(--kw-arrow-size, 15px) !important;
  line-height: 1 !important;
  transform: none;
}

.kw-group-empty {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 30px;
}

.kw-group-empty > i {
  color: #c98b2b;
  font-size: 30px;
}

.kw-group-empty strong,
.kw-group-empty span {
  display: block;
}

.kw-group-empty strong {
  color: #102033;
}

.kw-group-empty span {
  margin-top: 5px;
  font-size: 12px;
}

/* =========================================================
   TOUR GRID
   ========================================================= */
.kw-group-page-tours {
  background: #fff;
}

.kw-group-page-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
}

.kw-group-page-grid .kw-tour-card {
  min-width: 0;
}

/* =========================================================
   BENEFITS
   ========================================================= */
.kw-group-page-benefits {
  padding: 34px 0;
  border-block: 1px solid #ece4d8;
  background: #fbfaf8;
}

.kw-group-page-benefits .kw-group-page-shell {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.kw-group-page-benefits article {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 2px 12px;
  align-items: center;
  padding: 14px 28px;
  border-right: 1px solid #e7dfd3;
}

.kw-group-page-benefits article:last-child {
  border-right: 0;
}

.kw-group-page-benefits i {
  grid-row: 1 / span 2;
  color: #c98b2b;
  font-size: 24px;
}

.kw-group-page-benefits strong {
  color: #102033;
  font: 700 12px/1.25 Manrope, sans-serif;
}

.kw-group-page-benefits span {
  color: #7b8791;
  font-size: 10px;
  line-height: 1.4;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1199px) {
  .kw-group-page-hero {
    height: var(--kw-hero-tablet, 520px) !important;
    min-height: var(--kw-hero-tablet, 520px) !important;
    max-height: var(--kw-hero-tablet, 520px) !important;
  }

  .kw-group-page-hero > .kw-group-page-shell {
    width: calc(100% - 40px) !important;
    padding-top: 82px !important;
  }

  .kw-group-page-hero h1 {
    font-size: clamp(46px, 5vw, 54px) !important;
  }
}

@media (max-width: 1180px) {
  .kw-group-departure-table-wrap {
    overflow-x: auto;
  }

  .kw-group-departure-table {
    min-width: 900px;
  }
}

@media (max-width: 1120px) {
  .kw-group-page-grid {
    grid-template-columns: 1fr;
  }

  .kw-group-page-benefits .kw-group-page-shell {
    grid-template-columns: repeat(2, 1fr);
  }

  .kw-group-page-benefits article:nth-child(2) {
    border-right: 0;
  }
}

@media (max-width: 1050px) {
  .kw-group-page-shell {
    width: calc(100% - 40px) !important;
  }
}


@media (max-width: 900px) {
  .kw-group-section-heading {
    grid-template-columns: 1fr;
    row-gap: 0;
  }

  .kw-group-section-heading::after {
    grid-column: 1;
    grid-row: auto;
    margin: 16px 0 0;
    white-space: normal;
  }
}

@media (max-width: 767px) {
  .kw-group-page-hero {
    height: auto !important;
    min-height: var(--kw-hero-mobile, 480px) !important;
    max-height: none !important;
  }

  .kw-group-page-hero > .kw-group-page-shell {
    width: calc(100% - 36px) !important;
    min-height: var(--kw-hero-mobile, 480px) !important;
    padding: 82px 0 30px !important;
  }

  .kw-group-page-hero h1 {
    font-size: clamp(36px, 10vw, 42px) !important;
  }

  .kw-group-page-hero p {
    font-size: 14px !important;
    line-height: 1.6 !important;
  }
}

@media (max-width: 760px) {
  .kw-group-page-shell {
    width: calc(100% - 28px) !important;
  }

  .kw-group-page-hero__copy {
    padding: 105px 0 95px;
  }

  .kw-group-page-hero h1 {
    font-size: 42px !important;
  }

  .kw-group-departures,
  .kw-group-page-tours {
    padding: 64px 0;
  }

  .kw-group-section-heading {
    grid-template-columns: 1fr;
    row-gap: 0;
    margin-bottom: 32px;
  }

  .kw-group-section-heading > span {
    font-size: 28px;
    gap: 12px;
  }

  .kw-group-section-heading > span::after {
    width: 40px;
    flex-basis: 40px;
  }

  .kw-group-section-heading h2 {
    font-size: 38px;
  }

  .kw-group-section-heading p {
    max-width: 100%;
    margin-top: 10px;
  }

  .kw-group-section-heading::after {
    grid-column: 1;
    grid-row: auto;
    margin: 14px 0 0;
    font-size: 15px;
    white-space: normal;
  }

  .kw-group-page-benefits .kw-group-page-shell {
    grid-template-columns: 1fr;
  }

  .kw-group-page-benefits article {
    border-right: 0;
    border-bottom: 1px solid #e7dfd3;
  }

  .kw-group-page-benefits article:last-child {
    border-bottom: 0;
  }
}
