/* ════════════════════════════════════════════
   ALOJAMIENTOS.CSS
   Estilos exclusivos de la página de
   alojamientos. Se carga DESPUÉS de
   base.css y subpaginas.css.

   Color de acento: #1a8f6e (verde tango),
   distinto al celeste de milongas para
   diferenciar visualmente las secciones.
   ════════════════════════════════════════════ */


/* ── ACENTO PROPIO ────────────────────────────
   Se define localmente para no pisar las
   variables globales del sitio.
   ─────────────────────────────────────────── */
:root {
  --aloj-verde: #1a8f6e;    /* Verde principal de esta sección */
  --aloj-fondo: #eef7f4;    /* Fondo del cuerpo de cada sección */
}


/* ── ANCHO MÁXIMO ─────────────────────────────
   Igual que milongas: fuerza el max-w
   en header y container.
   ─────────────────────────────────────────── */
.subpage-header,
.subpage-container {
  width: min(var(--max-w), 100%);
}


/* ══════════════════════════════════════════
   SECCIÓN ACORDEÓN
   Cada tipo de alojamiento (Hotel, Hostel…)
   es un bloque colapsable.
   ══════════════════════════════════════════ */

.aloj-seccion {
  border: 2px solid var(--black);
  overflow: hidden;
}


/* ── ENCABEZADO ───────────────────────────────
   Fondo negro, texto blanco.
   Clickeable para colapsar/expandir.
   ─────────────────────────────────────────── */
.aloj-head {
  background: var(--black);
  color: var(--white);
  padding: 0.8rem 1.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
}

/* Nombre del tipo (Hotel, Hostel, etc.) */
.aloj-tipo {
  font-family: var(--font);
  font-weight: 900;
  font-size: clamp(1.4rem, 5vw, 2rem);
  text-transform: uppercase;
  letter-spacing: -0.02em;
  color: var(--white);
  line-height: 1;
}

/* Parte derecha del header: contador + chevron */
.aloj-head-right {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

/* Badge con cantidad de alojamientos en esa sección */
.aloj-count {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  background: var(--orange);     /* Naranja del sitio */
  color: var(--white);
  padding: 0.2rem 0.55rem;
  min-width: 24px;
  text-align: center;
}

/* Flecha acordeón */
.chevron {
  color: var(--white);
  font-size: var(--text-base);
  transition: transform 0.25s;
  line-height: 1;
}

/* Rotación cuando está colapsado */
.aloj-seccion.collapsed .chevron {
  transform: rotate(-90deg);
}


/* ── CUERPO DE LA SECCIÓN ─────────────────────
   Fondo verde muy suave, lista de items.
   ─────────────────────────────────────────── */
.aloj-body {
  background: var(--aloj-fondo);
  padding: 0.8rem 1.2rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

/* Oculto cuando está colapsado */
.aloj-seccion.collapsed .aloj-body {
  display: none;
}


/* ══════════════════════════════════════════
   TARJETA DE ALOJAMIENTO
   Una por establecimiento.
   ══════════════════════════════════════════ */

.aloj-item {
  background: var(--white);
  border-left: 3px solid var(--orange);  /* Naranja del sitio */
  padding: 0.55rem 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}


/* ── HEADER DEL ITEM ──────────────────────────
   Nombre a la izquierda, categoría a la
   derecha (estrellas o texto).
   ─────────────────────────────────────────── */
.aloj-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  flex-wrap: wrap;
}

/* Nombre del alojamiento */
.aloj-nombre {
  font-family: var(--font);
  font-weight: 700;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  color: var(--black);
  line-height: 1.1;
}

/* Categoría — texto (ej: "económico") o contenedor de estrellas */
.aloj-cat {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  color: #555;
  white-space: nowrap;
  flex-shrink: 0;
}


/* ── ESTRELLAS ────────────────────────────────
   ★ llenas en naranja (acento del sitio),
   ☆ vacías en gris claro para indicar el
   máximo posible (5 estrellas).
   ─────────────────────────────────────────── */
.estrellas {
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  color: var(--orange);          /* Estrellas llenas: naranja del sitio */
}

.estrellas-vacias {
  color: #ccc;                   /* Estrellas vacías: gris claro */
}


/* ── DIRECCIÓN ────────────────────────────────
   Con ícono de ubicación (Font Awesome).
   ─────────────────────────────────────────── */
.aloj-addr {
  font-size: 0.78rem;
  color: #555;
  font-weight: 400;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.aloj-addr i {
  color: var(--aloj-verde);
  font-size: 0.7rem;
  flex-shrink: 0;
}


/* ── CAPACIDAD ────────────────────────────────
   Cantidad de personas. Solo se muestra en
   tipos como Departamento, Casa, Camping.
   ─────────────────────────────────────────── */
.aloj-capacidad {
  font-size: 0.78rem;
  color: #555;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.aloj-capacidad i {
  color: var(--aloj-verde);
  font-size: 0.7rem;
  flex-shrink: 0;
}


/* ── OBSERVACIÓN ──────────────────────────────
   Texto libre opcional al final de la tarjeta.
   Estilo más suave, en itálica, para indicar
   que es un comentario extra y no datos duros.
   ─────────────────────────────────────────── */
.aloj-obs {
  font-size: 0.76rem;
  color: #777;
  font-style: italic;
  line-height: 1.4;
  margin-top: 0.1rem;
}


/* ── TELÉFONO ─────────────────────────────────
   Link tel: para marcar directamente
   desde el celular.
   ─────────────────────────────────────────── */
.aloj-tel {
  font-size: 0.78rem;
  color: var(--aloj-verde);
  font-weight: 500;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  transition: opacity 0.2s;
}

.aloj-tel:hover { opacity: 0.7; }

.aloj-tel i {
  font-size: 0.7rem;
  flex-shrink: 0;
}


/* ══════════════════════════════════════════
   MENSAJES DE ESTADO
   Carga y error.
   ══════════════════════════════════════════ */

.aloj-msg {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--black);
  opacity: 0.6;
  padding: 1rem 0;
  text-align: center;
}

.aloj-error {
  color: #c0392b;
  opacity: 1;
}



/* ══════════════════════════════════════════
   ANUNCIOS DESTACADOS
   Fichas que aparecen antes del listado
   general. Tres fondos alternados por índice:
   negro / gris / blanco.
   ══════════════════════════════════════════ */


/* ── TÍTULO SEPARADOR ─────────────────────────
   "Espacios destacados" con línea al costado.
   ─────────────────────────────────────────── */
.anuncios-titulo {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 0.2rem;
}

.anuncios-titulo-texto {
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--orange);
  white-space: nowrap;
}

.anuncios-titulo-linea {
  flex: 1;
  height: 2px;
  background: var(--orange);
  opacity: 0.4;
}


/* ── GRILLA DE FICHAS ─────────────────────────
   3 columnas en desktop, 2 en tablet, 1 móvil.
   ─────────────────────────────────────────── */
.anuncios-grilla {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
  margin-bottom: 0.2rem;
}

@media (max-width: 700px) {
  .anuncios-grilla { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 460px) {
  .anuncios-grilla { grid-template-columns: 1fr; }
}


/* ── TARJETA BASE ─────────────────────────────
   Sin sombra offset; borde de 3px que da
   jerarquía sin el efecto dramático anterior.
   ─────────────────────────────────────────── */
.anuncio-card {
  border: 3px solid var(--black);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}


/* ── PALETA DE FONDOS ─────────────────────────
   Tres variantes que se alternan por índice.
   Cada una ajusta el color de todos los
   elementos de texto dentro de la tarjeta.
   ─────────────────────────────────────────── */

/* NEGRO — textos en blanco y celeste */
.anuncio-fondo-negro {
  background: var(--black);
}
.anuncio-fondo-negro .anuncio-nombre      { color: var(--bg); }
.anuncio-fondo-negro .anuncio-nombre-grande { color: var(--bg); }
.anuncio-fondo-negro .anuncio-tipo        { color: var(--orange); }
.anuncio-fondo-negro .anuncio-dato        { color: rgba(255,255,255,0.75); }
.anuncio-fondo-negro .anuncio-dato i      { color: var(--orange); }
.anuncio-fondo-negro .anuncio-tel         { color: rgba(255,255,255,0.75); }
.anuncio-fondo-negro .anuncio-cat         { color: rgba(255,255,255,0.65); }
.anuncio-fondo-negro .anuncio-obs         { color: rgba(255,255,255,0.45); }
.anuncio-fondo-negro .estrellas           { color: var(--orange); }
.anuncio-fondo-negro .estrellas-vacias    { color: rgba(255,255,255,0.2); }
.anuncio-fondo-negro .anuncio-header-negro { background: #1a1a1a; }

/* GRIS — textos en negro */
.anuncio-fondo-gris {
  background: var(--grey);
}
.anuncio-fondo-gris .anuncio-nombre       { color: var(--black); }
.anuncio-fondo-gris .anuncio-nombre-grande { color: var(--black); }
.anuncio-fondo-gris .anuncio-tipo         { color: var(--orange); }
.anuncio-fondo-gris .anuncio-dato         { color: #444; }
.anuncio-fondo-gris .anuncio-dato i       { color: var(--aloj-verde); }
.anuncio-fondo-gris .anuncio-tel          { color: #444; }
.anuncio-fondo-gris .anuncio-cat          { color: #666; }
.anuncio-fondo-gris .anuncio-obs          { color: #888; }
.anuncio-fondo-gris .estrellas            { color: var(--orange); }
.anuncio-fondo-gris .estrellas-vacias     { color: #ccc; }
.anuncio-fondo-gris .anuncio-header-negro { background: #d0d0d0; }

/* BLANCO — textos en negro */
.anuncio-fondo-blanco {
  background: var(--white);
}
.anuncio-fondo-blanco .anuncio-nombre       { color: var(--black); }
.anuncio-fondo-blanco .anuncio-nombre-grande { color: var(--black); }
.anuncio-fondo-blanco .anuncio-tipo         { color: var(--orange); }
.anuncio-fondo-blanco .anuncio-dato         { color: #444; }
.anuncio-fondo-blanco .anuncio-dato i       { color: var(--aloj-verde); }
.anuncio-fondo-blanco .anuncio-tel          { color: #444; }
.anuncio-fondo-blanco .anuncio-cat          { color: #666; }
.anuncio-fondo-blanco .anuncio-obs          { color: #999; }
.anuncio-fondo-blanco .estrellas            { color: var(--orange); }
.anuncio-fondo-blanco .estrellas-vacias     { color: #ddd; }
.anuncio-fondo-blanco .anuncio-header-negro { background: #e8e8e8; }


/* ── ZONA IMAGEN / VIDEO ──────────────────────
   Proporción 16:9 fija para todas las tarjetas.
   ─────────────────────────────────────────── */
.anuncio-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.anuncio-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(10%) contrast(95%);
  transition: transform 0.4s ease;
}

.anuncio-card:hover .anuncio-img {
  transform: scale(1.04);
}

/* Video: sin zoom al hover (se reproducirá) */
.anuncio-video-wrap .anuncio-img {
  cursor: pointer;
}
.anuncio-video-wrap:hover .anuncio-img {
  transform: none;
}


/* ── BOTÓN PLAY ───────────────────────────────
   Círculo semitransparente con ícono play
   centrado sobre el video, desaparece al
   hacer click y arranca la reproducción.
   ─────────────────────────────────────────── */
.anuncio-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 52px;
  height: 52px;
  background: rgba(0,0,0,0.65);
  border: 2px solid var(--white);
  color: var(--white);
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 3;
  transition: background 0.2s;
  /* Sin border-radius: consistente con la estética del sitio */
}

.anuncio-play-btn:hover {
  background: var(--orange);
  border-color: var(--orange);
}

/* Ajuste visual: el ícono play queda ligeramente descentrado */
.anuncio-play-btn i { margin-left: 3px; }


/* ── HEADER NEGRO (sin archivo) ───────────────
   El color específico lo pone la clase de fondo.
   ─────────────────────────────────────────── */
.anuncio-header-negro {
  padding: 1.2rem 1rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-height: 100px;
  justify-content: flex-end;
  position: relative;
}

.anuncio-nombre-grande {
  font-family: var(--font);
  font-size: clamp(1.1rem, 3vw, 1.6rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 1;
  /* Color lo pone la clase de fondo */
}


/* ── BADGE "DESTACADO" ────────────────────────
   Naranja, esquina superior izquierda.
   ─────────────────────────────────────────── */
.anuncio-badge {
  position: absolute;
  top: 0.6rem;
  left: 0.6rem;
  background: var(--orange);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  padding: 0.2rem 0.5rem;
  z-index: 2;
}


/* ── DATOS ────────────────────────────────────
   Zona inferior de la tarjeta.
   ─────────────────────────────────────────── */
.anuncio-datos {
  padding: 0.6rem 0.9rem 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;    /* Reducido de 0.3rem */
  flex: 1;
}

.anuncio-nombre-fila {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-bottom: 0.05rem;   /* Reducido */
}

.anuncio-nombre {
  font-family: var(--font);
  font-size: 0.92rem;       /* Reducido de 1rem */
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 1.1;
}

.anuncio-cat {
  font-family: var(--font-body);
  font-size: 0.7rem;        /* Reducido de 0.75rem */
  font-weight: 500;
  white-space: nowrap;
  flex-shrink: 0;
}

.anuncio-tipo {
  font-family: var(--font-body);
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 0.05rem;
}

/* Dirección, capacidad, teléfono */
.anuncio-dato {
  font-size: 0.73rem;       /* Reducido de 0.78rem */
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.anuncio-dato i {
  font-size: 0.65rem;       /* Reducido levemente */
  flex-shrink: 0;
}

.anuncio-tel {
  text-decoration: none;
  transition: opacity 0.2s;
}
.anuncio-tel:hover { opacity: 0.7; }

.anuncio-obs {
  font-size: 0.7rem;        /* Reducido de 0.74rem */
  font-style: italic;
  line-height: 1.4;
  margin-top: 0.05rem;
}


/* ── BOTONES ──────────────────────────────────
   Pegados al fondo de la tarjeta via margin-top auto.
   ─────────────────────────────────────────── */
.anuncio-botones {
  display: flex;
  gap: 0.4rem;
  margin-top: auto;
  padding-top: 0.5rem;    /* Reducido de 0.6rem */
  flex-wrap: wrap;
}

.anuncio-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.35rem 0.65rem;   /* Reducido levemente */
  font-family: var(--font);
  font-size: 0.68rem;         /* Reducido de 0.72rem */
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-decoration: none;
  transition: opacity 0.2s;
  flex: 1;
  justify-content: center;
}

.anuncio-btn:hover { opacity: 0.85; }

/* WhatsApp — verde fijo siempre visible,
   independiente del fondo de la tarjeta   */
.anuncio-btn-wa {
  background: #25d366 !important;
  color: #fff !important;
}

/* Link — naranja fijo */
.anuncio-btn-link {
  background: var(--orange) !important;
  color: #fff !important;
}


/* ── SEPARADOR ────────────────────────────────
   Entre la sección de anuncios y el listado.
   ─────────────────────────────────────────── */
.anuncios-separador {
  height: 2px;
  background: var(--black);
  opacity: 0.15;
  margin: 0.4rem 0;
}
