body {
    background-color: #000;
    color: #fff;
    font-family: sans-serif;
    margin: 0;
    padding: 0;
}

.top-ad {
    max-width: 900px;
    margin: 0 auto;
    background-color: #ffd700;
    color: #000;
    text-align: center;
    padding: 8px;
    font-weight: bold;
    font-size: 1rem;
    border-bottom: 2px solid #000;
}

/* Main Grid for Ads - centered with equal side margins */
.ads-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    background: #000;
    padding: 5px 0;
    margin: 0 auto;
    max-width: 900px;
}

.ad-item {
    display: flex;
    height: 120px;
    background: #111;
    position: relative;
    border: none;
}

.ad-photo-container {
    flex: 1;
    position: relative;
    border-right: 1px solid #000;
    overflow: hidden;
    cursor: pointer;
}

.ad-photo-container:last-child {
    border-right: none;
}

.ad-photo-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Overlay Info */
.name-tag {
    position: absolute;
    top: 2px;
    left: 2px;
    background: red;
    color: white;
    padding: 1px 3px;
    font-weight: bold;
    border-radius: 2px;
    z-index: 10;
    font-size: 0.55rem;
}

.city-tag {
    position: absolute;
    bottom: 2px;
    right: 2px;
    background: red;
    color: white;
    padding: 1px 3px;
    font-weight: bold;
    border-radius: 2px;
    z-index: 10;
    font-size: 0.5rem;
}

/* Ad item link styling */
a.ad-item {
    text-decoration: none;
    color: inherit;
    display: flex;
    height: 120px;
    background: #111;
    position: relative;
    border: none;
    transition: opacity 0.2s;
}

a.ad-item:hover {
    opacity: 0.85;
}

/* Banner area centered */
.banner-area {
    max-width: 900px;
    margin: 0 auto;
}

/* Mobile responsive - match reference site (94px height) */
@media (max-width: 768px) {
    .ads-container {
        grid-template-columns: 1fr;
        gap: 2px;
        padding: 2px;
        max-width: 100%;
    }

    .ad-item,
    a.ad-item {
        height: 94px;
        display: flex;
        flex-direction: row;
    }

    .ad-photo-container {
        flex: 1;
        min-width: 0;
    }

    .name-tag {
        font-size: 0.65rem;
        padding: 2px 4px;
    }

    .city-tag {
        font-size: 0.6rem;
        padding: 2px 4px;
    }

    .top-ad {
        max-width: 100%;
        font-size: 0.9rem;
    }

    .banner-area {
        max-width: 100%;
    }
}