    /* --- Globálna istota: nič nepretŕča do šírky --- */
    html { box-sizing: border-box; }
    *,*::before,*::after { box-sizing: inherit; }

    :root{
      --blur-amount: 0px;         /* mení sa scrollom 0→10px */
      --veil: rgba(0,0,0,.35);
      --content-max: 960px;       /* horný limit šírky karty na desktope */
      --pad: clamp(12px, 4vw, 28px);
    }

    html, body{
      margin: 0;
      overflow-x: hidden;         /* zabráni horizontálnemu skrolu */
      color: #eee;
      background: #000;
      font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
      -webkit-text-size-adjust: 100%;
      text-size-adjust: 100%;
    }

.spacer { height: 85svh !important; }

    /* --- Pozadie (pano.html) --- */
    .bg, .backdrop { position: fixed; inset: 0; }
    .bg{
      z-index: 0; border: 0; width: 100vw; height: 100vh;
      pointer-events: none;       /* nech neblokuje skrol */
    }
    .backdrop{
      z-index: 1;
      background: var(--veil);
      backdrop-filter: blur(var(--blur-amount));
      -webkit-backdrop-filter: blur(var(--blur-amount));
      pointer-events: none;
      transition: backdrop-filter .05s linear;
    }

    /* --- Page padding vrátane safe-area pre mobily s notch --- */
    .page{
      position: relative; z-index: 2;
      padding:
        calc(max(var(--pad), env(safe-area-inset-top, 0px)))
        calc(max(var(--pad), env(safe-area-inset-right, 0px)))
        calc(max(var(--pad), env(safe-area-inset-bottom, 0px)))
        calc(max(var(--pad), env(safe-area-inset-left, 0px)));
      display: grid;
      place-items: center;
    }

    /* --- Karta je "kontajner" pre container queries --- */
    .card{
      width: 100%;
      max-width: var(--content-max);
      background: rgba(20,20,24,.78);
      border: 1px solid rgba(255,255,255,.08);
      border-radius: clamp(14px, 2.8vw, 22px);
      box-shadow: 0 10px 40px rgba(0,0,0,.35);
      padding: clamp(14px, 4.2vw, 30px);
      backdrop-filter: blur(2px);
      -webkit-backdrop-filter: blur(2px);
      overflow-wrap: anywhere;
      word-break: break-word;
      container-type: inline-size;    /* <— umožní @container breakpoints podľa šírky karty */
      container-name: card;
    }

    /* --- Základná typografia (bezpečná pre malé mobily) --- */
    .card h1{
      margin: 0 0 14px 0;
      text-align: center;
      font-size: clamp(20px, 6vw, 32px);
      line-height: 1.15;
    }
    .card p{
      margin: 0 0 12px 0;
      color: #d8dce0;
      line-height: 1.55;
      font-size: clamp(14px, 3.8vw, 17px);
    }
    .price{
      font-size: clamp(16px, 4.5vw, 20px);
      font-weight: 700;
      color: #ffd966;
      margin: 14px 0;
    }

    /* --- Galéria: vždy v rámci šírky karty --- */
    .gallery{
      margin-top: 16px;
      display: flex;
      gap: 10px;
      overflow-x: auto;
      padding-bottom: 6px;
      scrollbar-width: none;
      -webkit-overflow-scrolling: touch;
      scroll-snap-type: x mandatory;
  overscroll-behavior: contain;          /* neprepúšťaj scroll na stránku */
  scroll-behavior: smooth;               /* príjemný dobeh */
  cursor: grab;
    }
    .gallery::-webkit-scrollbar{ display:none; }
    .gallery img{
      height: clamp(90px, 28vw, 140px); /* fallback podľa šírky zariadenia */
      border-radius: 12px;
      flex: 0 0 auto;
      cursor: pointer;
      transition: transform .2s;
      scroll-snap-align: start;
      max-width: 100%;
    }
    .gallery img:hover{ transform: scale(1.03); }

.gallery:active { cursor: grabbing; }
.gallery:focus { outline: none; }        /* voliteľné */

/* stabilná výška – neprepočíta sa pri skrývaní toolbars */
.spacer { height: 100svh; }

/* ak máš niekde 100vh/100dvh na pozadí, zmeň na 100svh */
.bg     { width: 100vw; height: 100svh; }
.backdrop { height: 100svh; }



.contacts {
  margin-top: 24px;
  font-size: clamp(14px, 3.8vw, 17px);
  line-height: 1.5;
}
.contacts h2 {
  margin: 0 0 12px;
  font-size: clamp(18px, 4vw, 22px);
  color: #ffd966;
}
.contacts a {
  color: #9dc9ff;
  text-decoration: none;
}
.contacts a:hover { text-decoration: underline; }

.map-btn {
  margin-top: 12px;
  padding: 10px 16px;
  border: 1px solid rgba(255,255,255,.2);
  background: rgba(255,255,255,.08);
  color: #fff;
  border-radius: 10px;
  cursor: pointer;
  font-size: clamp(14px, 3.8vw, 16px);
  transition: background .2s, transform .1s;
}
.map-btn:hover { background: rgba(255,255,255,.15); }
.map-btn:active { transform: scale(.97); }


    /* --- Ak prehliadač podporuje container query jednotky (cqi), ešte presnejšie prispôsobenie --- */
    @container card (min-width: 280px){
      .gallery img{ height: clamp(80px, 24cqi, 130px); }
    }

    /* --- Väčšie šírky karty: voľnejšie písmo a rytmus --- */
    @container card (min-width: 540px){
      .card h1{ font-size: clamp(24px, 4.2cqi, 40px); margin-bottom: 16px; }
      .card p{ font-size: clamp(15px, 3.0cqi, 18px); margin-bottom: 14px; }
      .price{ font-size: clamp(18px, 3.4cqi, 22px); margin: 16px 0; }
    }

    /* --- Lightbox --- */
    .lightbox{
      position: fixed; inset: 0;
      background: rgba(0,0,0,.9);
      display: none;
      align-items: center; justify-content: center;
      z-index: 100;
    }
    .lightbox img{
      max-width: 92vw; max-height: 90vh;
      border-radius: 12px;
    }


.airbnb-link {
  display: inline-block;
  margin-top: 1em;
  padding: 0.7em 1.2em;
  background-color: #FF5A5F; /* Airbnb red */
  color: #ffffff;
  font-weight: bold;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.2s ease;
}
.airbnb-link:hover {
  background-color: #e14c50;
}
