/* Estilos personalizados para el CMS de alojamientos */
body {
    background-color: #f8f9fa;
    font-family: 'Arial', sans-serif;
}
nav.navbar {
    margin-bottom: 20px;
}
.card-img-top {
    height: 180px;
    object-fit: cover;
}
fieldset legend {
    font-size: 1.1rem;
    font-weight: bold;
}



/* Tipografía y ritmo visual */
body { font-size: 16.5px; }
.navbar .brand-dot {
  width: 10px; height: 10px; border-radius: 50%;
  display: inline-block; background: #0d6efd;
}

/* Hero degradado suave */
.hero-2025 {
  background: radial-gradient(1000px 400px at 15% 0%, rgba(13,110,253,.08), transparent),
              linear-gradient(180deg, rgba(0,0,0,0.02), transparent);
  padding-inline: 1.25rem;
}
.hero-img {
  background: url('https://images.unsplash.com/photo-1505692794403-34d4982f88aa?q=80&w=1600&auto=format&fit=crop') center/cover no-repeat;
}

/* Cards modernas */
.card-2025 { transition: transform .2s ease, box-shadow .2s ease; border-radius: 1rem; }
.card-2025:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(0,0,0,.08); }
.img-zoom { transition: transform .5s ease; }
.card-2025:hover .img-zoom { transform: scale(1.05); }

/* Footer */
.footer-2025 { background: #101317; }
.hover-white:hover { color: #fff !important; }

/* ------------------------------------------------------------------
   Estilos de reseñas inspirados en Airbnb
   Estas reglas mejoran la presentación de la sección de valoraciones en
   property_detail.php para que resulte más profesional, con bloques
   destacados, separadores y tarjetas de reseñas. Se utilizan colores
   neutros y tipografía limpia para un aspecto moderno.
------------------------------------------------------------------- */

/* Contenedor del resumen de valoraciones */
.review-summary {
  background: #fff;
  padding: 2rem 1rem;
  border-radius: 12px;
  border: 1px solid #eaeaea;
  max-width: 900px;
  margin: 0 auto;
}

/* Número grande de puntuación */
.review-summary .rating-number {
  font-size: 3rem;
  font-weight: 600;
  line-height: 1;
  color: #000;
}

/* Texto introductorio del resumen */
.review-summary-header p {
  max-width: 480px;
  margin: 0 auto;
  color: #555;
}

/* Bloque de categorías con separadores */
.category-stats {
  border-top: 1px solid #eaeaea;
  border-bottom: 1px solid #eaeaea;
  padding: 1rem 0;
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.category-stats .category {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1rem;
  min-width: 100px;
}

/* Separador vertical entre categorías */
.category-stats .category:not(:last-child) {
  border-right: 1px solid #eaeaea;
}

/* Icono de categoría */
.category-icon {
  font-size: 1.5rem;
  line-height: 1;
  margin-bottom: 0.25rem;
  color: #333;
}

/* Label de categoría */
.category-label {
  color: #555;
}

/* Valor numérico de categoría */
.category-value {
  font-weight: 600;
  color: #000;
  margin-top: 0.1rem;
}

/* Etiquetas descriptivas (tags) de la propiedad */
.review-tags {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}

.review-tag {
  background: #f2f2f2;
  color: #333;
  padding: 0.35rem 0.8rem;
  border-radius: 20px;
  font-size: 0.85rem;
  white-space: nowrap;
}

/* Lista de reseñas */
.review-list {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 2rem;
  justify-content: center;
}

/* Tarjeta individual de reseña */
.review-item {
  background: #fff;
  border: 1px solid #eaeaea;
  border-radius: 12px;
  padding: 1.5rem;
  flex: 1 1 45%;
  max-width: 500px;
  min-width: 280px;
  display: flex;
  flex-direction: column;
}

@media (max-width: 768px) {
  .review-item {
    flex: 1 1 100%;
    max-width: 100%;
  }
}

/* Avatares con inicial */
.avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #e4e4e4;
  color: #555;
  font-weight: 600;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Imagen de perfil de usuario (avatar) en reseñas */
/* Contenedor de imagen de perfil de usuario (avatar) */
.avatar-img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  flex-shrink: 0;
}

/* Datos del autor de la reseña */
.review-author strong {
  font-size: 1rem;
  color: #000;
}
.review-author span {
  color: #777;
  font-size: 0.85rem;
}

/* Fecha de la reseña */
.review-date {
  color: #777;
  font-size: 0.85rem;
}

/* Estrellas de la valoración */
.review-stars {
  color: #000;
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
}

/* Texto de la reseña */
.review-text {
  color: #333;
  font-size: 0.95rem;
}

/* Enlace para mostrar más texto */
.show-more {
  color: #0d6efd;
  cursor: pointer;
  text-decoration: underline;
  font-size: 0.85rem;
}

/* ------------------------------------------------------------------
   Histograma y encabezado de rating con laureles
   Estas clases añaden un aspecto decorativo con iconos de hoja a cada
   lado del número de puntuación y muestran la distribución de estrellas
   mediante barras horizontales. Se centran automáticamente y se
   dimensionan de forma proporcional al número de reseñas.
------------------------------------------------------------------- */

.rating-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.laurel-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #333;
}

/* Ajustar tamaño de los iconos dentro de los laureles */
.laurel-icon i {
  font-size: 2rem;
  line-height: 1;
}

/* Histograma de distribución */
.rating-distribution {
  max-width: 220px;
  width: 100%;
}

.dist-row {
  display: flex;
  align-items: center;
}

.dist-label {
  width: 16px;
  text-align: right;
  color: #666;
}

.dist-bar {
  flex: 1;
  height: 4px;
  background: #e0e0e0;
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}

.dist-fill {
  background: #000;
  height: 100%;
  border-radius: 2px;
}

/* Estilos para el bloque de amenities booleanos (servicios destacados) */
.amenities-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.amenity-chip {
  background: #f7f7f7;
  border: 1px solid #e3e3e3;
  border-radius: 20px;
  padding: 0.4rem 0.8rem;
  display: flex;
  align-items: center;
  font-size: 0.85rem;
  color: #333;
}

.amenity-icon {
  margin-right: 0.35rem;
  font-size: 1rem;
  line-height: 1;
}
