/* Banner Advertisement Styles */

.banner-container {
    margin: 20px 0;
    text-align: center;
    position: relative;
}

.banner-ad {
    position: relative;
    cursor: pointer;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease;
    display: inline-block;
}

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

.banner-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.banner-overlay {
    position: absolute;
    top: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 4px 8px;
    font-size: 11px;
    border-bottom-left-radius: 4px;
}

.banner-label {
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Banner Size Classes */

.banner-hero {
    width: 100%;
    max-width: 1200px;
    height: 400px;
}

.banner-leaderboard {
    width: 728px;
    height: 90px;
    max-width: 100%;
}

.banner-medium-rectangle {
    width: 300px;
    height: 250px;
}

.banner-half-page {
    width: 300px;
    height: 600px;
}

.banner-mobile {
    width: 320px;
    height: 50px;
    max-width: 100%;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .banner-hero {
        height: 200px;
    }

    .banner-leaderboard {
        width: 320px;
        height: 50px;
    }

    .banner-medium-rectangle {
        width: 250px;
        height: 200px;
    }

    .banner-half-page {
        width: 250px;
        height: 400px;
    }
}

/* Placement-specific styling */

.homepage-hero .banner-container {
    margin: 40px 0;
}

.homepage-sidebar .banner-container {
    margin: 20px 0;
}

.listing-header .banner-container {
    margin: 20px 0 40px 0;
}

.listing-sidebar .banner-container {
    margin: 20px 0;
    text-align: center;
}

.detail-content .banner-container {
    margin: 30px 0;
}

.mobile-footer .banner-container {
    position: sticky;
    bottom: 0;
    background: white;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.1);
    padding: 10px;
    margin: 0;
    z-index: 1000;
}

/* Loading placeholder */
.banner-loading {
    background: #f8f9fa;
    border: 2px dashed #dee2e6;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    font-size: 14px;
    min-height: 100px;
}

/* Hide banner containers by default */
.banner-container {
    display: none;
}

.banner-container.loaded {
    display: block;
}