body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f8f8f8;
}

.properties-filter {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 15px;
}

.properties-filter li {
    display: inline-block;
}

.properties-filter a {
    text-decoration: none;
    padding: 10px 15px;
    background-color: #333;
    color: white;
    border-radius: 5px;
}

.properties-box {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.item {
    background-color: white;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
}

.item img {
    width: 100%;
    border-radius: 10px;
}

.category {
    font-weight: bold;
    color: #555;
}

.main-button a {
    display: inline-block;
    padding: 10px 15px;
    background-color: #007BFF;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 10px;
}


.properties-box .item {
  position: relative;
  height: 300px;
  overflow: hidden;
  border-radius: 12px;
}

.properties-box .item {
  position: relative;
  height: 300px;
  overflow: hidden;
  border-radius: 12px;
  border: 3px solid transparent; /* default no border */
  transition: border-color 0.3s ease;
}
.properties-box .bg-image {
  position: relative;
  width: 100%;
  height: 100%;
  background-image: url('assets/images/property-01.jpg');
  background-size: cover;
  background-position: center;
}

/* Blur i tamnjenje samo na pseudo-elementu */
.properties-box .bg-image::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: inherit;
  background-size: cover;
  background-position: center;
  filter: blur(1px) brightness(0.8);
  z-index: 1;
  transition: transform 0.5s ease;
}

/* Tekst preko slike s poluprozirnim tamnim slojem iza */
.properties-box .overlay {
  position: absolute;
  z-index: 2;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: white;
  text-align: center;
  padding: 20px;
  background-color: rgba(0, 0, 0, 0.3);
  text-shadow: 0 0 5px rgba(0, 0, 0, 0.7);
}

.properties-box .overlay h4 {
  font-size: 28px;
  margin-bottom: 10px;
}

.properties-box .overlay h6 {
  font-size: 18px;
  font-weight: 300;
}

/* Hover efekt za blago povećanje pozadine */
.properties-box .item:hover {
  border-color: #f35525; /* orange border on hover */
  box-shadow: 0 0 15px #f35525; /* subtle orange glow */
}

.white-box {
  background-color: white;
  padding: 20px;
  border-radius: 15px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  text-align: center;
  display: inline-block;
}

.logo-img {
  width: 150px;
  height: auto; /* keeps the correct aspect ratio */
}
/* Ovdje je moj css
x
x
x
x
x
x
*/
.container-box {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  padding: 20px 40px;
  max-width: 1200px;
  margin: 0 auto;
  box-sizing: border-box;
}

.card {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0,0,0,0.25);
  transition: transform 0.3s ease;
  width: 100%;
}

.card:hover {
  transform: scale(1.05);
}

.image-box {
  position: relative;
  width: 100%;
  height: 350px;
  background-size: cover;
  background-position: center;
}

.text-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.35);
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 20px;
  text-align: center;
}

.text-overlay h3 {
  margin: 0;
  font-size: 2rem;
}

.text-overlay h5 {
  margin-top: 10px;
  font-size: 1.2rem;
  color: #f35525;
}


/* Responsive: one column on small screens */
@media (max-width: 900px) {
  .properties-box {
    grid-template-columns: 1fr; /* single column */
    gap: 15px;
    width: 90%;
    margin: 0 auto 20px auto;
  }

  .properties-box .item {
    height: 250px; /* slightly smaller height on phones */
  }

  .properties-box .overlay h4 {
    font-size: 22px;
  }

  .properties-box .overlay h6 {
    font-size: 16px;
  }

  .container-box {
    padding: 10px;          /* makni padding potpuno */
    max-width: auto;    /* iskoristi punu širinu viewporta */
    grid-template-columns: 1fr;
    gap: 15px;
    margin: 0;           /* ukloni marginu */
  }

  body, html {
    margin: 0;
    padding: 0;
  }

  .card {
    border-radius: 12;    /* ako želiš, da kartice idu skroz do ruba */
  }

  .image-box {
    height: 220px;
  }

  .text-overlay h3 {
    font-size: 1.5rem;
  }

  .text-overlay h5 {
    font-size: 1rem;
  }


  .sub-header {
    display: block;
  }

.sub-header .container .row {
  display: flex;
  justify-content: center; /* centriraj horizontalno */
  align-items: center;     /* centriraj vertikalno */
  text-align: center;
}

.language-switcher a {
  display: inline-block;
  margin: 0 20px;  /* razmak lijevo i desno između zastava */
  vertical-align: middle;
  margin-top: 10px;
}

.language-switcher img {
  width: 20px;
  height: auto;
  vertical-align: middle;
}


}
