.vg-modal-meta span::before {
    font-family: "Font Awesome 6 Free", "Font Awesome 5 Free";
    font-weight: 900;
    color: #0077ff;
    margin-right: 6px;
    display: inline-block;
}
/* ============================
   FILTER
============================ */
.valuego-filter {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    overflow-x: auto;
}

.vg-filter-btn {
    padding: 8px 18px;
    border-radius: 20px;
    background: var(--e-global-color-secondary);
    color: var(--e-global-color-text);
    border: none;
    cursor: pointer;
    transition: 0.3s;
    white-space: nowrap;
}

.vg-filter-btn.active {
    background: var(--e-global-color-primary);
    color: #fff;
}

/* ============================
   SWIPER + CARD
============================ */
.swiper-slide {
    height: auto !important;
}
.swiper-wrapper {
    align-items: flex-start;
}
.valuego-swiper {
    width: 100%;
    max-height: 500px;
    overflow: hidden;
}

.swiper-wrapper {
    display: flex;
    flex-direction: row;
    align-items: stretch;
}

.swiper-slide {
    width: auto;
    flex-shrink: 0;
}

.valuego-card {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: 0.3s;
    height: auto;
    max-height: 500px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
}

.valuego-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.12);
}

/* ============================
   IMAGE + BADGE
============================ */
.vg-image {
    position: relative;
    overflow: hidden;
    border-radius: 14px;
}

.vg-image img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.vg-image:hover img {
    transform: scale(1.03);
}

.vg-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 6px;
    color: #fff;
    text-transform: uppercase;
    z-index: 10;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}


.vg-badge-najem { background: #0077ff; }
.vg-badge-prodaja { background: #e63946; }
.vg-badge-nakup { background: #2a9d8f; }

/* ============================
   CARD CONTENT
============================ */
.vg-content {
    padding: 20px;
}

.vg-category {
    font-size: 12px;
    text-transform: uppercase;
    color: #777;
    margin-bottom: 6px;
}

.vg-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
}

.vg-desc {
    font-size: 14px;
    color: #555;
    margin-bottom: 12px;
}

.vg-size {
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
}

.vg-price {
    font-size: 20px;
    font-weight: 700;
    color: #b48a60;
    margin-top: 10px;
}

.vg-hidden {
    display: none !important;
}

/* ============================
   MODAL BACKDROP
============================ */
.vg-modal {
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.65);
    backdrop-filter: blur(4px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
    z-index: 99999;
}

.vg-modal.vg-open {
    opacity: 1;
    pointer-events: auto;
}

/* ============================
   MODAL BOX + ANIMATION
============================ */
.vg-modal-content {
    background: #fff;
    width: 90%;
    max-width: 1100px;
    height: 80%;
    border-radius: 14px;
    display: grid;
    grid-template-columns: 1fr 320px;
    overflow: hidden;
    position: relative;

    transform: translateY(40px);
    opacity: 0;
    transition: all 0.45s ease;
}

.vg-modal.vg-open .vg-modal-content {
    transform: translateY(0);
    opacity: 1;
}

/* ============================
   CLOSE BUTTON
============================ */
.vg-modal-close {
    position: absolute;
    top: 12px;
    right: 18px;
    font-size: 32px;
    cursor: pointer;
    color: #333;
    z-index: 20;
}

/* ============================
   LEFT SIDE CONTENT
============================ */
.vg-modal-left {
    padding: 30px;
    overflow-y: auto;
    scroll-behavior: smooth;
}

.vg-modal-title {
    font-size: 28px;
    margin-bottom: 10px;
}

.vg-modal-meta {
    color: #666;
    margin-bottom: 10px;
}

.vg-modal-price {
    font-size: 26px;
    font-weight: 700;
    color: #b48a60;
    margin-bottom: 20px;
}

.vg-modal-description {
    margin-bottom: 20px;
}

.vg-modal-details {
    list-style: none;
    padding: 0;
}

.vg-modal-details li {
    margin-bottom: 6px;
}

/* ============================
   RIGHT SIDE GALLERY
============================ */
.vg-modal-gallery {
    background: #fafafa;
    padding: 20px;
    overflow-y: auto;
    border-left: 1px solid #eee;
    scroll-behavior: smooth;
}

.vg-modal-gallery img {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 12px;
    object-fit: cover;
}

/* ============================
   CTA BUTTON
============================ */
.vg-modal-btn {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 20px;
    background: #0077ff;
    color: #fff;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    transition: 0.3s;
}

.vg-modal-btn:hover {
    opacity: 0.85;
}

/* ============================
   TRIGGER
============================ */
.vg-modal-trigger {
    cursor: pointer;
}
/* ===== MODAL IZBOLJŠAVE ===== */

/* Premik badge-a v levi kot */
.vg-modal-left .vg-badge {
    position: absolute;
    top: 20px;
    left: 30px;
    right: auto;
    background: #0077ff;
    backdrop-filter: none;
    box-shadow: none;
}

/* Pomik vsebine nižje */
.vg-modal-left {
    padding: 60px 30px 30px 30px;
    position: relative;
}

/* Naslov in meta podatki */
.vg-modal-title {
    font-size: 28px;
    font-weight: 700;
    margin-top: 20px;
    margin-bottom: 12px;
}

.vg-modal-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #666;
    font-size: 15px;
    margin-bottom: 10px;
}

/* Mini ikone ob podatkih */
.vg-modal-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.vg-modal-meta span::before {
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: #0077ff;
}

/* Ikone po tipu podatka */
#vg-modal-tip::before { content: "\f1ad"; }       /* ikona za poslovni prostor */
#vg-modal-lokacija::before { content: "\f3c5"; }  /* ikona za lokacijo */
#vg-modal-velikost::before { content: "\f545"; }  /* ikona za velikost (m²) */

/* Cena */
.vg-modal-price {
    font-size: 26px;
    font-weight: 700;
    color: #b48a60;
    margin-top: 10px;
    margin-bottom: 20px;
}

/* Gumb */
.vg-modal-btn {
    display: inline-block;
    margin-top: 25px;
    padding: 12px 24px;
    background: #A98F71;
    color: #fff;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    transition: 0.3s;
}

.vg-modal-btn:hover {
    background: #fff;
    border: 2px solid #A98F71;
    border-radius: 8px;
}

/* Galerija */
.vg-modal-gallery {
    background: #fafafa;
    padding: 20px;
    overflow-y: auto;
    border-left: 1px solid #eee;
    scroll-behavior: smooth;
}

.vg-modal-gallery img {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 12px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.vg-modal-gallery img:hover {
    transform: scale(1.03);
}
/* LIGHTBOX */
.vg-lightbox {
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(6px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 100000;
}

.vg-lightbox.vg-open {
    opacity: 1;
    pointer-events: auto;
}

.vg-lightbox img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 10px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.5);
    object-fit: contain;
}

.vg-lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    color: #fff;
    cursor: pointer;
    font-weight: 300;
    transition: 0.3s;
}

.vg-lightbox-close:hover {
    color: #ccc;
}
/* LIGHTBOX */
.vg-lightbox {
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(6px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 100000;
}

.vg-lightbox.vg-open {
    opacity: 1;
    pointer-events: auto;
}

.vg-lightbox img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 10px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.5);
    object-fit: contain;
}

/* Close button */
.vg-lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    color: #fff;
    cursor: pointer;
    font-weight: 300;
    transition: 0.3s;
}

.vg-lightbox-close:hover {
    color: #ccc;
}

/* Navigation arrows */
.vg-lightbox-prev,
.vg-lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 50px;
    color: #fff;
    cursor: pointer;
    user-select: none;
    transition: 0.3s;
    font-weight: 300;
}

.vg-lightbox-prev:hover,
.vg-lightbox-next:hover {
    color: #ccc;
}

.vg-lightbox-prev { left: 40px; }
.vg-lightbox-next { right: 40px; }
/* Font Awesome fix for modal */
.vg-modal,
.vg-modal * {
    font-family: inherit;
}

.vg-modal-meta span::before {
    font-family: "Font Awesome 6 Free", "Font Awesome 5 Free";
    font-weight: 900;
    color: #0077ff;
    margin-right: 6px;
    display: inline-block;
}
.vg-modal {
    transform: none !important;
    font-family: "Font Awesome 6 Free", "Font Awesome 5 Free", sans-serif;
}
/* 🔧 Popravek fontov v modalu */
.vg-modal {
    font-family: "Poppins", "Inter", "Roboto", sans-serif; /* ali tvoj glavni font */
}

/* Font Awesome samo za ikone */
.vg-modal-meta span::before {
    font-family: "Font Awesome 6 Free", "Font Awesome 5 Free";
    font-weight: 900;
    color: #A98F71;
    margin-right: 6px;
    display: inline-block;
}
/* ============================
   📱 MOBILNA VERZIJA WIDGETA
   ============================ */
@media (max-width: 768px) {

    /* 🔹 Filter gumbi – horizontalni scroll */
    .valuego-filter {
        display: flex;
        overflow-x: auto;
        gap: 10px;
        padding: 10px 0;
        scrollbar-width: none;
    }
    .valuego-filter::-webkit-scrollbar {
        display: none;
    }
    .vg-filter-btn {
        flex: 0 0 auto;
        padding: 8px 16px;
        font-size: 14px;
        border-radius: 20px;
    }

    /* 🔹 Swiper – 1 kartica na vrstico */
    .valuego-swiper {
        padding: 0 10px;
    }
    .swiper-slide {
        width: 100% !important;
        height: auto !important;
    }

    /* 🔹 Kartica – naj se raztegne po vsebini */
    .valuego-card {
        display: flex;
        flex-direction: column;
        height: auto;
        padding: 14px;
        border-radius: 12px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.08);
        background: #fff;
        gap: 10px;
    }

    /* 🔹 Slika */
    .vg-image img {
        width: 100%;
        height: auto;
        border-radius: 10px;
    }

    /* 🔹 Vsebina */
    .vg-content {
        padding: 0;
    }
    .vg-category {
        font-size: 14px;
        color: #666;
    }
    .vg-title {
        font-size: 18px;
        margin: 4px 0;
    }
    .vg-desc {
        font-size: 14px;
        line-height: 1.5;
        color: #444;
    }
    .vg-size {
        font-size: 14px;
        color: #777;
    }
    .vg-price {
        font-size: 20px;
        font-weight: 700;
        color: #b38b4d;
        margin-top: 6px;
    }

    /* 🔹 Skrij puščice Swiperja */
    .swiper-button-prev,
    .swiper-button-next {
        display: none !important;
    }

@media (max-width: 768px) {

    .vg-modal-content {
        display: flex;
        flex-direction: column;
        gap: 20px;
        padding: 0;
    }

    /* 1. naslovna slika */
    .vg-modal-gallery:first-child {
        order: 1;
    }

    /* 2. osnovni podatki */
    .vg-modal-left {
        order: 2;
        padding: 50px 20px 0px 20px;
    }

    /* 3. opis */
    .vg-modal-description {
        order: 3;
        padding: 0 20px;
    }

    /* 4. galerija slider */
    #vg-modal-gallery {
        order: 4;
        padding: 0 20px 20px;
    }
}