/* Samouczek */


#tutorial-overlay,
#tutorial-welcome-popup,
#tutorial-step-popup {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease-in-out, visibility 0s linear 0.6s;
    position: fixed;
    z-index: 10000;
}

#tutorial-overlay.visible,
#tutorial-welcome-popup.visible,
#tutorial-step-popup.visible {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.6s ease-in-out, visibility 0s linear 0s;
}

#tutorial-overlay {
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease-in-out, visibility 0s linear 0.6s;
    position: fixed;
    z-index: 10000;
}

#tutorial-overlay.visible {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.6s ease-in-out, visibility 0s linear 0s;
}

.tutorial-popup {
    background-color: #fff;
    padding: 25px;
    text-align: center;
    min-width: 300px;
    max-width: 500px;
    box-sizing: border-box;
	border-radius: 20px;
}

#tutorial-welcome-popup {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.popup-footer {
    margin-top: 25px; 
    text-align: center;
}

.popup-footer a {
    display: inline-block;
    text-decoration: none;
    line-height: 0;
}

.tutorial-welcome-maker {
    font-size: 1.8em;
	font-weight: bold;
	margin-top: 10px;
	color: #2b2b2b;
}

.tutorial-s360 {
    font-size: 0.8em;
	margin-bottom: 5px;
	color: #2b2b2b;
}

.popup-logo {
    max-width: 200px;
    height: auto;
    display: block;
    margin-left: auto;
    margin-right: auto;
    transform: translateX(-10px);
	outline: none;
	-webkit-tap-highlight-color: transparent;
}

#tutorial-welcome-popup .tutorial-buttons {
    margin-top: 25px;
    display: flex;
    justify-content: center;
    gap: 15px;
}

.tutorial-step-popup-layout {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    padding-top: 20px;
}

#tutorial-step-popup p {
	font-size: 1.2rem;
    text-align: center;
    margin-bottom: 20px;
    margin-top: 20px;
	color: #2b2b2b;
}

#tutorial-welcome-popup button,
#tutorial-step-popup button {
    padding: 10px 15px;
    border: none;
    cursor: pointer;
	font-family: "Open Sans";
    font-size: 1.4em;
	font-weight: bold;
    transition: background-color 0.3s ease;
	outline: none;
	-webkit-tap-highlight-color: transparent;
	border-radius: 12px;
}

#tutorial-start-button,
#tutorial-next-button {
    background-color: #00e1ff;
    color: white;
    outline: none;
	-webkit-tap-highlight-color: transparent;
}

#tutorial-start-button:hover,
#tutorial-next-button:hover {
    background-color: #00b3cc;
	outline: none;
	-webkit-tap-highlight-color: transparent;
}

#tutorial-skip-button {
    background-color: #00e1ff;
    color: white;
	outline: none;
	-webkit-tap-highlight-color: transparent;
}

#tutorial-skip-button:hover {
    background-color: #00b3cc;
	outline: none;
	-webkit-tap-highlight-color: transparent;
}

.tutorial-close-button {
    position: absolute;
    top: 0px; 
    right: 0px; 
    background: transparent;
    border: none;
    padding: 10px 10px !important;
    cursor: pointer;
    line-height: 1;
    font-size: 0;
    z-index: 10;
    outline: none;
	-webkit-tap-highlight-color: transparent;
}

.tutorial-close-button img {
    width: 26px;
    height: 26px;
    display: block;
}

.tutorial-close-button:hover {
    opacity: 0.8;
}


@media (max-width: 768px) {
    .tutorial-popup {
        width: 90%; 
        max-width: 90%;
        max-height: 90vh; 
        overflow-y: auto;
        padding: 20px;
        padding-top: 20px;
    }

    #tutorial-welcome-popup {
        width: 90%;
    }

    #tutorial-welcome-popup .tutorial-buttons {
        gap: 10px;
    }

    .tutorial-close-button {
        top: 0px;
        right: 0px;
    }

    .tutorial-close-button img {
        width: 28px;
        height: 28px;
		outline: none;
		-webkit-tap-highlight-color: transparent;
    }
	
	#tutorial-step-popup p {
	font-size: 1rem;
}
}


/*  Popup KNM */


.knm-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 9000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease-in-out;
}

.knm-overlay.knm-visible {
  opacity: 1;
  pointer-events: all;
}

.knm-popup {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 9001;
  display: flex;
  flex-direction: row;
  width: min(1150px, 92vw);
  max-height: 92vh;
  background: #000;
  overflow: hidden;
  border-radius: 20px;
  box-shadow: 0 0px 60px rgba(0, 0, 0, 1);
  transform: translate(-50%, -50%) scale(0.8);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
  font-family: 'Open Sans', sans-serif;
}

.knm-popup.knm-visible {
  opacity: 1;
  pointer-events: all;
  transform: translate(-50%, -50%) scale(1);
}

.knm-image-col {
  flex: 0 0 50%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  position: relative;
}

@media (hover: hover) and (pointer: fine) {
  .knm-image-col {
    cursor: zoom-in;
  }
  .knm-image-col img {
    transition: transform 0.3s ease;
  }
  .knm-image-col:hover img {
    transform: scale(1.01);
  }
}

.knm-image-col img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

.knm-text-col {
  flex: 0 0 50%;
  aspect-ratio: 1 / 1;
  background: #00e1ff;
  display: flex;
  flex-direction: column;
  padding: 25px 44px 40px 44px;
  box-sizing: border-box;
  overflow-y: auto;
  position: relative;
}

.knm-close {
  position: absolute;
  top: 14px;
  right: 18px;
  z-index: 10;
  background: none;
  border: none;
  outline: none;
  box-shadow: none;
  -webkit-tap-highlight-color: transparent;
  cursor: pointer;
  padding: 0;
  user-select: none;
  line-height: 0;
}

.knm-close img {
  width: 32px;
  height: 32px;
  display: block;
}

.knm-close:hover,
.knm-close:focus,
.knm-close:active {
  opacity: 1;
  outline: none;
  box-shadow: none;
  background: none;
  border: none;
}

.knm-header {
  flex-shrink: 0;
  padding-right: 36px;
}

.knm-category {
  font-family: 'Open Sans', sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #fff;
  margin: 0 0 10px 0;
  line-height: 1.4;
}

.knm-divider {
  border: none;
  border-top: 2px solid rgba(255, 255, 255, 1);
  margin: 0;
}

.knm-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 20px;
}

.knm-title {
  font-family: 'Open Sans', sans-serif;
  font-size: clamp(22px, 2.6vw, 34px);
  font-weight: 700;
  color: #fff;
  margin: 0 0 18px 0;
  line-height: 1.2;
}

.knm-body {
  font-family: 'Open Sans', sans-serif;
  font-size: clamp(14px, 1.4vw, 16px);
  font-weight: 400;
  color: #000;
  line-height: 1.6;
  margin: 0;
  text-align: left;
  text-justify: inter-word;
}

.knm-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9100;
  background: rgba(0, 0, 0, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease-in-out;
  cursor: zoom-out;
}

.knm-lightbox.knm-lb-visible {
  opacity: 1;
  pointer-events: all;
}

.knm-lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.6);
  cursor: zoom-out;
  user-select: none;
}

.knm-lightbox-close {
  position: absolute;
  top: 18px;
  right: 24px;
  background: none;
  border: none;
  outline: none;
  box-shadow: none;
  -webkit-tap-highlight-color: transparent;
  color: #fff;
  font-size: 36px;
  line-height: 1;
  cursor: pointer;
  padding: 4px;
  user-select: none;
  font-family: 'Open Sans', sans-serif;
}

.knm-lightbox-close:hover,
.knm-lightbox-close:focus,
.knm-lightbox-close:active {
  opacity: 1;
  outline: none;
  background: none;
  border: none;
  box-shadow: none;
}

@media (hover: none), (pointer: coarse) {
  .knm-lightbox {
    display: none !important;
  }
}

@media (max-width: 640px) {
  .knm-popup {
    flex-direction: column;
    width: 92vw;
    height: min(calc(92vw * 2), 90vh);
    max-height: 90vh;
    overflow: hidden;
    border-radius: 16px;
  }

  .knm-close {
    position: absolute;
    top: 14px;
    right: 18px;
    z-index: 20;
  }

  .knm-image-col {
    flex: 0 0 50%;
    width: 100%;
    aspect-ratio: unset;
    height: 50%;
    overflow: hidden;
    position: relative;
    z-index: 1;
  }

  .knm-text-col {
    flex: 0 0 50%;
    width: 100%;
    aspect-ratio: unset;
    height: 50%;
    padding: 25px 24px 36px 24px;
    box-sizing: border-box;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    position: relative;
    z-index: 2;
  }
  
  .knm-body {
  font-family: 'Open Sans', sans-serif;
  font-size: clamp(12px, 1.2vw, 14px);
  }
  
  .knm-category {
  font-size: 11px;
  }
}


/* Polygon Tooltip */


#pano-tooltip {
	position: fixed;
	z-index: 999;
	pointer-events: none;
	display: none;
	opacity: 0;
	transition: opacity 0.3s ease;
	box-sizing: border-box;
	max-width: 320px;
	min-width: 160px;
	text-align: center;
}
 
#pano-tooltip .pt-label {
	display: none;
}
 
#pano-tooltip .pt-image-wrap {
	position: relative;
	display: block;
}
 
#pano-tooltip .pt-image {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 20px;
	border: 2px solid #30eaf9;
	background: transparent;
	box-shadow: 0 0px 20px rgba(0, 0, 0, 0.5);
	box-sizing: border-box;
}
 
#pano-tooltip .pt-image-icon {
	position: absolute;
	bottom: -11px;
	left: 50%;
	transform: translateX(-50%);
	width: 24px;
	height: 24px;
	object-fit: contain;
	pointer-events: none;
	filter: drop-shadow(0 0px 4px rgba(0,0,0,0.5));
}
 
#pano-tooltip.pt-visible {
	opacity: 1;
}
 
#pano-tooltip .pt-label,
#pano-tooltip .pt-image {
	pointer-events: auto;
	cursor: pointer;
}