* {
    box-sizing: border-box;
}

body {
    overflow-x: hidden;
    font-family: 'Barlow Semi Condensed', sans-serif;
    margin: 0;
    padding: 0;
    background: #fff;
    color: #333;
    line-height: 1.6;
    font-size: clamp(14px, 2.5vw, 16px);
}

/* Header */
header {
    position: relative;
    background: #fff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 5%;
    flex-wrap: wrap;
    height: auto;
    min-height: 60px;
    z-index: 20;
}

header .logo {
    width: clamp(150px, 20vw, 200px);
    height: auto;
    margin-left: 0;
    margin-bottom: 10px;
}

.nav-toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
}

nav {
    padding-right: 0;
    padding-bottom: 0;
    flex-direction: row;
    width: 100%;
    justify-content: flex-end;
    gap: 5px;
}

nav ul {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 100;
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 5px;
}

nav ul li {
    display: flex;
    align-items: center;
}

nav ul li a {
    font-family: 'Barlow Semi Condensed', sans-serif;
    font-size: clamp(12px, 2vw, 14px);
    font-weight: normal;
    color: #212529;
    text-decoration: none;
    transition: color 0.3s;
    padding: 5px;
}

nav ul li a:hover {
    color: #0077b6;
}

.bottom-nav {
    font-size: clamp(14px, 2.5vw, 16px);
    gap: 10px;
}

.flag-container {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Dropdown */
.dropdown {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.dropdown > li {
    position: relative;
    display: inline-block;
}

.dropdown a {
    text-decoration: none;
    color: #212529;
    padding: 5px;
    display: flex;
    align-items: center;
}

.dropdown a i {
    margin-left: 6px;
    font-size: 10px;
}

.dropdown-menu {
    display: none;
    position: absolute;
    background-color: #7b858d;
    min-width: 40px;
    max-width: 55px;
    z-index: 1;
}

.dropdown-menu li {
    padding: 0px 6px;
}

.dropdown-menu li a {
    color: #fff;
    text-decoration: none;
    font-size: 14px;
}

.dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu li a:hover {
    background-color: #474b4e;
}

/* Hero Section */
.hero {
    position: relative;
    background-size: cover;
    height: 50vh;
    min-height: 300px;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    overflow: hidden;
    z-index: 1;
}

.hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Search Container */
.search-container {
    font-family: 'Barlow Semi Condensed', sans-serif;
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 90%;
    max-width: 1020px;
    margin: 0 auto;
    margin-top: -20vh;
    padding: 10px;
    background-color: rgba(255, 255, 255, 1);
    border-radius: 13px;
    position: relative;
    z-index: 10;
}

.input-field span, .date-field span {
    font-size: clamp(10px, 1.5vw, 12px);
}

.radio-buttons label {
    font-size: clamp(10px, 1.5vw, 12px);
}

.input-field, .date-field {
    display: flex;
    flex-direction: column;
    align-items: left;
    width: 15%;
    padding: 5px;
    border: 1px solid #ebe7e7;
    border-radius: 5px;
    margin-right: 0;
    flex-grow: 1;
}

.input-field input, .date-field input {
    font-size: clamp(10px, 1.5vw, 12px);
    border: none;
    outline: none;
    background: none;
}

.swap-button {
    background: #007bff;
    color: white;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    border: none;
    cursor: pointer;
    flex-grow: 0;
    min-width: 30px;
    min-height: 30px;
}

.search-button {
    background: #0d6efd;
    color: #fff;
    padding: 8px 15px;
    font-size: clamp(12px, 2vw, 14px);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
    flex-grow: 0;
    min-width: 60px;
    min-height: 40px;
}

.search-button:hover {
    background: #0056b3;
}

.radio-buttons {
    width: auto;
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-bottom: 0;
    flex-wrap: nowrap;
}

.checkbox-container {
    display: flex;
    align-items: center;
    gap: 5px;
}

.checkbox-container label {
    font-size: clamp(8px, 1.2vw, 10px);
    color: rgba(0, 0, 0, 0.5);
    white-space: nowrap;
}

/* Image Container */
.image-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 10vh;
    padding: 0 5%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    margin-top: 100px;
    z-index: 9;
}

.image-item {
    text-align: center;
    width: 100%;
    max-width: 250px;
}

.image-container img {
    width: 100%;
    height: auto;
    max-width: 50px;
    filter: brightness(1.7);
}

.image-text {
    color: #32373b;
    margin-bottom: 4px;
    font-size: clamp(14px, 2.5vw, 16px);
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 500;
    margin-top: 10px;
    line-height: 1.2;
}

.image-description {
    margin-top: 10px;
    margin-bottom: 20px;
    font-size: clamp(10px, 1.8vw, 12px);
    color: #7b858d;
    line-height: 1.2;
}

/* Kontejner Slika */
.kontejner-slika {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    margin-top: 10px;
    padding: 0 5%;
}

.stavka-slike {
    width: 100%;
    max-width: 300px;
    text-align: left;
}

.stavka-slike img {
    width: 100%;
    height: auto;
    margin-bottom: 5px;
}

.datum-slike {
    font-size: clamp(12px, 2vw, 13px);
    color: #32373b;
    margin-bottom: 5px;
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: bold;
}

.tekst-slike {
    color: #0d6efd;
    margin-bottom: 10px;
    margin-top: 0px;
    font-size: clamp(16px, 2.5vw, 18px);
    font-weight: 500;
    font-family: 'Barlow Condensed', sans-serif;
    line-height: 1.2;
}

.opis-slike {
    font-size: clamp(12px, 2vw, 14px);
    margin-top: 10px;
    color: #7b858d;
    line-height: 1.5;
    margin-bottom: 15px;
    font-family: 'Barlow Condensed', sans-serif;
}

.dugme-detaljnije {
    display: inline-block;
    padding: 10px 20px;
    font-size: clamp(12px, 2vw, 14px);
    color: white;
    background-color: #007bff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
    font-family: 'Barlow Condensed', sans-serif;
}

.dugme-detaljnije:hover {
    background-color: #0056b3;
}

.obavještenje {
    text-align: center;
    padding: 0 5%;
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 500;
    font-size: clamp(24px, 5vw, 32px);
    margin-top: 50px;
    margin-bottom: 0;
    padding-bottom: 5px;
}

/* Slike Kontejner (Popularne destinacije) */
.slike-kontejner {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 0 5%;
    align-items: center;
}

.slika {
    position: relative;
    width: 100%;
    max-width: 600px;
}

.velika img, .mala img {
    width: 100%;
    height: auto;
    display: block;
    filter: brightness(70%);
}

.slike-male {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
    max-width: 600px;
}

.tekst-okvir {
    font-family: 'Barlow Condensed', sans-serif;
    position: absolute;
    bottom: 20px;
    left: 0px;
    text-align: left;
    color: #fff;
}

.tekst-okvir .već {
    background-color: #0d6efd;
    display: block;
    padding-left: 20px;
    border-radius: 5px 5px 0 0;
    font-weight: 500;
    margin: 0;
    font-size: clamp(10px, 1.8vw, 12px);
}

.tekst-okvir .cijena {
    background-color: #0d6efd;
    display: block;
    padding-left: 20px;
    border-radius: 0 0 5px 5px;
    font-weight: 500;
    margin: 0;
    font-size: clamp(16px, 2.5vw, 20px);
}

.tekst-okvir h3 {
    font-size: clamp(20px, 4vw, 30px);
    font-weight: 500;
    margin: 0px 0px;
    padding-left: 20px;
    color: #fff;
}

.tekst-okvir .opis {
    margin: 0px;
    padding-left: 20px;
    padding-bottom: 20px;
    font-size: clamp(12px, 2vw, 16px);
    color: #fff;
}

.dugmić {
    position: absolute;
    bottom: 25px;
    right: 20px;
    padding: 8px 15px;
    background-color: #0d6efd;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: clamp(12px, 2vw, 15px);
    font-weight: 500;
    z-index: 20;
}

.dugmić:hover {
    background-color: rgba(6, 42, 88, 0.8);
}

/* Layout Section */
.layout {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    min-height: 50vh;
    justify-content: center;
}

.text-section {
    width: 100%;
    padding: 20px 5%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: #fff;
    text-align: center;
}

.text-section h1 {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 500;
    font-size: clamp(24px, 5vw, 32px);
    margin: 0 0 20px;
}

.text-section p {
    font-family: 'Barlow Semi Condensed', sans-serif;
    font-size: clamp(14px, 2.5vw, 16px);
    margin: 0 0 16px;
    max-width: 100%;
}

.image-section {
    width: 100%;
    padding: 20px 5%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #fff;
}

.image-section img {
    width: 100%;
    height: auto;
    max-width: 500px;
    object-fit: cover;
}

/* Mobile App Section */
.section {
    display: flex;
    flex-wrap: wrap;
    background-color: #0d6efd;
    color: #fff;
    min-height: 300px;
    justify-content: center;
}

.left {
    width: 100%;
    padding: 20px 5%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.left h1 {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: clamp(24px, 5vw, 40px);
    color: #fff;
    margin-bottom: 10px;
    font-weight: 500;
}

.left p {
    font-family: 'Barlow Semi Condensed', sans-serif;
    font-size: clamp(14px, 2.5vw, 16px);
    color: #fff;
    max-width: 100%;
    line-height: 1.4;
    margin-bottom: 20px;
}

.store-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    justify-content: center;
}

.store-buttons a img {
    width: clamp(120px, 30vw, 160px);
    height: auto;
}

.qr-code img {
    width: clamp(60px, 20vw, 90px);
    height: auto;
}

.right {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 5%;
}

.right img {
    width: 100%;
    max-width: 280px;
    height: auto;
}

/* Footer */
footer {
    color: #fff;
}

.footer-section {
    background-color: #0262ef;
    color: #fff;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: 20px 5%;
    width: 100%;
    justify-content: center;
}

.footer-section h3 {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: clamp(16px, 3vw, 20px);
    font-weight: 500;
    line-height: 1.2;
    margin-bottom: 10px;
    text-align: center;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    width: 100%;
    max-width: 200px;
    text-align: center;
}

.footer-section li {
    font-family: 'Barlow Semi Condensed', sans-serif;
    font-size: clamp(12px, 2vw, 14px);
    margin-bottom: 5px;
    line-height: 1.3;
}

.prijavaKorisnika {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: 20px 5%;
    justify-content: center;
}

.sekcija {
    width: 100%;
    max-width: 400px;
    text-align: center;
}

.sekcija h3 {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: clamp(16px, 3vw, 20px);
    color: #212529;
    font-weight: normal;
    margin-top: 20px;
    margin-bottom: 10px;
    padding: 0;
}

.sekcija p {
    font-family: 'Barlow Semi Condensed', sans-serif;
    font-size: clamp(12px, 2vw, 14px);
    color: #212529;
    margin-top: 0;
    margin-bottom: 16px;
    width: 100%;
}

.dugme123 {
    font-family: 'Barlow Semi Condensed', sans-serif;
    font-size: clamp(12px, 2vw, 14px);
    display: inline-block;
    background-color: #007bff;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 0;
}

.dugme123:hover {
    background-color: #0056b3;
}

.lista-kupci, .lista-centrotrans {
    list-style-type: none;
    padding: 0;
}

.lista-kupci li, .lista-centrotrans li {
    margin-bottom: 5px;
    line-height: 1.2;
}

.lista-kupci a, .lista-centrotrans a {
    color: #79848d;
    font-family: 'Barlow Semi Condensed', sans-serif;
    font-size: clamp(12px, 2vw, 14px);
    text-decoration: none;
}

.lista-kupci a:hover, .lista-centrotrans a:hover {
    text-decoration: underline;
}

.ikone-društvenih-mreža {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
    padding-right: 0;
    bottom: 0;
}

.ikona-mreže {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #7b858d;
    display: flex;
    justify-content: center;
    align-items: center;
}

.ikona-mreže img {
    width: 20px;
    height: 20px;
}

.footer-bottom {
    font-family: 'Barlow Semi Condensed', sans-serif;
    font-size: clamp(10px, 1.8vw, 12px);
    color: #7b858d;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
    padding: 0 5%;
    margin-bottom: 20px;
    border-top: 1px solid white;
    text-align: center;
}

.footer-bottom p {
    max-width: 100%;
}

.payment-methods img {
    height: clamp(40px, 10vw, 60px);
}

/* Desktop Media Queries */
@media (min-width: 768px) {
    .image-container {
        justify-content: space-around;
    }

    .image-item {
        width: 22%;
    }

    .kontejner-slika {
        justify-content: space-between;
    }

    .stavka-slike {
        width: calc(50% - 20px);
    }

    /* Popularne destinacije (Desktop) */
    .slike-kontejner {
        display: grid;
        grid-template-columns: 50% 50%;
        gap: 0;
        padding: 0 5%; /* Reduced padding to ensure images stay connected */
        align-items: stretch;
        max-width: 1366px; /* Added max-width to control the overall width */
        margin: 0 auto; /* Center the container */
    }

    .slika {
        width: 100%;
    }

    .velika img {
        width: 100%;
        height: 100%;
    }

    .slike-male {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 0;
    }

    .slike-male .slika img {
        width: 100%;
        height: 100%;
    }

    .tekst-okvir .već {
        font-size: 12px;
        padding-left: 40px;
    }

    .tekst-okvir .cijena {
        font-size: 28px;
        padding-left: 40px;
    }

    .tekst-okvir h3 {
        font-size: 40px;
        padding-left: 40px;
    }

    .tekst-okvir .opis {
        padding-left: 40px;
        padding-bottom: 70px;
    }

    .dugmić {
        right: 20px; /* Adjusted to match mobile positioning for consistency */
    }

    .layout {
        flex-wrap: nowrap;
    }

    .text-section, .image-section {
        width: 50%;
        align-items: flex-start;
        text-align: left;
    }

    .section {
        flex-wrap: nowrap;
    }

    .left, .right {
        width: 50%;
        align-items: flex-start;
        text-align: left;
    }

    .footer-section {
        gap: 50px;
        justify-content: space-between;
    }

    .prijavaKorisnika {
        justify-content: space-between;
    }

    .sekcija {
        width: 30%;
        text-align: left;
    }

    .footer-section h3, .footer-section ul {
        text-align: left;
    }
}

@media (min-width: 1024px) {
    header {
        padding: 20px 5%;
    }

    nav {
        flex-direction: column;
        width: auto;
    }

    nav ul {
        gap: 10px;
    }

    .bottom-nav {
        gap: 30px;
    }

    .stavka-slike {
        width: calc(25% - 20px);
    }

    .left {
        padding-left: 15%;
    }

    .right img {
        max-width: 280px;
    }
}

/* Mobile Media Queries */
@media (max-width: 767px) {
    body {
        overflow-x: hidden;
    }

    .nav-toggle {
        display: block;
    }

    nav {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: center;
        background: #fff;
        position: absolute;
        top: 60px;
        left: 0;
        padding: 10px;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }

    nav.active {
        display: flex;
    }

    nav ul {
        flex-direction: column;
        width: 100%;
        align-items: center;
    }

    nav ul li {
        width: 100%;
        padding: 10px 0;
        justify-content: center;
    }

    .bottom-nav {
        flex-direction: column;
        align-items: center;
    }

    .search-container {
        flex-direction: column;
        align-items: center;
        width: 95%;
        margin-top: -15vh;
        max-width: 100%;
    }

    .input-field, .date-field {
        align-items: center;
        width: 100%;
    }

    .swap-button {
        width: 35px;
        height: 35px;
        font-size: 14px;
        min-width: 44px;
        min-height: 44px;
    }

    .search-button {
        padding: 10px 20px;
        font-size: clamp(14px, 2.5vw, 16px);
        min-width: 44px;
        min-height: 44px;
    }

    .radio-buttons {
        width: 100%;
        flex-wrap: wrap;
    }

    .checkbox-container label {
        font-size: clamp(10px, 1.8vw, 12px);
    }

    .slike-male {
        grid-template-columns: 1fr;
    }

    .image-container, .kontejner-slika, .slike-kontejner, .layout, .section, .footer-section, .prijavaKorisnika, .footer-bottom {
        max-width: 100%;
        overflow-x: hidden;
    }
}

@media (max-width: 360px) {
    header .logo {
        width: clamp(120px, 30vw, 150px);
    }

    .hero {
        height: 40vh;
        min-height: 250px;
    }

    .search-container {
        margin-top: -10vh;
    }

    .obavještenje {
        font-size: clamp(20px, 5vw, 24px);
    }
}