
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo h2 {
    color: #ffe800;
    font-size: 1.8rem;
    font-weight: 700;
}

.nav {
    display: flex;
    gap: 30px;
}

.nav-link {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #ffe800;
}

/* Breadcrumb */
.breadcrumb {
    background-color: #2f3546;
    padding: 12px 0;
    font-size: 0.9rem;
}

.breadcrumb a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: #ffe800;
}

.breadcrumb span {
    color: #ffe800;
}

/* Main Content */
.main-content {
    padding: 30px 0;
}

.listing-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}

/* Image Gallery */
.image-gallery {
    margin-bottom: 30px;
}

.main-image {
    position: relative;
    width: 100%;
    height: 400px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.image-counter {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.7);
    color: #ffffff;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

.prev-btn, .next-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: #ffffff;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.prev-btn {
    left: 15px;
}

.next-btn {
    right: 15px;
}

.prev-btn:hover, .next-btn:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: translateY(-50%) scale(1.1);
}

.thumbnail-gallery {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 5px 0;
}

.thumbnail {
    flex-shrink: 0;
    width: 80px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.3s ease;
}

.thumbnail.active {
    border-color: #ffe800;
    transform: scale(1.05);
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumbnail:hover {
    transform: scale(1.05);
    border-color: #3f475f;
}

/* Listing Header */
.listing-header {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.listing-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: #000000;
    margin-bottom: 15px;
    line-height: 1.3;
}

.price-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.price {
    font-size: 2rem;
    font-weight: 700;
    color: #ffe800;
    background: #3f475f;
    padding: 10px 20px;
    border-radius: 8px;
}

.listing-id {
    color: #3f475f;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Quick Actions */
.quick-actions {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    position: relative;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border: 2px solid #3f475f;
    background: #ffffff;
    color: #3f475f;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
}

.action-btn:hover {
    background: #3f475f;
    color: #ffffff;
    transform: translateY(-2px);
}

.action-btn.favorited {
    background: #ffe800;
    border-color: #ffe800;
    color: #000000;
}

.share-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: #ffffff;
    border: 2px solid #3f475f;
    border-radius: 8px;
    padding: 10px 0;
    min-width: 150px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 100;
}

.share-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.share-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    color: #3f475f;
    text-decoration: none;
    transition: background 0.3s ease;
}

.share-option:hover {
    background: #f0f0f0;
}

/* Details Section */
.details-section {
    margin-bottom: 30px;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #000000;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #ffe800;
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #3f475f;
    transition: all 0.3s ease;
}

.detail-item:hover {
    background: #f0f0f0;
    transform: translateX(5px);
}

.detail-label {
    font-weight: 600;
    color: #3f475f;
}

.detail-value {
    font-weight: 500;
    color: #000000;
}

.detail-value.accident-no {
    color: #28a745;
    font-weight: 600;
}

/* Description Section */
.description-section {
    margin-bottom: 30px;
}

.description-content {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 12px;
    border-left: 4px solid #ffe800;
}

.description-content p {
    margin-bottom: 15px;
    color: #2f3546;
    line-height: 1.7;
}

.description-content ul {
    margin: 15px 0;
    padding-left: 25px;
}

.description-content li {
    margin-bottom: 8px;
    color: #2f3546;
}

/* Location Section */
.location-section {
    margin-bottom: 30px;
}

.location-info {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #3f475f;
    font-weight: 500;
    color: #2f3546;
}

.location-info i {
    color: #ffe800;
    font-size: 1.2rem;
}

/* Right Column */
.right-column {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

/* Seller Card */
.seller-card {
    background: #ffffff;
    border: 2px solid #3f475f;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.card-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #000000;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #ffe800;
}

.seller-info {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

.seller-avatar {
    width: 60px;
    height: 60px;
    background: #3f475f;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.5rem;
}

.seller-details {
    flex: 1;
}

.seller-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: #000000;
    margin-bottom: 5px;
}

.seller-type {
    color: #3f475f;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 10px;
    display: block;
}

.seller-stats {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.stat {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: #2f3546;
}

.stat i {
    color: #ffe800;
    width: 12px;
}

.contact-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.contact-btn.primary {
    background: #ffe800;
    color: #000000;
}

.contact-btn.primary:hover {
    background: #e6d100;
    transform: translateY(-2px);
}

.contact-btn.secondary {
    background: #3f475f;
    color: #ffffff;
}

.contact-btn.secondary:hover {
    background: #2f3546;
    transform: translateY(-2px);
}

.contact-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Safety Card */
.safety-card {
    background: #ffffff;
    border: 2px solid #28a745;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.safety-card .card-title {
    color: #28a745;
    border-bottom-color: #28a745;
}

.safety-card .card-title i {
    margin-right: 10px;
}

.safety-tips {
    list-style: none;
    padding: 0;
}

.safety-tips li {
    padding: 8px 0;
    color: #2f3546;
    position: relative;
    padding-left: 25px;
}

.safety-tips li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #28a745;
    font-weight: bold;
}

/* Report Section */
.report-section {
    text-align: center;
}

.report-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    background: transparent;
    color: #dc3545;
    border: 2px solid #dc3545;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    width: 100%;
}

.report-btn:hover {
    background: #dc3545;
    color: #ffffff;
}

/* Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: #ffffff;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal.active .modal-content {
    transform: scale(1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 2px solid #f0f0f0;
}

.modal-header h3 {
    color: #000000;
    font-weight: 600;
}

.close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #3f475f;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.close-btn:hover {
    background: #f0f0f0;
    color: #000000;
}

.modal-body {
    padding: 25px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #3f475f;
}

.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-family: inherit;
    resize: vertical;
    transition: border-color 0.3s ease;
}

.form-group textarea:focus {
    outline: none;
    border-color: #ffe800;
}

.radio-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: background 0.3s ease;
}

.radio-option:hover {
    background: #f0f0f0;
}

.radio-option input[type="radio"] {
    margin: 0;
}

.form-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    margin-top: 25px;
}

.btn {
    padding: 12px 25px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn.primary {
    background: #ffe800;
    color: #000000;
}

.btn.primary:hover {
    background: #e6d100;
    transform: translateY(-2px);
}

.btn.secondary {
    background: #f0f0f0;
    color: #3f475f;
    border: 2px solid #e0e0e0;
}

.btn.secondary:hover {
    background: #e0e0e0;
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .listing-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .header-content {
        flex-direction: column;
        gap: 15px;
    }
    
    .nav {
        gap: 20px;
    }
    
    .listing-title {
        font-size: 1.8rem;
    }
    
    .price-section {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .quick-actions {
        flex-direction: column;
    }
    
    .details-grid {
        grid-template-columns: 1fr;
    }
    
    .main-image {
        height: 300px;
    }
    
    .seller-info {
        flex-direction: column;
        text-align: center;
    }
    
    .contact-actions {
        margin-top: 20px;
    }
    
    .modal-content {
        width: 95%;
        margin: 20px;
    }
    
    .form-actions {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .main-content {
        padding: 20px 0;
    }
    
    .listing-title {
        font-size: 1.5rem;
    }
    
    .price {
        font-size: 1.5rem;
        padding: 8px 15px;
    }
    
    .seller-card,
    .safety-card {
        padding: 20px;
    }
    
    .main-image {
        height: 250px;
    }
    
    .thumbnail {
        width: 60px;
        height: 45px;
    }
}