/* ==========================================================
   Overnight Charter page components
   Bohemian Marine
   ========================================================== */

/* ---------- Facts bar ---------- */

.bm-facts {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin: 0;
  padding: 24px 0;
  border: 1px solid #e1e6ec;
  border-radius: 16px;
  background: #ffffff;
}

.bm-facts__item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0 24px;
}

.bm-facts__item + .bm-facts__item {
  border-left: 1px solid #e1e6ec;
}

.bm-facts__label,
.bm-facts__value {
  margin: 0;
  padding: 0;
}

.bm-facts__label {
  color: var(--color-body-text);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.bm-facts__value {
  color: var(--color-primary);
  font-weight: 600;
}

/* Tablet and mobile: 2 columns, last item full width */
@media (max-width: 1023px) {
  .bm-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 0;
  }

  .bm-facts__item {
    padding: 16px;
  }

  .bm-facts__item + .bm-facts__item {
    border-left: 0;
  }

  .bm-facts__item:nth-child(even) {
    border-left: 1px solid #e1e6ec;
  }

  .bm-facts__item:nth-child(n + 3) {
    border-top: 1px solid #e1e6ec;
  }

  .bm-facts__item:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }
}


/* ---------- Price box ----------
   WPBakery: section with the extra class bm-price-box,
   one 1/1 column containing a Text Block (H2 + paragraph)
   and a Button.
   Desktop: text left, button right. Mobile: stacked.
   ---------------------------------------- */

.bm-price-box .vc_column-inner {
  padding: 48px !important;
  border-radius: 16px;
  background: #f4f6f9;
}

.bm-price-box .vc_column-inner > .wpb_wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
}

.bm-price-box .vc_column-inner > .wpb_wrapper > .wpb_text_column {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
}

.bm-price-box .wpb_text_column p:last-child {
  margin-bottom: 0;
}

.bm-price-box .vc_column-inner > .wpb_wrapper > .w-btn-wrapper {
  flex: 0 0 auto;
  margin: 0;
}

/* Mobile */
@media (max-width: 767px) {
  .bm-price-box .vc_column-inner {
    padding: 24px 16px !important;
  }

  .bm-price-box .vc_column-inner > .wpb_wrapper {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }
}