* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #1a1a1a;
    background-color: #dadada;
}

h1 a {
  text-decoration: none; /* remove o sublinhado */
  color: inherit;        /* usa a mesma cor do h1 */
}
h1 a:hover {
  opacity: 0.8; /* efeito ao passar o mouse */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.text-center {
    text-align: center;
}


/* Header */
.header {
    background-color: #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid #e5e7eb;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 16px;
}

.logo {
   
    width: 40px;
    height: 40px;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo img{

width: 100%;
    height: 100%;
    object-fit: cover;
}


.site-title {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
}

.nav {
    display: flex;
    align-items: center;
    gap: 24px;
    justify-content: space-between;
}

.nav-link {
    color: #6b7280;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.site-title a {
  text-decoration: none; /* remove o sublinhado */
  color: inherit;        /* usa a cor do h1 */
}
.site-title a:hover {
  opacity: 0.8; /* efeito leve no hover */
}


.nav-link:hover {
    color: #1a1a1a;
}

@media (max-width: 768px) {
    .nav {
        display: none;
    }
}

.auth-links{
    display: flex;
    align-items: center;
    gap: 12px;
}


.user-dropdown {
  position: relative;
  display: inline-block;
}

.user-button {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  color: rgb(128, 105, 105); /* ajuste conforme o header */
}

.user-dropdown {
  position: relative;
  display: inline-block;
}

.user-button {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  color: rgb(141, 122, 122); /* ajuste conforme o header */
}

.dropdown-content {
  display: none;
  position: absolute;
  right: 0;
  background-color: white;
  min-width: 150px;
  box-shadow: 0px 8px 16px rgba(0,0,0,0.2);
  z-index: 1000;
  border-radius: 5px;
  overflow: hidden;
}

.dropdown-content a {
  display: block;
  padding: 10px 15px;
  color: black;
  text-decoration: none;
}

.dropdown-content a:hover {
  background-color: #f0f0f0;
}



/* Estilos para o Modal */
.modal {
    display: none; /* Oculta o modal por padrão */
    position: fixed;
    z-index: 200; /* Garante que fique acima de outros elementos */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4); /* Fundo preto transparente */
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: #fefefe;
    margin: 15% auto; /* 15% do topo e centralizado */
    padding: 24px;
    border: 1px solid #888;
    width: 80%; /* Pode ajustar a largura */
    max-width: 400px;
    border-radius: 8px;
    position: relative;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.modal-content h2 {
    margin-bottom: 20px;
    text-align: center;
}

.modal-content input {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.modal-content button {
    width: 100%;
    padding: 12px;
    background-color: #1a1a1a;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.modal-content button:hover {
    background-color: #333;
}

.close-btn {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    top: 10px;
    right: 15px;
}

.close-btn:hover,
.close-btn:focus {
    color: black;
    text-decoration: none;
}

.hero {
    position: relative;
    height: 400px;
    overflow: hidden;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.544), rgba(0, 0, 0, 0.544));
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content {
    text-align: center;
    color: white;
}

.hero-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 16px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 20px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}


.hero .btn-map {
    display: inline-block;
    margin-top: 40px;
    padding: 0.75rem 2rem;
    background-color: #39433f;
    color: white;
    text-decoration: none;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: background 0.3s;
}

.hero .btn-map:hover {
    background-color: #39433fd7;
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 32px;
    }
    
    .hero-subtitle {
        font-size: 18px;
    }
}


.main {
    padding: 64px 0;
}

.about-section {
    margin-bottom: 64px;
}

.section-title {
    font-size: 32px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 24px;
}

.section-description {
    font-size: 18px;
    color: #6b7280;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.7;
}


.neighborhoods-section {
    margin-bottom: 64px;
}

.neighborhoods-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    margin-top: 48px;
}

.neighborhood-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
    padding: 24px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.neighborhood-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.card-title {
    font-size: 20px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 12px;
}

.card-description {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.6;
}

.card-feature {
    display: flex;
    align-items: center;
    color: #3b82f6;
    font-size: 14px;
    font-weight: 500;
}

.icon {
    width: 16px;
    height: 16px;
    margin-right: 8px;
}


.cta-section {
    background: linear-gradient(135deg, #e7e9ea, #dfe1e4);
    border-radius: 12px;
    padding: 48px 24px;
    text-align: center;
}

.cta-content {
    max-width: 600px;
    margin: 0 auto;
}

.cta-title {
    font-size: 32px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 16px;
}

.cta-description {
    font-size: 18px;
    color: #6b7280;
    margin-bottom: 32px;
    line-height: 1.7;
}

.cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
}

@media (min-width: 640px) {
    .cta-buttons {
        flex-direction: row;
        justify-content: center;
    }
}

.btn {
    padding: 12px 32px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 16px;
    min-width: 140px;
}

.btn-primary {
    background: #39433f;
    color: white;
}

.btn-primary:hover {
    background: #39433fb5;
}

.btn-secondary {
    background: #ffffff;
    color: #1a1a1a;
    border: 1px solid #cacccedc;
}

.btn-secondary:hover {
    background: #f3f4f6;
}

/* Footer */
.footer {
    background: white;
    border-top: 1px solid #e5e7eb;
    margin-top: 64px;
    padding: 48px 0;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 32px;
    margin-bottom: 32px;
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

.footer-brand {
    max-width: 300px;
}

.footer-logo-section {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.footer-logo {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-logo img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.footer-brand-name {
    font-weight: 700;
    color: #1a1a1a;
}

.footer-description {
    color: #6b7280;
    font-size: 14px;
    line-height: 1.6;
}

.footer-title {
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 16px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-link {
    color: #6b7280;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s ease;
}

.footer-link:hover {
    color: #1a1a1a;
}

.footer-bottom {
    border-top: 1px solid #e5e7eb;
    padding-top: 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

@media (min-width: 640px) {
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
    }
}

.footer-copyright {
    color: #6b7280;
    font-size: 14px;
}

.footer-legal {
    display: flex;
    gap: 24px;
}

.footer-legal-link {
    color: #6b7280;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s ease;
}

.footer-legal-link:hover {
    color: #1a1a1a;
}