/* Skin - Colors, Fonts, Appearance ("Automotive" scheme) */

/* CSS Custom Properties */
:root {
    --color-primary: #c73e3a;
    --color-primary-dark: #a03230;
    --color-header-bg: #1a1a1a;
    --color-footer-bg: #1a1a1a;
    --color-text: #000001;
    --color-text-light: #666;
    --color-text-lighter: #999;
    --color-border: #e5e5e5;
    --color-bg-light: #f9f9f9;
    --color-white: #ffffff;
    --font-primary: 'Poppins', 'Open Sans', Helvetica, Arial, sans-serif;
    --container-max: 1200px;
}

/* Listing detail meta grid */
.listing-meta-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin: 20px 0;
    padding: 20px;
    background: var(--color-bg-light);
    border-radius: 6px;
}

@media (min-width: 544px) {
    .listing-meta-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.listing-meta-item {
    display: flex;
    flex-direction: column;
}

.meta-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--color-text-lighter);
    font-weight: 500;
    margin-bottom: 2px;
}

.meta-value {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--color-text);
}

.meta-value a {
    color: var(--color-primary);
}

/* Listing header */
.listing-header {
    margin-bottom: 20px;
}

.listing-title {
    font-size: 1.8rem;
    font-weight: 500;
    margin-bottom: 8px;
}

.listing-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
}

/* Listing description */
.listing-description {
    margin-top: 20px;
}

.listing-description h2 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 10px;
}

/* Listing owner actions */
.listing-owner-actions {
    margin-top: 20px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* Gallery */
.listing-gallery {
    position: relative;
}

.gallery-main {
    border-radius: 8px;
    overflow: hidden;
    background: #f0f0f0;
    margin-bottom: 10px;
}

.gallery-main-image {
    width: 100%;
    height: auto;
    display: block;
    cursor: pointer;
}

.gallery-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    color: #999;
}

.gallery-thumbs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
}

.gallery-thumb {
    flex-shrink: 0;
    width: 80px;
    height: 60px;
    border: 2px solid transparent;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    padding: 0;
    background: none;
    transition: border-color 0.2s;
}

.gallery-thumb:hover,
.gallery-thumb.active {
    border-color: var(--color-primary);
}

.gallery-thumb .thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Lightbox */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-content {
    max-width: 90vw;
    max-height: 90vh;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: fixed;
    background: none;
    border: none;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    padding: 10px;
    z-index: 10001;
    transition: opacity 0.2s;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
    opacity: 0.7;
}

.lightbox-close {
    top: 15px;
    right: 20px;
    font-size: 2.5rem;
}

.lightbox-prev {
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 3rem;
}

.lightbox-next {
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 3rem;
}

/* Badge styles */
.badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 3px;
    font-size: 0.8rem;
    font-weight: 500;
}

.badge-condition {
    background: var(--color-bg-light);
    color: var(--color-text);
    border: 1px solid var(--color-border);
}

/* No listings message */
.no-listings,
.no-results {
    text-align: center;
    padding: 60px 20px;
    color: var(--color-text-light);
}

.no-listings h2,
.no-results h2 {
    margin-bottom: 10px;
}

/* Post summary */
.post-summary {
    display: flex;
    gap: 20px;
    padding: 20px 0;
    border-bottom: 1px solid var(--color-border);
}

.post-summary .post-thumbnail {
    flex-shrink: 0;
    width: 200px;
}

.post-summary .post-thumbnail img {
    border-radius: 4px;
}

.post-title a {
    color: var(--color-text);
}

.post-title a:hover {
    color: var(--color-primary);
}

.post-meta,
.entry-meta {
    font-size: 0.85rem;
    color: var(--color-text-lighter);
    margin-bottom: 8px;
}

.entry-thumbnail {
    margin-bottom: 20px;
}

.entry-thumbnail img {
    border-radius: 6px;
}

/* Widgets */
.widget {
    margin-bottom: 25px;
}

.widget-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--color-primary);
}

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

.widget ul li {
    padding: 5px 0;
    border-bottom: 1px solid var(--color-border);
}

.widget ul li a {
    color: var(--color-text);
    text-decoration: none;
    font-size: 0.9rem;
}

.widget ul li a:hover {
    color: var(--color-primary);
}
