/* Reset */
* { 
  box-sizing: border-box; 
  margin: 0; 
  padding: 0; 
  font-family: 'Segoe UI', Tahoma, sans-serif; 
}

/* Banner */
header#banner {
  background: linear-gradient(135deg, #8A1E1E 0%, #FFD700 100%); /* Vermelho e Amarelo */
  color: #fff;
  text-align: center;
  padding: 2rem 1rem;
}
header#banner h1 { font-size: 2.5rem; margin-bottom: 0.5rem; }
header#banner p { font-size: 1.2rem; }

/* Filters */
.filters {
  display: flex; flex-wrap: wrap;
  gap: .5rem; padding: 1rem;
  justify-content: center; background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  margin: -1.5rem auto 1rem;
  max-width: 1000px; border-radius: 8px;
}
.filters input, .filters select, .filters button {
  padding: 0.75rem; border: 1px solid #ccc; border-radius: 4px; flex: 1;
}
.filters button {
  background: #8A1E1E; color: #fff; border:none; cursor: pointer;
  transition: background 0.3s;
}
.filters button:hover { background: #7A1A1A; } /* Tom de vermelho mais forte */

/* Property List */
.property-list {
  display: grid; gap: 1.5rem; padding: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  max-width: 1200px; margin: 0 auto;
}
.card {
  background: #fff; border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  overflow: hidden; transition: transform 0.3s;
}
.card:hover { transform: translateY(-5px); }
.card img {
  width: 100%; height: 180px; object-fit: cover;
}
.card-content { padding: 1rem; }
.card-content h3 { font-size: 1.25rem; margin-bottom: .5rem; }
.card-content p { color: #555; margin-bottom: .75rem; }
.card-content button {
  background: #FFD700; color: #fff; border: none;
  padding: 0.5rem 1rem; border-radius: 4px; cursor: pointer;
  transition: background 0.3s;
}
.card-content button:hover { background: #FFC107; } /* Amarelo mais forte */

/* Admin Styles */
.admin-title {
  text-align: center; margin: 1rem 0; color: #8A1E1E; /* Vermelho */
}
.admin-form {
  background: #fff; padding: 2rem; max-width: 600px;
  margin: 1rem auto; border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  display: flex; flex-direction: column; gap: 1rem;
}
.admin-form h2 { text-align: center; color: #FFD700; /* Amarelo */
}
.admin-form label {
  display: flex; flex-direction: column; font-weight: bold;
}
.admin-form input, .admin-form textarea {
  padding: 0.5rem; margin-top: 0.25rem;
  border: 1px solid #ccc; border-radius: 4px;
}
.btn-primary {
  background: #8A1E1E; color: #fff; border: none;
  padding: 0.75rem; border-radius: 4px; cursor: pointer;
  transition: background 0.3s;
}
.btn-primary:hover { background: #7A1A1A; } /* Tom de vermelho mais forte */
.btn-secondary {
  background: #FFD700; color: #333; border: none;
  padding: 0.5rem; border-radius: 4px; cursor: pointer;
}
.btn-secondary:hover { background: #FFC107; } /* Amarelo mais forte */

.admin-list {
  max-width: 1000px; margin: 2rem auto; display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px,1fr)); gap: 1rem;
}
.admin-list .card {
  display: flex; flex-direction: column; overflow: hidden;
}
.admin-list .card img {
  height: 120px; object-fit: cover; width: 100%;
}
.admin-list .card-content {
  padding: 0.75rem; flex: 1;
}
.admin-buttons {
  display: flex; justify-content: space-between; gap: .5rem; padding: .5rem;
}

/* Ajustando o layout do header para incluir a logo ao lado esquerdo do texto */
header#banner {
  background: linear-gradient(135deg, #8A1E1E 0%, #FFD700 100%);
  color: #fff;
  text-align: left; /* Ajusta para alinhamento à esquerda */
  padding: 2rem 1rem;
  display: flex;
  align-items: center; /* Alinha o conteúdo verticalmente */
}

header#banner #logo {
  height: 50px; /* Ajuste a altura da logo */
  margin-right: 1rem; /* Espaçamento entre a logo e o texto */
}

header#banner div {
  display: flex;
  flex-direction: column;
}

/* Slider */
.slider { position: relative; }
.slider button {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(0,0,0,0.4); color: #fff; border: none;
  padding: 0.25rem 0.5rem; cursor: pointer;
}
.slider button:first-of-type { left: 0.5rem; }
.slider button:last-of-type { right: 0.5rem; }

/* Popup */
.popup-overlay {
  position: fixed; top:0; left:0; width:100%; height:100%;
  background: rgba(0,0,0,0.6); display:flex;
  align-items:center; justify-content:center; z-index:1000;
}
.popup-modal {
  background:#fff; padding:1.5rem; border-radius:8px;
  max-width:500px; width:90%; overflow-y:auto; max-height:90%;
}
.popup-modal h2 { margin-bottom:0.5rem; }
.popup-modal .popup-images img {
  width: 100%; margin-top:0.5rem; object-fit:cover;
}
