/* ================================================================
   Aldeia Carros e Antigos – Public Site Stylesheet
   Theme: Elegant Black with Champagne/Gold accents
   ================================================================ */

/* ── Variables ─────────────────────────────────────────────── */
:root {
    --black:      #000000;
    --dark-1:     #080808;
    --dark-2:     #0f0f0f;
    --dark-3:     #161616;
    --dark-4:     #1e1e1e;
    --border:     #2a2a2a;
    --border-lt:  #333;
    --gold:       #C9A84C;
    --gold-light: #e8c97a;
    --gold-dim:   rgba(201, 168, 76, .12);
    --white:      #ffffff;
    --gray:       #888;
    --gray-lt:    #bbb;
    --success:    #48bb78;
    --danger:     #e53e3e;

    --font-h:  'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-b:  'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;

    --radius:    10px;
    --radius-lg: 16px;
    --shadow:    0 4px 24px rgba(0,0,0,.5);
    --shadow-lg: 0 8px 48px rgba(0,0,0,.7);
    --transition: .3s ease;

    --navbar-h: 70px;
    --container: 1200px;
}

/* ── Reset & Base ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; overflow-x: hidden; }
body {
    background: var(--dark-1);
    color: var(--white);
    font-family: var(--font-b);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ── Navbar ────────────────────────────────────────────────── */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 900;
    height: var(--navbar-h);
    transition: background var(--transition), box-shadow var(--transition);
}
.navbar.scrolled {
    background: rgba(8,8,8,.97);
    backdrop-filter: blur(12px);
    box-shadow: 0 2px 20px rgba(0,0,0,.6);
    border-bottom: 1px solid var(--border);
}
.navbar-inner {
    height: var(--navbar-h);
    display: flex;
    align-items: center;
    gap: 1.5rem;
}
.navbar-brand { display: flex; align-items: center; flex-shrink: 0; }
.navbar-logo { max-height: 52px; }
.navbar-logo-text {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-family: var(--font-h);
    font-weight: 800;
    font-size: 1.25rem;
    letter-spacing: .05em;
    color: var(--white);
}
.navbar-logo-text i { color: var(--gold); }

.navbar-links {
    display: flex;
    gap: 2rem;
    margin-left: auto;
}
.navbar-links a {
    font-size: .88rem;
    font-weight: 500;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--gray-lt);
    transition: color var(--transition);
}
.navbar-links a:hover { color: var(--gold); }

.btn-whatsapp-nav {
    display: flex;
    align-items: center;
    gap: .4rem;
    background: #25D366;
    color: #fff;
    padding: .5rem 1rem;
    border-radius: 50px;
    font-size: .82rem;
    font-weight: 600;
    letter-spacing: .04em;
    transition: background var(--transition), transform .1s;
    flex-shrink: 0;
}
.btn-whatsapp-nav:hover { background: #1ebe57; transform: scale(1.03); }

.hamburger-pub {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: .25rem;
    margin-left: auto;
}
.hamburger-pub span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: var(--transition);
}

/* Mobile nav */
@media (max-width: 768px) {
    .navbar { z-index: 900; }
    .navbar-links {
        position: fixed;
        top: var(--navbar-h);
        left: 0; right: 0;
        background: rgba(8,8,8,.98);
        border-bottom: 1px solid var(--border);
        flex-direction: column;
        align-items: center;
        gap: 0;
        padding: 0;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transition: max-height .4s ease, opacity .3s ease, padding .4s ease;
        z-index: 850;
    }
    .navbar-links.open {
        max-height: 500px;
        opacity: 1;
        padding: 1rem 0 1.5rem;
    }
    .navbar-links a { padding: .75rem 1rem; font-size: .9rem; }
    .btn-whatsapp-nav { display: none; }
    .hamburger-pub { display: flex; z-index: 910; position: relative; }
}

/* ── Hero Section ──────────────────────────────────────────── */
.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding-top: var(--navbar-h);
}
.hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 52% 40%, rgba(116,59,26,.14) 0%, transparent 24%),
        radial-gradient(circle at 58% 46%, rgba(201,168,76,.12) 0%, transparent 34%),
        radial-gradient(circle at 50% 50%, rgba(58,27,77,.18) 0%, transparent 58%),
        radial-gradient(circle at 12% 20%, rgba(255,255,255,.03) 0%, transparent 22%),
        linear-gradient(180deg, rgba(0,0,0,.4) 0%, rgba(0,0,0,.72) 100%),
        linear-gradient(135deg, #000 0%, #0a0a0a 45%, #080808 100%);
    z-index: 0;
}
.hero-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at center, transparent 48%, rgba(0,0,0,.42) 88%),
        linear-gradient(90deg, rgba(0,0,0,.7) 0%, transparent 18%, transparent 82%, rgba(0,0,0,.72) 100%);
    z-index: 0;
}
.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        repeating-linear-gradient(0deg, transparent, transparent 79px, rgba(201,168,76,.065) 79px, rgba(201,168,76,.065) 80px),
        repeating-linear-gradient(90deg, transparent, transparent 79px, rgba(201,168,76,.065) 79px, rgba(201,168,76,.065) 80px),
        repeating-linear-gradient(0deg, transparent, transparent 19px, rgba(255,255,255,.02) 19px, rgba(255,255,255,.02) 20px),
        repeating-linear-gradient(90deg, transparent, transparent 19px, rgba(255,255,255,.02) 19px, rgba(255,255,255,.02) 20px);
    opacity: .65;
    z-index: 1;
}
.hero-content {
    position: relative;
    z-index: 1;
    padding: 5rem 1.5rem;
    max-width: 760px;
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: var(--gold-dim);
    border: 1px solid rgba(201,168,76,.25);
    color: var(--gold);
    border-radius: 50px;
    padding: .35rem 1rem;
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}
.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.4rem, 6vw, 4rem);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -.01em;
    margin-bottom: 1rem;
}
.text-gold { color: var(--gold); }
.hero-subtitle {
    color: var(--gray-lt);
    font-size: 1.1rem;
    font-weight: 300;
    max-width: 500px;
    margin-bottom: 2.5rem;
}
.hero-search {
    display: flex;
    gap: .75rem;
    max-width: 540px;
    margin-bottom: 3rem;
}
.hero-search-input {
    flex: 1;
    position: relative;
}
.hero-search-input i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray);
}
.hero-search-input input {
    width: 100%;
    background: rgba(255,255,255,.06);
    border: 1px solid var(--border-lt);
    border-radius: var(--radius);
    color: var(--white);
    font-family: var(--font-b);
    font-size: .95rem;
    padding: .85rem 1rem .85rem 2.8rem;
    outline: none;
    backdrop-filter: blur(8px);
    transition: border-color var(--transition), box-shadow var(--transition);
}
.hero-search-input input:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px var(--gold-dim);
}
.hero-search-input input::placeholder { color: var(--gray); }
.btn-hero-search {
    background: var(--gold);
    color: var(--black);
    border: none;
    border-radius: var(--radius);
    font-family: var(--font-h);
    font-weight: 700;
    font-size: .88rem;
    padding: .85rem 1.5rem;
    cursor: pointer;
    white-space: nowrap;
    transition: background var(--transition), box-shadow var(--transition);
}
.btn-hero-search:hover { background: var(--gold-light); box-shadow: 0 4px 20px rgba(201,168,76,.3); }

.hero-stats {
    display: flex;
    gap: 2.5rem;
}
.hero-stat-num {
    font-family: var(--font-h);
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--gold);
}
.hero-stat-label {
    font-size: .78rem;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: .08em;
}
.hero-scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    color: var(--gold);
    animation: bounce 2s infinite;
    z-index: 1;
    font-size: 1.2rem;
}
@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50%       { transform: translateX(-50%) translateY(8px); }
}

/* ── Estoque Section ───────────────────────────────────────── */
.section-estoque {
    padding: 5rem 0 6rem;
    background: var(--dark-1);
}
.section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 2.5rem;
    gap: 1rem;
    flex-wrap: wrap;
}
.section-eyebrow {
    display: block;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .15em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: .4rem;
}
.section-title-pub {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -.01em;
}
.estoque-count {
    color: var(--gray);
    font-size: .88rem;
    padding-bottom: .25rem;
}

/* Filter bar */
.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: flex-end;
    background: var(--dark-3);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem 1.5rem;
    margin-bottom: 2.5rem;
}
.filter-group {
    display: flex;
    flex-direction: column;
    gap: .35rem;
    min-width: 150px;
}
.filter-group label {
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--gray);
    display: flex;
    align-items: center;
    gap: .35rem;
}
.filter-group select,
.filter-group input[type="number"] {
    background: var(--dark-4);
    border: 1px solid var(--border-lt);
    border-radius: 6px;
    color: var(--white);
    font-family: var(--font-b);
    font-size: .88rem;
    padding: .5rem .75rem;
    outline: none;
    transition: border-color var(--transition);
}
.filter-group select:focus,
.filter-group input:focus { border-color: var(--gold); }
.filter-price { flex-direction: column; }
.price-range { display: flex; align-items: center; gap: .5rem; }
.price-range span { color: var(--gray); }
.price-range input { width: 110px; }
.filter-clear {
    display: flex;
    align-items: center;
    gap: .4rem;
    color: var(--gray);
    font-size: .82rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: .48rem .75rem;
    transition: color var(--transition), border-color var(--transition);
    align-self: flex-end;
}
.filter-clear:hover { color: var(--danger); border-color: var(--danger); }

/* Vehicle Grid */
.vehicles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.75rem;
}
.vehicle-card {
    background: var(--dark-3);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.vehicle-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg), 0 0 0 1px rgba(201,168,76,.15);
    border-color: rgba(201,168,76,.25);
}
.card-photo-link { display: block; }
.card-photo {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
    background: var(--dark-4);
}
.card-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}
.vehicle-card:hover .card-photo img { transform: scale(1.05); }
.card-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition);
}
.vehicle-card:hover .card-overlay { opacity: 1; }
.card-overlay span {
    color: var(--white);
    font-family: var(--font-h);
    font-weight: 600;
    font-size: .88rem;
    letter-spacing: .06em;
    border: 2px solid var(--gold);
    padding: .5rem 1.2rem;
    border-radius: 50px;
}
.card-body { padding: 1.25rem; }
.card-meta {
    display: flex;
    justify-content: space-between;
    font-size: .78rem;
    color: var(--gray);
    margin-bottom: .5rem;
}
.card-km { display: flex; align-items: center; gap: .3rem; }
.card-title {
    font-family: var(--font-h);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: .6rem;
    line-height: 1.3;
}
.card-title a:hover { color: var(--gold); }
.card-versao { font-weight: 400; color: var(--gray); font-size: .85rem; }
.card-specs {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-bottom: 1rem;
}
.card-specs span {
    display: flex;
    align-items: center;
    gap: .3rem;
    font-size: .75rem;
    color: var(--gray);
    background: var(--dark-4);
    border-radius: 4px;
    padding: .2rem .5rem;
}
.card-specs i { color: var(--gold); font-size: .7rem; }
.card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: .75rem;
    border-top: 1px solid var(--border);
}
.card-price {
    font-family: var(--font-h);
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--gold);
}
.card-actions { display: flex; align-items: center; gap: .5rem; }
.btn-card-detail {
    font-family: var(--font-h);
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .05em;
    color: var(--white);
    border: 1px solid var(--border-lt);
    border-radius: 6px;
    padding: .4rem .85rem;
    transition: all var(--transition);
}
.btn-card-detail:hover {
    border-color: var(--gold);
    color: var(--gold);
}
.btn-card-wa {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    background: #25D366;
    color: #fff;
    border-radius: 6px;
    font-size: 1.1rem;
    transition: background var(--transition);
}
.btn-card-wa:hover { background: #1ebe57; }

/* No results */
.no-results {
    text-align: center;
    padding: 4rem 1rem;
    color: var(--gray);
}
.no-results i { font-size: 3rem; margin-bottom: 1rem; opacity: .3; display: block; }
.no-results h3 { font-size: 1.3rem; color: var(--white); margin-bottom: .5rem; }
.no-results a { color: var(--gold); }
.btn-pub-outline {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    border: 1px solid var(--gold);
    color: var(--gold);
    border-radius: var(--radius);
    padding: .6rem 1.5rem;
    font-size: .88rem;
    font-weight: 600;
    margin-top: 1.5rem;
    transition: all var(--transition);
}
.btn-pub-outline:hover { background: var(--gold); color: var(--black); }

/* Pagination */
.pagination-pub {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: .5rem;
    margin-top: 3rem;
}
.page-btn-pub {
    display: flex; align-items: center; justify-content: center;
    width: 40px; height: 40px;
    background: var(--dark-3);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--white);
    font-family: var(--font-h);
    font-size: .88rem;
    font-weight: 600;
    transition: all var(--transition);
}
.page-btn-pub:hover, .page-btn-pub.active {
    background: var(--gold);
    color: var(--black);
    border-color: var(--gold);
}

/* ── Sobre Section ─────────────────────────────────────────── */
.section-sobre {
    padding: 6rem 0;
    background: var(--dark-2);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.sobre-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}
.sobre-text p {
    color: var(--gray-lt);
    line-height: 1.8;
    margin: 1.25rem 0 2rem;
    font-size: 1.05rem;
}
.btn-pub-primary {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: #25D366;
    color: #fff;
    border-radius: var(--radius);
    padding: .8rem 1.75rem;
    font-family: var(--font-h);
    font-weight: 700;
    font-size: .92rem;
    transition: all var(--transition);
}
.btn-pub-primary:hover { background: #1ebe57; box-shadow: 0 4px 20px rgba(37,211,102,.3); }
.sobre-features { display: flex; flex-direction: column; gap: 1.5rem; }
.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem;
    background: var(--dark-3);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: border-color var(--transition);
}
.feature-item:hover { border-color: rgba(201,168,76,.2); }
.feature-icon {
    width: 44px; height: 44px;
    background: var(--gold-dim);
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    color: var(--gold);
    font-size: 1.1rem;
    flex-shrink: 0;
}
.feature-item h4 { font-family: var(--font-h); font-size: .95rem; font-weight: 700; margin-bottom: .25rem; }
.feature-item p { font-size: .85rem; color: var(--gray); }

/* ── Contato Section ───────────────────────────────────────── */
.section-contato {
    padding: 6rem 0;
    background: var(--dark-1);
}
.contato-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}
.contato-text p {
    color: var(--gray-lt);
    margin-top: 1rem;
    font-size: 1.05rem;
    line-height: 1.8;
}
.contact-wa-btn {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: #25D366;
    color: #fff;
    border-radius: var(--radius);
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.75rem;
    transition: all var(--transition);
}
.contact-wa-btn:hover { background: #1ebe57; box-shadow: 0 4px 24px rgba(37,211,102,.3); }
.contact-wa-btn i { font-size: 2rem; }
.contact-wa-btn strong { display: block; font-family: var(--font-h); font-size: 1rem; }
.contact-wa-btn span   { font-size: .82rem; opacity: .85; }
.contact-items { display: flex; flex-direction: column; gap: 1rem; }
.contact-item {
    display: flex;
    align-items: flex-start;
    gap: .75rem;
    font-size: .92rem;
    color: var(--gray-lt);
}
.contact-item i { color: var(--gold); font-size: 1rem; margin-top: .15rem; width: 16px; }
.contact-item a:hover { color: var(--gold); }
.contact-map {
    margin-top: 2rem;
    background: var(--dark-3);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
}
.contact-map iframe {
    display: block;
    width: 100%;
    height: 320px;
    border: 0;
}
.contact-map-link {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: 1rem 1.25rem 1.1rem;
    font-size: .88rem;
    font-weight: 600;
    color: var(--gold);
}
.contact-map-link:hover { color: var(--gold-light); }

/* ── Footer ────────────────────────────────────────────────── */
.site-footer {
    background: #000;
    border-top: 1px solid var(--border);
    padding: 4rem 0 2rem;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 3rem;
    margin-bottom: 3rem;
}
.footer-brand {
    display: flex;
    align-items: center;
    gap: .6rem;
    font-family: var(--font-h);
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: .75rem;
}
.footer-logo { max-height: 60px; width: auto; }
.footer-slogan { color: var(--gold); font-size: .82rem; margin-bottom: .75rem; }
.footer-about { color: var(--gray); font-size: .85rem; line-height: 1.7; }
.footer-heading {
    font-family: var(--font-h);
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 1.25rem;
}
.footer-links { display: flex; flex-direction: column; gap: .6rem; }
.footer-links a {
    display: flex; align-items: center; gap: .5rem;
    color: var(--gray);
    font-size: .88rem;
    transition: color var(--transition);
}
.footer-links a i { font-size: .65rem; color: var(--gold); }
.footer-links a:hover { color: var(--white); }
.footer-contact { display: flex; flex-direction: column; gap: .75rem; }
.footer-contact li {
    display: flex; align-items: flex-start; gap: .6rem;
    color: var(--gray); font-size: .85rem;
}
.footer-contact i { color: var(--gold); margin-top: .15rem; width: 14px; }
.footer-contact a:hover { color: var(--white); }
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    font-size: .8rem;
    color: rgba(255,255,255,.3);
}
.footer-admin-link { color: rgba(255,255,255,.2); font-size: .75rem; transition: color var(--transition); }
.footer-admin-link:hover { color: var(--gold); }

/* ── Breadcrumb ────────────────────────────────────────────── */
.breadcrumb {
    background: var(--dark-2);
    border-bottom: 1px solid var(--border);
    margin-top: var(--navbar-h);
}
.breadcrumb-inner {
    display: flex;
    align-items: center;
    gap: .6rem;
    padding-top: .75rem;
    padding-bottom: .75rem;
    font-size: .8rem;
    color: var(--gray);
}
.breadcrumb-inner a:hover { color: var(--gold); }
.breadcrumb-inner i { font-size: .6rem; }
.breadcrumb-inner span { color: var(--white); }

/* ── Vehicle Detail ────────────────────────────────────────── */
.vehicle-detail-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

/* Force grid children to respect their track width */
.vehicle-detail-grid > * { min-width: 0; }

/* Gallery */
.gallery-main {
    position: relative;
    aspect-ratio: 16/10;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--dark-3);
    border: 1px solid var(--border);
}
.gallery-main img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: opacity .2s;
}
.sold-banner {
    position: absolute;
    top: 1rem; left: 1rem;
    background: var(--danger);
    color: #fff;
    font-family: var(--font-h);
    font-weight: 800;
    font-size: .85rem;
    letter-spacing: .12em;
    padding: .4rem 1rem;
    border-radius: 6px;
}
.gallery-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,.55);
    border: 1px solid rgba(255,255,255,.1);
    color: var(--white);
    width: 40px; height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: all var(--transition);
    backdrop-filter: blur(4px);
}
.gallery-arrow:hover { background: var(--gold); color: var(--black); }
.gallery-prev { left: .75rem; }
.gallery-next { right: .75rem; }
.gallery-thumbs {
    display: flex;
    gap: .6rem;
    margin-top: .75rem;
    overflow-x: auto;
    padding-bottom: .25rem;
    scrollbar-width: thin;
    scrollbar-color: var(--border) transparent;
}
.gallery-thumb {
    width: 80px; height: 56px;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    flex-shrink: 0;
    border: 2px solid transparent;
    opacity: .6;
    transition: all var(--transition);
}
.gallery-thumb:hover, .gallery-thumb.active { border-color: var(--gold); opacity: 1; }
.gallery-no-photo {
    width: 100%; aspect-ratio: 16/10;
    border-radius: var(--radius-lg);
    background: var(--dark-3);
    border: 1px solid var(--border);
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: .75rem; color: var(--gray);
}
.gallery-no-photo i { font-size: 3rem; }

/* Info panel */
.vehicle-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: .5rem; }
.vehicle-brand { display: block; font-size: .78rem; letter-spacing: .15em; text-transform: uppercase; color: var(--gold); margin-bottom: .25rem; }
.vehicle-title { font-family: var(--font-h); font-size: 2rem; font-weight: 900; line-height: 1.2; }
.vehicle-versao { font-size: 1.2rem; font-weight: 500; color: var(--gray-lt); }
.vehicle-status { display: inline-block; padding: .3rem .75rem; border-radius: 50px; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; flex-shrink: 0; }
.badge-disponivel { background: rgba(72,187,120,.15); color: #6ee7b7; border: 1px solid rgba(72,187,120,.3); }
.badge-vendido    { background: rgba(229,62,62,.12); color: #fc8181; border: 1px solid rgba(229,62,62,.25); }
.badge-reservado  { background: rgba(237,137,54,.12); color: #fbd38d; border: 1px solid rgba(237,137,54,.25); }

.vehicle-price {
    font-family: var(--font-h);
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--gold);
    margin: 1rem 0 1.5rem;
}
.quick-specs {
    display: flex;
    flex-direction: column;
    gap: .65rem;
    padding: 1.25rem;
    background: var(--dark-3);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    margin-bottom: 1.75rem;
}
.spec-item { display: flex; align-items: center; gap: .85rem; }
.spec-item > i { color: var(--gold); width: 18px; text-align: center; }
.spec-label { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--gray); display: block; }
.spec-val { font-size: .95rem; font-weight: 600; color: var(--white); }

.cta-buttons { display: flex; gap: .75rem; margin-bottom: 1.5rem; }
.btn-interest {
    flex: 1;
    display: flex; align-items: center; justify-content: center; gap: .6rem;
    background: #25D366;
    color: #fff;
    border-radius: var(--radius);
    font-family: var(--font-h);
    font-weight: 700;
    font-size: .95rem;
    padding: .9rem;
    transition: all var(--transition);
}
.btn-interest:hover { background: #1ebe57; box-shadow: 0 4px 20px rgba(37,211,102,.3); }
.btn-call {
    display: flex; align-items: center; gap: .5rem;
    background: var(--dark-3);
    color: var(--white);
    border: 1px solid var(--border-lt);
    border-radius: var(--radius);
    font-family: var(--font-h);
    font-weight: 600;
    font-size: .88rem;
    padding: .9rem 1.25rem;
    transition: all var(--transition);
}
.btn-call:hover { border-color: var(--gold); color: var(--gold); }

.sold-notice {
    background: rgba(229,62,62,.08);
    border: 1px solid rgba(229,62,62,.2);
    border-radius: var(--radius);
    padding: 1rem 1.25rem;
    font-size: .9rem;
    color: var(--gray-lt);
    display: flex; align-items: flex-start; gap: .65rem;
    margin-bottom: 1.5rem;
}
.sold-notice i { color: var(--danger); margin-top: .1rem; }
.sold-notice a { color: var(--gold); }

.vehicle-description {
    background: var(--dark-3);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
    margin-bottom: 1.5rem;
}
.vehicle-description h3 { font-size: .88rem; font-weight: 700; display: flex; align-items: center; gap: .5rem; margin-bottom: .75rem; color: var(--gold); }
.vehicle-description p { font-size: .9rem; color: var(--gray-lt); line-height: 1.8; }

.vehicle-contact-bar {
    display: flex;
    flex-direction: column;
    gap: .65rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border);
    margin-top: 1.25rem;
}
.vcontact-item { display: flex; align-items: flex-start; gap: .6rem; font-size: .85rem; color: var(--gray); }
.vcontact-item i { color: var(--gold); width: 14px; margin-top: .1rem; }
.vcontact-item a:hover { color: var(--gold); }

/* Related */
.related-section { border-top: 1px solid var(--border); padding-top: 3rem; }
.related-title {
    font-family: var(--font-h);
    font-size: 1.25rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: .6rem;
    margin-bottom: 1.5rem;
}
.related-title i { color: var(--gold); }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.related-card {
    background: var(--dark-3);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all var(--transition);
}
.related-card:hover { border-color: rgba(201,168,76,.25); transform: translateY(-3px); }
.related-photo { aspect-ratio: 16/10; }
.related-photo img { width: 100%; height: 100%; object-fit: cover; }
.related-info { padding: .75rem; }
.related-info strong { display: block; font-size: .9rem; margin-bottom: .25rem; }
.related-info .text-gold { font-family: var(--font-h); font-weight: 700; font-size: 1rem; }

/* Floating WA */
.wa-float {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 800;
    width: 58px; height: 58px;
    background: #25D366;
    color: #fff;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.6rem;
    box-shadow: 0 4px 20px rgba(37,211,102,.4);
    transition: all var(--transition);
}
.wa-float:hover { transform: scale(1.1); box-shadow: 0 6px 28px rgba(37,211,102,.5); }

/* ── PWA Install Prompt ────────────────────────────────────── */
/* Mobile install banner */
.pwa-install-banner {
    position: fixed;
    bottom: -120px;
    left: 0; right: 0;
    z-index: 850;
    padding: 0 .75rem .75rem;
    transition: bottom .35s cubic-bezier(.4,0,.2,1);
    pointer-events: none;
}
.pwa-install-banner.show {
    bottom: 0;
    pointer-events: all;
}
.pwa-banner-inner {
    display: flex;
    align-items: center;
    gap: .75rem;
    background: var(--dark-3);
    border: 1px solid var(--border-lt);
    border-radius: var(--radius-lg);
    padding: .85rem 1rem;
    box-shadow: 0 -4px 32px rgba(0,0,0,.7);
}
.pwa-banner-inner > i {
    color: var(--gold);
    font-size: 1.5rem;
    flex-shrink: 0;
}
.pwa-banner-text {
    flex: 1;
    min-width: 0;
}
.pwa-banner-text strong {
    display: block;
    font-family: var(--font-h);
    font-size: .9rem;
    font-weight: 700;
}
.pwa-banner-text span {
    font-size: .75rem;
    color: var(--gray);
}
.pwa-banner-btn {
    background: var(--gold);
    color: var(--black);
    border: none;
    border-radius: 8px;
    font-family: var(--font-h);
    font-weight: 700;
    font-size: .82rem;
    padding: .5rem 1rem;
    cursor: pointer;
    flex-shrink: 0;
    transition: background var(--transition);
}
.pwa-banner-btn:hover { background: var(--gold-light); }
.pwa-banner-close {
    width: 30px; height: 30px;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 50%;
    color: var(--gray);
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    transition: all var(--transition);
}
.pwa-banner-close:hover { border-color: var(--danger); color: var(--danger); }

/* ── Lightbox ──────────────────────────────────────────────── */
.lb-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(0,0,0,.92);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s;
}
.lb-overlay.lb-open {
    opacity: 1;
    pointer-events: all;
}
.lb-img-wrap {
    width: 92vw;
    height: 84vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
#lbImg {
    display: block;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transform-origin: center center;
    transition: transform .15s ease, opacity .2s;
    user-select: none;
    -webkit-user-drag: none;
    cursor: zoom-in;
}
.lb-overlay.lb-zoomed   #lbImg { cursor: grab; }
.lb-overlay.lb-dragging #lbImg { cursor: grabbing; }
.lb-close {
    position: fixed;
    top: 1rem; right: 1rem;
    width: 44px; height: 44px;
    border-radius: 50%;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.18);
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background var(--transition), border-color var(--transition);
    z-index: 2010;
}
.lb-close:hover { background: var(--danger); border-color: var(--danger); }
.lb-arrow {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    width: 48px; height: 48px;
    border-radius: 50%;
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.15);
    color: #fff;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background var(--transition), border-color var(--transition);
    z-index: 2010;
    backdrop-filter: blur(4px);
}
.lb-arrow:hover { background: var(--gold); color: var(--black); border-color: var(--gold); }
.lb-prev { left: 1rem; }
.lb-next { right: 1rem; }
.lb-counter {
    position: fixed;
    bottom: 4.5rem; left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,.55);
    color: rgba(255,255,255,.65);
    font-size: .78rem;
    padding: .3rem .75rem;
    border-radius: 50px;
    pointer-events: none;
    z-index: 2010;
    white-space: nowrap;
}
.lb-zoom-bar {
    position: fixed;
    bottom: 1rem; left: 50%;
    transform: translateX(-50%);
    display: flex; align-items: center; gap: .5rem;
    background: rgba(0,0,0,.6);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 50px;
    padding: .35rem .85rem;
    z-index: 2010;
    backdrop-filter: blur(8px);
}
.lb-zoom-bar button {
    width: 30px; height: 30px;
    border-radius: 50%;
    background: rgba(255,255,255,.1);
    border: none;
    color: #fff;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    font-size: .85rem;
    transition: background var(--transition);
}
.lb-zoom-bar button:hover { background: var(--gold); color: var(--black); }
#lbZoomLabel { color: rgba(255,255,255,.65); font-size: .78rem; min-width: 38px; text-align: center; }
/* Hint de zoom na galeria principal */
.gallery-main { cursor: zoom-in; }
@media (max-width: 640px) {
    .lb-arrow { width: 38px; height: 38px; }
    .lb-prev  { left: .4rem; }
    .lb-next  { right: .4rem; }
}

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 960px) {
    .sobre-grid, .contato-grid { grid-template-columns: 1fr; gap: 2.5rem; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .vehicle-detail-grid { grid-template-columns: 1fr; }
    .related-grid { grid-template-columns: repeat(2, 1fr); }

    /* Gallery: single-column layout — cap height and show full image */
    .gallery-main {
        aspect-ratio: unset;
        height: min(56vw, 430px);
    }
    .gallery-main img { object-fit: contain; }
}
@media (min-width: 961px) {
    .footer-logo { max-height: 96px; }
}
@media (max-width: 640px) {
    .hero-search { flex-direction: column; }
    .hero-stats { gap: 1.5rem; }
    .filter-bar { padding: 1rem; }
    .vehicles-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
    .footer-brand { justify-content: center; }
    .footer-logo { margin: 0 auto; }
    .related-grid { grid-template-columns: 1fr; }
    .cta-buttons { flex-direction: column; }
    .vehicle-header { flex-direction: column; gap: .75rem; }
    .contact-map iframe { height: 260px; }

    /* Gallery: small phones */
    .gallery-main { height: min(72vw, 300px); }
    .gallery-thumb { width: 60px; height: 42px; }
    .gallery-arrow { width: 34px; height: 34px; }
}
