/*
Theme Name: Neimar-V
Theme URI: https://neimar-v.rs/
Author: Cyber Team (Miloš Lazić)
Author URI: https://cyberteam.rs/
Description: Minimalna, brza custom tema za Neimar-V.
Version: 1.0.0
Text Domain: neimarv
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
*/


/* disable page scrolling when Elementor lightbox is opened, from https://element.how/elementor-lightbox-disable-page-scrolling/ */
:is(html,body):has(.elementor-lightbox:not([style*="display"])) {
    overflow: hidden;
}



/* 1. RESET CELOG ZAGLAVLJA */
.elementor-lightbox .elementor-slideshow__header {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important; /* Sve ikonice gura udesno */
    padding: 15px 60px 15px 25px !important; /* 60px desnog prostora da ikonice ne preklope X za zatvaranje */
    width: 100% !important;
    background: rgba(0, 0, 0, 0.1) !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    box-sizing: border-box !important;
    z-index: 9999 !important;
}

/* 2. BROJAČ (LEVO) */
.elementor-lightbox .elementor-slideshow__counter {
    order: -1 !important; /* Forsira ga skroz na prvo mesto (levo) */
    margin-right: auto !important; /* Odguruje sve ikonice skroz desno */
    color: #ffffff !important;
    font-size: 16px !important;
    display: block !important;
    position: static !important;
}

/* Popravka za brojeve (3 / 15) koji su bili skriveni */
.elementor-lightbox .elementor-slideshow__counter span {
    display: inline-block !important;
    color: #ffffff !important;
}

/* 3. IKONICE (DESNO) */
.elementor-lightbox .elementor-slideshow__header svg.e-font-icon-svg {
    display: block !important;
    position: static !important;
    width: 20px !important;
    height: 20px !important;
    fill: #ffffff !important;
    margin-left: 22px !important; /* Jednak razmak između ikonica */
    background: transparent !important;
    border: none !important;
    cursor: pointer !important;
}

/* 4. SKRIVANJE NEVIDLJIVIH ELEMENATA KOJI SMETAJU */
.elementor-lightbox .elementor-slideshow__header .elementor-hidden,
.elementor-lightbox .elementor-slideshow__share-menu {
    display: none !important;
}

@media (max-width: 480px) {
    .elementor-lightbox .elementor-slideshow__header {
        padding: 10px !important;
        gap: 8px !important;
    }
    .elementor-lightbox .elementor-slideshow__header svg.e-font-icon-svg {
        width: 16px !important;
        height: 16px !important;
        margin-left: 10px !important;
    }
}


/*-- Tooltip za status jedinice START--*/
/*
CSS klasa ikonice: nv-status-tooltip

Custom attribute primeri:
data-status|Slobodno
data-status|Prodato

Napomena:
Status se prikazuje preko CSS content: attr(data-status);
Ne koristiti title atribut zbog native browser tooltipa.
*/
.nv-status-tooltip {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.nv-status-tooltip::after {
    content: attr(data-status);
    position: absolute;
    left: 50%;
    bottom: calc(100% + 8px);
    transform: translateX(-50%);
    background: #111;
    color: #fff;
    font-size: 12px;
    line-height: 1;
    padding: 8px 10px;
    border-radius: 8px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    z-index: 9999;
    box-shadow: 0 8px 20px rgba(0,0,0,0.18);
    transition: opacity 0.18s ease, visibility 0.18s ease, transform 0.18s ease;
}

.nv-status-tooltip::before {
    content: "";
    position: absolute;
    left: 50%;
    bottom: calc(100% + 2px);
    transform: translateX(-50%);
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid #111;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.18s ease, visibility 0.18s ease;
    z-index: 9999;
}

.nv-status-tooltip:hover::after,
.nv-status-tooltip:hover::before {
    opacity: 1;
    visibility: visible;
}

/*-- Tooltip za status jedinice KRAJ--*/

/* ==================================================
   Neimar V - Single vodič / blog content
================================================== */


/*-- PRVO SLOVO UVUČENO za pasus klase .neimar-dropcap--*/
.neimar-dropcap p:first-of-type::first-letter {
    float: left;
    font-size: 5.6rem;
    line-height: 0.82;
    font-weight: 700;
    margin: 0.06em 0.14em 0 0;
    color: #2f343b;
    font-family: inherit;
}

.neimar-dropcap img {
    max-width: 100%;
    height: auto;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.neimar-dropcap figure,
.neimar-dropcap .wp-caption {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.neimar-dropcap figure img,
.neimar-dropcap .wp-caption img {
    max-width: 100%;
    height: auto;
    display: block;
}

.neimar-dropcap figcaption,
.neimar-dropcap .wp-caption-text {
    max-width: 100%;
    font-size: 15px;
    line-height: 1.5;
    color: #666;
    margin-top: 10px;
}