/* ═══════════════════════════════════════════════════════════════════
   Setly Car Manager — public.css
   Theme: dark luxury with gold accents (matches SetlyCars brand)
═══════════════════════════════════════════════════════════════════ */

:root {
  --sg: #C9A84C;           /* setly gold */
  --sg-light: #E2C06A;     /* gold highlight */
  --sg-dark: #A8882E;      /* gold shadow */
  --sg-pale: rgba(201,168,76,.12); /* tinted bg */
  --bg-dark: #0f0f0f;
  --bg-card: #181818;
  --bg-card2: #1e1e1e;
  --border: rgba(201,168,76,.25);
  --text: #e8e0cc;
  --text-muted: #888;
  --radius: 10px;
  --gold-grad: linear-gradient(135deg, #C9A84C 0%, #E2C06A 50%, #C9A84C 100%);
  --gold-grad-btn: linear-gradient(135deg, #b8942a 0%, #ddb84e 40%, #c9a84c 70%, #a8882e 100%);
}
/* ===== Intl Tel Input fix for CRM booking form ===== */
/* Autocomplete Dropdown Styling */
.crm-autocomplete-container {
    position: relative;
    width: 100%;
}
.iti { width: 100% !important; display: block !important; }
.iti__country-list { 
    max-width: 90vw !important; 
    z-index: 9999 !important; 
}
.crm-select-input {
    width: 100%;
    padding: 12px;
    border: 1px solid rgba(245,240,232,0.1);
    background-color: rgba(245,240,232,0.04);
    color: #F5F0E8;
    border-radius: 4px;
    font-family: 'DM Sans', sans-serif;
    appearance: none; /* Removes default arrow to allow for custom styling if needed */
}

.crm-select-input optgroup {
    background-color: #181410; /* Matches your dark theme bg-dark2 */
    color: #C9A84C; /* Matches your gold theme color */
}

.crm-select-input option {
    background-color: #121008;
    color: #F5F0E8;
}
.crm-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #1a1a1a;
    border: 1px solid #333;
    border-top: none;
    border-radius: 0 0 8px 8px;
    z-index: 999;
    max-height: 250px;
    overflow-y: auto;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    display: none;
}

.crm-suggestion-item {
    padding: 12px 15px;
    cursor: pointer;
    color: #eee;
    border-bottom: 1px solid #222;
    transition: all 0.2s;
    font-size: 0.9rem;
}

.crm-suggestion-item:last-child { border-bottom: none; }

.crm-suggestion-item:hover {
    background: #252525;
    color: #C9A84C; /* Brand Gold */
}

.crm-suggestion-item .emoji {
    margin-right: 10px;
    font-size: 1.1rem;
}
.crm-booking-card .iti--separate-dial-code .iti__selected-flag{
  width: 96px !important;
  padding: 0 12px !important;
}

.crm-booking-card .iti__flag{
  transform: scale(1.15) !important;
  transform-origin: left center !important;
}
.crm-booking-card .iti__tel-input,
.crm-booking-card input[type="tel"]#crm_client_phone{
  padding-left: 116px !important;
}
.crm-booking-card .iti{
  width: 100% !important;
  display: block !important;
}

.crm-booking-card .iti__tel-input,
.crm-booking-card input[type="tel"]#crm_client_phone{
  width: 100% !important;
  min-height: 54px !important;
  height: 54px !important;
  padding-left: 96px !important; /* space for flag + dial code */
  padding-right: 16px !important;
  border-radius: 14px !important;
  box-sizing: border-box !important;
  font-size: 15px !important;
  line-height: 1.2 !important;
}

.crm-booking-card .iti--separate-dial-code .iti__selected-flag{
  width: 78px !important;       /* bigger area for flag + code */
  padding: 0 12px !important;
  border-right: 1px solid #dfdfdf !important;
  border-radius: 14px 0 0 14px !important;
  background: #f3f3f3 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
}

.crm-booking-card .iti__selected-dial-code{
  margin-left: 8px !important;
  font-size: 14px !important;
  color: #444 !important;
  line-height: 1 !important;
}

.crm-booking-card .iti__flag-container{
  padding: 0 !important;
}

.crm-booking-card .iti__selected-country{
  display: flex !important;
  align-items: center !important;
  height: 100% !important;
}

.crm-booking-card .iti__arrow{
  margin-left: 6px !important;
}

.crm-booking-card .iti__country-list{
  border-radius: 14px !important;
  border: 1px solid #dfdfdf !important;
  box-shadow: 0 12px 30px rgba(0,0,0,0.12) !important;
  margin-top: 8px !important;
  max-width: 320px !important;
}

.crm-booking-card .iti input::placeholder{
  color: #9a9a9a !important;
}
/* ── Shared buttons ───────────────────────────────────────────── */
.crm-rental-dates-stack{
  display:flex !important;
  flex-direction:column !important;
  gap:16px !important;
  width:100% !important;
}

.crm-rental-date-item{
  display:block !important;
  width:100% !important;
  max-width:100% !important;
  flex:none !important;
}

.crm-rental-date-item label{
  display:block !important;
  width:100% !important;
  margin:0 0 8px 0 !important;
}

.crm-rental-date-item .crm-dt-wrap{
  display:block !important;
  width:100% !important;
}

.crm-rental-date-item input[type="datetime-local"]{
  display:block !important;
  width:100% !important;
  max-width:100% !important;
}
.crm-detail-right{
  position: relative !important;
}

.crm-booking-card{
  background: #ffffff !important;
  border: 1px solid rgba(0,0,0,0.08) !important;
  border-top: 1px solid rgba(0,0,0,0.08) !important;
  border-radius: 24px !important;
  padding: 30px !important;
  box-shadow: 0 18px 50px rgba(0,0,0,0.08) !important;
  color: #171717 !important;
  overflow: hidden !important;
}

.crm-booking-card::before,
.crm-booking-card::after{
  display: none !important;
  content: none !important;
}

.crm-booking-card-header{
  margin-bottom: 24px !important;
  padding-bottom: 18px !important;
  border-bottom: 1px solid rgba(0,0,0,0.08) !important;
}

.crm-booking-card-header h2{
  margin: 0 0 8px 0 !important;
  font-size: 32px !important;
  line-height: 1.15 !important;
  font-weight: 800 !important;
  color: #111111 !important;
  letter-spacing: -0.02em !important;
}

.crm-booking-card-subtitle{
  margin: 0 !important;
  font-size: 15px !important;
  line-height: 1.6 !important;
  color: #6b7280 !important;
}

.crm-booking-form{
  display: flex !important;
  flex-direction: column !important;
  gap: 22px !important;
}

.crm-form-section{
  margin: 0 !important;
  padding: 0 !important;
}

.crm-form-section-title{
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  margin: 0 0 14px 0 !important;
  padding: 0 0 10px 0 !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase !important;
  color: #b88a2a !important;
  border-bottom: 1px solid rgba(184,138,42,0.18) !important;
}

.crm-form-row{
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 14px !important;
}

/* Force the vertical row to a single column */
.crm-form-row-vertical {
  display: flex !important;
  flex-direction: column !important;
  gap: 16px !important;
  width: 100% !important;
}

/* Ensure individual fields stretch to the container width */
.crm-form-row-vertical .crm-field {
  width: 100% !important;
  max-width: 100% !important;
}

/* Optional: Adjust intl-tel-input container to be full width */
.crm-booking-card .iti {
  display: block !important;
  width: 100% !important;
}

.crm-field{
  width: 100% !important;
}

.crm-field-full{
  width: 100% !important;
}

.crm-field label{
  display: block !important;
  margin: 0 0 8px 0 !important;
  font-size: 14px !important;
  line-height: 1.4 !important;
  font-weight: 700 !important;
  color: #222222 !important;
}

.crm-field label small{
  color: #8a8a8a !important;
  font-weight: 500 !important;
}

.crm-req{
  color: #c0392b !important;
}

.crm-booking-card input,
.crm-booking-card select,
.crm-booking-card textarea{
  width: 100% !important;
  min-height: 54px !important;
  background: #f8f8f8 !important;
  border: 1px solid #dfdfdf !important;
  border-radius: 14px !important;
  padding: 14px 16px !important;
  font-size: 15px !important;
  color: #111111 !important;
  box-shadow: none !important;
  outline: none !important;
  transition: all 0.25s ease !important;
}

.crm-booking-card textarea{
  min-height: 120px !important;
  resize: vertical !important;
}

.crm-booking-card input::placeholder,
.crm-booking-card textarea::placeholder{
  color: #9a9a9a !important;
  opacity: 1 !important;
}

.crm-booking-card input:focus,
.crm-booking-card select:focus,
.crm-booking-card textarea:focus{
  background: #ffffff !important;
  border-color: #c9a84c !important;
  box-shadow: 0 0 0 4px rgba(201,168,76,0.14) !important;
}

.crm-dt-wrap{
  position: relative !important;
}

.crm-dt-wrap input[type="datetime-local"]{
  padding-right: 16px !important;
}

.crm-promo-row{
  display: grid !important;
  grid-template-columns: 1fr 170px !important;
  gap: 12px !important;
  align-items: stretch !important;
}

.crm-promo-input{
  min-width: 0 !important;
}

.crm-btn,
.crm-booking-card button{
  min-height: 54px !important;
  border-radius: 14px !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  transition: all 0.25s ease !important;
  cursor: pointer !important;
}

.crm-btn-outline,
.crm-apply-promo{
  background: #ffffff !important;
  border: 1px solid #d4b15a !important;
  color: #b88a2a !important;
  box-shadow: none !important;
}

.crm-btn-outline:hover,
.crm-apply-promo:hover{
  background: #fdf8ec !important;
  border-color: #b88a2a !important;
  color: #946d1d !important;
}

.crm-submit-btn,
.crm-btn-primary{
  width: 100% !important;
  min-height: 58px !important;
  margin-top: 4px !important;
  background: linear-gradient(135deg, #d6b25e 0%, #b88a2a 100%) !important;
  border: none !important;
  color: #ffffff !important;
  border-radius: 16px !important;
  box-shadow: 0 14px 28px rgba(184,138,42,0.25) !important;
}

.crm-submit-btn:hover,
.crm-btn-primary:hover{
  transform: translateY(-1px) !important;
  box-shadow: 0 18px 34px rgba(184,138,42,0.32) !important;
}

.crm-booking-note{
  margin: 12px 0 0 0 !important;
  text-align: center !important;
  font-size: 13px !important;
  color: #7b7b7b !important;
}

.crm-price-summary{
  background: #fcfaf5 !important;
  border: 1px solid rgba(184,138,42,0.18) !important;
  border-radius: 18px !important;
  padding: 18px !important;
}

.crm-ps-rows{
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
}

.crm-ps-row{
  display: flex !important;
  justify-content: space-between !important;
  gap: 12px !important;
  font-size: 15px !important;
  color: #333333 !important;
}

.crm-ps-total-row{
  margin-top: 8px !important;
  padding-top: 12px !important;
  border-top: 1px solid rgba(0,0,0,0.08) !important;
  font-size: 17px !important;
}

.crm-success-msg{
  background: #f3fbf5 !important;
  border: 1px solid #b7e3c0 !important;
  color: #1f5f34 !important;
  border-radius: 16px !important;
  padding: 16px !important;
  margin-bottom: 20px !important;
}

.crm-error-msg{
  background: #fff4f4 !important;
  border: 1px solid #f0bcbc !important;
  color: #9f2d2d !important;
  border-radius: 14px !important;
  padding: 12px 14px !important;
}

@media (max-width: 991px){
  .crm-booking-card{
    padding: 22px !important;
    border-radius: 20px !important;
  }

  .crm-form-row{
    grid-template-columns: 1fr !important;
  }

  .crm-promo-row{
    grid-template-columns: 1fr !important;
  }

  .crm-booking-card-header h2{
    font-size: 28px !important;
  }
}
.crm-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:138px;
  height:46px;
  padding:0 18px;
  border-radius:14px;
  font-weight:700;
  cursor:pointer;
  border:none;
  font-size:.86rem;
  transition:all .25s ease;
  text-decoration:none;
  text-align:center;
  line-height:1;
  letter-spacing:.06em;
}

.crm-btn-primary{
  background:linear-gradient(135deg,#d4af45 0%,#e3c15c 50%,#c99f2f 100%);
  color:#111;
  border:1px solid rgba(201,168,76,.35);
  box-shadow:0 6px 18px rgba(0,0,0,.18);
  text-transform:uppercase;
}

.crm-btn-primary:hover{
  transform:translateY(-2px);
  box-shadow:0 10px 24px rgba(0,0,0,.24);
  color:#111;
  filter:brightness(1.03);
}

.crm-btn-primary:active{
  transform:translateY(0);
  box-shadow:0 4px 12px rgba(0,0,0,.18);
}
.crm-btn-outline {
  background: transparent;
  color: var(--sg);
  border: 1.5px solid var(--sg);
  letter-spacing:.04em;
}
.crm-btn-outline:hover { background:var(--sg-pale);color:var(--sg-light); }

.crm-req { color:#f87171; }

/* ── Car list grid ────────────────────────────────────────────── */
.crm-fleet-layout{
  display:grid;
  grid-template-columns:300px minmax(0,1fr);
  gap:30px;
  align-items:start;
}

/* When the sidebar is hidden via the [car_rental_list show_filters="0"] attribute, collapse the layout to a single column. */
.crm-no-filters {
  grid-template-columns: 1fr;
}
.crm-fleet-sidebar{
  position:sticky;
  top:24px;
}
.crm-filter-card{
  background:var(--bg-card);
  border:1px solid var(--border);
  border-radius:16px;
  box-shadow:0 8px 32px rgba(0,0,0,.45);
  padding:22px;
}
.crm-filter-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  margin-bottom:20px;
}
.crm-filter-eyebrow{
  display:block;
  margin-bottom:4px;
  font-size:.72rem;
  font-weight:800;
  letter-spacing:.12em;
  text-transform:uppercase;
  color:var(--sg);
}
.crm-filter-head h3{
  margin:0;
  font-size:1.35rem;
  color:var(--text);
}
.crm-filter-reset{
  color:var(--text-muted);
  text-decoration:none;
  font-size:.85rem;
}
.crm-filter-reset:hover{ color:var(--sg-light); }
.crm-filter-group{
  display:flex;
  flex-direction:column;
  gap:8px;
  margin-bottom:16px;
}
.crm-filter-group label,
.crm-filter-label{
  font-size:.78rem;
  font-weight:800;
  letter-spacing:.06em;
  text-transform:uppercase;
  color:var(--text-muted);
}
.crm-filter-group input,
.crm-filter-group select{
  width:100%;
  box-sizing:border-box;
  background:rgba(255,255,255,.05);
  border:1px solid rgba(255,255,255,.12);
  border-radius:10px;
  color:var(--text);
  min-height:46px;
  padding:11px 14px;
}
.crm-filter-group input:focus,
.crm-filter-group select:focus{
  outline:none;
  border-color:rgba(201,168,76,.6);
  box-shadow:0 0 0 3px rgba(201,168,76,.12);
  background:rgba(201,168,76,.06);
}
.crm-filter-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
}
.crm-check{
  display:flex;
  align-items:center;
  gap:10px;
  font-size:.9rem;
  color:var(--text);
  text-transform:none !important;
  letter-spacing:normal !important;
  font-weight:600 !important;
}
.crm-check input{
  width:16px;
  height:16px;
  min-height:auto;
  padding:0;
  accent-color:var(--sg);
}
.crm-filter-actions{
  margin-top:6px;
}
.crm-filter-actions .crm-btn-primary{
  width:100% !important;
}
.crm-fleet-results{
  min-width:0;
}
.crm-results-toolbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  margin-bottom:18px;
}
.crm-results-copy{
  display:flex;
  align-items:baseline;
  gap:8px;
  color:var(--text-muted);
}
.crm-results-count{
  font-size:1.8rem;
  font-weight:900;
  color:var(--text);
}
.crm-sort-form{
  display:flex;
  align-items:center;
  gap:10px;
}
.crm-sort-form label{
  font-size:.8rem;
  font-weight:800;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:var(--text-muted);
}
.crm-sort-form select{
  min-width:210px;
  background:var(--bg-card);
  border:1px solid var(--border);
  border-radius:10px;
  color:var(--text);
  min-height:44px;
  padding:10px 14px;
}
.crm-car-list {
  /*
   * Display the car cards in a clean 3‑column grid on larger viewports.
   * Using repeat(3,1fr) ensures exactly three columns of equal width.
   */
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:24px;
  padding:8px 0 24px;
}

/*
 * When the filters and sorting UI are hidden via the [car_rental_list show_filters="0"] shortcode attribute,
 * apply a four‑column layout for the car grid on larger screens. This class is added dynamically in
 * templates/frontend-list.php when $show_filters is false.
 */
.crm-car-list-full {
  grid-template-columns: repeat(4, 1fr);
}

@media(max-width:960px){
  /* Reduce to two columns on medium screens when filters are hidden */
  .crm-car-list-full { grid-template-columns: repeat(2, 1fr); }
}

@media(max-width:600px){
  /* Single column on mobile even when filters are hidden */
  .crm-car-list-full { grid-template-columns:1fr; }
}
.crm-no-cars { color:var(--text-muted);font-style:italic; }
.crm-empty-state{
  grid-column:1 / -1;
  background:var(--bg-card);
  border:1px solid var(--border);
  border-radius:16px;
  padding:36px 24px;
  text-align:center;
  color:var(--text-muted);
}
.crm-empty-state h3{
  margin:0 0 10px;
  color:var(--text);
}
.crm-empty-state p{
  margin:0 0 18px;
}

.crm-car-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius:14px;overflow:hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,.45);
  transition: transform .25s, box-shadow .25s, border-color .25s;
  display:flex;flex-direction:column;
}
.crm-car-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 36px rgba(0,0,0,.6), 0 0 0 1px rgba(201,168,76,.4);
  border-color: rgba(201,168,76,.5);
}

.crm-car-photo { aspect-ratio:16/9;overflow:hidden;position:relative; }
.crm-car-photo::after {
  content:'';position:absolute;inset:0;
  background:linear-gradient(to top,rgba(0,0,0,.55) 0%,transparent 55%);
  pointer-events:none;
}
.crm-car-photo img {
  width:100%;height:100%;object-fit:cover;
  transition:transform .4s ease;
  filter:brightness(.92);
}
.crm-car-card:hover .crm-car-photo img { transform:scale(1.06);filter:brightness(1); }

.crm-car-info { padding:18px;display:flex;flex-direction:column;flex:1; }

.crm-car-brand {
  font-size:.7rem;font-weight:800;letter-spacing:.12em;
  text-transform:uppercase;
  background: var(--gold-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom:3px;
}
.crm-car-title { margin:0 0 12px;font-size:1.15rem;font-weight:700;color:var(--text); }
.crm-car-title a { color:inherit;text-decoration:none;transition:color .2s; }
.crm-car-title a:hover { color:var(--sg-light); }

.crm-car-specs { display:flex;flex-wrap:wrap;gap:6px;font-size:.79rem;color:var(--text-muted);margin-bottom:10px; }
.crm-car-specs span {
  background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.1);
  padding:3px 9px;border-radius:20px;
}

.crm-car-features { display:flex;flex-wrap:wrap;gap:5px;margin-bottom:12px; }
.crm-feat {
  background: var(--sg-pale);
  color: var(--sg-light);
  border:1px solid rgba(201,168,76,.3);
  padding:2px 9px;border-radius:20px;font-size:.76rem;font-weight:600;
}

.crm-car-footer{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding-top:16px;
}
.crm-car-footer .crm-btn-primary{
  width:auto !important;
  min-width:146px;
}
@media(max-width:600px){
  .crm-car-footer{
    align-items:center;
    gap:12px;
  }

  .crm-btn{
    min-width:124px;
    height:40px;
    padding:0 16px;
    font-size:.8rem;
  }
}
.crm-price-wrap { display:flex;align-items:baseline;gap:3px; }
.crm-price {
  font-size:1.5rem;font-weight:900;
  background: var(--gold-grad);
  -webkit-background-clip:text;
  -webkit-text-fill-color:transparent;
  background-clip:text;
}
.crm-price{
  display:flex;
  flex-direction:column;
  justify-content:center;
}
.crm-per-day { font-size:.78rem;color:var(--text-muted); }

/* Total price styled identically to the daily price when dates are selected */
.crm-total-price--hero {
  font-size:1.5rem;font-weight:900;
  background: var(--gold-grad);
  -webkit-background-clip:text;
  -webkit-text-fill-color:transparent;
  background-clip:text;
  display:flex;
  flex-direction:column;
  justify-content:center;
}


/* ═══════════════════════════════════════════════════════════════
   DETAIL / BOOKING PAGE
═══════════════════════════════════════════════════════════════ */
.crm-detail-wrap { max-width:1140px;margin:0 auto;padding:20px 0 60px; }

.crm-back-link {
  display:inline-flex;align-items:center;gap:6px;
  color:var(--text-muted);font-size:.85rem;text-decoration:none;
  margin-bottom:24px;padding:7px 14px;
  border:1px solid var(--border);border-radius:8px;
  transition:all .18s;background:rgba(255,255,255,.03);
}
.crm-back-link:hover { color:var(--sg-light);border-color:rgba(201,168,76,.5);background:var(--sg-pale); }

.crm-detail-layout {
  display:grid;
  grid-template-columns:1fr 430px;
  gap:36px;align-items:start;
}

/* Left */
.crm-detail-photo{
  background: linear-gradient(135deg, #f8f8f8 0%, #efefef 100%) !important;
  border: 1px solid rgba(0,0,0,0.06) !important;
  border-radius: 24px !important;
  padding: 24px !important;
  box-shadow: 0 12px 30px rgba(0,0,0,0.06) !important;
  overflow: hidden !important;
}

.crm-detail-photo img{
  display: block !important;
  width: 100% !important;
  height: auto !important;
  object-fit: contain !important;
  filter: none !important;
  mix-blend-mode: normal !important;
}

.crm-form-row-vertical{
  display: flex !important;
  flex-direction: column !important;
  gap: 16px !important;
}

.crm-field-full{
  width: 100% !important;
  max-width: 100% !important;
}
.crm-detail-photo img { width:100%;height:100%;object-fit:cover;filter:brightness(.95); }

.crm-detail-header { margin-bottom:22px; }
.crm-detail-brand {
  display:inline-block;font-size:.72rem;font-weight:800;
  letter-spacing:.12em;text-transform:uppercase;margin-bottom:6px;
  background:var(--gold-grad);
  -webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text;
}
.crm-detail-title {
  margin:0 0 12px;font-size:2.1rem;font-weight:900;
  color:#c9a84c;line-height:1.15;
}
.crm-detail-price-line { display:flex;align-items:baseline;gap:5px; }
.crm-detail-price {
  font-size:2.2rem;font-weight:900;
  background:var(--gold-grad);
  -webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text;
}
.crm-detail-per-day { font-size:.88rem;color:var(--text-muted); }

.crm-detail-specs-grid {
  display:grid;grid-template-columns:repeat(auto-fill,minmax(120px,1fr));
  gap:10px;margin-bottom:28px;
}
.crm-spec-item {
  display:flex;flex-direction:column;align-items:center;text-align:center;
  background:var(--bg-card2);
  border:1px solid var(--border);border-radius:10px;
  padding:14px 8px;gap:4px;
  transition:border-color .2s,background .2s;
}
.crm-spec-item:hover { border-color:rgba(201,168,76,.5);background:var(--sg-pale); }
.crm-spec-icon { font-size:1.25rem; }
.crm-spec-label { font-size:.67rem;color:var(--text-muted);font-weight:700;text-transform:uppercase;letter-spacing:.06em; }
.crm-spec-val { font-size:.86rem;font-weight:700;color:black; }

.crm-detail-section-title {
  font-size:.72rem;font-weight:800;color:var(--sg);
  text-transform:uppercase;letter-spacing:.1em;
  margin:0 0 12px;padding-bottom:6px;
  border-bottom:1px solid var(--border);
}
.crm-feat-grid { display:flex;flex-wrap:wrap;gap:8px;margin-bottom:24px; }
.crm-feat-item {
  display:flex;align-items:center;gap:7px;
  background:var(--sg-pale);color:var(--sg-light);
  border:1px solid rgba(201,168,76,.3);
  padding:7px 14px;border-radius:20px;font-size:.85rem;font-weight:600;
}
.crm-detail-desc { margin-bottom:24px; }
.crm-detail-desc-text { color:var(--text-muted);line-height:1.8;font-size:.93rem; }

/* Right — booking card */
.crm-booking-card {
  background:var(--bg-card);
  border:1px solid var(--border);
  border-radius:16px;
  box-shadow:0 8px 32px rgba(0,0,0,.5),0 0 0 1px rgba(201,168,76,.08);
  padding:28px;
  position:sticky;top:24px;
}
/* gold top accent line */
.crm-booking-card::before {
  content:'';display:block;
  height:3px;
  background:var(--gold-grad);
  border-radius:3px 3px 0 0;
  margin:-28px -28px 22px;
}

.crm-booking-card-header { margin-bottom:20px; }
.crm-booking-card-header h2 { margin:0 0 4px;font-size:1.3rem;font-weight:800;color:var(--text); }
.crm-booking-card-subtitle { margin:0;color:var(--text-muted);font-size:.85rem; }

.crm-form-section { margin-bottom:18px; }
.crm-form-section-title {
  font-size:.7rem;font-weight:800;color:var(--sg);
  text-transform:uppercase;letter-spacing:.1em;
  margin:0 0 10px;padding-bottom:6px;
  border-bottom:1px solid var(--border);
}

.crm-field { display:flex;flex-direction:column;gap:5px; }
.crm-field label { font-size:.79rem;font-weight:700;color:var(--text-muted);letter-spacing:.03em; }
.crm-field label small { font-weight:400;color:#555; }
.crm-field input,
.crm-field textarea,
.crm-field select {
  padding:10px 14px;
  background: rgba(255,255,255,.05);
  border:1px solid rgba(255,255,255,.12);
  border-radius:8px;font-size:.9rem;
  width:100%;box-sizing:border-box;
  color:var(--text);
  transition:border-color .18s,background .18s,box-shadow .18s;
}
.crm-field input::placeholder { color:#555; }
.crm-field input:focus,
.crm-field textarea:focus {
  outline:none;
  border-color:rgba(201,168,76,.6);
  background:rgba(201,168,76,.06);
  box-shadow:0 0 0 3px rgba(201,168,76,.12);
}

/* date input calendar icon color */
.crm-field input[type=date]::-webkit-calendar-picker-indicator,
.crm-field input[type=datetime-local]::-webkit-calendar-picker-indicator {
  filter:invert(.7) sepia(1) saturate(2) hue-rotate(10deg);
  cursor:pointer;
}

/* Datetime wrapper — ensures picker opens centred, not off-screen right */
.crm-dt-wrap { position:relative;width:100%; }
.crm-dt-wrap input[type=datetime-local] {
  width:100%;padding-right:38px;cursor:pointer;
}
/* Force the native picker to open from the left side of the input */
.crm-dt-wrap input[type=datetime-local]::-webkit-datetime-edit { padding-left:0; }
.crm-dt-wrap::after {
  content:'🗓';position:absolute;right:12px;top:50%;transform:translateY(-50%);
  pointer-events:none;font-size:.9rem;
}

/* Promo row */
.crm-promo-row { display:flex;gap:8px;align-items:stretch; }
.crm-promo-input {
  flex:1;padding:10px 14px;
  background:rgba(255,255,255,.05);border:1px solid rgba(255,255,255,.12);
  border-radius:8px;font-size:.9rem;color:var(--text);
}
.crm-promo-input::placeholder { color:#555; }
.crm-promo-input:focus { outline:none;border-color:rgba(201,168,76,.6);background:rgba(201,168,76,.06);box-shadow:0 0 0 3px rgba(201,168,76,.12); }
.crm-promo-msg { margin-top:6px;font-size:.8rem;padding:6px 10px;border-radius:6px; }
.crm-promo-msg.success { background:rgba(22,163,74,.15);color:#4ade80;border:1px solid rgba(22,163,74,.3); }
.crm-promo-msg.error   { background:rgba(220,38,38,.15);color:#f87171;border:1px solid rgba(220,38,38,.3); }

/* Price summary */
.crm-price-summary {
  background:rgba(201,168,76,.07);
  border:1px solid rgba(201,168,76,.3);
  border-radius:10px;padding:16px 18px;margin-bottom:16px;
}
.crm-ps-rows { display:flex;flex-direction:column;gap:7px; }
.crm-ps-row {
  display:flex;justify-content:space-between;align-items:center;
  font-size:.86rem;color:var(--text-muted);
}
.crm-ps-total-row {
  border-top:1px solid rgba(201,168,76,.3);padding-top:10px;margin-top:4px;
  font-size:1rem;color:var(--text);
}
.crm-ps-total {
  font-size:1.1rem;
  background:var(--gold-grad);
  -webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text;
}

/* Submit */
.crm-submit-btn {
  width:100%;padding:15px;font-size:1rem;
  margin-top:6px;border-radius:10px;
  letter-spacing:.1em;
}
.crm-booking-note { text-align:center;font-size:.76rem;color:#555;margin:8px 0 0; }

/* Error / success */
.crm-error-msg {
  background:rgba(220,38,38,.12);color:#f87171;
  border:1px solid rgba(220,38,38,.3);
  border-radius:8px;padding:10px 14px;font-size:.87rem;margin-bottom:12px;
}
.crm-success-msg {
  background:rgba(201,168,76,.1);
  border:1px solid rgba(201,168,76,.4);
  border-radius:10px;padding:24px;text-align:center;margin-bottom:16px;
}
.crm-success-icon { font-size:2.2rem;margin-bottom:8px; }
.crm-success-msg strong { display:block;font-size:1.05rem;color:var(--sg-light);margin-bottom:5px; }
.crm-success-msg p { margin:0;font-size:.87rem;color:var(--text-muted); }

/* Currency switcher */
.crm-currency-switcher { display:inline-flex;align-items:center;margin:0 0 20px; }
.crm-cs-label {
  display:flex;align-items:center;gap:8px;
  background:var(--bg-card);border:1px solid var(--border);
  border-radius:8px;padding:7px 14px;cursor:pointer;
  transition:border-color .18s,background .18s;
}
.crm-cs-label:hover { border-color:rgba(201,168,76,.5);background:var(--sg-pale); }
.crm-cs-globe { font-size:1.1rem;line-height:1; }
.crm-cs-select {
  border:none;background:transparent;
  font-size:.88rem;font-weight:700;color:var(--sg-light);
  cursor:pointer;outline:none;min-width:160px;
}
.crm-cs-select option { background:#1a1a1a;color:#e8e0cc; }

/* ── Responsive ───────────────────────────────────────────────── */
@media(max-width:960px){
  .crm-fleet-layout { grid-template-columns:1fr; }
  .crm-fleet-sidebar { position:static; }
  .crm-results-toolbar { flex-direction:column; align-items:flex-start; }
  .crm-sort-form { width:100%; justify-content:space-between; }
  .crm-sort-form select { min-width:0; width:100%; }
  .crm-detail-layout { grid-template-columns:1fr; }
  .crm-booking-card { position:static; }

  /* Reduce the number of columns on medium screens for better readability */
  .crm-car-list { grid-template-columns:repeat(2,1fr); }
}
@media(max-width:600px){
  .crm-filter-card { padding:18px; }
  .crm-filter-grid { grid-template-columns:1fr; }
  .crm-car-list { grid-template-columns:1fr; }
  .crm-form-row { grid-template-columns:1fr; }
  .crm-detail-specs-grid { grid-template-columns:repeat(3,1fr); }
  .crm-detail-title { font-size:1.5rem; }
  .crm-detail-price { font-size:1.7rem; }
  .crm-booking-card { padding:20px; }
  .crm-booking-card::before { margin:-20px -20px 18px; }
}
/* Fix for intl-tel-input alignment and sizing */

/* 1. Ensure the selected flag container has enough room for the dial code */
.crm-booking-card .iti--separate-dial-code .iti__selected-flag {
    width: auto !important; /* Allow it to grow with the content */
    padding: 0 12px !important;
    background: #f8f8f8 !important; /* Match your input background */
    border-right: 1px solid #dfdfdf !important;
    border-radius: 14px 0 0 14px !important;
}

/* 2. Remove the hardcoded padding-left and let the library calculate it, 
   OR set a sufficient fixed padding to prevent overlap */
.crm-booking-card .iti__tel-input,
.crm-booking-card input[type="tel"]#crm_client_phone {
    padding-left: 100px !important; /* Adjust this value if the code is long */
    margin: 0 !important;
}

/* 3. Fix the vertical alignment of the flag and arrow */
.crm-booking-card .iti__flag-container {
    padding: 0 !important;
}

.crm-booking-card .iti__selected-dial-code {
    font-size: 14px !important;
    font-weight: 500 !important;
    color: #111 !important;
    margin-left: 6px !important;
}

/* 4. Ensure the dropdown list doesn't break layout */
.crm-booking-card .iti__country-list {
    z-index: 100;
    background-color: #ffffff;
    border: 1px solid #dfdfdf;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}