﻿
:root {
    --green: #7AB700;
    --green-dark: #006A4B;
    --text: #1F2937;
    --muted: #6B7280;
    --border: #E5E7EB;
    --bg: #F6F8F7;
    --surface: #fff;
    --radius: 16px;
}

/* Layout */
.Content.inner {
    padding: 24px 16px 40px;
    max-width: 1100px;
    width: 100%;
    margin: 0 auto;
}
.karta {
    margin: 12px 0 18px;
}

#mapDiv.map {
    width: 100%;
    /* height: 68vh; */
    /* min-height: 420px; */
    background: #f2f5f3;
    border: 1px solid var(--border);
    border-radius: 12px;
    /* overflow: hidden; */
    box-shadow: 0 6px 24px rgba(0, 0, 0, .06);
    max-height: 65vh;
}

/* Naslovi i podnaslovi */
.greenTxt {
    color: var(--green-dark);
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: .2px;
    margin: 0 0 8px;
    text-align: left;
    font-size: 40px;
}

.highlight {
    color: var(--muted);
    margin: 0 0 14px;
}

/* Lista ljekarni (akordeon po regijama) */
.ljekarne {
    margin-top: 8px;
}

.pharmacyList {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 10px;
}

    .pharmacyList > li {
        background: var(--surface);
        border: 1px solid var(--border);
        border-radius: 12px;
        overflow: hidden;
    }

        .pharmacyList > li h4 {
            margin: 0;
            padding: 12px 14px;
            font-weight: 700;
            color: var(--text);
            cursor: pointer;
            user-select: none;
            display: flex;
            align-items: center;
            justify-content: space-between;
        }

            .pharmacyList > li h4::after {
                content: "▾";
                font-size: 14px;
                color: var(--muted);
                transition: transform .18s ease;
            }

        .pharmacyList > li .collapsed {
            display: none;
        }

            .pharmacyList > li .collapsed.open {
                display: block;
            }

        .pharmacyList > li.open h4::after {
            transform: rotate(-180deg);
        }

    /* Unutarnja lista  */
    .pharmacyList ul {
        list-style: none;
        padding: 6px 10px 10px;
        margin: 0;
        display: grid;
        gap: 6px;
        max-height: 30vh;
        overflow: auto;
    }

    .pharmacyList li li {
        border: 1px solid var(--border);
        border-radius: 10px;
        background: #fff;
    }

        .pharmacyList li li.is-active {
            border-color: var(--green-dark);
            box-shadow: 0 0 0 3px rgba(28,154,99,.12);
        }

.activepharmacy a,
.inactivepharmacy a {
    display: block;
    padding: 10px 12px;
    color: var(--text);
    text-decoration: none;
}

.inactivepharmacy a {
    opacity: .65;
}

/* Paginacija unutar regije */
.pharmacyList-pagination {
    display: flex;
    align-items: center;
    gap: 8px;
    border-top: 1px dashed var(--border);
    padding: 10px 12px 12px;
}

    .pharmacyList-pagination span[name] {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 28px;
        height: 28px;
        border-radius: 8px;
        border: 1px solid var(--border);
        background: #fff;
        cursor: pointer;
    }

        .pharmacyList-pagination span[name]:hover {
            border-color: var(--green-dark);
        }

    .pharmacyList-pagination .hidden {
        display: none !important;
    }

.pharmacyList-pagination-current {
    min-width: 26px;
    text-align: center;
    font-weight: 700;
    color: var(--text);
}

/* Leaflet — sitno poliranje */
.leaflet-container {
    font: 14px/1.45 "Source Sans Pro",system-ui,sans-serif;
}

.leaflet-control-zoom {
    border: none;
    box-shadow: 0 4px 14px rgba(0,0,0,.08);
}

    .leaflet-control-zoom a {
        width: 34px;
        height: 34px;
        line-height: 34px;
        border: none;
    }

.leaflet-popup-content-wrapper {
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,.12);
    border: 1px solid var(--border);
}

.leaflet-popup-content {
    margin: 10px 12px;
    color: var(--text);
}

.infobox_title {
    margin: 0 0 6px;
    font-weight: 800;
    color: var(--green-dark);
}

/* Info “cards” ispod karte (ako ih prikažeš) */
.ph-card {
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 10px 12px;
    background: #fff;
}

    .ph-card .line {
        display: flex;
        gap: 8px;
        align-items: center;
        color: var(--muted);
    }

        .ph-card .line strong {
            color: var(--text);
            font-weight: 700;
        }

/* Legenda ikona (opcionalno) */
.pin-legend {
    display: flex;
    gap: 14px;
    align-items: center;
    margin: 8px 0 0;
}

    .pin-legend .item {
        display: flex;
        align-items: center;
        gap: 8px;
        color: var(--muted);
    }

    .pin-legend .dot {
        width: 18px;
        height: 18px;
        border-radius: 50%;
        background: radial-gradient(circle at 50% 50%, #fff 35%, var(--green-dark) 36% 100%);
        border: 2px solid var(--green-dark);
    }

/* Select iz partiala */
.select.clearfix {
    display: flex;
    gap: 10px;
    align-items: center;
    margin: 10px 0 14px;
}

#dialoglabel {
    font-weight: 700;
    color: var(--text);
}

#selectedpharmacy {
    max-width: 520px;
}

/* Responsive */
@media (max-width: 1024px) {

    h2.greenTxt{
        font-size:20px;
    }
}

@media (max-width: 720px) {
    .Content.inner {
        padding: 18px 12px 32px;
    }

 

    .pharmacyList > li h4 {
        padding: 12px;
    }

    .pharmacyList ul {
        padding: 8px;
    }
}
/* ===== FIGMA popup (Leaflet) ===== */
.pharmacy-popup .leaflet-popup-content-wrapper {
    padding: 0;
    border-radius: 16px;
    border: 1px solid rgba(28,154,99,.45);
    box-shadow: 0 14px 36px rgba(0,0,0,.14);
}

.pharmacy-popup .leaflet-popup-tip {
    background: #fff;
    border: 1px solid rgba(28,154,99,.35);
}

.ph-card--popup {
    background: #fff;
    border-radius: 16px;
    padding: 14px 16px 12px;
    min-width: 280px; /* stabilna širina */
    max-width: 360px;
}

    .ph-card--popup .ph-title {
        margin: 0 0 4px;
        font-weight: 800;
        color: #2E2E2E;
        text-transform: uppercase;
        letter-spacing: .2px;
        font-size: 14px;
    }

    .ph-card--popup .ph-addr {
        margin: 0 0 10px;
        color: #6B7280; /* muted */
        font-size: 12px;
        line-height: 1.4;
    }

    .ph-card--popup .ph-line {
        display: flex;
        gap: 8px;
        align-items: center;
        color: #6B7280;
        font-size: 12px;
    }

    .ph-card--popup .ph-ico {
        width: 18px;
        height: 18px;
        flex: 0 0 18px;
        background: no-repeat center/contain url("/Content/images/maps/maps-icon-phone.png");
        filter: none;
    }

    .ph-card--popup a.ph-tel {
        color: #1C9A63; /* zelena */
        font-weight: 700;
        text-decoration: none;
    }

        .ph-card--popup a.ph-tel:hover {
            text-decoration: underline;
        }
.leaflet-top, .leaflet-bottom {
    z-index: 900 !important;
}
@media (max-width:420px) {
    .ph-card--popup {
        min-width: 240px;
    }
}
.leaflet-top.leaflet-left {
    display: none !important;
}