
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600&display=swap');

body {
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    background-color: #1c1c1c;
    background-image: url('https://www.transparenttextures.com/patterns/carbon-fibre.png');
    color: #ffffff;
}

.container {
    background-color: #2e2e2e;
    max-width: 800px;
    margin: 40px auto;
    padding: 30px;
    border: 2px solid #444;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0,0,0,0.5);
    overflow: hidden;
}

header {
    text-align: center;
    padding-bottom: 30px;
}

header h1 {
    color: #6fcf97;
    font-size: 3em;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.7);
    background-color: #222;
    display: inline-block;
    padding: 15px 30px;
    border-radius: 10px;
    border: 2px solid #6fcf97;
    white-space: nowrap;
}

section {
    padding: 20px 0;
    clear: both;
}

.usluge ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.usluge li {
    padding: 8px 0;
    font-size: 1.1em;
    border-bottom: 1px solid #444;
}

a {
    color: #6fcf97;
    text-decoration: none;
    font-weight: 600;
}

a:hover {
    text-decoration: underline;
}

.footer-icons {
    text-align: center;
    margin-top: 30px;
}

.footer-icons img {
    height: 40px;
    margin: 0 15px;
    opacity: 0.8;
}

.map-container {
    margin: 15px 0;
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid #444;
}

.map-container iframe {
    width: 100%;
    height: 250px;
    border: none;
    display: block;
}

/* Responsive naslov */
@media (max-width: 600px) {
    header h1 {
        font-size: 2em;
        padding: 10px 20px;
        word-wrap: break-word;
        white-space: normal;
    }

    .container {
        padding: 20px;
    }
}

.lokacije-split {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: space-between;
}

.lokacija {
    flex: 1 1 45%;
    border: 1px solid #444;
    border-radius: 10px;
    padding: 15px;
    background-color: #3a3a3a;
}

.map-mini iframe {
    width: 100%;
    height: 150px;
    border: none;
    margin-top: 10px;
    border-radius: 8px;
}

/* Stack vertically on small screens */
@media (max-width: 700px) {
    .lokacije-split {
        flex-direction: column;
    }
}

/* Animacije pri skrolanju */
section, .lokacija {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease forwards;
}
section:nth-of-type(2) { animation-delay: 0.1s; }
section:nth-of-type(3) { animation-delay: 0.2s; }
section:nth-of-type(4) { animation-delay: 0.3s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: none;
    }
}

/* Hover efekti na ikonama */
.footer-icons img:hover {
    transform: scale(1.15);
    transition: transform 0.3s ease;
}

/* CTA gumb u kutu */
REMOVED {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #6fcf97;
    color: #000;
    padding: 12px 18px;
    border-radius: 30px;
    font-weight: bold;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(0,0,0,0.4);
    z-index: 999;
    transition: background 0.3s ease;
}

REMOVED:hover {
    background-color: #5ec088;
}

/* Poboljšan naslov */
header h1 {
    color: #6fcf97;
    font-size: 3em;
    text-shadow: 0 0 3px #6fcf97;
    background-color: #222;
    display: inline-block;
    padding: 15px 30px;
    border-radius: 10px;
    border: 2px solid #6fcf97;
    white-space: nowrap;
}


/* Popup stil */
REMOVED {
    display: none;
    position: fixed;
    bottom: 80px;
    right: 20px;
    background-color: #2e2e2e;
    border: 2px solid #6fcf97;
    border-radius: 10px;
    padding: 15px;
    z-index: 1000;
    box-shadow: 0 0 15px rgba(0,0,0,0.6);
    text-align: center;
}

REMOVED a {
    display: block;
    margin: 10px 0;
    padding: 8px 12px;
    border-radius: 5px;
    background-color: #6fcf97;
    color: #000;
    font-weight: bold;
    text-decoration: none;
}

REMOVED a:hover {
    background-color: #5ec088;
}

/* Overlay da zatvori popup klikom van */
REMOVED {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    background: rgba(0, 0, 0, 0.4);
    z-index: 999;
}



body {
    background: #2e2e2e;
    color: white;
    font-family: sans-serif;
    margin: 0;
    padding: 0;
}
.container {
    padding: 30px;
    max-width: 800px;
    margin: auto;
}
h1 {
    text-align: center;
    color: #6fcf97;
}
ul {
    list-style: none;
    padding: 0;
}
li {
    padding: 10px 0;
    font-size: 18px;
}
.example-button {
    display: inline-block;
    margin-left: 10px;
    padding: 2px 6px;
    background: none;
    color: white;
    text-decoration: underline;
    border: none;
    font-size: 14px;
}
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.9);
    z-index: 1000;
    overflow-y: auto;
    padding: 40px 20px;
}
.lightbox:target {
    display: block;
}
.lightbox .close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    color: white;
    text-decoration: none;
}
.lightbox-content {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}
.lightbox-content img {
    max-width: 300px;
    height: auto;
    border-radius: 6px;
    box-shadow: 0 2px 10px rgba(255,255,255,0.2);
}


#nautika .lightbox-content img {
    max-height: 400px;
    height: auto;
}


/* Lightbox styling */
.lightbox {
  position: fixed;
  z-index: 9999;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background-color: rgba(0,0,0,0.9);
}
.lightbox-content {
  margin: auto;
  display: block;
  max-width: 90%;
  max-height: 80%;
  margin-top: 5%;
}
.close {
  position: absolute;
  top: 20px;
  right: 35px;
  font-size: 40px;
  color: white;
  cursor: pointer;
}
/* Responsive images */
img {
  height: auto;
  max-width: 100%;
}
/* Responsive layout tweaks */
@media screen and (max-width: 768px) {
  .services-section, .locations-section {
    padding: 10px;
  }
  .service-box, .location-box {
    flex-direction: column;
    align-items: flex-start;
  }
  .location-box iframe {
    width: 100% !important;
    height: 200px;
  }
  .preview-trigger {
    display: inline-block;
    margin-bottom: 5px;
    color: white;
    font-weight: bold;
    cursor: pointer;
    text-decoration: underline;
  }
}
