/* Legendary Car Rental – Frontend UI (clean, v2) */

/* Page wrapper */
.lcr-wrap:not(.lcr-wrap--search){
  max-width: 1100px;
  margin: 0 auto;
}

/* Results grid */
.lcr-grid{
  display:grid;
  gap:18px;
  grid-template-columns: repeat(var(--lcr-cols, 3), minmax(0, 1fr));
}
@media (max-width: 1024px){
  .lcr-grid{
    grid-template-columns: repeat(var(--lcr-cols-tablet, 2), minmax(0, 1fr));
  }
}
@media (max-width: 767px){
  .lcr-grid{
    grid-template-columns: repeat(var(--lcr-cols-mobile, 1), minmax(0, 1fr));
  }
}

@media (max-width: 1024px){
  .lcr-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px){
  .lcr-grid{ grid-template-columns: 1fr; }
}

/* Buttons (general) */
.lcr-btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 12px;
  background: #2b63c5;
  color: #fff !important;
  text-decoration: none !important;
  font-weight: 600;
  border: 0;
  cursor: pointer;
  box-shadow: 0 16px 40px rgba(43, 99, 197, .20);
}
.lcr-btn:hover{ filter: brightness(.98); }

/* Forms (booking / shortcode forms) */
.lcr-form{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.lcr-form label{
  font-size: 12px;
  color: #64748b;
  display: block;
  margin-bottom: 6px;
}
.lcr-form input{
  width: 100%;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, .12);
  background: rgba(255, 255, 255, .85);
}
.lcr-form .full{ grid-column: 1 / -1; }

.lcr-summary{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  font-size: 14px;
  color: #334155;
}
.lcr-hr{
  border: 0;
  border-top: 1px solid rgba(15, 23, 42, .08);
  margin: 14px 0;
}
.lcr-chip{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  color: #0f172a;
  background: rgba(15, 23, 42, .06);
  border: 1px solid rgba(15, 23, 42, .08);
}

/* =========================================================
   Premium “Dark Hero” Car Card (dark blue theme)
   - Overlay only TOP + BOTTOM (middle stays clean)
   - Hover is subtle (no heavy darkening / no huge shadow)
   ========================================================= */

.lcr-car{
  border-radius: 18px;
  overflow: hidden;
  background: #071325; /* deep blue */
  box-shadow: 0 14px 38px rgba(2, 8, 20, .18);
  transform: translateZ(0);
  transition: transform .18s ease, box-shadow .18s ease;
}

.lcr-car__media{
  position: relative;
  display: block;
  min-height: 380px;
  text-decoration: none;
  color: inherit;
}

/* Never allow browser link coloring on cards */
.lcr-car__media,
.lcr-car__media:hover,
.lcr-car__media:visited,
.lcr-car__media:active{
  color: inherit;
  text-decoration: none;
}

.lcr-car__img{
  width: 100%;
  height: 380px;
  object-fit: cover;
  display: block;
  filter: saturate(1.03) contrast(1.02);
}

.lcr-car__img--placeholder{
  width: 100%;
  height: 380px;
  background: linear-gradient(135deg, rgba(255,255,255,.10), rgba(255,255,255,.02));
}

/* Top + Bottom overlays only (dark blue tint) */
.lcr-car__shade{
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background:
    /* TOP fade for title/specs */
    linear-gradient(to bottom,
      rgba(3, 18, 44, .62) 0%,
      rgba(3, 18, 44, .22) 14%,
      rgba(3, 18, 44, 0) 34%
    ),
    /* BOTTOM fade for price/cta */
    linear-gradient(to top,
      rgba(3, 18, 44, .76) 0%,
      rgba(3, 18, 44, .34) 18%,
      rgba(3, 18, 44, 0) 46%
    );
}

/* Ensure text is always above shade */
.lcr-car__top,
.lcr-car__bottom{
  position: absolute;
  z-index: 2;
}

.lcr-car__top{
  top: 16px;
  left: 16px;
  right: 16px;
}

.lcr-car__name{
  font-weight: 600;
  letter-spacing: .3px;
  text-transform: uppercase;
  font-size: 18px;
  line-height: 1.15;
  margin: 0 0 10px 0;
  color: #ffffff;
  text-shadow: 0 10px 28px rgba(0,0,0,.35);
}

.lcr-car__specs{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* Spec pills */
.lcr-pill{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  color: rgba(255,255,255,.92);
}
.lcr-pill--dark{
  background: rgba(7, 19, 37, .38);
  border: 1px solid rgba(255, 255, 255, .16);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.lcr-ico{ display: inline-flex; opacity: .95; }
.lcr-ico svg{ display: block; }

.lcr-car__bottom{
  left: 16px;
  right: 16px;
  bottom: 14px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
}

.lcr-car__price{
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 14px;
  color: rgba(255,255,255,.92);
}
.lcr-car__price strong{
  font-size: 22px;
  font-weight: 600;
  letter-spacing: .2px;
  color: #ffffff;
  text-shadow: 0 10px 28px rgba(0,0,0,.35);
}

/* CTA pill */
.lcr-car__cta{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 14px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,.95);
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.18);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 10px 26px rgba(0,0,0,.22);
}

/* Subtle hover (small lift + gentle shadow) */
.lcr-car:hover{
  transform: translateY(-2px);
  box-shadow: 0 18px 46px rgba(2, 8, 20, .24);
}

/* Keep overlay essentially the same on hover (do NOT darken the whole image) */
.lcr-car:hover .lcr-car__shade{
  background:
    linear-gradient(to bottom,
      rgba(3, 18, 44, .58) 0%,
      rgba(3, 18, 44, .20) 14%,
      rgba(3, 18, 44, 0) 34%
    ),
    linear-gradient(to top,
      rgba(3, 18, 44, .72) 0%,
      rgba(3, 18, 44, .30) 18%,
      rgba(3, 18, 44, 0) 46%
    );
}

/* Keyboard focus */
.lcr-car__media:focus{
  outline: none;
}
.lcr-car__media:focus-visible{
  outline: 2px solid rgba(43, 99, 197, .55);
  outline-offset: 3px;
  border-radius: 18px;
}

/* Responsive */
@media (max-width: 640px){
  .lcr-car__media,
  .lcr-car__img,
  .lcr-car__img--placeholder{
    min-height: 300px;
    height: 300px;
  }
  .lcr-car__name{ font-size: 16px; }
  .lcr-car__price strong{ font-size: 20px; }
}

/* --- LCR Searchbar layout (Elementor-friendly) --- */
.lcr-searchbar {
  display: flex;
  flex-wrap: wrap;
  /* <-- was nowrap; this is why options can't go below */
  gap: 12px;
  align-items: stretch;
}

/* Fields */
.lcr-searchbar .lcr-field {
  min-width: 160px;
}

.lcr-searchbar .lcr-field--date {
  min-width: 180px;
}

.lcr-searchbar .lcr-field--time {
  min-width: 110px;
}

/* Search button */
.lcr-searchbar .lcr-btn-search {
  min-width: 220px;
  font-size: 16px;
  font-weight: 600;
  padding: 16px 22px;
  border-radius: 14px;
}

/* Options row goes FULL width under bar */
.lcr-searchbar .lcr-options,
.lcr-searchbar .lcr-checks,
.lcr-searchbar .lcr-searchbar__options {
  flex: 0 0 100%;
  order: 999;
  display: flex;
  gap: 18px;
  align-items: center;
  margin-top: 4px;
}

/* Hide Age checkbox (best effort) */
.lcr-searchbar label[for*="age"i],
.lcr-searchbar .lcr-age,
.lcr-searchbar .age,
.lcr-searchbar input[type="checkbox"][name*="age"i],
.lcr-searchbar input[type="checkbox"][id*="age"i] {
  display: none !important;
}

/* Ensure image always fills the hero area */
.lcr-car__media {
  height: 380px;
}

.lcr-car__img {
  width: 100%;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center center !important;
  display: block;
}

/* Force the searchbar to wrap and push checkboxes into a full-width row */
.lcr-searchbar {
  display: flex;
  flex-wrap: wrap !important;
  gap: 12px;
  align-items: stretch;
}

/* Make the checkbox labels go to a new row */
.lcr-searchbar label:has(input[type="checkbox"]) {
  flex: 0 0 auto;
}

.lcr-searchbar {
  position: relative;
}

/* Create an "options row" behavior even if shortcode doesn't output a wrapper */
.lcr-searchbar label:has(input[type="checkbox"]) {
  order: 999;
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Make the first checkbox label take full width so it starts under */
.lcr-searchbar label:has(input[type="checkbox"]):first-of-type {
  flex: 0 0 100%;
}

/* Hide Age of driver checkbox (best-effort) */
.lcr-searchbar label[for*="age" i],
.lcr-searchbar input[type="checkbox"][name*="age" i],
.lcr-searchbar input[type="checkbox"][id*="age" i]{
  display:none !important;
}


/* === Add-ons (Extras) === */
.lcr-addons{
  margin: 16px 0 10px;
  padding: 14px 14px 10px;
  border: 1px solid rgba(15,23,42,.08);
  border-radius: 14px;
  background: rgba(255,255,255,.75);
}
.lcr-addons__title{
  font-weight: 700;
  margin-bottom: 10px;
  color: #0f172a;
}
.lcr-addons__list{
  display: grid;
  gap: 10px;
}
.lcr-addon{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(15,23,42,.04);
  cursor: pointer;
}
.lcr-addon input{
  margin: 0 10px 0 0;
  width: 16px;
  height: 16px;
}
.lcr-addon__label{
  flex: 1;
  font-weight: 600;
  color: #0f172a;
}
.lcr-addon__price{
  font-weight: 700;
  color: #0f172a;
  opacity: .85;
  white-space: nowrap;
}

/* ---------- Booking: softer typography ---------- */
.lcr-booking-page,
.lcr-booking-page h1,
.lcr-booking-page h2,
.lcr-booking-page h3,
.lcr-booking-page label {
    font-weight: 600 !important;
}

/* Button weight softer */
.lcr-booking-page .lcr-btn,
.lcr-booking-page button {
    font-weight: 700 !important;
}

/* ---------- Extras block: full-width + clean list ---------- */
.lcr-booking-page .lcr-extras {
    grid-column: 1 / -1;
    /* force full width inside left form grid */
    margin-top: 8px;
}

.lcr-booking-page .lcr-extras h3 {
    margin: 0 0 10px 0;
    font-size: 16px;
    font-weight: 600 !important;
}

.lcr-booking-page .lcr-extras-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    /* 2 columns */
    gap: 10px;
}

@media (max-width: 720px) {
    .lcr-booking-page .lcr-extras-list {
        grid-template-columns: 1fr;
    }
}

.lcr-booking-page .lcr-extra {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 12px;
    border-radius: 14px;
    border: 1px solid rgba(15, 23, 42, .10);
    background: rgba(255, 255, 255, .70);
}

.lcr-booking-page .lcr-extra label {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    font-weight: 600 !important;
}

.lcr-booking-page .lcr-extra small {
    opacity: .75;
    font-weight: 600 !important;
    text-align: right;
}

.lcr-booking-page .lcr-extra input[type="checkbox"] {
    width: 18px;
    height: 18px;
}

/* ===== Booking: fix checkbox row (21+ confirmation) ===== */
.lcr-booking-page .lcr-confirm-row{
  display:flex;
  align-items:center;
  gap:12px;
  margin: 10px 0 4px;
}

.lcr-booking-page .lcr-confirm-row input[type="checkbox"]{
  width:18px;
  height:18px;
  margin:0;
}

.lcr-booking-page .lcr-confirm-row label{
  margin:0;
  line-height:1.2;
  font-weight:600;
  color:#334155;
}

/* ===== Booking: extras rows alignment ===== */
.lcr-booking-page .lcr-extras{
  margin-top: 6px;
}

.lcr-booking-page .lcr-extras h3{
  margin: 14px 0 10px;
  font-weight:600;
}

.lcr-booking-page .lcr-extra{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 14px 14px;
}

.lcr-booking-page .lcr-extra input[type="checkbox"]{
  width:18px;
  height:18px;
  margin:0 12px 0 0;
  flex:0 0 auto;
}

.lcr-booking-page .lcr-extra label{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  width:100%;
  margin:0;
}

.lcr-booking-page .lcr-extra .lcr-extra-name{
  font-weight:600;
  color:#0f172a;
}

.lcr-booking-page .lcr-extra .lcr-extra-price{
  text-align:right;
  font-weight:600;
  color:#334155;
  white-space:nowrap;
  line-height:1.15;
}

.lcr-booking-page .lcr-extra .lcr-extra-price small{
  display:block;
  opacity:.7;
  font-weight:600;
}

/* ============================
   Add-ons + phone + checkbox fixes (scoped)
   ============================ */

/* Add-ons price alignment (use .lcr-left on span when needed) */
.lcr-addon-price.lcr-left{
  float:none;
  text-align:left;
  display:inline-block;
  margin-left:8px;
}

/* Do NOT let global theme CSS stretch checkboxes */
.lcr-booking-page input[type="checkbox"],
.lcr-searchbar input[type="checkbox"]{
  width:auto !important;
  height:auto !important;
  padding:0 !important;
  margin:0;
  box-shadow:none;
}

/* Keep checkbox + text on one line */
.lcr-booking-page .lcr-confirm{
  display:flex;
  align-items:center;
  gap:12px;
}
.lcr-booking-page .lcr-confirm input[type="checkbox"]{
  flex:0 0 auto;
}
.lcr-booking-page .lcr-confirm label{
  margin:0;
  display:inline;
}

/* Phone code + number: equal height to other fields */
:root{
  --lcr-field-h: 46px;
}

.lcr-phone-wrap{
  display:flex;
  gap:12px;
  align-items:stretch;
}

.lcr-phone-wrap .lcr-phone-code{
  flex:0 0 120px;
  width:120px;
}

.lcr-phone-wrap .lcr-phone-number{
  flex:1 1 auto;
  min-width:0;
}

/* Force consistent control height inside our widgets/pages */
.lcr-booking-page input[type="text"],
.lcr-booking-page input[type="email"],
.lcr-booking-page input[type="tel"],
.lcr-booking-page select,
.lcr-searchbar input[type="text"],
.lcr-searchbar select{
  height: var(--lcr-field-h) !important;
  line-height: calc(var(--lcr-field-h) - 2px) !important;
  padding: 0 14px !important;
  box-sizing:border-box;
}

/* Make select text vertically centered across themes */
.lcr-booking-page select,
.lcr-searchbar select{
  appearance:none;
  -webkit-appearance:none;
  -moz-appearance:none;
  background-position: right 12px center;
  background-repeat:no-repeat;
  padding-right:34px !important;
}

/* Prevent labels like "Pick-up date" from wrapping in the search bar */
.lcr-searchbar .lcr-field label{
  white-space:nowrap;
}

/* Make phone code select look like normal input */
.lcr-phone-code {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;

    background-color: #fff !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 12px !important;

    height: 46px;
    padding: 0 14px;
    font-size: 14px;
    line-height: 46px;

    box-shadow: none !important;
    outline: none;

    display: flex;
    align-items: center;
}

.lcr-phone-row {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 12px;
    align-items: end;
    /* aligns selects/inputs bottoms */
}

.lcr-phone-row label {
    display: block;
    margin-bottom: 6px;
}

.lcr-phone-row select,
.lcr-phone-row input {
    width: 100%;
}

/* =========================
   LCR Confirmation Page
========================= */
.lcr-confirm {
    max-width: 1180px;
    margin: 40px auto;
    padding: 0 16px;
}

.lcr-confirm__inner {
    display: grid;
    grid-template-columns: 420px 1fr;
    gap: 22px;
    align-items: start;
}

@media (max-width: 980px) {
    .lcr-confirm__inner {
        grid-template-columns: 1fr;
    }
}

/* LEFT: dark summary */
.lcr-confirm__summary {
    background: #10131a;
    color: #fff;
    border-radius: 20px;
    padding: 22px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, .18);
    position: sticky;
    top: 24px;
}

@media (max-width: 980px) {
    .lcr-confirm__summary {
        position: relative;
        top: auto;
    }
}

.lcr-confirm__summary-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 4px;
}

.lcr-confirm__summary-sub {
    font-size: 13px;
    color: rgba(255, 255, 255, .75);
}

.lcr-confirm__block {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, .10);
}

.lcr-confirm__label {
    font-size: 12px;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .65);
    margin-bottom: 10px;
}

.lcr-confirm__row {
    display: flex;
    gap: 12px;
    align-items: center;
}

.lcr-confirm__thumb {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    object-fit: cover;
    background: rgba(255, 255, 255, .08);
}

.lcr-confirm__car {
    font-weight: 600;
}

.lcr-confirm__muted {
    color: rgba(255, 255, 255, .65);
    font-size: 13px;
}

.lcr-confirm__mini-k {
    color: rgba(255, 255, 255, .65);
    font-size: 12px;
}

.lcr-confirm__mini-v {
    font-weight: 600;
    margin-top: 2px;
}

.lcr-confirm__mini-d {
    color: rgba(255, 255, 255, .65);
    font-size: 12px;
    margin-top: 2px;
}

.lcr-confirm__divider {
    height: 1px;
    margin: 14px 0;
    background: rgba(255, 255, 255, .10);
}

.lcr-confirm__price-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.lcr-confirm__price-row--total {
    border-bottom: none;
    padding-top: 12px;
}

.lcr-confirm__price-k {
    color: rgba(255, 255, 255, .80);
}

.lcr-confirm__price-v {
    font-weight: 600;
}

.lcr-confirm__addons ul {
    margin: 8px 0 0;
    padding-left: 18px;
    color: rgba(255, 255, 255, .85);
}

.lcr-confirm__help a {
    color: #9cc3ff;
    text-decoration: none;
}

.lcr-confirm__help a:hover {
    text-decoration: underline;
}

/* RIGHT: success */
.lcr-confirm__success {
    background: #fff;
    border-radius: 20px;
    padding: 26px;
    box-shadow: 0 30px 80px rgba(16, 19, 26, .10);
    min-height: 520px;
}

.lcr-confirm__check {
    display: flex;
    justify-content: center;
    margin-top: 8px;
}

.lcr-confirm__check-ring {
    width: 86px;
    height: 86px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    font-weight: 600;
    background: #36b37e;
    color: #fff;
    box-shadow: 0 20px 50px rgba(54, 179, 126, .25);
}

.lcr-confirm__success-title {
    text-align: center;
    margin: 18px 0 6px;
    font-size: 24px;
    font-weight: 600;
}

.lcr-confirm__success-sub {
    text-align: center;
    color: #5b6475;
    margin: 0 0 18px;
}

.lcr-confirm__pay {
    margin-top: 18px;
    border: 1px solid #eef1f6;
    border-radius: 16px;
    padding: 18px;
    background: #fbfcff;
}

.lcr-confirm__pay-title {
    font-weight: 600;
    margin-bottom: 12px;
}

.lcr-confirm__pay-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

@media (max-width: 700px) {
    .lcr-confirm__pay-grid {
        grid-template-columns: 1fr;
    }
}

.lcr-confirm__pay-k {
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 4px;
}

.lcr-confirm__pay-v code {
    background: #eef2ff;
    padding: 3px 8px;
    border-radius: 10px;
}

.lcr-confirm__pay-note {
    margin-top: 12px;
    font-size: 13px;
    color: #6b7280;
}

.lcr-confirm__cta {
    display: flex;
    justify-content: center;
    margin-top: 18px;
}

.lcr-confirm__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 18px;
    border-radius: 12px;
    background: #f2c94c;
    color: #111827;
    text-decoration: none;
    font-weight: 600;
}

.lcr-confirm__btn:hover {
    filter: brightness(.96);
}

.lcr-confirm__foot {
    text-align: center;
    color: #9aa3b2;
    margin-top: 18px;
    font-size: 12px;
}

.lcr-confirm-error {
    max-width: 900px;
    margin: 40px auto;
    padding: 18px;
    border: 1px solid #f0d3d3;
    background: #fff5f5;
    border-radius: 14px;
    color: #8a1f1f;
}