*{margin:0;padding:0;box-sizing:border-box;font-family: Arial, sans-serif;}
body{background:#f4f6f8;color:#1f2937;overflow-x:hidden;min-width: 0;}

header{display:flex;justify-content:space-between;align-items:center;padding:18px 7%;background:rgba(255,255,255,.75);backdrop-filter:blur(10px);box-shadow:0 2px 20px rgba(0,0,0,.08);position:sticky;top:0;z-index:100;border-bottom:1px solid rgba(255,255,255,.3);direction:ltr}
.logo{font-size:26px;font-weight:800;letter-spacing:3px;background:linear-gradient(135deg,#0f172a 0%,#e85d04 100%);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text}
nav{display:flex;gap:28px;direction:ltr}
nav a{text-decoration:none;color:#374151;font-weight:600;font-size:15px;transition:color .25s}
nav a:hover{color:#e85d04}
#langBtn{border:2px solid #e85d04;background:rgba(232,93,4,.1);color:#e85d04;padding:8px 18px;border-radius:30px;cursor:pointer;font-weight:700;font-size:14px;transition:all .3s}
#langBtn:hover{background:linear-gradient(135deg,#e85d04 0%,#d84c03 100%);color:#fff;border-color:#d84c03;transform:translateY(-2px);box-shadow:0 6px 16px rgba(232,93,4,.3)}

/* ===== HERO SPLIT ===== */
.hero{
  background:linear-gradient(135deg,rgba(15,23,42,.55),rgba(232,93,4,.35)),
  url('https://images.unsplash.com/photo-1503376780353-7e6692767b70?q=80&w=1400&auto=format&fit=crop');
  background-size:cover;background-position:center;
  display:flex;align-items:center;justify-content:space-between;
  gap:40px;padding:60px 7%;min-height:85vh;position:relative;overflow:hidden;
  min-width:0;
}
.hero::before{content:'';position:absolute;top:0;left:0;right:0;bottom:0;
  background:radial-gradient(circle at 20% 50%,rgba(232,93,4,.1) 0%,transparent 50%),
  radial-gradient(circle at 80% 50%,rgba(16,185,129,.05) 0%,transparent 50%);pointer-events:none}

.hero-content{flex:1 1 0;max-width:520px;position:relative;z-index:2;min-width:0}
.hero-content h1{font-size:58px;font-weight:800;margin-bottom:18px;color:#fff;line-height:1.15}
.hero-content p{font-size:18px;color:#e5e7eb;margin-bottom:32px;line-height:1.7}
.btn{display:inline-block;background:linear-gradient(135deg,#e85d04 0%,#d84c03 100%);color:#fff;padding:13px 30px;border-radius:8px;text-decoration:none;font-weight:700;font-size:15px;border:none;cursor:pointer;transition:all .3s cubic-bezier(.34,1.56,.64,1);box-shadow:0 4px 15px rgba(232,93,4,.3);position:relative;overflow:hidden}
.btn:hover{background:linear-gradient(135deg,#d84c03 0%,#c44d00 100%);transform:translateY(-3px);box-shadow:0 8px 25px rgba(232,93,4,.4)}

/* ===== FORM WRAP ===== */
.hero-form-wrap{flex:0 0 600px;max-width:600px;width:100%;position:relative;z-index:2;min-width:0}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.lead-form{background:rgba(255,255,255,.97);border-radius:16px;padding:28px 26px 24px;
  box-shadow:0 20px 60px rgba(0,0,0,.25),0 4px 16px rgba(0,0,0,.1);
  border:1px solid rgba(255,255,255,.6);position:relative;overflow:hidden}
.lead-form::before{content:'';position:absolute;top:0;left:0;right:0;height:4px;background:linear-gradient(90deg,#e85d04 0%,#ff8c42 100%)}

.lead-form__tag{text-align:center!important;display:inline-block;background:rgba(232,93,4,.1);color:#e85d04;font-size:11px;font-weight:700;letter-spacing:1.5px;text-transform:uppercase;padding:15px 10px;border-radius:20px;margin-bottom:6px}
.lead-form__title{font-size:20px;font-weight:800;color:#0f172a;line-height:1.2;margin-bottom:20px}

.lead-form__body{display:flex;flex-direction:column;}
.lf-field{display:flex;flex-direction:column;gap:4px}
.lf-label{font-size:12px;font-weight:700;color:#374151;letter-spacing:.3px}

.lf-input{width:100%;height:42px;padding:0 12px;border:1.5px solid #e5e7eb;border-radius:8px;font-size:14px;color:#1f2937;background:#fff;outline:none;transition:border-color .2s,box-shadow .2s;appearance:none;-webkit-appearance:none;font-family:inherit}
.lf-input:focus{border-color:#e85d04;box-shadow:0 0 0 3px rgba(232,93,4,.12)}
.lf-input.lf-error{border-color:#ef4444;box-shadow:0 0 0 3px rgba(239,68,68,.1)}
.lf-input:disabled{background:#f9fafb;color:#9ca3af;cursor:not-allowed}

select.lf-input{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23e85d04' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 12px center;padding-right:36px}

.lf-phone-row{display:flex;gap:8px;position:relative}
/* .lf-phone{flex:1 1 0} */
.lf-err{font-size:11px;color:#ef4444;min-height:14px;display:block}

/* Searchable dial-code picker */
.dial-wrap{position:relative;flex:0 0 120px;width:120px}
.dial-trigger{display:flex;align-items:center;gap:6px;height:42px;padding:0 10px;border:1.5px solid #e5e7eb;border-radius:8px;background:#fff;cursor:pointer;font-size:13px;font-weight:600;color:#1f2937;transition:border-color .2s,box-shadow .2s;user-select:none;white-space:nowrap}
.dial-trigger:hover,.dial-trigger.open{border-color:#e85d04;box-shadow:0 0 0 3px rgba(232,93,4,.12)}
.dial-trigger .dt-flag{font-size:16px;line-height:1}
.dial-trigger .dt-code{font-size:13px;font-weight:700;color:#e85d04}
.dial-trigger .dt-arrow{margin-left:auto;font-size:10px;color:#9ca3af;transition:transform .2s}
.dial-trigger.open .dt-arrow{transform:rotate(180deg)}

.dial-dropdown{display:none;position:absolute;top:calc(100% + 4px);left:0;width:240px;background:#fff;border:1.5px solid #e5e7eb;border-radius:10px;box-shadow:0 8px 30px rgba(0,0,0,.15);z-index:999;overflow:hidden}
.dial-dropdown.show{display:block}
.dial-search-wrap{padding:8px 8px 6px;border-bottom:1px solid #f3f4f6}
.dial-search{width:100%;height:34px;padding:0 10px 0 30px;border:1.5px solid #e5e7eb;border-radius:6px;font-size:13px;color:#1f2937;outline:none;background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%239ca3af' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.35-4.35'/%3E%3C/svg%3E") no-repeat 8px center;font-family:inherit}
.dial-search:focus{border-color:#e85d04;box-shadow:0 0 0 2px rgba(232,93,4,.1)}
.dial-list{max-height:180px;overflow-y:auto}
.dial-list::-webkit-scrollbar{width:4px}
.dial-list::-webkit-scrollbar-thumb{background:#e85d04;border-radius:4px}
.dial-opt{display:flex;align-items:center;gap:8px;padding:8px 12px;cursor:pointer;font-size:13px;color:#1f2937;transition:background .15s}
.dial-opt:hover,.dial-opt.selected{background:#fff5f0}
.dial-opt.selected{font-weight:700;color:#e85d04}
.dial-opt .do-flag{font-size:16px}
.dial-opt .do-name{flex:1;font-size:12px;color:#6b7280;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.dial-opt .do-code{font-size:13px;font-weight:700;color:#374151;margin-left:auto}
.dial-no-result{padding:12px;font-size:13px;color:#9ca3af;text-align:center}

html[dir="rtl"] .dial-wrap{order:-1}
html[dir="rtl"] .dial-dropdown{left:auto;right:0}

.lf-submit{width:100%;height:46px;border-radius:8px;font-size:15px;font-weight:700;margin-top:4px;display:flex;align-items:center;justify-content:center;cursor:pointer}
.lf-submit:disabled{opacity:.65;cursor:not-allowed;transform:none!important}

/* Searchable dial-code picker */
.dial-wrap{position:relative;flex:0 0 84px;width:120px}
.dial-trigger{display:flex;align-items:center;gap:5px;height:42px;padding:0 10px;border:1.5px solid #e5e7eb;border-radius:8px;background:#fff;cursor:pointer;font-size:13px;font-weight:600;color:#1f2937;transition:border-color .2s,box-shadow .2s;user-select:none;white-space:nowrap}
.dial-trigger:hover,.dial-trigger.open{border-color:#e85d04;box-shadow:0 0 0 3px rgba(232,93,4,.12)}
.dial-trigger .dt-flag{font-size:16px;line-height:1}
.dial-trigger .dt-code{font-size:13px;font-weight:700;color:#e85d04}
.dial-trigger .dt-arrow{margin-left:auto;font-size:9px;color:#9ca3af;transition:transform .2s}
.dial-trigger.open .dt-arrow{transform:rotate(180deg)}
.dial-dropdown{display:none;position:absolute;top:calc(100% + 4px);left:0;width:250px;background:#fff;border:1.5px solid #e5e7eb;border-radius:10px;box-shadow:0 8px 30px rgba(0,0,0,.15);z-index:9999;overflow:hidden}
.dial-dropdown.show{display:block}
.dial-search-wrap{padding:8px 8px 6px;border-bottom:1px solid #f3f4f6}
.dial-search{width:100%;height:34px;padding:0 10px 0 30px;border:1.5px solid #e5e7eb;border-radius:6px;font-size:13px;color:#1f2937;outline:none;font-family:inherit;background:#f9fafb url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%239ca3af' stroke-width='2.5'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.35-4.35'/%3E%3C/svg%3E") no-repeat 8px center}
.dial-search:focus{border-color:#e85d04;background-color:#fff;box-shadow:0 0 0 2px rgba(232,93,4,.1)}
.dial-list{max-height:190px;overflow-y:auto}
.dial-list::-webkit-scrollbar{width:3px}
.dial-list::-webkit-scrollbar-thumb{background:#e85d04;border-radius:4px}
.dial-opt{display:flex;align-items:center;gap:8px;padding:8px 12px;cursor:pointer;font-size:13px;color:#1f2937;transition:background .12s}
.dial-opt:hover,.dial-opt.selected{background:#fff5f0}
.dial-opt.selected .do-name,.dial-opt.selected .do-code{color:#e85d04;font-weight:700}
.do-flag{font-size:16px;line-height:1;flex-shrink:0}
.do-name{flex:1;font-size:12px;color:#6b7280;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.do-code{font-size:13px;font-weight:600;color:#374151;flex-shrink:0}
.dial-no-result{padding:14px;font-size:13px;color:#9ca3af;text-align:center}
html[dir="rtl"] .dial-dropdown{left:auto;right:0}
html[dir="rtl"] .dial-search{padding:0 30px 0 10px;background-position:right 8px center}

/* RTL */
html[dir="rtl"] .lf-phone-row{flex-direction:row-reverse}
html[dir="rtl"] .lf-label{text-align:right}
html[dir="rtl"] select.lf-input{background-position:left 12px center;padding-right:12px;padding-left:36px}
html[dir="rtl"] .lead-form__title,.lead-form__tag{text-align:right;display:block}
html[dir="rtl"] .hero{direction:rtl}
html[dir="rtl"] .hero-content{text-align:right}
html[dir="rtl"] .lf-input:not(.lf-phone){direction:rtl;text-align:right}
html[dir="rtl"] .lf-phone{direction:ltr;text-align:left}
html[dir="rtl"] .dial-trigger{justify-content:flex-end}
html[dir="rtl"] .dial-trigger .dt-arrow{margin-left:0;margin-right:auto}
html[dir="rtl"] .dial-trigger .dt-flag{margin-right:0;margin-left:6px}

/* NAV hide on small */
@media(max-width:768px){nav{display:none}}

/* ===== RESPONSIVE ===== */
@media(max-width:900px){
  .hero{flex-direction:column;align-items:stretch;padding:40px 5%;min-height:unset;height:auto;gap:0px}
  .hero-content{max-width:100%;text-align:center}
  .hero-content h1{font-size:36px}
  .hero-content p{font-size:15px}
  .hero-form-wrap{flex:1 1 auto;max-width:100%}
  .form-row{grid-template-columns:1fr}
}

@media (max-width: 680px) {

    .lf-phone-row{
        display:flex;
        flex-direction:row !important;
        align-items:center;
        gap:10px;
    }

    .dial-wrap{
        width:110px;
        flex-shrink:0;
    }

    .lf-phone{
        flex:1;
        width:100%;
    }

}
@media(max-width:480px){
  .hero{padding:30px 4%}
  .lead-form{padding:22px 16px 20px}
  .lead-form__title{font-size:17px}
  .hero-content h1{font-size:28px}
  /* .form-row{grid-template-columns:1fr} */
  .form-row{display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 5px;}
  .lead-form__tag,.lead-form__title{text-align:center}
  .lf-code{flex:0 0 90px;width:90px;font-size:12px}
  .lf-input{font-size:13px}
}

/* ===== CARDS GRID ===== */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 28px;
  padding: 60px 7%;
}

/* ===== CAR CARD ===== */
.car-card {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

.car-card:hover {
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.15);
  transform: translateY(-8px);
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(232, 93, 4, 0.2);
}

/* Image wrapper — for badge positioning */
.car-card__img-wrap {
  position: relative;
  cursor: zoom-in;
  overflow: hidden;
}

.car-card__img-wrap::before {
  content: 'Preview';
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  padding: 8px 16px;
  color: #ffffff;
  background: rgba(15, 23, 42, 0.75);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
}

.car-card__img-wrap:hover::before {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.car-card__img-wrap img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  display: block;
}

.image-preview-trigger {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  background: transparent;
  color: inherit;
  cursor: zoom-in;
  padding: 0;
  margin: 0;
}

.image-preview-trigger span {
  display: none;
}

.image-preview-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(8px);
  z-index: 3000;
  padding: 20px;
}

.image-preview-modal--visible {
  display: flex;
}

.image-preview-dialog {
  width: min(95%, 820px);
  max-width: 940px;
  border-radius: 28px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 36px 90px rgba(0, 0, 0, 0.45);
  position: relative;
  opacity: 0;
  transform: translateY(24px);
  animation: previewDialogIn 0.35s ease-out forwards;
}

@keyframes previewDialogIn {
  from { opacity: 0; transform: translateY(24px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.image-preview-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.8);
  color: #ffffff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.2);
}

.image-preview-dialog img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  max-height: 75vh;
}

.image-preview-caption {
  padding: 18px 24px 22px;
  color: #f8fafc;
  font-size: 16px;
  font-weight: 700;
  text-align: center;
}

.rtl .image-preview-close {
  right: auto;
  left: 16px;
}

.car-card__actions {
  display: flex;
  gap: 8px;
}

.car-card__actions .car-card__btn {
  flex: 1;
  text-align: center;
}

.car-card__btn--book {
  background: #e85d04;
}

.car-card__btn--book:hover {
  background: #d84c03;
}

.car-card--filtered-out {
  display: none !important;
}

.car-card[data-filterable] {
  opacity: 1;
  transform: none;
}

/* ===== BADGE ===== */
.car-card__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: #e85d04;
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 4px;
  letter-spacing: 0.5px;
}

.car-card__badge--used {
  background: #6b7280;
}

.car-card__badge--offer {
  background: #16a34a;
}

/* ===== CARD BODY ===== */
.car-card__body {
  padding: 16px 18px 20px;
}

.car-card__name {
  font-size: 17px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 4px;
}

.car-card__price {
  display: block;
  font-size: 20px;
  font-weight: 800;
  color: #e85d04;
  margin-bottom: 10px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ===== DETAILS LIST ===== */
.car-card__details {
  list-style: none;
  margin-bottom: 18px;
  border-top: 1px solid #e5e7eb;
  padding-top: 4px;
  display: flex;
  flex-direction: column;
}

.car-card__details li {
  font-size: 13.5px;
  color: #374151;
  line-height: 1.5;
  padding: 6px 0;
  border-bottom: 1px dashed #d1d5db;
}

.car-card__details li:last-child {
  border-bottom: none;
}

.car-card__details li strong {
  color: #111827;
  font-weight: 700;
  margin-right: 4px;
}

/* ===== CARD BUTTON ===== */
.car-card__btn {
  display: inline-block;
  background: linear-gradient(135deg, #1f2937 0%, #374151 100%);
  color: #ffffff;
  padding: 9px 22px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 700;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 4px 12px rgba(31, 41, 55, 0.2);
}

.car-card__btn:hover {
  background: linear-gradient(135deg, #e85d04 0%, #d84c03 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(232, 93, 4, 0.3);
}

/* ===== PAGE BANNER ===== */
.page-banner {
  padding: 70px 8% 40px;
  text-align: center;
  background: linear-gradient(135deg, rgba(255, 247, 237, 0.6) 0%, rgba(244, 246, 248, 0.6) 50%, rgba(248, 251, 255, 0.6) 100%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(229, 231, 235, 0.5);
}

.page-banner h1 {
  font-size: 46px;
  font-weight: 800;
  color: #0f172a;
}

/* ===== FOOTER ===== */
footer {
  background: linear-gradient(135deg, #0f172a 0%, #1a2849 100%);
  color: #94a3b8;
  font-size: 14px;
  padding-top: 56px;
  margin-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding: 0 7% 48px;
  border-bottom: 1px solid #1e293b;
}

.footer-brand .footer-logo {
  font-size: 26px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 3px;
  margin-bottom: 14px;
}

.footer-brand p {
  line-height: 1.8;
  color: #94a3b8;
  max-width: 280px;
}

.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(30, 41, 59, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  text-decoration: none;
  font-size: 15px;
  font-weight: 700;
  transition: all 0.3s;
}

.footer-social a:hover {
  background: linear-gradient(135deg, #e85d04 0%, #d84c03 100%);
  color: #ffffff;
  border-color: rgba(232, 93, 4, 0.3);
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(232, 93, 4, 0.3);
}

.footer-col h5 {
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 18px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col ul li a {
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-col ul li a:hover {
  color: #e85d04;
}

.footer-col .contact-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 10px;
}

.footer-col .contact-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #64748b;
}

.footer-col .contact-value {
  color: #cbd5e1;
  font-size: 13.5px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 7%;
  font-size: 13px;
  color: #475569;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-bottom a {
  color: #475569;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-bottom a:hover {
  color: #e85d04;
}

/* RTL footer */
.rtl .footer-grid {
  direction: rtl;
}

.rtl .footer-brand p {
  text-align: right;
}

/* ===== RTL SUPPORT ===== */
.rtl {
  direction: rtl;
  text-align: right;
}

.rtl .car-card__badge {
  left: auto;
  right: 12px;
}

.rtl .car-card__details li strong {
  margin-right: 0;
  margin-left: 4px;
}

.booking-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 2000;
  padding: 12px;
}

.booking-modal--visible {
  display: flex;
}

.booking-modal__dialog {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  width: min(95%, 520px);
  padding: 48px 32px 32px;
  border-radius: 24px;
  position: relative;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  overflow-y: auto;
  max-height: 90vh;
}

.booking-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  line-height: 1;
  background: #f1f5f9;
  border: none;
  color: #64748b;
  cursor: pointer;
  border-radius: 50%;
  transition: all 0.2s;
}

.booking-modal__close:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.rtl .booking-modal__close {
  right: auto;
  left: 12px;
}

/* ── Car info banner inside booking modal ── */
.bm-car-info {
  background: linear-gradient(135deg, #fff7ed 0%, #fff3e8 100%);
  border: 1px solid rgba(232, 93, 4, 0.2);
  border-radius: 12px;
  padding: 14px 18px;
  margin-bottom: 20px;
  animation: bmCarInfoIn 0.35s cubic-bezier(0.22,1,0.36,1) both;
}
@keyframes bmCarInfoIn {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.bm-car-info__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.bm-car-info__name {
  font-size: 16px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.2;
}
.bm-car-info__brand {
  font-size: 12px;
  color: #6b7280;
  font-weight: 600;
  margin-top: 2px;
}
.bm-car-info__price {
  font-size: 20px;
  font-weight: 800;
  color: #e85d04;
  white-space: nowrap;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.booking-modal h2 {
  margin-bottom: 20px;
  font-size: 26px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.02em;
}

.booking-details {
  background: linear-gradient(135deg, rgba(248, 250, 252, 0.8) 0%, rgba(240, 249, 255, 0.8) 100%);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 20px;
  border-radius: 16px;
  margin-bottom: 28px;
  border: 1px solid rgba(232, 93, 4, 0.1);
}

.booking-details p {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: 14px;
}

.booking-details p:last-child {
  margin-bottom: 0;
}

.booking-details strong {
  color: #64748b;
  font-weight: 600;
}

.booking-details span {
  color: #0f172a;
  font-weight: 700;
  text-align: right;
}

.booking-field {
  display: block;
  margin-bottom: 20px;
}

.booking-field span {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #334155;
  margin-bottom: 8px;
}

.booking-field input,
.booking-field textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid rgba(226, 232, 240, 0.6);
  background: rgba(248, 250, 252, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 12px;
  font-size: 15px;
  transition: all 0.3s;
}

.booking-field input:focus,
.booking-field textarea:focus {
  outline: none;
  border-color: #e85d04;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 0 0 4px rgba(232, 93, 4, 0.15);
}

.booking-modal .btn {
  width: 100%;
  padding: 14px;
  font-size: 16px;
  font-weight: 700;
  border-radius: 12px;
  margin-top: 8px;
}

.booking-errors,
.booking-success {
  margin-bottom: 18px;
  padding: 16px 18px;
  border-radius: 12px;
  font-size: 14px;
}

.booking-errors {
  background: #fee2e2;
  color: #991b1b;
}

.booking-errors ul {
  list-style: disc;
  margin-left: 18px;
}

.booking-success {
  background: #47261b;
  color: #e34821;
}

/* ===== RESPONSIVE ===== */

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border: 1.5px solid rgba(232, 93, 4, 0.3);
  background: rgba(248, 250, 252, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #1e293b;
  font-weight: 700;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.btn-outline:hover {
  background: linear-gradient(135deg, rgba(232, 93, 4, 0.08) 0%, rgba(232, 93, 4, 0.04) 100%);
  border-color: #e85d04;
  color: #e85d04;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
}

.section-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 35px 5%;
}

.brands-section {
  background: #ffffff;
  padding: 80px 0;
}

.section-title {
  font-size: 40px;
  font-weight: 800;
  color: #0f172a;
  text-align: center;
  margin-bottom: 16px;
}

.brands-section .section-title {
  margin-bottom: 32px;
}

.brands-logos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.brand-logo-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  padding: 24px 16px;
  background: rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  min-height: 190px;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.08);
}

.brand-logo-card:hover {
  background: rgba(255, 255, 255, 0.34);
  transform: translateY(-7px) scale(1.01);
  box-shadow: 0 22px 56px rgba(0, 0, 0, 0.14);
  border-color: rgba(232, 93, 4, 0.3);
}

.brand-logo-card:hover .brand-logo-name {
  color: #1f2937;
}

.brand-logo-img {
  width: 100px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 20px;
  border: 1px solid rgba(229, 231, 235, 0.65);
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.7);
}
.brand-logo-img img {
  max-width: 70%;
  max-height: 70%;
  object-fit: contain;
  filter: saturate(1.1) contrast(1.05);
}

.brand-placeholder {
  width: 70px;
  height: 70px;
  background: #e2e8f0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 800;
  color: #475569;
}

.brand-logo-name {
  font-size: 15px;
  font-weight: 600;
  color: #334155;
  text-align: center;
}

.brands-section .btn-outline {
  margin: 0 auto;
}

.origin-section {
  position: relative;
  overflow: hidden;
  background-image: linear-gradient(180deg, rgba(15, 23, 42, 0.84) 0%, rgba(15, 23, 42, 0.65) 45%, rgba(15, 23, 42, 0.18) 100%), url('../image/Renault-hero.png');
  background-size: cover, cover;
  background-position: center center, center center;
  background-repeat: no-repeat;
  animation: originBgMove 18s ease infinite;
}

.origin-section::before,
.origin-section::after {
  content: '';
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  filter: blur(58px);
  opacity: 0.45;
  pointer-events: none;
  z-index: 0;
}

.origin-section::before {
  top: -120px;
  left: -90px;
  background: radial-gradient(circle, rgba(232, 93, 4, 0.18) 0%, transparent 65%);
  animation: floatSlow 18s ease-in-out infinite;
}

.origin-section::after {
  bottom: -100px;
  right: -100px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.16) 0%, transparent 62%);
  animation: floatSlow 20s ease-in-out infinite;
}

.origin-section > .section-container {
  position: relative;
  z-index: 1;
}

.origin-section .section-title {
  text-align: center;
  margin-bottom: 40px;
  color:whitesmoke;
}

.origin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 20px;
  margin-top: 0;
}

@keyframes originBgMove {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.origin-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  padding: 18px;
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 24px 55px rgba(0, 0, 0, 0.08);
}

.origin-card:hover {
  border-color: rgba(232, 93, 4, 0.35);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.16);
  transform: translateY(-6px);
  background: rgba(255, 255, 255, 0.3);
}

.origin-flag {
  width: 58px;
  height: 38px;
  margin-bottom: 14px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.origin-flag img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.15) contrast(1.02);
}

.flag-placeholder {
  width: 100%;
  height: 100%;
  background: #cbd5e1;
}

.origin-name {
  font-size: 14px;
  font-weight: 600;
  color: #f7f7f8;
}

/* --- Tablet: 1024px --- */
@media (max-width: 1024px) {
  .detail-wrapper {
    grid-template-columns: 220px 1fr;
  }
  .detail-specs {
    grid-column: 1 / -1;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 32px;
  }

  .footer-brand p {
    margin: 0 auto 14px;
  }

  .footer-social {
    justify-content: center;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }
}

/* --- Small Mobile: 480px --- */
@media (max-width: 768px) {

  /* BOOKING MODAL MOBILE */
  .booking-modal {
    padding: 0;
    align-items: flex-end; /* slide up from bottom on mobile */
  }

  .booking-modal__dialog {
    /* width: 100%;
    max-width: none; */
    border-radius: 20px 20px 0 0;
    /* padding: 40px 20px 24px; */
    max-height: 95vh;
  }

  .booking-modal__close {
    top: 10px;
    right: 10px;
  }

  .rtl .booking-modal__close {
    left: 10px;
  }

  .booking-details {
    padding: 14px;
  }

  .booking-details strong {
    width: 100px;
    font-size: 13px;
  }

  /* HEADER */
  header {
    flex-wrap: wrap;
    padding: 14px 5%;
    gap: 0;
    position: relative;
  }

  .logo {
    font-size: 22px;
  }

  /* Hamburger toggle */
  .nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    margin-left: auto;
  }

  .nav-toggle span {
    display: block;
    height: 2px;
    background: #1f2937;
    border-radius: 2px;
    transition: all 0.3s;
  }

  /* Nav hidden by default on mobile */
  nav {
    display: none;
    flex-direction: column;
    width: 100%;
    gap: 0;
    background: #ffffff;
    border-top: 1px solid #f3f4f6;
    margin-top: 10px;
    padding: 8px 0;
  }

  nav.open {
    display: flex;
  }

  nav a {
    padding: 12px 16px;
    border-bottom: 1px solid #f9fafb;
    font-size: 15px;
  }

  /* Fix dropdown on mobile */
  .nav-dropdown__menu {
    position: static;
    transform: none;
    box-shadow: none;
    border: none;
    padding: 0;
    width: 100%;
    display: none;
    animation: none;
  }

  .nav-dropdown.open .nav-dropdown__menu {
    display: block;
    background: #f8fafc;
  }

  .nav-dropdown__menu::before,
  .nav-dropdown__menu::after {
    display: none;
  }

  .nav-dropdown__trigger {
    width: 100%;
    text-align: left;
    padding: 12px 16px;
    border-bottom: 1px solid #f9fafb;
    font-size: 15px;
  }

  .rtl .nav-dropdown__trigger {
    text-align: right;
  }

  .brands-logos-grid {
    grid-template-columns: 1fr 1fr;
    padding: 10px;
  }

  #langBtn {
    margin-top: 10px;
    width: 100%;
    text-align: center;
    padding: 10px;
    border-radius: 6px;
  }

  /* HERO */
  .hero {
    height: auto;
    min-height: 60vh;
    padding: 15px 5% 50px;
    align-items: flex-start;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero h1 {
    font-size: 30px;
    margin-bottom: 14px;
  }

  .hero p {
    font-size: 15px;
    margin-bottom: 24px;
  }

  .btn {
    padding: 11px 24px;
    font-size: 14px;
  }

  .mobile-btn{
    display:none;
  }

  /* FILTER BAR MOBILE */
  .filter-bar__inner {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 20px 16px;
  }

  .filter-actions {
    grid-column: auto;
    flex-direction: column;
    width: 100%;
  }

  .filter-btn {
    width: 100%;
  }

  /* PAGE BANNER */
  .page-banner {
    padding: 40px 5% 24px;
  }

  .page-banner h1 {
    font-size: 26px;
  }

  /* CARDS GRID */
  .cards {
    grid-template-columns: 1fr;
    padding: 28px 5%;
    gap: 18px;
  }

  .car-card__img-wrap img {
    height: 200px;
  }

  /* PAGINATION */
  .pagination {
    padding: 10px 5% 36px;
    gap: 4px;
  }

  .pagination__btn {
    min-width: 34px;
    height: 34px;
    font-size: 13px;
  }

  /* DETAIL PAGE */
  .detail-wrapper {
    grid-template-columns: 1fr;
    padding: 16px 5%;
    gap: 16px;
  }

  .detail-sidebar {
    position: static; /* disable sticky on mobile */
    order: 3;         /* push sidebar below gallery + specs */
    width: 100%;
  }

  .detail-specs {
    grid-column: auto;
    order: 2;
    width: 100%;
  }

  .detail-main {
    order: 1;
    width: 100%;
  }

  .detail-title-row {
    flex-direction: column;
    gap: 4px;
  }

  .detail-car-title {
    font-size: 20px;
  }

  .detail-price {
    font-size: 20px;
  }

  .gallery__main img {
    height: 220px;
  }

  .gallery__thumbs {
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
  }

  .thumb {
    height: 64px;
  }

  /* COLOR PICKER */
  .color-picker__swatches {
    gap: 8px;
  }

  .swatch {
    width: 34px;
    height: 34px;
  }

  /* ADDITIONAL SECTION */
  .additional-section {
    margin: 0 5% 24px;
    padding: 20px 16px;
  }

  .additional-title {
    font-size: 18px;
  }

  /* TABS */
  .tabs {
    flex-wrap: wrap;
    gap: 4px;
    border-bottom: none;
  }

  .tab-btn {
    padding: 9px 14px;
    font-size: 11px;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
  }

  .tab-btn.active {
    margin-bottom: 0;
    border-color: #e85d04;
  }

  .tab-content {
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    margin-top: 8px;
    padding: 18px 14px;
  }

  .tab-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  /* BREADCRUMB */
  .breadcrumb {
    padding: 10px 5%;
    font-size: 12px;
  }

  /* FOOTER */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 0 5% 36px;
  }

  .footer-brand p {
    max-width: 100%;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    padding: 16px 5%;
    gap: 6px;
  }
}

/* --- Small phones: 480px --- */
@media (max-width: 480px) {
  .hero h1 {
    font-size: 26px;
  }

  .cards {
    padding: 20px 4%;
  }

  .gallery__thumbs {
    grid-template-columns: repeat(4, 1fr);
  }

  .thumb {
    height: 54px;
  }

  .specs-table {
    font-size: 12.5px;
  }

  .tab-btn {
    font-size: 10px;
    padding: 8px 10px;
  }
}

/* Highlight color helper */
.hl {
  color: #e85d04;
}

/* ===== BREADCRUMB ===== */
.breadcrumb {
  padding: 12px 7%;
  font-size: 13px;
  color: #6b7280;
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
}

.breadcrumb a {
  color: #e85d04;
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

/* ===== 3-COLUMN WRAPPER ===== */
.detail-wrapper {
  display: grid;
  grid-template-columns: 260px 1fr 280px;
  gap: 24px;
  padding: 28px 7%;
  align-items: start;
}

/* ===== SIDEBAR BOXES ===== */
.sidebar-box {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 18px;
  margin-bottom: 20px;
}

.sidebar-title {
  font-size: 15px;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid #f3f4f6;
}

.dealer-name {
  font-size: 13.5px;
  color: #374151;
}

/* ===== LOAN CALCULATOR ===== */
.calc-form {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.calc-form label {
  font-size: 12px;
  color: #6b7280;
  margin-top: 4px;
}

.calc-form input {
  border: 1px solid #d1d5db;
  border-radius: 4px;
  padding: 6px 10px;
  font-size: 13px;
  color: #1f2937;
  background: #f9fafb;
  width: 100%;
}

.calc-form input[readonly] {
  background: #f3f4f6;
  color: #6b7280;
}

.calc-btn {
  margin-top: 10px;
  background: #e85d04;
  color: #ffffff;
  border: none;
  border-radius: 5px;
  padding: 9px;
  font-weight: 700;
  font-size: 13.5px;
  cursor: pointer;
  transition: background 0.25s;
}

.calc-btn:hover {
  background: #c44d00;
}

/* ===== FEATURED CARS ===== */
.featured-car {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid #f3f4f6;
}

.featured-car:last-of-type {
  border-bottom: none;
  margin-bottom: 14px;
}

.featured-car img {
  width: 68px;
  height: 52px;
  object-fit: cover;
  border-radius: 5px;
  flex-shrink: 0;
}

.featured-car__info {
  display: flex;
  flex-direction: column;
  font-size: 12.5px;
  color: #374151;
  line-height: 1.5;
}

.featured-car__info strong {
  color: #111827;
  font-size: 13px;
}

.featured-price {
  color: #e85d04;
  font-weight: 700;
  font-size: 13.5px;
}

.all-cars-btn {
  display: inline-block;
  background: #e85d04;
  color: #ffffff;
  padding: 7px 18px;
  border-radius: 5px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.25s;
}

.all-cars-btn:hover {
  background: #c44d00;
}

/* ===== DETAIL MAIN (CENTER) ===== */
.detail-title-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 10px;
}

.detail-car-title {
  font-size: 26px;
  font-weight: 700;
  color: #1f2937;
}

.detail-price-box {
  font-size: 15px;
  color: #6b7280;
  white-space: nowrap;
}

.detail-price {
  font-size: 24px;
  font-weight: 800;
  color: #e85d04;
  margin-left: 6px;
}

/* ===== GALLERY ===== */
.gallery__main {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  overflow: hidden;
  background: #000;
}

.gallery__main img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  display: block;
  transition: opacity 0.25s, filter 0.35s;
}

.gallery__thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 10px;
}

.thumb {
  width: 100%;
  height: 80px;
  object-fit: cover;
  border-radius: 6px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color 0.2s, opacity 0.2s;
  opacity: 0.75;
}

.thumb:hover,
.thumb.active {
  border-color: #e85d04;
  opacity: 1;
}

/* ===== SPECS (RIGHT SIDEBAR) ===== */
.detail-specs {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 20px;
}

.specs-title {
  font-size: 15px;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 12px;
}

.specs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}

.specs-table tr {
  border-bottom: 1px solid #f3f4f6;
}

.specs-table tr:last-child {
  border-bottom: none;
}

.specs-table td {
  padding: 7px 4px;
  color: #374151;
  vertical-align: top;
}

.spec-label {
  font-weight: 700;
  color: #111827;
  width: 48%;
  white-space: nowrap;
}

/* ===== ADDITIONAL INFO SECTION ===== */
.additional-section {
  background: #ffffff;
  margin: 0 7% 40px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 32px 36px;
}

.additional-title {
  font-size: 22px;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 10px;
}

.additional-hr {
  border: none;
  border-top: 1px solid #e5e7eb;
  margin-bottom: 22px;
}

.additional-text {
  font-size: 14px;
  color: #374151;
  line-height: 1.8;
  margin-bottom: 32px;
}

/* ===== TABS ===== */
.tabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid #e5e7eb;
  margin-bottom: 0;
}

.tab-btn {
  background: #f3f4f6;
  border: none;
  padding: 12px 28px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  cursor: pointer;
  color: #6b7280;
  border-radius: 6px 6px 0 0;
  transition: background 0.2s, color 0.2s;
}

.tab-btn:hover {
  color: #e85d04;
}

.tab-btn.active {
  background: #f3f4f6;
  color: #e85d04;
  border-bottom: 2px solid #f3f4f6;
  margin-bottom: -2px;
}

/* ===== TAB CONTENT ===== */
.tab-content {
  display: none;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-top: none;
  border-radius: 0 0 8px 8px;
  padding: 24px 28px;
}

.tab-content.active {
  display: block;
}

.tab-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 40px;
}

.tab-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tab-list li {
  font-size: 13.5px;
  color: #374151;
  padding-left: 14px;
  position: relative;
}

.tab-list li::before {
  content: '•';
  color: #e85d04;
  font-size: 16px;
  position: absolute;
  left: 0;
  top: -1px;
}

.tab-list li strong {
  color: #111827;
  font-weight: 700;
  margin-right: 4px;
}

/* ===== PAGINATION ===== */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  padding: 10px 7% 50px;
  flex-wrap: wrap;
}

.pagination__btn {
  min-width: 38px;
  height: 38px;
  padding: 0 12px;
  border: 1px solid #d1d5db;
  background: #ffffff;
  color: #374151;
  font-size: 14px;
  font-weight: 600;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.pagination__btn:hover:not(:disabled) {
  background: #fff7ed;
  border-color: #e85d04;
  color: #e85d04;
}

.pagination__btn.active {
  background: #e85d04;
  border-color: #e85d04;
  color: #ffffff;
}

.pagination__btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

/* ===== SIDEBAR STICKY FIX ===== */
.detail-sidebar {
  position: sticky;
  top: 80px; /* clears the sticky header */
  align-self: start;
}

/* ===== COLOR PICKER ===== */
.color-picker {
  margin-top: 20px;
  padding: 16px 18px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
}

.color-picker__label {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: #374151;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.color-picker__swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.swatch {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 3px solid #e5e7eb;
  cursor: pointer;
  position: relative;
  transition: border-color 0.2s, transform 0.15s;
  box-shadow: 0 1px 4px rgba(0,0,0,0.12);
  outline: none;
}

.swatch:hover {
  transform: scale(1.12);
  border-color: #9ca3af;
}

.swatch.active {
  border-color: #e85d04;
}

/* Checkmark on selected swatch */
.swatch.active::after {
  content: '✓';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 900;
  color: #ffffff;
  text-shadow: 0 1px 3px rgba(0,0,0,0.5);
  /* center the pseudo-element text */
  line-height: 34px;
  text-align: center;
  width: 100%;
}

/* White swatch needs dark checkmark */
.swatch[style*="#ffffff"].active::after,
.swatch[style*="#e7e5e4"].active::after,
.swatch[style*="#d1d5db"].active::after {
  color: #374151;
  text-shadow: none;
}

.color-picker__selected {
  margin-top: 12px;
  font-size: 13.5px;
  color: #6b7280;
}

.color-picker__selected strong {
  color: #111827;
  margin-left: 4px;
}

.rtl .color-picker__selected strong {
  margin-left: 0;
  margin-right: 4px;
}

/* ===== FILTER BAR ===== */
.filter-bar {
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
  padding: 20px 7%;
}

.filter-bar__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: flex-end;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex: 1 1 140px;
  min-width: 120px;
}

.filter-group label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #6b7280;
}

.filter-group select,
.filter-group input {
  border: 1px solid #d1d5db;
  border-radius: 6px;
  padding: 9px 12px;
  font-size: 13.5px;
  color: #1f2937;
  background: #f9fafb;
  outline: none;
  transition: border-color 0.2s;
  width: 100%;
}

.filter-group select:focus,
.filter-group input:focus {
  border-color: #e85d04;
  background: #ffffff;
}

.filter-actions {
  display: flex;
  gap: 8px;
  align-items: flex-end;
  flex-shrink: 0;
}

.filter-btn {
  padding: 9px 22px;
  border: none;
  border-radius: 6px;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  background: #e85d04;
  color: #ffffff;
  transition: background 0.2s;
  white-space: nowrap;
}

.filter-btn:hover {
  background: #c44d00;
}

.filter-btn--reset {
  background: #f3f4f6;
  color: #374151;
  border: 1px solid #d1d5db;
}

.filter-btn--reset:hover {
  background: #e5e7eb;
}

/* ===== HOME SECTION WRAPPER ===== */
.home-section {
  padding: 0 0 10px;
}

.home-section__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 48px 7% 0;
}

.home-section__head h2,
.section-title,
.offers-banner h2 {
  font-size: 40px;
  font-weight: 800;
  color: #0f172a;
  position: relative;
  display: inline-block;
}

.home-section__head h2::before,
.home-section__head h2::after,
.section-title::before,
.section-title::after,
.offers-banner h2::before,
.offers-banner h2::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 3px;
  background: linear-gradient(to right, #e95f1a, #0c0c0c);
  opacity: 0.85;
  transition: transform 0.4s ease-out;
  transform: scaleX(0);
}

.home-section__head h2::before,
.section-title::before,
.offers-banner h2::before {
  top: -10px;
  left: 0;
  transform-origin: left;
}

.home-section__head h2::after,
.section-title::after,
.offers-banner h2::after {
  bottom: -10px;
  left: 0;
  transform-origin: right;
}

.home-section__head h2:hover::before,
.home-section__head h2:hover::after,
.section-title:hover::before,
.section-title:hover::after,
.offers-banner h2:hover::before,
.offers-banner h2:hover::after {
  transform: scaleX(1);
}

.see-all {
  font-size: 15px;
  font-weight: 700;
  color: #e85d04;
  text-decoration: none;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  gap: 6px;
}

.see-all:hover {
  color: #c44d00;
  transform: translateX(4px);
}

/* ===== NO RESULTS ===== */
.no-results {
  text-align: center;
  padding: 40px 7%;
  color: #6b7280;
  font-size: 15px;
}

/* ===== OFFERS BANNER ===== */
.offers-banner {
  margin: 60px 7% 0;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(31, 41, 55, 0.95) 50%, rgba(232, 93, 4, 0.08) 100%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 60px 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(232, 93, 4, 0.2);
  box-shadow: 0 8px 32px rgba(232, 93, 4, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.offers-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(232, 93, 4, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  filter: blur(60px);
  animation: floatSlow 20s ease-in-out infinite;
  pointer-events: none;
}

.offers-banner::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  filter: blur(50px);
  animation: floatSlow 25s ease-in-out infinite reverse;
  pointer-events: none;
}

.offers-banner__content {
  max-width: 620px;
  position: relative;
  z-index: 2;
}

.offer-preview-popup {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.28s ease, transform 0.28s ease;
  position: relative;
  z-index: 2;
  pointer-events: none;
  flex-shrink: 0;
}

.offers-banner:hover .offer-preview-popup {
  opacity: 1;
  transform: translateY(0);
}

.offer-preview-hint {
  position: absolute;
  top: -28px;
  right: 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.9);
  letter-spacing: 0.2px;
  font-weight: 600;
  background: rgba(15, 23, 42, 0.7);
  padding: 6px 12px;
  border-radius: 999px;
  pointer-events: none;
}

.offer-preview-card {
  width: 320px;
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.16);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  position: relative;
}

.offer-preview-card img {
  display: block;
  width: 100%;
  height: 240px;
  object-fit: cover;
  filter: saturate(1.05) contrast(1.05);
}

.offer-preview-label {
  position: absolute;
  bottom: 16px;
  left: 16px;
  background: rgba(232, 93, 4, 0.95);
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 999px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.offers-banner__tag {
  display: inline-block;
  background: linear-gradient(135deg, #e85d04 0%, #d84c03 100%);
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 6px 16px;
  border-radius: 50px;
  margin-bottom: 18px;
  box-shadow: 0 4px 12px rgba(232, 93, 4, 0.4);
  animation: pulse 2.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 4px 12px rgba(232, 93, 4, 0.4); }
  50% { box-shadow: 0 6px 20px rgba(232, 93, 4, 0.6); }
}

.offers-banner h2 {
  font-size: 42px;
  font-weight: 900;
  color: #ffffff;
  margin-bottom: 14px;
  line-height: 1.15;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #ffffff 0%, #e5e7eb 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.offers-banner p {
  font-size: 16px;
  color: #cbd5e1;
  margin-bottom: 28px;
  line-height: 1.8;
  font-weight: 500;
}

.offers-banner .btn {
  position: relative;
  padding: 14px 36px;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.5px;
  box-shadow: 0 6px 20px rgba(232, 93, 4, 0.4);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ===== RESPONSIVE — FILTER + OFFERS ===== */
@media (max-width: 768px) {
  .filter-bar {
    padding: 16px 5%;
  }

  .filter-bar__inner {
    gap: 10px;
  }

  .filter-group {
    flex: 1 1 calc(50% - 10px);
    min-width: 0;
  }

  .filter-actions {
    width: 100%;
  }

  .filter-btn {
    flex: 1;
    text-align: center;
  }

  .home-section__head {
    padding: 24px 5% 0;
  }

  .home-section__head h2 {
    font-size: 18px;
  }

  .offers-banner {
    margin: 40px 5% 0;
    padding: 36px 24px;
    border-radius: 16px;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
  }

  /* Hide the floating car preview card on mobile — it overflows */
  .offer-preview-popup {
    display: none;
  }

  .offers-banner__content {
    max-width: 100%;
    width: 100%;
  }

  .offers-banner h2 {
    font-size: 26px;
    line-height: 1.2;
  }

  .offers-banner p {
    font-size: 14px;
    margin-bottom: 20px;
  }

  .offers-banner .btn {
    width: 100%;
    text-align: center;
    padding: 14px 20px;
  }
}

@media (max-width: 480px) {
  .filter-group {
    flex: 1 1 100%;
  }
}

/* ===== BRANDS BAR ===== */




/* ===== HEADER RIGHT ===== */
.header-right {
  display: flex;
  align-items: center;
  gap: 10px;
  direction: ltr;
}

.nav-toggle {
  display: none;
}

/* ===== NAV DROPDOWN ===== */
.nav-dropdown {
  position: relative;
}

.nav-dropdown__trigger {
  background: none;
  border: none;
  color: #374151;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  padding: 0;
  transition: color 0.25s;
  white-space: nowrap;
}

.nav-dropdown__trigger:hover {
  color: #e85d04;
}

/* Dropdown panel */
.nav-dropdown__menu {
  display: none;
  position: absolute;
  top: calc(100% + 16px);
  /* left: 50%; */
  left: -274%;
  transform: translateX(-50%);
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  box-shadow: 0 16px 48px rgba(0,0,0,0.14);
  padding: 18px 20px 14px;
  z-index: 300;
  white-space: nowrap;
  animation: dropFade 0.18s ease;
}

@keyframes dropFade {
  from { opacity: 0; transform: translateX(-50%) translateY(-6px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.nav-dropdown:hover .nav-dropdown__menu,
.nav-dropdown.open .nav-dropdown__menu {
  display: block;
}

/* Arrow pointer */
.nav-dropdown__menu::before {
  content: '';
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-bottom: 8px solid #e5e7eb;
}

.nav-dropdown__menu::after {
  content: '';
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-bottom: 7px solid #ffffff;
}

/* ===== BRANDS ROW (single horizontal row like reference) ===== */
.brands-grid {
  display: flex;
  flex-direction: row;
  gap: 4px;
  align-items: flex-start;
   display:grid;
    grid-template-columns:repeat(12,1fr);
    gap:15px;
}

.brand-drop-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 8px 8px 6px;
  border-radius: 10px;
  text-decoration: none;
  border: 2px solid transparent;
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
  /* min-width: 62px; */
}

.brand-drop-item:hover {
  background: #fff7ed;
  border-color: #e85d04;
  transform: translateY(-2px);
}

.brand-drop-item.active-brand {
  /* border-color: #e85d04; */
  background: #fff7ed;
}

.bdrop-logo {
  width: 46px;
  height: 46px;
}

.bdrop-logo svg {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: block;
}

.brand-drop-item span {
  font-size: 11px;
  font-weight: 700;
  color: #374151;
  white-space: nowrap;
  text-align: center;
}

.brand-drop-item:hover span,
.brand-drop-item.active-brand span {
  color: #e85d04;
}

/* ===== MOBILE NAV ===== */
@media (max-width: 900px) {
  header {
    flex-wrap: wrap;
    padding: 14px 5%;
  }

  .header-right {
    /* margin-left: auto; */
  }

  .nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
  }

  .nav-toggle span {
    display: block;
    height: 2px;
    background: #1f2937;
    border-radius: 2px;
    transition: all 0.3s;
  }

  .nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  #mainNav {
    display: none;
    flex-direction: column;
    width: 100%;
    background: #ffffff;
    border-top: 1px solid #f3f4f6;
    margin-top: 10px;
    padding: 8px 0;
    gap: 0;
  }

  #mainNav.open {
    display: flex;
  }

  #mainNav > a {
    padding: 12px 16px;
    border-bottom: 1px solid #f9fafb;
    font-size: 15px;
    width: 100%;
  }

  .nav-dropdown {
    width: 100%;
  }

  .nav-dropdown__trigger {
    display: block;
    width: 100%;
    text-align: left;
    padding: 12px 16px;
    border-bottom: 1px solid #f9fafb;
    font-size: 15px;
  }

  .rtl .nav-dropdown__trigger {
    text-align: right;
  }

  .nav-dropdown__menu {
    position: static;
    transform: none;
    border-radius: 0;
    box-shadow: none;
    border: none;
    border-top: 1px solid #f3f4f6;
    padding: 12px 10px;
    animation: none;
    display: none;
    white-space: normal;
  }

  .nav-dropdown__menu::before,
  .nav-dropdown__menu::after {
    display: none;
  }

  .nav-dropdown.open .nav-dropdown__menu {
    display: block;
  }

  /* Wrap brands on mobile */
  .brands-grid {
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 6px;
  }

  .brand-drop-item {
    min-width: 56px;
  }

  #langBtn {
    padding: 8px 14px;
    font-size: 13px;
  }
}



/* MOBILE */
/* unset/remove old property */
@media(max-width:768px){

  .mobile-form-row{
    display:unset !important;
  }

  .lf-field{
    width:unset !important;
  }

}

/* ===== SUCCESS TOAST ===== */
.success-toast {
  position: fixed;
  top: 90px;           /* below the sticky header */
  right: 24px;
  bottom: auto;
  z-index: 99999;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: #ffffff;
  border-radius: 14px;
  padding: 18px 20px 22px;
  min-width: 300px;
  max-width: 380px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.18), 0 4px 16px rgba(0,0,0,0.08);
  border-left: 4px solid #16a34a;
  transform: translateX(calc(100% + 40px));
  opacity: 0;
  transition: transform 0.45s cubic-bezier(0.22,1,0.36,1), opacity 0.35s ease;
  overflow: hidden;
}

/* RTL — slide in from left */
html[dir="rtl"] .success-toast {
  right: auto;
  left: 24px;
  border-left: none;
  border-right: 4px solid #16a34a;
  transform: translateX(calc(-100% - 40px));
}

.success-toast--visible {
  transform: translateX(0);
  opacity: 1;
}

.success-toast--hiding {
  transform: translateX(calc(100% + 40px));
  opacity: 0;
}

html[dir="rtl"] .success-toast--hiding {
  transform: translateX(calc(-100% - 40px));
}

.success-toast__icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #16a34a, #15803d);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 900;
  box-shadow: 0 4px 12px rgba(22,163,74,0.35);
  animation: toastIconPop 0.5s 0.3s cubic-bezier(0.34,1.56,0.64,1) both;
}

@keyframes toastIconPop {
  from { transform: scale(0.4); opacity: 0; }
  to   { transform: scale(1);   opacity: 1; }
}

.success-toast__body {
  flex: 1;
  min-width: 0;
}

.success-toast__title {
  font-size: 14px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.3;
  margin-bottom: 4px;
}

.success-toast__sub {
  font-size: 12.5px;
  color: #6b7280;
  line-height: 1.5;
}

.success-toast__close {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border: none;
  background: #f1f5f9;
  border-radius: 50%;
  color: #64748b;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
  margin-top: -2px;
}

.success-toast__close:hover {
  background: #e2e8f0;
  color: #0f172a;
}

/* Progress bar that drains over 5s */
.success-toast__bar {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  width: 100%;
  background: linear-gradient(90deg, #16a34a, #4ade80);
  border-radius: 0 0 14px 14px;
  transform-origin: left;
  animation: toastBar 5s linear forwards;
}

html[dir="rtl"] .success-toast__bar {
  transform-origin: right;
}

@keyframes toastBar {
  from { transform: scaleX(1); }
  to   { transform: scaleX(0); }
}

/* Mobile — slide down from top */
@media (max-width: 600px) {
  .success-toast {
    top: 80px;
    right: 12px;
    left: 12px;
    min-width: 0;
    max-width: 100%;
    transform: translateY(-120%);
  }

  html[dir="rtl"] .success-toast {
    right: 12px;
    left: 12px;
    transform: translateY(-120%);
  }

  .success-toast--visible {
    transform: translateY(0);
  }

  .success-toast--hiding {
    transform: translateY(-120%);
    opacity: 0;
  }

  html[dir="rtl"] .success-toast--hiding {
    transform: translateY(-120%);
  }
}
