/* assets/css/single-listing.css */
:root {
    --ghana-green: #009739;
    --ghana-red: #EF3340;
    --ghana-yellow: #FFD100;
    --contact-blue: #007bff;
}

.single-listing-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.listing-breadcrumbs {
    margin-bottom: 20px;
    font-size: 0.9em;
}

.listing-breadcrumbs a {
    color: var(--ghana-green);
    text-decoration: none;
}

.listing-breadcrumbs a:hover {
    text-decoration: underline;
}

.listing-main {
    display: flex;
    gap: 20px;
}

.listing-content {
    flex: 1 1 70%;
}

.listing-sidebar {
    flex: 1 1 30%;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.listing-meta-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    align-items: center;
}

.view-count {
    font-size: 0.9em;
    color: #666;
}

.bookmark-listing.bookmarked {
    background: var(--ghana-yellow);
    color: #333;
}

.share-modal {
    position: absolute;
    background: white;
    border: 1px solid #ddd;
    padding: 10px;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.share-modal a {
    display: block;
    margin: 5px 0;
    color: var(--ghana-green);
    text-decoration: none;
}

.share-modal a:hover {
    text-decoration: underline;
}

.listing-gallery {
    margin-bottom: 20px;
}

.gallery-slider {
    position: relative;
    overflow: hidden;
}

.gallery-item {
    display: none;
}

.gallery-item.active {
    display: block;
}

.gallery-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    cursor: pointer;
}

.gallery-thumbnails {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.thumbnail-item {
    cursor: pointer;
    border: 2px solid transparent;
}

.thumbnail-item.active {
    border-color: var(--ghana-green);
}

.thumbnail-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
}

.listing-price {
    font-size: 2em;
    color: var(--ghana-green);
    font-weight: bold;
    margin-bottom: 10px;
}

.negotiable {
    display: inline-block;
    background: var(--ghana-yellow);
    color: #333;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.7em;
}

.user-info {
    text-align: center;
    margin-bottom: 20px;
}

.user-profile-picture {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin: 0 auto 10px;
}

.user-name {
    font-weight: bold;
    margin: 0;
}

.member-since {
    font-size: 0.9em;
    color: #666;
}

.contact-buttons {
    margin: 15px 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.btn {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 12px 20px;
    margin: 5px 0;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    cursor: pointer;
    border: none;
}

.show-contact {
    background: var(--contact-blue);
    color: white;
    font-size: 1.2em;
    padding: 15px 20px;
}

.whatsapp-button {
    background: #25D366;
    color: white;
}

.chat-button {
    background: var(--ghana-green);
    color: white;
}

.status-report {
    display: flex;
    gap: 10px;
    margin: 10px 0;
    justify-content: center;
}

.status-button {
    border: 2px solid var(--ghana-green);
    background: none;
    color: var(--ghana-green);
    padding: 8px 15px;
}

.status-button.offline {
    border-color: var(--ghana-red);
    color: var(--ghana-red);
}

.report-listing {
    background: var(--ghana-red);
    color: white;
}

.post-ad {
    background: var(--ghana-yellow);
    color: #333;
}

.btn:hover {
    opacity: 0.9;
}

.safety-tips {
    margin: 20px 0;
    padding: 15px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.safety-tips ul {
    list-style: disc;
    padding-left: 20px;
}

.listing-details, .listing-description {
    padding: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.listing-details ul {
    list-style: none;
    padding: 0;
}

.listing-details li {
    margin-bottom: 10px;
}

.listing-details li strong {
    display: inline-block;
    width: 150px;
}

.related-listings {
    margin-top: 20px;
}

.listing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.listing-item {
    border: 1px solid #ddd;
    padding: 10px;
    border-radius: 8px;
    background: white;
    transition: box-shadow 0.3s;
}

.listing-item:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.listing-image {
    width: 100%;
    height: auto;
    border-radius: 4px;
}

.image-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-image {
    max-width: 90%;
    max-height: 80%;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 2em;
    color: white;
    cursor: pointer;
}

.modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--ghana-green);
    color: white;
    padding: 10px;
    border: none;
    cursor: pointer;
}

.modal-nav.prev {
    left: 20px;
}

.modal-nav.next {
    right: 20px;
}

.report-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.report-modal-content {
    background: white;
    padding: 20px;
    border-radius: 8px;
    max-width: 500px;
    width: 90%;
}

.report-modal-content .form-group {
    margin-bottom: 15px;
}

.report-modal-content select, .report-modal-content textarea {
    width: 100%;
    padding: 8px;
    border-radius: 4px;
}

@media (max-width: 768px) {
    .listing-main {
        flex-direction: column;
    }
    .listing-content, .listing-sidebar {
        flex: 1 1 100%;
    }
    .status-report {
        flex-direction: column;
    }
}

/* ./assets/css/single-listing.css */
.share-buttons {
    margin: 20px 0;
    padding: 15px;
    background: #f0f0f0;
    border-radius: 8px;
}
.share-buttons h3 {
    color: #009739; /* Green */
    margin-bottom: 10px;
}
.share-button {
    display: inline-block;
    margin-right: 10px;
    padding: 10px 15px;
    color: #fff !important;
    text-decoration: none !important;
}
.share-whatsapp { background: #25D366; }
.share-facebook { background: #3B5998; }
.share-x { background: #000000; }

/* ./assets/css/single-post.css */
.post-meta .post-views {
    display: inline-flex;
    align-items: center;
    margin-right: 15px;
}

.post-meta .post-views .fa-eye {
    margin-right: 5px;
    font-size: 14px;
    color: #555;
}