/* Aguas Zarcas Stay - estilos (look tipo Booking.com)
   Nota: Tailwind via CDN cubre la mayoria. Aqui van los extras.
*/

html {
  scroll-behavior: smooth;
  /* header (64px) + sub-tabs sticky (~72px) */
  scroll-padding-top: 8.5rem;
}

/* ---------- Badges ---------- */
.badge-info {
  display: inline-block;
  background: #eaf4fd;
  color: #005999;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
}
.badge-new {
  display: inline-block;
  background: #fff8e1;
  color: #8a6200;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
}

/* ---------- Galeria (mobile-first): mosaico 2 arriba + 3 abajo ----------
   Desktop: 1 grande + 4 miniaturas (2x2)
*/
.gallery-wrap {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: 6.5rem;
  gap: 4px;
  border-radius: 8px;
  overflow: hidden;
}
.gallery-tile:nth-child(1),
.gallery-tile:nth-child(2) {
  grid-column: span 3;
  grid-row: 1;
}
.gallery-tile:nth-child(3),
.gallery-tile:nth-child(4),
.gallery-tile:nth-child(5) {
  grid-column: span 2;
  grid-row: 2;
}
@media (min-width: 480px) {
  .gallery-wrap { grid-auto-rows: 8rem; }
}
@media (min-width: 768px) {
  .gallery-wrap {
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: repeat(2, 11rem);
    grid-auto-rows: unset;
    gap: 6px;
  }
  .gallery-tile:nth-child(1) {
    grid-column: span 1;
    grid-row: span 2;
  }
  .gallery-tile:nth-child(2),
  .gallery-tile:nth-child(3),
  .gallery-tile:nth-child(4),
  .gallery-tile:nth-child(5) {
    grid-column: span 1;
    grid-row: span 1;
  }
}
@media (min-width: 1024px) {
  .gallery-wrap { grid-template-rows: repeat(2, 13rem); }
}

.gallery-tile {
  position: relative;
  cursor: pointer;
  overflow: hidden;
  background: #eee;
}
.gallery-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
  display: block;
}
.gallery-tile:hover img {
  transform: scale(1.05);
}

.gallery-more-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.95rem;
}

.gallery-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #005999;
  background: linear-gradient(135deg, #eaf4fd, #f5f5f5);
}

/* ---------- Sub-tabs sticky ---------- */
.sub-tab {
  padding: 0.9rem 0.1rem;
  color: #6b6b6b;
  border-bottom: 3px solid transparent;
  white-space: nowrap;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.sub-tab:hover,
.sub-tab.active {
  color: #003580;
  border-color: #0071c2;
}

/* ---------- Highlights ---------- */
.highlight-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: #3d3d3d;
}
.highlight-item svg {
  width: 1.2rem;
  height: 1.2rem;
  color: #0071c2;
  flex-shrink: 0;
}

/* ---------- Amenidades por categoria ---------- */
.amenity-category h3 {
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 0.6rem;
  color: #1a1a1a;
}
.amenity-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: #3d3d3d;
  padding: 0.25rem 0;
}
.amenity-row svg.check {
  width: 1.1rem;
  height: 1.1rem;
  color: #008009;
  flex-shrink: 0;
}

/* ---------- Precio ---------- */
#price-block .price-amount {
  font-size: 1.6rem;
  font-weight: 800;
  color: #1a1a1a;
}
#price-block .price-unit {
  font-size: 0.85rem;
  color: #6b6b6b;
  font-weight: 500;
}
#price-block .price-meta {
  font-size: 0.8rem;
  color: #6b6b6b;
  margin-top: 0.25rem;
}

/* ---------- Modal: elegir plataforma de reserva ---------- */
#booking-modal.flex {
  display: flex;
}
.platform-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border: 1px solid #e7e7e7;
  border-radius: 8px;
  padding: 0.85rem 1rem;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.platform-link:hover {
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
  transform: translateY(-1px);
}
.platform-badge {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 9999px;
  background: var(--platform-color, #0071c2);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.85rem;
  flex-shrink: 0;
}
.platform-name {
  font-weight: 600;
  color: #1a1a1a;
  flex: 1;
}
.platform-arrow {
  width: 1rem;
  height: 1rem;
  color: #6b6b6b;
  flex-shrink: 0;
}

/* ---------- Accesibilidad: foco visible ---------- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid #0071c2;
  outline-offset: 2px;
}
