:root {
  --map-bg: #151515;
  --pop-up-bg: #171717;
  --text-color: #3a8a4e;
  --primary: #3a8a4e;
  --second-bg: #fff;
  --font-size-s: 10px;
  --font-size-m: 12px;
  --font-size-lg: 16px;
}

body.interactive-map #sticky-social {
  display: none !important;
}

.leaflet-container {
  background: var(--map-bg) !important;
}

.leaflet-popup-content-wrapper,
.leaflet-popup-tip {
  color: var(--text-color) !important;
}

#main .page-content {
  padding-top: 30px;
  padding-bottom: 0;
}

.map-wrapper {
  display: flex;
  flex-direction: column;
}

.map-wrapper #map {
  height: 800px;
  /* width: 1080px; */
  width: 100%;
  background: #fff !important;
}

#map-legend {
  display: flex;
  flex-direction: row;
  position: absolute;
  left: 5px;
  bottom: 5px;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 20px;
  z-index: 999;
  padding: 7px;
}

.map-legend-item {
  font-size: 12px;
  margin-right: 30px;
}

.map-legend-item img {
  height: 36px;
  width: 24px;
  margin-right: 6px;
}

.leaflet-popup-content p {
  display: inline;
}

.leaflet-popup-content hr {
  background-color: var(--text-color) !important;
  margin: 5px 0;
}

.leaflet-popup-content .title {
  color: var(--primary) !important;
  font-size: var(--font-size-lg) !important;
}

#map-changelog {
  position: absolute;
  text-align: right;
  bottom: 7px;
  right: 7px;
  color: white;
  font-weight: 400;
  font-size: 11px;
  z-index: 900;
  cursor: pointer;
}

@media (max-width: 600px) {
  .map-wrapper {
    margin-top: 20px;
  }
  .map-wrapper #map {
    height: calc(100vh - 200px);
  }
  #map-legend {
    justify-content: space-evenly;
    right: 5px;
  }
  .map-legend-item {
    display: flex;
    flex-direction: column;
    text-align: center;
    margin-right: 0;
    align-items: center;
  }

  .map-legend-item img {
    text-align: center;
    margin-right: 0;
    margin-bottom: 2px;
  }

  #map-changelog {
    bottom: auto;
  }
  #map-changelog br {
    display: none;
  }
}

.leaflet-popup-content .video-link {
  padding: 0 5px;
  color: var(--primary) !important;
  text-decoration: none;
}

.leaflet-popup-content .video-link:visited {
  color: var(--primary);
}

.leaflet-container img.leaflet-tile {
  mix-blend-mode: normal !important;
}

.changelog {
  max-width: 600px;
}

.version {
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid #ddd;
}

.version h3 {
  margin: 0;
  font-size: 1.2em;
  color: #0056b3;
  display: flex;
  justify-content: space-between;
}

.version span {
  font-size: 0.9em;
  color: #666;
}

.version ul {
  padding-left: 20px;
  margin: 10px 0 0 0;
}

.version li {
  margin-bottom: 5px;
  line-height: 1.6;
}

.map-wrapper #side {
  display: none;
  height: 70vh;
  width: 90%;
  max-width: 420px;
  background-color: var(--second-bg);
  z-index: 999;
  padding: 0 1.8rem;
  overflow-y: scroll;
}

.map-wrapper .title {
  color: var(--primary);
  text-align: center;
}

.map-wrapper .subtitle {
  color: var(--text-color);
  text-align: center;
}

.map-wrapper ul {
  list-style: none;
  padding: 1rem 0.8rem;
}

.map-wrapper ul li {
  color: var(--text-color);
  cursor: pointer;
  font-size: var(--font-size-lg);
  padding-bottom: 4px;
}

.map-wrapper ul li:hover {
  color: var(--primary);
}

.map-wrapper ul li.active {
  color: var(--primary);
  font-weight: 700;
}

.map-wrapper .list-item {
  display: flex;
}

.map-wrapper .list-section {
  display: flex;
  justify-content: space-evenly;
}

.modal {
  font-family: -apple-system, BlinkMacSystemFont, avenir next, avenir,
    helvetica neue, helvetica, ubuntu, roboto, noto, segoe ui, arial, sans-serif;
  z-index: 9999;
}

.modal__overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.modal__container {
  background-color: #fff;
  padding: 30px;
  max-width: 600px;
  max-height: calc(100vh - 100px);
  overflow-y: auto;
  box-sizing: border-box;
  border-radius: 20px;
  box-shadow: 2px 4px 8px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
}

@media (max-width: 600px) {
  .modal__container {
    width: 100%;
    height: 100%;
    max-height: none;
    border-radius: 0;
  }
}

.modal__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal__title {
  margin-top: 0;
  margin-bottom: 0;
  font-weight: 600;
  font-size: 1.25rem;
  line-height: 1.25;
  color: #00449e;
  box-sizing: border-box;
}

.modal__close {
  cursor: pointer;
  background: transparent;
  position: absolute;
  top: 15px;
  right: 15px;
  z-index: 1;
  width: 50px;
  border: none;
  height: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.modal__close:before {
  content: "\2715";
  font-size: 18px;
  color: #000;
}

.modal__content {
  margin-top: 2rem;
  margin-bottom: 2rem;
  overflow-y: auto;
  line-height: 1.5;
  color: rgba(0, 0, 0, 0.8);
}

.modal__gallery {
  display: flex;
  justify-content: space-between;
  margin-bottom: 15px;
}

.modal__gallery .img-item {
  width: 110px;
  height: 110px;
  border-radius: 20px;
  overflow: hidden;
}

.modal__gallery .img-item .img-anchor {
  display: block;
  width: 100%;
  height: 100%;
}

.modal__gallery .img-item img {
  min-width: 100%;
  min-height: 100%;
}

@media (max-width: 600px) {
  .modal__gallery img {
    width: 90px;
    height: 90px;
    border-radius: 20px;
  }
}

.modal__description {
  margin-bottom: 15px;
}

.modal__readmore {
  font-weight: 600;
  display: flex;
  justify-content: end;
}

.modal__readmore a {
  color: #00449e;
}

.modal__btn {
  width: 100%;
  border-radius: 20px;
  font-size: 1rem;
  text-align: center;
  padding-left: 1rem;
  padding-right: 1rem;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  background-color: #00449e;
  color: #fff;
  border-style: none;
  border-width: 0;
  cursor: pointer;
  -webkit-appearance: button;
  text-transform: none;
  overflow: visible;
  line-height: 1.15;
  margin: 0;
  will-change: transform;
  -moz-osx-font-smoothing: grayscale;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  transition: -webkit-transform 0.25s ease-out;
  transition: transform 0.25s ease-out;
  transition: transform 0.25s ease-out, -webkit-transform 0.25s ease-out;
}

.modal__btn:focus,
.modal__btn:hover {
  color: #fff;
  -webkit-transform: scale(1.05);
  transform: scale(1.05);
}

.modal__btn-primary {
  background-color: #00449e;
  color: #fff;
}

/**************************\
  Demo Animation Style
\**************************/
@keyframes mmfadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes mmfadeOut {
  from {
    opacity: 1;
  }

  to {
    opacity: 0;
  }
}

@keyframes mmslideIn {
  from {
    transform: translateY(15%);
  }

  to {
    transform: translateY(0);
  }
}

@keyframes mmslideOut {
  from {
    transform: translateY(0);
  }

  to {
    transform: translateY(-10%);
  }
}

.micromodal-slide {
  display: none;
}

.micromodal-slide.is-open {
  display: block;
  position: fixed;
  height: 100%;
  width: 100%;
  z-index: 99999;
}

.micromodal-slide[aria-hidden="false"] .modal__overlay {
  animation: mmfadeIn 0.3s cubic-bezier(0, 0, 0.2, 1);
}

.micromodal-slide[aria-hidden="false"] .modal__container {
  animation: mmslideIn 0.3s cubic-bezier(0, 0, 0.2, 1);
}

.micromodal-slide[aria-hidden="true"] .modal__overlay {
  animation: mmfadeOut 0.3s cubic-bezier(0, 0, 0.2, 1);
}

.micromodal-slide[aria-hidden="true"] .modal__container {
  animation: mmslideOut 0.3s cubic-bezier(0, 0, 0.2, 1);
}

.micromodal-slide .modal__container,
.micromodal-slide .modal__overlay {
  will-change: transform;
}

/* Styl dla karty */
.card {
  display: flex;
  background-color: #fff;
  border-radius: 12px;
  padding: 16px;
  max-width: 600px;
  align-items: center;
  margin: 20px auto;
}
@media (max-width: 600px) {
  .card {
    flex-direction: column;
  }
}
#attraction-modal-cards {
  flex-direction: column;
}

.map-container {
  flex: 2;
  margin-right: 16px;
}

.map-container img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.info {
  flex: 3;
}

.info h2 {
  font-size: 14px;
  margin: 0;
  color: #333;
}

.info h2 .easy {
  color: #3a8a4e;
  font-size: 12px;
}
.info h2 .medium {
  color: #ffe600;
  font-size: 12px;
}
.info h2 .hard {
  color: #9b1111;
  font-size: 12px;
}

.info p {
  color: #666;
  font-size: 12px;
  margin: 8px 0;
  line-height: 1.5;
}

.details {
  font-size: 0.9em;
  color: #666;
  margin-top: 8px;
}

.buttons {
  margin-top: 12px;
}

.reserve-button,
.maps-button {
  padding: 10px 20px;
  font-size: 0.9em;
  border-radius: 6px;
  border: none;
  cursor: pointer;
}

.reserve-button {
  background-color: #333;
  color: #fff;
  margin-right: 10px;
}

.maps-button {
  background-color: #e0e0e0;
  color: #333;
}
