* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f5f5f5;
    padding-bottom: 120px; 
}

.header {
    background-color: green;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.menu-icon {
    width: 40px;
    height: 40px;
    background-color: #c41e3a;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.menu-icon svg {
    width: 24px;
    height: 24px;
    stroke: white;
}

.logo {
    color: #ffd700;
    font-size: 24px;
    font-weight: bold;
    letter-spacing: 2px;
}

.main-logo {
    max-height: auto; 
    width: 200px;
    display: block; 
    margin-left: auto; 
    margin-right: auto; 
}

.logo-fallback, .logo-filter-fallback {
    display: none;
}

.main-logo:not([src]), .main-logo[src=""] {
    display: none; 
}

.main-logo:not([src]) + .logo-fallback, .main-logo[src=""] + .logo-fallback {
    display: block;
    font-size: 24px;
    color: #c41e3a;
    font-weight: bold;
    margin-bottom: 5px;
}

.main-logo:not([src]) + .logo-fallback ~ .logo-filter-fallback, .main-logo[src=""] + .logo-fallback ~ .logo-filter-fallback {
    display: block !important;
}

.location-info {
    display: flex; 
    flex-direction: column;
    align-items: flex-start; 
    flex-grow: 1; 
    min-width: 50%;
}

.logo-link {
    display: block; 
    width: 100%;
    text-decoration: none !important;
}

.search-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.search-box {
    background-color: white;
    border: none;
    border-radius: 25px;
    padding: 10px 20px;
    min-width: 250px;
    outline: none;
}

.search-btn {
    background-color: transparent;
    border: none;
    cursor: pointer;
    font-size: 20px;
    padding: 5px;
}

.search-btn:hover {
    opacity: 0.7;
}

.banner {
    padding: 0;
    position: relative;
    overflow: hidden;
    max-width: 600px;
    height: 300px;
    margin: 0 auto;
}

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

.banner-content {
    display: none;
}

.banner-text {
    flex: 1;
    min-width: 200px;
}

.banner-title {
    font-size: 48px;
    font-weight: bold;
    color: #ffd700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    margin-bottom: 10px;
    letter-spacing: 3px;
}

.banner-subtitle {
    font-size: 18px;
    color: #666;
    font-weight: bold;
}

.location-section {
    background-color: white;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between; 
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 10px auto;
    text-align: center; 
}

.location-info h2 {
    font-size: 24px;
    color: #c41e3a;
    margin-bottom: 5px;
}

.change-city {
    color: #6b8ec9;
    text-decoration: underline;
    cursor: pointer;
}

.post-btn {
    background-color: green;
    color: white;
    border: none;
    padding: 12px 40px;
    border-radius: 25px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
}

.post-btn:hover {
    background-color: #1f7fa9;
}

.view-controls {
    display: flex;
    gap: 10px;
}

.view-btn {
    width: 40px;
    height: 40px;
    border: 2px solid #ccc;
    background-color: white;
    cursor: pointer;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.view-btn.active {
    background-color: #ccff00;
    border-color: #999;
}

.date-header {
    background-color: green;
    color: white;
    padding: 15px 20px;
    font-size: 20px;
    font-weight: bold;
    max-width: 1200px;
    margin: 20px auto;
    border-radius: 4px;
}

.listings {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
    padding: 0 20px 40px;
}

.listing {
    background-color: white;
    border: 3px solid #ffdd00;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s;
}

.listing:hover {
    transform: translateY(-5px);
}

.listing-image-container {
    position: relative;
    width: 100%;
    padding-bottom: 100%;
    background-color: #ddd;
    overflow: hidden;
}

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

.video-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: rgba(0,0,0,0.7);
    color: white;
    padding: 5px 0px;
    border-radius: 4px;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.listing-content {
    padding: 15px;
}

.listing-title {
    font-size: 16px;
    color: #1e5ba8;
    font-weight: bold;
    margin-bottom: 10px;
    line-height: 1.4;
    cursor: pointer;
}

.listing-title:hover {
    text-decoration: underline;
}

.listing-meta {
    font-size: 13px;
    color: #666;
    margin-bottom: 10px;
}

.listing-location {
    font-size: 12px;
    color: #999;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.listing-description {
    font-size: 13px;
    color: #333;
    line-height: 1.5;
    margin-bottom: 10px;
}

.listing-time {
    font-size: 11px;
    color: #999;
}

.age-badge {
    display: inline-block;
    background-color: #ffdd00;
    color: #333;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: bold;
    margin: 0 5px 0 0;
}

.listing-contact-btn {
    background-color: green;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    float: right;
    transition: background-color 0.3s;
    font-size: 16px;
    font-family: Helvetica, sans-serif;
    text-decoration: underline;
    text-underline-offset: 4px;
    text-transform: uppercase;
}

.listing-contact-btn:hover {
    background-color: #5daa2a;
}

.bottom-contact-btn {
    background-color: green;
    color: white;
    border: none;
    padding: 18px 20px; 
    border-radius: 8px;
    font-weight: bold;
    font-size: 25px;
    font-family: Helvetica, sans-serif;
    cursor: pointer;
    transition: background-color 0.3s;
    
    /* PROPRIEDADES PARA O BOTÃO FICAR FIXO (STICKY) */
    position: fixed;
    bottom: 20px;       /* Distância do fundo */
    left: 50%;          /* Posiciona a meio da tela */
    transform: translateX(-50%); /* Garante que fica perfeitamente centrado */
    z-index: 1000;      /* Garante que fica por cima de tudo */
    width: 90%;         /* Ocupa 90% da largura em telemóveis */
    max-width: 500px;   /* Não fica gigante em desktop */
    margin: 0;          /* Remove a margem antiga */
    box-shadow: 0 4px 15px rgba(0,0,0,0.5); /* Sombra para destacar do fundo */
}

.bottom-contact-btn:hover {
    background-color: #5daa2a;
}

a {
    text-decoration: none;
    color: inherit;
}

a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .banner-title {
        font-size: 32px;
    }

    .header {
        flex-direction: column;
        align-items: flex-start;
    }

    .search-box {
        width: 100%;
        min-width: unset;
    }

    .location-section {
        flex-direction: column;
        align-items: center;
    }
    .location-info {
        width: 100%; 
        align-items: center; 
        margin-bottom: 20px; 

    .listings {
        grid-template-columns: 1fr;
    }

    .banner-content {
        flex-direction: column;
    }
}