

/*============== styleCookieGA.css ==============*/


/* ============ Style for Cookie + GoogleAnalytics ========= */

:root {
  --md-primary: #6750A4;
  --md-on-primary: #ffffff;
  --md-surface: #ffffff;
  --md-on-surface: #1c1b1f;
  --md-outline: #cac4d0;
  --md-elevation: 0 8px 24px rgba(0,0,0,.2);
}
		
/* ===== COOKIE PANEL ===== */
#cookie-panel {
  position: fixed;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 32px);
  max-width: 420px;
  background: var(--md-surface);
  color: var(--md-on-surface);
  border-radius: 28px;
  box-shadow: var(--md-elevation);
  padding: 20px 22px;
  z-index: 9999;
  display: none;
  animation: slideUp .4s ease-out;
}

@keyframes slideUp {
  from { transform: translate(-50%, 40px); opacity: 0; }
  to { transform: translate(-50%, 0); opacity: 1; }
}

#cookie-panel h3 {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 500;
}

#cookie-panel p {
  font-size: 14px;
  line-height: 1.5;
  color: #444;
  margin-bottom: 16px;
}

#cookie-panel p a {
  color: var(--md-primary);
  text-decoration: none;
  font-weight: 500;
}

#cookie-panel p a:hover {
  text-decoration: underline;
}

.cookie-actions {
  display: flex;
  gap: 12px;
}

.cookie-actions button {
  flex: 1;
  height: 40px;
  border-radius: 20px;
  font-size: 14px;
  border: none;
  cursor: pointer;
}

.btn-accept {
  background: var(--md-primary);
  color: var(--md-on-primary);
}

/*.btn-reject {
  background: transparent;
  color: var(--md-primary);
  border: 1px solid var(--md-outline);
}*/
			
.cookie-actions .btn-reject {
  background: transparent;
  color: var(--md-primary);
  border: 1px solid var(--md-primary) !important;
}

/* ====== ZĘBATKA (dokładnie jak ikony FB 45x45) ====== */
.cookie-trigger {
  position: absolute;
  left: 5vw;
  top: 50%;
  width: 45px;
  height: 45px;
  background: #6750A4;
  border-radius: 50%;
  border: 2px solid #fff;
  box-sizing: border-box;
  transform: translateY(-16px); /* idealne wyrównanie do góry */
  /* transform: translateY(-50%); */ /* idealne wyrównanie */
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 25px;
  cursor: pointer;
}


/*============== styleLanguage.css ==============*/


:root {
  --switcher-right: -18px;
  --switcher-hover-right: -2px;
  --switcher-move: 3px;
  --switcher-duration: 0.9s;
}

.lang-switcher {
  position: fixed;
  top: 10px;
  right: var(--switcher-right);

  display: flex;
  align-items: center;
  gap: 8px;

  padding: 4px;
  border-radius: 40px;
  background: transparent;

  cursor: pointer;
  z-index: 10000;

  width: 44px;
  overflow: visible;

  transition: width var(--switcher-duration) ease,
              right var(--switcher-duration) ease,
              transform var(--switcher-duration) cubic-bezier(.25,.8,.25,1);
}

.lang-switcher:hover {
  transform: translateX(calc(-1 * var(--switcher-move)));
  right: var(--switcher-hover-right);
}

.lang-switcher.open {
  width: 132px; /* 3x Flaga po 44px */
  transform: translateX(calc(-1 * var(--switcher-move)));
  right: var(--switcher-hover-right);
  background: transparent;
}

.flag {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid rgba(200,200,200,1);
  background-size: cover;
  background-position: center;
  flex-shrink: 0;

  cursor: pointer;
  transition: box-shadow 0.35s ease, border-color 0.35s ease;

  background-clip: padding-box;
  pointer-events: auto !important;
  
  object-fit: cover;
}

.flag.active {
  box-shadow: 0 0 0 1px #ffd700;
  border-color: #ffd700;
}

.menuLang { 
  display: none; 
  opacity: 0;
}

.lang-switcher.open .menuLang {
  display: flex;
  animation: menuIn 0.25s ease forwards;
}

.lang-switcher.open .main {
  display: none;
}

.menuLang .flag {
  opacity: 0;
  transform: translateY(8px);
}

.lang-switcher.open .menuLang .flag:nth-child(1) {
  animation: itemIn 0.25s ease forwards;
  animation-delay: 0.05s;
}
.lang-switcher.open .menuLang .flag:nth-child(2) {
  animation: itemIn 0.25s ease forwards;
  animation-delay: 0.10s;
}
.lang-switcher.open .menuLang .flag:nth-child(3) {
  animation: itemIn 0.25s ease forwards;
  animation-delay: 0.15s;
}

@keyframes menuIn {
  from { opacity: 0; transform: translateX(-10px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes itemIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
  
/* ===== Mobile tweaks ===== */

html.mobile .lang-switcher {
    top: calc(env(safe-area-inset-top) + 3px) !important; /* było +1px */
    right: calc(env(safe-area-inset-right) + 3px) !important; /* było +5px */
}


/*============== styleExtra.css ==============*/


/* =========== Polityka prywatności w Footer =========== */
.smallTextFooter {
  font-size: 12.5px;       /* mniejsza czcionka */
  color: #fff;           /* kolor biały (lub inny) */
}

.smallTextFooter_fb {
  font-size: 12.5px;
  color: #fff;
  position: relative;
  top: 10px;
}

.privacyLink[data-style="footer"] {
  color: #6750A4;
  text-decoration: none;
  font-weight: 250;
  position: relative;
  transition: text-shadow 0.2s ease;
  cursor: pointer;
}

.privacyLink[data-style="footer"]::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 0;
  height: 2px;
  background: #6750A4;
  transition: width 0.3s ease;
}

.privacyLink[data-style="footer"]:hover {
  text-shadow: 0 0 0 #6750A4, 0 0 0 #6750A4, 0 0 0 #6750A4,
               0.5px 0 0 #6750A4, -0.5px 0 0 #6750A4;
}

.privacyLink[data-style="footer"]:hover::after {
  width: 100%;
}

.privacyLink[data-style="privacypanel"] {
  color: #6750A4;
  cursor: pointer;
}

/* =========== Polityka prywatności PopUp =========== */

/* Wyłącz zaznaczanie na całej stronie, gdy popup jest aktywny */
body.popup-open {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

/* Overlay */
.privacy-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(4px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    z-index: 10000;
}

/* Dialog */
.privacy-dialog {
    position: fixed;
    top: 48%;
    left: 50%;
    width: 90%;
    max-width: 680px;
    background: #f7f7f7;          /* jednolite tło całego popupu */
    border-radius: 16px;           /* materialowe zaokrąglenie */
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.25);
    transform: translate(-50%, -50%);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(.4,0,.2,1);
    z-index: 10001;
    overflow: hidden;              /* ważne dla zaokrągleń */
	user-select: text; 			   /* Włącz zaznaczanie tylko wewnątrz popupu */
}

.privacy-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.privacy-dialog.active {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, -50%);
}

/* Header */
.privacy-dialog-header {
    padding: 16px 24px;
    border-bottom: 1px solid rgba(0,0,0,0.12);
    background: transparent;        /* <-- usunięte białe tło */
}

.privacy-dialog-header h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 500;
    color: #6750A4;
}

/* Content */
.privacy-dialog-content {
    padding: 16px 24px;
    font-size: 14px;
    line-height: 1.6;
    max-height: 60vh;
    overflow-y: auto;
    background: transparent;       /* tło bierze z .privacy-dialog */
}

.privacy-dialog-content h3 {
    margin: 16px 0 8px;
    font-size: 16px;
    font-weight: 500;
}

.privacy-dialog-content ul {
    padding-left: 18px;
}

/* Actions */
.privacy-dialog-actions {
    padding: 12px 16px;
    display: flex;
    justify-content: flex-end;
    border-top: 1px solid rgba(0,0,0,0.12);
    background: rgba(0,0,0,0.04);   /* lekko ciemniejsze tło */
}

/* Button */
.privacy-btn {
    border: none;
    border-radius: 4px;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    background: #6750A4;
    color: #fff;
    transition: background 0.2s ease, transform 0.2s ease;
}

.privacy-btn:hover {
    background: #6750A4;
    transform: translateY(-1px);
}

/* Mobile tweaks */
@media (max-width: 480px) {
    .privacy-dialog {
        width: 92%;
        max-width: none;
		top: 50%;
        transform: translate(-50%, -40%);
    }
    .privacy-dialog-actions {
        justify-content: center;
    }
    .privacy-btn {
        width: 100%;
    }
}

/* Dark mode */
@media (prefers-color-scheme: dark) {
    .privacy-dialog {
        background: #1f1f1f;
        box-shadow: 0 14px 40px rgba(0, 0, 0, 0.8);
    }

    .privacy-dialog-header {
        border-bottom: 1px solid rgba(255,255,255,0.12);
    }

    .privacy-dialog-header h2 {
        color: #bb86fc;
    }

    .privacy-dialog-content {
        color: #ddd;
    }

    .privacy-dialog-actions {
        background: rgba(255,255,255,0.06);
        border-top: 1px solid rgba(255,255,255,0.12);
    }

    .privacy-btn {
        background: #bb86fc;
        color: #1a1a1a;
    }
}

/* =========== NAGŁÓWKI W POPUPIE =========== */
.privacy-dialog h2,
.privacy-dialog h3,
.privacy-dialog h4,
.privacy-dialog h5,
.privacy-dialog h6 {
  text-transform: none !important;
}
.privacy-dialog ul {
  list-style: disc;
  margin-left: 24px;
  padding-left: 0;
}
.privacy-dialog-header h3{
  color: #6750A4; /* fiolet */
}

/* =========== Map Tiler =========== */
#map-wrapper1, #map-wrapper2{
	position: relative;
    width: 100%;
    height: 500px;
}

#map1, #map2 {
	width: 100%;
    height: 100%;
	touch-action: pan-y; /* pozwala tylko na scroll pionowy */
}

#address-bar1, #address-bar2{
	position: absolute;
    top: 10px;
    left: 10px;
    z-index: 10;
    background: #fff;
    padding: 8px 12px;
    border-radius: 4px;
    font-weight: 600;
	color: #000;
    box-shadow: 0 2px 6px rgba(0,0,0,.3);
    /*font-family: Arial, sans-serif;*/
}

.map-hint {
  position: absolute !important;
  inset: 0 !important;
  display: flex !important;
  z-index: 999 !important;
  background: rgba(255,255,255,0.45) !important;
  padding: 10px 12px !important;
  font-weight: 600 !important;
  font-size: 18px !important;
  color: #000 !important;

  justify-content: center !important;
  align-items: center !important;
  pointer-events: none !important;

  opacity: 0 !important;
  transition: opacity 0.5s ease !important;
}

.map-hint.show {
  opacity: 1 !important;
}

/* ====== CONTAINER FOOTER Cookies + FB ====== */

.footer-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* ====== 3 KOLUMNY (DESKTOP) ====== */
.social-3col {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin-top: 15px;
}

.social-3col .left,
.social-3col .center,
.social-3col .right {
  flex: 1;
  display: flex;
  align-items: center;
}

.social-3col .left {
  justify-content: flex-start;
}

.social-3col .center {
  justify-content: center;
  flex: 0 0 auto;  /* nie rozciąga się i nie kurczy */
}

.social-3col .right {
  justify-content: flex-end;
}

/* Aktualizacja danych na stronie */

.oferta {
  list-style: disc;
  list-style-position: inside;
  text-align: center;
  padding: 0;
  color: #fff;
  font-size: 16px;
}


/*============== GalleryStyle.css ==============*/


.gallery {
  width: 100%;
  max-width: 800px;
  padding: 10px;
  justify-content: center;
}

/* MINIATURKI */
.thumbnails {
  display: flex;
  gap: 10px;
  padding: 10px;
  overflow-x: auto;
  background: #eee;
  border-radius: 10px;
}

.thumbnails img {
  height: 70px;
  cursor: pointer;
  opacity: .6;
  border-radius: 6px;
  transition: .2s;
  flex: 0 0 auto;
}

.thumbnails img.active { opacity: 1; outline: 2px solid #4da3ff; }
.thumbnails img:hover { opacity: 1; }

/* VIEWER */
.viewer {
  margin-top: 15px;
  background: #eee;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  margin-left: auto;
  margin-right: auto;
  transition: width .35s ease, height .35s ease;
  width: 100%;
  max-width: 800px;

  /* nowość: stała wysokość (zapobiega skokom) */
  min-height: 350px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.viewer img {
  display: block;
  width: 100%;
  height: 100%;
  transition: opacity .35s ease;
  opacity: 1;
  object-fit: contain;
}

.viewer img.fade {
  opacity: 0;
}

/* LOADER */
.viewer.loading::after {
  content: "";
  position: absolute;
  inset: 0;
  /*background: rgba(0,0,0,0.25);*/
  backdrop-filter: blur(2px);
}

.viewer.loading::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 40px;
  height: 40px;
  margin: -20px;
  border: 4px solid #fff;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* STRZAŁKI */
.arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,.25);
  color: #fff;
  font-size: 20px;
  cursor: pointer;
}
.arrow.left { left: 10px; }
.arrow.right { right: 10px; }

.gallery-wrapper {
  display: flex;
  justify-content: center;
}

.viewer-wrapper {
  min-height: 450px;
  max-height: 450px;
  display: flex;
}

/* MOBILE */
html.mobile .thumbnails img {
  height: 55px;
}
html.mobile .arrow {
  display: none;
}

html.mobile .viewer {
  width: 100%;
  max-width: 100%;
  padding: 0px;
  box-sizing: border-box;
  min-height: 0;
  /*touch-action: pan-y;*/
}

html.mobile .viewer img {
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: contain;
}

html.mobile .viewer-wrapper {
  min-height: 70vh;
  max-height: 70vh;
  display: flex;
}
