/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
}

body {
    font-family: 'Segoe UI', Tahoma, sans-serif;
    background: #f9f9f9;
    color: #333;
    line-height: 1.6;
}

/* Header e Nav */
header {
    background: #00695C;
    color: #fff;
    padding: 1em;
    text-align: center;
}

header .subtitle {
    display: block;
    font-size: 0.6em;
    color: #B2DFDB;
}

nav {
    margin-top: 0.5em;
}

nav a {
    color: #fff;
    margin: 0 1em;
    text-decoration: none;
    font-weight: bold;
}

nav a:hover {
    text-decoration: underline;
}

/* Main */
main {
    max-width: 1000px;
    margin: 2em auto;
    padding: 0 1em;
}

/* Banner */
.banner {
    background: #E0F2F1;
    padding: 2em 1em;
    text-align: center;
    border-radius: 8px;
    margin-bottom: 2em;
}

.banner h1 {
    font-size: 2em;
    margin-bottom: 0.5em;
}

.banner p {
    font-size: 1.1em;
    color: #555;
}

/* Formulários */
form {
    background: #fff;
    padding: 1em;
    border-radius: 8px;
    max-width: 600px;
    margin: 1em auto;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

form label {
    display: block;
    margin-top: 1em;
    font-weight: bold;
}

form input,
form select,
form textarea,
form button {
    width: 100%;
    padding: 0.7em;
    margin-top: 0.5em;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1em;
}

form button {
    background: #00695C;
    color: #fff;
    border: none;
    cursor: pointer;
    margin-top: 1em;
}

form button:hover {
    background: #00564d;
}

/* Cards de anúncio */
.lista-ranchos {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5em;
    margin-top: 1em;
}

.rancho-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
}

.rancho-card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
}

.rancho-info {
    padding: 1em;
    display: flex;
    flex-direction: column;
}

.rancho-info h3 {
    margin-bottom: 0.5em;
    font-size: 1.2em;
}

.rancho-info p {
    margin-bottom: 0.5em;
    font-size: 1em;
}

.avaliacao {
    color: #FFA000;
    font-size: 1.1em;
}

.avaliacao span {
    color: #777;
    font-size: 0.9em;
}

/* Estrelas votáveis */
.vote-star {
    font-size: 1.4em;
    color: #FFA000;
    text-decoration: none;
    margin-right: 4px;
}

.vote-star:hover {
    transform: scale(1.2);
}

/* Links sociais */
.sociais a {
    font-size: 0.9em;
    color: #00695C;
    margin-right: 0.5em;
}

/* Botão WhatsApp */
.btn-whatsapp {
    display: inline-block;
    background: #25D366;
    color: #fff;
    padding: 8px 12px;
    border-radius: 4px;
    text-align: center;
    font-weight: bold;
    margin-bottom: 0.8em;
}

.btn-whatsapp:hover {
    background: #1ebe5b;
}

/* Toast de votação */
.toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    opacity: 0;
    animation: fadein 0.4s forwards, fadeout 0.4s 2.6s forwards;
    z-index: 9999;
    font-size: 1em;
}

@keyframes fadein {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeout {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}

/* Mensagem sem anúncios */
.sem-rancho {
    font-style: italic;
    color: #777;
    margin-bottom: 1em;
}

/* Revisão de importados */
table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    margin-top: 1em;
}

th,
td {
    padding: 10px;
    border: 1px solid #ccc;
    vertical-align: top;
}

textarea {
    width: 100%;
    height: 100px;
    font-family: monospace;
    font-size: 0.9em;
}

.botao {
    padding: 6px 12px;
    margin: 4px 2px;
    cursor: pointer;
    border-radius: 4px;
    font-size: 0.9em;
}

.aprovar {
    background: #28a745;
    color: #fff;
    border: none;
}

.rejeitar {
    background: #dc3545;
    color: #fff;
    border: none;
}

/* Responsividade */
@media (max-width: 768px) {
    html {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 20px;
    }

    nav a {
        display: block;
        margin: 0.5em 0;
    }
}