/* GPSPOL Actions Modal R1 */

/* ukryj stare przyciski z poprzednich testów */
#gpspol-logout-button,
#gpspol-streetview-button,
#gpspol-client-info-card {
  display: none !important;
}

#gpspol-action-dock {
  position: fixed;
  right: 78px;
  bottom: 74px;
  z-index: 99998;
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 8px;
  border-radius: 999px;
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(15,23,42,.10);
  box-shadow: 0 18px 46px rgba(15,23,42,.16);
  backdrop-filter: blur(16px);
}

.gpspol-action-btn {
  border: 0;
  cursor: pointer;
  border-radius: 999px;
  padding: 11px 15px;
  font-size: 13px;
  font-weight: 900;
  color: #0f172a;
  background: #ffffff;
  box-shadow: 0 8px 22px rgba(15,23,42,.10);
}

.gpspol-action-btn:hover {
  transform: translateY(-1px);
  background: #f8fafc;
}

.gpspol-action-btn.green {
  color: #ffffff;
  background: linear-gradient(135deg, #16a34a, #22c55e);
}

.gpspol-action-btn.dark {
  color: #ffffff;
  background: linear-gradient(135deg, #0f172a, #1e293b);
}

body.gpspol-login #gpspol-action-dock {
  display: none !important;
}

/* modal widoku ulicy */
#gpspol-streetview-modal {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: none;
  background: rgba(15,23,42,.58);
  backdrop-filter: blur(5px);
}

#gpspol-streetview-modal.open {
  display: block;
}

#gpspol-streetview-box {
  position: absolute;
  inset: 42px;
  border-radius: 26px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 34px 110px rgba(15,23,42,.32);
  border: 1px solid rgba(255,255,255,.40);
}

#gpspol-streetview-header {
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 16px 0 20px;
  background: linear-gradient(135deg, #061525, #12385b);
  color: white;
}

#gpspol-streetview-title {
  font-size: 15px;
  font-weight: 900;
}

#gpspol-streetview-actions {
  display: flex;
  gap: 8px;
}

#gpspol-streetview-actions button,
#gpspol-streetview-actions a {
  border: 0;
  cursor: pointer;
  text-decoration: none;
  border-radius: 999px;
  padding: 9px 13px;
  font-size: 12px;
  font-weight: 900;
  color: #0f172a;
  background: white;
}

#gpspol-streetview-frame {
  width: 100%;
  height: calc(100% - 58px);
  border: 0;
  display: block;
}

@media (max-width: 900px) {
  #gpspol-action-dock {
    right: 12px;
    left: 12px;
    bottom: 16px;
    justify-content: center;
  }

  #gpspol-streetview-box {
    inset: 12px;
    border-radius: 20px;
  }

  #gpspol-streetview-header {
    height: auto;
    min-height: 58px;
    flex-wrap: wrap;
    padding: 12px;
  }

  #gpspol-streetview-frame {
    height: calc(100% - 86px);
  }
}

/* GPSPOL Actions Position R2 - przeniesienie Widok ulicy / Wyloguj w lewy dół mapy */
#gpspol-action-dock {
  right: auto !important;
  left: 385px !important;
  bottom: 24px !important;
  top: auto !important;
  z-index: 99998 !important;
}

/* gdy lewy panel jest węższy albo ekran mniejszy */
@media (max-width: 1100px) {
  #gpspol-action-dock {
    left: 370px !important;
    bottom: 20px !important;
  }
}

/* telefon / mały ekran */
@media (max-width: 900px) {
  #gpspol-action-dock {
    left: 12px !important;
    right: 12px !important;
    bottom: 16px !important;
    justify-content: center !important;
  }
}
