:root {
    --color-orange: #FF6B00;
    --color-yellow: #FFC400;
    --color-purple: #9B00FF;
    --color-blue: #0066FF;
    --color-dark: #333;
    --color-light: #f9f9f9;
    --color-white: #fff;
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Outfit', sans-serif;
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --secondary-gradient: linear-gradient(120deg, #84fab0 0%, #8fd3f4 100%);
    --bg-color: #f5f7fa;
    --card-bg: #ffffff;
    --text-color: #333333;
    --header-height: 160px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    line-height: 1.6;

}

/* Header */
#main-header {
    width: 100%;
    display: flex;
    justify-content: center;
    text-align: center;
    margin: auto;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    align-items: center;
    height: var(--header-height);
    background-image: linear-gradient(135deg, #667eea 0%, #764ba2 100%);

}

.header-content {
    width: 100%;
    align-items: center;
    text-align: center;
    display: flex;
    background-color: var(--primary-gradient);

}

.banner-content img {
    border: 10px solid #f9f9f9;
    border-radius: 10px;
    margin-top: 5px;
}

.container {
    margin: 0 auto;
    text-align: center;
    width: 100%;
    max-width: 1000px;

}

/* Content (Left) */
.listings-section {
    flex-grow: 1;
    order: 1;
    /* Ensure it is on the left */
    margin-bottom: 10px;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;

}

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-blue);
    margin: 10px 0;

}

.listings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100%, 1fr));
    /* 1 col layout for the 'table' feel or grid? Request says 'tabela para comportar anuncios... imagem lado esquerdo...' implies list view */
    gap: 20px;

}

/* Listing Card Style */
.listing-card {
    display: flex;
    background: var(--color-white);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    height: auto;
    min-height: 140px;
    transition: transform 0.2s;
}

.listing-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);

}

.listing-image {
    width: 220px;
    /* Fixed width for image */
    flex-shrink: 0;

}

.listing-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;

}

.listing-details {
    padding: 15px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    /* Push phone to bottom */
    flex-grow: 1;
}

.listing-details h3 {
    color: var(--color-dark);
    font-size: 1.1rem;
    margin-bottom: 5px;
    line-height: 1.2;
}

.listing-details p {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    /* Show 3 lines max */
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: auto;
    /* Push down to fill space if needed */

}

.listing-details h4 {
    color: #666;
    margin-top: 10px;
}

/* Footer */
footer {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    height: var(--header-height);
    background-image: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    margin: auto;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Responsive Adjustments */
@media (max-width: 820px) {

    #main-header,
    footer,
    .container {
        width: 100%;
        padding: 0 10px;
        max-width: 100%;
    }

    .listing-card {
        flex-direction: column;
        height: auto;
    }

    .listing-image {
        width: 100%;
        height: 200px;
    }

    .listing-details {
        width: 100%;
    }

    /* Hide large banners on mobile */
    .banner-container {
        display: none;
    }

    /* Adjust header height since banner is hidden */
    #main-header,
    footer {
        height: auto;
        padding: 10px 0;
        min-height: 60px;
    }
}