.cbnb-field-invalid {
  border-color: #d93025 !important;
  box-shadow: 0 0 0 1px rgba(217,48,37,.18) !important;
}
.select2-hidden-accessible.cbnb-field-invalid + .select2 .select2-selection {
  border-color: #d93025 !important;
  box-shadow: 0 0 0 1px rgba(217,48,37,.18) !important;
}
.cbnb-field-error {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.35;
  color: #d93025;
}
form.jet-form-builder[data-form-id="3476"] .jet-form-builder__field-wrap:has([name^="lessee_ads_qualifications"]) > .cbnb-field-error,
form.jet-form-builder[data-form-id="3476"] .cbnb-lessee-availability-range > .cbnb-field-error {
  display: none;
}
.cbnb-form-error-summary {
  display: block;
  margin: 0 0 16px;
  padding: 12px 14px;
  border: 1px solid rgba(217,48,37,.24);
  border-radius: 4px;
  background: #fff4f2;
  color: #b42318;
  font-size: 14px;
  line-height: 1.45;
}
.cbnb-char-counter {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  line-height: 1.35;
  color: #6b7280;
}
.cbnb-char-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.35;
  color: #6b7280;
}
.cbnb-char-meta .cbnb-char-counter {
  display: inline;
  margin-top: 0;
  color: inherit;
}
.cbnb-char-meta .cbnb-char-counter--warning {
  color: #b45309;
}
.cbnb-min-symbols {
  flex: 1 1 auto;
}
.cbnb-char-counter--warning { color: #b45309; }
.accordion__item .yacht-dates__list a[target="_blank"]::after {
  content: " ↗";
  font-size: .9em;
}


.cbnb-overlap-disabled-date { position: relative; opacity: .45 !important; }
.cbnb-overlap-disabled-date::after { content: "⚓"; position: absolute; right: 2px; bottom: 0; font-size: 9px; line-height: 1; }

/* Blocked days read differently from a booked day: the boat is gone, not busy. */
.cbnb-not-available-date {
  background-image: repeating-linear-gradient(135deg, rgba(0, 0, 0, .18) 0 2px, transparent 2px 5px);
}
.cbnb-not-available-date::after { content: "✕"; }

/* The day grid clips overflow, so the bubble is anchored to the calendar itself. */
.cbnb-day-tip {
  position: absolute;
  z-index: 5;
  max-width: 230px;
  padding: 6px 9px;
  border-radius: 6px;
  background: #003D5B;
  color: #fff;
  font-size: 12px;
  line-height: 1.35;
  text-align: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity .12s ease;
}
.cbnb-day-tip.is-visible { opacity: 1; }
.cbnb-day-tip::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -5px;
  margin-left: -5px;
  border: 5px solid transparent;
  border-top-color: #003D5B;
  border-bottom: 0;
}

/* Same palette as the public seasonality calendar, so the owner learns one legend. */
.flatpickr-day.cbnb-season-day--high { background-color: #ff9e37; }
.flatpickr-day.cbnb-season-day--mid { background-color: #FFCB6B; }
.flatpickr-day.cbnb-season-day--low { background-color: #ffeca6; }
.flatpickr-day.cbnb-season-day:not(.selected):not(.startRange):not(.endRange):not(.inRange) {
  border-color: transparent;
  color: #1f2937;
}

.cbnb-route-date-hidden {
  display: none !important;
}

body:not(.wp-admin) .jet-form-builder-repeater__row .wp-block-column:has(> .jet-form-builder-row input[name*="[marina_start]"]),
body:not(.wp-admin) .jet-form-builder-repeater__row .wp-block-column:has(> .jet-form-builder-row input[name*="[marina_end]"]),
body:not(.wp-admin) .jet-form-builder-repeater__row .wp-block-column:has(> .jet-form-builder-row input[name*="[transition_start]"]),
body:not(.wp-admin) .jet-form-builder-repeater__row .wp-block-column:has(> .jet-form-builder-row input[name*="[transition_end]"]),
body:not(.wp-admin) .jet-form-builder-repeater__row .wp-block-column:has(> .jet-form-builder-row input[name*="[flexibl_dates_start]"]),
body:not(.wp-admin) .jet-form-builder-repeater__row .wp-block-column:has(> .jet-form-builder-row input[name*="[flexibl_dates_end]"]),
body:not(.wp-admin) .jet-form-builder-repeater__row .wp-block-column:has(> .jet-form-builder-row input[name$="_marina_start"]),
body:not(.wp-admin) .jet-form-builder-repeater__row .wp-block-column:has(> .jet-form-builder-row input[name$="_marina_end"]),
body:not(.wp-admin) .jet-form-builder-repeater__row .wp-block-column:has(> .jet-form-builder-row input[name$="_transition_start"]),
body:not(.wp-admin) .jet-form-builder-repeater__row .wp-block-column:has(> .jet-form-builder-row input[name$="_transition_end"]),
body:not(.wp-admin) .jet-form-builder-repeater__row .wp-block-column:has(> .jet-form-builder-row input[name$="_flexibl_dates_start"]),
body:not(.wp-admin) .jet-form-builder-repeater__row .wp-block-column:has(> .jet-form-builder-row input[name$="_flexibl_dates_end"]) {
  display: none !important;
}

.cbnb-route-date-range-wrap {
  width: 100%;
  margin: 18px 0 20px;
}

.cbnb-route-date-range-label {
  display: block !important;
  width: 100%;
  margin: 0 0 6px;
  padding: 0 !important;
  font-size: inherit;
  font-weight: inherit;
}

.cbnb-route-date-range-label::before,
.cbnb-route-date-range-label::after {
  content: none !important;
  display: none !important;
}

.cbnb-owner-route-range-description {
  margin: 0 0 10px;
  color: #6b7280;
  font-size: 0.9em;
  line-height: 1.45;
}

.cbnb-owner-route-headline-description {
  margin: 0 0 10px;
  color: #6b7280;
  font-size: 0.9em;
  line-height: 1.45;
}

.cbnb-route-date-range {
  box-sizing: border-box;
  display: block;
  width: 100%;
  min-height: 42px;
  margin-top: 0;
  padding: 10px 14px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background: #fff;
  color: #333;
  font: inherit;
}

.cbnb-route-date-range + .cbnb-char-counter,
.cbnb-route-date-range + .cbnb-final-counter,
.cbnb-route-date-range-wrap .cbnb-char-counter,
.cbnb-route-date-range-wrap .cbnb-final-counter {
  display: none !important;
}

body:not(.wp-admin) form.jet-form-builder:is(
  [data-form-id="3194"],
  [data-form-id="3527"]
) :is(.cbnb-owner-form-row, .cbnb-owner-route-row) {
  align-items: flex-start;
  gap: 24px;
}

body:not(.wp-admin) form.jet-form-builder:is(
  [data-form-id="3194"],
  [data-form-id="3527"]
) :is(.cbnb-owner-form-row, .cbnb-owner-route-row) > .wp-block-column {
  box-sizing: border-box;
  min-width: 0;
}

body:not(.wp-admin) form.jet-form-builder:is(
  [data-form-id="3194"],
  [data-form-id="3527"]
) :is(.cbnb-owner-form-row, .cbnb-owner-route-row)
  :is(.jet-form-builder-row, .jet-form-builder__field-wrap, input, select, textarea) {
  box-sizing: border-box;
  max-width: 100%;
}

body:not(.wp-admin) form.jet-form-builder:is(
  [data-form-id="3194"],
  [data-form-id="3527"]
) .cbnb-owner-route-row--headline-date .cbnb-route-date-range-wrap {
  margin: 0;
}

body:not(.wp-admin) form.jet-form-builder:is(
  [data-form-id="3194"],
  [data-form-id="3527"]
) .cbnb-owner-route-row--headline-date .cbnb-route-date-range {
  width: 50%;
}

body:not(.wp-admin) form.jet-form-builder:is(
  [data-form-id="3194"],
  [data-form-id="3527"]
) .cbnb-owner-route-row--headline-date {
  flex-direction: column;
  gap: 12px;
}

body:not(.wp-admin) form.jet-form-builder:is(
  [data-form-id="3194"],
  [data-form-id="3527"]
) .cbnb-owner-route-row--headline-date > .wp-block-column {
  flex-basis: 100% !important;
  width: 100%;
}

body:not(.wp-admin) form.jet-form-builder:is(
  [data-form-id="3194"],
  [data-form-id="3527"]
) .cbnb-owner-route-row--headline-date > .wp-block-column:nth-child(2) {
  order: -1;
}

body:not(.wp-admin) form.jet-form-builder:is(
  [data-form-id="3194"],
  [data-form-id="3527"]
) input[name="boat_cabins"].cbnb-calculated-readonly {
  cursor: default;
  background: #f3f5f6;
  color: #003d5b;
  font-weight: 600;
}

body:not(.wp-admin) form.jet-form-builder:is(
  [data-form-id="3194"],
  [data-form-id="3527"]
) input.cbnb-route-finish-readonly {
  cursor: not-allowed;
  caret-color: transparent;
  background: #f3f5f6;
  border-color: #d8d8d8;
  color: #003d5b;
  opacity: 1;
}

body:not(.wp-admin) form.jet-form-builder:is(
  [data-form-id="3194"],
  [data-form-id="3527"]
) input.cbnb-route-finish-readonly + .jet-adr-list {
  display: none !important;
}

@media (max-width: 781px) {
  body:not(.wp-admin) form.jet-form-builder:is(
    [data-form-id="3194"],
    [data-form-id="3527"]
  ) :is(.cbnb-owner-form-row, .cbnb-owner-route-row) {
    flex-direction: column;
    gap: 16px;
  }

  body:not(.wp-admin) form.jet-form-builder:is(
    [data-form-id="3194"],
    [data-form-id="3527"]
  ) :is(.cbnb-owner-form-row, .cbnb-owner-route-row) > .wp-block-column {
    flex-basis: 100% !important;
    width: 100%;
  }

  body:not(.wp-admin) form.jet-form-builder:is(
    [data-form-id="3194"],
    [data-form-id="3527"]
  ) .cbnb-owner-route-row--headline-date .cbnb-route-date-range {
    width: 100%;
  }
}

/*
 * A trip type opens with its own heading, but the second and third entries inside
 * one repeater open with nothing at all - the next "Service Start & End Dates" just
 * follows the previous entry's last field, so two Classic Charters read as one long
 * form. A rule above every entry after the first gives each one a visible start.
 */
body:not(.wp-admin) form.jet-form-builder:is(
  [data-form-id="3194"],
  [data-form-id="3527"]
) .jet-form-builder-repeater__row + .jet-form-builder-repeater__row {
  margin-top: 32px;
  padding-top: 32px;
  border-top: 1px solid #d8dee5;
}
