:root { --header-h: 80px; --footer-h: 40px; }
* { box-sizing: border-box; }
body { margin:0; font-family: Arial, sans-serif; display:flex; flex-direction:column; height:100vh; background:#fafafa; }
header {
  position:fixed; top:0; left:0; right:0; height:var(--header-h);
  background:#fff; border-bottom:1px solid #ddd; z-index:1000;
  display:flex; align-items:center; justify-content:center;
}
header .right {
  position:absolute; right:12px; top:0; bottom:0; display:flex; align-items:center; gap:12px;
}
header .icon-btn {
  display:flex; align-items:center; gap:6px; padding:6px 10px; border:1px solid #ddd; border-radius:8px; background:#fff; cursor:pointer; font-size:14px;
}
header img.logo { max-height:56px; }
footer {
  position:fixed; bottom:0; left:0; right:0; height:var(--footer-h);
  background:#fff; border-top:1px solid #ddd; z-index:1000;
  display:flex; align-items:center; justify-content:center; font-size:14px;
}
main {
  flex:1; display:flex; gap:0;
  margin-top:var(--header-h); margin-bottom:var(--footer-h);
  height:calc(100vh - var(--header-h) - var(--footer-h));
  overflow:hidden;
}
aside#catalog {
  width:32%; min-width:300px; max-width:520px; background:#fff; border-right:1px solid #ddd;
  display:flex; flex-direction:column; overflow:hidden;
}
#filters {
  padding:10px; border-bottom:1px solid #eee; position:sticky; top:0; background:#fff; z-index:2;
  display:grid; grid-template-columns: 1fr; gap:6px;
}
#filters input, #filters select {
  width:100%; padding:8px; border:1px solid #ccc; border-radius:8px; font-size:14px; background:#fff;
}
#catalogItems { overflow-y:auto; padding:10px; flex:1; }
.item {
  border:1px solid #eee; background:#fff; margin-bottom:10px; padding:8px; border-radius:10px;
  cursor:pointer; display:grid; grid-template-columns: 64px 1fr; gap:10px; align-items:center;
  transition: box-shadow .2s ease;
}
.item:hover { box-shadow:0 2px 12px rgba(0,0,0,.08); }
.thumb { width:64px; height:64px; border-radius:8px; object-fit:cover; }
.meta h4 { margin:0; font-size:15px; }
.meta p { margin:3px 0 0; font-size:12px; color:#666; }
#map { flex:1; }

/* Popup položky */
.gw-popup {
  max-width:min(520px, 95vw); max-height:90vh; overflow:auto;
  border:1px solid #ccc; border-radius:12px; padding:12px; background:#fff;
  box-shadow:0 8px 28px rgba(0,0,0,.18); position:relative;
  font-size:14px;
}
.gw-close { position:absolute; top:6px; right:8px; background:none; border:none; font-size:20px; cursor:pointer; }
.gw-head { display:flex; justify-content:space-between; align-items:center; gap:10px; margin-bottom:10px; }
.gw-user { display:flex; align-items:center; gap:10px; }
.gw-user img { width:40px; height:40px; border-radius:50%; cursor:pointer; }
.gw-item-gallery { display:grid; grid-template-columns: 1fr; gap:8px; margin:8px 0; }
.gw-item-gallery img { width:100%; max-height:240px; object-fit:cover; border-radius:8px; }
.gw-actions { display:flex; flex-wrap:wrap; gap:8px; margin-top:10px; }
.btn { border:none; border-radius:8px; padding:8px 10px; color:#fff; cursor:pointer; display:flex; align-items:center; gap:6px; }
.btn.pick { background:#4CAF50; }
.btn.still { background:#2196F3; }
.btn.no { background:#f44336; }
.btn.nav { background:#FF9800; }
.gw-chip { display:inline-flex; align-items:center; gap:6px; padding:4px 8px; border-radius:999px; border:1px solid #eee; background:#fafafa; font-size:12px; }

/* Popup používateľa */
.gw-user-popup {
  max-width:min(420px, 95vw); max-height:90vh; overflow:auto;
  border:1px solid #ccc; border-radius:12px; padding:16px; background:#fff; text-align:center;
  box-shadow:0 8px 28px rgba(0,0,0,.18); position:relative;
  font-size:14px;
}
.gw-user-popup img { width:120px; height:120px; border-radius:50%; object-fit:cover; display:block; margin:0 auto 10px; }
.stars { color:#FFB400; font-size:18px; letter-spacing:2px; }
.highlight { font-weight:700; }

.user-menu {
  position: absolute;
  right: 20px;
  top: 10px;
}

#userIcon {
  color: #ffffff !important;
}

#userIcon {
  background-color: #2ecc71; /* zelená farba loga */
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 20px;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

#userIcon:hover {
  background-color: #27ae60; /* tmavšia pri hover */
}

.dropdown-content {
  display: none;
  position: absolute;
  right: 0;
  margin-top: 8px;
  background-color: white;
  min-width: 120px;
  box-shadow: 0px 2px 8px rgba(0,0,0,0.15);
  z-index: 9999;
  border-radius: 4px;
  overflow: hidden;
}

.dropdown-content a {
  color: black;
  padding: 10px 14px;
  text-decoration: none;
  display: block;
}

.dropdown-content a:hover {
  background-color: #f0f0f0;
}

.show {
  display: block;
}

#videoOverlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  transition: opacity 1s ease, visibility 1s ease;
}

#videoOverlay video {
  max-width: 30%;
  max-height: 30%;
  border-radius: 10px;
}

#videoOverlay.hidden {
  opacity: 0;
  visibility: hidden;
}

.gm-style .gm-ui-hover-effect { 
  display: none !important; 
}

.gw-close{
  position:absolute;
  top:6px; 
  right:6px;
  border:none;
  background:transparent;
  font-size:18px;
  cursor:pointer;
}

.gm-style .gm-style-iw,
.gm-style .gm-style-iw-c {
  border: none !important;
  box-shadow: none !important;
}

.gm-style .gm-style-iw,
.gm-style .gm-style-iw-c {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
}

.gm-style-iw-bl,
.gm-style-iw-tc,
.gm-style-iw-ch,
.gm-style-iw-b {
  display: none !important;
}

.gm-style-iw-tc,
.gm-style-iw-ch {
  display: none !important;
}

.gm-style-iw-bottom-gradient {
  display: none !important;
}

/* scrollovateľná časť InfoWindow */
.gm-style .gm-style-iw-d {
  scrollbar-width: thin;               /* pre Firefox */
  scrollbar-color: #2ecc71 #f0f0f0;    /* zelený posuvník + svetlé pozadie */
}

/* Chrome, Edge, Safari */
.gm-style .gm-style-iw-d::-webkit-scrollbar {
  width: 8px;
}

.gm-style .gm-style-iw-d::-webkit-scrollbar-track {
  background: #f0f0f0;
}

.gm-style .gm-style-iw-d::-webkit-scrollbar-thumb {
  background-color: #2ecc71;
  border-radius: 4px;
}