/**
 * Mart-io — fiche chambre (produit Qlo).
 * Layout = 100 % product.css natif (comme UAT / QloApps).
 * Ne pas réutiliser martio-category-rooms.css sur cette page.
 */

/* Pleine largeur : page produit sans sidebar gauche */
@media (min-width: 768px) {
  body.qmp-martio-ui.product #columns > .row {
    display: block;
  }

  body.qmp-martio-ui.product #center_column {
    flex: none !important;
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
  }
}

body.qmp-martio-ui.product .columns-container {
  background-color: #fafafa;
}

body.qmp-martio-ui.product #center_column {
  overflow: visible;
}

/* Grille native primary_block : détails 8 / réservation 4 */
body.qmp-martio-ui.product .primary_block {
  margin-bottom: 40px;
}

body.qmp-martio-ui.product .primary_block::before,
body.qmp-martio-ui.product .primary_block::after {
  content: " ";
  display: table;
}

body.qmp-martio-ui.product .primary_block::after {
  clear: both;
}

@media (min-width: 768px) {
  body.qmp-martio-ui.product .primary_block > .pb-left-column {
    float: left;
    width: 66.66666667%;
  }

  body.qmp-martio-ui.product .primary_block > .pb-right-column {
    float: left;
    width: 33.33333333%;
  }
}

/* Détails chambre (onglets + sections) */
body.qmp-martio-ui.product .product_info_containter,
body.qmp-martio-ui.product .page-product-box,
body.qmp-martio-ui.product .room_type_img_containter {
  width: 100%;
  max-width: 100%;
}

body.qmp-martio-ui.product .product_description_tabs_contents .card,
body.qmp-martio-ui.product .room_type_img_containter.card {
  margin-bottom: 20px;
}

body.qmp-martio-ui.product .info_margin_div {
  margin-bottom: 25px;
}

body.qmp-martio-ui.product .room_info_heading {
  margin-bottom: 5px;
  font-weight: 700;
  opacity: 0.5;
  font-size: 12px;
  text-transform: uppercase;
}

body.qmp-martio-ui.product .room_info_content {
  font-size: 16px;
  line-height: 25px;
}

body.qmp-martio-ui.product .room_description p {
  font-size: 16px;
  line-height: 25px;
  color: #404040;
}

/* Bandeau « Résultats de la recherche » (wk-roomtype-search) */
body.qmp-martio-ui.product .header-rmsearch-details-wrapper {
  padding: 30px 0 0;
  background-color: #fafafa;
  border-bottom: none;
}

body.qmp-martio-ui.product .header-rmsearch-details-wrapper .search_result_info {
  font-size: 15px;
  font-weight: 700;
  line-height: 30px;
  color: #333;
}

/* Formulaire réservation : styles Qlo natifs (écrase martio-shell .form-control) */
body.qmp-martio-ui.product .product_wrapper .form-control,
body.qmp-martio-ui.product .booking-form .form-control {
  border-radius: 4px !important;
  border: 1px solid #999 !important;
  box-shadow: 0 1px 0 0 rgba(0, 0, 0, 0.13) !important;
  height: 48px;
  min-height: 48px;
  background-color: transparent !important;
  font-size: 16px;
  font-family: inherit;
}

body.qmp-martio-ui.product .booking-form.card {
  display: block;
  width: 100%;
  box-sizing: border-box;
}

body.qmp-martio-ui.product .booking_room_fields {
  width: 100%;
}

body.qmp-martio-ui.product .booking_room_fields #room_date_range {
  display: grid;
  cursor: text;
  min-height: 48px;
}

body.qmp-martio-ui.product .booking_room_fields #room_date_range span {
  align-self: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

body.qmp-martio-ui.product .booking_room_fields .form-group {
  margin-bottom: 20px;
}

body.qmp-martio-ui.product .booking_room_fields .htl_location_block label {
  opacity: 0.5;
  margin-bottom: 10px;
  text-transform: uppercase;
  font-size: 16px;
}

body.qmp-martio-ui.product .content_prices {
  background-color: #404040;
}

body.qmp-martio-ui.product .total_price_block p {
  font-size: 24px;
  color: #000;
  line-height: 1.2;
  font-weight: 600;
}

body.qmp-martio-ui.product .room_type_old_price {
  display: block;
  text-decoration: line-through;
  color: #ff4b4b;
  font-size: 14px;
}

/* ——— Boutons Apple-like (fiche chambre) ——— */

body.qmp-martio-ui.product #add_to_cart .book_now_submit {
  width: 100%;
  background-color: #007aff !important;
  border: 1px solid #007aff !important;
  border-radius: 10px !important;
  color: #fff !important;
  font-weight: 600;
  font-size: 15px;
  text-transform: none;
  padding: 14px 20px;
  box-shadow: none;
  text-shadow: none;
  background-image: none !important;
  filter: none !important;
}

body.qmp-martio-ui.product #add_to_cart .book_now_submit:hover,
body.qmp-martio-ui.product #add_to_cart .book_now_submit:focus {
  background-color: #0066d6 !important;
  border-color: #0066d6 !important;
  color: #fff !important;
}

body.qmp-martio-ui.product .booking_occupancy_wrapper {
  border-radius: 16px;
  border: 1px solid #d2d2d7;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.14);
  padding: 16px 18px;
  z-index: 1000;
}

body.qmp-martio-ui.product .booking_occupancy_wrapper .submit_occupancy_btn,
body.qmp-martio-ui.product .booking_occupancy_wrapper .btn-primary {
  background: #007aff !important;
  border-color: #007aff !important;
  border-radius: 10px !important;
  font-weight: 600;
  font-size: 15px;
  padding: 10px 20px;
  box-shadow: none;
}

body.qmp-martio-ui.product .booking_occupancy_wrapper .submit_occupancy_btn:hover,
body.qmp-martio-ui.product .booking_occupancy_wrapper .btn-primary:hover {
  background: #0066d6 !important;
  border-color: #0066d6 !important;
}

body.qmp-martio-ui.product .booking_occupancy_wrapper .add_new_occupancy_btn {
  color: #007aff !important;
  font-weight: 600;
  text-decoration: none;
}

body.qmp-martio-ui.product #search_room_submit,
body.qmp-martio-ui.product .header-rmsearch-details-wrapper .submit_occupancy_btn,
body.qmp-martio-ui.product #search_occupancy_wrapper .submit_occupancy_btn {
  background-color: #007aff !important;
  border: none !important;
  border-radius: 10px !important;
  font-weight: 600;
  font-size: 15px;
  min-height: 48px;
  box-shadow: none;
}

body.qmp-martio-ui.product #search_room_submit:hover,
body.qmp-martio-ui.product .header-rmsearch-details-wrapper .submit_occupancy_btn:hover,
body.qmp-martio-ui.product #search_occupancy_wrapper .submit_occupancy_btn:hover {
  background-color: #0066d6 !important;
}

body.qmp-martio-ui.product .modify_roomtype_search_btn {
  border-radius: 10px !important;
  border: 1px solid #d2d2d7 !important;
  background: #fff !important;
  font-weight: 600;
  color: #1d1d1f !important;
}

body.qmp-martio-ui.product .btn-service-product.btn-success {
  background-color: #007aff !important;
  border: 1px solid #007aff !important;
  border-radius: 10px !important;
  font-weight: 600;
  font-size: 16px;
  text-transform: none;
  padding: 12px 24px;
  box-shadow: none;
}

body.qmp-martio-ui.product .btn-service-product.btn-success:hover,
body.qmp-martio-ui.product .btn-service-product.btn-success:focus {
  background-color: #0066d6 !important;
  border-color: #0066d6 !important;
  color: #fff !important;
}

body.qmp-martio-ui.product .btn-service-product.btn-danger {
  border-radius: 10px !important;
  font-weight: 600;
  text-transform: none;
  padding: 12px 24px;
}

body.qmp-martio-ui.product #service_products_cont .get-service-products {
  border-radius: 10px !important;
  border: 1px solid #d2d2d7 !important;
  background: #f5f5f7 !important;
  color: #1d1d1f !important;
  font-weight: 600;
  padding: 10px 20px;
}

body.qmp-martio-ui.product .occupancy_quantity_up,
body.qmp-martio-ui.product .occupancy_quantity_down,
body.qmp-martio-ui.product .room_service_product_qty_up,
body.qmp-martio-ui.product .room_service_product_qty_down {
  border-radius: 8px !important;
}

body.qmp-martio-ui.product .num_quantity_alert {
  font-size: 16px;
  color: #ff4b4b;
  font-weight: 700;
  text-align: right;
}

@media (max-width: 767px) {
  body.qmp-martio-ui.product .primary_block > .pb-left-column,
  body.qmp-martio-ui.product .primary_block > .pb-right-column {
    float: none;
    width: 100%;
  }

  body.qmp-martio-ui.product .total_price_block p {
    font-size: 20px;
  }

  body.qmp-martio-ui.product .room_type_old_price {
    font-size: 13px;
  }
}

/* ——— Carousel grande image (flèches + compteur) ——— */
body.qmp-martio-ui.product #image-block.qmp-image-carousel {
  position: relative;
}

body.qmp-martio-ui.product #image-block.qmp-image-carousel #view_full_size,
body.qmp-martio-ui.product #image-block.qmp-image-carousel #view_full_size img,
body.qmp-martio-ui.product #image-block.qmp-image-carousel .jqzoom,
body.qmp-martio-ui.product #image-block.qmp-image-carousel .jqzoom img {
  width: 100%;
  max-width: 100%;
  display: block;
}

body.qmp-martio-ui.product .qmp-carousel-btn {
  position: absolute;
  top: 50%;
  z-index: 5;
  width: 44px;
  height: 44px;
  margin-top: -22px;
  border: 0;
  border-radius: 50%;
  background: rgba(29, 29, 31, 0.72);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  -webkit-tap-highlight-color: transparent;
}

body.qmp-martio-ui.product .qmp-carousel-btn:before {
  content: "";
  display: block;
  width: 10px;
  height: 10px;
  margin: 0 auto;
  border-top: 2px solid #fff;
  border-right: 2px solid #fff;
}

body.qmp-martio-ui.product .qmp-carousel-prev {
  left: 10px;
}

body.qmp-martio-ui.product .qmp-carousel-prev:before {
  transform: rotate(-135deg);
  margin-left: 16px;
}

body.qmp-martio-ui.product .qmp-carousel-next {
  right: 10px;
}

body.qmp-martio-ui.product .qmp-carousel-next:before {
  transform: rotate(45deg);
  margin-left: 14px;
}

body.qmp-martio-ui.product .qmp-carousel-btn.is-disabled {
  opacity: 0.35;
  pointer-events: none;
}

body.qmp-martio-ui.product .qmp-carousel-counter {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 5;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(29, 29, 31, 0.72);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1;
}

body.qmp-martio-ui.product .qmp-carousel-hint {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 5;
  max-width: calc(100% - 110px);
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(29, 29, 31, 0.55);
  color: #fff;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.2;
  pointer-events: none;
}

body.qmp-martio-ui.product #image-block.qmp-image-carousel.is-single .qmp-carousel-btn,
body.qmp-martio-ui.product #image-block.qmp-image-carousel.is-single .qmp-carousel-counter,
body.qmp-martio-ui.product #image-block.qmp-image-carousel.is-single .qmp-carousel-hint {
  display: none !important;
}

/* Flèches miniatures : toujours lisibles (surtout mobile) */
body.qmp-martio-ui.product #views_block.qmp-thumbs-carousel {
  position: relative;
  padding: 0 28px;
}

body.qmp-martio-ui.product #views_block.qmp-thumbs-carousel #view_scroll_left,
body.qmp-martio-ui.product #views_block.qmp-thumbs-carousel #view_scroll_right {
  position: absolute !important;
  top: 50% !important;
  width: 28px !important;
  height: 28px !important;
  margin-top: -14px !important;
  border-radius: 50%;
  background: #1d1d1f !important;
  color: #fff !important;
  font-size: 0 !important;
  line-height: 28px !important;
  text-align: center;
  z-index: 6;
  opacity: 1 !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

body.qmp-martio-ui.product #views_block.qmp-thumbs-carousel #view_scroll_left {
  left: 0 !important;
  right: auto !important;
}

body.qmp-martio-ui.product #views_block.qmp-thumbs-carousel #view_scroll_right {
  right: 0 !important;
  left: auto !important;
  bottom: auto !important;
}

body.qmp-martio-ui.product #views_block.qmp-thumbs-carousel #view_scroll_left:before,
body.qmp-martio-ui.product #views_block.qmp-thumbs-carousel #view_scroll_right:before {
  color: #fff !important;
  font-size: 14px !important;
  line-height: 28px !important;
}

@media (max-width: 767px) {
  body.qmp-martio-ui.product .qmp-carousel-btn {
    width: 40px;
    height: 40px;
    margin-top: -20px;
  }

  body.qmp-martio-ui.product .qmp-carousel-hint {
    display: none;
  }

  body.qmp-martio-ui.product #views_block.qmp-thumbs-carousel {
    margin-top: 12px;
  }
}
