/* Цвета публичных статусов MB-WORLD в карточках и на странице тура. */
.mbw26-hero-booking__status.mbw-public-status,
.tourcard__meta-row--status > span.mbw-public-status {
    display: inline-block;
    width: auto;
    max-width: 100%;
    padding: 5px 10px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-weight: 700;
    line-height: 1.4;
    box-sizing: border-box;
    white-space: normal;
    vertical-align: middle;
}
.mbw26-hero-booking__status.mbw-public-status--open,
.tourcard__meta-row--status > span.mbw-public-status--open {
    background-color: #e9f8ec !important;
    border-color: #cee8d4 !important;
    color: #276244 !important;
}
.mbw26-hero-booking__status.mbw-public-status--limited,
.tourcard__meta-row--status > span.mbw-public-status--limited {
    background-color: #f8e9e9 !important;
    border-color: #ebd0d0 !important;
    color: #934249 !important;
}

/* MB-WORLD 1.3: only the departure dates and the main per-person tour price.
   Keep sizes, colors, deposit amount, and other labels unchanged. */
.mbw26-hero-booking .mbw26-hero-booking__dates,
.mbw26-hero-booking .mbw26-hero-booking__price {
    font-weight: 700 !important;
}

/* MB-WORLD 1.5: enlarge only the date in each "Program by day" header by another 5%
   (1.05 x 1.05 = 1.1025 relative to original). Visual scaling preserves typography,
   as well as the labels "Day N", day titles and body descriptions. */
#program .day-item > summary > small {
    display: inline-block;
    transform: scale(1.1025);
    transform-origin: left center;
}

/* MB-WORLD 1.6 — separate mobile itinerary date from day number/title.
   Existing day content and desktop layout remain untouched. */
@media (max-width: 767px) {
  body #program details.day-item > summary {
    display: grid !important;
    grid-template-columns: max-content minmax(0, 1fr) 24px !important;
    grid-template-rows: auto auto;
    column-gap: 12px !important;
    row-gap: 9px !important;
    align-items: center !important;
  }

  body #program details.day-item > summary > small {
    grid-column: 1 / 3 !important;
    grid-row: 1 !important;
    justify-self: start;
    align-self: center;
    transform: none !important;
    font-size: 19px !important;
    line-height: 1.25 !important;
    white-space: nowrap;
    margin: 0 !important;
  }

  body #program details.day-item > summary > .day-number {
    grid-column: 1 !important;
    grid-row: 2 !important;
    min-width: 0;
    margin: 0 !important;
    white-space: nowrap;
    align-self: start;
    line-height: 1.4 !important;
  }

  body #program details.day-item > summary > strong {
    grid-column: 2 !important;
    grid-row: 2 !important;
    min-width: 0;
    margin: 0 !important;
    align-self: start;
    line-height: 1.35 !important;
    overflow-wrap: break-word;
  }

  /* Keep the existing expand/collapse symbol on the right, without
     allowing it to compress the date or overlap the day title. */
  body #program details.day-item > summary::after {
    grid-column: 3 !important;
    grid-row: 1 / 3 !important;
    justify-self: end;
    align-self: center;
    position: static !important;
    margin: 0 !important;
  }
}
