/* Vehicle single page header visibility fix */
body.single-mpcrbm_rent .elementor-location-header {
  display: block !important;
  position: relative;
  z-index: 9999;
}

body.single-mpcrbm_rent .elementor-location-header .elementor-section.elementor-top-section {
  background-color: #111827 !important;
  background-image: none !important;
}

body.single-mpcrbm_rent .elementor-location-header .elementor-nav-menu--main .elementor-item,
body.single-mpcrbm_rent .elementor-location-header .elementor-nav-menu--dropdown a,
body.single-mpcrbm_rent .elementor-location-header .elementor-icon-list-text,
body.single-mpcrbm_rent .elementor-location-header .elementor-social-icon i,
body.single-mpcrbm_rent .elementor-location-header .elementor-social-icon svg {
  color: #ffffff !important;
  fill: #ffffff !important;
}

body.single-mpcrbm_rent .mpcrbm_default_theme {
  padding-top: 16px;
}

/* Mpcrbm */
body.single-mpcrbm_rent .mpcrbm {
  margin-top: 28px !important;
  transform: translateX(0) translateY(0);
}

/* Vehicle title */
body.single-mpcrbm_rent .mpcrbm_car_details_wrapper > h1 {
  background-color: transparent;
  color: #814545;
  font-weight: 700;
  margin: 0 0 10px;
  text-wrap: balance;
}

body.single-mpcrbm_rent .mpcrbm_car_details_container {
  margin-top: 10px;
}

body.single-mpcrbm_rent .mpcrbm_car_details_location_fixed {
  margin-top: 14px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.09);
  padding: 10px;
  border-radius: 12px;
  background: #fff;
}

/* Single vehicle search form: keep only pickup/drop-off dates */
body.single-mpcrbm_rent .mpcrbm_search_holder .mpForm .mpcrbm_horizontal_search_form.bmt-simple-date-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

body.single-mpcrbm_rent .mpcrbm_search_holder .mpForm .mpcrbm_horizontal_search_form.bmt-simple-date-layout .bmt-location-row,
body.single-mpcrbm_rent .mpcrbm_search_holder .mpForm .mpcrbm_horizontal_search_form.bmt-simple-date-layout .bmt-return-label,
body.single-mpcrbm_rent .mpcrbm_search_holder .mpForm .mpcrbm_horizontal_search_form.bmt-simple-date-layout .bmt-time-divider,
body.single-mpcrbm_rent .mpcrbm_search_holder .mpForm .mpcrbm_horizontal_search_form.bmt-simple-date-layout .bmt-time-select,
body.single-mpcrbm_rent .mpcrbm_search_holder .mpForm .bmt-hide-checkbox-row {
  display: none !important;
}

body.single-mpcrbm_rent .mpcrbm_search_holder .mpForm .mpcrbm_horizontal_search_form.bmt-simple-date-layout .bmt-pickup-row,
body.single-mpcrbm_rent .mpcrbm_search_holder .mpForm .mpcrbm_horizontal_search_form.bmt-simple-date-layout .bmt-dropoff-row {
  width: 100%;
}

body.single-mpcrbm_rent .mpcrbm_search_holder .mpForm .bmt-simple-date-input {
  width: 100%;
  height: 46px;
  border-radius: 10px;
}

body.single-mpcrbm_rent .mpcrbm_search_holder .mpForm #mpcrbm_car_summary {
  margin-top: 12px;
}

body.single-mpcrbm_rent .bmt-return-date-locked {
  background: #f3f4f6 !important;
  cursor: not-allowed !important;
}

body.single-mpcrbm_rent .bmt-weekly-billing-note {
  margin: 10px 0 0;
  font-size: 12px;
  color: #4b5563;
}

/* Keep booking panel visible while scrolling on desktop. */
@media (min-width: 992px) {
  body.single-mpcrbm_rent .mpcrbm_car_details_container {
    align-items: flex-start;
  }

  body.single-mpcrbm_rent .mpcrbm_car_details_right {
    position: sticky;
    top: 24px;
    align-self: flex-start;
    z-index: 2;
    margin-top: 0;
  }

  body.admin-bar.single-mpcrbm_rent .mpcrbm_car_details_right {
    top: 56px;
  }
}

@media (min-width: 768px) {
  body.single-mpcrbm_rent .mpcrbm_search_holder .mpForm .mpcrbm_horizontal_search_form.bmt-simple-date-layout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 14px;
  }
}

@media (min-width: 1025px) {
  body.single-mpcrbm_rent .mpcrbm_car_details_wrapper > h1 {
    font-size: 45px;
    text-align: right;
  }
}

@media (max-width: 1024px) {
  body.single-mpcrbm_rent .mpcrbm {
    padding-top: 0 !important;
  }

  body.single-mpcrbm_rent .mpcrbm_car_details_container {
    flex-direction: column;
  }

  body.single-mpcrbm_rent .mpcrbm_car_details_left,
  body.single-mpcrbm_rent .mpcrbm_car_details_right {
    flex: 1 1 100%;
  }

  body.single-mpcrbm_rent .mpcrbm_car_details_wrapper > h1 {
    font-size: clamp(28px, 7vw, 38px);
    text-align: left;
  }

  body.single-mpcrbm_rent .mpcrbm_car_details_right {
    order: 2;
    margin-top: 0;
    padding-top: 10px;
  }

  body.single-mpcrbm_rent .mpcrbm_car_details_left {
    order: 1;
  }

  body.single-mpcrbm_rent .mpcrbm_car_details.bmt-mobile-tabs-block {
    order: 3;
    flex: 1 1 100%;
    width: 100%;
  }

  body.single-mpcrbm_rent .mpcrbm_car_details_right .mpcrbm_car_details_price_box .mpcrbm_transport_search_area {
    margin-top: 0 !important;
  }

  body.single-mpcrbm_rent #mpcrbm_car_summary {
    margin-top: 0;
    margin-bottom: 20px;
  }
}

@media (max-width: 767px) {
  body.single-mpcrbm_rent .mpcrbm_car_details_gallery {
    justify-content: flex-start;
    gap: 6px;
    margin-top: 10px;
  }

  body.single-mpcrbm_rent .mpcrbm_car_details_gallery .mpcrbm_gallery_image {
    width: 30px !important;
    height: 30px !important;
    border-radius: 999px;
    border: 1px solid #d8dee7;
    object-fit: cover;
  }

  body.single-mpcrbm_rent .mpcrbm_car_details_gallery .mpcrbm_car_details_view_more {
    display: none !important;
  }
}

body.single-mpcrbm_rent .mpcrbm_car_details_driver_box ul {
  margin: 8px 0 10px 20px;
  padding: 0;
}

body.single-mpcrbm_rent .mpcrbm_car_details_driver_box li {
  margin: 4px 0;
}

/* Vehicle image slider controls */
body.single-mpcrbm_rent .mpcrbm_car_details_feature_image {
  position: relative;
  overflow: hidden;
}

body.single-mpcrbm_rent .mpcrbm_car_details_feature_image img {
  user-select: none;
  -webkit-user-drag: none;
  cursor: grab;
}

body.single-mpcrbm_rent .mpcrbm_car_details_feature_image.bmt-dragging img {
  cursor: grabbing;
}

body.single-mpcrbm_rent .bmt-gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  background: rgba(16, 24, 40, 0.6);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
  transition: background 0.2s ease, transform 0.2s ease;
}

body.single-mpcrbm_rent .bmt-gallery-arrow span {
  font-size: 32px;
  line-height: 1;
  margin-top: -2px;
}

body.single-mpcrbm_rent .bmt-gallery-arrow:hover {
  background: rgba(16, 24, 40, 0.9);
  transform: translateY(-50%) scale(1.05);
}

body.single-mpcrbm_rent .bmt-gallery-arrow--prev {
  left: 12px;
}

body.single-mpcrbm_rent .bmt-gallery-arrow--next {
  right: 12px;
}

/* Custom gallery arrow colors */
body.single-mpcrbm_rent .mpcrbm_car_details_images .mpcrbm_car_details_feature_image .bmt-gallery-arrow--next {
  background-color: rgba(48, 13, 14, 0.6);
}

body.single-mpcrbm_rent .mpcrbm_car_details_feature_image .bmt-gallery-arrow--next span {
  color: #ff0505;
}

body.single-mpcrbm_rent .mpcrbm_car_details_images .mpcrbm_car_details_feature_image .bmt-gallery-arrow--prev {
  background-color: rgba(71, 24, 15, 0.6);
}

body.single-mpcrbm_rent .mpcrbm_car_details_feature_image .bmt-gallery-arrow--prev span {
  color: #d30707;
}

body.single-mpcrbm_rent .bmt-gallery-counter {
  position: absolute;
  right: 12px;
  bottom: 12px;
  background: rgba(16, 24, 40, 0.62);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 999px;
  z-index: 5;
}

body.single-mpcrbm_rent .mpcrbm_gallery_image.active {
  border: 2px solid #f12971 !important;
}

/* Popup control polish */
body.single-mpcrbm_rent .mpcrbm_gallery_image_popup_prev,
body.single-mpcrbm_rent .mpcrbm_gallery_image_popup_next {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  color: #111827;
  font-size: 26px;
  padding: 0;
  border: 0;
}

body.single-mpcrbm_rent .mpcrbm_gallery_image_popup_prev:hover,
body.single-mpcrbm_rent .mpcrbm_gallery_image_popup_next:hover {
  background: #ffffff;
}

@media (max-width: 767px) {
  body.single-mpcrbm_rent .bmt-gallery-arrow {
    width: 36px;
    height: 36px;
  }

  body.single-mpcrbm_rent .bmt-gallery-arrow span {
    font-size: 27px;
  }

  body.single-mpcrbm_rent .bmt-gallery-arrow--prev {
    left: 8px;
  }

  body.single-mpcrbm_rent .bmt-gallery-arrow--next {
    right: 8px;
  }

  body.single-mpcrbm_rent .bmt-gallery-counter {
    right: 8px;
    bottom: 8px;
    font-size: 11px;
    padding: 4px 8px;
  }
}
