/* ==========================================================================
   Carousel & Asymmetrical Bento Grid Styles - Hostel Uytnyi
   ========================================================================== */

/* Core Carousel Container */
.carousel-container {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 100%;
  user-select: none;
}

.carousel-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.carousel-slide {
  min-width: 100%;
  width: 100%;
  height: 100%;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.carousel-slide:hover img {
  transform: scale(1.03);
}

/* Glassmorphic Arrows */
.carousel-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(15, 14, 18, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  line-height: 1;
  cursor: pointer;
  z-index: 15;
  opacity: 0;
  transition: all 0.25s ease;
  padding: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.carousel-container:hover .carousel-nav-btn,
.hero-image-card:hover .carousel-nav-btn,
.bento-cell:hover .carousel-nav-btn {
  opacity: 1;
}

.carousel-prev {
  left: 10px;
}

.carousel-next {
  right: 10px;
}

.carousel-nav-btn:hover {
  background: rgba(15, 14, 18, 0.85);
  border-color: rgba(255, 255, 255, 0.45);
  transform: translateY(-50%) scale(1.08);
}

/* Dots Indicator */
.carousel-dots {
  position: absolute;
  bottom: 12px;
  right: 12px;
  display: flex;
  gap: 5px;
  z-index: 15;
  align-items: center;
}

.carousel-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: all 0.25s ease;
}

.carousel-dot.active {
  width: 16px;
  border-radius: 3px;
  background: #ffffff;
  box-shadow: 0 0 6px rgba(255, 255, 255, 0.6);
}

/* ==========================================================================
   Hero Photo Carousels
   ========================================================================== */

.hero-image-card {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background-color: var(--color-charcoal);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  height: clamp(280px, 25vw, 360px);
  min-height: 0;
}

.hero-image-card.large,
.hero-image-card.small {
  height: clamp(280px, 25vw, 360px);
  min-height: 0;
}

.hero-counter-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(15, 14, 18, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #fff;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 3px 9px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  z-index: 12;
  pointer-events: none;
}

/* ==========================================================================
   Asymmetrical Bento Grid for Gallery
   ========================================================================== */

.gallery-bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: clamp(210px, 20vw, 250px) clamp(210px, 20vw, 250px);
  gap: clamp(12px, 1.5vw, 16px);
  margin-top: 18px;
}

.gallery-bento-grid.bento-filtered {
  grid-template-rows: auto;
}

.gallery-bento-grid.bento-filtered .bento-cell {
  grid-column: 1 / -1 !important;
  grid-row: auto !important;
  height: clamp(340px, 40vw, 500px) !important;
}

.bento-cell {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background-color: #1a191f;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.07);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  min-height: 0;
  height: 100%;
}

.bento-cell:hover {
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.14);
}

/* Bento Cell Placement: 1 Dominant Card (Left 50%) + 4 Balanced Cards (Right 50% in 2x2) */
.bento-cell-rooms {
  grid-column: span 6;
  grid-row: 1 / span 2;
}

.bento-cell-kitchen {
  grid-column: span 3;
  grid-row: 1;
}

.bento-cell-sport {
  grid-column: span 3;
  grid-row: 1;
}

.bento-cell-bath {
  grid-column: span 3;
  grid-row: 2;
}

.bento-cell-common {
  grid-column: span 3;
  grid-row: 2;
}

/* Top Badges in Bento Cell */
.bento-badge-group {
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex;
  gap: 6px;
  z-index: 12;
  pointer-events: none;
}

.bento-category-tag {
  background: rgba(15, 14, 18, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 3px 10px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.bento-counter {
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.bento-zoom-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(15, 14, 18, 0.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  cursor: pointer;
  z-index: 12;
  opacity: 0;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.bento-cell:hover .bento-zoom-btn {
  opacity: 1;
}

.bento-zoom-btn:hover {
  background: rgba(15, 14, 18, 0.9);
  transform: scale(1.08);
}

/* Bottom Caption Overlay in Bento Cell */
.bento-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 26px 14px 10px;
  background: linear-gradient(to top, rgba(15, 14, 18, 0.9) 0%, rgba(15, 14, 18, 0.45) 60%, transparent 100%);
  color: #fff;
  z-index: 10;
  pointer-events: none;
}

.bento-caption-title {
  font-size: 12px;
  font-weight: 500;
  line-height: 1.3;
  color: #f7f7f5;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */

@media (max-width: 992px) {
  .hero-image-card,
  .hero-image-card.large,
  .hero-image-card.small {
    height: clamp(250px, 30vw, 300px);
    min-height: 0;
  }

  .carousel-nav-btn {
    opacity: 0.85;
    width: 32px;
    height: 32px;
    font-size: 16px;
  }

  .bento-zoom-btn {
    opacity: 0.85;
  }

  .gallery-bento-grid {
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: auto;
    gap: 12px;
  }

  .bento-cell-rooms {
    grid-column: span 12;
    grid-row: auto;
    height: 300px;
  }

  .bento-cell-kitchen,
  .bento-cell-sport,
  .bento-cell-bath,
  .bento-cell-common {
    grid-column: span 6;
    grid-row: auto;
    height: 210px;
  }
}

@media (max-width: 640px) {
  .hero-image-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .hero-image-card,
  .hero-image-card.large,
  .hero-image-card.small {
    height: 230px;
    min-height: 0;
  }

  .gallery-bento-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    gap: 12px;
  }

  .bento-cell-rooms,
  .bento-cell-kitchen,
  .bento-cell-sport,
  .bento-cell-bath,
  .bento-cell-common {
    grid-column: span 1;
    grid-row: auto;
    height: 220px;
  }
}
