body{
	margin: 0;
	width: 100%;
	display: flex;
	justify-content: center;
	background-color: #2c2c2c;
}
#telo{
	width: 98vw;
}

#header{
	text-align: center;
	background-color: #2c2c2c;
	height: 7vh;
	display: inline-flex;
	width: 100%;
  gap: 10vw;
}
#uLiniji{
	display: flex;
	justify-content: center;
	gap: 1vw;
	margin: auto;
	text-decoration: none;

}
#uLiniji img{
	object-fit: cover;
	opacity: 85%;
}
#uLiniji:hover img{
	transform: scale(1.08);
	opacity: 100%;
}
#poziv{
	color: white;
}
#poziv:hover{
	color: #ffc700;
}

#inline{
	display: inline-flex;
	background-color: #2c2c2c;
	width: 100%;
}
#naslov{
	width: 95vw;
	justify-content: center;
	text-align: center;
	padding: 0;
}
#slike{
	background-color: yellow;
	height: 45vh;
}
#tekst{
	background-color: white;
	height: auto;
	padding-left: 25vw;
	padding-right: 25vw;
}
.desna{
	margin-left: auto;
}
#pozivnaSlika{
}
h1{
	 margin: 0;
	 font-size: 50px;
	 color: #ffc700;

}
h3{
	font-size: 24px;
	font-weight: normal;
	text-decoration: none;
	font-family: Arial;
}


/*MENU POCETAK*/

 .meni-wrapper {
      padding: 20px;
      background-color: #2c2c2c;
      position: relative;
      display: flex;
      justify-content: flex-end;
    }

    .hamburger {
      width: 30px;
      height: 22px;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      cursor: pointer;
    }

    .hamburger div {
      height: 4px;
      background-color: #ffc700;
      border-radius: 2px;
    }

    .dropdown {
      position: absolute;
      top: 60px;
      right: 20px;
      background-color: #2c2c2c;
      border-radius: 8px;
      overflow: hidden;
      display: none;
      flex-direction: column;
      box-shadow: 0 0 10px #00000088;
      z-index: 99;
    }

    .dropdown a {
      padding: 12px 16px;
      text-decoration: none;
      color: white;
      border-bottom: 1px solid #444;
      transition: background 0.3s;
    }

    .dropdown a:hover {
      background-color: #3a3a3a;
      color: #ffc700;
    }

    .dropdown a:last-child {
      border-bottom: none;
    }
    /*MENU KRAJ*/



/*GALERIJA ULAZ*/

.galerija-wrapper {
      display: flex;
      align-items: center;
      justify-content: center;
      overflow: hidden;
      padding: 2vw;
      background-color: #1e1e1e;
      margin: 0 auto;
    }

    .strelica {
      background: none;
      border: none;
      color: white;
      font-size: 2rem;
      cursor: pointer;
      z-index: 2;
      padding: 10px;
      user-select: none;
    }
    /* === Poboljšane strelice === */
.strelica,
.lb-strelica {
  background-color: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 9999px;
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  font-size: 28px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.35);
  backdrop-filter: blur(2px);
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  z-index: 5;
}

/* Strelice u lightbox-u iznad slike */
#lightbox .lb-strelica,
#lightbox .zatvori {
  z-index: 6;
}

/* Laptop ekrani – pomeri malo strelice od ivica */
@media (min-width: 1024px) {
  #lb-levo { left: 28px !important; }
  #lb-desno { right: 28px !important; }
}
    .galerija-track {
      display: flex;
      gap: 20px;
    }

    .slika-kartica {
      flex: 0 0 200px;
      background-color: #2c2c2c;
      border-radius: 10px;
      overflow: hidden;
      cursor: pointer;
      transition: transform 0.3s ease;
      position: relative;
      height: 200px;
      display: flex;
      flex-direction: column;
      /* Podrazumevano: opis iznad slike, detalj ispod slike */
      justify-content: flex-start;
      padding: 15px 10px 40px 10px; /* prostora ispod za detalj */
      box-sizing: border-box;
      color: white;
      margin-top: 100px;
    }

    .slika-kartica img {
      width: 100%;
      height: 150px;
      object-fit: cover;
      transition: transform 1s ease;
      order: 2;
      border-radius: 5px;
      margin-bottom: 5px;
    }

    .slika-kartica:hover img {
      transform: scale(1.08);
    }
@media screen and (max-width: 768px) {
  .slika-kartica {
    display: none; /* sakrij sve */
  }
  .slika-kartica.fokus {
    display: block; /* prvu ostavi */
    width: 100%;
  }
  .strelica{
    display: none;
  }
}
    /* Glavni opis */
    .naziv {
      font-weight: bold;
      font-size: 16px;
      margin-bottom: 5px;
      order: 1; /* iznad slike */
      text-align: center;
    }

    /* Detaljni opis */
    .detalj-opis {
      font-size: 12px;
      color: #bbb;
      order: 3; /* ispod slike */
      text-align: center;
      min-height: 30px;
    }

    /* Kada je centralna (fokus) kartica */
    .slika-kartica.fokus {
      flex: 0 0 40vw;
      transform: scale(1.05);
      height: auto;
      padding: 10px 10px 15px 10px;
      justify-content: flex-start;
      color: white;
      margin-top: 10px;
    }

    .slika-kartica.fokus img {
      height: 350px;
      margin-bottom: 10px;
      border-radius: 10px;
    }

    /* Za centralnu karticu: pomeramo opis ispod slike i sakrivamo detalj */
    .slika-kartica.fokus .naziv {
      order: 3; /* ispod slike */
      font-size: 22px;
      margin-bottom: 0;
    }

    .slika-kartica.fokus .detalj-opis {
      display: none;
    }

    /* Manje slike sa strane da budu malo niže i manje */
    .slika-kartica:not(.fokus) img {
      height: 120px;
      margin-bottom: 5px;
    }

    /* Lightbox */
    #lightbox {
      display: none;
      position: fixed;
      top: 0; left: 0;
      width: 100vw;
      height: 100vh;
      background-color: rgba(0, 0, 0, 0.95);
      justify-content: center;
      align-items: center;
      flex-direction: column;
      z-index: 9999;
      padding: 20px;
      box-sizing: border-box;
      animation: fadeIn 0.5s ease;
    }

    #lightbox img {
      max-width: 90vw;
      max-height: 70vh;
      border-radius: 10px;
      box-shadow: 0 0 20px #000;
      animation: fadeIn 0.6s ease;
    }

    #lightbox .opis {
      margin-bottom: 15px;
      font-size: 18px;
      font-weight: bold;
      text-align: center;
      color: white;
    }

    #lightbox .zatvori {
      position: absolute;
      top: 20px;
      right: 30px;
      font-size: 30px;
      color: white;
      cursor: pointer;
    }

    #lightbox .lb-strelica {
      position: absolute;
      top: 50%;
      transform: translateY(-50%);
      font-size: 40px;
      color: white;
      cursor: pointer;
      user-select: none;
    }

    #lb-levo { left: 20px; }
    #lb-desno { right: 20px; }

    @keyframes fadeIn {
      from { opacity: 0; transform: scale(0.95); }
      to { opacity: 1; transform: scale(1); }
    }

    @media (max-width: 600px) {
      .slika-kartica { flex: 0 0 140px; padding-bottom: 40px; }
      .slika-kartica.fokus { flex: 0 0 99vw; padding-bottom: 15px; }
      .slika-kartica img { height: 120px; }
      .slika-kartica.fokus img { height: 250px; }
    }
    /*GALERIJA IZLAZ*/




    /*APARTMANI*/
.katalog{
  width: 14vw;
  background-color: #1e1e1e;
  margin-right: 1vw;
  display:grid;
  justify-content: center;
  padding: 3vh;
  border-radius: 5%;
  border: 1px solid darkgray;
  color: #ffc700;
  margin-top: 10vh;
  margin-bottom: 20vh;
  text-decoration: none;

}
.katalog:hover{
  box-shadow: 10px 10px 15px rgba(0, 0, 0, 0.3);
  border: 1px solid #ffc700;
}
    .slikeKontejner{
  border-radius: 5%;
  width: 100%;
  height: 12vw;
}
.prelamanje{
  width: 12vw;
  word-wrap: break-word;
  text-align: center;
}
.cena{
  font-weight: bold;
}
img[alt="slika1"]{
  border-radius: 5%;
  width: 12vw;
  height: 12vw;
}
.btnKorpa{
  border: 1px solid rgb(54, 52, 52);
  border-radius: 25px;
  transition: 0.7s ease;
    height: 30px;
  font-size: 24px;
  color: #2c2c2c;
  background-color: white;
  text-decoration: none;
}
.btnKorpa:hover{
  background-color: #ffc700;
  color: #1e1e1e;
}
#inlineApartmani{
	display: flex;
	justify-content: center;
}


/*FOOTER*/
 #footer{
  background-color: gray;
  display: inline-flex;
  width: 100%;
  gap: 20vw;
  justify-content: center;
  background-color: #1e1e1e;
  height: auto;

}
#naziviFooter{
  color: white;
  font-size: 70px;
}
.tekstUFooteru{
  color: white;
}
#linkoviFooter{
  color: white;
  text-decoration: none;
  font-size: 21px;
}
#linkoviFooter:hover{
  color: #ffc700;
}
#instagram{
  width: 2vw;
}
/*KRAJ FOOTERA*/



/*768px max*/
@media (max-width: 768px){
/*HEADER*/
#uLiniji{
  gap: 1vw;

}
#uLiniji img{
  width: 10vw;
  height: 6vh;
  margin-left: auto;
  opacity: 85%;
}
#uLiniji:hover img{
  transform: scale(1.08);
  opacity: 100%;
}
/*HEADER KRAJ*/


/*NASLOV*/
h1{
   font-size: 30px;
}
/*NASLOV KRAJ*/


/*TEKST*/
#tekst{
  padding-left: 5vw;
  padding-right: 5vw;
}
/*TEKST KRAJ*/


  /*FOOTER*/
 #footer{
  gap: 3vw;
  text-align: center;

}
.tekstUFooteru{
  height: 10vh;
}
#naziviFooter{
  font-size: 30px;
}

#linkoviFooter{
  font-size: 10px;
}
/*APARTMANI*/
.katalog{
  width: 45vw;
  padding: 1vh;
  margin-left: 3vw;

}

    .slikeKontejner{
  border-radius: 5%;
  width: 32vw;
  height: 25vw;
}
.prelamanje{
  width: 32vw;
  word-wrap: break-word;
  text-align: center;
}
.cena{
  font-weight: bold;
}
img[alt="slika1"]{
  border-radius: 5%;
  width: 32vw;
  height: 25vw;
}
}





/*1024px max*/
@media (max-width: 1024px){
   /*FOOTER*/
 #footer{
  gap: 3vw;
  margin-top: 1vw;
  height:35vh;
}
#instagram{
  width: 10vw;
}
.prelamanje{
  margin-left: 3vw;
}
img[alt="slika1"]{
  margin-left: 3vw;
}
#naziviFooter{
  font-size: 30px;
}

#linkoviFooter{
  font-size: 15px;
}
}
#linkoviKontakt{
  color: black;
  text-decoration: none;
  font-weight: bold;
}
#linkoviKontakt:hover{
  color: #ffc700;
}