/* =============================================================================
   SINGLE CAR PAGE — Two-column layout, gallery, specs, HP calc, lightbox
   ============================================================================= */

.ac-single-page { background: #fff; }

/* Section 1: main image left, details right */
.ac-single-top {
    display: grid; grid-template-columns: 1fr 1fr;
    align-items: start;
}
.ac-single-main-img {
    position: relative; overflow: hidden; cursor: pointer;
    background: #111; aspect-ratio: 4/3;
}
.ac-single-main-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.ac-single-main-img:hover img { transform: scale(1.02); }

/* AA badge */
.ac-single-aa-badge {
    position: absolute; top: 0; left: 0; z-index: 3;
    background: #1a1a1a;
    display: flex; flex-direction: column; align-items: flex-start;
    padding: 8px 14px 8px 8px;
}
.ac-single-aa-badge .aa-yellow { font-size: 1.4rem; font-weight: 900; color: #f5c518; line-height: 1; }
.ac-single-aa-badge span:last-child { font-size: .72rem; font-weight: 700; color: #fff; letter-spacing: .05em; }

/* Delivery/warranty footer bar on image */
.ac-single-img-footer {
    position: absolute; bottom: 0; left: 0; right: 0; z-index: 3;
    background: rgba(0,0,0,.85);
    display: flex; justify-content: space-between; align-items: center;
    padding: 10px 16px; color: #fff;
}
.ac-single-img-left,
.ac-single-img-right { display: flex; align-items: center; gap: 10px; }
.ac-single-img-left strong,
.ac-single-img-right strong { font-size: .8rem; letter-spacing: .05em; text-transform: uppercase; }
.ac-single-img-left small { font-size: .62rem; display: block; color: rgba(255,255,255,.65); }

/* Right: details panel */
.ac-single-right { padding: 32px 36px; border-left: 1px solid #f0f0f0; overflow-y: auto; }
.ac-single-title { font-size: clamp(1.4rem, 2vw, 1.8rem); font-weight: 700; color: #111; margin-bottom: 4px; }
.ac-single-subtitle { font-size: .9rem; color: #888; margin-bottom: 16px; }

/* Trust row */
.ac-single-trust-row { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; flex-wrap: wrap; }
.ac-trust-badge-aa { background: #1a1a1a; color: #f5c518; font-size: .72rem; font-weight: 800; padding: 5px 12px; }
.ac-trust-badge-cartell { background: #f5f5f5; border: 1px solid #ddd; color: #333; font-size: .72rem; font-weight: 700; padding: 5px 12px; }
.ac-wishlist-btn--sm {
    width: 34px; height: 34px; border-radius: 50%; background: #f5f5f5; border: 1px solid #ddd;
    display: flex; align-items: center; justify-content: center; cursor: pointer; color: #888; transition: all .2s;
}
.ac-wishlist-btn--sm:hover { color: #e05a5a; }
.ac-single-share-btn {
    width: 34px; height: 34px; border-radius: 50%; background: #f5f5f5; border: 1px solid #ddd;
    display: flex; align-items: center; justify-content: center; cursor: pointer; color: #888; transition: all .2s;
}
.ac-single-share-btn:hover { background: #111; color: #fff; border-color: #111; }

/* Pricing */
.ac-single-pricing {
    display: flex; gap: 32px; margin-bottom: 24px;
    padding-bottom: 20px; border-bottom: 1px solid #f0f0f0;
}
.ac-price-lbl { display: block; font-size: .65rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #999; margin-bottom: 3px; }
.ac-price-val { font-size: 1.15rem; font-weight: 800; color: #111; }

/* Action buttons */
.ac-single-actions { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.ac-single-actions-row { display: flex; flex-wrap: wrap; gap: 8px; }
.ac-action-btn {
    padding: 10px 16px; border-radius: 100px;
    font-weight: 700; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase;
    cursor: pointer; border: 1.5px solid #333; background: transparent; color: #333;
    transition: all .2s; text-decoration: none; white-space: nowrap;
    display: inline-flex; align-items: center;
}
.ac-action-btn:hover { background: #111; color: #fff; border-color: #111; }
.ac-action-btn--enquiry  { background: var(--ac-accent); color: #111; border-color: var(--ac-accent); }
.ac-action-btn--enquiry:hover { filter: brightness(1.1); color: #111; }
.ac-action-btn--whatsapp { background: #25D366; color: #fff; border-color: #25D366; }
.ac-action-btn--whatsapp:hover { background: #1da851; color: #fff; }

/* Dealer */
.ac-single-dealer { display: flex; align-items: center; gap: 6px; font-size: .85rem; color: #555; margin-bottom: 20px; }

/* Overview */
.ac-single-overview { background: #f7f7f5; padding: 20px; margin-bottom: 16px; border-radius: 4px; }
.ac-overview-heading { font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #888; margin-bottom: 16px; }
.ac-overview-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px 8px; }
.ac-overview-lbl { display: block; font-size: .62rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #aaa; margin-bottom: 3px; }
.ac-overview-val { font-size: .88rem; font-weight: 600; color: #111; }
.ac-single-reg { font-size: .82rem; color: #888; margin-top: 8px; }

/* Section 2: gallery thumbnails + description + finance */
.ac-single-bottom { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid #f0f0f0; }
.ac-single-gallery-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; padding: 3px 3px 3px 0; align-content: start; }
.ac-single-thumb { position: relative; overflow: hidden; cursor: pointer; aspect-ratio: 4/3; background: #f4f4f4; }
.ac-single-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.ac-single-thumb:hover img { transform: scale(1.04); }
.ac-thumb-expand {
    position: absolute; top: 8px; left: 8px; z-index: 2;
    background: rgba(0,0,0,.5); color: #fff; width: 30px; height: 30px;
    border-radius: 4px; display: flex; align-items: center; justify-content: center;
    opacity: 0; transition: opacity .2s;
}
.ac-single-thumb:hover .ac-thumb-expand { opacity: 1; }

.ac-single-desc-finance { padding: 32px 36px; border-left: 1px solid #f0f0f0; }
.ac-single-description { font-size: .92rem; line-height: 1.75; color: #444; margin-bottom: 32px; }
.ac-single-description p { margin-bottom: 12px; }

/* HP Finance Calculator */
.ac-hp-calc-title { font-size: 1.1rem; font-weight: 700; color: #111; margin-bottom: 16px; display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.ac-hp-calc-sub { font-size: .8rem; font-weight: 400; color: #888; }
.ac-hp-table-wrap { overflow-x: auto; margin-bottom: 12px; }
.ac-hp-table { width: 100%; border-collapse: collapse; font-size: .85rem; }
.ac-hp-table th, .ac-hp-table td { padding: 12px 16px; text-align: center; border: 1px solid #e8e8e8; }
.ac-hp-table thead th { background: #111; color: #fff; font-weight: 700; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; }
.ac-hp-table thead th:first-child { background: #fff; }
.ac-hp-table tbody tr:nth-child(even) { background: #f9f9f7; }
.ac-hp-row-lbl { font-weight: 700; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: #888; text-align: left; }
.ac-hp-disclaimer { font-size: .75rem; color: #aaa; margin-bottom: 4px; }

/* Lightbox */
.ac-lightbox {
    position: fixed; inset: 0; z-index: 9999;
    background: rgba(0,0,0,.95);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; opacity: 0; visibility: hidden; pointer-events: none;
    transition: opacity .25s, visibility .25s;
}
.ac-lightbox.open { opacity: 1; visibility: visible; pointer-events: all; }
.ac-lightbox img { max-width: 92vw; max-height: 92vh; object-fit: contain; display: block; cursor: default; }
.ac-lightbox-close {
    position: absolute; top: 20px; right: 20px;
    width: 44px; height: 44px; border-radius: 50%;
    background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2);
    color: #fff; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background .2s;
}
.ac-lightbox-close:hover { background: rgba(255,255,255,.25); }
.ac-lightbox-nav {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 52px; height: 52px; border-radius: 50%;
    background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2);
    color: #fff; cursor: pointer; z-index: 1;
    display: flex; align-items: center; justify-content: center;
    transition: background .2s;
}
.ac-lightbox-nav:hover { background: rgba(255,255,255,.25); }
.ac-lightbox-prev { left: 20px; }
.ac-lightbox-next { right: 20px; }
.ac-lightbox-counter {
    position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%);
    color: rgba(255,255,255,.85); font-size: .82rem; letter-spacing: .04em;
}
@media (max-width: 600px) {
    .ac-lightbox-nav { width: 40px; height: 40px; }
    .ac-lightbox-prev { left: 8px; }
    .ac-lightbox-next { right: 8px; }
}

/* Responsive */
@media (max-width: 900px) {
    .ac-single-top    { grid-template-columns: 1fr; }
    .ac-single-bottom { grid-template-columns: 1fr; }
    .ac-single-right  { padding: 24px 20px; border-left: none; border-top: 1px solid #f0f0f0; }
    .ac-single-desc-finance { padding: 24px 20px; border-left: none; }
    .ac-overview-grid { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 600px) {
    .ac-single-actions-row { flex-direction: column; }
    .ac-action-btn { justify-content: center; }
    .ac-single-pricing { gap: 16px; }
}
