/* Zenith ForSale Frontend Styles - v1.0.4 */

/* Listings Container */
.zenith-forsale-listings-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

/* Header */
.zenith-forsale-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 40px 20px;
    background: white;
    border-radius: 8px;
    border-bottom: 3px solid #1A73E8;
}

.zenith-forsale-header h1 {
    font-size: 32px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 10px;
}

.zenith-forsale-header p {
    font-size: 16px;
    color: #666;
    margin: 0;
}

/* Filters */
.zenith-forsale-filters {
    background: white;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    margin-bottom: 30px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.filter-group {
    margin-bottom: 0;
}

.filter-group label {
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    color: #333;
    margin-bottom: 8px;
    display: block;
}

.filter-group input[type="checkbox"],
.filter-group input[type="radio"],
.filter-group input[type="text"],
.filter-group select {
    font-size: 14px;
}

/* Grid */
.zenith-forsale-grid {
    display: grid;
    gap: 20px;
    margin-bottom: 30px;
}

/* Results Info */
.zenith-forsale-results-info {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
    font-weight: 500;
}

/* Listing Card */
.zenith-forsale-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.zenith-forsale-card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    transform: translateY(-4px);
}

/* Card Image */
.zenith-forsale-card-image {
    position: relative;
    width: 100%;
    padding-bottom: 100%;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.zenith-forsale-card-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.zenith-forsale-card-image .no-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-size: 14px;
}

/* Status Badge */
.status-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #4CAF50;
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    z-index: 1;
}

/* Popular Badge */
.popular-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #FFB81C;
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    z-index: 1;
}

/* Sold Overlay */
.sold-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 2px;
    z-index: 2;
}

/* Save Button */
.save-item-btn {
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 3;
}

.save-item-btn:hover {
    background: white;
    transform: scale(1.1);
}

.save-item-btn.saved {
    color: #e74c3c;
}

/* Card Content */
.zenith-forsale-card-content {
    padding: 15px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.listing-category {
    font-size: 12px;
    color: #999;
    font-weight: 500;
    margin-bottom: 6px;
    text-transform: uppercase;
}

.zenith-forsale-card h3 {
    font-size: 15px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 8px 0;
    line-height: 1.4;
    min-height: 30px;
}

.zenith-forsale-card h3 a {
    color: #1a1a1a;
    text-decoration: none;
}

.zenith-forsale-card h3 a:hover {
    color: #1A73E8;
}

.price {
    font-size: 20px;
    font-weight: 700;
    color: #1B5E20;
    margin-bottom: 10px;
}

.description {
    font-size: 13px;
    color: #666;
    margin-bottom: 10px;
    line-height: 1.4;
}

.listing-meta {
    font-size: 12px;
    color: #999;
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
}

.zenith-forsale-card .button {
    margin-top: 10px;
    width: 100%;
    padding: 10px;
    text-align: center;
}

/* Pagination */
.zenith-forsale-pagination {
    text-align: center;
    margin-top: 40px;
    padding: 20px 0;
}

.zenith-forsale-pagination a,
.zenith-forsale-pagination span {
    padding: 8px 12px;
    margin: 0 2px;
    border-radius: 4px;
    border: 1px solid #ddd;
    background: white;
    color: #333;
    text-decoration: none;
    transition: all 0.2s ease;
}

.zenith-forsale-pagination a:hover {
    background: #1A73E8;
    color: white;
    border-color: #1A73E8;
}

.zenith-forsale-pagination .current {
    background: #1A73E8;
    color: white;
    border-color: #1A73E8;
}

/* No Results */
.zenith-forsale-no-results {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.zenith-forsale-no-results p {
    font-size: 16px;
    color: #999;
}

/* Single Item Details */
.zenith-forsale-single-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

.zenith-forsale-single-main {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    background: white;
    border-radius: 8px;
    padding: 30px;
    border: 1px solid #e0e0e0;
}

/* Image Gallery */
.zenith-forsale-image-gallery {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.zenith-forsale-main-image {
    width: 100%;
    aspect-ratio: 1;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e0e0e0;
}

.zenith-forsale-main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.zenith-forsale-thumbnails {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
}

.zenith-forsale-thumbnail {
    aspect-ratio: 1;
    background: #f0f0f0;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.2s ease;
}

.zenith-forsale-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.zenith-forsale-thumbnail:hover {
    border-color: #1A73E8;
}

.zenith-forsale-thumbnail.active {
    border-color: #1A73E8;
    background: #f0f7ff;
}

/* Details Section */
.zenith-forsale-details {
    display: flex;
    flex-direction: column;
}

.zenith-forsale-details h1 {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 20px 0;
}

/* Price Section */
.zenith-forsale-price-section {
    background: #f0f7ff;
    border: 2px solid #1A73E8;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.zenith-forsale-price {
    font-size: 36px;
    font-weight: 700;
    color: #1B5E20;
    margin-bottom: 12px;
}

.zenith-forsale-status {
    display: inline-block;
    padding: 8px 16px;
    background: #4CAF50;
    color: white;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

.zenith-forsale-status.sold {
    background: #f44336;
}

/* Info Cards */
.info-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.info-row {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 15px;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.info-row:last-child {
    border-bottom: none;
}

.info-label {
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.info-value {
    color: #666;
    font-size: 14px;
}

/* Description */
.zenith-forsale-description {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    line-height: 1.6;
    color: #555;
}

.zenith-forsale-description h3 {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 15px 0;
}

/* Contact/Seller Section */
.zenith-forsale-seller {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
}

.seller-header {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.seller-avatar {
    width: 50px;
    height: 50px;
    background: #1A73E8;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 20px;
    flex-shrink: 0;
}

.seller-info h4 {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 4px 0;
}

.seller-info p {
    font-size: 13px;
    color: #999;
    margin: 0;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.contact-btn {
    padding: 10px 16px;
    background: #1A73E8;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    text-align: center;
}

.contact-btn:hover {
    background: #1557b0;
    box-shadow: 0 4px 12px rgba(26, 115, 232, 0.3);
}

/* Inquire Button (Prominent) */
.inquire-btn {
    width: 100%;
    padding: 16px;
    background: #1A73E8;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    margin-bottom: 15px;
    transition: all 0.2s ease;
}

.inquire-btn:hover {
    background: #1557b0;
    box-shadow: 0 4px 16px rgba(26, 115, 232, 0.4);
}

/* Secondary Actions */
.secondary-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 15px;
}

.secondary-btn {
    padding: 10px;
    background: #e8e8e8;
    color: #333;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.secondary-btn:hover {
    background: #d0d0d0;
}

/* Analytics */
.analytics-section {
    background: #f9f9f9;
    border-radius: 6px;
    padding: 15px;
    margin-bottom: 20px;
    font-size: 14px;
    border-left: 4px solid #1A73E8;
}

/* Responsive */
@media (max-width: 1024px) {
    .zenith-forsale-single-main {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .zenith-forsale-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    }

    .zenith-forsale-filters {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .zenith-forsale-listings-container {
        padding: 10px;
    }

    .zenith-forsale-header {
        padding: 20px 15px;
    }

    .zenith-forsale-header h1 {
        font-size: 24px;
    }

    .zenith-forsale-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 15px;
    }

    .zenith-forsale-single-main {
        padding: 20px;
    }

    .zenith-forsale-details h1 {
        font-size: 22px;
    }

    .zenith-forsale-thumbnails {
        grid-template-columns: repeat(4, 1fr);
    }

    .zenith-forsale-filters {
        grid-template-columns: 1fr;
    }

    .info-row {
        grid-template-columns: 100px 1fr;
    }
}

@media (max-width: 500px) {
    .zenith-forsale-card-content {
        padding: 12px;
    }

    .zenith-forsale-details h1 {
        font-size: 20px;
    }

    .zenith-forsale-price {
        font-size: 28px;
    }

    .zenith-forsale-thumbnails {
        grid-template-columns: repeat(3, 1fr);
    }
}
