
*{box-sizing:border-box}
:root{--bg:#060606;--panel:rgba(255,255,255,.05);--gold:#d9b13f;--gold-soft:#f0d36d;--text:#fff;--muted:rgba(255,255,255,.72);--radius:28px;--shadow:0 24px 60px rgba(0,0,0,.32)}
html{scroll-behavior:smooth}
body{margin:0;font-family:"Inter",sans-serif;color:var(--text);background:radial-gradient(circle at top right, rgba(217,177,63,.12), transparent 22%),radial-gradient(circle at left, rgba(217,177,63,.08), transparent 16%),var(--bg);transition:background .35s ease,color .35s ease}
a{text-decoration:none;color:inherit} img{display:block;max-width:100%} .container{width:min(1180px, calc(100% - 32px));margin:0 auto}
.topbar{border-bottom:1px solid rgba(217,177,63,.16);background:#040404;color:rgba(255,255,255,.7);font-size:.88rem;transition:background .35s ease,color .35s ease}
.topbar-row{min-height:42px;display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.site-header{position:sticky;top:0;z-index:1000;backdrop-filter:blur(16px);background:rgba(6,6,6,.84);border-bottom:1px solid rgba(217,177,63,.16);transition:background .35s ease,border-color .35s ease}
.nav{min-height:92px;display:flex;align-items:center;justify-content:space-between;gap:18px}
.brand{display:flex;align-items:center;gap:14px}
.brand-logo{width:170px;height:auto;border-radius:14px;box-shadow:0 14px 28px rgba(0,0,0,.25);transition:filter .35s ease}
.brand-text{display:flex;flex-direction:column}
.brand-name{font-size:1rem;font-weight:800;letter-spacing:.14em}
.brand-tagline{font-size:.76rem;color:var(--gold-soft);letter-spacing:.10em}
.desktop-nav{display:flex;gap:28px;align-items:center}
.desktop-nav a{color:var(--muted);font-size:.96rem}.desktop-nav a:hover{color:var(--gold-soft)}
.nav-actions,.stock-actions{display:flex;gap:12px;flex-wrap:wrap}
.btn{display:inline-flex;align-items:center;justify-content:center;border-radius:999px;padding:14px 22px;font-weight:700;border:1px solid transparent;transition:.25s ease;cursor:pointer;background:transparent;color:#fff}
.btn-light{background:var(--gold);color:#111}.btn-light:hover{transform:translateY(-1px);filter:brightness(1.03)}
.btn-outline{background:transparent;border-color:rgba(217,177,63,.34);color:#fff}.btn-outline:hover{background:rgba(217,177,63,.08)}
.btn-full{width:100%}
.mobile-toggle{display:none;background:none;border:none;color:#fff;font-size:1.5rem;cursor:pointer}
.mobile-menu{display:none;padding:0 16px 16px;border-top:1px solid rgba(217,177,63,.16);background:#080808}
.mobile-menu a{display:block;padding:12px 0;color:var(--muted);border-bottom:1px solid rgba(255,255,255,.05)}
.hero{padding:58px 0 34px}
.hero-grid{min-height:calc(100vh - 160px);display:grid;grid-template-columns:1.02fr .98fr;gap:42px;align-items:center}
.pill,.eyebrow{display:inline-block;text-transform:uppercase;letter-spacing:.22em;font-size:.78rem;color:var(--gold-soft)}
.pill{padding:11px 15px;border-radius:999px;border:1px solid rgba(217,177,63,.26);background:rgba(217,177,63,.08)}
.hero-copy h1{margin:20px 0 18px;font-size:clamp(2.2rem,5vw,4.1rem);line-height:1.04;letter-spacing:-.05em;max-width:13ch}
.quote,.admin-note{color:var(--muted);font-size:1.06rem;line-height:1.85;max-width:760px}
.hero-actions{display:flex;flex-wrap:wrap;gap:14px;margin:30px 0}
.hero-card,.info-card,.car-card,.panel,.map-card,.location-card,.contact-box,.admin-stat{background:var(--panel);border:1px solid rgba(217,177,63,.18);border-radius:var(--radius);box-shadow:var(--shadow);transition:background .35s ease,border-color .35s ease,box-shadow .35s ease}
.hero-card{padding:18px}
.hero-card img{width:100%;border-radius:24px}
.hero-badges{display:flex;flex-wrap:wrap;gap:10px;margin-top:16px}
.hero-badges span,.specs span{padding:10px 12px;border-radius:16px;border:1px solid rgba(217,177,63,.16);background:rgba(255,255,255,.03);color:var(--muted);font-size:.92rem;transition:background .35s ease,color .35s ease,border-color .35s ease}
.section{padding:88px 0}
.section-dark{background:rgba(255,255,255,.025);border-top:1px solid rgba(217,177,63,.14);border-bottom:1px solid rgba(217,177,63,.14);transition:background .35s ease,border-color .35s ease}
.section-head{display:flex;justify-content:space-between;align-items:end;gap:16px;margin-bottom:28px}
.section-head.center{display:block;text-align:center}
.section-head h2,.panel h2,.contact-box h2{margin:12px 0 10px;font-size:clamp(2rem,4vw,3.05rem);line-height:1.08;letter-spacing:-.04em}
.info-grid,.cars-grid,.steps,.location-grid{display:grid;gap:22px}
.info-grid{grid-template-columns:repeat(3,1fr)}
.info-card{padding:28px}
.info-card h3{margin:0 0 12px;font-size:1.2rem;color:var(--gold-soft)}
.info-card p,.panel p,.contact-box p{margin:0;color:var(--muted);line-height:1.8}
.cars-grid{grid-template-columns:repeat(4,1fr)}
.car-card{overflow:hidden}
.car-image-wrap{height:250px;overflow:hidden;background:#111;transition:background .35s ease}
.car-image-wrap img{width:100%;height:100%;object-fit:cover;transition:transform .5s ease}
.car-card:hover .car-image-wrap img{transform:scale(1.05)}
.car-content{padding:22px}
.car-content h3{margin:0 0 14px;font-size:1.1rem;min-height:60px}
.specs{display:flex;gap:10px;flex-wrap:wrap}
.text-link{display:inline-block;margin-top:16px;color:var(--gold-soft);font-weight:700}
.mini-desc{color:var(--muted);line-height:1.6;min-height:48px}
.split-grid{display:grid;grid-template-columns:1.04fr .96fr;gap:24px}
.panel{padding:30px}
.panel-highlight{background:linear-gradient(180deg, rgba(217,177,63,.12), rgba(255,255,255,.04))}
.steps{margin-top:24px}
.step{display:flex;gap:16px;align-items:flex-start;padding:16px;border:1px solid rgba(217,177,63,.16);border-radius:20px;background:rgba(0,0,0,.16);transition:background .35s ease,border-color .35s ease}
.step strong{width:34px;height:34px;border-radius:999px;display:grid;place-items:center;background:var(--gold);color:#111;flex:0 0 auto}
.step p{margin:0}
.lead-form input,.lead-form textarea,.admin-form input,.admin-form textarea,.login-panel input{width:100%;padding:15px 16px;border-radius:18px;border:1px solid rgba(217,177,63,.16);background:rgba(0,0,0,.22);color:#fff;font:inherit;outline:none;transition:background .35s ease,color .35s ease,border-color .35s ease}
.form-note{min-height:22px;color:rgba(255,255,255,.74);margin-top:10px}
.location-grid{grid-template-columns:1.08fr .92fr}
.map-card{overflow:hidden}
.location-card{padding:28px}
.location-card h3{margin-top:0;color:var(--gold-soft)}
.location-actions{margin-top:18px}
.contact-box{padding:42px 24px;text-align:center}
.contact-logo{width:240px;margin:0 auto 18px;border-radius:16px}
.inline-instagram{color:var(--gold-soft);font-weight:700}
.admin-stats{display:grid;grid-template-columns:repeat(2,1fr);gap:16px;margin:0 0 20px}
.admin-stat{padding:20px}
.admin-stat span{display:block;color:var(--muted);margin-bottom:8px}
.admin-stat strong{font-size:1.5rem}
.admin-form{margin-bottom:18px}
.admin-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:16px}
.field{display:flex;flex-direction:column;gap:8px}
.field.full{grid-column:1/-1}
.field label{font-weight:700}
.admin-toolbar{display:flex;gap:12px;flex-wrap:wrap;margin-bottom:18px}
.danger-outline{border-color:rgba(255,120,120,.28)!important;color:#ffb5b5}
.admin-cars-grid .car-content h3{min-height:auto}
.admin-card-actions{display:flex;justify-content:space-between;gap:10px;align-items:center}
.login-panel{max-width:620px;margin:0 auto}
.admin-hidden{display:none !important}
.site-footer{border-top:1px solid rgba(217,177,63,.14);padding:24px 0 34px;color:rgba(255,255,255,.58);font-size:.92rem;transition:color .35s ease,border-color .35s ease}
.footer-row{display:flex;justify-content:space-between;gap:14px;flex-wrap:wrap}
@media (max-width:1200px){.cars-grid{grid-template-columns:repeat(3,1fr)}}
@media (max-width:1100px){.hero-grid,.split-grid,.location-grid,.info-grid,.cars-grid,.admin-grid,.admin-stats{grid-template-columns:1fr 1fr}}
@media (max-width:860px){.desktop-nav,.nav-actions{display:none}.mobile-toggle{display:block}.hero-grid,.split-grid,.location-grid,.info-grid,.cars-grid,.admin-grid,.admin-stats{grid-template-columns:1fr}.hero-grid{min-height:auto}.section-head{display:block}.section{padding:72px 0}.brand-logo{width:120px}.brand-name{font-size:.88rem}.brand-tagline{font-size:.68rem}.car-content h3{min-height:auto}}
body.white-mode{background:#f8f8f4;color:#111}
body.white-mode .topbar{background:#fff;color:rgba(0,0,0,.7);border-bottom:1px solid rgba(0,0,0,.08)}
body.white-mode .site-header{background:rgba(255,255,255,.9);border-bottom:1px solid rgba(0,0,0,.08)}
body.white-mode .desktop-nav a,body.white-mode .mobile-toggle{color:#333}
body.white-mode .mobile-menu{background:#fff}
body.white-mode .mobile-menu a{color:#333;border-bottom:1px solid rgba(0,0,0,.06)}
body.white-mode .hero-card,body.white-mode .info-card,body.white-mode .car-card,body.white-mode .panel,body.white-mode .map-card,body.white-mode .location-card,body.white-mode .contact-box,body.white-mode .admin-stat{background:#fff;border-color:rgba(0,0,0,.08);box-shadow:0 14px 40px rgba(0,0,0,.08)}
body.white-mode .section-dark{background:#fcfcfa;border-top:1px solid rgba(0,0,0,.06);border-bottom:1px solid rgba(0,0,0,.06)}
body.white-mode .quote,body.white-mode .admin-note,body.white-mode .info-card p,body.white-mode .panel p,body.white-mode .contact-box p,body.white-mode .mini-desc,body.white-mode .form-note,body.white-mode .site-footer,body.white-mode .specs span,body.white-mode .hero-badges span,body.white-mode .desktop-nav a{color:rgba(0,0,0,.7)}
body.white-mode .info-card h3,body.white-mode .location-card h3,body.white-mode .eyebrow,body.white-mode .text-link,body.white-mode .inline-instagram,body.white-mode .brand-tagline{color:#b58b00}
body.white-mode .lead-form input,body.white-mode .lead-form textarea,body.white-mode .admin-form input,body.white-mode .admin-form textarea,body.white-mode .login-panel input{background:#fff;color:#111;border-color:rgba(0,0,0,.12)}
body.white-mode .btn-outline{color:#111;border-color:rgba(0,0,0,.16)}
body.white-mode .btn-outline:hover{background:rgba(0,0,0,.04)}
body.white-mode .specs span,body.white-mode .hero-badges span{background:#fafafa;border-color:rgba(0,0,0,.08)}
body.white-mode .step{background:#fff;border-color:rgba(0,0,0,.08)}
body.white-mode .car-image-wrap{background:#f0f0f0}
body.white-mode .brand-name{color:#111}
body.white-mode .brand-logo{filter:grayscale(1) brightness(1.35) sepia(.9) hue-rotate(350deg) saturate(1.6)}



.drop-zone{
  border:2px dashed rgba(217,177,63,.35);
  border-radius:24px;
  background:rgba(255,255,255,.03);
  min-height:160px;
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  cursor:pointer;
  transition:.25s ease;
  padding:20px;
}
.drop-zone:hover,
.drop-zone.dragover{
  background:rgba(217,177,63,.08);
  border-color:rgba(217,177,63,.65);
}
.drop-zone-inner{
  display:flex;
  flex-direction:column;
  gap:10px;
}
.drop-zone-inner strong{
  font-size:1.05rem;
}
.drop-zone-inner span{
  color:var(--muted);
  font-size:.95rem;
}
.image-preview-list{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(110px,1fr));
  gap:12px;
  margin-top:14px;
}
.image-preview-item{
  position:relative;
  border-radius:16px;
  overflow:hidden;
  border:1px solid rgba(217,177,63,.18);
  background:rgba(255,255,255,.04);
  height:96px;
}
.image-preview-item img{
  width:100%;
  height:100%;
  object-fit:cover;
}
.image-preview-badge{
  position:absolute;
  left:8px;
  bottom:8px;
  font-size:.74rem;
  padding:4px 8px;
  border-radius:999px;
  background:rgba(0,0,0,.55);
  color:#fff;
}

.card-links{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-top:16px;
  flex-wrap:wrap;
}
.card-links .text-link{
  margin-top:0;
}
.view-gallery-btn{
  padding:10px 14px;
}

.gallery-modal{
  position:fixed;
  inset:0;
  display:none;
  z-index:3000;
}
.gallery-modal.active{
  display:block;
}
.gallery-backdrop{
  position:absolute;
  inset:0;
  background:rgba(0,0,0,.82);
  backdrop-filter:blur(4px);
}
.gallery-shell{
  position:relative;
  z-index:10;
  width:min(1100px, calc(100% - 28px));
  margin:28px auto;
  background:rgba(10,10,10,.98);
  border:1px solid rgba(217,177,63,.22);
  border-radius:28px;
  box-shadow:0 24px 60px rgba(0,0,0,.42);
  padding:18px;
}
.gallery-close{
    position: fixed !important;
    top: 20px !important;
    left: 20px !important;
    right: auto !important;

    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    width: max-content !important;
    min-width: 0 !important;
    max-width: none !important;
    height: auto !important;

    padding: 12px 18px !important;
    border: none !important;
    border-radius: 12px !important;

    background: rgba(0,0,0,.88) !important;
    color: #fff !important;

    font-size: 15px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    white-space: nowrap !important;

    overflow: visible !important;
    text-indent: 0 !important;
    letter-spacing: 0 !important;

    z-index: 999999 !important;
    cursor: pointer !important;
}
.gallery-close:hover{
    background:#000 !important;
}

.gallery-main-wrap{
    position:relative;
    display:flex;
    align-items:center;
    justify-content:center;
    min-height:520px;
    border-radius:22px;
    overflow:visible;
    background:#111;
    z-index:1;
}
.gallery-main-image{
    width:100%;
    max-height:72vh;
    object-fit:contain;
    position:relative;
    z-index:1;
}
.gallery-nav{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  width:48px;
  height:48px;
  border:none;
  border-radius:999px;
  background:rgba(0,0,0,.45);
  color:#fff;
  font-size:2rem;
  cursor:pointer;
}
.gallery-prev{left:16px;}
.gallery-next{right:16px;}
.gallery-thumbs{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(95px,1fr));
  gap:10px;
  margin-top:14px;
}
.gallery-thumb{
  border-radius:14px;
  overflow:hidden;
  border:2px solid transparent;
  cursor:pointer;
  background:#111;
  height:78px;
}
.gallery-thumb.active{
  border-color:var(--gold);
}
.gallery-thumb img{
  width:100%;
  height:100%;
  object-fit:cover;
}

body.white-mode .drop-zone{
  background:#fff;
  border-color:rgba(0,0,0,.14);
}
body.white-mode .drop-zone:hover,
body.white-mode .drop-zone.dragover{
  background:#fafafa;
  border-color:#b58b00;
}
body.white-mode .drop-zone-inner span{
  color:rgba(0,0,0,.65);
}
body.white-mode .gallery-shell{
  background:#fff;
  border-color:rgba(0,0,0,.1);
}
body.white-mode .gallery-close{
  background:rgba(0,0,0,.08);
  color:#111;
}
body.white-mode .gallery-main-wrap,
body.white-mode .gallery-thumb{
  background:#f2f2f2;
}
body.white-mode .gallery-nav{
  background:rgba(255,255,255,.8);
  color:#111;
  border:1px solid rgba(0,0,0,.08);
}

@media (max-width:860px){
  .gallery-main-wrap{
    min-height:340px;
  }
}


/* Description fix for long multi-line text */
.car-description,
.mini-desc{
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
  line-height: 1.7;
  min-height: unset !important;
}

.car-card{
  height: 100%;
  display: flex;
  flex-direction: column;
}

.car-content{
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: 100%;
}

.car-content h3{
  min-height: unset !important;
}

.card-links,
.admin-card-actions{
  margin-top: auto;
}


/* Keep card compact; full description only in modal */
.mini-desc{
  display:-webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow:hidden;
  white-space:normal !important;
  line-height:1.7;
  min-height:78px;
}

.gallery-details{
  padding:18px 4px 6px;
}
.gallery-title{
  margin:0 0 14px;
  font-size:1.55rem;
  line-height:1.25;
}
.gallery-specs{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-bottom:16px;
}
.gallery-specs span{
  padding:10px 12px;
  border-radius:16px;
  border:1px solid rgba(217,177,63,.16);
  background:rgba(255,255,255,.03);
  color:var(--muted);
  font-size:.92rem;
}
.gallery-description{
  white-space:pre-wrap;
  overflow-wrap:anywhere;
  word-break:break-word;
  line-height:1.8;
  color:var(--muted);
}
body.white-mode .gallery-specs span{
  background:#fafafa;
  border-color:rgba(0,0,0,.08);
  color:rgba(0,0,0,.7);
}
body.white-mode .gallery-description{
  color:rgba(0,0,0,.72);
}


/* Final fixes: scrollable modal, no description in stock cards, many images support */
.gallery-modal.active{
  display:block;
  overflow-y:auto;
  overscroll-behavior:contain;
}

.gallery-shell{
  max-height:none;
  margin:28px auto 40px;
}

.gallery-details{
  max-height:none;
}

.gallery-description{
  max-height:none;
}

body.modal-open{
  overflow:hidden;
}

/* Hide description from stock/admin cards completely */
.mini-desc,
.car-description{
  display:none !important;
}

/* Better thumbs layout for lots of images */
.gallery-thumbs{
  max-height:220px;
  overflow-y:auto;
  padding-right:4px;
}

.image-preview-list{
  max-height:260px;
  overflow-y:auto;
  padding-right:4px;
}

/* Allow cards to stay compact */
.car-content{
  gap:12px;
}


/* Bigger description editor in admin */
.description-editor{
  min-height: 320px !important;
  resize: vertical;
  line-height: 1.75;
  padding-top: 18px !important;
}


/* Rich description editor */
.editor-toolbar{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-bottom:12px;
}
.editor-btn{
  padding:10px 14px;
  border-radius:14px;
  border:1px solid rgba(217,177,63,.18);
  background:rgba(255,255,255,.04);
  color:#fff;
  cursor:pointer;
  font:inherit;
}
.editor-btn:hover{
  background:rgba(217,177,63,.08);
}
.rich-editor{
  min-height:320px !important;
  padding:18px !important;
  resize:vertical;
  line-height:1.75;
  white-space:pre-wrap;
  overflow-wrap:anywhere;
  word-break:break-word;
}
.rich-editor:empty:before{
  content:"Scrie descrierea aici și poziționează textul cum dorești...";
  color:rgba(255,255,255,.42);
}
.rich-editor ul{
  padding-left:22px;
  margin:8px 0;
}
body.white-mode .editor-btn{
  background:#fff;
  color:#111;
  border-color:rgba(0,0,0,.12);
}
body.white-mode .editor-btn:hover{
  background:#fafafa;
}
body.white-mode .rich-editor:empty:before{
  color:rgba(0,0,0,.35);
}


/* Multi-line title editor + compact title rendering */
.title-editor{
  min-height:96px !important;
  resize:vertical;
  line-height:1.6;
  white-space:pre-wrap;
}
.car-title{
  white-space:pre-wrap;
  overflow-wrap:anywhere;
  word-break:break-word;
  line-height:1.45;
}
.admin-card-actions{
  flex-wrap:wrap;
}


/* Dual image background for intro area */
.top-intro-background{
  position:relative;
  overflow:hidden;
}
.top-intro-background::before{
  content:"";
  position:absolute;
  inset:0;
  background-image:
    linear-gradient(rgba(0,0,0,.50), rgba(0,0,0,.58)),
    url('assets/hero-bg-1.JPG'),
    url('assets/hero-bg-2.JPG');
  background-repeat:no-repeat,no-repeat,no-repeat;
  background-size:cover,50% 100%,50% 100%;
  background-position:center,left top,right top;
  z-index:0;
}
.top-intro-background > .hero,
.top-intro-background > .section{
  position:relative;
  z-index:1;
  background:transparent !important;
  border:none !important;
}
.top-intro-background .hero-card,
.top-intro-background .info-card{
  background:rgba(10,10,10,.42);
  backdrop-filter:blur(6px);
}
body.white-mode .top-intro-background::before{
  background-image:
    linear-gradient(rgba(255,255,255,.55), rgba(255,255,255,.62)),
    url('assets/hero-bg-1.JPG'),
    url('assets/hero-bg-2.JPG');
}
body.white-mode .top-intro-background .hero-card,
body.white-mode .top-intro-background .info-card{
  background:rgba(255,255,255,.72);
}
@media (max-width:860px){
  .top-intro-background::before{
    background-image:
      linear-gradient(rgba(0,0,0,.55), rgba(0,0,0,.6)),
      url('assets/hero-bg-1.JPG'),
      url('assets/hero-bg-2.JPG');
    background-size:cover,100% 50%,100% 50%;
    background-position:center,top center,bottom center;
  }
  body.white-mode .top-intro-background::before{
    background-image:
      linear-gradient(rgba(255,255,255,.55), rgba(255,255,255,.62)),
      url('assets/hero-bg-1.JPG'),
      url('assets/hero-bg-2.JPG');
  }
}


/* B1 category selector + second inventory section */
.category-select{
  width:100%;
  padding:15px 16px;
  border-radius:18px;
  border:1px solid rgba(217,177,63,.16);
  background:rgba(0,0,0,.22);
  color:#fff;
  font:inherit;
  outline:none;
}
.category-subhead{
  margin-top:42px;
  margin-bottom:22px;
  padding-top:12px;
  border-top:1px solid rgba(217,177,63,.14);
}
body.white-mode .category-select{
  background:#fff;
  color:#111;
  border-color:rgba(0,0,0,.12);
}


.car-card{
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.car-content{
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: 100%;
  min-width: 0;
}

.car-title{
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
  line-height: 1.45;
}

.car-description{
  display: none !important;
}

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

.card-links{
  margin-top: auto;
}
.car-card,
.vehicle-card,
.inventory-card{
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 0;
}

.car-content,
.vehicle-content,
.inventory-card-content{
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: 100%;
  min-width: 0;
}

.car-title,
.vehicle-title,
.inventory-card-title{
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
  line-height: 1.4;
  max-width: 100%;
}

.car-description,
.vehicle-description,
.inventory-card-description,
.mini-desc{
  display: none !important;
}

.specs{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 100%;
}

.card-links,
.admin-card-actions{
  margin-top: auto;
  flex-wrap: wrap;
}
.car-title {
    word-break: break-word;
    overflow-wrap: break-word;
}
.car-card {
    overflow: hidden;
}
.car-title{
  display:block;
  white-space:normal !important;
  word-break:break-word;
  overflow-wrap:anywhere;
  line-height:1.35;
  max-width:100%;
  min-width:0;
}

.car-content{
  min-width:0;
}

.car-card{
  min-width:0;
}
.car-image{
  max-width: 100%;
  display: block;
}

.car-image-wrap:empty{
  display: none;
}
.car-title {
  word-break: break-word;
  overflow-wrap: break-word;
  white-space: normal;
}

.car-card {
  overflow: hidden;
}.car-image-wrap{
  height: 250px;
  overflow: hidden;
  background: #111;
}

.car-image{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.car-title{
  display: block;
  white-space: normal !important;
  word-break: break-word;
  overflow-wrap: break-word;
  line-height: 1.35;
  max-width: 100%;
}

.car-card{
  overflow: hidden;
}.cars-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(280px,1fr)) !important;
  gap:24px;
  align-items:start;
}

.car-card{
  width:100%;
  min-width:0;
  max-width:100%;
  overflow:hidden;
  display:flex;
  flex-direction:column;
  box-sizing:border-box;
}

.car-content{
  min-width:0;
  display:flex;
  flex-direction:column;
  gap:14px;
}

.car-title{
  display:block;
  white-space:normal !important;
  word-break:break-word;
  overflow-wrap:anywhere;
  line-height:1.35;
  max-width:100%;
  margin:0;
}

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

.card-links,
.admin-card-actions{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  align-items:center;
  margin-top:auto;
}

.car-image-wrap{
  width:100%;
  height:250px;
  overflow:hidden;
  background:#111;
  flex-shrink:0;
}

.car-image{
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
}

.back-gallery-btn{
    all: unset;
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 999999;
    display: inline-block;
    padding: 14px 20px;
    background: rgba(0,0,0,0.92);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    border-radius: 12px;
    cursor: pointer;
}
#closeGallery{
  position: fixed !important;
  top: 20px !important;
  left: 20px !important;
  z-index: 2147483647 !important;

  display: inline-block !important;
visibility: visible !important;
opacity: 1 !important;


  background: rgba(0,0,0,0.95) !important;
  color: #fff !important;

  padding: 14px 20px !important;
  font-size: 16px !important;
  font-weight: 700 !important;

  border: none !important;
  border-radius: 12px !important;

  cursor: pointer !important;

  box-shadow: 0 10px 30px rgba(0,0,0,0.5) !important;
}
.gallery-modal{
    display: none;
}

.gallery-modal.active{
    display: block !important;
}
.gallery-nav{
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  opacity:1 !important;
  visibility:visible !important;
  pointer-events:auto !important;
  z-index:999999 !important;
}

.gallery-prev{
  left:16px !important;
}

.gallery-next{
  right:16px !important;
}

@media(max-width:768px){
  .gallery-nav{
    width:46px !important;
    height:46px !important;
    font-size:32px !important;
  }

  .gallery-prev{
    left:10px !important;
  }

  .gallery-next{
    right:10px !important;
  }

  .gallery-main-wrap{
    overflow:visible !important;
  }
}
.gallery-main-wrap{
  position: relative !important;
  overflow: visible !important;
}

.gallery-nav{
  position: fixed !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  width: 56px !important;
  height: 56px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  z-index: 2147483647 !important;
  background: rgba(0,0,0,0.75) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 999px !important;
  font-size: 36px !important;
  cursor: pointer !important;
}

.gallery-prev{
  left: 24px !important;
}

.gallery-next{
  right: 24px !important;
}

@media(max-width:768px){
  .gallery-nav{
    width: 48px !important;
    height: 48px !important;
    font-size: 30px !important;
  }

  .gallery-prev{
    left: 12px !important;
  }

  .gallery-next{
    right: 12px !important;
  }
}

.gallery-nav{
  pointer-events: auto !important;
}

.gallery-main-image.changing{
opacity:0;
transform:scale(.985);
}
.gallery-main-image{
pointer-events:auto !important;
touch-action:manipulation !important;
transition:opacity .22s ease, transform .22s ease;
}
.remove-image-btn{
position:absolute;
top:8px;
right:8px;
width:28px;
height:28px;
border:none;
border-radius:50%;
background:#111;
color:#fff;
font-size:18px;
cursor:pointer;
z-index:5;
}

.image-preview-item{
position:relative;
cursor:grab;
}

.image-preview-item.dragging{
opacity:.5;
}
.remove-image-btn{
position:absolute !important;
top:4px !important;
right:4px !important;
width:30px !important;
height:30px !important;
background:red !important;
color:white !important;
border:2px solid yellow !important;
border-radius:50% !important;
z-index:99999 !important;
display:flex !important;
align-items:center !important;
justify-content:center !important;
font-size:20px !important;
font-weight:900 !important;
}
.gallery-main-wrap,
.gallery-main-image{
  touch-action: pan-y !important;
  user-select: none !important;
  -webkit-user-select: none !important;
  -webkit-user-drag: none !important;
}

.gallery-main-image{
  pointer-events: auto !important;
  object-fit: contain !important;
}
/* PAGINARE ROMARTA PREMIUM */

#stockPagination{
display:flex !important;
justify-content:center !important;
align-items:center !important;
gap:14px !important;
margin:45px auto 60px auto !important;
width:100% !important;
}

#stockPagination button{
width:56px !important;
height:56px !important;

border:none !important;
border-radius:16px !important;

background:linear-gradient(
135deg,
#d6a84f,
#f4d77b
) !important;

color:#111 !important;
font-size:18px !important;
font-weight:800 !important;

cursor:pointer !important;

box-shadow:
0 8px 25px rgba(214,168,79,.45) !important;

transition:all .3s ease !important;
}

#stockPagination button:hover{
transform:translateY(-4px) scale(1.08) !important;

box-shadow:
0 15px 35px rgba(214,168,79,.6) !important;
}

#stockPagination button.active{
background:linear-gradient(
135deg,
#ffffff,
#f0f0f0
) !important;

color:#111 !important;

transform:scale(1.1) !important;

box-shadow:
0 0 25px rgba(255,255,255,.45) !important;
}

.stock-filters{
display:flex;
justify-content:space-between;
align-items:center;
gap:16px;
margin:30px 0;
flex-wrap:wrap;
}

.stock-filters input,
.stock-filters select{
background:#151515;
border:1px solid rgba(214,168,79,.45);
color:#fff;
padding:14px 18px;
border-radius:14px;
font-size:15px;
font-weight:600;
outline:none;
}

.stock-filters input{
min-width:280px;
}

.stock-filters select{
cursor:pointer;
color:#d6a84f;
}

.stock-filters input::placeholder{
color:rgba(255,255,255,.6);
}
@media (max-width: 768px){
  .stock-filters{
    display:flex;
    flex-direction:column;
    gap:12px;
    width:100%;
  }

  .stock-filters input,
  .stock-filters select{
    width:100%;
    max-width:100%;
    font-size:16px !important;
    box-sizing:border-box;
  }
}
@media (max-width:768px){
  html{
    -webkit-text-size-adjust:100%;
  }

  .stock-filters{
    overflow:visible;
  }

  .stock-filters input,
  .stock-filters select{
    appearance:none;
    -webkit-appearance:none;
    min-height:52px;
  }
}