/* ===== AD DETAIL PAGE ===== */

/* Breadcrumb */
.breadcrumb {
    padding:14px 0;
    border-bottom:1px solid rgba(255,255,255,0.04);
    font-size:0.82rem;
    color:#444;
}
.breadcrumb a { color:#666; transition:color .2s; }
.breadcrumb a:hover { color:#e84393; }
.breadcrumb span { margin:0 6px; color:#333; }
.breadcrumb .current { color:#888; }

/* Layout */
.ad-detail { padding:30px 0 60px; }
.ad-layout {
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:36px;
    align-items:start;
}

/* Gallery */
.ad-gallery { position:sticky; top:80px; }
.gallery-main { aspect-ratio:3/4;
    position:relative;
    border-radius:14px;
    overflow:hidden;
    background:#13131a;
    aspect-ratio:3/4;
}
.gallery-main img {
    width:100%; height:100%;
    object-fit:cover;
    display:block;
}
.gallery-main .badge {
    position:absolute; top:14px; left:14px; z-index:2;
}
.gallery-prev, .gallery-next {
    position:absolute; top:50%; transform:translateY(-50%);
    background:rgba(0,0,0,0.5);
    backdrop-filter:blur(4px);
    border:none; color:#fff;
    width:40px; height:40px;
    border-radius:50%;
    font-size:1.4rem;
    cursor:pointer;
    transition:background .2s;
    display:flex; align-items:center; justify-content:center;
    line-height:1;
}
.gallery-prev:hover, .gallery-next:hover { background:rgba(232,67,147,0.6); }
.gallery-prev { left:12px; }
.gallery-next { right:12px; }
.gallery-counter {
    position:absolute; bottom:12px; right:12px;
    background:rgba(0,0,0,0.6);
    color:#aaa; padding:4px 10px;
    border-radius:6px; font-size:0.75rem;
}

.gallery-thumbs {
    display:flex; gap:8px; margin-top:10px;
}
.thumb {
    width:72px; height:72px;
    border-radius:8px;
    background-size:cover; background-position:center;
    background-color:#1a1a24;
    cursor:pointer;
    border:2px solid transparent;
    transition:border-color .2s, opacity .2s;
    opacity:0.5;
}
.thumb:hover { opacity:0.8; }
.thumb.active { border-color:#e84393; opacity:1; }

/* Info Panel */
.ad-info-header { margin-bottom:16px; }
.ad-info-header h1 {
    font-size:1.7rem; color:#fff; font-weight:700;
    line-height:1.3; margin-bottom:8px;
}
.ad-status {
    display:inline-flex; align-items:center; gap:6px;
    font-size:0.82rem; color:#4ade80;
}
.status-dot {
    width:8px; height:8px;
    background:#4ade80;
    border-radius:50%;
    animation:pulse 2s infinite;
}
@keyframes pulse {
    0%, 100% { opacity:1; }
    50% { opacity:0.4; }
}

.ad-price-row {
    display:flex; align-items:baseline; justify-content:space-between;
    margin-bottom:24px;
    padding-bottom:20px;
    border-bottom:1px solid rgba(255,255,255,0.06);
}
.ad-price {
    font-size:2rem; color:#e84393; font-weight:700;
}
.ad-price span { font-size:1rem; color:#888; font-weight:400; }
.ad-posted { font-size:0.82rem; color:#555; }

/* Quick Info Grid */
.ad-quick-info {
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:12px;
    margin-bottom:24px;
}
.info-item {
    background:rgba(255,255,255,0.03);
    border:1px solid rgba(255,255,255,0.05);
    border-radius:10px;
    padding:14px 16px;
}
.info-label {
    display:block; font-size:0.73rem;
    color:#555; text-transform:uppercase;
    letter-spacing:0.5px; margin-bottom:4px;
}
.info-value {
    display:block; font-size:0.95rem;
    color:#e0e0e8; font-weight:600;
}

/* Contact Buttons */
.ad-contact-buttons {
    display:flex; gap:10px;
    margin-bottom:30px;
}
.btn-contact {
    flex:1; display:flex; align-items:center; justify-content:center;
    gap:8px; padding:14px;
    border-radius:10px; font-weight:600;
    font-size:0.95rem; transition:all .2s;
    cursor:pointer; text-decoration:none;
}
.btn-phone {
    background:linear-gradient(135deg, #e84393, #d63384);
    color:#fff;
}
.btn-phone:hover {
    transform:translateY(-1px);
    box-shadow:0 4px 20px rgba(232,67,147,0.35);
}
.btn-phone .btn-icon { font-size:1.1rem; }

.btn-whatsapp {
    background:linear-gradient(135deg, #25d366, #128c7e);
    color:#fff;
}
.btn-whatsapp:hover {
    transform:translateY(-1px);
    box-shadow:0 4px 20px rgba(37,211,102,0.35);
}
.btn-whatsapp svg { flex-shrink:0; }

/* Description */
.ad-description { margin-bottom:28px; }
.ad-description h2,
.ad-details-table h2,
.ad-services h2,
.ad-rates h2 {
    font-size:1.1rem; color:#e0e0e8; font-weight:600;
    margin-bottom:14px;
    padding-bottom:8px;
    border-bottom:1px solid rgba(255,255,255,0.06);
}
.ad-description p {
    font-size:0.9rem; color:#999; line-height:1.8;
    margin-bottom:10px;
}

/* Details Table */
.ad-details-table { margin-bottom:28px; }
.ad-details-table table { width:100%; border-collapse:collapse; }
.ad-details-table td {
    padding:10px 0;
    border-bottom:1px solid rgba(255,255,255,0.04);
    font-size:0.88rem;
}
.ad-details-table td:first-child {
    color:#666; width:40%;
}
.ad-details-table td:last-child {
    color:#c8c8d0; font-weight:500;
}

/* Services Tags */
.ad-services { margin-bottom:28px; }
.services-tags { display:flex; flex-wrap:wrap; gap:8px; }
.services-tags span {
    background:rgba(232,67,147,0.08);
    border:1px solid rgba(232,67,147,0.15);
    color:#e84393;
    padding:6px 14px;
    border-radius:20px;
    font-size:0.82rem;
    font-weight:500;
}

/* Rates */
.ad-rates { margin-bottom:28px; }
.rates-grid { display:flex; gap:12px; }
.rate-item {
    flex:1;
    background:rgba(255,255,255,0.03);
    border:1px solid rgba(255,255,255,0.06);
    border-radius:10px;
    padding:16px;
    text-align:center;
}
.rate-duration {
    display:block; font-size:0.8rem;
    color:#666; margin-bottom:6px;
    text-transform:uppercase; letter-spacing:0.5px;
}
.rate-price {
    display:block; font-size:1.3rem;
    color:#e84393; font-weight:700;
}

/* Report */
.ad-report { margin-top:20px; }
.report-link {
    font-size:0.8rem; color:#444;
    transition:color .2s;
}
.report-link:hover { color:#e84393; }

/* Related Ads */
.related-ads {
    margin-top:60px;
    padding-top:40px;
    border-top:1px solid rgba(255,255,255,0.06);
}
.related-ads h2 {
    font-size:1.3rem; color:#fff; font-weight:700;
    margin-bottom:24px;
}
.related-grid {
    display:grid;
    grid-template-columns:repeat(3, 1fr);
    gap:18px;
}

/* ===== MOBILE ===== */
@media (max-width:1024px) {
    .ad-layout {
        grid-template-columns:1fr;
        gap:24px;
    }
    .ad-gallery {
        position:relative;
        top:auto;
    }
    .gallery-main { aspect-ratio:3/4; aspect-ratio:4/5; max-height:500px; }
}

@media (max-width:768px) {
    .ad-detail { padding:16px 0 40px; }
    .ad-info-header h1 { font-size:1.35rem; }
    .ad-price { font-size:1.6rem; }
    .ad-quick-info { grid-template-columns:1fr 1fr; gap:8px; }
    .ad-contact-buttons { flex-direction:column; }
    .gallery-main { aspect-ratio:3/4; aspect-ratio:3/4; }
    .thumb { width:60px; height:60px; }
    .rates-grid { flex-direction:column; }
    .related-grid {
        grid-template-columns:1fr;
        gap:14px;
    }
    .related-grid .ad-card {
        display:flex;
    }
    .related-grid .ad-card .ad-img {
        width:120px; min-height:120px;
        border-radius:14px 0 0 14px;
        height:auto;
    }
    .related-grid .ad-card .ad-body {
        flex:1; display:flex; flex-direction:column; justify-content:center;
    }
}

@media (max-width:480px) {
    .gallery-thumbs { gap:6px; }
    .thumb { width:52px; height:52px; border-radius:6px; }
    .ad-quick-info { gap:6px; }
    .info-item { padding:10px 12px; }
}
