.pota-wrapper {
    width:100%;
    background:#ffffff;
    padding:25px;
    border-radius:14px;
    box-shadow:0 4px 18px rgba(0,0,0,.08);
    margin:20px 0;
    box-sizing:border-box;
    font-family:Arial,Helvetica,sans-serif;
}


.pota-wrapper h2 {
    text-align:center;
    color:#0d6efd;
    font-size:28px;
    font-weight:700;
    margin-bottom:25px;
}


/* STATISTIKA */

.pota-statistika {
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
    gap:15px;
    margin-bottom:25px;
}


.pota-card {
    background:#f8fbff;
    border:1px solid #dbeafe;
    border-radius:12px;
    padding:20px;
    text-align:center;
    transition:.25s;
}


.pota-card:hover {
    transform:translateY(-3px);
    box-shadow:0 8px 20px rgba(13,110,253,.15);
}


.pota-card .broj {
    font-size:32px;
    font-weight:bold;
    color:#0d6efd;
}


.pota-card .tekst {
    margin-top:8px;
    color:#555;
}



/* FILTERI */

.pota-filteri {

    display:flex;
    flex-wrap:wrap;
    gap:12px;
    background:#f8f9fa;
    padding:18px;
    border-radius:12px;
    border:1px solid #e5e7eb;
    margin-bottom:20px;

}


.pota-filteri input,
.pota-filteri select {

    height:42px;
    padding:0 14px;
    border-radius:8px;
    border:1px solid #ced4da;
    background:#fff;
    font-size:15px;
    min-width:180px;

}


.pota-filteri input {

    flex:1;
    min-width:230px;

}



.pota-filteri button {

    height:42px;
    padding:0 22px;
    border-radius:8px;
    border:none;
    background:#0d6efd;
    color:#fff;
    font-weight:600;
    cursor:pointer;
    transition:.2s;

}


.pota-filteri button:hover {

    background:#084298;

}



/* MAPA */


#pota-map {

    width:100%;
    height:600px;
    border-radius:14px;
    overflow:hidden;
    border:1px solid #dee2e6;
    margin-bottom:20px;

}



/* INFO */


.pota-info {

    background:#f8f9fa;
    border-radius:8px;
    padding:12px 18px;
    margin-bottom:15px;
    color:#555;

}


#broj-prikazanih {

    color:#0d6efd;
    font-weight:bold;

}



/* TABELA */


.pota-tabela-wrapper {

    width:100%;
    overflow-x:auto;

}



#pota-table {

    width:100%;
    border-collapse:separate;
    border-spacing:0;
    border-radius:12px;
    overflow:hidden;
    border:1px solid #dee2e6;

}



#pota-table thead th {

    background:#0d6efd;
    color:#fff;
    padding:14px 12px;
    text-align:left;
    font-weight:600;

}



#pota-table tbody td {

    padding:12px;
    border-bottom:1px solid #edf0f2;
    color:#333;
    font-size:14px;

}



#pota-table tbody tr:nth-child(even){

    background:#f8fbff;

}



#pota-table tbody tr:hover {

    background:#e7f1ff;

}



#pota-table tbody tr.pota-selected {

    background:#cfe2ff !important;

}



/* LINKOVI */


#pota-table a {

    color:#0d6efd;
    text-decoration:none;
    font-weight:600;

}



#pota-table a:hover {

    text-decoration:underline;

}



.pota-link {

    font-size:13px;

}



/* POPUP */

.leaflet-popup-content {

    line-height:1.6;
    font-size:14px;

}


.leaflet-popup-content a {

    color:#0d6efd;
    font-weight:bold;

}



/* ERROR */

.pota-error {

    background:#fff3cd;
    border:1px solid #ffe69c;
    padding:20px;
    border-radius:10px;
    color:#664d03;

}



/* MOBILNI PRIKAZ */

@media(max-width:768px){


    .pota-wrapper {

        padding:15px;

    }



    .pota-wrapper h2 {

        font-size:22px;

    }



    #pota-map {

        height:420px;

    }



    .pota-filteri {

        flex-direction:column;

    }



    .pota-filteri input,
    .pota-filteri select,
    .pota-filteri button {

        width:100%;

    }



    /*
       TABELA POSTAJE KARTICA
    */


    #pota-table,
    #pota-table tbody,
    #pota-table tr,
    #pota-table td {

        display:block;
        width:100%;

    }



    #pota-table thead {

        display:none;

    }



    #pota-table tr {

        background:#fff;
        margin-bottom:15px;
        border-radius:12px;
        border:1px solid #dee2e6;
        padding:10px;
        box-shadow:0 3px 10px rgba(0,0,0,.06);

    }



    #pota-table tbody td {

        display:flex;
        justify-content:space-between;
        padding:10px;
        border-bottom:1px solid #eee;

    }



    #pota-table tbody td:last-child {

        border-bottom:none;

    }



    #pota-table tbody td:before {

        content:attr(data-label);
        font-weight:bold;
        color:#555;
        margin-right:15px;

    }



    #pota-table tbody td:nth-child(2) {

        display:block;

    }



    #pota-table tbody td:nth-child(2):before {

        display:block;
        margin-bottom:5px;

    }


}