/* ===========================
   ESTILOS GENERALES
   =========================== */

body {
  background-color: #121212;
  color: white;
  font-family: 'Segoe UI', sans-serif;
  margin: 0;
  padding: 0;
}

/* Centrado vertical solo en index.php */
body.home-center {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

/* Logo principal */
.logo {
  font-size: 3rem;
  font-weight: bold;
  margin-bottom: 30px;
}

/* ===========================
   BARRA DE BÚSQUEDA (INDEX + RESULTADOS)
   =========================== */

.search-bar {
  width: 100%;
  max-width: 700px;
  margin: 0 auto 40px auto;
}

.search-wrapper {
  position: relative;
}

.search-wrapper input.form-control {
  border-radius: 50px;
  padding: 0.75rem 1.5rem;
  padding-right: 130px; /* espacio para el botón */
  font-size: 1.1rem;
  background-color: #1e1e1e;
  color: white;
  border: 1px solid #333;
}

.search-wrapper input.form-control::placeholder {
  color: #777;
}

.search-wrapper button.btn-search {
  position: absolute;
  top: 50%;
  right: 6px;
  transform: translateY(-50%);
  height: 40px;
  padding: 0 22px;
  border-radius: 50px;
  border: none;
  font-size: 1rem;
}

/* ===========================
   RESULTADOS (resultados.php)
   =========================== */

.result-card {
  background-color: #1e1e1e;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 0 15px rgba(0,0,0,0.5);
  margin-bottom: 25px;
}

.result-img {
  position: relative;
}

.result-img img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: 10px;
}

.favorite-btn {
  position: absolute;
  top: 15px;
  left: 15px;
  background: rgba(0,0,0,0.6);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.9rem;
}

.status-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background: #28a745;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.9rem;
}

.avatar-box {
  position: absolute;
  bottom: -25px;
  left: 20px;
}

.avatar-box img {
  width: 55px;
  height: 55px;
  border-radius: 50%;
  border: 3px solid #fff;
}

.rating-box {
  position: absolute;
  bottom: 15px;
  right: 15px;
  background: rgba(0,0,0,0.6);
  padding: 8px 12px;
  border-radius: 10px;
  text-align: right;
}

.rating-box .score {
  font-size: 1.3rem;
  font-weight: bold;
}

.category-tag {
  display: inline-flex;
  align-items: center;
  background: #c62828;
  padding: 6px 12px;
  border-radius: 20px;
  margin-right: 10px;
}

.category-tag i {
  margin-right: 6px;
}

.facilities i {
  font-size: 1.2rem;
  margin-right: 10px;
}

.price-level span {
  font-size: 1.3rem;
  color: #ffc107;
}
