.hero-izleti {
    width: 100%;
    height: 40vh; /* Reduced height for better responsiveness */
    background: url('../../img/2025img/transferi/transferiheader.webp') no-repeat center center/cover; 
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.9;
}

.hero-izleti::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.4); /* Slightly darker for better text visibility */
}

/* HERO CONTENT */
.hero-content-izleti {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
    padding: 0 1rem; /* Ensure some padding for smaller screens */
}

/* Main heading with adaptive font size */
.hero-content-izleti h1 {
    font-size: clamp(1.8rem, 4vw, 3.2rem); /* Scales based on screen width */
    margin-top: 2rem;
    line-height: 1.2;
    color: #fff
}
  
  /* DESTINATIONS SECTION */
  .destinations {
    max-width: 1200px;
    margin: 4.5rem auto;
    padding: 0 1rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
  }
  
  /* KARTICA */
  .destination-card {
    position: relative;
    border-radius: 8px;
    overflow: hidden;              /* Važno za hover efekat na sliku (da se ne preliva) */
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    display: flex;                /* Fleks za “fiksiranje” donjeg dela */
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  
  /* Hover efekat na čitavu karticu (blago podizanje) */
  .destination-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 14px rgba(0,0,0,0.15);
  }
  
  /* SLIKA i njen hover efekat (uvećanje) */
  .destination-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease; 
  }
  
  .destination-card:hover img {
    transform: scale(1.1);
  }
  
  /* Informacioni deo kartice */
  .destination-info {
    background-color: #fff;
    padding: 1rem;
    position: relative;
    display: flex;            /* Fleks za raspored unutar info */
    flex-direction: column;
    flex: 1;                  /* Rastegni da “gura” footer na dno */
  }
  
  /* Zvezdica, ocena */
  .rating {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background-color: #f9a826;
    color: #fff;
    padding: 0.25rem 0.5rem;
    border-radius: 5px;
    font-weight: bold;
    font-size: 0.9rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  }
  
  /* Naslovi, lokacija itd. */
  .destination-title {
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 0.25rem;
  }
  
  .destination-shorttext {
    font-size: 0.85rem;
    color: #777;
    margin-bottom: 2rem;
  }
  
  /* Dno kartice (cena + dugme) se “lepi” za dno pomoću margin-top: auto */
  .destination-footer {
    margin-top: auto;
    align-items: center;
    justify-content: space-between;
  }
  
  .destination-price {
    font-size: 1rem;
    font-weight: bold;
    color: #333;
  }
  
  .destination-price span {
    font-size: 0.8rem;
    color: #666;
  }
  
  /* CTA dugme umesto kružne strelice */
  .destination-cta {
    background-color: #e78c24;
    color: #fff;
    padding: 0.5rem 0.75rem;
    border-radius: 4px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.3s ease;
    display: block; /* Ensure it spans the full width */
    text-align: center;
    margin: 0 auto; /* Center the button */
  }
  
  .destination-cta:hover {
    background-color: #28a3d8;
  }

/* Kontejner za cijenu i trajanje */
.price-duration {
    display: flex;
    align-items: center;
    gap: 2.2rem; /* Small gap between price and duration */
    margin-bottom: 1rem; /* Add spacing below this section */
}
  
  .destination-duration {
    font-size: 0.83rem; /* malo manje od naslova */
    color: #555;
    margin-top: 0.25rem; /* malo razmaka ispod cene */
    display: flex;       /* zbog poravnanja ikone i teksta */
    align-items: center; 
  }
  
  .destination-duration i {
    margin-right: 6px;   /* razmak između ikone i teksta */
    color: #f9a826;      /* boja ikone (možete promeniti) */
  }

/* Availability status on a separate row */
.availability-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: #555;
    margin-bottom: 1.1rem; /* Spacing before the button */
    justify-content: flex-start; /* Center alignment */
}

.availability-status i {
    font-size: 0.8rem; /* Adjust icon size */
}

  
  
  /* Jednostavna responsivnost za hero */
  @media (max-width: 768px) {
    .price-duration {
        justify-content: left;
        flex-wrap: wrap; /* Allow wrapping if needed on smaller screens */
    }

    .destination-footer {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .availability-status {
        margin-bottom: 1rem; /* Add spacing between sections */
    }
    
    
      .destination-cta {
        /* gumb će se pojaviti ispod, u novom "redu",
           jer smo u koloni, i bit će centriran */
        text-align: center;
      }

      .destinations {
        margin: 2rem auto;
      }

  }
  
  /* RESPONSIVENESS */
@media (max-width: 768px) {
    .hero-izleti {
        height: 40vh; /* Reduce height for smaller screens */
    }

    .hero-content-izleti h1 {
        font-size: 2.5rem; /* Further reduce font size on smaller devices */
    }

}

@media (max-width: 480px) {
    .hero-izleti {
        height: 35vh; /* Make hero even smaller on very small screens */
    }

    .hero-content-izleti h1 {
        font-size: 2.2rem; /* Smaller heading font size for compact screens */
    }

}