/* Estilos Gerais */
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: #f8f9fa;
  font-size: 16px;
  line-height: 1.6;
  color: #333;
}

/* Conteúdo Principal */
.container {
  flex: 1;
}

/* Estilo dos Cards de Imóveis */
.card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-radius: 8px;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.card-img-top {
  height: 200px;
  object-fit: cover;
}

/* Estilos para os badges */
.badge {
  font-size: 0.8rem;
  font-weight: 500;
}

/* Estilo da Paginação */
.pagination .page-link {
  color: #0d6efd;
}

.pagination .page-item.active .page-link {
  background-color: #0d6efd;
  border-color: #0d6efd;
}

/* Estilo para a Barra de Pesquisa */
.search-bar {
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

/* Estilo para filtros */
.filter-section {
  background-color: #fff;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

/* Estilos para o Dashboard Admin */
.dashboard-stats .card {
  border-left: none;
  transition: all 0.3s ease;
  border-top: 1px solid #0d6efd;
}

.dashboard-stats .card:nth-child(1) {
  border-top-color: #0d6efd; /* Azul para Total */
}

.dashboard-stats .card:nth-child(2) {
  border-top-color: #198754; /* Verde para Valor Médio */
}

.dashboard-stats .card:nth-child(3) {
  border-top-color: #0dcaf0; /* Ciano para Venda */
}

.dashboard-stats .card:nth-child(4) {
  border-top-color: #ffc107; /* Amarelo para Aluguel */
}

.dashboard-stats .card-body {
  padding: 20px;
}

.dashboard-stats .card:hover {
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
  transform: translateY(-3px);
}

.dashboard-stats .col-auto {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.dashboard-stats .fa-2x {
  font-size: 2.5rem;
}

.dashboard-stats .text-xs {
  font-size: 0.7rem;
  letter-spacing: 0.5px;
}

.dashboard-stats .h5 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-top: 5px;
}

/* Página de Login */
.login-form {
  max-width: 400px;
  margin: 40px auto;
  padding: 20px;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
}

/* Página de Detalhes do Imóvel */
.property-details .feature-icon {
  font-size: 1.5rem;
  color: #0d6efd;
  margin-bottom: 10px;
}

/* Área de upload de imagens */
.img-preview {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border-radius: 5px;
  margin: 5px;
  border: 1px solid #dee2e6;
}

.upload-area {
  border: 2px dashed #dee2e6;
  padding: 20px;
  text-align: center;
  cursor: pointer;
  border-radius: 5px;
  background-color: #f8f9fa;
  transition: all 0.3s;
}

.upload-area:hover {
  border-color: #0d6efd;
  background-color: #f0f7ff;
}

/* Responsividade */
@media (max-width: 768px) {
  .card-img-top {
    height: 180px;
  }
  h1 {
    font-size: 1.8rem;
  }
  h2 {
    font-size: 1.5rem;
  }
}

/* Melhorias de acessibilidade */
.form-control:focus,
.btn:focus {
  box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* Estilos para o rodapé do site principal */
footer.bg-dark {
    background-color: #212529 !important;
    color: #fff !important;
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
    margin-top: 3rem !important;
    display: block !important;
    visibility: visible !important;
}

footer.bg-dark h5 {
    color: #fff !important;
    margin-bottom: 1rem !important;
    font-weight: 600 !important;
}

footer.bg-dark .text-muted,
footer.bg-dark .text-muted a {
    color: #adb5bd !important;
}

footer.bg-dark a:hover {
    color: #fff !important;
    text-decoration: none !important;
}

footer.bg-dark hr {
    border-color: #495057 !important;
    opacity: 0.2 !important;
}

/* Estilos para o rodapé do painel administrativo */
footer.bg-light {
    background-color: #f8f9fa !important;
    border-top: 1px solid #dee2e6 !important;
    padding: 1rem 0 !important;
    margin-top: auto !important;
    display: block !important;
    visibility: visible !important;
}

footer.bg-light .text-muted,
footer.bg-light .text-muted a {
    color: #6c757d !important;
}

footer.bg-light a:hover {
    color: #0d6efd !important;
    text-decoration: none !important;
}

/* Estrutura de página para manter o rodapé no final */
html, body {
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.content {
    flex: 1 0 auto;
}

/* Ajustes para dispositivos móveis */
@media (max-width: 767.98px) {
    footer h5 {
        margin-top: 1.5rem;
    }
    
    footer .col-md-3:first-child h5 {
        margin-top: 0;
    }
}

/* Estilos adicionais para SEO e acessibilidade */

/* Melhorar contraste para acessibilidade */
.text-primary {
    color: #0056b3 !important; /* Azul mais escuro para melhor contraste */
}

.bg-primary {
    background-color: #0056b3 !important; /* Azul mais escuro para melhor contraste */
}

/* Destacar links para melhor UX */
a:focus {
    outline: 2px solid #0056b3;
    outline-offset: 2px;
}

/* Melhorar visibilidade de imagens */
.img-thumbnail {
    border: 1px solid #ddd;
}

/* Classes auxiliares para SEO */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Garantir que o conteúdo do site seja sempre legível */
p, .card-text {
    margin-bottom: 1rem;
    max-width: 70ch; /* Limitar largura para melhor legibilidade */
}

/* Melhorar a aparência dos formulários */
.form-control:focus {
    border-color: #0056b3;
    box-shadow: 0 0 0 0.2rem rgba(0, 86, 179, 0.25);
}

/* Manter a seção principal com espaçamento adequado */
main {
    padding-bottom: 2rem;
}

/* Adequar o tamanho das imagens para SEO e performance */
.img-fluid {
    max-width: 100%;
    height: auto;
} 