.bm-api-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

/* Form Container */
.bm-form-container {
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  padding: 40px 20px;
  border-radius: 12px;
  margin-bottom: 40px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Form */
.bm-form {
  max-width: 1000px;
  margin: 0 auto;
  background: white;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.bm-form-group {
    margin-bottom: 20px;
}

.bm-form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
}

.bm-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
    color: #333;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.bm-form-group input,
.bm-form-group select {
  padding: 12px 14px;
  border: 2px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
  font-family: inherit;
  transition: all 0.3s;
}

.bm-form-group input:focus,
.bm-form-group select:focus {
  outline: none;
  border-color: #0073aa;
  box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.1);
  background: #f0f7ff;
}

.bm-form-group input::placeholder {
  color: #bbb;
}

.bm-form-group select {
  cursor: pointer;
  background: white url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'%3E%3C/path%3E%3C/svg%3E")
    no-repeat right 10px center;
  background-size: 20px;
  padding-right: 36px;
  appearance: none;
}

.bm-form-group select optgroup {
  font-weight: 600;
  color: #0073aa;
}

.bm-form-group select option {
  color: #333;
  padding: 8px;
}

.bm-submit-btn {
    width: 100%;
    padding: 14px 28px;
    background: linear-gradient(135deg, #0073aa 0%, #005a87 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 10px;
}

.bm-submit-btn:hover {
    background: linear-gradient(135deg, #005a87 0%, #004468 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 115, 170, 0.3);
}

.bm-submit-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0, 115, 170, 0.2);
}

.bm-loading {
  display: none;
  text-align: center;
  padding: 20px;
  color: #666;
}

.bm-loading.show {
  display: block;
}

.bm-spinner {
  border: 4px solid #f3f3f3;
  border-top: 4px solid #0073aa;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
  margin: 0 auto 10px;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.bm-results {
  max-width: 1200px;
  margin: 0 auto;
}

.bm-no-results {
  text-align: center;
  padding: 60px 20px;
  background: #f9f9f9;
  border-radius: 10px;
  border: 2px dashed #ddd;
}

.bm-no-results svg {
  width: 60px;
  height: 60px;
  color: #ccc;
  margin-bottom: 20px;
}

.bm-no-results h3 {
  color: #666;
  font-size: 20px;
  margin-bottom: 10px;
}

.bm-no-results p {
  color: #999;
  font-size: 14px;
}

.bm-error {
  background: #fee;
  border: 1px solid #fcc;
  border-radius: 8px;
  padding: 20px;
  color: #c33;
  text-align: center;
  font-weight: 500;
}

/* Offres List */
.bm-results h2 {
  margin-bottom: 30px;
  color: #333;
  font-size: 24px;
  text-align: center;
}

.bm-offre-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  margin-bottom: 25px;
  transition: all 0.3s ease;
  border: 1px solid #eee;
}

.bm-offre-card:hover {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
  transform: translateY(-4px);
}

/* Offre Image Header */
.bm-offre-image-header {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 20px;
  padding: 20px;
}

@media (max-width: 768px) {
  .bm-offre-image-header {
    grid-template-columns: 1fr;
  }
}

.bm-offre-image-container {
  width: 100%;
  height: 250px;
  border-radius: 8px;
  overflow: hidden;
  background: #f0f0f0;
}

.bm-offre-main-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.bm-offre-card:hover .bm-offre-main-image {
  transform: scale(1.05);
}

/* Offre Header Info */
.bm-offre-header-info {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 10px 0;
}

.bm-offre-title {
  margin: 0 0 8px 0;
  font-size: 22px;
  font-weight: 700;
  color: #333;
}

.bm-offre-model {
  margin: 0 0 12px 0;
  color: #666;
  font-size: 14px;
  font-style: italic;
}

.bm-offre-price-badge {
  display: inline-block;
  background: linear-gradient(135deg, #0073aa 0%, #005a87 100%);
  color: white;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 20px;
  font-weight: 700;
  width: fit-content;
}

/* Offre Specs */
.bm-offre-specs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
  padding: 0 20px 20px;
}

@media (max-width: 768px) {
  .bm-offre-specs {
    grid-template-columns: repeat(2, 1fr);
  }
}

.bm-spec-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 15px;
  background: #f9f9f9;
  border-radius: 8px;
  text-align: center;
  border: 1px solid #eee;
}

.bm-spec-icon {
  font-size: 24px;
  margin-bottom: 8px;
}

.bm-spec-label {
  font-size: 12px;
  color: #999;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.bm-spec-value {
  font-size: 16px;
  font-weight: 700;
  color: #0073aa;
}

/* Offre Dates */
.bm-offre-dates {
  padding: 20px;
  background: #f9f9f9;
  border-top: 1px solid #eee;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
}

@media (max-width: 768px) {
  .bm-offre-dates {
    grid-template-columns: 1fr;
  }
}

.bm-offre-dates p {
  margin: 0;
  font-size: 14px;
  color: #666;
}

.bm-offre-dates strong {
  color: #333;
}

.bm-price-per-day {
  grid-column: 1 / -1;
  font-size: 16px !important;
  color: #0073aa !important;
  font-weight: 700;
}

/* Offre Description */
.bm-offre-description {
  padding: 20px;
  background: #f0f7ff;
  border-left: 4px solid #0073aa;
}

.bm-offre-description p {
  margin: 0;
  color: #666;
  line-height: 1.6;
  font-size: 14px;
}

/* Offre Gallery */
.bm-offre-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 20px;
  background: #f9f9f9;
}

@media (max-width: 768px) {
  .bm-offre-gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}

.bm-gallery-image {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 6px;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.bm-gallery-image:hover {
  transform: scale(1.05);
}

/* Offre Actions */
.bm-offre-actions {
  padding: 20px;
  border-top: 1px solid #eee;
}

.bm-book-btn {
  width: 100%;
  padding: 14px 28px;
  background: linear-gradient(135deg, #0073aa 0%, #005a87 100%);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
}

.bm-book-btn:hover {
  background: linear-gradient(135deg, #005a87 0%, #004468 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 115, 170, 0.3);
}

.bm-book-btn:active {
  transform: translateY(0);
}

/* Modal Overlay */
.bm-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.bm-modal-overlay.bm-modal-show {
  opacity: 1;
}

/* Modal */
.bm-modal {
  background: white;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  width: 90%;
  max-width: 700px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from {
    transform: translateY(40px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Modal Header */
.bm-modal-header {
  padding: 24px;
  border-bottom: 1px solid #eee;
  position: relative;
}

.bm-modal-header h2 {
  margin: 0 0 8px 0;
  font-size: 24px;
  font-weight: 700;
  color: #333;
}

.bm-modal-subtitle {
  margin: 0;
  font-size: 14px;
  color: #666;
}

.bm-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #999;
  transition: color 0.2s;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bm-modal-close:hover {
  color: #333;
}

/* Modal Content */
.bm-modal-content {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
}

.bm-no-extras {
  text-align: center;
  color: #999;
  padding: 40px 20px;
  font-size: 16px;
}

/* Extras List */
.bm-extras-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Extra Item */
.bm-extra-item {
  display: grid;
  grid-template-columns: 24px 1fr auto;
  gap: 16px;
  align-items: start;
  padding: 16px;
  background: #f9f9f9;
  border: 1px solid #eee;
  border-radius: 8px;
  transition: all 0.2s;
}

.bm-extra-item:hover {
  background: #f0f7ff;
  border-color: #0073aa;
}

.bm-extra-item.bm-extra-obligatory {
  background: #fff3cd;
  border-color: #ffc107;
}

.bm-extra-checkbox {
  width: 20px;
  height: 20px;
  margin-top: 4px;
  cursor: pointer;
}

.bm-extra-badge {
  display: inline-block;
  background: #ffc107;
  color: #333;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
}

.bm-extra-info h4 {
  margin: 0 0 8px 0;
  font-size: 16px;
  font-weight: 600;
  color: #333;
}

.bm-extra-description {
  margin: 8px 0;
  font-size: 13px;
  color: #666;
  line-height: 1.5;
}

.bm-extra-meta {
  margin: 8px 0 0 0;
  font-size: 12px;
  color: #999;
  display: flex;
  gap: 12px;
}

.bm-extra-meta span {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Extra Price */
.bm-extra-price {
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-start;
}

.bm-extra-price-value {
  font-size: 18px;
  font-weight: 700;
  color: #0073aa;
}

.bm-extra-price-unit {
  font-size: 12px;
  color: #999;
  margin-top: 4px;
}

/* Modal Footer */
.bm-modal-footer {
  padding: 20px 24px;
  border-top: 1px solid #eee;
  background: #f9f9f9;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.bm-total-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.bm-total-label {
  font-size: 14px;
  color: #666;
  font-weight: 600;
}

.bm-total-value {
  font-size: 24px;
  font-weight: 700;
  color: #0073aa;
}

.bm-btn-confirm {
  padding: 12px 32px;
  background: linear-gradient(135deg, #0073aa 0%, #005a87 100%);
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  white-space: nowrap;
}

.bm-btn-confirm:hover {
  background: linear-gradient(135deg, #005a87 0%, #004468 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 115, 170, 0.3);
}

.bm-btn-confirm:active {
  transform: translateY(0);
}

/* CHECKOUT SUMMARY */
.bm-checkout-container {
  background: #f5f7fa;
  padding: 40px 20px;
  min-height: 100vh;
}

.bm-checkout-wrapper {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

@media (max-width: 900px) {
  .bm-checkout-wrapper {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* Checkout Header */
.bm-checkout-header {
  background: linear-gradient(135deg, #0073aa 0%, #005a87 100%);
  color: white;
  padding: 30px;
  border-radius: 12px;
  margin-bottom: 30px;
  grid-column: 1 / -1;
}

.bm-checkout-header h1 {
  margin: 0 0 10px 0;
  font-size: 28px;
}

.bm-checkout-subtitle {
  margin: 0;
  font-size: 14px;
  opacity: 0.9;
}

/* Summary Section */
.bm-checkout-summary {
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  padding: 30px;
}

.bm-summary-section {
  margin-bottom: 30px;
}

.bm-summary-title {
  font-size: 18px;
  font-weight: 700;
  color: #333;
  margin: 0 0 20px 0;
  padding-bottom: 15px;
  border-bottom: 2px solid #eee;
}

.bm-summary-card {
  background: #f9f9f9;
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
}

.bm-summary-yacht-info h3 {
  margin: 0 0 8px 0;
  font-size: 20px;
  color: #0073aa;
}

.bm-summary-model {
  margin: 0 0 12px 0;
  color: #999;
  font-size: 14px;
}

.bm-summary-dates p {
  margin: 8px 0;
  font-size: 14px;
  color: #666;
}

.bm-summary-dates strong {
  color: #333;
}

/* Prices */
.bm-summary-prices {
  background: #f9f9f9;
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 20px;
}

.bm-price-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  font-size: 14px;
  border-bottom: 1px solid #eee;
}

.bm-price-line:last-child {
  border-bottom: none;
}

.bm-price-value {
  font-weight: 700;
  color: #0073aa;
  min-width: 100px;
  text-align: right;
}

.bm-price-subtotal {
  background: #f0f7ff;
  padding: 12px;
  margin: 10px 0;
  border-radius: 6px;
  font-weight: 600;
  color: #0073aa;
}

.bm-price-total {
  background: linear-gradient(135deg, #0073aa 0%, #005a87 100%);
  color: white;
  padding: 15px;
  margin-top: 15px;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 700;
}

.bm-price-total .bm-price-value {
  color: white;
  font-size: 18px;
}

/* Checkout Form */
.bm-checkout-form {
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  padding: 30px;
}

.bm-form-title {
  font-size: 18px;
  font-weight: 700;
  color: #333;
  margin: 0 0 25px 0;
  padding-bottom: 15px;
  border-bottom: 2px solid #eee;
}

.bm-customer-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.bm-form-row-3col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}

.bm-form-row-2col {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
}

@media (max-width: 600px) {
  .bm-form-row-3col {
    grid-template-columns: 1fr;
  }
  .bm-form-row-2col {
    grid-template-columns: 1fr;
  }
}

.bm-form-group {
  display: flex;
  flex-direction: column;
}

.bm-form-group label {
  font-weight: 600;
  color: #333;
  margin-bottom: 8px;
  font-size: 14px;
}

.bm-form-group input,
.bm-form-group select {
  padding: 12px 14px;
  border: 2px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
  font-family: inherit;
  transition: all 0.3s;
  background: white;
}

.bm-form-group input:focus,
.bm-form-group select:focus {
  outline: none;
  border-color: #0073aa;
  box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.1);
  background: #f0f7ff;
}

.bm-form-group select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 20px;
  padding-right: 36px;
}

/* Form Actions */
.bm-form-actions {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.bm-btn-primary,
.bm-btn-secondary {
  padding: 14px 28px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  flex: 1;
}

.bm-btn-primary {
  background: linear-gradient(135deg, #0073aa 0%, #005a87 100%);
  color: white;
}

.bm-btn-primary:hover {
  background: linear-gradient(135deg, #005a87 0%, #004468 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 115, 170, 0.3);
}

.bm-btn-secondary {
  background: #f0f0f0;
  color: #333;
  border: 1px solid #ddd;
}

.bm-btn-secondary:hover {
  background: #e0e0e0;
}

@media (max-width: 600px) {
  .bm-form-actions {
    flex-direction: column;
  }

  .bm-form-actions button {
    width: 100%;
  }
}

/* ZOOM IMAGE MODAL */
.bm-image-zoom-modal {
    position: fixed;
    z-index: 99999;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
}
.bm-image-zoom-modal.show {
    opacity: 1;
    pointer-events: auto;
}
.bm-image-zoom-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.85);
    cursor: zoom-out;
}
.bm-image-zoom-content {
    position: relative;
    z-index: 2;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: bm-zoom-in 0.2s;
}
.bm-image-zoom-carousel {
    position: relative;
    width: 90vw;
    max-width: 700px;
    height: 80vh;
    max-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.bm-image-zoom-slide {
    display: none;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    position: absolute;
    left: 0; top: 0;
    right: 0; bottom: 0;
    transition: opacity 0.2s;
}
.bm-image-zoom-slide.active {
    display: flex;
    opacity: 1;
    z-index: 2;
}
.bm-image-zoom-slide img {
    max-width: 100%;
    max-height: 78vh;
    margin: auto;
    border-radius: 10px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.5);
    background: #fff;
    object-fit: contain;
}
.bm-image-zoom-close {
    position: absolute;
    top: -16px;
    right: -16px;
    background: #fff;
    color: #333;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    transition: background 0.2s;
    z-index: 3;
}
.bm-image-zoom-close:hover {
    background: #0073aa;
    color: #fff;
}
.bm-image-zoom-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.85);
    border: none;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    font-size: 28px;
    color: #0073aa;
    cursor: pointer;
    z-index: 4;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    user-select: none;
}
.bm-image-zoom-arrow.left { left: -60px; }
.bm-image-zoom-arrow.right { right: -60px; }
.bm-image-zoom-arrow:hover {
    background: #0073aa;
    color: #fff;
}
@media (max-width: 900px) {
    .bm-image-zoom-content, .bm-image-zoom-carousel {
        max-width: 98vw;
        width: 98vw;
    }
    .bm-image-zoom-arrow.left { left: 10px; }
    .bm-image-zoom-arrow.right { right: 10px; }
}
@media (max-width: 600px) {
    .bm-image-zoom-content, .bm-image-zoom-carousel {
        max-width: 100vw;
        width: 100vw;
        height: 60vh;
        max-height: 70vh;
    }
    .bm-image-zoom-slide img {
        max-width: 98vw;
        max-height: 55vh;
    }
    .bm-image-zoom-arrow.left, .bm-image-zoom-arrow.right {
        width: 36px; height: 36px; font-size: 22px;
    }
}
@keyframes bm-zoom-in {
    from { transform: scale(0.8); opacity: 0; }
    to   { transform: scale(1); opacity: 1; }
}