:root{--navy:#10283f;--blue:#1676b9;--ink:#182633;--muted:#687784;--line:#e1e7ec;--pale:#f3f6f8}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;font-family:Arial,Helvetica,sans-serif;color:var(--ink)}.top{height:76px;padding:0 7%;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line)}.brand{color:var(--navy);font-size:20px;font-weight:900;letter-spacing:2px;text-decoration:none}.brand span{display:block;font-size:10px;letter-spacing:4px;margin-top:3px}.top nav{display:flex;gap:28px}.top nav a{color:var(--ink);text-decoration:none;font-weight:700;font-size:14px}.hero{min-height:480px;background:linear-gradient(90deg,rgba(9,29,47,.97),rgba(9,29,47,.68)),linear-gradient(135deg,#315b7c,#10283f);color:white;display:flex;align-items:center;padding:70px 9%}.hero>div{max-width:650px}.eyebrow{color:#4a9ed7;font-size:11px;font-weight:800;letter-spacing:2.5px}.hero h1{font-size:clamp(42px,6vw,68px);line-height:1.03;margin:18px 0}.hero h1 em{font-style:normal;color:#83c8f3}.hero p:not(.eyebrow){font-size:18px;line-height:1.6;color:#e0e8ee;max-width:540px}.button{display:inline-block;background:var(--blue);color:#fff;text-decoration:none;padding:14px 22px;border-radius:4px;font-weight:800;margin-top:14px}.section{padding:72px 7%}.heading{display:flex;justify-content:space-between;align-items:end;gap:24px;margin-bottom:28px}h2{font-size:36px;margin:8px 0}.heading input{width:min(340px,100%);padding:13px;border:1px solid var(--line);border-radius:4px;font-size:15px}.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(245px,1fr));gap:22px}.vehicle{border:1px solid var(--line);border-radius:7px;overflow:hidden}.photo{height:165px;background:linear-gradient(135deg,#e7edf2,#cbd7e1);display:grid;place-items:center;color:#607384;font-weight:bold}.vehicle-body{padding:19px}.vehicle h3{margin:0 0 8px;font-size:20px}.meta{font-size:13px;line-height:1.7;color:var(--muted)}.price{font-size:22px;font-weight:900;color:var(--blue);margin:12px 0}.note{font-size:12px;color:var(--muted);margin-top:22px}.about{background:var(--pale);padding:68px 7%;display:grid;grid-template-columns:1fr 1fr;gap:48px;align-items:center}.about>p,.contact>p:not(.eyebrow){font-size:16px;line-height:1.8;color:var(--muted)}footer{padding:25px 7%;border-top:1px solid var(--line);display:flex;justify-content:space-between;color:var(--muted);font-size:13px}footer strong{color:var(--navy)}@media(max-width:650px){.top{height:auto;padding:18px 5%;gap:16px}.top nav{gap:12px;flex-wrap:wrap;justify-content:flex-end}.top nav a{font-size:12px}.heading,.about{display:block}.heading input{margin-top:18px}.about>p{margin-top:22px}footer{padding:22px 5%;gap:10px;flex-direction:column}}

.brand img {
    display: block;
    width: 180px;
    height: 80px;
    max-width: 260px;
    max-height: 80px;
    object-fit: contain;
}

/* Vehicle photo gallery */
.photo-gallery {
    width: 100%;
    background: #f2f2f2;
}

.gallery-main {
    display: block;
    width: 100%;
    height: 240px;
    object-fit: cover;
}

.gallery-thumbnails {
    display: flex;
    gap: 6px;
    padding: 8px;
    overflow-x: auto;
}

.gallery-thumbnails img {
    width: 65px;
    height: 55px;
    object-fit: cover;
    cursor: pointer;
    border: 2px solid transparent;
    border-radius: 4px;
    flex: 0 0 auto;
}

.gallery-thumbnails img.selected {
    border-color: #228b22;
}

.gallery-thumbnails {
    display: none;
}

.gallery-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px;
}

.gallery-controls button {
    cursor: pointer;
    padding: 7px 14px;
}

/* Display the complete vehicle photo without cropping */
.photo-gallery {
    background: #fff;
}

.gallery-main {
    display: block;
    width: 100%;
    height: auto;
    max-height: 360px;
    object-fit: contain;
    background: #fff;
}

.status-badge {
    display: inline-block;
    margin-left: 10px;
    padding: 4px 10px;
    border-radius: 4px;
    color: white;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
}

.status-badge.available {
    background-color: #16a34a;
}

.status-badge.sold {
    background-color: #dc2626;
}