:root{
  --green:#2f8d4e;
  --black:#08110c;
  --white:#fff;
  --glass-light:rgba(255,255,255,.9);
  --shadow:0 20px 60px rgba(0,0,0,.28);
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family:Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color:var(--white);
  background:#0b120e;
  overflow-x:hidden;
}
a{color:inherit;text-decoration:none}
.page{min-height:100svh}

.topbar{
  position:fixed;
  z-index:50;
  top:18px;
  left:22px;
  right:22px;
  display:grid;
  grid-template-columns:1fr;
  align-items:center;
  gap:18px;
  pointer-events:none;
}
.nav{
  justify-self:center;
pointer-events:auto}
.brand{
  display:flex;
  align-items:center;
  gap:12px;
  font-weight:900;
  letter-spacing:.02em;
  font-size:clamp(20px,2vw,34px);
  text-shadow:0 3px 18px rgba(0,0,0,.35);
}
.brand-mark{
  width:44px;height:44px;border-radius:12px;
  display:grid;place-items:center;
  background:var(--glass-light);
  color:var(--green);
  box-shadow:0 8px 24px rgba(0,0,0,.22);
}
.nav{
  display:flex;
  gap:4px;
  padding:6px;
  border-radius:999px;
  background:rgba(0,0,0,.70);
  box-shadow:0 12px 34px rgba(0,0,0,.25);
  backdrop-filter:blur(12px);
}
.nav a,.dropdown-toggle{
  display:block;
  padding:12px 24px;
  border-radius:999px;
  font-weight:800;
  font-size:18px;
  line-height:1;
}
.nav a.active{background:var(--green)}
.dropdown{position:relative}
.dropdown-toggle{
  border:0;
  color:#fff;
  background:transparent;
  font-family:inherit;
  cursor:pointer;
}
.dropdown-menu{
  position:absolute;
  top:calc(100% + 10px);
  left:50%;
  min-width:260px;
  transform:translateX(-50%) translateY(8px);
  opacity:0;
  visibility:hidden;
  overflow:hidden;
  border-radius:18px;
  background:rgba(255,255,255,.96);
  color:#111;
  box-shadow:0 20px 50px rgba(0,0,0,.25);
  backdrop-filter:blur(12px);
  transition:opacity .18s ease, transform .18s ease, visibility .18s ease;
}
.dropdown:hover .dropdown-menu,
.dropdown:focus-within .dropdown-menu{
  opacity:1;
  visibility:visible;
  transform:translateX(-50%) translateY(0);
}
.dropdown-menu a{
  padding:14px 18px;
  border-radius:0;
  color:#111;
  font-size:15px;
  font-weight:800;
  line-height:1.25;
}
.dropdown-menu a:hover{background:#f2f2f2}

.city-map{
  position:relative;
  width:100vw;
  height:100svh;
  overflow:hidden;
  isolation:isolate;
  background:#111;
}
.city-map::after{
  content:"";
  position:absolute;
  inset:0;
  z-index:1;
  pointer-events:none;
  background:linear-gradient(to bottom, rgba(0,0,0,.18), rgba(0,0,0,.02) 35%, rgba(0,0,0,.18));
}
.city-map-img{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center center;
  user-select:none;
  pointer-events:none;
}
.city-title{
  position:absolute;
  z-index:4;
  top:112px;
  left:50%;
  transform:translateX(-50%);
  width:min(92vw,760px);
  text-align:center;
  text-shadow:0 3px 18px rgba(0,0,0,.45);
  pointer-events:none;
}
.city-title h1{
  margin:0;
  font-size:clamp(48px,7vw,104px);
  line-height:.92;
  letter-spacing:-.055em;
}
.city-title p{
  margin:16px 0 0;
  font-size:clamp(16px,1.7vw,24px);
  font-weight:750;
}
.city-points{
  position:absolute;
  inset:0;
  z-index:5;
}
.city-hotspot{
  position:absolute;
  left:var(--x);
  top:var(--y);
  width:28px;
  height:28px;
  border-radius:999px;
  background:#fff;
  box-shadow:0 10px 28px rgba(0,0,0,.26), 0 0 0 6px rgba(255,255,255,.28);
  transform:translate(-50%,-50%) scale(1);
  transition:transform .2s ease, background .18s ease;
}
.city-hotspot::after{
  content:"";
  position:absolute;
  inset:-10px;
  border-radius:999px;
  border:2px solid rgba(255,255,255,.55);
  animation:pulse 1.8s ease-out infinite;
}
.city-hotspot:hover{
  background:#111;
  transform:translate(-50%,-50%) scale(1.12);
}
.city-tooltip{
  position:absolute;
  left:50%;
  bottom:calc(100% + 14px);
  transform:translateX(-50%) translateY(4px);
  padding:8px 13px;
  border-radius:999px;
  background:rgba(255,255,255,.96);
  color:#111;
  font-size:15px;
  font-weight:900;
  white-space:nowrap;
  opacity:0;
  pointer-events:none;
  box-shadow:0 10px 28px rgba(0,0,0,.22);
  transition:opacity .18s ease, transform .18s ease;
}
.city-hotspot:hover .city-tooltip{
  opacity:1;
  transform:translateX(-50%) translateY(0);
}

.compare{
  position:relative;
  width:100vw;
  height:100svh;
  overflow:hidden;
  isolation:isolate;
  background:#111;
}
.compare-img{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center center;
  user-select:none;
  pointer-events:none;
}
.compare-before{
  position:absolute;
  inset:0;
  width:50%;
  overflow:hidden;
  z-index:2;
}
.compare-before .compare-img{
  width:100vw;
  max-width:none;
}
.compare-range{
  position:absolute;
  inset:0;
  z-index:25;
  width:100%;
  height:100%;
  opacity:0;
  cursor:ew-resize;
}
.compare-line{
  position:absolute;
  z-index:22;
  top:0;
  bottom:0;
  left:50%;
  width:3px;
  transform:translateX(-50%);
  background:rgba(255,255,255,.95);
  box-shadow:0 0 16px rgba(0,0,0,.18);
  pointer-events:none;
}
.handle{
  position:absolute;
  top:50%;left:50%;
  transform:translate(-50%,-50%);
  width:58px;height:58px;
  display:grid;place-items:center;
  border-radius:999px;
  background:#fff;
  color:#101810;
  font-size:28px;
  font-weight:900;
  box-shadow:0 16px 42px rgba(0,0,0,.28);
}
.title-card{
  position:absolute;
  z-index:18;
  top:96px;
  left:50%;
  width:min(92vw,1100px);
  transform:translateX(-50%);
  text-align:center;
  pointer-events:none;
  text-shadow:0 3px 18px rgba(0,0,0,.45);
}
.title-card h1{
  margin:0;
  font-size:clamp(44px,7vw,112px);
  line-height:.9;
  letter-spacing:-.055em;
}
.labels{
  position:absolute;
  z-index:18;
  left:22px;
  right:22px;
  bottom:22px;
  display:flex;
  justify-content:space-between;
  pointer-events:none;
}
.labels span{
  padding:10px 16px;
  border-radius:999px;
  background:rgba(0,0,0,.72);
  backdrop-filter:blur(8px);
  font-weight:900;
  box-shadow:0 12px 34px rgba(0,0,0,.22);
}

.hotspots{
  position:absolute;
  inset:0;
  z-index:30;
  pointer-events:none;
}
.hotspot{
  position:absolute;
  width:22px;
  height:22px;
  min-width:22px;
  padding:0;
  border:0;
  border-radius:999px;
  background:#fff;
  color:transparent;
  font-size:0;
  line-height:1;
  transform:translate(-50%,-50%) scale(.92);
  box-shadow:0 10px 28px rgba(0,0,0,.26), 0 0 0 5px rgba(255,255,255,.28);
  cursor:pointer;
  opacity:0;
  pointer-events:none;
  transition:opacity .28s ease, transform .20s ease, background .18s ease;
}
.hotspot-dot{
  display:block;
  width:100%;
  height:100%;
  border-radius:999px;
  background:transparent;
}
.hotspot-tooltip{
  position:absolute;
  left:50%;
  bottom:calc(100% + 12px);
  transform:translateX(-50%) translateY(4px);
  padding:7px 12px;
  border-radius:999px;
  background:rgba(255,255,255,.96);
  color:#111;
  font-size:14px;
  font-weight:850;
  white-space:nowrap;
  opacity:0;
  pointer-events:none;
  box-shadow:0 10px 28px rgba(0,0,0,.22);
  transition:opacity .18s ease, transform .18s ease;
}
.hotspots.visible .hotspot.future-visible{
  opacity:1;
  pointer-events:auto;
  transform:translate(-50%,-50%) scale(1);
}
.hotspots.visible .hotspot.future-visible::after{
  content:"";
  position:absolute;
  inset:-8px;
  border-radius:999px;
  border:2px solid rgba(255,255,255,.55);
  animation:pulse 1.8s ease-out infinite;
}
.hotspot:hover,
.hotspot.active{
  transform:translate(-50%,-50%) scale(1.12) !important;
  background:#111;
}
.hotspot:hover .hotspot-tooltip,
.hotspot.active .hotspot-tooltip{
  opacity:1;
  transform:translateX(-50%) translateY(0);
}
@keyframes pulse{
  from{opacity:.55;transform:scale(.82)}
  to{opacity:0;transform:scale(1.35)}
}
.info-card{
  position:absolute;
  z-index:40;
  width:min(360px, calc(100vw - 32px));
  overflow:hidden;
  border-radius:24px;
  background:rgba(255,255,255,.95);
  color:#101810;
  box-shadow:var(--shadow);
  border:1px solid rgba(255,255,255,.65);
  backdrop-filter:blur(10px);
}
.info-card[hidden]{display:none}
.info-card img{
  width:100%;
  height:210px;
  object-fit:cover;
  display:block;
}
.card-body{padding:16px 18px 20px}
.card-body h2{margin:0 0 8px;font-size:24px;line-height:1.1}
.card-body p{margin:0;color:#334036;line-height:1.45;font-weight:600}
.card-close{
  position:absolute;
  top:10px;right:10px;
  width:36px;height:36px;
  border:0;border-radius:999px;
  background:rgba(0,0,0,.72);
  color:white;
  font-size:24px;
  cursor:pointer;
}

@media (max-width:900px){
  .topbar{grid-template-columns:auto 1fr;top:12px;left:12px;right:12px}
  .brand span:last-child{font-size:22px}
  .brand-mark{width:38px;height:38px}
  .nav{justify-self:end}
  .nav a,.dropdown-toggle{padding:10px 14px;font-size:15px}
  .dropdown-menu{left:auto;right:0;transform:translateY(8px);min-width:230px}
  .dropdown:hover .dropdown-menu,.dropdown:focus-within .dropdown-menu{transform:translateY(0)}
  .city-title{top:94px}
  .city-title h1{font-size:clamp(44px,13vw,78px)}
  .city-title p{font-size:16px}
  .title-card{top:94px;width:min(92vw,720px)}
  .title-card h1{font-size:clamp(44px,14vw,84px)}
  .info-card img{height:180px}
}
@media (max-width:560px){
  .city-title{top:86px}
  .city-title h1{font-size:50px}
  .city-title p{display:none}
  .city-hotspot{width:24px;height:24px}
  .title-card{top:86px}
  .title-card h1{font-size:46px}
  .hotspot{width:20px;height:20px;min-width:20px}
  .handle{width:50px;height:50px;font-size:24px}
  .labels{display:none}
}

/* Mobilní zobrazení: fotografie/vizualizace vždy přes celou šířku bez ořezu stran */
@media (max-width: 700px){
  body{
    background:#0b120e;
  }

  .page{
    min-height:0;
  }

  .topbar{
    top:10px;
    left:10px;
    right:10px;
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:8px;
  }

  .brand{
    min-width:0;
    gap:8px;
    font-size:18px;
    white-space:nowrap;
  }

  .brand-mark{
    width:38px;
    height:38px;
    border-radius:10px;
    flex:0 0 auto;
  }

  .brand span:last-child{
    font-size:18px;
    line-height:1;
    max-width:132px;
    overflow:hidden;
    text-overflow:ellipsis;
  }

  .nav{
    flex:0 0 auto;
    padding:5px;
    gap:2px;
  }

  .nav a,
  .dropdown-toggle{
    padding:10px 13px;
    font-size:15px;
  }

  .dropdown-menu{
    right:0;
    left:auto;
    min-width:220px;
    transform:translateY(8px);
  }

  .dropdown:hover .dropdown-menu,
  .dropdown:focus-within .dropdown-menu{
    transform:translateY(0);
  }

  .city-map,
  .compare{
    width:100vw;
    height:auto;
    min-height:0;
    aspect-ratio:16 / 9;
    overflow:hidden;
    background:#111;
  }

  .city-map-img,
  .compare-img{
    width:100%;
    height:100%;
    object-fit:cover;
    object-position:center center;
  }

  .compare-before .compare-img{
    width:100vw;
    height:100%;
    max-width:none;
  }

  .city-map::after{
    background:linear-gradient(to bottom, rgba(0,0,0,.14), rgba(0,0,0,0) 50%, rgba(0,0,0,.08));
  }

  .city-title{
    top:68px;
    width:92vw;
  }

  .city-title h1{
    font-size:34px;
    letter-spacing:-.035em;
    line-height:1;
  }

  .city-title p{
    display:none;
  }

  .title-card{
    top:62px;
    width:92vw;
    text-shadow:0 2px 12px rgba(0,0,0,.45);
  }

  .title-card h1{
    font-size:34px;
    line-height:1;
    letter-spacing:-.035em;
  }

  .handle{
    width:44px;
    height:44px;
    font-size:22px;
  }

  .compare-line{
    width:2px;
  }

  .labels{
    display:none;
  }

  .city-hotspot{
    width:22px;
    height:22px;
  }

  .hotspot{
    width:24px;
    height:24px;
    min-width:24px;
  }

  .hotspot-tooltip{
    font-size:13px;
    padding:6px 10px;
    bottom:calc(100% + 10px);
  }

  .info-card{
    position:fixed !important;
    left:12px !important;
    right:12px !important;
    bottom:12px !important;
    top:auto !important;
    width:auto;
    max-height:70svh;
    border-radius:20px;
  }

  .info-card img{
    height:180px;
  }
}

@media (max-width: 390px){
  .brand span:last-child{
    display:none;
  }

  .city-title,
  .title-card{
    top:58px;
  }

  .city-title h1,
  .title-card h1{
    font-size:30px;
  }

  .nav a,
  .dropdown-toggle{
    padding:9px 12px;
    font-size:14px;
  }
}

/* =========================================================
   Mobilní verze v25: každá mapa/fotka je karta přes šířku
   - desktop zůstává fullscreen
   - mobil nepoužívá 100vh u fotografií
   - poměr fotek je 16:9, nic se neořezává po stranách
   ========================================================= */
@media (max-width: 820px){
  html, body{
    width:100%;
    overflow-x:hidden;
    background:#0b120e;
  }

  body{
    padding:0;
  }

  .page{
    min-height:0 !important;
  }

  .topbar{
    position:sticky !important;
    top:0 !important;
    left:0 !important;
    right:0 !important;
    z-index:100;
    display:flex !important;
    justify-content:space-between;
    align-items:center;
    gap:10px;
    padding:10px 12px;
    background:rgba(8,17,12,.94);
    backdrop-filter:blur(14px);
    pointer-events:auto;
  }

  .brand{
    gap:9px;
    min-width:0;
    flex:1 1 auto;
    font-size:18px !important;
    line-height:1;
    text-shadow:none;
  }

  .brand-mark{
    width:38px !important;
    height:38px !important;
    border-radius:10px;
    flex:0 0 auto;
  }

  .brand span:last-child{
    font-size:20px !important;
    line-height:1.05;
    white-space:normal;
    max-width:118px;
  }

  .nav{
    flex:0 0 auto;
    gap:2px;
    padding:5px;
    border-radius:999px;
    background:rgba(0,0,0,.72);
  }

  .nav a,
  .dropdown-toggle{
    padding:11px 14px !important;
    font-size:15px !important;
    line-height:1;
  }

  .dropdown-menu{
    left:auto !important;
    right:0 !important;
    min-width:230px;
    transform:translateY(8px) !important;
  }

  .dropdown:hover .dropdown-menu,
  .dropdown:focus-within .dropdown-menu{
    transform:translateY(0) !important;
  }

  .city-map,
  .compare{
    position:relative !important;
    width:100vw !important;
    height:auto !important;
    min-height:0 !important;
    aspect-ratio:16 / 9 !important;
    overflow:hidden !important;
    margin:0 0 14px 0;
    background:#111;
  }

  .city-map-img,
  .compare-img{
    position:absolute !important;
    inset:0 !important;
    width:100% !important;
    height:100% !important;
    object-fit:cover !important;
    object-position:center center !important;
  }

  .compare-before{
    position:absolute !important;
    inset:0 !important;
    height:100% !important;
    width:50%;
    overflow:hidden !important;
  }

  .compare-before .compare-img{
    width:100vw !important;
    height:100% !important;
    max-width:none !important;
  }

  .compare-range{
    position:absolute !important;
    inset:0 !important;
    width:100% !important;
    height:100% !important;
  }

  .compare-line{
    top:0 !important;
    bottom:0 !important;
    height:auto !important;
    width:2px;
  }

  .handle{
    width:42px !important;
    height:42px !important;
    font-size:20px !important;
  }

  .city-title{
    top:18px !important;
    width:90vw;
    text-shadow:0 2px 12px rgba(0,0,0,.45);
  }

  .city-title h1{
    font-size:30px !important;
    line-height:1 !important;
    letter-spacing:-.035em;
  }

  .city-title p{
    display:none !important;
  }

  .title-card{
    top:14px !important;
    width:90vw !important;
    text-shadow:0 2px 12px rgba(0,0,0,.45);
  }

  .title-card h1{
    font-size:clamp(28px, 10vw, 42px) !important;
    line-height:1 !important;
    letter-spacing:-.035em;
  }

  .labels{
    display:none !important;
  }

  .city-hotspot{
    width:18px !important;
    height:18px !important;
    box-shadow:0 8px 22px rgba(0,0,0,.26), 0 0 0 5px rgba(255,255,255,.28);
  }

  .city-hotspot::after{
    inset:-8px !important;
  }

  .city-tooltip,
  .hotspot-tooltip{
    font-size:12px !important;
    padding:6px 9px !important;
  }

  .hotspot{
    width:24px !important;
    height:24px !important;
    min-width:24px !important;
    box-shadow:0 8px 22px rgba(0,0,0,.26), 0 0 0 5px rgba(255,255,255,.28);
  }

  .hotspots.visible .hotspot.future-visible::after{
    inset:-8px !important;
  }

  .info-card{
    position:fixed !important;
    z-index:200 !important;
    left:12px !important;
    right:12px !important;
    bottom:12px !important;
    top:auto !important;
    width:auto !important;
    max-height:72svh;
    border-radius:20px;
  }

  .info-card img{
    height:180px !important;
  }
}

@media (max-width: 390px){
  .brand span:last-child{
    max-width:92px;
    font-size:18px !important;
  }

  .nav a,
  .dropdown-toggle{
    padding:10px 12px !important;
    font-size:14px !important;
  }

  .title-card h1,
  .city-title h1{
    font-size:28px !important;
  }
}


/* =========================================================
   v27: oprava mobilního menu
   - menu je vždy uprostřed
   - rozbalovací nabídka se na mobilu otevře přes šířku displeje
   - neujíždí mimo obrazovku
   ========================================================= */
.dropdown.open .dropdown-menu{
  opacity:1;
  visibility:visible;
  transform:translateX(-50%) translateY(0);
}

@media (max-width: 820px){
  .topbar{
    position:sticky !important;
    top:0 !important;
    left:0 !important;
    right:0 !important;
    z-index:300 !important;
    display:flex !important;
    justify-content:center !important;
    align-items:center !important;
    padding:10px 12px !important;
    background:rgba(8,17,12,.96) !important;
    backdrop-filter:blur(14px);
    pointer-events:auto !important;
  }

  .nav{
    margin:0 auto !important;
    justify-self:center !important;
    flex:0 0 auto !important;
    display:flex !important;
    align-items:center !important;
    gap:4px !important;
    padding:6px !important;
    border-radius:999px !important;
    background:rgba(0,0,0,.76) !important;
  }

  .nav a,
  .dropdown-toggle{
    padding:12px 22px !important;
    font-size:18px !important;
    line-height:1 !important;
  }

  .dropdown{
    position:static !important;
  }

  .dropdown-menu{
    position:fixed !important;
    top:72px !important;
    left:12px !important;
    right:12px !important;
    width:auto !important;
    min-width:0 !important;
    max-width:none !important;
    max-height:calc(100svh - 92px) !important;
    overflow:auto !important;
    transform:translateY(-8px) !important;
    border-radius:22px !important;
    background:rgba(255,255,255,.98) !important;
    color:#111 !important;
    box-shadow:0 18px 55px rgba(0,0,0,.28) !important;
    z-index:400 !important;
  }

  .dropdown:hover .dropdown-menu,
  .dropdown:focus-within .dropdown-menu,
  .dropdown.open .dropdown-menu{
    opacity:1 !important;
    visibility:visible !important;
    transform:translateY(0) !important;
  }

  .dropdown-menu a{
    display:block !important;
    width:100% !important;
    padding:18px 22px !important;
    border-radius:0 !important;
    color:#111 !important;
    font-size:18px !important;
    font-weight:850 !important;
    text-align:left !important;
  }

  .dropdown-menu a:active,
  .dropdown-menu a:hover{
    background:#f2f2f2 !important;
  }
}

@media (max-width: 390px){
  .nav a,
  .dropdown-toggle{
    padding:11px 20px !important;
    font-size:17px !important;
  }
}


/* Šipka pro místo mimo záběr hlavní mapy – trojúhelník bez kolečka */
.city-hotspot.arrow-right{
  width:54px;
  height:54px;
  min-width:54px;
  border:0 !important;
  border-radius:0 !important;
  background:transparent !important;
  box-shadow:none !important;
  color:transparent !important;
  display:flex;
  align-items:center;
  justify-content:center;
  text-decoration:none;
  animation:none;
}

.city-hotspot.arrow-right::before{
  content:"";
  display:block;
  width:0;
  height:0;
  border-top:18px solid transparent;
  border-bottom:18px solid transparent;
  border-left:30px solid #fff;
  filter:drop-shadow(0 8px 16px rgba(0,0,0,.35));
  animation:pulseTriangle 2s ease-out infinite;
  transition:border-left-color .18s ease, transform .18s ease;
}

.city-hotspot.arrow-right::after{
  display:none !important;
}

.city-hotspot.arrow-right:hover,
.city-hotspot.arrow-right:focus-visible{
  background:transparent !important;
  transform:translate(-50%,-50%) scale(1.08) !important;
}

.city-hotspot.arrow-right:hover::before,
.city-hotspot.arrow-right:focus-visible::before{
  border-left-color:#111;
  transform:scale(1.08);
}

.city-arrow-symbol{
  display:none !important;
}

.city-hotspot.arrow-right .city-tooltip{
  left:auto;
  right:calc(100% + 12px);
  bottom:50%;
  transform:translateY(50%) translateX(4px);
}

.city-hotspot.arrow-right:hover .city-tooltip,
.city-hotspot.arrow-right:focus-visible .city-tooltip{
  opacity:1;
  transform:translateY(50%) translateX(0);
}

@keyframes pulseTriangle{
  0%{filter:drop-shadow(0 8px 16px rgba(0,0,0,.35)) drop-shadow(0 0 0 rgba(255,255,255,.65))}
  50%{filter:drop-shadow(0 8px 16px rgba(0,0,0,.35)) drop-shadow(0 0 10px rgba(255,255,255,.9))}
  100%{filter:drop-shadow(0 8px 16px rgba(0,0,0,.35)) drop-shadow(0 0 0 rgba(255,255,255,.65))}
}

@media (max-width:700px){
  .city-hotspot.arrow-right{
    width:44px;
    height:44px;
    min-width:44px;
  }
  .city-hotspot.arrow-right::before{
    border-top-width:15px;
    border-bottom-width:15px;
    border-left-width:25px;
  }
}
