/* --- APARTMANI SPECIFIČNI STIL --- */
.apartmani-container {
    padding: 160px 10% 80px;
    max-width: 1400px;
    margin: 0 auto;
}

.apt-row {
    display: flex;
    gap: 80px;
    align-items: center;
}

/* Galerija strana */
.apt-gallery-side {
    flex: 1.3;
    height: 500px;
    min-width: 0; /* Ključno za Swiper */
}

.swiper {
    width: 100%;
    height: 100%;
    border-radius: 2px;
}

.swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Info strana */
.apt-info-side {
    flex: 1;
}

.label {
    font-size: 11px;
    letter-spacing: 3px;
    color: #c5a47e;
    text-transform: uppercase;
    display: block;
    margin-bottom: 15px;
}

.apt-info-side h2 {
    font-family: 'Playfair Display', serif;
    font-size: 42px;
    font-weight: 400;
    margin-bottom: 25px;
}

.apt-info-side p {
    color: #666;
    line-height: 1.8;
    margin-bottom: 25px;
    font-size: 15px;
}

.amenities-mini {
    font-size: 12px;
    color: #1a1a1a;
    font-weight: 600;
    margin-bottom: 40px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-book {
    display: inline-block;
    padding: 18px 45px;
    background: #1a1a1a;
    color: #fff;
    text-decoration: none;
    font-size: 12px;
    letter-spacing: 2px;
    font-weight: 600;
    transition: 0.3s ease;
}

.btn-book:hover {
    background: #c5a47e;
    transform: translateY(-2px);
}
.btn-more {
    display: inline-block;
    padding: 18px 45px;
    background: #1a1a1a;
    color: #fff;
    text-decoration: none;
    font-size: 12px;
    letter-spacing: 2px;
    font-weight: 600;
    transition: 0.3s ease;
    background-color: #1a1a1a !important; /* Crna pozadina */
    color: #ffffff !important;           /* Forsiramo bijelu boju teksta */
    padding: 12px 25px !important;      /* Unutarnji razmak */
    display: inline-flex !important;    /* Centriranje teksta */
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    letter-spacing: 1px;
    border-radius: 2px;
    transition: 0.3s ease;
    border: 1px solid #1a1a1a;
    min-width: 140px;                  /* Osigurava da gumb nije premalen */
    height: auto;
}

.btn-more:hover {
    background: #c5a47e;
    transform: translateY(-2px);
    background-color: #c5a47e !important; /* Zlatna na hover */
    border-color: #c5a47e !important;
    color: #fff !important;
}

/* Prilagodba strelica */
.swiper-button-next, .swiper-button-prev { color: #ddd !important; }
.swiper-pagination-bullet-active { background: #fff !important; }

/* MOBITEL */
@media (max-width: 1024px) {
    .apt-row {
        flex-direction: column;
        gap: 40px;
    }
    .apt-gallery-side {
        width: 100%;
        height: 350px;
    }
    .apartmani-container { padding: 120px 5% 60px; }
}
/* MODAL STIL */
/* MODAL - Osiguravamo da se može skrolati ako je sadržaj velik */
.modal {
    display: none; 
    position: fixed;
    z-index: 2000;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.8);
    backdrop-filter: blur(5px);
    overflow-y: auto; /* Omogućuje skrolanje cijelog modala na mobitelu */
    padding: 20px 0;
}

.modal-content {
    background-color: #fff;
    margin: auto; /* Centrira ga okomito i vodoravno */
    padding: 30px;
    width: 90%;
    max-width: 450px; /* Malo ga sužavamo da izgleda elegantnije */
    border-radius: 4px;
    position: relative;
    /* Da gumb ne pobjegne */
    max-height: 90vh; 
    overflow-y: auto; 
}

.close-modal {
    position: absolute;
    right: 20px; top: 10px;
    font-size: 30px; cursor: pointer;
}

.booking-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 15px;
    text-align: left;
}

.booking-form select, .booking-form input {
    padding: 12px;
    border: 1px solid #ddd;
    font-family: 'Montserrat', sans-serif;
}

.date-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.result-box {
    background: #f9f9f9;
    padding: 20px;
    padding-bottom: 10px;
    border-left: 4px solid #c5a47e;
    margin-top: 15px;
}

.send-btn {
    width: 100%;
    padding: 15px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    margin-top: 10px;
    transition: 0.3s;
}
.send-options {
    margin-top: 15px;
    padding-bottom: 10px; /* Malo zraka na dnu */
}

.send-btn.wa { background: #25D366; color: white; }
.send-btn.mail { background: #1a1a1a; color: white; }
/* Checkbox sustav za apartmane */
.apt-checkbox-grid {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}
.apt-check { flex: 1; cursor: pointer; }
.apt-check input { display: none; }
.box-label {
    display: block;
    padding: 10px;
    border: 1px solid #ddd;
    text-align: center;
    font-size: 12px;
    border-radius: 4px;
    transition: 0.3s;
}
.apt-check input:checked + .box-label {
    background: #c5a47e;
    color: white;
    border-color: #c5a47e;
}
.section-label { font-weight: 600; font-size: 13px; margin-bottom: 8px; display: block; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.guest-info-fields .input-group { margin-bottom: 10px; }
.apt-checkbox-grid {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}
.apt-check { flex: 1; cursor: pointer; }
.apt-check input { display: none; }
.box-label {
    display: block;
    padding: 10px;
    border: 1px solid #ddd;
    text-align: center;
    border-radius: 4px;
    font-size: 12px;
}
.apt-check input:checked + .box-label {
    background: #c5a47e;
    color: white;
    border-color: #c5a47e;
}
/* Specifičan stil za gumb u navigaciji */
.nav-cta-btn {
    background-color: #1a1a1a !important; /* Crna pozadina */
    color: #ffffff !important;           /* Forsiramo bijelu boju teksta */
    padding: 12px 25px !important;      /* Unutarnji razmak */
    display: inline-flex !important;    /* Centriranje teksta */
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    letter-spacing: 1px;
    border-radius: 2px;
    transition: 0.3s ease;
    border: 1px solid #1a1a1a;
    min-width: 140px;                  /* Osigurava da gumb nije premalen */
    height: auto;
}

.nav-cta-btn:hover {
    background-color: #c5a47e !important; /* Zlatna na hover */
    border-color: #c5a47e !important;
    color: #fff !important;
}

/* Osiguranje za mobilni meni */
@media (max-width: 1024px) {
    .nav-cta-btn {
        margin-top: 10px;
        width: 100%; /* Na mobitelu neka bude preko cijele širine menija */
    }
}
/* ── MOBILNI FIX: slike u galeriji apartmana ── */
@media (max-width: 768px) {

    /* Galerija na stranicama apartmana — fiksna visina da slika ne raste */
    .apt-main-swiper,
    .swiper.mySwiper1,
    .swiper.mySwiper2,
    .swiper.mySwiper3 {
        height: 280px !important;
        width: 100% !important;
        overflow: hidden;
    }

    /* Slika unutar swiipera — reže se, ne rasteže */
    .apt-main-swiper .swiper-slide img,
    .mySwiper1 .swiper-slide img,
    .mySwiper2 .swiper-slide img,
    .mySwiper3 .swiper-slide img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        object-position: center !important;
        display: block !important;
    }

    /* Sakrij strelice swiipera na mobitelu */
    .n1, .p1, .n2, .p2, .n3, .p3,
    .apt-main-swiper .swiper-button-next,
    .apt-main-swiper .swiper-button-prev {
        display: none !important;
    }

    /* Thumbnail swiper — sakrij na mobitelu */
    .apt-thumb-swiper {
        display: none !important;
    }
}