/* =============================================
   WooCommerce Car Rental Pro - Frontend CSS
   Version 1.1.0 - Layout horizontal
============================================= */

.wc-car-rental-form,
.car-rental-search-form {
    margin: 30px 0;
    padding: 30px;
    background: #ffffff;
    border: 2px solid #f1f1f1;
    border-radius: 12px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.07);
}

.wc-car-rental-form h2,
.car-rental-search-form h2 {
    margin-top: 0;
    margin-bottom: 25px;
    font-size: 1.65em;
    color: #222;
}

/* ==================== FORMULAIRE DE RECHERCHE - Horizontal ==================== */
.search-form-horizontal .form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 18px;
    align-items: end;
}

.search-form-horizontal .form-item {
    display: flex;
    flex-direction: column;
}

.search-form-horizontal label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: #333;
}

.search-form-horizontal select,
.search-form-horizontal .flatpickr-input {
    width: 100%;
    padding: 13px 14px;
    font-size: 15px;
    border: 2px solid #0073aa;
    border-radius: 6px;
}

.search-form-horizontal button.button.alt {
    width: 100%;
    padding: 16px;
    font-size: 17px;
    margin-top: 10px;
    grid-column: span 4;
}

/* Responsive */
@media (max-width: 1100px) {
    .search-form-horizontal .form-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {
    .search-form-horizontal .form-grid {
        grid-template-columns: 1fr;
    }
}

/* ==================== PAGE PRODUIT ==================== */
.wc-car-rental-form .form-group {
    margin-bottom: 20px;
}

.wc-car-rental-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.wc-car-rental-form select,
.wc-car-rental-form input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #0073aa;
    border-radius: 6px;
}

/* Options et prix total */
.rental-options {
    margin: 25px 0;
}

.option-item {
    display: flex;
    justify-content: space-between;
    padding: 14px 18px;
    background: #f9f9f9;
    border: 1px solid #eee;
    border-radius: 8px;
    margin-bottom: 10px;
}

.rental-total {
    margin: 30px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    text-align: center;
}

.total-price {
    font-size: 2.5rem;
    font-weight: 700;
    color: #0073aa;
}

/* Responsive */
@media (max-width: 1100px) {
    .search-form-horizontal .form-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {
    .search-form-horizontal .form-grid {
        grid-template-columns: 1fr;
    }
    .search-form-horizontal button.button.alt {
        grid-column: span 1;
    }
}

.wccrp-price-bar{display:flex;gap:20px;justify-content:space-between;align-items:center;padding:16px 20px;background:#f7f7f7;border-radius:12px;margin:0 0 24px}.wccrp-price-bar .label{display:block;font-size:12px;opacity:.7;margin-bottom:4px}.wccrp-price-bar strong{font-size:24px}.wccrp-section{margin:26px 0}.wccrp-assurances-grid,.wccrp-options-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:16px}.wccrp-choice-card{display:flex;flex-direction:column;gap:8px;padding:16px;border:1px solid #ddd;border-radius:12px;background:#fff}.wccrp-choice-card img{max-width:46px;max-height:46px;object-fit:contain}.wccrp-choice-card .title{font-weight:700}.wccrp-choice-card .price{font-weight:600}.wccrp-choice-card .desc{font-size:13px;opacity:.8}.wccrp-search-summary{display:flex;flex-wrap:wrap;gap:18px;margin:10px 0 22px;padding:12px 16px;background:#fafafa;border-radius:10px}.wccrp-result-price{font-weight:700;margin:8px 0 14px}.result-item{padding:16px;border:1px solid #eee;border-radius:14px;background:#fff}.search-results-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:20px}


.wccrp-results-wrapper{display:flex;flex-direction:column;gap:24px}.wccrp-results-page h3{margin:0 0 10px}.wccrp-empty-results{padding:22px;border:1px dashed #c9c9c9;border-radius:14px;background:#fafafa}.wccrp-booking-head{display:grid;grid-template-columns:1.2fr .8fr;gap:18px;margin-bottom:20px}.wccrp-booking-intro,.wccrp-booking-summary{padding:18px;border-radius:16px;background:#111;color:#fff}.wccrp-kicker{display:inline-block;margin-bottom:8px;padding:6px 10px;border-radius:999px;background:#c1121f;color:#fff;font-size:12px;font-weight:700;text-transform:uppercase;letter-spacing:.04em}.wccrp-booking-intro p{margin:0;opacity:.9}.wccrp-booking-summary{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.wccrp-booking-summary span{display:block;font-size:12px;opacity:.75;margin-bottom:6px}.wccrp-booking-summary strong{font-size:20px;line-height:1.2}.result-item{box-shadow:0 10px 30px rgba(0,0,0,.05)}.result-item img{width:100%;height:220px;object-fit:cover;border-radius:12px;margin-bottom:12px}.wccrp-result-meta{font-size:13px;opacity:.7;margin-bottom:6px}.wccrp-reservation-footer{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-top:28px;padding-top:18px;border-top:1px solid #eee}.wccrp-reservation-note{font-size:14px;opacity:.78;max-width:560px}.wc-car-rental-form .single_add_to_cart_button.button.alt,.result-item .button.alt,.search-form-horizontal button.button.alt{background:#c1121f;border-color:#c1121f;color:#fff}.wc-car-rental-form .single_add_to_cart_button.button.alt:hover,.result-item .button.alt:hover,.search-form-horizontal button.button.alt:hover{background:#111;border-color:#111;color:#fff}.wccrp-choice-card{transition:all .2s ease}.wccrp-choice-card:has(input:checked){border-color:#c1121f;box-shadow:0 0 0 2px rgba(193,18,31,.08)}@media (max-width:900px){.wccrp-booking-head{grid-template-columns:1fr}.wccrp-booking-summary{grid-template-columns:1fr 1fr 1fr}}@media (max-width:640px){.wccrp-booking-summary{grid-template-columns:1fr}.wccrp-reservation-footer{flex-direction:column;align-items:flex-start}}

/* Desktop search result cards */
.search-results-grid--desktop-cards{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:24px;
}

.result-item--visual{
  padding:0;
  overflow:hidden;
  border-radius:10px;
  border:1px solid #d8d8d8;
  background:#efefef;
  box-shadow:0 10px 24px rgba(0,0,0,.12);
}
.result-item--visual .wccrp-card-media{
  position:relative;
  min-height:360px;
  background:linear-gradient(180deg,#f1f1f1 0%,#e2e2e2 100%);
}
.result-item--visual .wccrp-thumb-link,
.result-item--visual .wccrp-thumb-link img{
  display:block;
  width:100%;
  height:100%;
}
.result-item--visual .wccrp-thumb-link img{
  margin:0;
  border-radius:0;
  object-fit:contain;
  padding:70px 30px 34px;
  background:transparent;
}
.wccrp-thumb-placeholder{
  min-height:360px;
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  padding:30px;
  font-weight:700;
  color:#111;
}
.wccrp-card-top{
  position:absolute;
  top:16px;
  left:18px;
  right:18px;
  z-index:2;
  color:#333;
}
.wccrp-card-model{
  font-size:19px;
  font-weight:600;
  margin-bottom:10px;
}
.wccrp-card-specs{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:12px;
  font-size:16px;
  color:#454545;
}
.wccrp-spec{
  display:inline-flex;
  align-items:center;
  gap:6px;
}
.wccrp-spec i{
  font-size:18px;
  width:18px;
  height:18px;
}
.wccrp-card-overlay{
  position:absolute;
  inset:0;
  background:rgba(0,0,0,.52);
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  padding:28px;
  z-index:3;
}
.wccrp-card-overlay span{
  color:#fff;
  font-weight:800;
  font-size:29px;
  line-height:1.28;
  text-transform:uppercase;
  max-width:560px;
}
.wccrp-card-bottom{
  background:#090909;
  color:#fff;
  padding:16px 18px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:18px;
}
.wccrp-result-price-band{
  display:flex;
  align-items:baseline;
  gap:10px;
  flex-wrap:wrap;
}
.wccrp-result-price-band strong{
  color:#b03c07;
  font-size:26px;
  font-weight:800;
}
.wccrp-result-price-band span{
  color:#8f8f8f;
  font-size:22px;
  font-weight:600;
}
.wccrp-card-cta{
  white-space:nowrap;
  flex-shrink:0;
}
.wccrp-card-cta--disabled{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:42px;
  padding:10px 16px;
  border-radius:6px;
  background:#2e2e2e;
  color:#bbb;
  font-weight:700;
}
.result-item--visual.is-unavailable .wccrp-card-bottom{
  justify-content:flex-start;
}
@media (max-width:1280px){
  .search-results-grid--desktop-cards{grid-template-columns:repeat(2,minmax(0,1fr));}
}
@media (max-width:767px){
  .search-results-grid--desktop-cards{grid-template-columns:1fr;}
}
@media (max-width:767px){
  .result-item--visual .wccrp-card-media{min-height:290px;}
  .result-item--visual .wccrp-thumb-link img{padding:60px 20px 24px;}
  .wccrp-card-model{font-size:17px;}
  .wccrp-card-specs{font-size:14px;gap:10px;}
  .wccrp-card-overlay span{font-size:22px;}
  .wccrp-card-bottom{flex-direction:column;align-items:flex-start;}
  .wccrp-result-price-band strong{font-size:22px;}
  .wccrp-result-price-band span{font-size:18px;}
}
