/* ============================================
   LISTING DETAIL PAGE
   ============================================ */

/* Breadcrumb */
.breadcrumb {
    background: white;
    border: 1px solid #e0e0e0;
    padding: 12px 15px;
    margin-bottom: 15px;
    font-size: 13px;
    border-radius: 4px;
}

.breadcrumb a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: #FF6B35;
}

.breadcrumb .separator {
    color: #999;
    margin: 0 8px;
}

/* Listing Header */
.listing-header {
    background: white;
    border: 1px solid #e0e0e0;
    padding: 20px;
    margin-bottom: 15px;
    border-radius: 4px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
}

.listing-title-section h1 {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
}

.listing-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 13px;
    color: #666;
}

.listing-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.listing-meta i {
    color: #FF6B35;
}

.listing-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.action-btn {
    width: 40px;
    height: 40px;
    border: 1px solid #e0e0e0;
    background: white;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
}

.action-btn:hover {
    background: #f5f5f5;
    color: #FF6B35;
    border-color: #FF6B35;
}

.report-btn {
    width: auto;
    padding: 0 15px;
    gap: 6px;
}

.block-btn {
    width: auto;
    padding: 0 15px;
    gap: 6px;
    color: #D32F2F !important;
}

.block-btn:hover {
    background: #D32F2F !important;
    color: white !important;
    border-color: #D32F2F !important;
}

.unblock-btn {
    width: auto;
    padding: 0 15px;
    gap: 6px;
    color: #4CAF50 !important;
}

.unblock-btn:hover {
    background: #4CAF50 !important;
    color: white !important;
    border-color: #4CAF50 !important;
}

/* Image Gallery */
.image-gallery {
    background: white;
    border: 1px solid #e0e0e0;
    padding: 20px;
    margin-bottom: 15px;
    border-radius: 4px;
}

.main-image {
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    background: #f5f5f5;
}

.main-image img {
    width: 100%;
    max-height: 500px;
    object-fit: contain;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.main-image img:hover {
    transform: scale(1.02);
}

.thumbnail-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 10px;
}

.thumbnail-gallery img {
    width: 100%;
    height: 100px;
    object-fit: cover;
    border: 2px solid #e0e0e0;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.thumbnail-gallery img:hover,
.thumbnail-gallery img.active {
    border-color: #FF6B35;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
}

.lightbox-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 90%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.lightbox-close:hover {
    color: #bbb;
}

.lightbox-prev,
.lightbox-next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -22px;
    color: white;
    font-weight: bold;
    font-size: 30px;
    transition: 0.3s;
    user-select: none;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 4px;
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

/* Content Box */
.content-box {
    background: white;
    border: 1px solid #e0e0e0;
    padding: 20px;
    margin-bottom: 15px;
    border-radius: 4px;
}

.content-box h2 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
    display: flex;
    align-items: center;
    gap: 8px;
}

.content-box h2 i {
    color: #FF6B35;
}

.description {
    line-height: 1.8;
    color: #666;
    white-space: pre-line;
}

/* Details Grid */
.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 6px;
    border-left: 3px solid #FF6B35;
}

.detail-item i {
    font-size: 24px;
    color: #FF6B35;
}

.detail-item>div {
    display: flex;
    flex-direction: column;
}

.detail-label {
    font-size: 12px;
    color: #999;
    margin-bottom: 4px;
}

.detail-value {
    font-size: 15px;
    font-weight: 600;
    color: #333;
}

/* Safety Box */
.safety-box {
    background: #f0f8ff;
    border-color: #4CAF50;
}

.safety-tips {
    list-style: none;
    padding: 0;
    margin: 0;
}

.safety-tips li {
    padding: 10px 0;
    color: #666;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid rgba(76, 175, 80, 0.1);
}

.safety-tips li:last-child {
    border-bottom: none;
}

.safety-tips i {
    color: #4CAF50;
    font-size: 16px;
}

/* Listings Grid */
.listings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.listing-card {
    text-decoration: none;
    color: inherit;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    overflow: hidden;
    transition: all 0.3s ease;
    display: block;
}

.listing-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.listing-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.listing-card .no-image {
    width: 100%;
    height: 150px;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ccc;
    font-size: 40px;
}

.listing-card-content {
    padding: 12px;
}

.listing-card-title {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    color: #333;
}

.listing-card-price {
    font-size: 16px;
    font-weight: 600;
    color: #FF6B35;
}

/* Sidebar */
.price-box {
    background: white;
    border: 2px solid #FF6B35;
    padding: 20px;
    margin-bottom: 15px;
    border-radius: 6px;
    text-align: center;
}

.price-label {
    font-size: 13px;
    color: #666;
    margin-bottom: 10px;
}

.price-value {
    font-size: 32px;
    font-weight: bold;
    color: #FF6B35;
}

.seller-box {
    background: white;
    border: 1px solid #e0e0e0;
    padding: 20px;
    border-radius: 6px;
    margin-bottom: 15px;
}

/* Advertisement Box */
.ad-box {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.ad-box:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.ad-label {
    background: #f5f5f5;
    color: #999;
    font-size: 10px;
    padding: 4px 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 1px solid #eee;
    font-weight: 600;
}

.ad-content {
    display: block;
    text-decoration: none;
}

.ad-img {
    width: 100%;
    height: auto;
    display: block;
}

.ad-info {
    padding: 12px;
}

.ad-title {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}

.ad-subtitle {
    font-size: 12px;
    color: #666;
}

.seller-box h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
    display: flex;
    align-items: center;
    gap: 8px;
}

.seller-box h3 i {
    color: #FF6B35;
}

.seller-info {
    margin-bottom: 15px;
}

.seller-name {
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
    font-size: 15px;
}

.seller-since {
    color: #666;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.seller-since i {
    color: #FF6B35;
}

.seller-phone {
    margin-bottom: 15px;
    padding: 15px;
    background: #f5f5f5;
    border-radius: 4px;
}

.phone-label {
    font-weight: 600;
    margin-bottom: 5px;
    color: #333;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.phone-label i {
    color: #FF6B35;
}

.phone-number {
    font-size: 18px;
    color: #FF6B35;
    font-weight: 600;
}

.btn-block {
    width: 100%;
    text-align: center;
    display: block;
    margin-bottom: 10px;
}

/* Responsive */
@media (max-width: 992px) {
    .listing-header {
        flex-direction: column;
    }

    .listing-actions {
        width: 100%;
        justify-content: flex-start;
    }

    .details-grid {
        grid-template-columns: 1fr;
    }

    .listings-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .listing-title-section h1 {
        font-size: 20px;
    }

    .listing-meta {
        flex-direction: column;
        gap: 8px;
    }

    .listings-grid {
        grid-template-columns: 1fr;
    }

    .price-value {
        font-size: 24px;
    }
}

/* ============================================
   REPORT MODAL
   ============================================ */
.report-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    animation: fadeIn 0.3s ease;
}

.report-modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 30px;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    position: relative;
    animation: slideDown 0.3s ease;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.report-modal-close {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 28px;
    font-weight: bold;
    color: #999;
    cursor: pointer;
    transition: color 0.3s ease;
}

.report-modal-close:hover {
    color: #333;
}

.report-modal-content h2 {
    font-size: 22px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.report-modal-content h2 i {
    color: #FF6B35;
}

.report-modal-subtitle {
    color: #666;
    font-size: 14px;
    margin-bottom: 25px;
}

.report-reasons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.report-reason-item {
    position: relative;
    cursor: pointer;
}

.report-reason-item input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.reason-content {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    transition: all 0.3s ease;
    background: white;
}

.reason-content i {
    font-size: 20px;
    color: #999;
    transition: color 0.3s ease;
}

.reason-content span {
    font-size: 14px;
    color: #333;
    font-weight: 500;
}

.report-reason-item input[type="radio"]:checked+.reason-content {
    border-color: #FF6B35;
    background: #fff5f2;
}

.report-reason-item input[type="radio"]:checked+.reason-content i {
    color: #FF6B35;
}

.report-reason-item:hover .reason-content {
    border-color: #FF6B35;
}

.report-details {
    margin-bottom: 25px;
}

.report-details label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.report-details textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
    transition: border-color 0.3s ease;
}

.report-details textarea:focus {
    outline: none;
    border-color: #FF6B35;
}

.report-modal-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.report-modal-actions .btn {
    padding: 12px 24px;
    font-size: 14px;
}

/* ============================================
   NOTIFICATIONS
   ============================================ */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    padding: 16px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 10001;
    transform: translateX(400px);
    transition: transform 0.3s ease;
    min-width: 300px;
}

.notification.show {
    transform: translateX(0);
}

.notification i {
    font-size: 20px;
}

.notification-success {
    border-left: 4px solid #4CAF50;
}

.notification-success i {
    color: #4CAF50;
}

.notification-error {
    border-left: 4px solid #D32F2F;
}

.notification-error i {
    color: #D32F2F;
}

.notification span {
    font-size: 14px;
    color: #333;
    font-weight: 500;
}

@media (max-width: 576px) {
    .listing-title-section h1 {
        font-size: 20px;
    }

    .listing-meta {
        flex-direction: column;
        gap: 8px;
    }

    .listings-grid {
        grid-template-columns: 1fr;
    }

    .price-value {
        font-size: 26px;
    }

    .report-modal-content {
        margin: 10% auto;
        padding: 20px;
        width: 95%;
    }

    .report-modal-content h2 {
        font-size: 18px;
    }

    .reason-content {
        padding: 12px;
    }

    .notification {
        right: 10px;
        left: 10px;
        min-width: auto;
    }

    /* Fixed Contact Bar for Detail Page */
    .seller-contact-mobile {
        position: fixed;
        bottom: 60px; /* Above bottom nav */
        left: 0;
        width: 100%;
        background: white;
        padding: 10px 15px;
        box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
        display: flex;
        gap: 10px;
        z-index: 1500;
    }

    .seller-contact-mobile .btn {
        flex: 1;
        margin-bottom: 0;
        padding: 12px;
        font-size: 14px;
    }
}