/* Reset & base */
body {
  margin: 0;
  padding: 0;
  font-family: 'Montserrat', sans-serif;
  background-color: #f9f9f9;
  color: #ffffff;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
}

/* Navbar */

.navbar {
  background-color: #EC2027;
}

.navbar-brand {
  font-weight: 700;
  font-size: 1.5rem;
}

/* Glavni stil linkova u navbaru */
.navbar-nav .nav-link {
  margin-right: 1rem;
  color: #ffffff;
  position: relative;  /* Za pseudo-element */
  text-decoration: none; /* ukloni klasični underline */
  transition: color 0.3s ease;
}

/* Hover i active stanje bez klasičnog underline, već sa animiranom linijom */
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus,
.navbar-nav .nav-link.active {
  color: #ffffff;
  font-weight: 700;
  outline: none;
}

/* Pseudo-element za liniju ispod linka */
.navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -3px; /* možeš prilagoditi visinu linije ispod teksta */
  height: 2px;
  width: 0;
  background-color: #ffffff; /* boja linije */
  transition: width 0.4s ease;
  border-radius: 2px;
}

/* Širina linije raste do 100% na hover/focus/active */
.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link:focus::after,
.navbar-nav .nav-link.active::after {
  width: 100%;
}

/* Language dropdown flag icons */
.nav-item img {
  margin-right: 5px;
  vertical-align: middle;
}

/* Language switcher - Bosanski i Hrvatski dodatak */
.language-switcher {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.language-switcher a {
  display: inline-flex;
  align-items: center;
  font-size: 0.9rem;
  color: #ccc;
  text-decoration: none;
  transition: color 0.3s ease-in-out;
}

.language-switcher a:hover {
  color: #f0ad4e;
}

.language-switcher img {
  margin-right: 5px;
  width: 16px;
  height: 12px;
}

/* Footer styles - novi footer po uzoru na Horeca Zagreb */

footer {
  position: relative;
  background-color: #EC2027; /* tamna pozadina */
  color: #f1f1f1;
  font-family: 'Montserrat', sans-serif;
  padding: 40px 0 20px;
  font-size: 0.9rem;
  line-height: 1.5;
}

footer .footer-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 15px;
}

footer .footer-block {
  flex: 1 1 30%;
  min-width: 250px;
}

footer h5,
footer .title-small {
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  color: #ffffff;
}

footer .text-block---mali-tekst {
  color: #ffffff;
  margin-bottom: 0.3rem;
  font-size: 0.85rem;
}

footer a.text-light,
footer a.text-light:visited {
  color: #f1f1f1;
  text-decoration: none;
  transition: color 0.3s ease;
}

footer a.text-light:hover {
  color: #ffd700; /* zlatna boja na hover */
  text-decoration: underline;
}

footer .social-icons {
  margin-top: 1rem;
}

footer .social-icons a {
  color: #ffffff;
  margin-right: 1rem;
  font-size: 1.25rem;
  transition: color 0.3s ease;
}

footer .social-icons a:hover {
  color: #ffd700;
}

/* Footer donji tekst */
footer .footer-bottom-text {
  max-width: 1140px;
  margin: 20px auto 0;
  padding: 0 15px;
  font-size: 0.8rem;
  color: #ffffff;
  text-align: center;
}

footer .footer-bottom-text a {
  color: #ffffff;
  text-decoration: underline;
  transition: color 0.3s ease;
}

footer .footer-bottom-text a:hover {
  color: #ffd700;
  text-decoration: none;
}

/* Footer additional bottom-right menu */
footer .bottom-menu {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  text-align: right;
  font-size: 0.9rem;
}

footer .bottom-menu a {
  color: #ffffff;
  margin-left: 1rem;
  text-decoration: none;
  transition: color 0.3s ease;
}

footer .bottom-menu a:hover {
  font-weight: 600;
  text-decoration: none;
}

/* Responsive spacing */
@media (max-width: 767.98px) {
  .navbar-nav .nav-link {
    margin-right: 0;
    margin-bottom: 0.5rem;
  }

  footer .footer-wrapper {
    flex-direction: column;
  }

  footer .footer-block {
    min-width: auto;
    margin-bottom: 1.5rem;
  }

  footer .bottom-menu {
    position: static;
    text-align: center;
    margin-top: 1rem;
  }

  .language-switcher {
    justify-content: center;
  }
}

.footer-bottom-left-img {
  position: absolute;
  bottom: 10px;    /* malo prostora od dna */
  left: 10px;      /* malo prostora od lijevog ruba */
  max-width: 120px; /* ne prevelika slika, prilagodi po želji */
  height: auto;
  opacity: 0.7;    /* blaga providnost, možeš maknuti ili podesiti */
  pointer-events: none; /* da ne smeta klikovima po footeru */
  user-select: none; /* da se ne može selektovati slučajno */
  z-index: 5;      /* iznad ostalih elemenata u footeru */
}

/* Responsive: na manjim ekranima smanji sliku */
@media (max-width: 767.98px) {
  .footer-bottom-left-img {
    max-width: 80px;
    bottom: 5px;
    left: 5px;
  }
}

/* Hero section */
main.container {
  padding-top: 40px;
  padding-bottom: 40px;
  text-align: center;
}

main h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

main p {
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

/* Dropdown menu animation */
.dropdown-menu {
  transition: all 0.2s ease-in-out;
}

.dropdown-menu.show {
  display: block;
  opacity: 1;
}

/* Video header */
.video-header {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

.video-header .video-bg {
  object-fit: cover;
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
}

.video-header .video-overlay {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  padding: 2rem;
  text-align: center;
}

.video-header h1,
.video-header p {
  color: #fff;
}

/* Responsive video source (vertical for phones) */
@media (max-width: 768px) {
  .video-header .video-bg {
    object-fit: cover;
  }
}

/* Footer bottom menu HTML insert */
footer::after {
  content: '';
  display: block;
}

/* Insert this in the HTML footer:
<div class="bottom-menu">
  <a href="#">Privatnost</a>
  <a href="#">Uslovi korištenja</a>
  <a href="#">Mapa sajta</a>
</div>
*/

.img-logo-header {
  max-width: 70%;
}

/* Animirane rečenice u video headeru */
.video-overlay {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  padding: 2rem;
  background: rgba(0, 0, 0, 0.3);
}

.animated-sentences {
  position: relative;
  width: 100%;
  max-width: 900px;
  font-size: 2rem;
  font-weight: 600;
  color: #fff;
}

.animated-sentences .sentence {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  z-index: 1;
}

.animated-sentences .sentence.active {
  opacity: 1;
  z-index: 2;
}

.custom-section {
  position: relative;
  width: 100%;
  background: linear-gradient(to bottom, white 60%, #ec2027 60%);
  overflow: hidden;
  padding: 100px 20px 180px;
}

.custom-section::after {
  content: "";
  display: block;
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100px;
  background: url('data:image/svg+xml;utf8,<svg viewBox="0 0 1440 150" xmlns="http://www.w3.org/2000/svg"><path fill="%23ec2027" d="M0,64 C360,160 1080,0 1440,96 L1440,320 L0,320 Z"></path></svg>') no-repeat bottom center;
  background-size: cover;
  z-index: 1;
}

.container-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #333;
}

.bottom-illustration {
  position: absolute;
  bottom: 0;
  left: 0; /* ⬅️ OVDE izmjena */
  width: auto;
  height: 150px;
  z-index: 2;
}

.countdown-section {
  background: #fff;
  padding: 80px 20px;
  border-top: 8px solid #ec2027;
  border-bottom: 8px solid #ec2027;
}

.countdown-section h2 {
  font-weight: 700;
  color: #ec2027;
}

#countdown {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
}

.countdown-item {
  background: #ec2027;
  color: #fff;
  padding: 30px 20px;
  border-radius: 12px;
  min-width: 100px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.countdown-item span {
  display: block;
  font-size: 2.5rem;
}

.countdown-item small {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.85;
}

.footer-logo {
  margin-bottom: 30px;
}

.hero-stranice {
    background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

@media (max-width: 767.98px) {
  .hero-stranice h1 {
    font-size: 1.75rem;
  }
}

.floor-grid {
  display: grid;
  grid-template-columns: repeat(13, 1fr);
  gap: 5px;
  max-width: 1200px;
  margin: 0 auto;
}

.booth, .label, .empty {
  width: 100%;
  padding-top: 100%;
  position: relative;
  border-radius: 6px;
}

.booth span, .label span {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-weight: bold;
  color: #fff;
}

.booth::before, .label::before {
  content: attr(class);
  position: absolute;
  top: 0; left: 0;
}

.booth.green { background: #28a745; }
.booth.blue { background: #007bff; }
.booth.red { background: #c0392b; }
.booth.purple { background: #8e44ad; }
.label.blue { background: #3498db; color: #fff; text-align: center; font-size: 12px; padding: 4px; }
.label.gray { background: #7f8c8d; color: #fff; text-align: center; font-size: 12px; padding: 4px; }

.empty {
  background: transparent;
}

.legend-box {
  display: inline-block;
  width: 16px;
  height: 16px;
  border-radius: 3px;
  margin-right: 6px;
}

.legend-box.green { background-color: #28a745; }
.legend-box.blue { background-color: #007bff; }
.legend-box.red { background-color: #c0392b; }
.legend-box.purple { background-color: #8e44ad; }

@media (max-width: 768px) {
  .floor-grid {
    grid-template-columns: repeat(6, 1fr);
  }
}

/* --- SAJAM GRID --- 1 m² = 1 grid-cell ------------------------------ */
:root{
  --cols: 51;          /* ukupna širina   (m) */
  --rows: 24;          /* ukupna visina   (m) */
  --cell: 22px;        /* px veličina 1 m² – NE diraj, samo za demo   */
}

/* bazna mreža */
#floorGrid{
  display:grid;
  grid-template-columns: repeat(var(--cols), var(--cell));
  grid-template-rows:    repeat(var(--rows), var(--cell));
  background:#fff;          /* mreža je sada bijela */
  outline:4px solid #000;   /* rub ostaje crn */
  gap:1px;                  /* tanak crni razmak */
  margin-inline:auto;
  overflow:auto;               /* scroll na telefonu */
  border:4px solid #000;       /* debeli vanjski rub */
}
/* svaka “kocka”, boja dolazi kao klasa */
.stand{
  position:relative;
  font:700 10px/1 'Montserrat',sans-serif;
  color:#fff;        display:flex; align-items:center; justify-content:center;
  cursor:pointer;    user-select:none;
}
.green{background:#28a745;} .blue{background:#008CFF;}
.red  {background:#c0392b;}  .purple{background:#7d3c98;}
.gray {background:#7f8c8d;}  .info{background:#1e88e5;}

.stand:hover{outline:3px solid #fff; z-index:2}

/* --- modal ----------------------------------------------------------- */
#popup{
  position:fixed; inset:0; display:none; align-items:center; justify-content:center;
  background:rgba(0,0,0,.6); z-index:9999;
}
#popup .box{
  background:#fff; padding:24px 32px; border-radius:8px; text-align:center;
}
#popup .close{position:absolute; right:16px; top:12px; font-size:26px; cursor:pointer;}

#popup form {
  color: #000; /* crna boja teksta */
}

#popup input,
#popup textarea,
#popup label {
  color: #000;
}

#popup input::placeholder,
#popup textarea::placeholder {
  color: #666; /* siva za placeholder ako želiš */
}

#popTitle {
  color: #000000; /* crna boja */
}

/* ===== Grupe proizvoda ===== */
#grupe { background:#fff; }

.product-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
  gap:24px;
}

.card{
  border:1px solid #d3d3d3;
  border-radius:8px;
  overflow:hidden;
  background:#fafafa;
  transition:transform .25s;
}
.card:hover{ transform:translateY(-4px); }

.card-header{
  width:100%; padding:18px 20px;
  background:#d0021b;     /* crvena Horeca boja */
  color:#fff; font-weight:700; font-size:1.05rem;
  text-align:center; line-height:1.3;
  border:none; cursor:pointer;
}
.card-header:focus{ outline:2px dashed #333; }

.card-body{
  list-style:none; margin:0; padding:12px 20px 18px;
  max-height:220px; overflow:hidden;
  transition:max-height .4s ease;
}
.card-body li{ margin:6px 0; color:#d0021b; font-weight:600; }

.card.open .card-body{ max-height:500px; } /* dovoljno veliko za sadržaj */

/* ===== HERO video ===== */
.bl-hero{position:relative;height:60vh;overflow:hidden}
.bl-hero-video{position:absolute;width:100%;height:100%;object-fit:cover}
.bl-hero-overlay{position:absolute;inset:0;background:rgba(0,0,0,.45)}
.bl-hero-title{color:#fff;font-size:2.5rem;font-weight:700;text-shadow:2px2px4pxrgba(0,0,0,.6)}
@media(max-width:768px){.bl-hero{height:45vh}.bl-hero-title{font-size:1.8rem}}

/* ===== Sekcije ===== */
.bl-section{padding:60px 0}
.bl-heading{color:#d0021b;font-weight:700;margin-bottom:1rem}

/* ===== Highlight box ===== */
.bl-highlight-wrapper{background:#fff}
.bl-highlight{background:#fefefe;border-radius:12px;padding:40px;box-shadow:0 4px 20px rgba(0,0,0,.05)}
.bl-highlight h2{color:#d0021b;font-weight:700}

/* ===== CTA ===== */
.bl-cta{background:url('img/banjaluka-hero.jpg') center/cover no-repeat;padding:100px 0;position:relative}
.bl-cta-overlay{background:rgba(0,0,0,.6);padding:60px 20px;border-radius:8px;display:inline-block}
.bl-cta h2{font-weight:700}

/* ===== Carousel ===== */
.carousel-item img{border-radius:8px}

/* ===== Stand po narudžbi (spn-) ================================== */
.spn-hero{
  position:relative;height:60vh;
  background:url('img/standovi/hero-custom.jpg') center/cover no-repeat fixed;
}
.spn-hero-overlay{backdrop-filter:brightness(.5);padding:60px 20px}

.spn-gallery img{transition:transform .3s}
.spn-gallery a:hover img{transform:scale(1.05)}

.spn-packages{
  background:url('img/standovi/bg-packages.jpg') center/cover no-repeat;
  padding:100px 0;position:relative
}
.spn-pack-overlay{background:rgba(0,0,0,.7);padding:60px 20px}
.spn-card{
  background:#fff;color:#000;border-radius:10px;padding:30px 25px;
  box-shadow:0 6px 18px rgba(0,0,0,.1);transition:transform .3s
}
.spn-card:hover{transform:translateY(-6px)}
.spn-popular{border:3px solid #d0021b}
.spn-card h3{font-weight:700;margin-bottom:10px;color:#d0021b}
.spn-price{font-size:1.8rem;font-weight:700;margin-bottom:15px}
.spn-card ul{list-style:none;padding:0;margin:0}
.spn-card ul li{margin:6px 0}

.spn-cta{
  background:url('img/standovi/bg-cta.jpg') center/cover no-repeat fixed;
  padding:120px 0;position:relative;color:#fff
}
.spn-cta::before{
  content:'';position:absolute;inset:0;background:rgba(0,0,0,.55)
}
.spn-cta-box{position:relative;z-index:2;padding:40px 20px;display:inline-block}

.spn-cta {
  position: relative;
  overflow: hidden;
  color: #fff;
}

.spn-cta video {
  position: absolute;
  top: 0;
  left: 0;
  min-width: 100%;
  min-height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0.6;
}

.spn-cta-box {
  position: relative;
  z-index: 2;
  padding: 100px 20px;
  background: rgba(0, 0, 0, 0.4); /* tamni overlay za bolju čitljivost */
  border-radius: 10px;
  max-width: 700px;
  margin: auto;
}

/* === OPŠTE INFORMACIJE ZA POSJETIOCE STRANICA === */
.info-heading {
  color: #d0021b;
  font-weight: 700;
}

.info-list li {
  margin: 0.3rem 0;
}

/* ===== Why visit page (why-) ===================================== */
.why-hero{
  background:linear-gradient(135deg,#d0021b 0%,#ec2027 100%);
  height:50vh;display:flex;align-items:center;justify-content:center
}

.why-ticker{white-space:nowrap;overflow:hidden;position:relative}
.why-ticker span{display:inline-block;padding-left:100%;animation:why-scroll 18s linear infinite}

@keyframes why-scroll{to{transform:translateX(-100%)}}

.why-card{
  background:#fff;border-radius:10px;padding:30px 25px;
  box-shadow:0 6px 18px rgba(0,0,0,.08);text-align:center
}
.why-card-icon{font-size:2.4rem;color:#d0021b;margin-bottom:15px}

.why-stats{
  background:#d0021b;position:relative
}
.why-stats-overlay{background:rgba(0,0,0,.5)}
.why-number{font-size:2.8rem;font-weight:700;margin-bottom:0}

.why-cta{
  background:linear-gradient(135deg,#ec2027 0%,#d0021b 100%);
  padding:100px 0;color:#fff;position:relative;text-align:center
}
.why-cta-box{max-width:600px;margin:auto;padding:40px 20px;background:rgba(0,0,0,.45);border-radius:12px}

.class-prijava-text {
  color: #000;
  margin-left: 6%;
}

/* ===== Vijesti ===== */
.news-section .card { border: 0; border-radius: 12px; overflow: hidden; }
.news-img          { object-fit: cover; height: 230px; }

@media (max-width: 767.98px){
  /* na mobitelu 1 kartica po slajdu – zato 100% širine */
  #newsCarousel .carousel-item .col-md-4 { flex: 0 0 100%; max-width:100%; }
}

/* ===== Carousel strelice – crvene / veće ===== */
#newsCarousel .carousel-control-prev-icon,
#newsCarousel .carousel-control-next-icon{
  filter: invert(26%) sepia(94%) saturate(6994%) hue-rotate(352deg) brightness(93%) contrast(111%);
  width: 3rem;
  height: 3rem;
}

#newsCarousel .carousel-control-prev,
#newsCarousel .carousel-control-next{
  opacity: .9;                /* uvijek vidljive */
}