/* Centralni CSS: kategorije i javne informativne stranice */

:root{
  --red:#ed1c24;
  --text:#18304a;
  --muted:#66788a;
  --line:#dfe6ee;
  --bg:#f7f9fb;
  --white:#fff;
  --green:#41b96b;
  --blue:#2788e8;
}
*{box-sizing:border-box}
html,body{margin:0;color:var(--text);font-family:Arial,Helvetica,sans-serif}
button,input,select{font:inherit}
.categories-page{padding-top:22px}
.categories-head{margin-bottom:18px}

.categories-grid{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:14px;
}

.category-box{
    background:#fff;
    border:1px solid var(--line);
    border-radius:7px;
    overflow:hidden;
}

.category-main{
    width:100%;
    min-height:58px;
    display:grid;
    grid-template-columns:38px 1fr 24px;
    align-items:center;
    gap:8px;
    padding:9px 12px;
    border:0;
    background:#fff;
    color:#263a50;
    text-align:left;
    cursor:pointer;
    font-size:12px;
    font-weight:700;
}

.category-main:hover{background:#fafbfc}
.category-main{list-style:none}
.category-main::-webkit-details-marker{display:none}
.category-box[open] .category-arrow{transform:rotate(180deg)}

.category-icon{
    width:34px;
    height:34px;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:7px;
    background:#f5f7fa;
    font-size:18px;
}

.category-arrow{
    text-align:right;
    color:#7b8b9c;
    font-size:14px;
}

.subcategory-list{
    border-top:1px solid #edf1f5;
    padding:7px 12px 10px 58px;
}

.subcategory-list a{
    display:block;
    padding:5px 0;
    color:#526579;
    text-decoration:none;
    font-size:11px;
}

.subcategory-list a:hover{
    color:var(--red);
}

@media(max-width:980px){
    .categories-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}

@media(max-width:640px){
    .categories-grid{grid-template-columns:1fr}
}


.categories-layout{
    display:grid;
    grid-template-columns:290px minmax(0,1fr);
    gap:14px;
    align-items:start;
}

.categories-menu{
    background:#fff;
    border:1px solid var(--line);
    border-radius:7px;
    overflow:hidden;
}

.categories-menu-title{
    padding:13px 14px;
    border-bottom:1px solid var(--line);
    font-size:14px;
    font-weight:700;
}

.categories-menu a{
    min-height:34px;
    display:flex;
    align-items:center;
    padding:7px 14px;
    border-bottom:1px solid #edf1f5;
    color:#263a50;
    text-decoration:none;
    font-size:11px;
    font-weight:600;
}

.categories-menu a:last-child{
    border-bottom:0;
}

.categories-menu a:hover{
    background:#fafbfc;
    color:var(--red);
}

.categories-menu a.active{
    background:#fff1f1;
    color:var(--red);
    font-weight:700;
    border-left:4px solid var(--red);
    padding-left:10px;
}

.categories-content{
    background:#fff;
    border:1px solid var(--line);
    border-radius:7px;
    padding:16px 18px 18px;
    min-height:420px;
}

.categories-content h2{
    margin:0 0 4px;
    font-size:20px;
}

.categories-content .sub{
    margin:0 0 16px;
    font-size:11px;
    color:#7b8b9c;
}

.subcategories-grid{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:8px 14px;
}

.subcategories-grid a{
    min-height:34px;
    display:flex;
    align-items:center;
    padding:7px 10px;
    border:1px solid #e5eaf0;
    border-radius:5px;
    background:#fff;
    color:#263a50;
    text-decoration:none;
    font-size:11px;
    font-weight:600;
}

.subcategories-grid a:hover{
    border-color:#efb2b5;
    background:#fff8f8;
    color:var(--red);
}

.no-subcategories{
    padding:15px 0;
    color:#7b8b9c;
    font-size:12px;
}

@media(max-width:980px){
    .categories-layout{
        grid-template-columns:240px minmax(0,1fr);
    }

    .subcategories-grid{
        grid-template-columns:repeat(2,minmax(0,1fr));
    }
}

@media(max-width:700px){
    .categories-layout{
        grid-template-columns:1fr;
    }

    .categories-menu{
        max-height:360px;
        overflow-y:auto;
    }

    .subcategories-grid{
        grid-template-columns:1fr;
    }
}


.subcategories-tree{
    margin-top:4px;
}

.subcategory-level-0{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:12px 16px;
}

.subcategory-item{
    min-width:0;
}

.subcategory-item > a{
    display:block;
    padding:7px 10px;
    border:1px solid #e5eaf0;
    border-radius:5px;
    background:#fff;
    color:#263a50;
    text-decoration:none;
    font-size:11px;
    font-weight:700;
}

.subcategory-item > a:hover{
    border-color:#efb2b5;
    background:#fff8f8;
    color:var(--red);
}

.subcategory-level-1,
.subcategory-level-2,
.subcategory-level-3{
    margin:5px 0 0 12px;
}

.subcategory-level-1 > .subcategory-item > a{
    border:0;
    border-left:2px solid #dfe6ee;
    border-radius:0;
    padding:4px 8px;
    font-weight:600;
}

.subcategory-level-2 > .subcategory-item > a{
    border:0;
    border-left:2px solid #edf1f5;
    border-radius:0;
    padding:3px 8px;
    font-weight:400;
}

.subcategory-level-3 > .subcategory-item > a{
    border:0;
    border-left:2px solid #f2f4f7;
    border-radius:0;
    padding:3px 8px;
    font-weight:400;
    font-size:10px;
}

@media(max-width:980px){
    .subcategory-level-0{
        grid-template-columns:repeat(2,minmax(0,1fr));
    }
}

@media(max-width:700px){
    .subcategory-level-0{
        grid-template-columns:1fr;
    }
}


/* ==========================================================
   KATEGORIJE - pregled nivoa 2 / 3 / 4
   ========================================================== */

.category-content-head{
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:20px;
    margin-bottom:14px;
    padding-bottom:12px;
    border-bottom:1px solid #edf1f5;
}

.category-content-head h2{
    margin:0 0 4px;
    font-size:20px;
    color:#182b41;
}

.category-content-head .sub{
    margin:0;
    font-size:11px;
    color:#7b8b9c;
}

.category-browser{
    display:grid;
    grid-template-columns:
        repeat(3,minmax(0,1fr));
    gap:12px;
    align-items:start;
}

.category-column{
    min-width:0;
    background:#fff;
    border:1px solid #dfe6ee;
    border-radius:7px;
    overflow:hidden;
}

.category-column-head{
    min-height:38px;
    display:flex;
    align-items:center;
    padding:8px 12px;
    background:#f7f9fb;
    border-bottom:1px solid #dfe6ee;
    color:#18304a;
    font-size:11px;
    font-weight:700;
}

.category-column-list{
    min-height:260px;
    max-height:520px;
    overflow-y:auto;
    padding:5px 0;
}

.category-choice{
    width:100%;
    min-height:34px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:10px;
    padding:7px 11px;
    border:0;
    border-bottom:1px solid #edf1f5;
    background:#fff;
    color:#263a50;
    text-align:left;
    cursor:pointer;
    font-family:inherit;
    font-size:11px;
    font-weight:600;
}

.category-choice:last-child{
    border-bottom:0;
}

.category-choice:hover{
    background:#fafbfc;
    color:var(--red);
}

.category-choice.active{
    background:#fff1f1;
    color:var(--red);
    font-weight:700;
    box-shadow:inset 3px 0 0 var(--red);
}

.category-choice-arrow{
    flex:0 0 auto;
    color:#8b9aaa;
    font-size:14px;
}

.category-choice.active
.category-choice-arrow{
    color:var(--red);
}

.category-final{
    text-decoration:none;
}

.category-column-empty{
    padding:18px 12px;
    color:#8a99a8;
    font-size:11px;
    line-height:1.4;
}

@media(max-width:1050px){
    .category-browser{
        grid-template-columns:1fr;
    }

    .category-column-list{
        min-height:0;
        max-height:350px;
    }
}


.categories-menu a{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:8px;
}

.categories-menu a > span:first-child{
    min-width:0;
}

.categories-menu-arrow{
    flex:0 0 auto;
    margin-left:8px;
    color:#8b9aaa;
    font-size:16px;
    line-height:1;
    font-weight:400;
}

.categories-menu a:hover .categories-menu-arrow,
.categories-menu a.active .categories-menu-arrow{
    color:var(--red);
}


.info-content{
    font-size:13px;
    line-height:1.65;
    color:#263a50;
}

.info-content p{
    margin:0 0 14px;
}

.info-content strong{
    color:#182b41;
}

.subscription-price-table{
    max-width:560px;
    margin:12px 0 18px;
    border:1px solid var(--line);
    border-radius:6px;
    overflow:hidden;
}
.subscription-price-head,
.subscription-price-row{
    display:grid;
    grid-template-columns:minmax(0,1fr) 150px;
    align-items:center;
    min-height:42px;
    padding:0 14px;
}
.subscription-price-head{
    background:#f4f7fa;
    font-size:11px;
    font-weight:700;
}
.subscription-price-row{
    border-top:1px solid var(--line);
    font-size:12px;
}

/* V4 — OGLAŠAVANJE — mobilne tabele cijena */
@media(max-width:640px){
    .subscription-price-table{
        width:100%;
        max-width:100%;
    }

    .subscription-price-head,
    .subscription-price-row{
        grid-template-columns:minmax(0,1fr) 72px;
        gap:10px;
        padding:0 8px;
        min-height:36px;
    }
}

/* V4 — SuperOGLAS cjenovnik — kompaktan mobilni prikaz */
@media(max-width:640px){
    .subscription-price-head,
    .subscription-price-row{
        grid-template-columns:minmax(0,1fr) 95px;
        column-gap:14px;
    }

    .subscription-price-head > :first-child,
    .subscription-price-row > :first-child{
        white-space:nowrap;
    }
}

/* V4 — KATEGORIJE — sklapanje prethodnog nivoa na mobilnom */
@media(max-width:640px){
    .category-column-head.category-mobile-toggle{
        cursor:pointer;
        display:flex;
        align-items:center;
        justify-content:space-between;
        gap:8px;
    }

    .category-column-head.category-mobile-toggle::after{
        content:"▼";
        flex:0 0 auto;
        font-size:9px;
    }

    .category-column.category-mobile-collapsed
    .category-column-head.category-mobile-toggle::after{
        content:"▶";
    }

    .category-column.category-mobile-collapsed
    .category-column-list{
        display:none;
    }

    .category-column.category-mobile-collapsed{
        min-height:0;
    }
}

/* V4 — KATEGORIJE — mobilno prikazi samo izabrani prethodni nivo */
@media(max-width:640px){
    .category-column-list.mobile-level-selected > .category-choice:not(.active){
        display:none;
    }

    .category-column-list.mobile-level-selected{
        min-height:0;
        max-height:none;
        overflow:visible;
        padding:0;
    }

    .category-column-list.mobile-level-selected > .category-choice.active{
        min-height:30px;
        padding:5px 10px;
        border-bottom:0;
        box-shadow:none;
    }
}

/* V4 — KATEGORIJE — mobilno bez suvišnog naslova odabrane kategorije */
@media(max-width:640px){
    .category-content-head{
        display:none;
    }
}

/* PRIVREMENI TEST */
.category-content-head{
    display:none !important;
}

/* V4 — KATEGORIJE — mobilno: izabrana glavna kategorija ostaje jedan red */
@media(max-width:640px){
    .categories-page-browser .categories-menu:has(> a.active) > a:not(.active){
        display:none;
    }

    .categories-page-browser .categories-menu:has(> a.active) > a.active{
        min-height:30px;
        border-bottom:0;
    }
}

/* V4 — KATEGORIJE — klik na aktivnu kategoriju otvara cijeli prvi nivo */
@media(max-width:640px){
    .categories-page-browser .categories-menu.mobile-show-all > a{
        display:flex !important;
    }

    .categories-page-browser .categories-menu:has(> a.active) > a.active::after{
        content:"▼";
        margin-left:auto;
        font-size:9px;
    }

    .categories-page-browser .categories-page-browser .categories-menu.mobile-show-all > a.active::after{
        content:"▲";
    }
}

/* V4 — KATEGORIJE — jedan indikator navigacije */
@media(max-width:640px){
    .categories-page-browser .categories-menu:has(> a.active) > a.active::after,
    .categories-page-browser .categories-page-browser .categories-menu.mobile-show-all > a.active::after{
        content:none;
        display:none;
    }
}

/* =========================================================
   V4 — JAVNE STRANICE — CENTRALNI KOMPAKTNI RAZMACI
   Kategorije / Korisnici / Oglašavanje / Podrška
   ========================================================= */

.categories-page{
    padding-top:10px;
}

.categories-head{
    margin-bottom:6px;
}

.categories-layout{
    gap:6px;
}

.categories-content{
    padding:8px 10px 10px;
}

@media(max-width:640px){
    .categories-page{
        padding-top:6px;
    }

    .categories-head{
        margin-bottom:6px;
    }

    .categories-layout{
        gap:6px;
    }

    .categories-content{
        padding:6px;
    }
}

/* V4 — JAVNE STRANICE — mobilno: naslov bez dodatnog gornjeg odmaka */
@media(max-width:640px){
    .categories-page{
        padding-top:0;
    }
}

/* V4 — tekstualne stranice — bez praznog reda iznad prvog naslova */
.info-content > h3:first-child{
    margin-top:0;
}

/* V4 — tekstualni kontejneri — mobilno bez dodatnog prostora na vrhu */
@media(max-width:640px){
    .categories-content{
        padding-top:0;
    }
}

/* V4 — tekstualni sadržaj — prvi naslov bez gornjeg razmaka */
.categories-content > .info-content > h3:first-child{
    margin-top:0 !important;
    padding-top:0 !important;
}

/* V4 — KORISNICI / OGLAŠAVANJE / PODRŠKA — kompaktni mobilni podmeni */
@media(max-width:640px){
    .categories-page:not(.categories-page-browser) .categories-menu{
        max-height:none;
        overflow:visible;
    }

    .categories-page:not(.categories-page-browser) .categories-menu-title{
        padding:6px 8px;
    }

    .categories-page:not(.categories-page-browser) .categories-menu a{
        min-height:30px;
        padding:5px 8px;
    }

    .categories-page:not(.categories-page-browser) .categories-menu a.active{
        padding-left:6px;
    }

    .categories-page:not(.categories-page-browser) .categories-menu-arrow{
        margin-left:6px;
    }
}


/* =========================================================
   V4 BANNERI — GLOBALNE INFO STRANICE
   ========================================================= */

.so-global-banner{
    box-sizing:border-box;
    border:1px dashed #aeb9c4;
    border-radius:7px;
    background:#f4f6f8;
    color:#647587;
    display:flex;
    align-items:center;
    justify-content:center;
    text-align:center;
}

.so-global-banner-label b{
    display:block;
    font-size:20px;
}

.so-global-banner-label small{
    display:block;
    margin-top:5px;
    font-size:10px;
}

.so-global-banner-top{
    width:100%;
    height:140px;
    min-height:140px;
    margin-bottom:11px;
}

.so-global-banner-side-column{
    min-width:0;
}

.so-global-banner-side-column > .categories-menu{
    width:100%;
}

.so-global-banner-side{
    width:290px;
    height:290px;
    min-width:290px;
    min-height:290px;
    max-width:290px;
    max-height:290px;
    margin-top:11px;
}

@media (max-width:760px){
    .so-global-banner-top{
        width:100%;
        height:80px;
        min-height:80px;
    }

    .so-global-banner-side{
        display:none !important;
    }
}

/* =========================================================
   V4 BANNERI — KONAČNI MOBILNI STANDARD
   Kategorije / Korisnici / Oglašavanje / Podrška
   ========================================================= */
@media (max-width:760px){

    .so-global-banner-top{
        display:flex !important;
        width:100% !important;
        height:100px !important;
        min-height:100px !important;
        max-height:100px !important;
        margin-bottom:10px !important;
        box-sizing:border-box !important;
    }

    .so-global-banner-side{
        display:none !important;
    }
}

/* V4 BANNERI — bez testnih podloga i okvira */
.so-global-banner,
.so-global-banner-top,
.so-global-banner-side{
    background:transparent !important;
    background-color:transparent !important;
    border-color:transparent !important;
    box-shadow:none !important;
}


/* V4 info stranice — banneri bez testnog sivog polja */
.so-global-banner,
.so-global-banner-top,
.so-global-banner-side{
    background:none !important;
    background-color:transparent !important;
    border:0 !important;
    outline:0 !important;
    box-shadow:none !important;
}


/* =========================================================
   V4 BANNERI — FINALNO: BEZ PLACEHOLDER PODLOGE I OKVIRA
   ========================================================= */

.so-banner-zone,
.so-banner-zone-top,
.so-banner-slot,
.so-banner-sidebar,
.so-banner-grid-item,
.so-banner-grid-strip,
.so-banner-grid-strip-mobile-first,
.so-banner-grid-strip-desktop-first,
.so-mobile-square-banner,
.so-global-banner,
.so-global-banner-top,
.so-global-banner-side,
.so-global-banner-side-column,
.so-global-banner-prodavnice-side,
.so-page-top-banner,
.so-page-top-banner-detail{
    background:transparent !important;
    background-color:transparent !important;
    background-image:none !important;
    border:0 !important;
    border-color:transparent !important;
    outline:0 !important;
    box-shadow:none !important;
}

/* Sam AdSense prostor nema našu podlogu */
ins.adsbygoogle{
    background:transparent !important;
    background-color:transparent !important;
    background-image:none !important;
    border:0 !important;
    outline:0 !important;
    box-shadow:none !important;
}

/* Uži oglas ostaje horizontalno centriran */
.so-banner-slot > ins.adsbygoogle,
.so-global-banner > ins.adsbygoogle,
.so-page-top-banner > ins.adsbygoogle,
.so-mobile-square-banner > ins.adsbygoogle{
    margin-left:auto !important;
    margin-right:auto !important;
}


/* =========================================================
   V4 BANNERI — FINALNO: BEZ PLACEHOLDER PODLOGE I OKVIRA
   ========================================================= */

.so-banner-zone,
.so-banner-zone-top,
.so-banner-slot,
.so-banner-sidebar,
.so-banner-grid-item,
.so-banner-grid-strip,
.so-banner-grid-strip-mobile-first,
.so-banner-grid-strip-desktop-first,
.so-mobile-square-banner,
.so-global-banner,
.so-global-banner-top,
.so-global-banner-side,
.so-global-banner-side-column,
.so-global-banner-prodavnice-side,
.so-page-top-banner,
.so-page-top-banner-detail{
    background:transparent !important;
    background-color:transparent !important;
    background-image:none !important;
    border:0 !important;
    border-color:transparent !important;
    outline:0 !important;
    box-shadow:none !important;
}

/* Sam AdSense prostor nema našu podlogu */
ins.adsbygoogle{
    background:transparent !important;
    background-color:transparent !important;
    background-image:none !important;
    border:0 !important;
    outline:0 !important;
    box-shadow:none !important;
}

/* Uži oglas ostaje horizontalno centriran */
.so-banner-slot > ins.adsbygoogle,
.so-global-banner > ins.adsbygoogle,
.so-page-top-banner > ins.adsbygoogle,
.so-mobile-square-banner > ins.adsbygoogle{
    margin-left:auto !important;
    margin-right:auto !important;
}


/* V4 — mobilni horizontalni banner 728x200 */
@media (max-width:760px){
    .so-global-banner-top{
        width:100% !important;
        height:auto !important;
        min-height:0 !important;
        max-height:none !important;
        aspect-ratio:728 / 200 !important;
        overflow:hidden !important;
    }
}
