/* BookingCars Rates grid */

.bcr {
  --bcr-cols: 5;
  --bcr-gap: 24px;
  --bcr-min: 230px;
  --bcr-cta: #ee6a2a;
  --bcr-cta-text: #fff;
  --bcr-text: #1f1f1f;
  --bcr-muted: #555;
  --bcr-border: #e2e4e8;
  --bcr-media-bg: #f5f6f8;
  --bcr-radius: 14px;
  --bcr-font: inherit;
  font-family: var(--bcr-font);
  color: var(--bcr-text);
}

.bcr *,
.bcr *::before,
.bcr *::after { box-sizing: border-box; }

/* Hasta --bcr-cols columnas; baja sola cuando la card quedaría más angosta que --bcr-min */
.bcr-grid {
  display: grid;
  grid-template-columns: repeat(
    auto-fill,
    minmax(max(min(var(--bcr-min), 100%), calc((100% - (var(--bcr-cols) - 1) * var(--bcr-gap)) / var(--bcr-cols))), 1fr)
  );
  gap: var(--bcr-gap);
}

.bcr-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--bcr-border);
  border-radius: var(--bcr-radius);
  background: #fff;
}

.bcr-media {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px 18px 16px;
  background: var(--bcr-media-bg);
}

.bcr .bcr-img {
  display: block;
  width: 100%;
  height: 150px;
  margin: 0;
  object-fit: contain;
}

.bcr .bcr-logo {
  display: block;
  width: auto;
  max-width: 110px;
  height: 40px;
  margin: 0;
  object-fit: contain;
  object-position: left center;
}

.bcr-logo-text { font-weight: 700; font-size: 16px; line-height: 40px; }

.bcr-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 18px 18px 20px;
}

.bcr .bcr-name {
  margin: 0 0 6px;
  color: inherit;
  font-family: inherit;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.25;
}

.bcr .bcr-cat {
  margin: 0 0 14px;
  color: var(--bcr-muted);
  font-size: 16px;
  line-height: 1.3;
}

.bcr .bcr-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
  font-size: 19px;
  font-weight: 600;
}

.bcr .bcr-specs li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
}

.bcr-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.bcr-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
}

.bcr-price { white-space: nowrap; }
.bcr-price strong { font-size: 20px; font-weight: 700; }
.bcr-price span { color: var(--bcr-muted); font-size: 14px; }

.bcr .bcr-cta {
  margin: 0;
  padding: 10px 12px;
  border: 0;
  border-radius: 6px;
  background: var(--bcr-cta);
  box-shadow: none;
  color: var(--bcr-cta-text);
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  text-transform: none;
  cursor: pointer;
}
.bcr button.bcr-cta:hover,
.bcr button.bcr-cta:focus,
.bcr button.bcr-cta:active {
  background-color: var(--bcr-cta);
  color: var(--bcr-cta-text);
  text-decoration: none;
}
.bcr button.bcr-cta:hover { filter: brightness(.94); }
.bcr .bcr-cta:focus-visible { outline: 2px solid var(--bcr-text); outline-offset: 2px; }

/* ---------- Modal ---------- */

.bcr-modal {
  width: min(1180px, calc(100vw - 32px));
  max-width: none;
  max-height: none;
  margin: 12vh auto auto;
  padding: 0;
  overflow: visible;
  border: 0;
  background: transparent;
  color: inherit;
}
.bcr-modal::backdrop { background: rgba(0, 0, 0, .55); }

.bcr-modal-inner { position: relative; }

.bcr .bcr-modal-close {
  position: absolute;
  top: -48px;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: #333;
  cursor: pointer;
}

.bcr button.bcr-modal-close:hover,
.bcr button.bcr-modal-close:focus { background-color: #fff; color: #333; }

.bcr-modal .bcs-form { box-shadow: 0 12px 40px rgba(0, 0, 0, .25); }

html.bcr-lock { overflow: hidden; }

@media (max-width: 720px) {
  .bcr .bcr-name { font-size: 18px; }

  .bcr-modal {
    width: 100vw;
    height: 100dvh;
    max-height: 100dvh;
    margin: 0;
    overflow: auto;
    background: #fff;
  }
  .bcr-modal-inner { padding-top: 56px; }
  .bcr .bcr-modal-close { top: 10px; right: 10px; background: #f1f1f1; }
  .bcr-modal .bcs-form { box-shadow: none; }
}
