/*
===============================================================================================================================
Put your custom CSS in this file.
===============================================================================================================================
*/


/* ============================================================================================================================
   1. ZÁKLADNÍ UI
============================================================================================================================ */

img {
  border-radius: 10px;
}

.card .card-image:first-child img {
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
}

.btn,
.button {
  border-radius: 5px;
}

.mobile-menu .button_container span {
  background: yellow !important;
}


/* ============================================================================================================================
   2. HEADER / NAVIGACE
============================================================================================================================ */

.header,
.header-section,
#header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: transparent !important;
  box-shadow: none !important;
  border: 0 !important;
}

#header::before,
.header::before,
.header-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.85),
    rgba(0, 0, 0, 0.70),
    transparent
  );
  z-index: -1;
}

#header:not(.scrolled) .navbar-brand {
  color: #f00;
}

#header.scrolled .navbar-brand {
  color: #fff !important;
}

#header a {
  color: rgba(255, 255, 255, 0.7) !important;
}

#header.scrolled a.active {
  color: #fff !important;
}


/* ============================================================================================================================
   3. HERO
============================================================================================================================ */

.page-hero {
  position: relative;
  width: 100vw;
  height: 62vh;
  min-height: 420px;
  margin-top: -120px !important;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  overflow: hidden;
}

.page-hero-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.28);
}

.page-hero-content {
  position: absolute;
  left: 50%;
  bottom: 42px;
  transform: translateX(-50%);
  width: min(1100px, calc(100% - 40px));
  color: #fff;
  z-index: 1;
}

.page-hero-content h1 {
  margin: 0 0 10px 0;
  color: #fff;
}

.page-hero-content p {
  margin: 0;
  font-size: 1.1rem;
}

.page-content-wrapper {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 20px;
}


/* ============================================================================================================================
   4. GALERIE
============================================================================================================================ */

.image-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 20px 0 30px;
}

.image-grid.image-grid-small {
  grid-template-columns: repeat(3, 1fr);
}

.image-grid a {
  display: block;
  line-height: 0;
  text-decoration: none;
  border-radius: 10px;
  overflow: hidden;
}

.image-grid img {
  display: block;
  width: 100%;
  height: 220px;
  object-fit: cover;
  cursor: zoom-in;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.image-grid.image-grid-small img,
.image-grid-small img {
  height: 130px;
}

.image-grid a:hover img {
  transform: scale(1.03);
  opacity: 0.96;
}


/* ============================================================================================================================
   5. LIGHTBOX
============================================================================================================================ */

body.lightbox-open {
  overflow: hidden;
}

.lightbox {
  display: none !important;
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(0, 0, 0, 0.9);
  padding: 0;
  overflow: hidden;
  align-items: center;
  justify-content: center;
}

.lightbox.is-open {
  display: flex !important;
}

.lightbox-stage {
  position: relative;
  width: 100vw;
  max-width: 100vw;
  overflow: hidden;
  text-align: center;
}

.lightbox-slider {
  display: flex;
  width: 300vw;
  transform: translateX(-100vw);
  will-change: transform;
}

.lightbox-slide {
  flex: 0 0 100vw;
  width: 100vw;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  box-sizing: border-box;
}

.lightbox-image {
  display: block;
  max-width: 100vw;
  max-height: 78vh;
  width: auto;
  height: auto;
  margin: 0 auto;
  border-radius: 10px;
  box-shadow: 0 10px 35px rgba(0,0,0,0.35);
}

.lightbox-caption {
  margin-top: 12px;
  color: #fff;
  font-size: 0.95rem;
  line-height: 1.4;
  text-align: center;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  z-index: 100000;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.lightbox-close {
  top: 16px;
  right: 16px;
}

.lightbox-prev {
  top: 50%;
  left: 16px;
  transform: translateY(-50%);
}

.lightbox-next {
  top: 50%;
  right: 16px;
  transform: translateY(-50%);
}

.lightbox-slider {
  display: flex;
  width: 300%;
  transform: translateX(-33.3333%);
  will-change: transform;
}

.lightbox-slide {
  flex: 0 0 33.3333%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  box-sizing: border-box;
}




/* ============================================================================================================================
   6. MAPA / LEAFLET
============================================================================================================================ */

.map-card {
  margin: 30px 0 40px;
}

.okoli-map {
  width: 100%;
  height: 520px;
  margin-top: 16px;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.map-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 12px;
  font-size: 0.95rem;
  color: #555;
}

.custom-map-marker {
  display: flex;
  align-items: center;
  justify-content: center;
}

.custom-map-marker span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
  font-size: 18px;
  background: #fff;
}

.apartment-marker span {
  background: #fff4d6;
  border: 2px solid #d8a400;
}

.trip-marker span {
  background: #eef5ff;
  border: 2px solid #3f7edb;
}

.map-popup h3 {
  margin: 0 0 8px;
  font-size: 1rem;
}

.map-popup p {
  margin: 0 0 8px;
  line-height: 1.45;
}

.map-popup a {
  font-weight: 600;
  text-decoration: none;
}



/* ============================================================================================================================
   Video
============================================================================================================================ */

.hero-video {
  position: relative;
  width: 100vw;
  height: 72vh;
  overflow: hidden;
  margin-left: calc(50% - 50vw);
}

.hero-video video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-video-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0);
}

.hero-video-content {
  position: relative;
  z-index: 2;
  color: #fff;
  max-width: 1100px;
  margin: 0 auto;
  padding-top: 45vh;
}



/* ============================================================================================================================
   7. RESPONSIVE
============================================================================================================================ */

@media (max-width: 768px) {
  .image-grid,
  .image-grid.image-grid-small {
    grid-template-columns: 1fr;
  }

  .lightbox {
    padding: 14px;
  }

  .lightbox-image {
    max-width: 100%;
    max-height: 70vh;
  }

  .lightbox-prev,
  .lightbox-next,
  .lightbox-close {
    width: 44px;
    height: 44px;
    font-size: 24px;
  }

  .lightbox-prev {
    left: 10px;
  }

  .lightbox-next {
    right: 10px;
  }

  .lightbox-close {
    top: 10px;
    right: 10px;
  }

  .okoli-map {
    height: 420px;
  }

  .map-legend {
    gap: 10px;
    font-size: 0.9rem;
  }
}


