/* GLOBAL RESET */
.car-page-wrapper {
    margin-top: 140px; /* Razmak ispod headera */
}

/* HERO SECTION LAYOUT */
.car-hero {
    display: flex;
    gap: 55px;
    align-items: flex-start;
}

/* SLIDER WRAPPER */
.slider-box {
    width: 65%;
    position: relative;
}

/* TOP BADGE */
.top-badge {
    position: absolute;
    top: 18px;
    left: 18px;
    background: #ff3d3d;
    color: #fff;
    padding: 10px 18px;
    font-size: 15px;
    font-weight: 700;
    border-radius: 8px;
    z-index: 20;
    box-shadow: 0 4px 15px rgba(0,0,0,0.25);
}

/* IMAGE SLIDER */
.mySwiper {
    width: 100%;
    height: 480px;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 15px 45px rgba(0,0,0,0.12);
}

.mySwiper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* RIGHT INFO BOX */
.car-info-box {
    width: 35%;
    background: #fff;
    padding: 30px;
    border-radius: 18px;
    box-shadow: 0 10px 35px rgba(0,0,0,0.12);
    position: sticky;
    top: 130px;
    height: fit-content;
}

.car-info-box h1 {
    font-size: 30px;
    font-weight: 800;
    margin-bottom: 12px;
}

.price-line {
    display: flex;
    justify-content: space-between;
    margin: 20px 0;
    font-size: 24px;
    font-weight: 700;
    color: #111;
}

/* CTA BUTTONS */
.cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cta-buttons a {
    padding: 16px;
    border-radius: 12px;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-weight: 600;
    transition: 0.25s ease;
}

/* WhatsApp */
.whatsapp {
    background: #25D366;
    color: #fff;
}
.whatsapp:hover {
    background: #1ebe5a;
}

/* Call */
.call {
    background: #111;
    color: #fff;
}
.call:hover {
    background: #000;
}

/* EXTRA BUTTONS – Move inside info-box */
.extra-buttons {
    margin-top: 15px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.share-btn,
.offer-btn {
    padding: 16px;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: 0.25s ease;
    border: none;
}

/* Share */
.share-btn {
    background: #f3f3f3;
}
.share-btn:hover {
    background: #e4e4e4;
}

/* Offer */
.offer-btn {
    background: #0d6efd;
    color: #fff;
}
.offer-btn:hover {
    background: #004bcb;
}

/* DETAILS SECTION */
.details {
    margin-top: 100px;
}

/* TABS */
.tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 25px;
    border-bottom: 2px solid #eee;
    padding-bottom: 12px;
}

.tab {
    padding: 12px 22px;
    background: #f5f5f5;
    border-radius: 8px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: 0.25s ease;
}

.tab.active {
    background: #111;
    color: #fff;
}

.tab:hover {
    background: #ddd;
}

/* TAB CONTENT */
.tab-content {
    display: none;
    animation: fade 0.35s ease;
}

.tab-content.active {
    display: block;
}

/* Table */
.details table {
    width: 100%;
    border-collapse: collapse;
}

.details table td {
    padding: 14px 0;
    border-bottom: 1px solid #eee;
    font-size: 17px;
}

.details table td:first-child {
    font-weight: 700;
    color: #444;
}

/* Equipment list */
.equip-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.equip-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 17px;
    padding: 6px 0;
    border-bottom: 1px solid #eee;
}

.equip-list li i {
    color: #22c55e;
    font-size: 20px;
}

/* MOBILE */
@media(max-width: 900px) {
    .car-hero {
        flex-direction: column;
    }
    .slider-box {
        width: 100%;
    }
    .car-info-box {
        width: 100%;
        position: relative;
        top: 0;
    }
    .mySwiper {
        height: 350px;
    }
}

/* FLOATING STICKY CALCULATOR BUTTON */
.leasing-icon-btn {
    position: fixed;
    top: 180px; /* pozicija visine - možeš menjati */
    right: 40px; /* udaljenost od desne ivice */
    
    width: 58px;
    height: 58px;

    border-radius: 14px;
    background: #0d6efd;
    color: #fff;
    border: none;

    display: flex;
    justify-content: center;
    align-items: center;

    font-size: 26px;
    cursor: pointer;

    box-shadow: 0 8px 25px rgba(0,0,0,0.18);
    transition: 0.25s ease;

    z-index: 1500;
}

.leasing-icon-btn:hover {
    background: #004ee0;
    transform: translateY(-3px);
}

/* OVERLAY */
.leasing-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    backdrop-filter: blur(5px);
    display: none;
    justify-content: center;
    align-items: center;
    padding: 20px;
    z-index: 2000;
}

/* SHOW CLASS */
.leasing-modal-overlay.active {
    display: flex;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* MODAL BOX */
.leasing-modal {
    width: 100%;
    max-width: 480px;
    background: white;
    padding: 28px;
    border-radius: 16px;
    box-shadow: 0 15px 45px rgba(0,0,0,0.15);
    position: relative;
    transform: translateY(-20px);
    animation: slideIn 0.35s ease forwards;
}

@keyframes slideIn {
    from { transform: translateY(40px); opacity: 0; }
    to   { transform: translateY(0); opacity: 1; }
}

.leasing-modal h2 {
    text-align: center;
    margin-bottom: 20px;
    font-weight: 700;
}

/* CLOSE BUTTON */
.leasing-close {
    background: none;
    border: none;
    font-size: 26px;
    position: absolute;
    top: 14px;
    right: 14px;
    cursor: pointer;
    color: #555;
}
.leasing-close:hover {
    color: #000;
}

/* ROWS */
.leasing-row {
    display: flex;
    flex-direction: column;
    margin-bottom: 12px;
}

.leasing-row label {
    font-weight: 600;
    margin-bottom: 4px;
}

.leasing-row input {
    padding: 10px;
    border-radius: 10px;
    border: 1px solid #ddd;
}

/* BUTTON */
.calc-btn {
    width: 100%;
    background: #0d6efd;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 12px;
    margin-top: 10px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.25s ease;
}

.calc-btn:hover {
    background: #004ee0;
}

/* RESULT */
.leasing-result {
    display: none;
    margin-top: 15px;
    padding: 14px;
    background: #e9f2ff;
    border-radius: 10px;
    font-size: 18px;
    font-weight: 600;
}

/* FLOATING STICKY ROUTE BUTTON */
.route-icon-btn {
    position: fixed;
    top: 260px; /* ispod kalkulatora */
    right: 40px;

    width: 58px;
    height: 58px;

    border-radius: 14px;
    background: #ff3d3d; /* crvena za route – da se razlikuje */
    color: #fff;
    border: none;

    display: flex;
    justify-content: center;
    align-items: center;

    font-size: 27px;
    cursor: pointer;

    box-shadow: 0 8px 25px rgba(0,0,0,0.18);
    transition: 0.25s ease;

    z-index: 1500;
}

.route-icon-btn:hover {
    background: #d32727;
    transform: translateY(-3px);
}

/* Desktop only */
@media (min-width: 901px) {
    .route-icon-btn {
        display: flex;
    }
}

/* Mobile = hide */
@media (max-width: 900px) {
    .route-icon-btn {
        display: none;
    }
}

/* ===========================
   RESPONSIVE: DESKTOP ONLY
   =========================== */
@media (min-width: 901px) {
    .leasing-icon-btn {
        display: flex;
    }
    .mobile-icon-bar {
        display: none;
    }
}

/* ===========================
   RESPONSIVE: MOBILE ONLY
   =========================== */
@media (max-width: 900px) {

    /* Hide floating button */
    .leasing-icon-btn {
        display: none;
    }

    /* BOTTOM BAR */
    .mobile-icon-bar {
        position: sticky;
        bottom: 0;
        left: 0;
        right: 0;

        background: #ffffff;
        padding: 12px 20px;

        display: flex;
        justify-content: space-around;
        align-items: center;

        border-top: 1px solid #ddd;
        box-shadow: 0 -4px 14px rgba(0,0,0,0.1);
        z-index: 1500;
    }

    .mobile-icon-bar button,
    .mobile-icon-bar a {
        display: flex;
        flex-direction: column;
        align-items: center;

        font-size: 14px;
        color: #111;
        text-decoration: none;

        background: none;
        border: none;

        cursor: pointer;
    }

    .mobile-icon-bar i {
        font-size: 24px;
        margin-bottom: 3px;
        color: #0d6efd;
    }
    .mobile-icon-bar button i {
        font-size: 32px;
    }
}