/* ══════════════════════════════════════════════════════════
   Ad details page – panels, tiles, key-value tables,
   description, media thumbs, user photo, pricing
   ══════════════════════════════════════════════════════════ */

/* ── Listing card media ── */

.listing-card-media {
    aspect-ratio: 4/3;
    background: #f3f5f8;
    overflow: hidden;
    border-top-left-radius: .75rem;
    border-top-right-radius: .75rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.listing-card-media img {
    max-width: 132%;
    max-height: 100%;
    width: auto;
    height: auto;
    display: block;
}

/* ── Description ── */

.listing-description {
    white-space: pre-wrap;
    line-height: 1.65;
    font-size: 0.95rem;
    background: #fff;
    padding: 1.25rem;
    max-height: 420px;
    overflow-y: auto;
    scrollbar-width: thin;
}

.description-card .Vehicled-header {
    border-bottom: none;
}

.description-card .Vehicled-body {
    padding-top: 0.75rem;
}

@media (max-width: 768px) {
    .listing-description {
        max-height: 300px;
    }
}

.listing-description::-webkit-scrollbar {
    width: 6px;
}

.listing-description::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,.2);
    border-radius: 10px;
}

/* ── Vehicled card (generic wrapper) ── */

.Vehicled-header {
    background: #f8f9fa;
    padding: .75rem 1.25rem;
    border-bottom: 1px solid #e9ecef;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}

.Vehicled-body {
    padding: 1.25rem;
    background: #fff;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
}

/* ── Thumbnails ── */

.profile-thumb {
    width: 96px;
    height: 72px;
    object-fit: contain;
    border-radius: .5rem;
    display: block;
}

.media-thumb {
    width: 100px;
    height: 71px;
    border-radius: .5rem;
    background: #f3f5f8;
    overflow: hidden;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
}

.media-thumb__img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

/* ── PDP carousel nav arrows ── */

.pdp-main-img-wrap {
    position: relative;
}

.pdp-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(0,0,0,.1);
    background: rgba(255,255,255,.85);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: #1f2937;
    cursor: pointer;
    transition: background .15s, box-shadow .15s;
    box-shadow: 0 2px 8px rgba(0,0,0,.1);
}

.pdp-nav:hover {
    background: #fff;
    box-shadow: 0 4px 14px rgba(0,0,0,.15);
}

.pdp-nav--prev { left: 10px; }
.pdp-nav--next { right: 10px; }

.pdp-counter {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    background: rgba(0,0,0,.55);
    color: #fff;
    font-size: .75rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
    pointer-events: none;
}

/* ── PDP thumbnail active highlight ── */

.pdp-thumb {
    cursor: pointer;
    border: 2px solid transparent;
    border-radius: .5rem;
    transition: border-color .15s;
}

.pdp-thumb--active {
    border-color: var(--ae-primary, #3b82f6);
}

@media (max-width: 576px) {
    .pdp-nav { width: 34px; height: 34px; font-size: 1rem; }
    .pdp-nav--prev { left: 6px; }
    .pdp-nav--next { right: 6px; }
}

/* ── Price & contact ── */

.text-price {
    color: #b02a37;
}

.contact-phone {
    width: 100%;
}

/* ── User photo ── */

.user-photo {
    aspect-ratio: 1 / 1;
    object-fit: contain;
    background: #fff;
    padding: 12px;
    border-radius: 18px;
    border: 1px solid rgba(0,0,0,.08);
    display: block;
}

.user-photo--lg { width: 160px; }
.user-photo--md { width: 130px; }
.user-photo--sm { width: 110px; }

.user-photo--xs {
    width: 72px;
    padding: 8px;
    border-radius: 14px;
}

/* ══════════════════════════════════════════════════════════
   Vehicle panel / tiles / key-value tables
   ══════════════════════════════════════════════════════════ */

.veh-panel {
    background: #fff;
    border: 1px solid rgba(0,0,0,.06);
    border-radius: 14px;
    box-shadow: 0 10px 26px rgba(16,24,40,.06);
    overflow: hidden;
}

.veh-panel__header {
    padding: 14px 18px;
    background: linear-gradient(to bottom, rgba(13,110,253,.06), rgba(255,255,255,0));
    border-bottom: 1px solid rgba(0,0,0,.05);
}

.veh-panel__title {
    margin: 0;
    font-size: .95rem;
    font-weight: 800;
}

.veh-panel__body {
    padding: 18px;
}

/* Highlights body */
.veh-panel--highlights .veh-panel__body {
    padding: 16px 18px;
}

/* Column subtitle */
.veh-subtitle {
    margin: 0 0 12px 0;
    font-size: .9rem;
    font-weight: 700;
    letter-spacing: .2px;
}

/* Key/Value list */
.veh-kv {
    margin: 0;
}

.veh-kv__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    padding: 10px 0;
    border-bottom: 1px dashed rgba(0,0,0,.08);
}

.veh-kv__row:last-child {
    border-bottom: 0;
}

.veh-kv__row dt {
    margin: 0;
    color: #6c757d;
    font-weight: 600;
}

.veh-kv__row dd {
    margin: 0;
    font-weight: 600;
    color: #111827;
    text-align: right;
}

@media (max-width: 575.98px) {
    .veh-kv__row {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .veh-kv__row dd {
        text-align: left;
    }
}

/* Tiles */
.veh-tile {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #fff;
    border: 1px solid rgba(0,0,0,.06);
    border-radius: 12px;
    box-shadow: 0 6px 16px rgba(16,24,40,.04);
    height: 100%;
}

.veh-tile__icon {
    font-size: 1.1rem;
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: var(--ae-primary);
    color: white;
    flex: 0 0 auto;
}

.veh-tile__meta {
    min-width: 0;
}

.veh-tile__label {
    font-size: .78rem;
    color: #6c757d;
    line-height: 1.1;
}

.veh-tile__value {
    font-weight: 500;
    color: #111827;
    line-height: 1.2;
    margin-top: 2px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 575.98px) {
    .veh-panel__header {
        padding: 12px 14px;
    }

    .veh-panel--highlights .veh-panel__body {
        padding: 14px;
    }

    .veh-tile {
        padding: 10px;
        gap: 10px;
    }

    .veh-tile__icon {
        width: 34px;
        height: 34px;
        border-radius: 9px;
    }
}
