/* VARIABLES & RESET */
:root {
    --color-bg: #f8f4ee;
    --color-bg-alt: #f2ece3;
    --color-text: #8a7b5a;
    --color-accent: #8a7b5a;
    --color-accent-dark: #5e543b;
    --color-muted: #777;
    --max-width: 1200px;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
    color: var(--color-text);
    background-color: #ffffff;
    scroll-behavior: smooth;
}

h1,
h2,
h3,
h4 {
    font-family: 'Playfair Display', serif;
    margin-top: 0;
}

.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 16px;
    font-size: 1.3rem;
}

.section {
    padding: 60px 0;
}

.section--light {
    background-color: var(--color-bg);
}

.section-title {
    font-size: 40px;
    font-family: 'Playfair Display', serif;
    margin-bottom: 10px;
}

.title-underline {
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--color-accent);
    margin-bottom: 20px;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 999px;
    background-color: var(--color-accent);
    color: #fff;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 13px;
}


/* HEADER */
header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(6px);
    border-bottom: 1px solid #e0ddd6;
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    flex-wrap: wrap;
    position: relative;
}

/* LOGO BLOK */
.logo-block {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: -60px;
    padding-right: 100px;
    margin-top: 15px;
}

.logo__img {
    width: 90px;
    height: auto;
    transform: translateX(-20px);
}

.logo-text {
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    font-weight: 700;
    color: #8a7b5a;
    margin-left: -10px; 
}


/* NAVIGACIJA */
.nav-menu {
    display: flex;
    gap: 24px;
    align-items: center;
    padding-left: 100px;
}

.nav-link {
    text-decoration: none;
    color: #8a7b5a;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    position: relative;
    padding-bottom: 4px;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #a68b6b;
}

.nav-link.active::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #8a7b5a;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .header__inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .nav-menu {
        display: flex;
        gap: 24px;
        align-items: center;
        flex-wrap: wrap;
        padding-right: 20px;
    }
}

/* HERO */
.hero__grid {
    display: grid;
    grid-template-columns: 2fr 1.5fr;
    gap: 40px;
    align-items: center;
}

.hero__title {
    font-size: 40px;
    margin-bottom: 16px;
}

.hero__stats {
    margin-top: 40px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.stat-card {
    background-color: #fff;
    border-radius: 10px;
    padding: 16px 18px;
    box-shadow: 0 8px 20px #8a7b5a;
}

.hero__image img {
    width: 100%;
    height: auto;
    display: block;
}

.rounded-image {
    border-radius: 12px;
}


/* AMENITIES */
.amenities-grid {
    display: grid;
    grid-template-columns: 1.4fr 1.6fr;
    gap: 50px;
    align-items: center;
}

.amenities__main-img img {
    width: 100%;
    max-width: 600px;
    border-radius: 8px;
    margin-top: -20px;
}

.amenities__photos-strip {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 150px;
    gap: 16px;
    margin-top: 18px;
    overflow-x: auto;
    padding-bottom: 6px;
    margin-left: -90px;
}

.ph img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

.amenity-item {
    margin-bottom: 10px;
}

.amenity-item__title {
    font-size: 20px;
    font-weight: 600;
    color:#8a7b5a;
    margin-bottom: 6px;
    margin-left: 60px;
}

.amenity-item__desc {
    color: var(--color-muted);
    font-size: 18px;
    line-height: 1.6;
    margin-left: 60px;
}


/* SUITABILITY */
#suitability {
    padding: 60px 20px;
}

#suitability h2 {
    font-weight: 600; 
    text-align: center;
    font-size: 30px;
    margin-bottom: 10px;
}

#suitability .title-underline {
    display: block;
    width: 60px;
    height: 3px;
    background-color: #8a7b5a;
    margin: 0 auto 35px auto;
    border-radius: 2px;
}

.suitability-container {
    max-width: 700px;
    margin: 0 auto;
}

.suitability-container .story {
    font-size: 18px;
    line-height: 1.6;
    color: #333;
    background: #f8f8f8;
    padding: 14px 18px;
    border-radius: 8px;
    margin-bottom: 12px;
    border-left: 4px solid #8a7b5a;

}

/* GALLERY */
#gallery {
    padding: 40px 20px;
    text-align: center;
    font-size: 20px;
}

.gallery-images {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.gallery-images img {
    width: 300px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 12px #8a7b5a;
    transition: transform 0.3s ease;
}

.gallery-images img:hover {
    transform: scale(1.05);
}

/* EXPLORE-STANIĆI */
.explore-highlight {
    padding: 1rem 2rem;
    background-color: #fff;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #8a7b5a;
}

.title-underline {
    display: block;
    width: 60px;
    height: 4px;
    background-color: #c9a227;
    margin: 0 auto 2rem;
}

.explore-split-layout {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.split-main-img {
    width: 100%;
    max-width: 700px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 12px #8a7b5a;
}

.split-text {
    max-width: 800px;
    font-size: 1.3rem;
    line-height: 1.6;
    color: #8a7b5a;
    text-align: center;
}

@media (max-width: 768px) {
    .split-text {
        padding: 0 1rem;
        text-align: center;
    }

}

#nearby-activities .section-title,
#nearby-activities .title-underline {
    display: none;
}


/* CONTACT */
form {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    max-width: 600px;
    margin: 40px auto;
    padding: 0 16px;
}

.form-control {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    margin-bottom: 20px;
    text-align: start;
}

label::before {
    content: "*";
    color: #8a7b5a;
    padding-right: 4px;
}

input,
textarea {
    margin-top: 4px;
    padding: 8px 16px;
    font-size: 20px;
    line-height: 1.5;
    color: #8a7b5a;
    font-family: "Mali", cursive;
    border: 1px solid #ccc;
    border-radius: 4px;
    outline: none;
}

textarea {
    min-width: 100%;
    max-width: 100%;
    min-height: 100px;
    max-height: 250px;
}

input::placeholder,
textarea::placeholder,
input::-webkit-input-placeholder,
textarea::-webkit-input-placeholder,
input::-moz-placeholder,
textarea::-moz-placeholder,
input:-ms-input-placeholder,
textarea:-ms-input-placeholder {
    opacity: 0.5;
}

button.submit-button {
    background-color: #8a7b5a;
    color: #ffffff;
    padding: 0.7rem 2rem;
    border: none;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    cursor: pointer;
    display: inline-block;
    transition: 0.3s ease;
}

button.submit-button:hover {
    background-color: #8a7b5a;
}


/* CONTACT FORM VALIDATION & EMAILJS */
#form-message {
    margin-top: 1rem;
    font-weight: bold;
    text-align: center;
}

.success-message {
    color: #2e7d32;
}

.error-message {
    color: #c62828;
}


/* LOCATION */
.map-section {
    padding: 4rem 2rem;
    text-align: center;
}

.map-container {
    max-width: 900px;
    margin: 0 auto;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 12px #8a7b5a;
}

.map-container iframe {
    width: 100%;
    height: 450px;
    border: none;
    display: block;
}

/* FOOTER */
footer {
    background-color: #fdf6ec;
    padding: 40px 16px;
    color: #8a7b5a;
    text-align: center;
}

#social-icons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    list-style: none;
    padding: 2rem 0;
    margin: 0;
}

#social-icons li {
    display: inline-block;
}

.social-circle {
    width: 60px;
    height: 60px;
    border: 2px solid #6b4c3b;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: 0.3s ease;
}

.social-circle i {
    font-size: 1.5rem;
    color: #6b4c3b;
}

.social-circle:hover {
    background-color: #6b4c3b;
}

.social-circle:hover i {
    color: #fff;
}

/* LANGUAGE */
/* Kontejner za dropdown */
.lang-dropdown {
    position: relative;
    display: inline-block;
    margin-left: auto; /* Ovo gura dropdown skroz desno u flexboxu */
    padding-right: 20px;
}

/* Glavni gumb */
.dropbtn {
    background-color: transparent;
    color: #8a7b5a;
    padding: 10px 15px;
    font-size: 14px;
    font-weight: 700;
    border: 1px solid #8a7b5a;
    border-radius: 5px;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    text-transform: uppercase;
}

.arrow {
    font-size: 10px;
    margin-left: 5px;
}

/* Sadržaj koji se pojavljuje (skriven po defaultu) */
.dropdown-content {
    display: none;
    position: absolute;
    right: 20px; /* Poravnato s desnim rubom gumba */
    background-color: #ffffff;
    min-width: 120px;
    box-shadow: 0px 8px 16px rgba(0,0,0,0.1);
    z-index: 1100;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid #e0ddd6;
}

/* Linkovi unutar dropdowna */
.dropdown-content a {
    color: #8a7b5a;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    font-size: 14px;
    font-weight: 600;
    transition: 0.3s;
}

/* Efekt na hover */
.dropdown-content a:hover {
    background-color: #f8f4ee;
    color: #a68b6b;
}

/* Prikaži dropdown kad se mišem dođe iznad gumba ili kontejnera */
.lang-dropdown:hover .dropdown-content {
    display: block;
}

/* Promjena boje gumba kad je otvoren */
.lang-dropdown:hover .dropbtn {
    background-color: #f8f4ee;
}

/* Mobitela prilagodba */
@media (max-width: 768px) {
    .lang-dropdown {
        margin-left: 0;
        margin-top: 10px;
        width: 100%;
        text-align: center;
    }
    .dropdown-content {
        right: 50%;
        transform: translateX(50%);
    }
}

/* Dodatak za Hamburger */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1100;
}

.menu-toggle span {
    width: 100%;
    height: 3px;
    background-color: #8a7b5a;
    transition: 0.3s;
}

/* Responzivni dio */
@media (max-width: 992px) {
    .menu-toggle { display: flex; }

    .nav-menu {
        display: none; 
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #fff;
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    }

    .nav-menu.active { display: flex; }

    /* Animacija u X */
    .menu-toggle.is-active span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
    .menu-toggle.is-active span:nth-child(2) { opacity: 0; }
    .menu-toggle.is-active span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

    .logo-block { margin-left: 0; padding-right: 0; }
    .hero__grid, .amenities-grid { grid-template-columns: 1fr; }
}

/* --- Media queries - Mobile (Tableti i veći mobiteli) --- */
@media only screen and (max-width: 768px) {
  /* Header - smanjujemo naslov i linkove */
  .logo-text {
    font-size: 22px; 
  }
  .nav-menu .nav-link {
    font-size: 13px;
  }

  /* Hero / Cover sekcija */
  /* VW (Viewport Width) znači "postotak širine ekrana". 
     1vw = 1% širine prozora. Ako je ekran širok 1000px, 6vw je 60px. 
     To je super jer se tekst smanjuje glatko kako smanjuješ prozor. */
  .hero__title {
    font-size: 8vw; 
  }
  
  .hero__stats {
    gap: 10px;
  }

  /* Sekcije i razmaci */
  .section {
    padding: 40px 0;
  }
  
  .stat-card {
    padding: 12px;
  }
}

/* --- Media queries - Portrait Mobile (Uspravni mobitel) --- */
@media only screen and (max-width: 600px) and (orientation: portrait) {
  header {
    padding: 5px 0;
  }
  
  /* Slažemo elemente jedan ispod drugog */
  .hero__grid, .amenities-grid, .hero__stats {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .logo-block {
    margin-left: 0 !important; /* Poništavamo tvoj desktop margin */
    padding-right: 0;
  }
}

/* --- Media queries - Everything but Mobile (Desktop postavke) --- */
@media only screen and (min-width: 769px) {
  /* Ovdje idu stvari koje želiš SAMO na velikim ekranima */
  .nav-menu {
    margin-left: auto;
  }
  
  .hero__stats {
    align-self: center;
  }
}