.nav-tabs {
    display: flex;
    flex-wrap: wrap;
    /* tabovi prelaze u novi red kad nema mjesta */
    gap: 10px;
    /* razmak između tabova */
    justify-content: start;
    padding: 0;
    margin: 0;
}

.nav-tabs .nav-item {
    list-style: none;
}

.nav-tabs .nav-link {
    padding: 0.5rem 1rem;
    text-align: center;
    display: block;
    box-sizing: border-box;
    color: #fff;
    background-color: #111;
    border-radius: 4px;
    text-decoration: none;
    white-space: normal;
    /* lomljenje dugih riječi */
    word-break: break-word;
    flex: 1 1 auto;
    /* fleksibilna širina, ali raste po sadržaju */
    min-width: 120px;
    /* minimalna širina tab-a */
    max-width: none;
    /* maksimalna širina tab-a, možeš prilagoditi */
}


.nav-tabs .nav-link.active {
    background-color: #ff6600;
}


/* Opcionalno: manje ekrane */
@media (max-width: 992px) {
    .nav-tabs .nav-link {
        min-width: 100px;
        max-width: none;
        /* dozvoli da tabovi zauzmu cijeli red ako treba */
    }

    .nav-tabs {
        margin: 0 !important;
        padding: 0 !important;
        border-bottom: none;
        /* ukloni liniju ispod tabova ako smeta */
    }

    .nav-tabs .nav-item {
        margin: 0 !important;
        padding: 0 !important;
    }

    .tab-content {
        margin-top: 5px !important;
        /* mali razmak između tabova i informacija */
    }

    .tab-content .row {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }






    .main-banner {
        position: relative;
    }

    .main-banner .owl-carousel .item {
        position: relative;
        height: 70vh;
        /* visina slidera */
        background-size: cover;
        background-position: center;
    }

    .main-banner .owl-carousel .item .header-text {
        position: absolute;
        left: 50%;
        top: 25%;
        transform: translateX(-50%);
        text-align: center;
        color: #fff;
        -webkit-text-size-adjust: 100%;
        -moz-text-size-adjust: 100%;
        text-size-adjust: 100%;
    }


    .main-banner .owl-carousel .item {
        height: 60vh;
        /* manja visina za mobitel */
    }

    .main-banner .owl-carousel .item .header-text h2 {
        line-height: 1.2;
        font-size: 1.6rem;
    }

    .main-banner .owl-carousel .item .header-text .category {
        font-size: 0.9rem;
    }


    .header-text h2 {
        font-size: 5vw;
        /* skalira proporcionalno širini ekrana */
    }



    #contact-form {
        margin-top: 50px;
        /* prilagodi po potrebi */
    }






    .header-text span.cat2 {
        position: absolute;
        top: -23%;
        /* pomak od vrha */
        left: 1%;
        /* pomak od lijevog ruba */
        background-color: rgba(255, 255, 255, 0.8);
    }





    .header-text span.cat {
        position: absolute;
        top: 10%;
        left: 20%;
        background-color: rgba(255, 255, 255, 0.8);

    }
}

/* Desktop / Laptop */
@media (min-width: 992px) {


    #tabs-container-1 {
        margin-top: 80px;
        /* pomiče sve tabove niže */
    }

    .nav-tabs {
        justify-content: flex-start;
        /* tabovi desno */
    }

    .nav-tabs .nav-link {
        flex: 0 0 200px;
        /* fiksna širina → max 4 po redu */
    }




    .main-banner .owl-banner .item {
        height: 750px;
        /* manja visina za veće ekrane */
    }






    .header-text span.cat2 {
        position: absolute;
        top: 1%;
        /* pomak od vrha */
        left: 50%; /* centriranje s lijeve strane */
        transform: translateX(-50%); /* pomak za pola širine elementa */        /* pomak od lijevog ruba */
        background-color: rgba(255, 255, 255, 0.8);
    }



    .header-text span.cat {
        position: absolute;
        top: 20%;
        left: 20%;
        background-color: rgba(255, 255, 255, 0.8);

    }




}



.header-text {
    position: absolute;
    /* spanovi se pozicioniraju relativno na item */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}







.month-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: 25px;
    background-color: black;
    color: white;
    font-size: 16px;
    cursor: pointer;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    transition: transform 0.1s, background-color 0.1s;
}

/* Hover efekt za desktop */
.month-btn:hover {
    background-color: #555 !important;
    /* malo svjetlija/tamnija nijansa */
}

.month-btn:active {
    transform: scale(0.95);
    background-color: #111 !important;
}


/* Osnovni gumb */
.best-deal .tabs-content .nav-link.month-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: 25px;
    background-color: black !important;
    /* osigurava boju preko Bootstrapa */
    color: white !important;
    cursor: pointer;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    transition: transform 0.1s, background-color 0.1s;
}



.nav-link.month-btn:not(.active):hover {
    background-color: #555 !important;
}








.col12 .item {
    display: flex;
    align-items: center;
    /* vertikalno centriranje ikone i teksta */
    padding: 10px 15px;
    /* unutarnji razmak kartice */
    background: #fff;
    /* bijela pozadina */
    border-radius: 10px;
    /* zaobljeni rubovi */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    width: 100%;
    box-sizing: border-box;
}

.col12 .item img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    flex-shrink: 0;
    display: block;
}

.contact-content {
    margin-top: -150px;
    /* razmak između kartica */
}

.row>.col-12 {
    margin-bottom: 10px;
    /* razmak između kartica */
}














.contact-content .col-lg-7>.row {
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.contact-content .col-lg-7 .col-12 {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.contact-content .col-lg-7 .item {
    width: 100%;
    /* osigurava da kartica zauzme cijelu širinu kolone */
    box-sizing: border-box;
    /* uključuje padding u width */
    margin: 0 !important;
    /* uklanja bilo kakvu marginu */
}

.item h6 span {
    white-space: normal;
    /* dozvoljava lomljenje */
    word-break: break-word;
    /* razbija dugačke riječi ili adrese */
}



.item h6 {
    word-break: break-word;
    /* razbija duge riječi ili email */
    white-space: normal;
}






#footer-text {
    line-height: 1.8;
    /* opcionalno: kontrola visine linije */
}



#reserved-footer {
    line-height: 1.8;
    /* opcionalno: kontrola visine linije */
    font-size: 12px;
    /* ili 0.8em, ili koliko već želiš */
    text-align: right;
    /* tekst ide lijevo */

}










.carousel-button {
    background-color: green;
    color: white;
    border: none;
    border-radius: 20px; /* jače zaobljeni rubovi */
    cursor: pointer;
    padding: 6px 12px;   /* manja širina i visina */
    font-size: 14px;
    z-index: 10;
    transition: background-color 0.3s, transform 0.2s; /* glatki efekt hover */
  }
  
  .carousel-button:hover {
    background-color: darkgreen;
    transform: scale(1.05); /* blago povećanje pri hoveru */
  }


  
  footer {
    margin-top: 20px;       /* uklanja prazni prostor iznad footera */
}



/* Podizanje same sekcije properties */
.section.properties {
    margin: 40px !important; 
    padding: 0px !important;
}


@media (max-width: 992px) {
    .section.properties {
        margin-left: 20px !important;
        margin-right: 20px !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .section.properties .container {
        margin-left: auto !important;
        margin-right: auto !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
    }
}













.search-header {
    width: 100%;
    padding: 20px 20px 40px;


    border-radius: 0 0 30px 30px;

    box-sizing: border-box;

    overflow: visible;
  }


  .search-header-title {
    max-width: 1050px;
    margin: 0 auto 28px;
    color: white;
  }


  .search-header-title h5 {
    margin: 0;
  }


  .search-bar {
    max-width: 1050px;
    margin: auto;
    padding: 8px;

    display: flex;
    align-items: center;

    background: white;

    border-radius: 18px;

    box-shadow:
      0 18px 45px rgba(0, 0, 0, .25);

    box-sizing: border-box;
  }


  .date-field {
    flex: 1;
    padding: 12px 20px;
  }


  .date-field label {
    display: block;

    margin-bottom: 6px;

    font-size: 10px;
    font-weight: 800;

    letter-spacing: 1px;

    color: #6b7280;
  }


  .date-input {
    display: flex;
    align-items: center;

    gap: 9px;
  }


  .date-input input {
    width: 100%;

    border: 0;
    outline: 0;

    background: transparent;

    font-size: 15px;
    font-weight: 600;

    color: #111827;
  }


  .date-divider {
    width: 1px;
    height: 42px;

    background: #e5e7eb;
  }


  .search-button {
    height: 62px;

    padding: 0 28px;

    display: flex;
    align-items: center;

    gap: 10px;

    border: 0;
    border-radius: 14px;

    background: #111827;
    color: white;

    font-size: 15px;
    font-weight: 700;

    cursor: pointer;

    transition: .2s ease;
  }


  .search-button:hover {
    background: #000;

    transform: translateY(-1px);

    box-shadow:
      0 8px 20px rgba(0, 0, 0, .2);
  }


  .search-button span {
    font-size: 22px;
  }


  /* MOBITEL */

  @media (max-width: 700px) {

    .search-header {
      padding: 35px 15px 50px;

      box-sizing: border-box;

      overflow: visible;
    }


    .search-bar {
      flex-direction: column;

      align-items: stretch;

      width: 100%;
    }


    .date-field {
      padding: 14px 16px;
    }


    .date-divider {
      width: calc(100% - 32px);

      height: 1px;

      margin: auto;
    }


    .search-button {
      width: 100%;

      margin-top: 8px;

      justify-content: center;
    }

  }








  .tourist-info-section {
    width: 100%;
    padding: 30px 15px;
    box-sizing: border-box;
  }
  
  .tourist-info-container {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  
  .tourist-info-card {
    display: flex;
    align-items: center;
    gap: 20px;
  
    padding: 25px;
    box-sizing: border-box;
  
    background: #fff;
    border-radius: 12px;
  
    text-decoration: none;
    color: inherit;
  
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  
    transition: transform 0.2s ease, box-shadow 0.2s ease;
  }
  
  .tourist-info-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 7px 20px rgba(0, 0, 0, 0.13);
  }
  
  .tourist-info-icon {
    min-width: 60px;
    width: 60px;
    height: 60px;
  
    display: flex;
    align-items: center;
    justify-content: center;
  
    border-radius: 50%;
    background: #f5f5f5;
  
    font-size: 30px;
  }
  
  .tourist-info-content {
    flex: 1;
  }
  
  .tourist-info-content h3 {
    margin: 0 0 8px 0;
    font-size: 20px;
    font-weight: 600;
  }
  
  .tourist-info-content p {
    margin: 0 0 10px 0;
    line-height: 1.5;
    font-size: 14px;
  }
  
  .tourist-info-link {
    font-size: 14px;
    font-weight: 600;
  }
  
  
  /* MOBITEL */
  @media (max-width: 992px) {
  
    .tourist-info-container {
      grid-template-columns: 1fr;
      gap: 15px;
    }
  
    .tourist-info-card {
      padding: 20px;
    }
  
    .tourist-info-content h3 {
      font-size: 18px;
    }
  
  }