/**
 * @file
 * Karusel snídaně — rozvržení a styly (UTF-8).
 */

.hotel-breakfast {
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 24px;
  padding: 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.breakfast-text {
  flex: 1;
  font-size: 1rem;
  line-height: 1.6;
}

/* Karusel cca o 20 % větší než dříve (45 % → 54 %, max 500 → 600 px) */
.breakfast-carousel {
  width: 54%;
  max-width: 600px;
  position: relative;
  overflow: visible;
  float: right;
  margin-left: 24px;
  margin-bottom: 24px;
}

.carousel-viewport {
  position: relative;
  overflow: hidden;
  border-radius: 6px;
}

.carousel-wrapper {
  display: flex;
  width: 100%;
  transition: transform 0.45s ease-in-out;
}

.carousel-slide {
  flex: 0 0 100%;
  text-align: center;
  position: relative;
}

/* Výška obrázku +20 % oproti 280 px → 336 px */
.carousel-slide img {
  width: 100%;
  height: 336px;
  object-fit: cover;
  display: block;
}

/* Šipky listování — dole uprostřed přes spodní část obrázku */
.carousel-arrow {
  position: absolute;
  bottom: 12px;
  z-index: 2;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, transform 0.15s ease;
}

.carousel-arrow:hover,
.carousel-arrow:focus-visible {
  background: rgba(0, 0, 0, 0.75);
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.carousel-arrow:active {
  transform: scale(0.96);
}

.carousel-arrow--prev {
  left: 12px;
}

.carousel-arrow--next {
  right: 12px;
}

.carousel-arrow__icon {
  font-size: 28px;
  line-height: 1;
  font-weight: bold;
  margin-top: -2px;
}

.carousel-dots {
  text-align: center;
  margin-top: 14px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

/* Tečky jako tlačítka — výchozí stav */
.carousel-dots .dot {
  height: 14px;
  width: 14px;
  min-width: 14px;
  min-height: 14px;
  padding: 0;
  border: 2px solid rgba(0, 0, 0, 0.25);
  background-color: #bbb;
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.carousel-dots .dot:hover,
.carousel-dots .dot:focus-visible {
  background-color: #888;
  outline: none;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.15);
}

/* Aktivní snímek — výrazné zvýraznění */
.carousel-dots .dot.active-dot {
  background-color: #1a1a1a;
  border-color: #1a1a1a;
  transform: scale(1.35);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

@media (max-width: 768px) {
  .hotel-breakfast {
    flex-direction: column;
    text-align: center;
  }

  .breakfast-text {
    max-width: 100%;
  }

  .breakfast-carousel {
    width: 100%;
    float: none;
    margin: 0 auto 24px;
    max-width: 100%;
  }

  /* +20 % oproti 220 px → 264 px */
  .carousel-slide img {
    max-width: 100%;
    height: 264px;
  }

  .carousel-arrow {
    width: 40px;
    height: 40px;
    bottom: 10px;
  }

  .carousel-arrow--prev {
    left: 8px;
  }

  .carousel-arrow--next {
    right: 8px;
  }

  .carousel-arrow__icon {
    font-size: 24px;
  }
}
