    :root{
      --bg:#0b1220;
      --card:#111a2e;
      --card2:#0f1a33;
      --text:#e5e7eb;
      --muted:#94a3b8;
      --primary:#38bdf8;
      --primary2:#6366f1;
      --shadow:0 20px 50px rgba(0,0,0,.4);
      --radius:18px;
    }


    *{
      margin:0;
      padding:0;
      box-sizing:border-box;
      font-family:'Poppins',sans-serif;
      text-align: center;
    }


    /* početno stanje */
.reveal {
  opacity: 0;
  transform: translateY(60px);
  transition: all 0.6s ease;
}

/* kada se aktivira */
.reveal.active {
  opacity: 1;
  transform: translateY(0);
}
    


    body{
      background:var(--bg);
      color:var(--text);
      overflow-x:hidden;
      line-height:1.6;
    }


    header{
      position:fixed;
      top:0;
      left:0;
      width:100%;
      display:flex;
      justify-content:space-between;
      align-items:center;
      padding:18px 40px;
      background:rgba(10,15,30,0.6);
      backdrop-filter:blur(14px);
      border-bottom:1px solid rgba(255,255,255,0.05);
      z-index:1000;
      backdrop-filter: blur(16px);
      background: rgba(10,15,30,0.55);
    }


    nav a{
      margin:0 12px;
      text-decoration:none;
      color:var(--text);
      font-size:14px;
      transition:0.3s;
    }


    nav a:hover{color:var(--primary)}


    section{padding:110px 8%}


    h2{font-size:34px;margin-bottom:20px}


    /* HERO */

    .hero {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}

.hero h1 {
  font-size: 60px;
  background: linear-gradient(90deg, var(--primary), var(--primary2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-align: center;
}


    .btn{
      margin-top:20px;
      padding:12px 26px;
      border:none;
      border-radius:999px;
      cursor:pointer;
      background:linear-gradient(90deg,var(--primary),var(--primary2));
      color:white;
      font-weight:600;
      transition:0.3s;
      box-shadow:var(--shadow);
    }


    .btn:hover{transform:translateY(-3px)}






    /* GRID */

/* =========================
   GRID (opšti layout)
========================= */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
}

/* =========================
   APARTMENTS SECTION
========================= */
#apartments .grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

#apartments .card {
  background: linear-gradient(145deg, var(--card), var(--card2));
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.05);
  box-shadow: var(--shadow);
  transition: 0.3s;
  cursor: pointer;
}

#apartments .card:hover {
  transform: translateY(-8px) scale(1.02);
}

#apartments .card img {
  width: 100%;
  height: 220px;         /* 👈 mali preview */
  object-fit: cover;
  display: block;
}

/* tekst u apartments */
.card-content {
  padding: 16px;
  text-align: center;
}

/* =========================
   GALLERY SECTION
========================= */

#gallery .grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, 250px);
  gap: 12px;
  justify-content: center;
}

/* kvadrat */
#gallery .card {
  aspect-ratio: 1 / 1;
  width: 250px;
  height: 250px;
  gap: 40px;
  overflow: hidden;
  border-radius: 12px;
  cursor: pointer;
}

/* slika popunjava ceo kvadrat */
#gallery .card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.4s;
}

#gallery .card:hover img {
  transform: scale(1.2);
}

/* LIGHTBOX */
#lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: 0.3s;
  z-index: 999;
}

#lightbox.active {
  opacity: 1;
  visibility: visible;
}

#lightbox img {
  max-width: 65vw;
  max-height: 65vh;
  object-fit: contain;
  border-radius: 12px;
}


    /* BOOKING */
    .booking-box{
      max-width:650px;
      margin:auto;
      background:linear-gradient(145deg,var(--card),var(--card2));
      padding:40px;
      border-radius:20px;
      box-shadow:var(--shadow);
      border:1px solid rgba(255,255,255,0.06);
      text-align: center;
    }


    .booking-row{
      display:flex;
      gap:20px;
      margin-bottom:20px;
      flex-wrap:wrap;
    }


    .booking-row div{flex:1;display:flex;flex-direction:column}


    label{font-size:13px;color:var(--muted);margin-bottom:6px}


    input,select,textarea{
      padding:12px;
      border-radius:12px;
      border:1px solid rgba(255,255,255,0.08);
      background:#0b1220;
      color:var(--text);
    }


    input:focus,select:focus,textarea:focus{outline:none;border-color:var(--primary)}


    #bookingResult{
      margin-top:15px;
      text-align:center;
      color:var(--primary);
      font-weight:600;
    }


    /* SOCIAL ICONS ULTRA MODERN */
    .socials{
      display:flex;
      justify-content:center;
      gap:18px;
      margin-top:25px;
    }


    .socials a{
      width:50px;
      height:50px;
      display:flex;
      align-items:center;
      justify-content:center;
      border-radius:50%;
      background:rgba(255,255,255,0.05);
      color:var(--text);
      font-size:20px;
      transition:0.3s;
      position:relative;
      overflow:hidden;
    }


    .socials a:hover{
      transform:translateY(-5px) scale(1.1);
      background:linear-gradient(90deg,var(--primary),var(--primary2));
      color:white;
      box-shadow:0 10px 25px rgba(0,0,0,0.4);
    }


    /* CONTACT CLEAN */
    #discover{
      text-align:center;
      color:var(--muted);
      font-size:18px;
      line-height:1.8;
    }


    .tivat-info{
  display:none;
  margin-top:20px;
  padding:20px;
  border-radius:16px;
  background:linear-gradient(145deg,#111a2e,#0f1a33);
  border:1px solid rgba(255,255,255,0.05);
  animation:fadeIn 0.4s ease;
}


.tivat-info h3{
  margin-top:15px;
  color:#38bdf8;
}


.tivat-info ul{
  margin-left:20px;
  margin-top:10px;
  color:#94a3b8;
  line-height:1.8;
}


.tivat-images{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 18px;
  margin: 20px 0;
}


.tivat-images img{
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 14px;
  transition: 0.35s;
  box-shadow: 0 10px 25px rgba(0,0,0,0.25);
  filter: brightness(0.95);
} 


.tivat-images img:hover{
  transform:scale(1.05);
  filter: brightness(1.05);
}


@keyframes fadeIn{
  from{opacity:0;transform:translateY(10px);}
  to{opacity:1;transform:translateY(0);}
}




    /* MAP FIXED (REAL LOCATION TIVAT) */
    .map iframe{
      width:100%;
      height:350px;
      border-radius:18px;
      border:none;
    }


    footer{
      text-align:center;
      padding:30px;
      color:var(--muted);
      background:#060b16;
    }



    .hamburger {
  display: none; /* desktop default */
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  z-index: 2000;
}

.hamburger span {
  width: 28px;
  height: 3px;
  background: white;
  border-radius: 3px;
  transition: 0.3s;
}

/* X animacija */
.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}


/* =========================
   MOBILE RESPONSIVE
========================= */

@media (max-width: 768px) {

  /* =========================
     HAMBURGER
  ========================= */
  .hamburger {
    display: flex;
  }

  /* =========================
     NAV SIDEBAR
  ========================= */
  nav {
    position: fixed;
    top: 0;
    right: -260px;
    width: 260px;
    height: 100vh;
    background: #111;

    display: flex;
    flex-direction: column;
    padding-top: 80px;

    transition: 0.3s ease;
    z-index: 1500;
  }

  nav.active {
    right: 0;
  }

  nav a {
    color: white;
    padding: 15px 25px;
    text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    font-size: 18px;
  }

  nav a:hover {
    background: rgba(255,255,255,0.08);
    padding-left: 30px;
  }

  /* =========================
     OVERLAY
  ========================= */
  #overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    display: none;
    z-index: 1400;
  }

  #overlay.active {
    display: block;
  }

  /* =========================
     HERO
  ========================= */
  .hero h1 {
    font-size: 34px;
    padding: 0 10px;
  }

  .btn {
    padding: 10px 20px;
    font-size: 14px;
  }

  /* =========================
     SECTIONS
  ========================= */
  section {
    padding: 80px 16px;
  }

  h2 {
    font-size: 24px;
  }

  /* =========================
     APARTMENTS
  ========================= */
  #apartments .grid {
    grid-template-columns: 1fr;
  }

  #apartments .card img {
    height: 180px;
  }

  /* =========================
     GALLERY
  ========================= */

  #gallery .grid {
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
}

#gallery .card {
  width: 100%;
  height: 110px; /* 👈 manje da stane ljepše */
  border-radius: 10px;
  overflow: hidden;
}

#gallery .card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

  /* =========================
     BOOKING
  ========================= */
  .booking-box {
    padding: 20px;
  }

  .booking-row {
    flex-direction: column;
    gap: 12px;
  }

  /* =========================
     TIVAT IMAGES
  ========================= */
  .tivat-images {
    grid-template-columns: 1fr;
  }

  .tivat-images img {
    height: 160px;
  }

  /* =========================
     MAP
  ========================= */
  .map iframe {
    height: 250px;
  }

  /* =========================
     TEXT
  ========================= */
  #discover {
    font-size: 15px;
    padding: 0 5px;
  }
}