@charset "utf-8";
/* CSS Document */

:root {
    --carvers-dark: #17181c;        /* nav/footer surface, always dark regardless of theme toggle */
    --carvers-dark-2: #0c0c0e;      /* darkest surface */
    --carvers-red: #e8332c;
    --carvers-red-light: #ff453b;
    --carvers-text-light: #f5f5f3;
    --carvers-text-muted-light: #9a9aa2;

    --carvers-font-heading: 'Montserrat', sans-serif;
    --carvers-font-body: 'Barlow', sans-serif;

    --carvers-bg: #0c0c0e;
    --carvers-surface: #17181c;
    --carvers-surface-rgb: 23, 24, 28;
    --carvers-surface-2: #232329;
    --carvers-border: #2a2a30;
    --carvers-text: #f5f5f3;
    --carvers-text-muted: #9a9aa2;
}

[data-theme="light"] {
    --carvers-bg: #ffffff;
    --carvers-surface: #f5f5f3;
    --carvers-surface-rgb: 245, 245, 243;
    --carvers-surface-2: #eceeef;
    --carvers-border: #d9d9dc;
    --carvers-text: #17181c;
    --carvers-text-muted: #6e6e76;
}

/* The dark theme is for the public site only - the admin panel (identified
   by its #sidebar) keeps its own light Bootstrap look untouched. */
body:not(:has(#sidebar)) {
    background-color: var(--carvers-bg);
    color: var(--carvers-text);
    font-family: var(--carvers-font-body);
    transition: background-color .25s ease, color .25s ease;
}
body:not(:has(#sidebar)) h1,
body:not(:has(#sidebar)) h2,
body:not(:has(#sidebar)) h3,
body:not(:has(#sidebar)) h4,
body:not(:has(#sidebar)) h5,
body:not(:has(#sidebar)) h6,
body:not(:has(#sidebar)) .navbar-brand {
    font-family: var(--carvers-font-heading);
}

/* Shared CTA button style - uppercase/bold, consistent across the site
   (hero, quick filter, financing, contact CTAs) */
.btn-carvers,
.btn-carvers-outline {
    font-family: var(--carvers-font-body);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    font-size: .85rem;
    padding: .65rem 1.5rem;
    border-radius: 6px;
    display: inline-block;
}
.btn-carvers {
    background-color: var(--carvers-red);
    color: #fff !important;
    border: 1px solid var(--carvers-red);
}
.btn-carvers:hover {
    background-color: var(--carvers-red-light);
    border-color: var(--carvers-red-light);
    color: #fff !important;
}
.btn-carvers-outline {
    background-color: transparent;
    color: #fff !important;
    border: 1px solid rgba(255,255,255,.5);
}
.btn-carvers-outline:hover {
    background-color: rgba(255,255,255,.12);
}

/* Theme toggle button (sun/moon), lives in the navbar */
.theme-toggle-btn {
    background: transparent;
    border: 1px solid var(--carvers-border);
    color: var(--carvers-text);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color .2s ease;
}
.theme-toggle-btn:hover {
    background-color: var(--carvers-surface-2);
}
[data-theme="light"] .theme-toggle-btn .fa-sun,
:root:not([data-theme="light"]) .theme-toggle-btn .fa-moon {
    display: none;
}

/* Carvers logo is black text + a light-grey "V" on a transparent PNG,
   designed to read on a dark background. On the dark navbar (default)
   it's forced to a solid white silhouette; on the light theme the navbar
   background flips to light too, so the same light "V" would nearly
   disappear - there it's forced to solid black instead, so the logo is
   always high-contrast against its own nav background.
   The footer stays permanently dark chrome, so its logo always inverts. */
:root:not([data-theme="light"]) .custom-nav .navbar-brand img {
    filter: brightness(0) invert(1);
}
:root[data-theme="light"] .custom-nav .navbar-brand img {
    filter: brightness(0);
}
.footer-logo-img {
    filter: brightness(0) invert(1);
}

* :focus { outline: 0 !important; }

/* form validation  */
    label.valid {
    width: 24px;
    height: 24px;
    background: url(/img/valid.png) center center no-repeat;
    display: inline-block;
    text-indent: -9999px;
    }
    label.error {
    font-weight: bold;
    color: red;
    padding: 2px 8px;
    margin-top: 2px;
    }
    .controls{
        position:relative;
    }
    .has-success .controls i{ font-weight: bold;font-size: 18px;display: block;position: absolute;right: 10px;top: 2px;}
    .has-success i:after {/*font-family: "Glyphicons Halflings";content:"\e013";*/font-family: 'FontAwesome'; content: "\f00c";color: green; font-size:20px;font-weight: bold;}
    .has-error .controls i{ font-weight: bold;font-size: 18px;display: block;position: absolute;right: 10px;top: 2px;}
    .has-error i:after {/*font-family: "Glyphicons Halflings";content:"\e014";*/font-family: 'FontAwesome'; content: "\f00d";color: red;}
/* endformvalidation */

.clear {clear:both;}
.logblock { padding-top: 15px;}
.lang { padding-top: 20px;}
.navbar-default {background-color:#FFFFFF; border:0px;}
.bold {font-weight:bold;}
#footer{text-align:center; padding-top:10px; margin-top:30px;}
.container-fluid{padding-left:0px; padding-right:0px;}
.btn-default {color: #6c757d; background-color: transparent; background-image: none; border-color: #ddd;}
.btn-space{margin-left:5px;}
.space{margin-left:15px;}
.notfound{margin-top:60px; text-align:center; font-family:Arial, Helvetica, sans-serif; font-size:100px; color:#0099FF;}
.notfound1{margin-top:40px; text-align:center; font-family:Arial, Helvetica, sans-serif; font-size:40px; color:#000000; margin-bottom:100px;}

#bannerhp img {height: 60vh;}
.breadcrumb {background-color:transparent; padding-left:0;}

/* Shared small red section eyebrow tag (homepage, listing, Finantare, Contact) */
.carvers-tag, .home-section-tag, .listing-tag {
    color: var(--carvers-red);
    font-weight: 700;
    letter-spacing: 1px;
    font-size: .8rem;
    text-transform: uppercase;
    display: block;
}
.carvers-tag::before, .home-section-tag::before, .listing-tag::before {
    content: '';
    display: inline-block;
    width: 22px; height: 2px;
    background: var(--carvers-red);
    margin-right: .5rem;
    vertical-align: middle;
}

/* Shared "how it works" step icon (used on homepage + Finantare page) */
.carvers-step-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background-color: var(--carvers-red);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    margin: 0 auto 0.75rem;
}

/* Shared dark car card - used on the homepage "Mașini recomandate" grid
   and on the /autoturisme listing grid, for a consistent look */
.home-car-card {
    background-color: var(--carvers-surface);
    border: 1px solid var(--carvers-border);
    border-radius: 8px;
    overflow: hidden;
    height: 100%;
    transition: transform .2s ease, box-shadow .2s ease;
}
.home-car-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(0,0,0,.35);
}
.home-car-card .home-car-img-wrap {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
}
.home-car-card img {
    width: 100%; height: 100%; object-fit: cover;
}
.home-car-price-badge {
    position: absolute; top: .6rem; left: .6rem;
    background-color: var(--carvers-red);
    color: #fff;
    padding: .35rem .6rem;
    border-radius: 4px;
    line-height: 1.25;
}
.home-car-price-badge .gross { display: block; font-weight: 700; font-size: .95rem; }
.home-car-price-badge .net { display: block; font-weight: 400; font-size: .72rem; opacity: .85; }

/* Discount: preț vechi tăiat + badge procent, reutilizat în toate locurile unde apare prețul */
.price-old { text-decoration: line-through; color: var(--carvers-text-muted); font-size: .85em; margin-right: 6px; }
.discount-badge { display: inline-block; background: var(--carvers-red); color: #fff; font-size: .72em; font-weight: 700; padding: 1px 7px; border-radius: 10px; vertical-align: middle; }
/* Discount ca badge separat, colț dreapta-sus pe poză (Mașini recomandate) */
.home-car-discount-corner {
    position: absolute; top: .6rem; right: .6rem;
    background: #fff; color: var(--carvers-red);
    font-size: .78rem; font-weight: 700;
    padding: .3rem .55rem; border-radius: 4px;
    line-height: 1.25;
}
.home-car-price-badge .price-old { color: rgba(255,255,255,.75); }
.home-car-price-badge .discount-badge { background: #fff; color: var(--carvers-red); }
.home-car-sold-banner {
    position: absolute; inset: 0;
    background: rgba(12,12,14,.55);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-family: var(--carvers-font-heading);
    font-weight: 800;
    font-size: 1.4rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}
.home-car-body { padding: 1.1rem 1.15rem 1rem; }
.home-car-body h6, .home-car-body .home-car-name {
    color: var(--carvers-text-light);
    font-size: 1rem;
    margin-bottom: .55rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.home-car-body .home-car-specs {
    color: var(--carvers-text-muted-light);
    font-size: .8rem;
    line-height: 1.6;
    letter-spacing: .1px;
    margin-bottom: .5rem;
}
.home-car-body .home-car-serial {
    color: var(--carvers-text-muted-light);
    font-size: .72rem;
    letter-spacing: .2px;
    padding-top: .5rem;
    border-top: 1px solid var(--carvers-border);
}
.home-car-net { color: var(--carvers-text-muted-light); font-size: .78rem; margin-bottom: .6rem; }

/* Shared image-loading skeleton (originally from Categories/showTopic.tpl car grid) */
.skeleton {
    background: linear-gradient(90deg, var(--carvers-bg) 25%, var(--carvers-surface-2) 50%, var(--carvers-bg) 75%);
    background-size: 200% 100%;
    animation: skeleton-wave 1.5s infinite;
    border-radius: 4px;
}
@keyframes skeleton-wave {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Galeria foto (venobox/lightbox) - venobox.min.css doar limiteaza latimea
   (max-width:100%;height:auto), nu si inaltimea, deci pe unele rezolutii poza
   scalata devine mai inalta decat ecranul si apare scroll. Limitam si inaltimea
   ca sa incapa mereu in ecran. !important - venobox.min.css se incarca dupa
   acest fisier in show.tpl si ar castiga altfel la specificitate egala. */
.vbox-container img { max-height: 88vh !important; width: auto !important; }