/**
 * Fiche produit réservable — modèle Elementor #453 (70 % contenu / 30 % réservation).
 */

body.ikn-product-booking-layout {
  padding-bottom: 32px;
  background: #f7faf6;
}

body.ikn-product-booking-layout .ikn-site-main.ikn-single-product {
  padding: 0;
  max-width: none;
}

body.ikn-product-booking-layout .ikn-product-booking,
body.ikn-product-booking-layout .ikn-product-booking div.product {
  float: none !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
}

.ikn-product-booking__shell {
  max-width: 1320px;
  margin: 0 auto;
  padding: 20px clamp(16px, 3vw, 32px) 48px;
  box-sizing: border-box;
}

/* Bannière héro : carrousel + titre / description / fournisseur */
.ikn-product-booking__hero {
  margin-bottom: clamp(24px, 3vw, 36px);
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  border: 1px solid #dce8da;
  box-shadow: 0 10px 36px rgba(73, 113, 75, 0.1);
}

.ikn-product-booking__hero-top {
  padding: 16px clamp(18px, 2.5vw, 28px) 0;
  background: linear-gradient(180deg, #f7faf6 0%, #fff 100%);
}

.ikn-product-booking__breadcrumb .woocommerce-breadcrumb {
  margin: 0;
  font-size: 0.88rem;
  color: #6c757d;
}

.ikn-product-booking__breadcrumb .woocommerce-breadcrumb a {
  color: #49714b;
  text-decoration: none;
}

.ikn-product-booking__breadcrumb .woocommerce-breadcrumb a:hover {
  text-decoration: underline;
}

.ikn-product-booking__hero-media .product-gallery-container {
  margin: 0;
  border: none;
  border-radius: 0;
  box-shadow: none;
}

.ikn-product-booking__hero-media .product-gallery-main {
  aspect-ratio: 21 / 9;
  max-height: 460px;
}

.ikn-product-booking__hero-media .product-gallery-main-image {
  object-fit: cover;
  object-position: center;
}

body.ikn-product-booking-layout .product-gallery-title {
  display: none;
}

.ikn-product-booking__hero-content {
  padding: clamp(20px, 2.5vw, 28px) clamp(20px, 3vw, 32px) clamp(22px, 2.5vw, 30px);
  background: linear-gradient(180deg, rgba(247, 250, 246, 0.95) 0%, #fff 100%);
  border-top: 1px solid #e8f0e6;
}

.ikn-product-booking__hero-title {
  color: #334d33;
  font-weight: 700;
  font-size: clamp(1.65rem, 2.8vw, 2.25rem);
  line-height: 1.15;
  margin: 0 0 12px;
}

.ikn-product-booking__hero-excerpt {
  max-width: 78ch;
  line-height: 1.75;
  font-size: 1.02rem;
  color: #4a4a4a;
  margin: 0;
}

.ikn-product-booking__hero-excerpt p {
  margin: 0;
}

.ikn-product-booking__hero-excerpt p + p {
  margin-top: 10px;
}

.ikn-product-booking__hero-vendor {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 12px;
  background: #f7faf6;
  border: 1px solid #dce8da;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  max-width: 420px;
}

.ikn-product-booking__hero-vendor:hover {
  border-color: #8ba981;
  box-shadow: 0 4px 16px rgba(73, 113, 75, 0.12);
}

.ikn-product-booking__hero-vendor-avatar {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.ikn-product-booking__hero-vendor-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ikn-product-booking__hero-vendor-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.ikn-product-booking__hero-vendor-label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #6c757d;
}

.ikn-product-booking__hero-vendor-name {
  font-size: 1rem;
  font-weight: 700;
  color: #334d33;
  line-height: 1.3;
}

.ikn-product-booking__hero-vendor-location {
  font-size: 0.88rem;
  color: #49714b;
}

/* Grille 2 colonnes : contenu | réservation */
.ikn-product-booking__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.85fr) minmax(300px, 1fr);
  grid-template-areas: "main aside";
  gap: clamp(22px, 3vw, 36px);
  align-items: start;
}

.ikn-product-booking__main {
  grid-area: main;
  min-width: 0;
}

.ikn-product-booking__aside {
  grid-area: aside;
  position: sticky;
  top: 92px;
}

.ikn-product-booking__box {
  border: 1px solid #8ba981;
  border-radius: 12px;
  padding: 20px 18px 22px;
  background: #fff;
  box-shadow: 0 8px 28px rgba(73, 113, 75, 0.1);
}

.ikn-product-booking__box-title {
  margin: 0 0 14px;
  text-align: center;
  color: #334d33;
  font-size: 1.3rem;
  font-weight: 700;
}

.ikn-product-booking__box-lead-price {
  text-align: center;
  margin: 0 0 14px;
  font-weight: 700;
  color: #334d33;
}

.ikn-product-booking__box-lead-price .woocommerce-Price-amount {
  color: #8ba981;
  font-size: 1.2rem;
}

.ikn-product-booking__main img:not(.section-icon-svg):not(.vendor-icon):not(.location-icon) {
  max-width: 100%;
  height: auto;
}

.ikn-product-booking__gallery {
  margin-bottom: 8px;
}

.ikn-product-booking__infos .product-infos-container {
  padding: 0;
}

/* Calendrier & formulaire booking */
.ikn-product-booking__box .cart,
.ikn-product-booking__box form.cart {
  margin: 0;
}

.ikn-product-booking__box #wc-bookings-booking-form,
.ikn-product-booking__box .wc-bookings-booking-form {
  border: 1px solid #e3e3e3;
  border-radius: 12px;
  padding: 16px;
  background: #fff;
  box-shadow: none;
}

.ikn-product-booking__box .wc-bookings-date-picker {
  padding: 12px;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  background: #fff;
  max-width: 100%;
  overflow-x: auto;
}

.ikn-product-booking__box .ui-datepicker {
  width: 100% !important;
  max-width: 100%;
  font-size: 14px;
}

.ikn-product-booking__box .ui-datepicker .ui-datepicker-header {
  background: #e6efe3 !important;
  color: #334d33 !important;
  border: none !important;
}

.ikn-product-booking__box .ui-datepicker-prev,
.ikn-product-booking__box .ui-datepicker-next {
  background: #8ba981 !important;
  color: #fff !important;
  border: none !important;
  border-radius: 6px !important;
  cursor: pointer;
}

.ikn-product-booking__box .wc-bookings-date-picker .ui-datepicker td.bookable a,
.ikn-product-booking__box .wc-bookings-date-picker .ui-datepicker td.bookable-range a {
  background: #8ba981 !important;
  color: #fff !important;
  font-weight: 600;
}

.ikn-product-booking__box .wc-bookings-date-picker .ui-datepicker td a.ui-state-active {
  background: #334d33 !important;
  color: #fff !important;
}

.ikn-product-booking__box .wc-bookings-booking-form p.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0 0 10px;
  color: #334d33;
}

.ikn-product-booking__box .wc-bookings-booking-form p.form-field label {
  font-weight: 600;
}

.ikn-product-booking__box .wc-bookings-booking-form p.form-field input[type="number"] {
  max-width: 120px;
  padding: 8px 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
}

.ikn-product-booking__box .single_add_to_cart_button,
.ikn-product-booking__box .wc-bookings-booking-form-button {
  width: 100%;
  background: #8ba981 !important;
  color: #fff !important;
  border: none !important;
  border-radius: 8px !important;
  padding: 12px 16px !important;
  font-weight: 600 !important;
}

.ikn-product-booking__box .single_add_to_cart_button:hover,
.ikn-product-booking__box .wc-bookings-booking-form-button:hover {
  background: #66835c !important;
}

.ikn-product-booking__box .wc-bookings-booking-cost.price {
  text-align: center;
  margin: 10px 0;
  font-weight: 700;
}

#dokan-accommodation-booking-checkin-checkout {
  font-size: 0.92rem;
  color: #555;
  margin-bottom: 8px;
}

#dokan-accommodation-booking-checkin-checkout p {
  margin: 0 0 4px;
}

/* Mobile : réservation en premier */
@media (max-width: 1024px) {
  .ikn-product-booking__layout {
    grid-template-columns: 1fr;
    grid-template-areas:
      "aside"
      "main";
  }

  .ikn-product-booking__aside {
    position: static;
  }

  .ikn-product-booking__hero-vendor {
    max-width: none;
  }

  .ikn-product-booking__hero-title {
    max-width: none;
  }
}

/* Autoriser le léger zoom galerie malgré style.css parent */
body.ikn-product-booking-layout .product-gallery-main-image {
  transition: transform 0.35s ease !important;
}

body.ikn-product-booking-layout .product-gallery-main:hover .product-gallery-main-image {
  transform: scale(1.03) !important;
}
