/* ==========================================
   DETAIL PAGE — NigerAnnonce
   ========================================== */

.dtl-section { padding: 18px 0 50px; }

/* ---------- GALLERY ---------- */
.dtl-gallery { position: sticky; top: 80px; }

.dtl-main-img-wrap {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    background: #f0f0f0;
    aspect-ratio: 4 / 3;
    cursor: zoom-in;
}
.dtl-main-link {
    display: block;
    width: 100%;
    height: 100%;
}
.dtl-main-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}
.dtl-main-img-wrap:hover .dtl-main-img { transform: scale(1.025); }

.dtl-img-count {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.52);
    color: #fff;
    font-size: 12px;
    padding: 5px 11px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 5px;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    pointer-events: none;
}

/* Thumbnails */
.dtl-thumb-row {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: thin;
    scrollbar-color: #ccc transparent;
}
.dtl-thumb-row::-webkit-scrollbar { height: 4px; }
.dtl-thumb-row::-webkit-scrollbar-track { background: transparent; }
.dtl-thumb-row::-webkit-scrollbar-thumb { background: #ccc; border-radius: 4px; }

.dtl-thumb {
    flex: 0 0 76px;
    height: 58px;
    border-radius: 9px;
    overflow: hidden;
    border: 2px solid transparent;
    transition: border-color 0.2s, opacity 0.2s;
    cursor: pointer;
    display: block;
    position: relative;
}
.dtl-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.dtl-thumb.active { border-color: #009eff; }
.dtl-thumb:hover:not(.active) { border-color: rgba(0,158,255,0.45); opacity: 0.88; }

.dtl-thumb-more-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.54);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Video thumbnail in strip */
.dtl-thumb-video-btn {
    background: #0f172a;
    border-color: #1e293b;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    flex: 0 0 76px;
}
.dtl-thumb-video-btn .dtl-tvicon {
    width: 26px;
    height: 26px;
    background: #009eff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 11px;
}
.dtl-thumb-video-btn span {
    font-size: 9.5px;
    color: #94a3b8;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}
.dtl-thumb-video-btn.active { border-color: #009eff; }
.dtl-thumb-video-btn.active .dtl-tvicon { background: #fff; color: #009eff; }

/* Main video display area */
.dtl-main-video-wrap {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    background: #000;
    aspect-ratio: 4/3;
}
.dtl-main-video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}
.dtl-video-back-btn {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(0, 0, 0, 0.62);
    color: #fff;
    border: none;
    border-radius: 20px;
    padding: 6px 13px;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    transition: background 0.2s;
    z-index: 2;
}
.dtl-video-back-btn:hover { background: rgba(0,0,0,0.85); }

/* ---------- INFO PANEL ---------- */
.dtl-info-panel {
    background: #fff;
    border-radius: 14px;
    border: 1px solid #e6eaef;
    padding: 22px 22px 18px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.dtl-meta-row {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}
.dtl-location, .dtl-date {
    font-size: 12.5px;
    color: #777;
    display: flex;
    align-items: center;
    gap: 4px;
}
.dtl-location i, .dtl-date i { color: #009eff; font-size: 13px; }

.dtl-title {
    font-size: 19px;
    font-weight: 700;
    color: #111;
    line-height: 1.35;
    margin: 0 0 14px;
}

.dtl-price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f0f2f5;
}
.dtl-price {
    font-size: 26px;
    font-weight: 800;
    color: #009eff;
    line-height: 1;
}
.dtl-price-cur {
    font-size: 14px;
    font-weight: 500;
    color: #555;
    margin-left: 2px;
}
.dtl-price-na {
    font-size: 15px;
    color: #aaa;
    font-style: italic;
}
.dtl-heart-btn {
    background: #fff;
    border: 1.5px solid #e0e4ea;
    border-radius: 50%;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    color: #ccc;
    font-size: 19px;
    flex-shrink: 0;
}
.dtl-heart-btn:hover { background: #fff5f5; border-color: #f55; color: #f55; }

/* Chips */
.dtl-chips-section { margin-bottom: 18px; }
.dtl-chips-section-title {
    font-size: 11px;
    font-weight: 700;
    color: #aaa;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-bottom: 9px;
}
.dtl-chips-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.dtl-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #f4f7fb;
    border: 1px solid #e4eaf3;
    border-radius: 20px;
    padding: 5px 12px;
    font-size: 12.5px;
    color: #333;
    white-space: nowrap;
    line-height: 1.4;
}
.dtl-chip img { width: 14px; height: 14px; opacity: 0.6; }
.dtl-chip i { color: #009eff; font-size: 12px; flex-shrink: 0; }

/* Contact buttons */
.dtl-contact-btns {
    display: flex;
    gap: 9px;
    margin-bottom: 16px;
}
.dtl-btn-call {
    flex: 1;
    background: #009eff;
    color: #fff !important;
    border-radius: 10px;
    padding: 13px 16px;
    font-size: 14.5px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none !important;
    transition: background 0.2s, transform 0.1s;
    letter-spacing: 0.2px;
}
.dtl-btn-call:hover { background: #0083dd; transform: translateY(-1px); }
.dtl-btn-call:active { transform: translateY(0); }
.dtl-btn-call i { font-size: 16px; }
.dtl-btn-wa {
    background: #25D366;
    color: #fff !important;
    border-radius: 10px;
    padding: 13px 16px;
    font-size: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
    transition: background 0.2s, transform 0.1s;
    min-width: 80px;
}
.dtl-btn-wa:hover { background: #1dbe59; transform: translateY(-1px); }
.dtl-btn-wa:active { transform: translateY(0); }

/* Share */
.dtl-share-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    padding-top: 14px;
    border-top: 1px solid #f0f2f5;
}
.dtl-share-label {
    font-size: 12px;
    color: #aaa;
    font-weight: 500;
    margin-right: 2px;
}
.dtl-share-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff !important;
    font-size: 14px;
    text-decoration: none !important;
    transition: opacity 0.2s, transform 0.15s;
}
.dtl-share-btn:hover { opacity: 0.82; transform: scale(1.1); }
.dtl-share-fb { background: #3b5998; }
.dtl-share-wa { background: #25D366; }
.dtl-share-copy { background: #64748b; }

/* ---------- LOWER BLOCKS ---------- */
.dtl-block {
    background: #fff;
    border-radius: 14px;
    border: 1px solid #e6eaef;
    padding: 20px 22px;
    margin-bottom: 16px;
    box-shadow: 0 1px 6px rgba(0,0,0,0.04);
}
.dtl-block-title {
    font-size: 15px;
    font-weight: 700;
    color: #111;
    margin: 0 0 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0f2f5;
}
.dtl-description {
    font-size: 14.5px;
    line-height: 1.8;
    color: #333;
}

/* Equip tags */
.dtl-equip-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.dtl-equip-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #eef6ff;
    border: 1px solid #c5dff8;
    border-radius: 20px;
    padding: 6px 14px;
    font-size: 13px;
    color: #1a6cc8;
    font-weight: 500;
}
.dtl-equip-tag img { width: 15px; height: 15px; opacity: 0.7; }

/* ---------- SIDEBAR ---------- */
.dtl-seller-card {
    background: #fff;
    border-radius: 14px;
    border: 1px solid #e6eaef;
    padding: 18px 20px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: 0 1px 6px rgba(0,0,0,0.04);
}
.dtl-seller-avatar {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #e6eaef;
    flex-shrink: 0;
}
.dtl-seller-info { min-width: 0; }
.dtl-seller-label {
    font-size: 11px;
    color: #aaa;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 3px;
}
.dtl-seller-name {
    font-size: 15px;
    font-weight: 700;
    color: #111;
    margin-bottom: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.dtl-seller-since { font-size: 12px; color: #888; }

/* Report block */
.dtl-report-block { padding: 16px 20px; }
.dtl-report-toggle {
    font-size: 13.5px;
    font-weight: 600;
    color: #444;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    user-select: none;
}
.dtl-report-toggle i { color: #bbb; font-size: 14px; transition: transform 0.2s; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 991px) {
    .dtl-gallery { position: static; }
    .dtl-title { font-size: 17px; }
    .dtl-price { font-size: 22px; }
    .dtl-info-panel { margin-top: 0; }
    .dtl-block { padding: 16px 18px; }
    .dtl-seller-card { padding: 14px 16px; }
}

@media (max-width: 575px) {
    .dtl-main-img-wrap { border-radius: 10px; }
    .dtl-thumb { flex: 0 0 64px; height: 48px; }
    .dtl-info-panel { padding: 16px 16px 14px; }
    .dtl-btn-call { font-size: 13.5px; padding: 12px 14px; }
    .dtl-price { font-size: 20px; }
    .dtl-title { font-size: 16px; }
}

/* ---------- PUBLICITÉS ---------- */
.dtl-pub-banner {
    margin: 14px 0 0;
    border-radius: 12px;
    overflow: hidden;
    text-align: center;
    position: relative;
}
.dtl-pub-banner .pub-banner-wrapper {
    border-radius: 12px;
    overflow: hidden;
    margin: 0;
}
.dtl-pub-banner .pub-banner-media {
    width: 100%;
    max-height: 120px;
    object-fit: cover;
    display: block;
    border-radius: 12px;
}
.dtl-pub-banner video.pub-banner-media {
    max-height: 120px;
}

.dtl-pub-sidebar {
    margin-bottom: 16px;
    border-radius: 14px;
    overflow: hidden;
}
.dtl-pub-sidebar .pub-banner-wrapper {
    border-radius: 14px;
    overflow: hidden;
    margin: 0;
}
.dtl-pub-sidebar .pub-banner-media {
    width: 100%;
    max-height: 200px;
    object-fit: cover;
    display: block;
    border-radius: 14px;
}
.dtl-pub-sidebar .pub-label {
    font-size: 10px;
    color: #bbb;
    text-align: right;
    display: block;
    margin-top: 3px;
    padding-right: 2px;
}
