#tbl-route-calculator {
  width: 100%;
  max-width: 1320px;
  margin: 24px auto;
  padding: 22px;
  border: 1px solid rgba(184,124,124,.35);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(0,0,0,.06);
  box-sizing: border-box;
}

#tbl-route-calculator * {
  box-sizing: border-box;
}

.tbl-search-panel {
  margin-bottom: 22px;
  padding: 18px;
  border-radius: 18px;
  background: #f5f5f5;
}

.tbl-search-grid {
  display: grid;
  grid-template-columns: minmax(190px, 1.2fr) minmax(190px, 1.2fr) minmax(165px, .85fr) minmax(110px, .55fr) minmax(110px, .55fr) auto;
  gap: 12px;
  align-items: stretch;
}

.tbl-search-field {
  position: relative;
  min-width: 0;
}

.tbl-field-icon {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  font-size: 16px;
  pointer-events: none;
}

.tbl-search-field input,
.tbl-search-field select {
  min-height: 56px !important;
  padding-left: 40px !important;
  border: 0 !important;
  border-radius: 12px !important;
  background: #fff !important;
  box-shadow: 0 1px 0 rgba(0,0,0,.04);
}

.tbl-search-submit {
  min-height: 56px;
  padding: 0 24px;
  border: 0;
  border-radius: 12px;
  background: #4f9956;
  color: #fff;
  font-weight: 800;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
}

.tbl-search-submit:hover {
  filter: brightness(.95);
}

.tbl-layout {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(390px, 1.05fr);
  gap: 26px;
  align-items: start;
}

.tbl-form-column,
.tbl-summary-column {
  min-width: 0;
}

.tbl-summary-sticky {
  position: sticky;
  top: 92px;
  max-height: calc(100vh - 110px);
  overflow: auto;
  padding-right: 2px;
}

#tbl-route-calculator label {
  display: block;
  margin-bottom: 12px;
}

#tbl-route-calculator input,
#tbl-route-calculator select {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid #d9d9d9;
  border-radius: 10px;
  font-size: 15px;
  background: #fff;
}

#tbl-route-calculator input:focus,
#tbl-route-calculator select:focus {
  outline: none;
  border-color: #b87c7c;
  box-shadow: 0 0 0 3px rgba(184,124,124,.16);
}

.tbl-card-section,
.tbl-section {
  margin: 0 0 16px;
  padding: 18px;
  border-radius: 18px;
  background: rgba(0,0,0,.03);
}

.tbl-card-title,
.tbl-section-title {
  margin: 0 0 14px;
  font-weight: 800;
  font-size: 18px;
}

.tbl-section-text {
  margin: 0 0 14px;
  font-size: 13px;
  opacity: .75;
  line-height: 1.45;
}

.tbl-row {
  display: grid;
  gap: 16px;
  margin-bottom: 8px;
}

.tbl-row--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tbl-field label {
  display: block;
  margin-bottom: 8px;
  font-weight: 700;
}

.tbl-add-stop {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 10px 0 4px;
  padding: 12px 16px;
  border: 1px dashed #999;
  border-radius: 999px;
  background: #fff;
  color: #151515;
  cursor: pointer;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .02em;
}

.tbl-add-stop:hover {
  border-color: #151515;
}

.tbl-add-stop--small {
  padding: 10px 14px;
  margin-top: 2px;
}

#tbl-return-route-edit {
  margin-top: 14px;
}

.tbl-promo-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}

#tbl-apply-promo {
  min-height: 48px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  background: #151515;
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  text-transform: uppercase;
}

#tbl-route-map {
  width: 100%;
  height: 380px;
  border-radius: 18px;
  overflow: hidden;
  background: #f2f2f2;
  margin-bottom: 16px;
}

#tbl-route-result {
  margin-top: 0;
}

.tbl-price-card {
  padding: 18px;
  border-radius: 18px;
  line-height: 1.45;
}

.tbl-price-card--success {
  border: 1px solid rgba(38,133,76,.25);
  background: rgba(38,133,76,.08);
}

.tbl-price-card--warning {
  border: 1px solid rgba(184,124,124,.32);
  background: rgba(184,124,124,.1);
  color: #151515;
}

.tbl-price-main {
  font-size: 38px;
  font-weight: 900;
  line-height: 1;
}

.tbl-price-sub {
  margin-top: 6px;
  font-size: 14px;
  opacity: .75;
}

.tbl-route-price-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 16px;
}

.tbl-trip-card {
  padding: 14px;
  border-radius: 14px;
  background: rgba(255,255,255,.72);
  border: 1px solid rgba(38,133,76,.18);
}

.tbl-trip-card-title {
  font-weight: 800;
  margin-bottom: 6px;
}

.tbl-trip-price {
  font-size: 24px;
  line-height: 1;
  font-weight: 900;
  margin-bottom: 10px;
}

.tbl-route-meta {
  margin-top: 14px;
  display: grid;
  gap: 6px;
}

.tbl-discount-line {
  margin-top: 12px;
  font-weight: 700;
}

.tbl-price-note,
#tbl-promo-message {
  margin: 10px 0 0;
  font-size: 13px;
  opacity: .8;
}

.tbl-submit-card {
  margin-top: 16px;
  padding: 18px;
  border-radius: 18px;
  background: #f7f7f7;
  border: 1px solid rgba(0,0,0,.06);
}

.tbl-submit-title {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 900;
}

#tbl-route-calculator input[type="submit"],
.wpcf7-submit.ts-form-submit {
  width: 100%;
  min-height: 50px;
  border: 0;
  border-radius: 999px;
  background: #151515;
  color: #fff;
  font-weight: 900;
  text-transform: uppercase;
  cursor: pointer;
}

.tbl-whatsapp-button {
  display: inline-flex;
  margin-top: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  background: #25d366;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}

@media (max-width: 1180px) {
  .tbl-search-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tbl-search-submit {
    grid-column: span 2;
  }
}

@media (max-width: 1024px) {
  .tbl-layout {
    grid-template-columns: 1fr;
  }

  .tbl-summary-sticky {
    position: static;
    max-height: none;
    overflow: visible;
  }

  #tbl-route-map {
    height: 300px;
  }
}

@media (max-width: 680px) {
  #tbl-route-calculator {
    padding: 16px;
  }

  .tbl-search-grid,
  .tbl-row--2,
  .tbl-promo-row {
    grid-template-columns: 1fr;
  }

  .tbl-search-submit {
    grid-column: auto;
  }

  #tbl-apply-promo {
    width: 100%;
  }

  #tbl-route-map {
    height: 240px;
  }
}


/* v2.4.1 search labels, native date/time fields and captcha spacing */
.tbl-has-label .tbl-search-label {
  position: absolute;
  left: 40px;
  top: 8px;
  z-index: 3;
  font-size: 11px;
  line-height: 1;
  font-weight: 800;
  color: rgba(21,21,21,.62);
  pointer-events: none;
  text-transform: uppercase;
  letter-spacing: .02em;
}

.tbl-search-field.tbl-has-label input,
.tbl-search-field.tbl-has-label select {
  padding-top: 24px !important;
  padding-bottom: 8px !important;
  line-height: 1.2;
}

.tbl-search-field.tbl-has-label .tbl-field-icon {
  margin-top: 7px;
}

.tbl-datetime-native {
  min-width: 0;
}

.tbl-captcha-wrap {
  margin: 12px 0 18px;
}

.tbl-captcha-wrap > * {
  max-width: 100%;
}

.tbl-submit-button-wrap {
  margin-top: 14px;
}

.tbl-submit-card .wpcf7-form-control-wrap,
.tbl-submit-card .cf7ic {
  display: block;
  margin-bottom: 14px;
}

@media (max-width: 1180px) {
  .tbl-search-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #tbl-return-date-top {
    grid-column: span 1;
  }
}

@media (max-width: 680px) {
  .tbl-has-label .tbl-search-label {
    left: 40px;
  }
}


/* v2.4.2 better top search layout and custom date/time picker */
.tbl-search-grid {
  grid-template-columns: minmax(230px, 1.2fr) minmax(230px, 1.2fr) minmax(190px, .9fr) minmax(120px, .55fr) minmax(125px, .55fr) minmax(145px, .55fr) !important;
  grid-template-areas: "from to date passengers return calc";
}

.tbl-search-from { grid-area: from; }
.tbl-search-to { grid-area: to; }
.tbl-search-date { grid-area: date; }
.tbl-search-passengers { grid-area: passengers; }
.tbl-search-return { grid-area: return; }
.tbl-search-return-date { grid-area: returndate; }
.tbl-search-calc { grid-area: calc; }

.tbl-has-label .tbl-search-label {
  white-space: nowrap;
}

.tbl-search-field.tbl-has-label input,
.tbl-search-field.tbl-has-label select {
  font-size: 15px !important;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tbl-custom-datetime {
  cursor: pointer;
}

.tbl-dtp-popover {
  position: absolute;
  z-index: 999999;
  width: min(620px, calc(100vw - 24px));
  padding: 18px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 18px 50px rgba(0,0,0,.18);
  border: 1px solid rgba(0,0,0,.08);
  font-family: inherit;
}

.tbl-dtp-head {
  display: grid;
  grid-template-columns: 42px 1fr 42px;
  align-items: center;
  margin-bottom: 14px;
}

.tbl-dtp-title {
  text-align: center;
  font-weight: 900;
  font-size: 15px;
}

.tbl-dtp-nav {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 999px;
  background: #f3f3f3;
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
}

.tbl-dtp-months {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.tbl-dtp-month-title {
  text-align: center;
  font-weight: 900;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.tbl-dtp-weekdays,
.tbl-dtp-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  text-align: center;
}

.tbl-dtp-weekdays span {
  font-weight: 800;
  font-size: 13px;
  opacity: .55;
  padding: 4px 0;
}

.tbl-dtp-day {
  min-width: 0;
  height: 34px;
  border: 0;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  font-weight: 700;
}

.tbl-dtp-day:hover {
  background: #eef6ef;
}

.tbl-dtp-day.is-selected {
  background: #4f9956;
  color: #fff;
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.75);
}

.tbl-dtp-empty {
  pointer-events: none;
}

.tbl-dtp-time {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(0,0,0,.08);
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.tbl-dtp-time-title {
  width: 100%;
  font-weight: 900;
  text-transform: uppercase;
  font-size: 13px;
}

.tbl-dtp-now,
.tbl-dtp-ok,
.tbl-dtp-cancel {
  min-height: 38px;
  padding: 0 16px;
  border-radius: 8px;
  font-weight: 800;
  cursor: pointer;
}

.tbl-dtp-now {
  border: 1px solid #d8d8d8;
  background: #fff;
}

.tbl-dtp-or {
  font-weight: 900;
}

.tbl-dtp-time-input {
  min-height: 38px;
  padding: 0 10px;
  border: 1px solid #d8d8d8;
  border-radius: 8px;
  font-weight: 800;
}

.tbl-dtp-hint {
  margin-top: 12px;
  font-size: 13px;
  line-height: 1.35;
  opacity: .85;
}

.tbl-dtp-hint ul {
  margin: 0;
  padding-left: 18px;
}

.tbl-dtp-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 16px;
}

.tbl-dtp-cancel {
  border: 1px solid #151515;
  background: #fff;
}

.tbl-dtp-ok {
  border: 0;
  background: #151515;
  color: #fff;
}

.tbl-captcha-wrap {
  margin-bottom: 20px !important;
}

.tbl-submit-button-wrap {
  margin-top: 18px !important;
}

@media (max-width: 1280px) {
  .tbl-search-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    grid-template-areas:
      "from from to to"
      "date passengers return calc"
      "returndate returndate returndate returndate";
  }
}

@media (max-width: 760px) {
  .tbl-search-grid {
    grid-template-columns: 1fr !important;
    grid-template-areas:
      "from"
      "to"
      "date"
      "passengers"
      "return"
      "returndate"
      "calc";
  }

  .tbl-dtp-months {
    grid-template-columns: 1fr;
  }

  .tbl-dtp-popover {
    left: 12px !important;
    width: calc(100vw - 24px);
  }
}


/* v2.4.3: separate date and time fields, compact date picker */
.tbl-search-grid {
  grid-template-columns: minmax(220px, 1.2fr) minmax(220px, 1.2fr) minmax(145px, .7fr) minmax(112px, .48fr) minmax(112px, .48fr) minmax(112px, .48fr) minmax(135px, .55fr) !important;
  grid-template-areas: "from to pickupdate pickuptime passengers return calc" !important;
}

.tbl-search-from { grid-area: from; }
.tbl-search-to { grid-area: to; }
.tbl-search-pickup-date { grid-area: pickupdate; }
.tbl-search-pickup-time { grid-area: pickuptime; }
.tbl-search-passengers { grid-area: passengers; }
.tbl-search-return { grid-area: return; }
.tbl-search-return-date { grid-area: returndate; }
.tbl-search-return-time { grid-area: returntime; }
.tbl-search-calc { grid-area: calc; }

.tbl-native-time,
.tbl-custom-date {
  cursor: pointer;
}

.tbl-date-popover {
  position: absolute;
  z-index: 999999;
  width: 330px;
  padding: 16px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 18px 50px rgba(0,0,0,.18);
  border: 1px solid rgba(0,0,0,.08);
  font-family: inherit;
}

.tbl-date-head {
  display: grid;
  grid-template-columns: 38px 1fr 38px;
  align-items: center;
  margin-bottom: 12px;
}

.tbl-date-title {
  text-align: center;
  font-weight: 900;
  font-size: 15px;
}

.tbl-date-nav {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 999px;
  background: #f3f3f3;
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
}

.tbl-date-weekdays,
.tbl-date-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  text-align: center;
}

.tbl-date-weekdays span {
  font-weight: 800;
  font-size: 12px;
  opacity: .55;
  padding: 4px 0;
}

.tbl-date-day {
  min-width: 0;
  height: 34px;
  border: 0;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  font-weight: 800;
}

.tbl-date-day:hover {
  background: #eef6ef;
}

.tbl-date-day.is-selected {
  background: #4f9956;
  color: #fff;
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.75);
}

.tbl-date-empty {
  pointer-events: none;
}

.tbl-date-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 14px;
}

.tbl-date-today,
.tbl-date-cancel {
  min-height: 38px;
  padding: 0 12px;
  border-radius: 8px;
  font-weight: 800;
  cursor: pointer;
}

.tbl-date-today {
  border: 0;
  background: #151515;
  color: #fff;
}

.tbl-date-cancel {
  border: 1px solid #151515;
  background: #fff;
}

@media (max-width: 1320px) {
  .tbl-search-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    grid-template-areas:
      "from from to to"
      "pickupdate pickuptime passengers return"
      "returndate returntime calc calc" !important;
  }
}

@media (max-width: 760px) {
  .tbl-search-grid {
    grid-template-columns: 1fr !important;
    grid-template-areas:
      "from"
      "to"
      "pickupdate"
      "pickuptime"
      "passengers"
      "return"
      "returndate"
      "returntime"
      "calc" !important;
  }

  .tbl-date-popover {
    left: 12px !important;
    width: calc(100vw - 24px);
  }
}

/* Hide old v2.4.2 datetime popover classes if browser cache mixes CSS */
.tbl-dtp-popover {
  display: none !important;
}


/* v2.4.4: return to CF7 Date Time plugin + brand button color */
.tbl-search-grid {
  grid-template-columns: minmax(230px, 1.2fr) minmax(230px, 1.2fr) minmax(190px, .85fr) minmax(115px, .48fr) minmax(120px, .48fr) minmax(150px, .55fr) !important;
  grid-template-areas: "from to date passengers return calc" !important;
}

.tbl-search-date { grid-area: date; }
.tbl-search-return-date { grid-area: returndate; }

.tbl-search-submit {
  background: #151515 !important;
  color: #fff !important;
}

.tbl-search-submit:hover {
  background: #000 !important;
  filter: none !important;
}

.tbl-search-panel {
  background: #f4f4f4;
}

.tbl-date-popover,
.tbl-dtp-popover {
  display: none !important;
}

@media (max-width: 1280px) {
  .tbl-search-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    grid-template-areas:
      "from from to to"
      "date passengers return calc"
      "returndate returndate returndate returndate" !important;
  }
}

@media (max-width: 760px) {
  .tbl-search-grid {
    grid-template-columns: 1fr !important;
    grid-template-areas:
      "from"
      "to"
      "date"
      "passengers"
      "return"
      "returndate"
      "calc" !important;
  }
}


/* v2.4.5 compact header and compact summary */
#tbl-route-calculator {
  max-width: 1260px;
}

.tbl-search-panel {
  padding: 14px 16px !important;
  margin-bottom: 18px !important;
  overflow: visible !important;
}

.tbl-search-grid {
  grid-template-columns: minmax(210px, 1.2fr) minmax(210px, 1.2fr) minmax(175px, .82fr) minmax(105px, .45fr) minmax(105px, .45fr) minmax(138px, .5fr) !important;
  grid-template-areas:
    "from to date passengers return calc"
    "returndate returndate returndate returndate returndate returndate" !important;
  gap: 10px !important;
  align-items: start !important;
}

.tbl-search-return-date {
  max-width: 260px;
  justify-self: start;
}

#tbl-return-date-top {
  margin-top: 2px;
}

.tbl-search-field input,
.tbl-search-field select {
  min-height: 50px !important;
  height: 50px !important;
  border-radius: 11px !important;
}

.tbl-search-field.tbl-has-label input,
.tbl-search-field.tbl-has-label select {
  padding-top: 22px !important;
  padding-bottom: 6px !important;
}

.tbl-has-label .tbl-search-label {
  top: 7px !important;
  font-size: 10px !important;
  letter-spacing: .025em;
}

.tbl-search-submit {
  min-height: 58px !important;
  height: 58px !important;
  padding: 0 18px !important;
  border-radius: 12px !important;
  font-size: 15px !important;
  white-space: normal !important;
  line-height: 1.15 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.tbl-summary-sticky {
  top: 82px !important;
  max-height: none !important;
  overflow: visible !important;
}

#tbl-route-map {
  height: 300px !important;
  margin-bottom: 12px !important;
}

.tbl-price-card {
  padding: 14px !important;
  border-radius: 16px !important;
}

.tbl-price-main {
  font-size: 34px !important;
}

.tbl-price-sub {
  margin-top: 3px !important;
  font-size: 12px !important;
}

.tbl-route-price-grid {
  gap: 8px !important;
  margin-top: 12px !important;
}

.tbl-trip-card {
  padding: 11px 12px !important;
  border-radius: 12px !important;
}

.tbl-trip-card-title {
  margin-bottom: 3px !important;
  font-size: 14px !important;
}

.tbl-trip-price {
  font-size: 21px !important;
  margin-bottom: 7px !important;
}

.tbl-trip-card div,
.tbl-route-meta div {
  font-size: 14px !important;
  line-height: 1.28 !important;
}

.tbl-route-meta {
  margin-top: 10px !important;
  gap: 4px !important;
}

.tbl-price-note {
  margin-top: 8px !important;
  font-size: 12px !important;
  line-height: 1.3 !important;
}

.tbl-submit-card {
  margin-top: 12px !important;
  padding: 14px !important;
  border-radius: 16px !important;
}

.tbl-submit-title {
  font-size: 16px !important;
  margin-bottom: 4px !important;
}

.tbl-submit-card .tbl-section-text {
  font-size: 12px !important;
  margin-bottom: 10px !important;
}

.tbl-captcha-wrap {
  margin: 10px 0 14px !important;
}

.tbl-submit-button-wrap {
  margin-top: 12px !important;
}

#tbl-route-calculator input[type="submit"],
.wpcf7-submit.ts-form-submit {
  min-height: 46px !important;
}

@media (min-width: 1025px) {
  .tbl-layout {
    grid-template-columns: minmax(0, .92fr) minmax(400px, .88fr) !important;
    gap: 22px !important;
  }
}

@media (max-width: 1280px) {
  .tbl-search-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    grid-template-areas:
      "from from to to"
      "date passengers return calc"
      "returndate returndate returndate returndate" !important;
  }

  .tbl-search-return-date {
    max-width: none;
    justify-self: stretch;
  }
}

@media (max-width: 760px) {
  .tbl-search-grid {
    grid-template-columns: 1fr !important;
    grid-template-areas:
      "from"
      "to"
      "date"
      "passengers"
      "return"
      "returndate"
      "calc" !important;
  }

  #tbl-route-map {
    height: 240px !important;
  }
}


/* v2.4.6: outbound/return cards side-by-side on desktop */
.tbl-price-card {
  padding: 12px !important;
}

.tbl-price-main {
  font-size: 30px !important;
  line-height: 1 !important;
  margin-bottom: 6px !important;
}

.tbl-route-price-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)) !important;
  gap: 10px !important;
  align-items: stretch !important;
}

.tbl-trip-card {
  min-width: 0 !important;
  height: 100% !important;
  padding: 10px 12px !important;
}

.tbl-trip-card-title {
  font-size: 13px !important;
  line-height: 1.2 !important;
}

.tbl-trip-price {
  font-size: 18px !important;
  line-height: 1.1 !important;
  margin-bottom: 6px !important;
}

.tbl-route-meta {
  margin-top: 10px !important;
  padding-top: 2px !important;
}

.tbl-route-meta div {
  font-size: 13px !important;
  line-height: 1.25 !important;
}

.tbl-price-note {
  font-size: 11px !important;
  line-height: 1.3 !important;
}

.tbl-submit-card {
  padding: 12px !important;
}

@media (min-width: 1025px) {
  #tbl-route-result .tbl-route-price-grid {
    grid-template-columns: 1fr 1fr !important;
  }
}

@media (max-width: 1024px) {
  #tbl-route-result .tbl-route-price-grid {
    grid-template-columns: 1fr !important;
  }
}


/* v2.4.7: compact top fields, no icons, fix date text color */
.tbl-search-panel {
  padding: 12px 14px !important;
  margin-bottom: 14px !important;
}

.tbl-search-grid {
  gap: 8px !important;
  grid-template-columns: minmax(205px, 1.2fr) minmax(205px, 1.2fr) minmax(170px, .82fr) minmax(92px, .42fr) minmax(98px, .42fr) minmax(130px, .5fr) !important;
}

.tbl-search-panel .tbl-field-icon {
  display: none !important;
}

.tbl-search-field input,
.tbl-search-field select {
  min-height: 46px !important;
  height: 46px !important;
  border-radius: 10px !important;
  font-size: 14px !important;
  color: #151515 !important;
  -webkit-text-fill-color: #151515 !important;
  opacity: 1 !important;
  padding-left: 12px !important;
}

.tbl-search-field.tbl-has-label input,
.tbl-search-field.tbl-has-label select {
  padding: 20px 12px 5px !important;
  color: #151515 !important;
  -webkit-text-fill-color: #151515 !important;
}

.tbl-search-field input::placeholder,
.tbl-search-field select::placeholder {
  color: rgba(21,21,21,.58) !important;
  -webkit-text-fill-color: rgba(21,21,21,.58) !important;
  opacity: 1 !important;
}

.tbl-has-label .tbl-search-label {
  left: 12px !important;
  top: 6px !important;
  font-size: 9.5px !important;
  line-height: 1 !important;
  color: rgba(21,21,21,.58) !important;
  max-width: calc(100% - 24px);
  overflow: hidden;
  text-overflow: ellipsis;
}

.tbl-search-submit {
  min-height: 52px !important;
  height: 52px !important;
  padding: 0 14px !important;
  font-size: 14px !important;
  border-radius: 11px !important;
}

.tbl-card-section,
.tbl-section {
  padding: 14px !important;
  margin-bottom: 12px !important;
  border-radius: 16px !important;
}

.tbl-card-title,
.tbl-section-title {
  margin-bottom: 10px !important;
  font-size: 17px !important;
}

#tbl-route-calculator label {
  margin-bottom: 9px !important;
}

#tbl-route-calculator input,
#tbl-route-calculator select {
  min-height: 44px;
  padding: 10px 12px;
}

.tbl-row {
  gap: 12px !important;
}

.tbl-layout {
  gap: 18px !important;
}

#tbl-route-map {
  height: 285px !important;
}

.tbl-submit-card {
  margin-top: 10px !important;
}

/* CF7 Date Time plugin input/dropdown text color fix */
#tbl-route-calculator .xdsoft_datetimepicker,
#tbl-route-calculator .xdsoft_datetimepicker *,
.xdsoft_datetimepicker,
.xdsoft_datetimepicker * {
  color: #151515;
  -webkit-text-fill-color: #151515;
}

#tbl-route-calculator input[id*="date"],
#tbl-route-calculator input[name*="date"],
#tbl-route-calculator input.hasDatepicker,
#tbl-route-calculator .wpcf7-form-control.wpcf7-date,
#tbl-route-calculator .wpcf7-form-control.wpcf7-text {
  color: #151515 !important;
  -webkit-text-fill-color: #151515 !important;
}

@media (max-width: 1280px) {
  .tbl-search-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    grid-template-areas:
      "from from to to"
      "date passengers return calc"
      "returndate returndate returndate returndate" !important;
  }
}

@media (max-width: 760px) {
  .tbl-search-grid {
    grid-template-columns: 1fr !important;
    grid-template-areas:
      "from"
      "to"
      "date"
      "passengers"
      "return"
      "returndate"
      "calc" !important;
  }
}


/* v2.4.8: hide WordPress page title and reduce page top spacing on booking pages */
body.page #main .entry-title,
body.page .entry-title,
body.page .page-title,
body.page h1.entry-title,
body.page h1.page-title,
body.page .wp-block-post-title,
body.page .elementor-heading-title,
body.page header.entry-header {
  display: none !important;
}

body.page .site-main,
body.page main.site-main,
body.page #main,
body.page #primary,
body.page .content-area,
body.page .entry-content,
body.page .wp-site-blocks main,
body.page .elementor-location-single,
body.page .elementor-section-wrap {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

body.page .entry-content > *:first-child,
body.page .wp-block-group:first-child,
body.page .elementor-widget-container > *:first-child {
  margin-top: 0 !important;
}

#tbl-route-calculator {
  margin-top: 8px !important;
}

@media (min-width: 1025px) {
  body.page .site-content,
  body.page .content-area,
  body.page #content {
    padding-top: 18px !important;
  }
}


/* v2.4.9: restore safe spacing below fixed/sticky site header */
body.page #tbl-route-calculator {
  margin-top: 110px !important;
}

@media (max-width: 1024px) {
  body.page #tbl-route-calculator {
    margin-top: 90px !important;
  }
}

@media (max-width: 680px) {
  body.page #tbl-route-calculator {
    margin-top: 72px !important;
  }
}


/* v2.4.10: add 30px more safe spacing below site header */
body.page #tbl-route-calculator {
  margin-top: 140px !important;
}

@media (max-width: 1024px) {
  body.page #tbl-route-calculator {
    margin-top: 120px !important;
  }
}

@media (max-width: 680px) {
  body.page #tbl-route-calculator {
    margin-top: 96px !important;
  }
}


/* v2.5.0: one-screen compact layout + submit guard */
.tbl-search-panel {
  padding: 10px 12px !important;
  margin-bottom: 12px !important;
}

.tbl-search-grid {
  gap: 7px !important;
  grid-template-columns:
    minmax(190px, 1.15fr)
    minmax(190px, 1.15fr)
    minmax(165px, .82fr)
    minmax(86px, .42fr)
    minmax(90px, .42fr)
    minmax(125px, .58fr)
    66px
    minmax(128px, .62fr) !important;
  grid-template-areas:
    "from to date passengers return promo apply calc"
    "returndate returndate returndate returndate returndate promo apply calc" !important;
}

.tbl-search-promo { grid-area: promo; }
#tbl-apply-promo.tbl-search-mini-button { grid-area: apply; }
.tbl-search-calc { grid-area: calc; }

.tbl-search-field input,
.tbl-search-field select {
  min-height: 42px !important;
  height: 42px !important;
  padding-left: 10px !important;
  font-size: 13.5px !important;
}

.tbl-search-field.tbl-has-label input,
.tbl-search-field.tbl-has-label select {
  padding: 18px 10px 4px !important;
}

.tbl-has-label .tbl-search-label {
  left: 10px !important;
  top: 5px !important;
  font-size: 9px !important;
}

.tbl-search-submit,
.tbl-search-mini-button {
  height: 48px !important;
  min-height: 48px !important;
  border-radius: 10px !important;
  border: 0 !important;
  font-weight: 900 !important;
  text-transform: uppercase !important;
  cursor: pointer !important;
}

.tbl-search-submit {
  background: #151515 !important;
  color: #fff !important;
  font-size: 13.5px !important;
  padding: 0 12px !important;
}

.tbl-search-mini-button {
  background: #fff !important;
  color: #151515 !important;
  border: 1px solid rgba(21,21,21,.22) !important;
  font-size: 11px !important;
  padding: 0 8px !important;
}

#tbl-promo-message {
  margin-top: 5px !important;
  padding-left: 4px !important;
  font-size: 11.5px !important;
}

.tbl-card-section--compact {
  padding: 12px 14px !important;
}

.tbl-row--compact {
  gap: 9px !important;
  margin-bottom: 7px !important;
}

.tbl-row--compact label {
  margin-bottom: 0 !important;
}

.tbl-card-section,
.tbl-section,
.tbl-accordion-card {
  padding: 12px 14px !important;
  margin-bottom: 10px !important;
  border-radius: 15px !important;
  background: rgba(0,0,0,.03);
}

.tbl-card-title,
.tbl-section-title {
  margin-bottom: 8px !important;
  font-size: 16px !important;
}

#tbl-route-calculator input,
#tbl-route-calculator select {
  min-height: 42px !important;
  padding: 9px 11px !important;
}

.tbl-contact-method-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
}

.tbl-inline-label {
  font-weight: 800;
  font-size: 13px;
}

.tbl-contact-method-row .wpcf7-radio {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.tbl-contact-method-row .wpcf7-list-item {
  margin: 0 !important;
}

.tbl-contact-method-row label {
  display: inline-flex !important;
  align-items: center;
  gap: 5px;
  margin: 0 !important;
  padding: 7px 11px;
  border: 1px solid rgba(21,21,21,.12);
  border-radius: 999px;
  background: #fff;
  font-size: 13px;
}

.tbl-contact-method-row input[type="radio"] {
  width: auto !important;
  min-height: auto !important;
  height: auto !important;
  padding: 0 !important;
}

.tbl-accordion-card {
  padding: 0 !important;
  overflow: hidden;
}

.tbl-accordion-toggle {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
  min-height: 50px;
  padding: 12px 14px;
  border: 0;
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.tbl-accordion-toggle span {
  font-size: 16px;
  font-weight: 900;
}

.tbl-accordion-toggle small {
  font-size: 12px;
  opacity: .65;
  text-align: right;
}

.tbl-accordion-toggle:after {
  content: "+";
  width: 24px;
  height: 24px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  font-weight: 900;
  grid-column: 2;
  grid-row: 1;
}

.tbl-accordion-toggle.is-open:after {
  content: "−";
}

.tbl-accordion-body {
  padding: 0 14px 14px;
}

.tbl-submit-disabled {
  opacity: .45 !important;
  cursor: not-allowed !important;
}

.tbl-submit-warning {
  margin-top: 8px;
  min-height: 16px;
  font-size: 12px;
  color: #a33;
  font-weight: 700;
}

.tbl-submit-card {
  padding: 11px 12px !important;
}

.tbl-submit-title {
  font-size: 15px !important;
}

.tbl-captcha-wrap {
  margin: 8px 0 10px !important;
}

@media (min-width: 1025px) {
  .tbl-form-column {
    max-height: calc(100vh - 170px);
    overflow: auto;
    padding-right: 6px;
  }
}

@media (max-width: 1320px) {
  .tbl-search-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    grid-template-areas:
      "from from to to"
      "date passengers return calc"
      "returndate returndate promo apply" !important;
  }
}

@media (max-width: 760px) {
  .tbl-search-grid {
    grid-template-columns: 1fr !important;
    grid-template-areas:
      "from"
      "to"
      "date"
      "passengers"
      "return"
      "returndate"
      "promo"
      "apply"
      "calc" !important;
  }

  .tbl-row--2 {
    grid-template-columns: 1fr !important;
  }

  .tbl-form-column {
    max-height: none;
    overflow: visible;
  }
}


/* v2.5.1: Return route stays fully hidden until Return ride = Yes */
#tbl-return-section[style*="display: none"] {
  display: none !important;
}


/* v2.5.2: clean compact layout, promo on second line, polished contact block */
.tbl-search-panel {
  padding: 14px !important;
  margin-bottom: 14px !important;
}

.tbl-search-grid {
  display: grid !important;
  grid-template-columns:
    minmax(220px, 1.25fr)
    minmax(220px, 1.25fr)
    minmax(185px, .85fr)
    minmax(110px, .42fr)
    minmax(110px, .42fr)
    minmax(150px, .58fr) !important;
  grid-template-areas:
    "from to date passengers return calc"
    "returndate returndate promo promo apply apply" !important;
  gap: 10px !important;
  align-items: stretch !important;
}

.tbl-search-from { grid-area: from !important; }
.tbl-search-to { grid-area: to !important; }
.tbl-search-date { grid-area: date !important; }
.tbl-search-passengers { grid-area: passengers !important; }
.tbl-search-return { grid-area: return !important; }
.tbl-search-calc { grid-area: calc !important; }
.tbl-search-return-date { grid-area: returndate !important; }
.tbl-search-promo { grid-area: promo !important; }
#tbl-apply-promo.tbl-search-mini-button { grid-area: apply !important; }

.tbl-search-field input,
.tbl-search-field select {
  min-height: 48px !important;
  height: 48px !important;
  padding: 20px 12px 6px !important;
  font-size: 14px !important;
  border-radius: 11px !important;
  color: #151515 !important;
  -webkit-text-fill-color: #151515 !important;
}

.tbl-has-label .tbl-search-label {
  left: 12px !important;
  top: 6px !important;
  font-size: 9.5px !important;
  max-width: calc(100% - 24px);
  overflow: hidden;
  text-overflow: ellipsis;
}

.tbl-search-submit,
.tbl-search-mini-button {
  min-height: 48px !important;
  height: 48px !important;
  border-radius: 11px !important;
  font-size: 13px !important;
}

.tbl-search-mini-button {
  background: #fff !important;
  color: #151515 !important;
  border: 1px solid rgba(21,21,21,.22) !important;
  font-weight: 900 !important;
  text-transform: uppercase !important;
}

#tbl-promo-message {
  grid-column: 1 / -1;
  margin: 0 !important;
  padding: 0 2px !important;
  font-size: 12px !important;
  min-height: 0 !important;
}

.tbl-card-section--compact {
  padding: 14px !important;
}

.tbl-card-section,
.tbl-accordion-card,
.tbl-section {
  margin-bottom: 12px !important;
  border-radius: 16px !important;
}

.tbl-card-title {
  font-size: 17px !important;
  margin-bottom: 12px !important;
}

.tbl-row--compact {
  gap: 10px !important;
  margin-bottom: 10px !important;
}

.tbl-row--compact label {
  margin-bottom: 0 !important;
}

#tbl-route-calculator .tbl-form-column input,
#tbl-route-calculator .tbl-form-column select {
  min-height: 44px !important;
  height: 44px !important;
  padding: 10px 12px !important;
  font-size: 14px !important;
}

.tbl-contact-method-row {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  margin-top: 2px !important;
}

.tbl-inline-label {
  font-size: 13px !important;
  font-weight: 800 !important;
  white-space: nowrap;
}

.tbl-contact-method-row .wpcf7-radio {
  display: flex !important;
  gap: 10px !important;
  align-items: center !important;
  flex-wrap: wrap;
}

.tbl-contact-method-row .wpcf7-list-item {
  margin: 0 !important;
}

.tbl-contact-method-row label {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  background: transparent !important;
  font-size: 13px !important;
}

.tbl-contact-method-row input[type="radio"] {
  width: 14px !important;
  height: 14px !important;
  min-height: 14px !important;
  padding: 0 !important;
  margin: 0 !important;
}

.tbl-accordion-card {
  background: rgba(0,0,0,.03) !important;
  overflow: hidden !important;
  padding: 0 !important;
}

.tbl-accordion-toggle {
  min-height: 52px !important;
  padding: 12px 14px !important;
}

.tbl-accordion-toggle span {
  font-size: 16px !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}

.tbl-accordion-toggle small {
  font-size: 12px !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}

.tbl-submit-disabled {
  opacity: .45 !important;
  cursor: not-allowed !important;
  pointer-events: none;
}

@media (min-width: 1025px) {
  .tbl-form-column {
    max-height: none !important;
    overflow: visible !important;
  }
}

@media (max-width: 1320px) {
  .tbl-search-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    grid-template-areas:
      "from from to to"
      "date passengers return calc"
      "returndate returndate promo apply" !important;
  }
}

@media (max-width: 760px) {
  .tbl-search-grid {
    grid-template-columns: 1fr !important;
    grid-template-areas:
      "from"
      "to"
      "date"
      "passengers"
      "return"
      "returndate"
      "promo"
      "apply"
      "calc" !important;
  }

  .tbl-row--2 {
    grid-template-columns: 1fr !important;
  }

  .tbl-contact-method-row {
    align-items: flex-start !important;
    flex-direction: column;
  }
}


/* v2.5.3: align contact fields and accordion subtitle */
.tbl-card-section--compact {
  padding: 14px !important;
}

.tbl-card-section--compact .tbl-row--2 {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
  gap: 10px !important;
  align-items: stretch !important;
}

.tbl-card-section--compact .tbl-row--compact {
  margin-bottom: 9px !important;
}

.tbl-card-section--compact label {
  width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
}

.tbl-card-section--compact .wpcf7-form-control-wrap {
  display: block !important;
  width: 100% !important;
  min-width: 0 !important;
}

.tbl-card-section--compact input,
.tbl-card-section--compact select {
  display: block !important;
  width: 100% !important;
  min-width: 0 !important;
  height: 44px !important;
  min-height: 44px !important;
  padding: 9px 12px !important;
  font-size: 14px !important;
  line-height: 1.2 !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.tbl-card-section--compact input::placeholder {
  font-size: 13.5px !important;
}

.tbl-card-section--compact .iti,
.tbl-card-section--compact .intl-tel-input {
  display: block !important;
  width: 100% !important;
}

.tbl-card-section--compact .iti input,
.tbl-card-section--compact .intl-tel-input input {
  width: 100% !important;
  padding-left: 54px !important;
}

.tbl-card-section--compact input[name="telegram-username"],
#tbl-telegram {
  padding-right: 8px !important;
  font-size: 13px !important;
}

.tbl-contact-method-row {
  margin-top: 8px !important;
}

.tbl-accordion-toggle {
  grid-template-columns: auto minmax(0, 1fr) 28px !important;
  min-height: 52px !important;
  column-gap: 12px !important;
}

.tbl-accordion-toggle span {
  grid-column: 1 !important;
  white-space: nowrap !important;
}

.tbl-accordion-toggle small {
  grid-column: 2 !important;
  grid-row: 1 !important;
  text-align: left !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  align-self: center !important;
  opacity: .62 !important;
}

.tbl-accordion-toggle:after {
  grid-column: 3 !important;
  grid-row: 1 !important;
}

@media (max-width: 760px) {
  .tbl-card-section--compact .tbl-row--2 {
    grid-template-columns: 1fr !important;
    gap: 9px !important;
  }

  .tbl-accordion-toggle {
    grid-template-columns: 1fr 28px !important;
  }

  .tbl-accordion-toggle span {
    grid-column: 1 !important;
  }

  .tbl-accordion-toggle small {
    grid-column: 1 !important;
    grid-row: 2 !important;
    white-space: normal !important;
  }

  .tbl-accordion-toggle:after {
    grid-column: 2 !important;
    grid-row: 1 / span 2 !important;
  }
}


/* v2.5.4: phone field width/padding fix + visible CF7 date text */
.tbl-card-section--compact .tbl-row--2 {
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr) !important;
}

.tbl-card-section--compact .tbl-row--compact {
  gap: 12px !important;
}

.tbl-card-section--compact .iti,
.tbl-card-section--compact .intl-tel-input,
.tbl-card-section--compact .wpcf7-form-control-wrap[data-name="tel-607"] {
  width: 100% !important;
  min-width: 0 !important;
  display: block !important;
}

.tbl-card-section--compact .iti input,
.tbl-card-section--compact .intl-tel-input input,
.tbl-card-section--compact input[name="tel-607"],
.tbl-card-section--compact input[type="tel"] {
  width: 100% !important;
  min-width: 0 !important;
  padding-left: 72px !important;
  padding-right: 10px !important;
  font-size: 13.5px !important;
  letter-spacing: -0.01em !important;
  overflow: visible !important;
  text-overflow: clip !important;
}

.tbl-card-section--compact .iti__flag-container,
.tbl-card-section--compact .iti-flag-container,
.tbl-card-section--compact .selected-flag {
  z-index: 3 !important;
}

#tbl-telegram,
.tbl-card-section--compact input[name="telegram-username"] {
  font-size: 12.5px !important;
  padding-left: 10px !important;
  padding-right: 8px !important;
}

/* CF7 Date Time plugin sometimes inherits transparent/white text while focused. Force dark text. */
#tbl-route-calculator .tbl-search-date input,
#tbl-route-calculator #tbl-return-date-time,
#tbl-route-calculator input[name="date_time-38"],
#tbl-route-calculator input[name="return-date-time"],
#tbl-route-calculator input[id*="date_time"],
#tbl-route-calculator input[class*="datetime"],
#tbl-route-calculator input.hasDatepicker,
#tbl-route-calculator .wpcf7-form-control-wrap input {
  color: #151515 !important;
  -webkit-text-fill-color: #151515 !important;
  caret-color: #151515 !important;
  opacity: 1 !important;
  text-shadow: none !important;
}

#tbl-route-calculator .tbl-search-date input::placeholder,
#tbl-route-calculator input[name="date_time-38"]::placeholder,
#tbl-route-calculator input[name="return-date-time"]::placeholder {
  color: rgba(21,21,21,.56) !important;
  -webkit-text-fill-color: rgba(21,21,21,.56) !important;
  opacity: 1 !important;
}

/* Keep selected text readable while browser highlights it */
#tbl-route-calculator .tbl-search-date input::selection,
#tbl-route-calculator input[name="date_time-38"]::selection,
#tbl-route-calculator input[name="return-date-time"]::selection {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  background: #2f6fed !important;
}

.xdsoft_datetimepicker,
.xdsoft_datetimepicker * {
  color: #151515 !important;
  -webkit-text-fill-color: #151515 !important;
}

/* Give the phone row a little more breathing room only on desktop */
@media (min-width: 761px) {
  .tbl-card-section--compact .tbl-row--compact:nth-of-type(1) {
    grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr) !important;
  }

  .tbl-card-section--compact .tbl-row--compact:nth-of-type(2) {
    grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr) !important;
  }
}

@media (max-width: 760px) {
  .tbl-card-section--compact .tbl-row--2 {
    grid-template-columns: 1fr !important;
  }
}


/* v2.5.5: revert phone field to full-width row like v2.4.10 */
.tbl-card-section--compact .tbl-row--single {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 0 !important;
  margin-bottom: 9px !important;
}

.tbl-card-section--compact .tbl-phone-row {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
}

.tbl-card-section--compact .tbl-phone-row label,
.tbl-card-section--compact .tbl-phone-row .wpcf7-form-control-wrap,
.tbl-card-section--compact .tbl-phone-row .intl-tel-input,
.tbl-card-section--compact .tbl-phone-row .iti,
.tbl-card-section--compact .tbl-phone-row .intlTelInput {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
}

.tbl-card-section--compact .tbl-phone-row input,
.tbl-card-section--compact .tbl-phone-row input[type="tel"],
.tbl-card-section--compact .tbl-phone-row input[type="text"],
.tbl-card-section--compact .tbl-phone-row .wpcf7-phonetext,
#tbl-route-calculator .tbl-phone-row input[name="tel-607"] {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  height: 44px !important;
  min-height: 44px !important;
  padding-left: 76px !important;
  padding-right: 12px !important;
  box-sizing: border-box !important;
  font-size: 14px !important;
  letter-spacing: 0 !important;
  overflow: visible !important;
  text-overflow: clip !important;
}

/* Some phone plugins use an inner visible input and reset padding after render */
#tbl-route-calculator .tbl-phone-row .intl-tel-input input,
#tbl-route-calculator .tbl-phone-row .iti input,
#tbl-route-calculator .tbl-phone-row .wpcf7-phonetext {
  padding-left: 76px !important;
}

/* Keep Email + Telegram compact side-by-side */
.tbl-card-section--compact .tbl-email-telegram-row {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
  gap: 12px !important;
}

#tbl-telegram,
.tbl-card-section--compact input[name="telegram-username"] {
  font-size: 13px !important;
  padding-left: 10px !important;
  padding-right: 8px !important;
}

/* Strong date visibility fix */
#tbl-route-calculator .tbl-search-date input,
#tbl-route-calculator .tbl-search-return-date input,
#tbl-route-calculator input[name="date_time-38"],
#tbl-route-calculator input[name="return-date-time"] {
  color: #151515 !important;
  -webkit-text-fill-color: #151515 !important;
  background-color: #fff !important;
  opacity: 1 !important;
  text-shadow: none !important;
}

#tbl-route-calculator .tbl-search-date input:focus,
#tbl-route-calculator .tbl-search-return-date input:focus,
#tbl-route-calculator input[name="date_time-38"]:focus,
#tbl-route-calculator input[name="return-date-time"]:focus {
  color: #151515 !important;
  -webkit-text-fill-color: #151515 !important;
  background-color: #fff !important;
}

@media (max-width: 760px) {
  .tbl-card-section--compact .tbl-email-telegram-row {
    grid-template-columns: 1fr !important;
  }
}


/* v2.5.6: final contact spacing + phone placeholder/date visibility fixes */

/* Contact block: name and phone full width, compact; email + Telegram side-by-side */
.tbl-card-section--compact .tbl-name-row,
.tbl-card-section--compact .tbl-phone-row {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  margin-bottom: 8px !important;
}

.tbl-card-section--compact .tbl-name-row label,
.tbl-card-section--compact .tbl-phone-row label,
.tbl-card-section--compact .tbl-name-row .wpcf7-form-control-wrap,
.tbl-card-section--compact .tbl-phone-row .wpcf7-form-control-wrap {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
}

.tbl-card-section--compact .tbl-name-row input,
.tbl-card-section--compact .tbl-phone-row input {
  width: 100% !important;
  max-width: 100% !important;
  height: 44px !important;
  min-height: 44px !important;
}

/* Override any old two-column rule from v2.5.0+ for the first contact rows */
.tbl-card-section--compact .tbl-row--single,
.tbl-card-section--compact .tbl-row--single.tbl-row--2 {
  grid-template-columns: 1fr !important;
}

/* Keep only email + telegram as two columns on desktop */
.tbl-card-section--compact .tbl-email-telegram-row {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
  gap: 10px !important;
  margin-bottom: 8px !important;
}

.tbl-card-section--compact .tbl-email-telegram-row label {
  margin: 0 !important;
  width: 100% !important;
  min-width: 0 !important;
}

/* Phone plugin: make the flag selector not eat the number, and don't show example as if it were typed */
#tbl-route-calculator .tbl-phone-row .iti,
#tbl-route-calculator .tbl-phone-row .intl-tel-input,
#tbl-route-calculator .tbl-phone-row .wpcf7-form-control-wrap {
  width: 100% !important;
  max-width: 100% !important;
  display: block !important;
}

#tbl-route-calculator .tbl-phone-row input,
#tbl-route-calculator .tbl-phone-row input[type="tel"],
#tbl-route-calculator .tbl-phone-row .wpcf7-phonetext,
#tbl-route-calculator input[name="tel-607"] {
  padding-left: 76px !important;
  padding-right: 14px !important;
  font-size: 14px !important;
  color: #151515 !important;
  -webkit-text-fill-color: #151515 !important;
}

#tbl-route-calculator .tbl-phone-row input::placeholder,
#tbl-route-calculator input[name="tel-607"]::placeholder {
  color: rgba(21,21,21,.45) !important;
  -webkit-text-fill-color: rgba(21,21,21,.45) !important;
  opacity: 1 !important;
}

/* If the phone plugin still injects a sample number placeholder, make it visually placeholder-like */
#tbl-route-calculator .tbl-phone-row input:not(:focus):placeholder-shown {
  color: rgba(21,21,21,.45) !important;
  -webkit-text-fill-color: rgba(21,21,21,.45) !important;
}

/* Date input: force visible dark text before focus, during focus, and after picker selection */
#tbl-route-calculator .tbl-search-date input,
#tbl-route-calculator .tbl-search-return-date input,
#tbl-route-calculator input[name="date_time-38"],
#tbl-route-calculator input[name="return-date-time"],
#tbl-route-calculator input[id*="date"],
#tbl-route-calculator input[class*="date"] {
  color: #151515 !important;
  -webkit-text-fill-color: #151515 !important;
  background-color: #fff !important;
  opacity: 1 !important;
  text-shadow: none !important;
  mix-blend-mode: normal !important;
  filter: none !important;
}

#tbl-route-calculator .tbl-search-date input::placeholder,
#tbl-route-calculator .tbl-search-return-date input::placeholder,
#tbl-route-calculator input[name="date_time-38"]::placeholder,
#tbl-route-calculator input[name="return-date-time"]::placeholder {
  color: rgba(21,21,21,.55) !important;
  -webkit-text-fill-color: rgba(21,21,21,.55) !important;
  opacity: 1 !important;
}

/* Reduce the big vertical gap in Contact details */
.tbl-card-section--compact .tbl-row--compact {
  margin-bottom: 8px !important;
}

.tbl-contact-method-row {
  margin-top: 8px !important;
}

/* Telegram text a little smaller */
#tbl-telegram,
.tbl-card-section--compact input[name="telegram-username"] {
  font-size: 12.5px !important;
}

/* Date/time popup must remain readable */
.xdsoft_datetimepicker,
.xdsoft_datetimepicker * {
  color: #151515 !important;
  -webkit-text-fill-color: #151515 !important;
}

@media (max-width: 760px) {
  .tbl-card-section--compact .tbl-email-telegram-row {
    grid-template-columns: 1fr !important;
  }
}


/* v2.5.7: remove contact-method whitespace + persistent date text fix */

/* Remove empty space produced by CF7 auto <p>/<br> around radio fields */
.tbl-card-section--compact p:empty,
.tbl-card-section--compact br {
  display: none !important;
}

.tbl-card-section--compact .tbl-email-telegram-row {
  margin-bottom: 4px !important;
}

.tbl-contact-method-row {
  margin-top: 2px !important;
  margin-bottom: 0 !important;
  padding-top: 0 !important;
  display: flex !important;
  align-items: center !important;
  gap: 9px !important;
  line-height: 1.1 !important;
}

.tbl-contact-method-row * {
  line-height: 1.1 !important;
}

.tbl-inline-label {
  margin: 0 !important;
  padding: 0 !important;
}

.tbl-contact-method-row .wpcf7-form-control-wrap,
.tbl-contact-method-row .wpcf7-radio,
.tbl-contact-method-row .wpcf7-list-item,
.tbl-contact-method-row label {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  min-height: 0 !important;
}

.tbl-contact-method-row .wpcf7-radio {
  display: inline-flex !important;
  align-items: center !important;
  gap: 10px !important;
}

.tbl-contact-method-row label {
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
}

.tbl-contact-method-row input[type="radio"] {
  margin: 0 3px 0 0 !important;
  vertical-align: middle !important;
}

/* Aggressive persistent date visibility fix. Some datetime plugins recolor after page load. */
#tbl-route-calculator .tbl-search-date input,
#tbl-route-calculator .tbl-search-return-date input,
#tbl-route-calculator input[name="date_time-38"],
#tbl-route-calculator input[name="return-date-time"],
#tbl-route-calculator input[id*="date"],
#tbl-route-calculator input[class*="date"],
#tbl-route-calculator input[class*="datetime"],
#tbl-route-calculator .wpcf7-date,
#tbl-route-calculator .wpcf7-datetime {
  color: #151515 !important;
  -webkit-text-fill-color: #151515 !important;
  background: #fff !important;
  background-color: #fff !important;
  opacity: 1 !important;
  visibility: visible !important;
  text-shadow: none !important;
  filter: none !important;
  mix-blend-mode: normal !important;
}

#tbl-route-calculator .tbl-search-date input:focus,
#tbl-route-calculator .tbl-search-return-date input:focus,
#tbl-route-calculator input[name="date_time-38"]:focus,
#tbl-route-calculator input[name="return-date-time"]:focus,
#tbl-route-calculator input[id*="date"]:focus,
#tbl-route-calculator input[class*="date"]:focus {
  color: #151515 !important;
  -webkit-text-fill-color: #151515 !important;
  background: #fff !important;
  background-color: #fff !important;
}

#tbl-route-calculator .tbl-search-date input::placeholder,
#tbl-route-calculator .tbl-search-return-date input::placeholder,
#tbl-route-calculator input[name="date_time-38"]::placeholder,
#tbl-route-calculator input[name="return-date-time"]::placeholder {
  color: rgba(21,21,21,.55) !important;
  -webkit-text-fill-color: rgba(21,21,21,.55) !important;
  opacity: 1 !important;
}

/* Reduce total contact-card height */
.tbl-card-section--compact {
  padding-bottom: 12px !important;
}

.tbl-card-section--compact .tbl-card-title {
  margin-bottom: 9px !important;
}


/* v2.5.8: CSS-only date placeholder overlay + tighter contact rows */

/* Date/time field visibility: add a visible CSS placeholder layer when the plugin input is empty. */
.tbl-search-date,
.tbl-search-return-date {
  position: relative !important;
}

.tbl-search-date:has(input:placeholder-shown)::after,
.tbl-search-return-date:has(input:placeholder-shown)::after {
  content: "Select date & time";
  position: absolute;
  left: 12px;
  right: 12px;
  top: 23px;
  z-index: 5;
  pointer-events: none;
  color: #151515 !important;
  font-size: 14px;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tbl-search-return-date:has(input:placeholder-shown)::after {
  content: "Select return date & time";
}

/* Fallback for date plugin fields that remove placeholder but leave input visually blank. */
.tbl-search-date input,
.tbl-search-return-date input,
#tbl-route-calculator input[name="date_time-38"],
#tbl-route-calculator input[name="return-date-time"] {
  color: #151515 !important;
  -webkit-text-fill-color: #151515 !important;
  caret-color: #151515 !important;
  background: #fff !important;
  opacity: 1 !important;
  text-shadow: none !important;
}

/* If browser highlights text inside date field, don't make it unreadable. */
.tbl-search-date input::selection,
.tbl-search-return-date input::selection {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  background: #2f6fed !important;
}

/* Contact details: make vertical gaps equal and small. */
.tbl-card-section--compact {
  padding: 14px !important;
}

.tbl-card-section--compact .tbl-card-title {
  margin: 0 0 10px !important;
}

.tbl-card-section--compact .tbl-row,
.tbl-card-section--compact .tbl-row--compact,
.tbl-card-section--compact .tbl-name-row,
.tbl-card-section--compact .tbl-phone-row,
.tbl-card-section--compact .tbl-email-telegram-row {
  margin: 0 0 8px !important;
  gap: 10px !important;
}

.tbl-card-section--compact label,
.tbl-card-section--compact .wpcf7-form-control-wrap,
.tbl-card-section--compact .iti,
.tbl-card-section--compact .intl-tel-input {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

.tbl-card-section--compact input,
.tbl-card-section--compact select {
  height: 44px !important;
  min-height: 44px !important;
}

/* Preferred contact: label + radio options in one clean line. */
.tbl-contact-method-row {
  display: flex !important;
  align-items: center !important;
  flex-wrap: nowrap !important;
  gap: 10px !important;
  margin: 4px 0 0 !important;
  padding: 0 !important;
  min-height: 24px !important;
}

.tbl-contact-method-row .tbl-inline-label {
  margin: 0 !important;
  padding: 0 !important;
  white-space: nowrap !important;
  font-size: 13px !important;
  line-height: 1 !important;
}

.tbl-contact-method-row .wpcf7-form-control-wrap,
.tbl-contact-method-row .wpcf7-radio {
  display: inline-flex !important;
  align-items: center !important;
  gap: 10px !important;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1 !important;
}

.tbl-contact-method-row .wpcf7-list-item {
  display: inline-flex !important;
  align-items: center !important;
  margin: 0 !important;
  padding: 0 !important;
}

.tbl-contact-method-row label {
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1 !important;
}

.tbl-contact-method-row input[type="radio"] {
  width: 14px !important;
  height: 14px !important;
  min-height: 14px !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Keep phone placeholder looking like placeholder, not typed text. */
#tbl-route-calculator .tbl-phone-row input::placeholder,
#tbl-route-calculator input[name="tel-607"]::placeholder {
  color: rgba(21,21,21,.48) !important;
  -webkit-text-fill-color: rgba(21,21,21,.48) !important;
  opacity: 1 !important;
}

@media (max-width: 760px) {
  .tbl-contact-method-row {
    flex-wrap: wrap !important;
  }
}


/* v2.5.9: date CSS-only, no JS color manipulation; tighter contact spacing */

/* CSS-only date visibility fallback. The real input stays untouched by JS. */
.tbl-search-date,
.tbl-search-return-date {
  position: relative !important;
}

.tbl-search-date input,
.tbl-search-return-date input,
#tbl-route-calculator input[name="date_time-38"],
#tbl-route-calculator input[name="return-date-time"] {
  color: #151515 !important;
  -webkit-text-fill-color: #151515 !important;
  background: #fff !important;
  opacity: 1 !important;
  text-shadow: none !important;
  caret-color: #151515 !important;
}

/* If the CF7 Date Time plugin renders an empty invisible-looking input, show readable CSS text. */
.tbl-search-date:has(input[value=""])::after,
.tbl-search-date:has(input:placeholder-shown)::after,
.tbl-search-return-date:has(input[value=""])::after,
.tbl-search-return-date:has(input:placeholder-shown)::after {
  position: absolute;
  left: 12px;
  right: 12px;
  top: 23px;
  z-index: 4;
  pointer-events: none;
  color: rgba(21,21,21,.72) !important;
  -webkit-text-fill-color: rgba(21,21,21,.72) !important;
  font-size: 14px;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tbl-search-date:has(input[value=""])::after,
.tbl-search-date:has(input:placeholder-shown)::after {
  content: "Select date & time";
}

.tbl-search-return-date:has(input[value=""])::after,
.tbl-search-return-date:has(input:placeholder-shown)::after {
  content: "Select return date & time";
}

/* Tight, equal contact field vertical spacing */
.tbl-card-section--compact {
  padding: 12px 14px !important;
}

.tbl-card-section--compact .tbl-card-title {
  margin: 0 0 8px !important;
}

.tbl-card-section--compact .tbl-name-row,
.tbl-card-section--compact .tbl-phone-row,
.tbl-card-section--compact .tbl-email-telegram-row,
.tbl-card-section--compact .tbl-row--compact {
  margin-top: 0 !important;
  margin-bottom: 6px !important;
  gap: 8px !important;
}

.tbl-card-section--compact .tbl-name-row label,
.tbl-card-section--compact .tbl-phone-row label,
.tbl-card-section--compact .tbl-email-telegram-row label,
.tbl-card-section--compact .wpcf7-form-control-wrap,
.tbl-card-section--compact p {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

/* Kill CF7/theme auto paragraph/br spacing inside compact card only */
.tbl-card-section--compact > p:empty,
.tbl-card-section--compact p:empty,
.tbl-card-section--compact br {
  display: none !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

.tbl-card-section--compact input,
.tbl-card-section--compact select {
  height: 42px !important;
  min-height: 42px !important;
  padding-top: 8px !important;
  padding-bottom: 8px !important;
}

/* Preferred contact stays in one line with no artificial vertical gap */
.tbl-contact-method-row {
  display: flex !important;
  align-items: center !important;
  flex-wrap: nowrap !important;
  gap: 8px !important;
  margin: 4px 0 0 !important;
  padding: 0 !important;
  min-height: 18px !important;
  line-height: 1 !important;
}

.tbl-contact-method-row .tbl-inline-label,
.tbl-contact-method-row .wpcf7-form-control-wrap,
.tbl-contact-method-row .wpcf7-radio,
.tbl-contact-method-row .wpcf7-list-item,
.tbl-contact-method-row label {
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1 !important;
  min-height: 0 !important;
}

.tbl-contact-method-row .wpcf7-radio {
  display: inline-flex !important;
  align-items: center !important;
  gap: 9px !important;
}

.tbl-contact-method-row label {
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  font-size: 13px !important;
}

.tbl-contact-method-row input[type="radio"] {
  width: 13px !important;
  height: 13px !important;
  min-height: 13px !important;
}

/* Phone row remains full-width and compact */
#tbl-route-calculator .tbl-phone-row input,
#tbl-route-calculator .tbl-phone-row input[type="tel"],
#tbl-route-calculator .tbl-phone-row .wpcf7-phonetext,
#tbl-route-calculator input[name="tel-607"] {
  height: 42px !important;
  min-height: 42px !important;
  padding-left: 76px !important;
}

@media (max-width: 760px) {
  .tbl-contact-method-row {
    flex-wrap: wrap !important;
  }
}


/* v2.5.10: remove hidden vertical space inside CF7 row wrappers */
.tbl-card-section--compact .tbl-row--compact,
.tbl-card-section--compact .tbl-name-row,
.tbl-card-section--compact .tbl-phone-row,
.tbl-card-section--compact .tbl-email-telegram-row {
  min-height: 0 !important;
  height: auto !important;
  padding: 0 !important;
  margin: 0 0 6px !important;
  align-items: start !important;
}

.tbl-card-section--compact .tbl-row--compact > label,
.tbl-card-section--compact .tbl-row--compact > p,
.tbl-card-section--compact .tbl-row--compact > span,
.tbl-card-section--compact .wpcf7-form-control-wrap {
  min-height: 0 !important;
  height: auto !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* CF7/themes often wrap shortcodes into paragraphs that create invisible height. */
.tbl-card-section--compact p,
.tbl-card-section--compact .wpcf7 p {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  min-height: 0 !important;
}

/* Force fields themselves to define row height, not wrappers. */
.tbl-card-section--compact input,
.tbl-card-section--compact select,
.tbl-card-section--compact textarea {
  height: 42px !important;
  min-height: 42px !important;
  max-height: 42px !important;
  margin: 0 !important;
  padding-top: 8px !important;
  padding-bottom: 8px !important;
  line-height: 1.2 !important;
  box-sizing: border-box !important;
}

/* Phone row should not inherit extra wrapper height from the phone plugin. */
.tbl-card-section--compact .tbl-phone-row,
.tbl-card-section--compact .tbl-phone-row label,
.tbl-card-section--compact .tbl-phone-row .wpcf7-form-control-wrap,
.tbl-card-section--compact .tbl-phone-row .iti,
.tbl-card-section--compact .tbl-phone-row .intl-tel-input {
  min-height: 0 !important;
  height: auto !important;
  margin: 0 !important;
  padding: 0 !important;
}

.tbl-card-section--compact .tbl-phone-row input,
.tbl-card-section--compact .tbl-phone-row input[type="tel"],
.tbl-card-section--compact input[name="tel-607"] {
  height: 42px !important;
  min-height: 42px !important;
  max-height: 42px !important;
}

/* Email + Telegram row: remove the vertical stretching seen in inspector. */
.tbl-card-section--compact .tbl-email-telegram-row {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
  gap: 8px !important;
  align-items: start !important;
}

.tbl-card-section--compact .tbl-email-telegram-row label,
.tbl-card-section--compact .tbl-email-telegram-row .wpcf7-form-control-wrap {
  height: auto !important;
  min-height: 0 !important;
}

/* Contact method comes immediately after email/telegram. */
.tbl-contact-method-row {
  margin-top: 2px !important;
  margin-bottom: 0 !important;
  padding-top: 0 !important;
}

/* Reduce contact card bottom/top breathing room a little. */
.tbl-card-section--compact {
  padding-top: 12px !important;
  padding-bottom: 12px !important;
}

.tbl-card-section--compact .tbl-card-title {
  margin-bottom: 8px !important;
}

@media (max-width: 760px) {
  .tbl-card-section--compact .tbl-email-telegram-row {
    grid-template-columns: 1fr !important;
  }
}


/* v2.5.11: submit guard fix */
#tbl-route-calculator .tbl-submit-disabled,
#tbl-route-calculator input[disabled].tbl-submit-disabled,
#tbl-route-calculator button[disabled].tbl-submit-disabled {
  opacity: .45 !important;
  cursor: not-allowed !important;
  pointer-events: none !important;
}

#tbl-route-calculator input[type="submit"]:not([disabled]),
#tbl-route-calculator button[type="submit"]:not([disabled]),
#tbl-route-calculator .wpcf7-submit:not([disabled]) {
  opacity: 1 !important;
  cursor: pointer !important;
  pointer-events: auto !important;
}


/* v2.5.12: promo moved below return route; no hard submit lock */
.tbl-search-grid {
  grid-template-columns:
    minmax(220px, 1.25fr)
    minmax(220px, 1.25fr)
    minmax(185px, .85fr)
    minmax(110px, .42fr)
    minmax(110px, .42fr)
    minmax(150px, .58fr) !important;
  grid-template-areas:
    "from to date passengers return calc"
    "returndate returndate returndate returndate returndate returndate" !important;
}

.tbl-search-promo,
#tbl-apply-promo.tbl-search-mini-button {
  grid-area: unset !important;
}

.tbl-promo-card {
  padding: 12px 14px !important;
  margin-bottom: 10px !important;
}

.tbl-promo-card .tbl-card-title {
  margin: 0 0 8px !important;
  font-size: 16px !important;
}

.tbl-promo-card .tbl-promo-row {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 150px !important;
  gap: 10px !important;
  align-items: stretch !important;
}

.tbl-promo-card input {
  height: 42px !important;
  min-height: 42px !important;
}

.tbl-promo-card #tbl-apply-promo {
  height: 42px !important;
  min-height: 42px !important;
  border-radius: 999px !important;
  border: 1px solid rgba(21,21,21,.22) !important;
  background: #fff !important;
  color: #151515 !important;
  font-weight: 900 !important;
  text-transform: uppercase !important;
  cursor: pointer !important;
}

#tbl-promo-message {
  margin-top: 6px !important;
  font-size: 12px !important;
}

/* Submit is no longer disabled by our hard guard. Keep it visually active unless CF7 itself disables it. */
#tbl-route-calculator .tbl-submit-disabled {
  opacity: 1 !important;
  cursor: pointer !important;
  pointer-events: auto !important;
}

#tbl-route-calculator input[type="submit"],
#tbl-route-calculator button[type="submit"],
#tbl-route-calculator .wpcf7-submit {
  opacity: 1 !important;
  cursor: pointer !important;
  pointer-events: auto !important;
}

@media (max-width: 1320px) {
  .tbl-search-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    grid-template-areas:
      "from from to to"
      "date passengers return calc"
      "returndate returndate returndate returndate" !important;
  }
}

@media (max-width: 760px) {
  .tbl-search-grid {
    grid-template-columns: 1fr !important;
    grid-template-areas:
      "from"
      "to"
      "date"
      "passengers"
      "return"
      "returndate"
      "calc" !important;
  }

  .tbl-promo-card .tbl-promo-row {
    grid-template-columns: 1fr !important;
  }
}


/* v2.5.13: Calculate moved below Return route / Extra stops */
.tbl-search-grid {
  grid-template-columns:
    minmax(240px, 1.25fr)
    minmax(240px, 1.25fr)
    minmax(190px, .85fr)
    minmax(110px, .42fr)
    minmax(120px, .42fr) !important;
  grid-template-areas:
    "from to date passengers return"
    "returndate returndate returndate returndate returndate" !important;
}

.tbl-search-calc {
  display: none !important;
}

.tbl-estimate-card {
  padding: 12px 14px !important;
  margin-bottom: 10px !important;
}

.tbl-estimate-card .tbl-card-title {
  margin: 0 0 8px !important;
  font-size: 16px !important;
}

.tbl-estimate-card .tbl-promo-row {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 150px !important;
  gap: 10px !important;
  align-items: stretch !important;
  margin-bottom: 8px !important;
}

.tbl-estimate-card input {
  height: 42px !important;
  min-height: 42px !important;
}

.tbl-estimate-card #tbl-apply-promo {
  height: 42px !important;
  min-height: 42px !important;
  border-radius: 999px !important;
  border: 1px solid rgba(21,21,21,.22) !important;
  background: #fff !important;
  color: #151515 !important;
  font-weight: 900 !important;
  text-transform: uppercase !important;
  cursor: pointer !important;
}

.tbl-estimate-button {
  width: 100%;
  min-height: 48px;
  border: 0;
  border-radius: 999px;
  background: #151515;
  color: #fff;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .02em;
  cursor: pointer;
}

.tbl-estimate-button:hover {
  background: #000;
}

#tbl-promo-message {
  margin: 4px 0 8px !important;
  font-size: 12px !important;
}

@media (max-width: 1320px) {
  .tbl-search-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    grid-template-areas:
      "from from to to"
      "date passengers return return"
      "returndate returndate returndate returndate" !important;
  }
}

@media (max-width: 760px) {
  .tbl-search-grid {
    grid-template-columns: 1fr !important;
    grid-template-areas:
      "from"
      "to"
      "date"
      "passengers"
      "return"
      "returndate" !important;
  }

  .tbl-estimate-card .tbl-promo-row {
    grid-template-columns: 1fr !important;
  }
}


/* v2.5.14: worldwide autocomplete + promo after first estimate */
.tbl-promo-after-estimate {
  margin-top: 10px !important;
  padding-top: 10px !important;
  border-top: 1px solid rgba(21,21,21,.08) !important;
}

.tbl-promo-help {
  margin: 0 0 8px !important;
  font-size: 12px !important;
  color: rgba(21,21,21,.62) !important;
}

.tbl-estimate-card .tbl-promo-row {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 150px !important;
  gap: 10px !important;
  align-items: stretch !important;
  margin-bottom: 0 !important;
}

.tbl-estimate-card #tbl-promo-code {
  height: 42px !important;
  min-height: 42px !important;
}

.tbl-estimate-card #tbl-apply-promo {
  height: 42px !important;
  min-height: 42px !important;
  border-radius: 999px !important;
  border: 1px solid rgba(21,21,21,.22) !important;
  background: #fff !important;
  color: #151515 !important;
  font-weight: 900 !important;
  text-transform: uppercase !important;
  cursor: pointer !important;
}

#tbl-promo-message {
  margin-top: 6px !important;
  font-size: 12px !important;
}

@media (max-width: 760px) {
  .tbl-estimate-card .tbl-promo-row {
    grid-template-columns: 1fr !important;
  }
}


/* v2.5.15: promo appears inside the price card after first estimate */
#tbl-route-result .tbl-promo-after-estimate {
  display: block;
  margin-top: 12px !important;
  padding-top: 12px !important;
  border-top: 1px solid rgba(21,21,21,.10) !important;
}

#tbl-route-result .tbl-promo-help {
  margin: 0 0 8px !important;
  font-size: 12px !important;
  color: rgba(21,21,21,.62) !important;
}

#tbl-route-result .tbl-promo-row {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 140px !important;
  gap: 8px !important;
  align-items: stretch !important;
}

#tbl-route-result #tbl-promo-code {
  height: 40px !important;
  min-height: 40px !important;
  background: #fff !important;
}

#tbl-route-result #tbl-apply-promo {
  height: 40px !important;
  min-height: 40px !important;
  border-radius: 999px !important;
  border: 1px solid rgba(21,21,21,.22) !important;
  background: #fff !important;
  color: #151515 !important;
  font-weight: 900 !important;
  text-transform: uppercase !important;
  cursor: pointer !important;
}

#tbl-route-result #tbl-promo-message {
  margin-top: 6px !important;
  font-size: 12px !important;
}

@media (max-width: 760px) {
  #tbl-route-result .tbl-promo-row {
    grid-template-columns: 1fr !important;
  }
}


/* v2.5.16: custom trip is informational; request can still be submitted */
.tbl-custom-trip-card {
  padding: 16px !important;
  border-radius: 16px !important;
  border: 1px solid rgba(185, 120, 120, .28) !important;
  background: #fff6f6 !important;
  color: #303030 !important;
}

.tbl-custom-trip-card h3 {
  margin: 0 0 6px !important;
  font-size: 18px !important;
  font-weight: 900 !important;
}

.tbl-custom-trip-card p {
  margin: 0 0 8px !important;
  font-size: 14px !important;
  line-height: 1.35 !important;
}

.tbl-custom-trip-card .tbl-custom-trip-note {
  margin-bottom: 0 !important;
  color: rgba(21,21,21,.68) !important;
  font-size: 13px !important;
}

/* Hide any old WhatsApp CTA if cached markup appears */
.tbl-custom-trip-card a,
.tbl-custom-trip-card .tbl-whatsapp-button,
.tbl-custom-trip-card .tbl-custom-trip-button {
  display: none !important;
}


/* v2.5.18: autocomplete fixed + promo injected in result */
.pac-container {
  z-index: 999999 !important;
}

#tbl-route-result .tbl-promo-after-estimate,
.tbl-price-card .tbl-promo-after-estimate {
  margin-top: 12px !important;
  padding-top: 12px !important;
  border-top: 1px solid rgba(21,21,21,.10) !important;
}

#tbl-route-result .tbl-promo-help,
.tbl-price-card .tbl-promo-help {
  margin: 0 0 8px !important;
  font-size: 12px !important;
  color: rgba(21,21,21,.62) !important;
}

#tbl-route-result .tbl-promo-row,
.tbl-price-card .tbl-promo-row {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 140px !important;
  gap: 8px !important;
  align-items: stretch !important;
}

#tbl-route-result #tbl-promo-code,
.tbl-price-card #tbl-promo-code {
  height: 40px !important;
  min-height: 40px !important;
  background: #fff !important;
  border: 1px solid rgba(21,21,21,.16) !important;
  border-radius: 10px !important;
  padding: 8px 10px !important;
}

#tbl-route-result #tbl-apply-promo,
.tbl-price-card #tbl-apply-promo {
  height: 40px !important;
  min-height: 40px !important;
  border-radius: 999px !important;
  border: 1px solid rgba(21,21,21,.22) !important;
  background: #fff !important;
  color: #151515 !important;
  font-weight: 900 !important;
  text-transform: uppercase !important;
  cursor: pointer !important;
}

#tbl-route-result #tbl-promo-message,
.tbl-price-card #tbl-promo-message {
  margin-top: 6px !important;
  font-size: 12px !important;
}

@media (max-width: 760px) {
  #tbl-route-result .tbl-promo-row,
  .tbl-price-card .tbl-promo-row {
    grid-template-columns: 1fr !important;
  }
}


/* v2.5.19: force worldwide autocomplete and show promo inside price result */
.pac-container {
  z-index: 999999 !important;
}

#tbl-route-result .tbl-promo-after-estimate,
.tbl-price-card .tbl-promo-after-estimate {
  display: block;
  margin-top: 12px !important;
  padding-top: 12px !important;
  border-top: 1px solid rgba(21,21,21,.10) !important;
}

#tbl-route-result .tbl-promo-help,
.tbl-price-card .tbl-promo-help {
  margin: 0 0 8px !important;
  font-size: 12px !important;
  color: rgba(21,21,21,.62) !important;
}

#tbl-route-result .tbl-promo-row,
.tbl-price-card .tbl-promo-row {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 140px !important;
  gap: 8px !important;
  align-items: stretch !important;
}

#tbl-route-result #tbl-promo-code,
.tbl-price-card #tbl-promo-code {
  height: 40px !important;
  min-height: 40px !important;
  background: #fff !important;
  border: 1px solid rgba(21,21,21,.16) !important;
  border-radius: 10px !important;
  padding: 8px 10px !important;
}

#tbl-route-result #tbl-apply-promo,
.tbl-price-card #tbl-apply-promo {
  height: 40px !important;
  min-height: 40px !important;
  border-radius: 999px !important;
  border: 1px solid rgba(21,21,21,.22) !important;
  background: #fff !important;
  color: #151515 !important;
  font-weight: 900 !important;
  text-transform: uppercase !important;
  cursor: pointer !important;
}

@media (max-width: 760px) {
  #tbl-route-result .tbl-promo-row,
  .tbl-price-card .tbl-promo-row {
    grid-template-columns: 1fr !important;
  }
}


/* v2.5.20: promo field fit */
#tbl-route-result .tbl-promo-row,
.tbl-price-card .tbl-promo-row,
.tbl-result-card .tbl-promo-row {
  grid-template-columns: minmax(0, 1fr) 120px !important;
  gap: 8px !important;
}

#tbl-route-result #tbl-apply-promo,
.tbl-price-card #tbl-apply-promo,
.tbl-result-card #tbl-apply-promo {
  width: 120px !important;
  max-width: 120px !important;
  padding-left: 10px !important;
  padding-right: 10px !important;
  font-size: 12px !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

@media (max-width: 760px) {
  #tbl-route-result .tbl-promo-row,
  .tbl-price-card .tbl-promo-row,
  .tbl-result-card .tbl-promo-row {
    grid-template-columns: 1fr !important;
  }

  #tbl-route-result #tbl-apply-promo,
  .tbl-price-card #tbl-apply-promo,
  .tbl-result-card #tbl-apply-promo {
    width: 100% !important;
    max-width: 100% !important;
  }
}


/* v2.5.21: promo label and button fit */
#tbl-route-result .tbl-promo-row,
.tbl-price-card .tbl-promo-row,
.tbl-result-card .tbl-promo-row {
  grid-template-columns: minmax(0, 1fr) 92px !important;
}

#tbl-route-result #tbl-apply-promo,
.tbl-price-card #tbl-apply-promo,
.tbl-result-card #tbl-apply-promo {
  width: 92px !important;
  max-width: 92px !important;
  font-size: 12px !important;
  padding-left: 8px !important;
  padding-right: 8px !important;
}

#tbl-route-result .tbl-discount-line,
.tbl-price-card .tbl-discount-line {
  display: inline-block !important;
  max-width: 100% !important;
  padding: 4px 8px !important;
  border-radius: 8px !important;
  background: rgba(21, 21, 21, .04) !important;
  line-height: 1.25 !important;
}

@media (max-width: 760px) {
  #tbl-route-result .tbl-promo-row,
  .tbl-price-card .tbl-promo-row,
  .tbl-result-card .tbl-promo-row {
    grid-template-columns: 1fr !important;
  }

  #tbl-route-result #tbl-apply-promo,
  .tbl-price-card #tbl-apply-promo,
  .tbl-result-card #tbl-apply-promo {
    width: 100% !important;
    max-width: 100% !important;
  }
}


/* v2.5.28: promo code inside custom trip card */
.tbl-custom-trip-card .tbl-promo-after-estimate {
  margin-top: 12px !important;
  padding-top: 12px !important;
  border-top: 1px solid rgba(21,21,21,.10) !important;
}

.tbl-custom-trip-card .tbl-promo-help {
  margin: 0 0 8px !important;
  font-size: 12px !important;
  color: rgba(21,21,21,.62) !important;
}

.tbl-custom-trip-card .tbl-promo-row {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 92px !important;
  gap: 8px !important;
  align-items: stretch !important;
}

.tbl-custom-trip-card #tbl-promo-code {
  height: 40px !important;
  min-height: 40px !important;
  background: #fff !important;
  border: 1px solid rgba(21,21,21,.16) !important;
  border-radius: 10px !important;
  padding: 8px 10px !important;
}

.tbl-custom-trip-card #tbl-apply-promo {
  height: 40px !important;
  min-height: 40px !important;
  border-radius: 999px !important;
  border: 1px solid rgba(21,21,21,.22) !important;
  background: #fff !important;
  color: #151515 !important;
  font-weight: 900 !important;
  text-transform: uppercase !important;
  cursor: pointer !important;
  width: 92px !important;
  max-width: 92px !important;
  font-size: 12px !important;
}

.tbl-custom-trip-promo-note {
  margin-top: 8px !important;
}


/* v2.5.29: mobile datepicker guard + Telegram conditional field */
#tbl-telegram-row[style*="display:none"],
.tbl-telegram-row[style*="display:none"] {
  display: none !important;
}

#tbl-route-calculator .tbl-email-row,
#tbl-route-calculator .tbl-telegram-row {
  margin-bottom: 10px !important;
}

#tbl-route-calculator .tbl-telegram-row {
  animation: tblFadeIn .14s ease-out;
}

@keyframes tblFadeIn {
  from { opacity: 0; transform: translateY(-3px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 760px) {
  .xdsoft_datetimepicker,
  .ui-datepicker,
  .timepicker {
    z-index: 999999 !important;
  }

  #tbl-route-calculator .tbl-contact-method-row {
    margin-top: 6px !important;
    margin-bottom: 8px !important;
  }

  #tbl-route-calculator .tbl-telegram-row input {
    font-size: 14px !important;
  }
}


/* v2.5.44: Homepage quick search widget only.
   Date/time in the booking form is intentionally handled by the original CF7 date_time plugin again. */
.tbl-quick-search {
  width: min(1060px, calc(100vw - 32px));
  margin: 18px auto 0;
  padding: 14px;
  border-radius: 22px;
  background: rgba(255, 255, 255, .16);
  border: 1px solid rgba(255,255,255,.28);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 18px 48px rgba(0,0,0,.20);
}

.tbl-quick-search-title {
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin: 0 0 10px;
  text-align: center;
}

.tbl-quick-grid {
  display: grid;
  grid-template-columns: minmax(190px, 1.3fr) minmax(190px, 1.3fr) minmax(170px, .9fr) minmax(110px, .55fr) 150px;
  gap: 10px;
  align-items: stretch;
}

.tbl-quick-field {
  position: relative;
  display: block;
  min-width: 0;
  margin: 0;
  border-radius: 14px;
  background: rgba(255,255,255,.94);
  overflow: hidden;
}

.tbl-quick-field span {
  position: absolute;
  top: 7px;
  left: 14px;
  z-index: 2;
  font-size: 10px;
  line-height: 1;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: rgba(21,21,21,.52);
  pointer-events: none;
}

.tbl-quick-field input,
.tbl-quick-field select {
  display: block !important;
  width: 100% !important;
  min-width: 0 !important;
  height: 54px !important;
  min-height: 54px !important;
  border: 0 !important;
  outline: none !important;
  background: transparent !important;
  padding: 20px 14px 8px !important;
  color: #151515 !important;
  -webkit-text-fill-color: #151515 !important;
  font-size: 15px !important;
  line-height: 1.2 !important;
  box-shadow: none !important;
}

.tbl-quick-submit {
  height: 54px;
  border: 0;
  border-radius: 14px;
  background: #151515;
  color: #fff;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .02em;
  cursor: pointer;
}

@media (max-width: 920px) {
  .tbl-quick-grid { grid-template-columns: 1fr 1fr; }
  .tbl-quick-submit { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
  .tbl-quick-search { width: calc(100vw - 24px); padding: 12px; border-radius: 18px; }
  .tbl-quick-grid { grid-template-columns: 1fr; gap: 8px; }
  .tbl-quick-field input, .tbl-quick-field select, .tbl-quick-submit { height: 50px !important; min-height: 50px !important; }
}


/* v2.5.45: visual polish for the original CF7 date_time plugin calendar.
   This targets the common jQuery DateTimePicker markup used by many CF7 date_time plugins:
   .xdsoft_datetimepicker / .xdsoft_datepicker / .xdsoft_timepicker.
   It does not replace the plugin. It only restyles it. */

#tbl-route-calculator input.tbl-cf7-datetime-polished,
#tbl-route-calculator input[name="date_time-38"],
#tbl-route-calculator input[name="return-date-time"] {
  color: #151515 !important;
  -webkit-text-fill-color: #151515 !important;
  caret-color: #151515 !important;
}

/* Main popup card */
.xdsoft_datetimepicker.tbl-datetimepicker-polished,
.xdsoft_datetimepicker {
  z-index: 999999 !important;
  border: 0 !important;
  border-radius: 18px !important;
  padding: 12px !important;
  background: #ffffff !important;
  box-shadow: 0 18px 50px rgba(0,0,0,.20) !important;
  font-family: inherit !important;
  overflow: hidden !important;
}

/* Header/month area */
.xdsoft_datetimepicker .xdsoft_monthpicker {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 8px !important;
  margin: 0 0 8px !important;
}

.xdsoft_datetimepicker .xdsoft_label {
  font-weight: 900 !important;
  color: #151515 !important;
  border: 0 !important;
  background: transparent !important;
  text-decoration: none !important;
}

.xdsoft_datetimepicker .xdsoft_prev,
.xdsoft_datetimepicker .xdsoft_next,
.xdsoft_datetimepicker .xdsoft_today_button {
  opacity: .8 !important;
  border-radius: 10px !important;
}

.xdsoft_datetimepicker .xdsoft_prev:hover,
.xdsoft_datetimepicker .xdsoft_next:hover,
.xdsoft_datetimepicker .xdsoft_today_button:hover {
  background: #f2f2f2 !important;
  opacity: 1 !important;
}

/* Calendar table */
.xdsoft_datetimepicker .xdsoft_calendar th {
  color: rgba(21,21,21,.48) !important;
  font-size: 11px !important;
  font-weight: 900 !important;
  text-transform: uppercase !important;
  border: 0 !important;
  background: transparent !important;
  padding: 6px 0 !important;
}

.xdsoft_datetimepicker .xdsoft_calendar td {
  border: 0 !important;
  background: transparent !important;
  padding: 2px !important;
}

.xdsoft_datetimepicker .xdsoft_calendar td > div {
  border-radius: 999px !important;
  height: 32px !important;
  line-height: 32px !important;
  width: 32px !important;
  margin: 0 auto !important;
  padding: 0 !important;
  text-align: center !important;
  font-weight: 700 !important;
  color: #151515 !important;
}

.xdsoft_datetimepicker .xdsoft_calendar td:hover > div {
  background: #f0f0f0 !important;
  color: #151515 !important;
}

.xdsoft_datetimepicker .xdsoft_calendar td.xdsoft_current > div,
.xdsoft_datetimepicker .xdsoft_calendar td.xdsoft_current:hover > div,
.xdsoft_datetimepicker .xdsoft_calendar td.xdsoft_today.xdsoft_current > div {
  background: #151515 !important;
  color: #fff !important;
}

.xdsoft_datetimepicker .xdsoft_calendar td.xdsoft_today > div {
  box-shadow: inset 0 0 0 1px #151515 !important;
}

.xdsoft_datetimepicker .xdsoft_calendar td.xdsoft_disabled > div,
.xdsoft_datetimepicker .xdsoft_calendar td.xdsoft_other_month > div {
  opacity: .28 !important;
}

/* Time column */
.xdsoft_datetimepicker .xdsoft_timepicker {
  border-left: 1px solid rgba(21,21,21,.08) !important;
  margin-left: 10px !important;
  padding-left: 10px !important;
}

.xdsoft_datetimepicker .xdsoft_time_box {
  border: 0 !important;
}

.xdsoft_datetimepicker .xdsoft_time {
  border: 0 !important;
  border-radius: 999px !important;
  background: transparent !important;
  color: #151515 !important;
  font-weight: 700 !important;
  height: 30px !important;
  line-height: 30px !important;
  margin: 2px 0 !important;
}

.xdsoft_datetimepicker .xdsoft_time:hover {
  background: #f0f0f0 !important;
  color: #151515 !important;
}

.xdsoft_datetimepicker .xdsoft_time.xdsoft_current {
  background: #151515 !important;
  color: #fff !important;
}

/* Scrollbars slightly cleaner */
.xdsoft_datetimepicker .xdsoft_scroller {
  background: rgba(21,21,21,.18) !important;
  border-radius: 999px !important;
}

/* Mobile layout: make it more modal-like and easier to tap */
@media (max-width: 760px) {
  .xdsoft_datetimepicker.tbl-datetimepicker-polished,
  .xdsoft_datetimepicker {
    position: fixed !important;
    left: 50% !important;
    right: auto !important;
    top: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: min(94vw, 360px) !important;
    max-width: 94vw !important;
    max-height: 86vh !important;
    overflow-y: auto !important;
    padding: 12px !important;
  }

  .xdsoft_datetimepicker .xdsoft_datepicker {
    width: 100% !important;
    margin-left: 0 !important;
  }

  .xdsoft_datetimepicker .xdsoft_timepicker {
    width: 100% !important;
    margin: 10px 0 0 !important;
    padding: 10px 0 0 !important;
    border-left: 0 !important;
    border-top: 1px solid rgba(21,21,21,.08) !important;
  }

  .xdsoft_datetimepicker .xdsoft_time_box {
    height: 118px !important;
  }

  .xdsoft_datetimepicker .xdsoft_calendar td > div {
    height: 34px !important;
    line-height: 34px !important;
    width: 34px !important;
    font-size: 13px !important;
  }

  .xdsoft_datetimepicker .xdsoft_time {
    height: 34px !important;
    line-height: 34px !important;
    font-size: 13px !important;
  }

  body.tbl-datetime-open::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 999998;
    background: rgba(0,0,0,.22);
    pointer-events: none;
  }
}


/* v2.5.46: improve original CF7 date_time popup layout + 24h time readability */

/* Stop the time column from collapsing and splitting 08:00 into multiple lines. */
.xdsoft_datetimepicker .xdsoft_timepicker {
  width: 86px !important;
  min-width: 86px !important;
  max-width: 86px !important;
  box-sizing: border-box !important;
  overflow: visible !important;
}

.xdsoft_datetimepicker .xdsoft_time_box,
.xdsoft_datetimepicker .xdsoft_time_variant {
  width: 70px !important;
  min-width: 70px !important;
  box-sizing: border-box !important;
}

.xdsoft_datetimepicker .xdsoft_time {
  width: 66px !important;
  min-width: 66px !important;
  max-width: 66px !important;
  padding: 0 !important;
  text-align: center !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: clip !important;
  font-variant-numeric: tabular-nums !important;
  letter-spacing: 0 !important;
}

/* Give the whole picker enough room for calendar + time column. */
.xdsoft_datetimepicker.tbl-datetimepicker-polished,
.xdsoft_datetimepicker {
  width: auto !important;
  min-width: 374px !important;
  max-width: min(96vw, 430px) !important;
}

/* Keep the date area stable. */
.xdsoft_datetimepicker .xdsoft_datepicker {
  width: 268px !important;
  min-width: 268px !important;
}

/* The previous mobile modal was too narrow for calendar + time. Use stacked layout on mobile. */
@media (max-width: 760px) {
  .xdsoft_datetimepicker.tbl-datetimepicker-polished,
  .xdsoft_datetimepicker {
    position: fixed !important;
    left: 50% !important;
    right: auto !important;
    top: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: min(94vw, 360px) !important;
    min-width: 0 !important;
    max-width: 94vw !important;
    max-height: 86vh !important;
    overflow-y: auto !important;
    padding: 12px !important;
    box-sizing: border-box !important;
  }

  .xdsoft_datetimepicker .xdsoft_datepicker {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    margin: 0 !important;
    float: none !important;
  }

  .xdsoft_datetimepicker .xdsoft_calendar,
  .xdsoft_datetimepicker .xdsoft_calendar table {
    width: 100% !important;
  }

  .xdsoft_datetimepicker .xdsoft_timepicker {
    display: block !important;
    float: none !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    margin: 10px 0 0 !important;
    padding: 10px 0 0 !important;
    border-left: 0 !important;
    border-top: 1px solid rgba(21,21,21,.08) !important;
  }

  .xdsoft_datetimepicker .xdsoft_time_box {
    width: 100% !important;
    min-width: 0 !important;
    height: 112px !important;
  }

  .xdsoft_datetimepicker .xdsoft_time_variant {
    width: 100% !important;
    min-width: 0 !important;
  }

  .xdsoft_datetimepicker .xdsoft_time {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    height: 34px !important;
    line-height: 34px !important;
    text-align: center !important;
    border-radius: 999px !important;
    font-size: 13px !important;
  }
}

/* Make the input show 24-hour values cleanly after picker change. */
#tbl-route-calculator input.tbl-cf7-datetime-polished {
  font-variant-numeric: tabular-nums !important;
}


/* v2.5.47: stronger selected-day/time contrast + 24h calendar readability */

/* Selected day: black background, white text. Apply both to td and inner div because themes vary. */
.xdsoft_datetimepicker .xdsoft_calendar td.xdsoft_current,
.xdsoft_datetimepicker .xdsoft_calendar td.xdsoft_current:hover {
  background: transparent !important;
  color: #fff !important;
  text-shadow: none !important;
}

.xdsoft_datetimepicker .xdsoft_calendar td.xdsoft_current > div,
.xdsoft_datetimepicker .xdsoft_calendar td.xdsoft_current:hover > div,
.xdsoft_datetimepicker .xdsoft_calendar td.xdsoft_current.xdsoft_today > div,
.xdsoft_datetimepicker .xdsoft_calendar td.xdsoft_current.xdsoft_today:hover > div {
  background: #151515 !important;
  color: #ffffff !important;
  text-shadow: none !important;
  box-shadow: none !important;
}

.xdsoft_datetimepicker .xdsoft_calendar td.xdsoft_current *,
.xdsoft_datetimepicker .xdsoft_calendar td.xdsoft_current:hover * {
  color: #ffffff !important;
  text-shadow: none !important;
}

/* Today but not selected: visible ring, readable text. */
.xdsoft_datetimepicker .xdsoft_calendar td.xdsoft_today:not(.xdsoft_current) > div {
  background: #fff !important;
  color: #151515 !important;
  box-shadow: inset 0 0 0 2px #151515 !important;
}

/* Selected time: black background, white text. */
.xdsoft_datetimepicker .xdsoft_time.xdsoft_current,
.xdsoft_datetimepicker .xdsoft_time.xdsoft_current:hover,
.xdsoft_datetimepicker .xdsoft_timepicker .xdsoft_time.xdsoft_current,
.xdsoft_datetimepicker .xdsoft_timepicker .xdsoft_time.xdsoft_current:hover {
  background: #151515 !important;
  color: #ffffff !important;
  text-shadow: none !important;
  box-shadow: none !important;
}

.xdsoft_datetimepicker .xdsoft_time.xdsoft_current *,
.xdsoft_datetimepicker .xdsoft_timepicker .xdsoft_time.xdsoft_current * {
  color: #ffffff !important;
  text-shadow: none !important;
}

/* Fix time column readability. */
.xdsoft_datetimepicker .xdsoft_timepicker {
  width: 96px !important;
  min-width: 96px !important;
  max-width: 96px !important;
}

.xdsoft_datetimepicker .xdsoft_time_box,
.xdsoft_datetimepicker .xdsoft_time_variant {
  width: 80px !important;
  min-width: 80px !important;
}

.xdsoft_datetimepicker .xdsoft_time {
  width: 76px !important;
  min-width: 76px !important;
  max-width: 76px !important;
  white-space: nowrap !important;
  font-variant-numeric: tabular-nums !important;
  letter-spacing: 0 !important;
}

/* Make the typed/selected field value readable and remove old mask-like underscores. */
#tbl-route-calculator input.tbl-cf7-datetime-24h,
#tbl-route-calculator input.tbl-cf7-datetime-polished {
  color: #151515 !important;
  -webkit-text-fill-color: #151515 !important;
  font-variant-numeric: tabular-nums !important;
}

/* Mobile: time list below calendar, not squeezed on the right. */
@media (max-width: 760px) {
  .xdsoft_datetimepicker .xdsoft_timepicker {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
  }

  .xdsoft_datetimepicker .xdsoft_time_box,
  .xdsoft_datetimepicker .xdsoft_time_variant {
    width: 100% !important;
    min-width: 0 !important;
  }

  .xdsoft_datetimepicker .xdsoft_time {
    width: 100% !important;
    max-width: 100% !important;
  }
}


/* v2.5.48: final selected contrast fix.
   The site/theme had a broad rule:
   .xdsoft_datetimepicker, .xdsoft_datetimepicker * { color:#151515; -webkit-text-fill-color:#151515; }
   That overrode our selected-day/time white text. These rules are intentionally very specific
   and also set -webkit-text-fill-color, not only color. */

/* Selected calendar day */
.xdsoft_datetimepicker .xdsoft_calendar td.xdsoft_current,
.xdsoft_datetimepicker .xdsoft_calendar td.xdsoft_current:hover,
.xdsoft_datetimepicker .xdsoft_calendar td.xdsoft_current.xdsoft_today,
.xdsoft_datetimepicker .xdsoft_calendar td.xdsoft_current.xdsoft_today:hover {
  background: transparent !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  text-shadow: none !important;
  box-shadow: none !important;
}

.xdsoft_datetimepicker .xdsoft_calendar td.xdsoft_current > div,
.xdsoft_datetimepicker .xdsoft_calendar td.xdsoft_current:hover > div,
.xdsoft_datetimepicker .xdsoft_calendar td.xdsoft_current.xdsoft_today > div,
.xdsoft_datetimepicker .xdsoft_calendar td.xdsoft_current.xdsoft_today:hover > div,
.xdsoft_datetimepicker .xdsoft_calendar td.xdsoft_current div,
.xdsoft_datetimepicker .xdsoft_calendar td.xdsoft_current:hover div {
  background: #151515 !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  text-shadow: none !important;
  box-shadow: none !important;
  border-color: #151515 !important;
}

.xdsoft_datetimepicker .xdsoft_calendar td.xdsoft_current *,
.xdsoft_datetimepicker .xdsoft_calendar td.xdsoft_current:hover *,
.xdsoft_datetimepicker .xdsoft_calendar td.xdsoft_current.xdsoft_today *,
.xdsoft_datetimepicker .xdsoft_calendar td.xdsoft_current.xdsoft_today:hover * {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  text-shadow: none !important;
}

/* Selected time */
.xdsoft_datetimepicker .xdsoft_timepicker .xdsoft_time.xdsoft_current,
.xdsoft_datetimepicker .xdsoft_timepicker .xdsoft_time.xdsoft_current:hover,
.xdsoft_datetimepicker .xdsoft_time_box .xdsoft_time.xdsoft_current,
.xdsoft_datetimepicker .xdsoft_time_box .xdsoft_time.xdsoft_current:hover,
.xdsoft_datetimepicker .xdsoft_time_variant .xdsoft_time.xdsoft_current,
.xdsoft_datetimepicker .xdsoft_time_variant .xdsoft_time.xdsoft_current:hover {
  background: #151515 !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  text-shadow: none !important;
  box-shadow: none !important;
  border-color: #151515 !important;
}

.xdsoft_datetimepicker .xdsoft_timepicker .xdsoft_time.xdsoft_current *,
.xdsoft_datetimepicker .xdsoft_time_box .xdsoft_time.xdsoft_current *,
.xdsoft_datetimepicker .xdsoft_time_variant .xdsoft_time.xdsoft_current * {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  text-shadow: none !important;
}

/* Hover but not selected remains readable. */
.xdsoft_datetimepicker .xdsoft_calendar td:not(.xdsoft_current):hover > div,
.xdsoft_datetimepicker .xdsoft_timepicker .xdsoft_time:not(.xdsoft_current):hover {
  background: #f0f0f0 !important;
  color: #151515 !important;
  -webkit-text-fill-color: #151515 !important;
}

/* Alternative option: selected color could be light instead of black.
   We keep black, but ensure selected text is white. */

/* Better visible input after selected value. */
#tbl-route-calculator input.tbl-cf7-datetime-24h,
#tbl-route-calculator input.tbl-cf7-datetime-polished,
#tbl-route-calculator input[name="date_time-38"],
#tbl-route-calculator input[name="return-date-time"] {
  color: #151515 !important;
  -webkit-text-fill-color: #151515 !important;
  font-variant-numeric: tabular-nums !important;
}

/* If the plugin still prints AM/PM in the dropdown, the JS tries to reinitialize.
   CSS cannot convert AM/PM, but this keeps 24h values from wrapping when JS wins. */
.xdsoft_datetimepicker .xdsoft_time {
  white-space: nowrap !important;
  min-width: 76px !important;
}


/* v2.5.51: homepage quick-search uses the same xdan datetimepicker style as booking. */
.tbl-quick-search .tbl-quick-date {
  cursor: pointer !important;
  font-variant-numeric: tabular-nums !important;
}

.tbl-quick-search .tbl-quick-date::placeholder {
  color: rgba(21,21,21,.72) !important;
  opacity: 1 !important;
}

/* When opened from the homepage hero, keep popup above hero overlays. */
.xdsoft_datetimepicker {
  z-index: 999999 !important;
}


/* v2.5.54: root 24h datetime picker mode */
#tbl-route-calculator input.tbl-cf7-datetime-24h,
.tbl-quick-search input.tbl-cf7-datetime-24h {
  font-variant-numeric: tabular-nums !important;
}

.xdsoft_datetimepicker .xdsoft_time {
  white-space: nowrap !important;
  font-variant-numeric: tabular-nums !important;
}


/* v2.5.55: own bundled 24h datetime picker, no external CF7 date_time add-on required. */
#tbl-route-calculator input.tbl-cf7-datetimepicker,
#tbl-route-calculator input.tbl-cf7-datetime-24h,
.tbl-quick-search input.tbl-quick-date {
  cursor: pointer !important;
  font-variant-numeric: tabular-nums !important;
}

/* Keep selected day/time readable in our bundled xdan picker. */
.xdsoft_datetimepicker .xdsoft_calendar td.xdsoft_current > div,
.xdsoft_datetimepicker .xdsoft_calendar td.xdsoft_current:hover > div,
.xdsoft_datetimepicker .xdsoft_calendar td.xdsoft_current.xdsoft_today > div,
.xdsoft_datetimepicker .xdsoft_calendar td.xdsoft_current.xdsoft_today:hover > div,
.xdsoft_datetimepicker .xdsoft_time.xdsoft_current,
.xdsoft_datetimepicker .xdsoft_time.xdsoft_current:hover {
  background: #151515 !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  text-shadow: none !important;
}

.xdsoft_datetimepicker .xdsoft_calendar td.xdsoft_current *,
.xdsoft_datetimepicker .xdsoft_time.xdsoft_current * {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}

/* 24h values must not wrap. */
.xdsoft_datetimepicker .xdsoft_time {
  white-space: nowrap !important;
  font-variant-numeric: tabular-nums !important;
  min-width: 76px !important;
}


/* v2.5.56: remove old CSS placeholder overlay for date fields.
   The duplicated "Select date & time" came from older CSS using:
   .tbl-search-date:has(input:placeholder-shown)::after
   plus the real input placeholder. Since v2.5.55 uses our own real picker input,
   the overlay is no longer needed and must be disabled. */

#tbl-route-calculator .tbl-search-date::after,
#tbl-route-calculator .tbl-search-return-date::after,
#tbl-route-calculator .tbl-search-date:has(input[value=""])::after,
#tbl-route-calculator .tbl-search-date:has(input:placeholder-shown)::after,
#tbl-route-calculator .tbl-search-return-date:has(input[value=""])::after,
#tbl-route-calculator .tbl-search-return-date:has(input:placeholder-shown)::after {
  content: none !important;
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
}

/* Keep only the actual input placeholder/value visible. */
#tbl-route-calculator .tbl-search-date input[name="date_time-38"],
#tbl-route-calculator .tbl-search-return-date input[name="return-date-time"],
#tbl-route-calculator .tbl-search-date input.tbl-cf7-datetimepicker,
#tbl-route-calculator .tbl-search-return-date input.tbl-cf7-datetimepicker {
  position: relative !important;
  z-index: 2 !important;
  color: #151515 !important;
  -webkit-text-fill-color: #151515 !important;
  background: transparent !important;
  text-shadow: none !important;
}

#tbl-route-calculator .tbl-search-date input[name="date_time-38"]::placeholder,
#tbl-route-calculator .tbl-search-return-date input[name="return-date-time"]::placeholder,
#tbl-route-calculator .tbl-search-date input.tbl-cf7-datetimepicker::placeholder,
#tbl-route-calculator .tbl-search-return-date input.tbl-cf7-datetimepicker::placeholder {
  color: rgba(21,21,21,.70) !important;
  -webkit-text-fill-color: rgba(21,21,21,.70) !important;
  opacity: 1 !important;
}


/* v2.5.57: final date picker background + required quick-search styling */

/* Calendar popup background: slightly warm white, not transparent/grey. */
.xdsoft_datetimepicker {
  background: #ffffff !important;
  border: 1px solid rgba(21,21,21,.08) !important;
}

.xdsoft_datetimepicker .xdsoft_datepicker,
.xdsoft_datetimepicker .xdsoft_timepicker,
.xdsoft_datetimepicker .xdsoft_calendar,
.xdsoft_datetimepicker .xdsoft_time_box {
  background: #ffffff !important;
}

.xdsoft_datetimepicker .xdsoft_calendar td,
.xdsoft_datetimepicker .xdsoft_calendar th,
.xdsoft_datetimepicker .xdsoft_time {
  background: #ffffff !important;
}

/* Hover stays subtle. */
.xdsoft_datetimepicker .xdsoft_calendar td:not(.xdsoft_current):hover > div,
.xdsoft_datetimepicker .xdsoft_timepicker .xdsoft_time:not(.xdsoft_current):hover {
  background: #f4f4f4 !important;
}

/* Active booking input: white field, subtle dark focus instead of pink/red wash. */
#tbl-route-calculator .tbl-search-date input.tbl-cf7-datetimepicker,
#tbl-route-calculator .tbl-search-return-date input.tbl-cf7-datetimepicker {
  background: transparent !important;
}

#tbl-route-calculator .tbl-search-date:focus-within,
#tbl-route-calculator .tbl-search-return-date:focus-within {
  background: #ffffff !important;
  box-shadow: inset 0 0 0 1px rgba(21,21,21,.24) !important;
}

/* Homepage quick search required validation */
.tbl-quick-field.tbl-quick-field-error {
  box-shadow: inset 0 0 0 2px #d93025 !important;
}

.tbl-quick-error {
  position: absolute;
  left: 12px;
  top: calc(100% + 4px);
  z-index: 20;
  color: #d93025;
  font-size: 12px;
  line-height: 1.2;
  font-weight: 600;
  white-space: nowrap;
}

.tbl-quick-search {
  overflow: visible !important;
}

@media (max-width: 560px) {
  .tbl-quick-error {
    position: static;
    margin: -2px 12px 7px;
    white-space: normal;
  }
}


/* v2.5.58: disable past dates in our datetime picker */
.xdsoft_datetimepicker .xdsoft_calendar td.xdsoft_disabled,
.xdsoft_datetimepicker .xdsoft_calendar td.xdsoft_disabled > div,
.xdsoft_datetimepicker .xdsoft_calendar td.xdsoft_other_month.xdsoft_disabled > div {
  color: rgba(21,21,21,.22) !important;
  -webkit-text-fill-color: rgba(21,21,21,.22) !important;
  cursor: not-allowed !important;
  pointer-events: none !important;
}

.xdsoft_datetimepicker .xdsoft_calendar td.xdsoft_disabled > div {
  background: transparent !important;
  box-shadow: none !important;
}

.tbl-date-past-error {
  position: absolute;
  left: 0;
  top: calc(100% + 5px);
  z-index: 40;
  color: #d93025;
  font-size: 12px;
  line-height: 1.25;
  font-weight: 600;
  white-space: nowrap;
}

.tbl-search-field,
.tbl-quick-field {
  position: relative;
}


/* v2.5.59: white top fields + robust return date visibility */

/* Top search fields should stay clean white, including active date field. */
#tbl-route-calculator .tbl-search-panel .tbl-search-field {
  background: #ffffff !important;
}

#tbl-route-calculator .tbl-search-panel .tbl-search-field:focus-within {
  background: #ffffff !important;
  box-shadow: inset 0 0 0 1px rgba(21,21,21,.24) !important;
}

#tbl-route-calculator .tbl-search-panel .tbl-search-field input,
#tbl-route-calculator .tbl-search-panel .tbl-search-field select {
  background: transparent !important;
}

/* If return ride is Yes, JS adds this class to beat old inline/display rules. */
#tbl-route-calculator #tbl-return-date-top.tbl-return-date-force-show {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}


/* v2.5.60: compact top search fields + no white strip below inputs */
#tbl-route-calculator .tbl-search-panel .tbl-search-grid {
  align-items: start !important;
}

#tbl-route-calculator .tbl-search-panel .tbl-search-field {
  height: 50px !important;
  min-height: 50px !important;
  max-height: 50px !important;
  overflow: hidden !important;
  border-radius: 12px !important;
  background: #ffffff !important;
  box-sizing: border-box !important;
}

#tbl-route-calculator .tbl-search-panel .tbl-search-field .wpcf7-form-control-wrap {
  display: block !important;
  height: 50px !important;
  min-height: 50px !important;
  max-height: 50px !important;
  overflow: hidden !important;
}

#tbl-route-calculator .tbl-search-panel .tbl-search-field input,
#tbl-route-calculator .tbl-search-panel .tbl-search-field select {
  display: block !important;
  width: 100% !important;
  height: 50px !important;
  min-height: 50px !important;
  max-height: 50px !important;
  padding-top: 19px !important;
  padding-bottom: 5px !important;
  margin: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-sizing: border-box !important;
}

/* The hidden return date field must stay hidden while Return ride = No. */
#tbl-route-calculator #tbl-return-date-top[hidden],
#tbl-route-calculator #tbl-return-date-top[style*="display:none"],
#tbl-route-calculator #tbl-return-date-top[style*="display: none"] {
  display: none !important;
}

/* If JS enables it, show it as a normal compact field. */
#tbl-route-calculator #tbl-return-date-top.tbl-return-date-force-show {
  display: block !important;
  height: 50px !important;
  min-height: 50px !important;
  max-height: 50px !important;
}

/* Past times/dates visual state */
.xdsoft_datetimepicker .xdsoft_time.xdsoft_disabled,
.xdsoft_datetimepicker .xdsoft_time.xdsoft_disabled:hover {
  color: rgba(21,21,21,.22) !important;
  -webkit-text-fill-color: rgba(21,21,21,.22) !important;
  background: transparent !important;
  cursor: not-allowed !important;
  pointer-events: none !important;
}


/* v2.5.61: fix return date visibility and top-row white strip regression */

/* Remove the visible white strip created by forcing input/wrapper height outside the rounded field. */
#tbl-route-calculator .tbl-search-panel .tbl-search-field {
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  padding: 8px 12px 6px !important;
  height: 50px !important;
  min-height: 50px !important;
  max-height: 50px !important;
  overflow: hidden !important;
  background: #ffffff !important;
}

#tbl-route-calculator .tbl-search-panel .tbl-search-field .wpcf7-form-control-wrap {
  display: block !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  overflow: hidden !important;
  background: transparent !important;
}

#tbl-route-calculator .tbl-search-panel .tbl-search-field input,
#tbl-route-calculator .tbl-search-panel .tbl-search-field select {
  height: 22px !important;
  min-height: 22px !important;
  max-height: 22px !important;
  line-height: 22px !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

/* Keep the top labels compact inside the field. */
#tbl-route-calculator .tbl-search-panel .tbl-search-label {
  display: block !important;
  line-height: 1 !important;
  margin: 0 0 2px !important;
}

/* Return date is hidden by default but force-visible when JS toggles Yes. */
#tbl-route-calculator #tbl-return-date-top[hidden]:not(.tbl-return-date-force-show) {
  display: none !important;
}

#tbl-route-calculator #tbl-return-date-top.tbl-return-date-force-show {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}


/* v2.5.62: homepage quick search without date field */
.tbl-quick-search .tbl-quick-date-field {
  display: none !important;
}

/* More balanced quick search layout after removing date. */
.tbl-quick-search .tbl-quick-grid {
  grid-template-columns: minmax(220px, 1.2fr) minmax(220px, 1.2fr) minmax(96px, .45fr) auto !important;
}

@media (max-width: 760px) {
  .tbl-quick-search .tbl-quick-grid {
    grid-template-columns: 1fr !important;
  }
}

/* Return date top field: align label/value like pickup date. */
#tbl-route-calculator #tbl-return-date-top.tbl-search-return-date {
  align-self: start !important;
}

#tbl-route-calculator #tbl-return-date-top.tbl-search-return-date .tbl-search-label {
  top: 9px !important;
  line-height: 1 !important;
}

#tbl-route-calculator #tbl-return-date-top.tbl-search-return-date input,
#tbl-route-calculator #tbl-return-date-top.tbl-search-return-date input.tbl-cf7-datetimepicker,
#tbl-route-calculator #tbl-return-date-top.tbl-search-return-date .wpcf7-form-control-wrap {
  height: 50px !important;
  min-height: 50px !important;
  max-height: 50px !important;
}

#tbl-route-calculator #tbl-return-date-top.tbl-search-return-date input,
#tbl-route-calculator #tbl-return-date-top.tbl-search-return-date input.tbl-cf7-datetimepicker {
  padding-top: 20px !important;
  padding-bottom: 5px !important;
  line-height: 20px !important;
}


/* v2.5.63: iPhone/mobile datetime picker improvements */

/* Prevent iOS zoom/keyboard-related visual jumps as much as possible. */
#tbl-route-calculator input.tbl-cf7-datetimepicker[readonly],
#tbl-route-calculator input.tbl-cf7-datetime-24h[readonly],
.tbl-quick-search input.tbl-quick-date[readonly] {
  cursor: pointer !important;
  user-select: none !important;
  -webkit-user-select: none !important;
  caret-color: transparent !important;
}

/* Mobile picker behaves like a centered modal, not an absolute dropdown near the field. */
@media (max-width: 760px) {
  .xdsoft_datetimepicker,
  .xdsoft_datetimepicker.tbl-mobile-datetime-modal {
    position: fixed !important;
    left: 50% !important;
    top: 50% !important;
    right: auto !important;
    bottom: auto !important;
    transform: translate(-50%, -50%) !important;
    width: min(92vw, 390px) !important;
    max-width: 92vw !important;
    max-height: 78vh !important;
    overflow-y: auto !important;
    z-index: 999999 !important;
    border-radius: 18px !important;
    box-sizing: border-box !important;
  }

  body.tbl-datetime-open::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 999998;
    background: rgba(0,0,0,.24);
    pointer-events: none;
  }

  /* Keep the date and time sections readable on iPhone. */
  .xdsoft_datetimepicker .xdsoft_datepicker {
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
  }

  .xdsoft_datetimepicker .xdsoft_timepicker {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    float: none !important;
    margin: 10px 0 0 !important;
    padding: 10px 0 0 !important;
    border-left: 0 !important;
    border-top: 1px solid rgba(21,21,21,.08) !important;
  }

  .xdsoft_datetimepicker .xdsoft_time_box,
  .xdsoft_datetimepicker .xdsoft_time_variant {
    width: 100% !important;
    min-width: 0 !important;
  }

  .xdsoft_datetimepicker .xdsoft_time {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    text-align: center !important;
  }
}


/* v2.5.64: mobile clear buttons for From/To address fields */
.tbl-mobile-address-clear {
  display: none;
}

@media (max-width: 760px) {
  #tbl-route-calculator .tbl-search-field.tbl-has-mobile-clear,
  .tbl-quick-search .tbl-quick-field.tbl-has-mobile-clear {
    position: relative !important;
  }

  #tbl-route-calculator .tbl-search-field.tbl-has-mobile-clear input,
  .tbl-quick-search .tbl-quick-field.tbl-has-mobile-clear input {
    padding-right: 38px !important;
  }

  .tbl-mobile-address-clear {
    display: none;
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 25;
    width: 22px;
    height: 22px;
    border: 0;
    border-radius: 999px;
    background: rgba(21,21,21,.12);
    color: rgba(21,21,21,.72);
    font-size: 18px;
    line-height: 20px;
    font-weight: 700;
    text-align: center;
    padding: 0;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }

  .tbl-mobile-address-clear.is-visible {
    display: block;
  }

  .tbl-mobile-address-clear:active {
    background: rgba(21,21,21,.22);
    color: #151515;
  }

  /* Keep it aligned under the floating labels in the top booking search panel. */
  #tbl-route-calculator .tbl-search-panel .tbl-mobile-address-clear {
    top: 50%;
  }
}


/* v2.5.65: mobile date open stability, visible validation, no horizontal scroll */

/* Keep validation errors visible instead of being clipped by compact fields. */
#tbl-route-calculator,
#tbl-route-calculator .tbl-search-panel,
#tbl-route-calculator .tbl-search-grid,
#tbl-route-calculator .tbl-search-field {
  overflow: visible !important;
}

#tbl-route-calculator .tbl-search-field {
  position: relative !important;
}

/* CF7 validation text: readable and placed under the field. */
#tbl-route-calculator .wpcf7-not-valid-tip,
#tbl-route-calculator .wpcf7-form-control-wrap .wpcf7-not-valid-tip {
  display: block !important;
  position: absolute !important;
  left: 0 !important;
  top: calc(100% + 5px) !important;
  z-index: 60 !important;
  width: max-content !important;
  max-width: min(280px, 82vw) !important;
  padding: 4px 6px !important;
  border-radius: 7px !important;
  background: rgba(255,255,255,.96) !important;
  color: #d93025 !important;
  font-size: 12px !important;
  line-height: 1.25 !important;
  font-weight: 700 !important;
  box-shadow: 0 4px 14px rgba(0,0,0,.08) !important;
  white-space: normal !important;
}

/* Keep the input/card itself compact; only errors can overflow outside it. */
#tbl-route-calculator .tbl-search-panel .tbl-search-field .wpcf7-form-control-wrap {
  overflow: visible !important;
}

/* Mobile date picker: avoid accidental native text caret/keyboard behaviors. */
@media (max-width: 760px) {
  #tbl-route-calculator input.tbl-cf7-datetimepicker,
  #tbl-route-calculator input.tbl-cf7-datetime-24h {
    caret-color: transparent !important;
    -webkit-touch-callout: none !important;
  }
}

/* Horizontal scroll safety.
   This is intentionally global because the reported issue is page-wide on mobile. */
html,
body {
  max-width: 100% !important;
  overflow-x: hidden !important;
}

body {
  position: relative;
}

#page,
.site,
.site-content,
.entry-content,
.wp-site-blocks,
.elementor,
.elementor-section,
.elementor-container,
.elementor-widget-wrap,
#tbl-route-calculator,
.tbl-transfer-calculator,
.tbl-quick-search {
  max-width: 100% !important;
  box-sizing: border-box !important;
}

/* Google autocomplete dropdown can otherwise create horizontal overflow on iPhone. */
.pac-container {
  max-width: calc(100vw - 20px) !important;
  box-sizing: border-box !important;
  overflow-x: hidden !important;
}


/* v2.5.66: stronger mobile validation visibility + iPhone horizontal movement fix */

/* iPhone often allows horizontal panning when focused inputs are smaller than 16px or wider than viewport. */
@media (max-width: 760px) {
  html,
  body {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: clip !important;
    overscroll-behavior-x: none !important;
    touch-action: pan-y !important;
  }

  @supports not (overflow-x: clip) {
    html,
    body {
      overflow-x: hidden !important;
    }
  }

  body {
    min-width: 0 !important;
  }

  /* Prevent iOS input zoom/pan on focus. */
  input,
  select,
  textarea,
  button,
  #tbl-route-calculator input,
  #tbl-route-calculator select,
  #tbl-route-calculator textarea,
  .tbl-quick-search input,
  .tbl-quick-search select {
    font-size: 16px !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Hard viewport width lock for common page wrappers. */
  #page,
  .site,
  .site-content,
  .entry-content,
  .wp-site-blocks,
  .elementor,
  .elementor-section,
  .elementor-container,
  .elementor-widget,
  .elementor-widget-container,
  .elementor-widget-wrap,
  .e-con,
  .e-con-inner,
  .wp-block-group,
  .wp-block-cover,
  .tbl-transfer-calculator,
  #tbl-route-calculator,
  .tbl-booking-shell,
  .tbl-main-grid,
  .tbl-left-column,
  .tbl-right-column,
  .tbl-contact-card,
  .tbl-search-panel,
  .tbl-search-grid,
  .tbl-quick-search {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }

  /* Any embedded map/iframe/image must not create side overflow. */
  iframe,
  img,
  canvas,
  svg,
  .gm-style,
  #tbl-map,
  .tbl-map,
  .tbl-map-wrap {
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Google Places dropdown is appended to body and can cause side-scroll on iPhone. */
  .pac-container {
    left: 8px !important;
    right: 8px !important;
    width: calc(100vw - 16px) !important;
    max-width: calc(100vw - 16px) !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
  }
}

/* Validation messages: make them visible for ALL calculator fields, not only the compact top row. */
#tbl-route-calculator .wpcf7-form-control-wrap {
  overflow: visible !important;
}

#tbl-route-calculator .wpcf7-not-valid-tip {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  color: #d93025 !important;
  background: transparent !important;
  font-size: 13px !important;
  line-height: 1.25 !important;
  font-weight: 700 !important;
  margin-top: 6px !important;
  padding: 0 !important;
  white-space: normal !important;
  max-width: 100% !important;
  width: auto !important;
  position: static !important;
  z-index: 80 !important;
  box-shadow: none !important;
}

/* Top compact row cannot grow too much, so show its errors as a small bubble below the card. */
#tbl-route-calculator .tbl-search-panel .tbl-search-field .wpcf7-not-valid-tip {
  position: absolute !important;
  left: 0 !important;
  top: calc(100% + 5px) !important;
  width: max-content !important;
  max-width: min(280px, 82vw) !important;
  padding: 4px 7px !important;
  border-radius: 8px !important;
  background: rgba(255,255,255,.98) !important;
  box-shadow: 0 5px 16px rgba(0,0,0,.10) !important;
}

/* Contact card errors should be inside the normal flow, so they are visible below name/phone/email. */
#tbl-route-calculator .tbl-contact-card .wpcf7-not-valid-tip,
#tbl-route-calculator .tbl-contact-details .wpcf7-not-valid-tip,
#tbl-route-calculator .tbl-contact-section .wpcf7-not-valid-tip {
  position: static !important;
  display: block !important;
  margin: 6px 0 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  padding: 0 !important;
}

/* Make sure cards do not clip these errors. */
#tbl-route-calculator .tbl-contact-card,
#tbl-route-calculator .tbl-contact-details,
#tbl-route-calculator .tbl-contact-section,
#tbl-route-calculator .tbl-card,
#tbl-route-calculator .tbl-left-column,
#tbl-route-calculator .tbl-main-grid {
  overflow: visible !important;
}

/* CF7 response box at the bottom must be readable on mobile. */
#tbl-route-calculator .wpcf7-response-output {
  display: block !important;
  visibility: visible !important;
  margin: 14px 0 0 !important;
  padding: 10px 12px !important;
  border-radius: 10px !important;
  font-size: 14px !important;
  line-height: 1.35 !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  color: #151515 !important;
  background: #fff8e8 !important;
  border: 1px solid rgba(217,48,37,.35) !important;
}

/* Keep focused input inside viewport on iOS. */
@media (max-width: 760px) {
  #tbl-route-calculator input:focus,
  #tbl-route-calculator select:focus,
  .tbl-quick-search input:focus,
  .tbl-quick-search select:focus {
    scroll-margin-left: 0 !important;
    scroll-margin-right: 0 !important;
  }
}


/* v2.5.67: mobile datetime modal width and error cleanup behavior */

/* Mobile calendar should not touch the right edge on iPhone. */
@media (max-width: 760px) {
  .xdsoft_datetimepicker,
  .xdsoft_datetimepicker.tbl-mobile-datetime-modal {
    width: min(95vw, 370px) !important;
    max-width: 95vw !important;
    left: 50% !important;
    right: auto !important;
    box-sizing: border-box !important;
  }

  .xdsoft_datetimepicker .xdsoft_datepicker,
  .xdsoft_datetimepicker .xdsoft_calendar,
  .xdsoft_datetimepicker .xdsoft_calendar table,
  .xdsoft_datetimepicker .xdsoft_timepicker {
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Make contact errors readable without covering several fields. */
  #tbl-route-calculator .tbl-contact-card .wpcf7-not-valid-tip,
  #tbl-route-calculator .tbl-contact-details .wpcf7-not-valid-tip,
  #tbl-route-calculator .tbl-contact-section .wpcf7-not-valid-tip {
    margin: 4px 0 8px !important;
    font-size: 12px !important;
    line-height: 1.2 !important;
    color: #d93025 !important;
    font-weight: 700 !important;
    background: transparent !important;
    position: static !important;
  }
}

/* When JS removes error tips, avoid old red outline persisting too aggressively. */
#tbl-route-calculator input[aria-invalid="false"],
#tbl-route-calculator select[aria-invalid="false"],
#tbl-route-calculator textarea[aria-invalid="false"] {
  box-shadow: none;
}


/* v2.5.68: remove stray orange day highlight in mobile date picker.
   xdan datetimepicker theme can mark today/default/active/hover days with orange.
   We keep only:
   - selected date = black
   - today but not selected = white with black ring
   - hover = light grey
*/

/* Reset any theme orange on non-selected days. */
.xdsoft_datetimepicker .xdsoft_calendar td:not(.xdsoft_current),
.xdsoft_datetimepicker .xdsoft_calendar td:not(.xdsoft_current) > div,
.xdsoft_datetimepicker .xdsoft_calendar td.xdsoft_today:not(.xdsoft_current),
.xdsoft_datetimepicker .xdsoft_calendar td.xdsoft_today:not(.xdsoft_current) > div,
.xdsoft_datetimepicker .xdsoft_calendar td.xdsoft_default:not(.xdsoft_current),
.xdsoft_datetimepicker .xdsoft_calendar td.xdsoft_default:not(.xdsoft_current) > div,
.xdsoft_datetimepicker .xdsoft_calendar td.xdsoft_active:not(.xdsoft_current),
.xdsoft_datetimepicker .xdsoft_calendar td.xdsoft_active:not(.xdsoft_current) > div {
  background: transparent !important;
  background-color: transparent !important;
  color: #151515 !important;
  -webkit-text-fill-color: #151515 !important;
  text-shadow: none !important;
}

/* Today but not selected: only a simple black ring, no orange fill. */
.xdsoft_datetimepicker .xdsoft_calendar td.xdsoft_today:not(.xdsoft_current) > div {
  background: #ffffff !important;
  background-color: #ffffff !important;
  color: #151515 !important;
  -webkit-text-fill-color: #151515 !important;
  box-shadow: inset 0 0 0 2px #151515 !important;
}

/* Hover/tap state: light grey only, never orange. */
.xdsoft_datetimepicker .xdsoft_calendar td:not(.xdsoft_current):hover,
.xdsoft_datetimepicker .xdsoft_calendar td:not(.xdsoft_current):hover > div,
.xdsoft_datetimepicker .xdsoft_calendar td.xdsoft_today:not(.xdsoft_current):hover > div,
.xdsoft_datetimepicker .xdsoft_calendar td.xdsoft_default:not(.xdsoft_current):hover > div {
  background: #f4f4f4 !important;
  background-color: #f4f4f4 !important;
  color: #151515 !important;
  -webkit-text-fill-color: #151515 !important;
}

/* Selected day remains black with white text. */
.xdsoft_datetimepicker .xdsoft_calendar td.xdsoft_current > div,
.xdsoft_datetimepicker .xdsoft_calendar td.xdsoft_current:hover > div,
.xdsoft_datetimepicker .xdsoft_calendar td.xdsoft_current.xdsoft_today > div,
.xdsoft_datetimepicker .xdsoft_calendar td.xdsoft_current.xdsoft_today:hover > div,
.xdsoft_datetimepicker .xdsoft_calendar td.xdsoft_current.xdsoft_default > div,
.xdsoft_datetimepicker .xdsoft_calendar td.xdsoft_current.xdsoft_default:hover > div {
  background: #151515 !important;
  background-color: #151515 !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  box-shadow: none !important;
  text-shadow: none !important;
}

/* Selected time remains black with white text. */
.xdsoft_datetimepicker .xdsoft_time.xdsoft_current,
.xdsoft_datetimepicker .xdsoft_time.xdsoft_current:hover {
  background: #151515 !important;
  background-color: #151515 !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  text-shadow: none !important;
}
