/* =========================
   GLOBAL
========================= */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Poppins', Arial, sans-serif;
}

/* =========================
   COOKIE MODAL OVERLAY
========================= */
.cookie-banner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5); /* tamna poluprovidna pozadina */
    display: none; /* prikazat ćemo ga preko JS-a */
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

/* Mali modal prozor */
.cookie-modal {
    background: #fdfdfd; /* svijetla pozadina */
    padding: 30px 20px;
    border-radius: 15px;
    text-align: center;
    max-width: 450px;
    width: 90%;
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}

/* Naslov u modal prozoru */
.cookie-modal h3 {
    font-family: 'Oswald', sans-serif;
    font-size: 22px;
    margin-bottom: 15px;
}

/* Tekst u modal prozoru */
.cookie-modal p {
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 25px;
}

/* Gumb prihvata */
.cookie-modal button {
    padding: 12px 30px;
    background: #9F6782;
    color: #fff;
    border: none;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
}

.cookie-modal button:hover {
    background: #844f68;
    transform: translateY(-2px);
}
/* =========================
   HERO
========================= */
.hero {
    height: 70vh;
    position: relative;
    color: white;
    background: url('../assets/images/hero.jpg') center / cover no-repeat;
}

/* =========================
   NAVIGATION
========================= */
nav {
    position: absolute;
    top: 30px;
    right: 40px;
    display: flex;
    gap: 20px;
    align-items: center;
}

nav a,
nav select {
    color: white;
    background: transparent;
    border: none;
    font-size: 16px;
    cursor: pointer;
    text-decoration: none;
    opacity: 0;
    transform: translateY(-10px);
    animation: navFadeIn 0.6s forwards;
}

nav a:hover {
    color: #FFD700;
    transform: translateY(-5px);
}

nav a:nth-child(1) {
    animation-delay: 0.2s;
}

nav a:nth-child(2) {
    animation-delay: 0.4s;
}

nav select {
    animation-delay: 0.6s;
}

@keyframes navFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================
   HERO CONTENT
========================= */
.hero-content {
    position: absolute;
    left: 30px;
    top: 45%;
    transform: translateY(-50%);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.25);
}

.hero-content h1 {
    font-family: 'Oswald', sans-serif;
    font-size: 120px;
    letter-spacing: 2px;
}

/* =========================
   APARTMANI
========================= */
.apartmani {
    background-color: #9F6782;
    padding: 50px;
}

/* WRAPPER ZA STRELICE */
.apartments-wrapper {
    position: relative;
}

/* LISTA APARTMANA */
.apartments {
    display: flex;
    gap: 30px;
    justify-content: space-between;
    overflow: auto;
}

/* LINK */
.apartment-link {
    flex: 0 0 calc(90% / 6);
    aspect-ratio: 1 / 1;
    text-decoration: none;
    color: inherit;
}

/* APARTMAN CARD */
.apartment {
    margin-top: 5px;
    width: 90%;
    height: 90%;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #333;
    cursor: pointer;

    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;

    transition: transform 0.3s ease, background-color 0.3s ease;
}

.apartment:hover {
    background-color: rgba(187, 187, 187, 0.25);
    transform: translateY(-5px);
}

/* =========================
   STRELICE SCROLL
========================= */
.scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 45px;
    height: 45px;
    font-size: 26px;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    cursor: pointer;
    display: none;
}

.scroll-btn.left {
    left: 10px;
}

.scroll-btn.right {
    right: 10px;
}

.scroll-btn:hover {
    background: rgba(0, 0, 0, 0.8);
}

/* =========================
   DESTINATION SECTION
========================= */
.destination {
    background: #dbc2cd;
    padding: 80px 50px;
}

.destination-inner {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: center;
    max-width: 1200px;
    margin: auto;
}

.destination h2 {
    font-family: 'Oswald', sans-serif;
    font-size: 48px;
    margin-bottom: 30px;
}

.destination p {
    font-size: 18px;
    line-height: 1.7;
    margin-bottom: 20px;
}

.destination-image img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* =========================
   APARTMENTS INFO
========================= */
.apartments-info {
    color: #fff2fa;
    background: #654259;
    padding: 80px 50px;
}

.apartments-info-inner {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: center;
    max-width: 1200px;
    margin: auto;
}

.apartments-info h2 {
    font-family: 'Oswald', sans-serif;
    font-size: 42px;
    margin-bottom: 25px;
}

.apartments-info p {
    font-size: 18px;
    line-height: 1.7;
    margin-bottom: 20px;
}

.apartments-info img {
    width: 100%;
    border-radius: 20px;
}

.highlight {
    font-weight: 600;
    color: #eec3d9;
}

/* =========================
   LOKACIJA
========================= */
.location {
    background: #dbc2cd;
    padding: 80px 50px;
}

.location-inner {
    max-width: 1200px;
    margin: auto;
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 60px;
    align-items: center;
}

.location-map {
    height: 400px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.location-info h2 {
    font-family: 'Oswald', sans-serif;
    font-size: 42px;
    margin-bottom: 20px;
}

.location-info p {
    font-size: 18px;
    line-height: 1.7;
    margin-bottom: 20px;
}

.address {
    font-size: 18px;
    line-height: 1.6;
}

/* GUMB */
.contact-btn {
    display: inline-block;
    padding: 14px 30px;
    background: #9F6782;
    color: white;
    text-decoration: none;
    font-weight: 600;
    border-radius: 30px;
    transition: background 0.3s ease, transform 0.3s ease;
}

.contact-btn:hover {
    background: #844f68;
    transform: translateY(-2px);
}

/* =========================
   FOOTER
========================= */
.site-footer {
    background: #2b2b2b;
    color: #ccc;
    text-align: center;
    padding: 25px 15px;
    font-size: 14px;
}

/* =====================
   APARTMENT PAGE
===================== */

.apartment-page {
  background: #8e5a6a;
  color: #fff;
  font-family: Arial, Helvetica, sans-serif;
}

/* NAV */
.nav {
  height: 70px;
  background: #6f4754;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 40px;
}

.nav-left {
  font-size: 26px;
  cursor: pointer;
}

.nav-right a {
  color: #fff;
  text-decoration: none;
  margin-left: 30px;
  font-size: 18px;
}

/* LAYOUT */
.container {
  display: grid;
  grid-template-columns: 320px 1fr;
  min-height: calc(100vh - 70px);
}

.sidebar {
  padding: 40px 30px;
}

.sidebar h1 {
  font-size: 64px;
  font-weight: 300;
  margin-bottom: 30px;
}

.sidebar ul {
  list-style: none;
}

.sidebar li {
  font-size: 14px;
  margin-bottom: 14px;
  opacity: 0.85;
  line-height: 1.6;
}

.content {
  background: #fff;
  padding: 40px;
  display: flex;
  flex-direction: column;
}

.main-image {
  display: flex;
  justify-content: center;
  margin-bottom: 30px;
}

.main-image img {
  max-width: 60%;
}

/* THUMBNAILS – FIX RESPONSIVE */
.thumbnails {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px;
}

.thumb {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  cursor: pointer;
  background-color: #2b2b2b;

  /* tranzicija */
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;

  /* smooth zoom */
  transition: transform 0.25s ease;
}

/* HOVER EFEKT – cijeli thumb */
.thumb:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.35);
}

/* lagani zoom slike, ali tile se miče kao cjelina */
.thumb:hover img {
  transform: scale(1.05);
}
/* =====================
   LIGHTBOX
===================== */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;

  /* početno stanje */
  opacity: 0;
  pointer-events: none;
  transform: scale(1.05);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

/* kad je otvoren */
.lightbox.show {
  opacity: 1;
  pointer-events: all;
  transform: scale(1);
}

/* slika unutar lightboxa */
.lightbox img {
  max-width: 90%;
  max-height: 90%;
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

/* prikaz slike */
.lightbox.show img {
  opacity: 1;
  transform: scale(1);
}

/* animacija prelaska slika */
.lightbox.slide-left img {
  animation: slideLeft 0.3s ease forwards;
}

.lightbox.slide-right img {
  animation: slideRight 0.3s ease forwards;
}

@keyframes slideLeft {
  from { transform: translateX(50%) scale(0.95); opacity: 0; }
  to { transform: translateX(0) scale(1); opacity: 1; }
}

@keyframes slideRight {
  from { transform: translateX(-50%) scale(0.95); opacity: 0; }
  to { transform: translateX(0) scale(1); opacity: 1; }
}

/* zatvaranje i strelice */
.lightbox-close,
.lightbox-arrow {
  position: absolute;
  color: #fff;
  cursor: pointer;
  user-select: none;

  opacity: 0;
  transform: translateY(-20px);
  transition: opacity 0.3s ease, transform 0.3s ease, transform 0.2s ease-in-out;
}

.lightbox.show .lightbox-close,
.lightbox.show .lightbox-arrow {
  opacity: 1;
  transform: translateY(0);
}

.lightbox-close {
  top: 30px;
  right: 40px;
  font-size: 40px;
}

.lightbox-arrow {
  top: 50%;
  font-size: 60px;
  transform: translateY(-50%);
  transition: transform 0.2s ease, opacity 0.3s ease;
}

/* strelice na hover */
.lightbox-arrow:hover {
  transform: translateY(-50%) scale(1.2);
}

.lightbox-arrow.left {
  left: 30px;
}

.lightbox-arrow.right {
  right: 30px;
}

/* HAMBURGER */
.hamburger {
  display: none;
  font-size: 30px;
  cursor: pointer;
  color: #fff;
}

.reserve-btn {
  margin-top: 30px;
  align-self: center;
  padding: 14px 40px;
  background: #9F6782;
  color: #fff;
  text-decoration: none;
  font-size: 18px;
  font-weight: 600;
  border-radius: 30px;
  box-shadow: 0 2px 3px rgba(0,0,0,0.2);
  transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.2s ease;
  display: inline-block;
  cursor: pointer;
}

.reserve-btn:hover {
  background: #a8929c;
  transform: translateY(-4px);
  box-shadow: 0 5px 7px rgba(0,0,0,0.25);
}
.reservation-form {
  max-width: 500px;
  margin: 40px auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.reservation-form label {
  font-size: 14px;
  color: #333;
}

.reservation-form input,
.reservation-form select {
  padding: 10px;
  font-size: 16px;
}

.reservation-form button {
  margin-top: 20px;
  padding: 14px;
  background: #9F6782;
  color: #fff;
  border: none;
  font-size: 18px;
  cursor: pointer;
}

/* =========================
   SAKRI SCROLLBAR
========================= */
.apartments::-webkit-scrollbar {
    display: none;
}

.apartments {
    scrollbar-width: none;
}

/* korisničke ikone */
.capacity {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
    font-size: 14px;
    color: #fff;
}

.user-icon {
    display: inline-block;
    width: 20px;
    height: 20px;
    background: #fff;
    mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="black" d="M12 12c2.7 0 5-2.3 5-5s-2.3-5-5-5-5 2.3-5 5 2.3 5 5 5zm0 2c-3.3 0-10 1.7-10 5v3h20v-3c0-3.3-6.7-5-10-5z"/></svg>') no-repeat center;
    mask-size: contain;
    -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="black" d="M12 12c2.7 0 5-2.3 5-5s-2.3-5-5-5-5 2.3-5 5 2.3 5 5 5zm0 2c-3.3 0-10 1.7-10 5v3h20v-3c0-3.3-6.7-5-10-5z"/></svg>') no-repeat center;
    -webkit-mask-size: contain;
    background-color: #fff;
}

.user-icon.small {
    width: 14px;
    height: 14px;
}


/* APARTMAN DETAILS */
.apartment-details {
    background: #f9f5f7;
    padding: 50px 40px;
    margin-top: 50px;
    border-radius: 20px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    font-family: 'Poppins', sans-serif;
}

.apartment-details h2 {
    font-family: 'Oswald', sans-serif;
    font-size: 36px;
    margin-bottom: 20px;
    color: #6f4754;
    text-align: center;
}

.apartment-details h3 {
    font-size: 24px;
    margin-top: 30px;
    margin-bottom: 20px;
    color: #9F6782;
}

.apartment-details p {
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    text-align: justify;
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.detail-item {
    background: #fff;
    border-radius: 15px;
    padding: 20px;
    display: flex;
    align-items: center;
    font-size: 16px;
    color: #555;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: default;
}

.detail-item .icon {
    font-size: 24px;
    margin-right: 12px;
    color: #9F6782;
}

.detail-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}


/* =========================
   MOBITEL / TABLET - KOMPAKTNO
========================= */
@media (max-width: 900px) {



    /* Hamburger menu */
    .hamburger {
        display: block;
    }

    .nav-right {
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        background: #6f4754;
        flex-direction: column;
        align-items: center;
        display: none;
        padding: 15px 0;
    }

    .nav-right a {
        margin: 10px 0;
        font-size: 16px;
    }

    .nav-right.active {
        display: flex;
    }

    /* Thumbnails */
    .thumbnails {
        grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
        gap: 10px;
    }

    /* Cookie banner */
    .cookie-banner {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }

    .cookie-banner button {
        width: 100%;
        padding: 10px;
        font-size: 14px;
    }

    /* Apartments scroll */
    .apartments {
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        justify-content: flex-start;
        padding-bottom: 15px;
        gap: 15px;
    }

    .apartment-link {
        min-width: 70%;
        scroll-snap-align: center;
    }

    .apartment {
        height: 300px;
    }

    .scroll-btn {
        display: block;
        width: 40px;
        height: 40px;
        font-size: 24px;
    }

    /* Hero */
    .hero-content h1 {
        font-size: 28px;
    }

    /* Destination & Apartments Info */
    .destination-inner,
    .apartments-info-inner {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .destination h2,
    .apartments-info h2 {
        font-size: 24px;
    }

    .destination p,
    .apartments-info p,
    .highlight {
        font-size: 8px;
        line-height: 1.5;
    }

    /* Location */
    .location-inner {
        grid-template-columns: 1fr;
    }

    .location-map {
        height: 250px;
    }

    .location-info h2 {
        font-size: 24px;
    }

    .location-info p,
    .address {
        font-size: 14px;
        line-height: 1.5;
    }

    .contact-btn {
        padding: 10px 20px;
        font-size: 14px;
    }

    /* Footer */
    .site-footer {
        font-size: 12px;
        padding: 20px 10px;
    }

    /* Layout container */
    .container {
        grid-template-columns: 1fr;
        padding: 0 10px;
    }

    /* Sidebar adjustments */
    .sidebar h1 {
        font-size: 36px;
    }

    .sidebar li {
        font-size: 12px;
        margin-bottom: 8px;
    }

    .reserve-btn {
        font-size: 16px;
        padding: 12px 30px;
    }

    /* Apartment details */
    .apartment-details {
        padding: 10px 5px;
    }

    .apartment-details h2 {
        font-size: 20px;
    }

    .apartment-details p,
    .detail-item {
        font-size: 13px;
    }

    .details-grid {
        gap: 15px;
    }
}