.akt-munkalatok .akt-header h1 {
    font-weight: 700;
}

/* Szűrők – modern panel */
.akt-filters {
    background: #fff;
    border-radius: 16px;
    padding: 14px 16px;
    box-shadow: 0 6px 28px rgba(17, 24, 39, 0.07);
    border: 1px solid rgba(17, 24, 39, 0.04);
    margin-bottom: 1.25rem;
}

.akt-filters-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.akt-filter-field {
    position: relative;
    flex: 1 1 190px;
    min-width: 160px;
}

.akt-filter-field.akt-filter-search {
    flex: 2 1 260px;
}

.akt-filter-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #9aa3ad;
    font-size: 0.9rem;
    pointer-events: none;
    transition: color 0.2s ease;
}

.akt-input,
.akt-select {
    width: 100%;
    height: 48px;
    border: 1px solid #e4e8ee;
    border-radius: 12px;
    padding: 0 16px 0 42px;
    font-size: 0.92rem;
    color: #2b3440;
    background-color: #f6f8fb;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.akt-select {
    padding-right: 40px;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%239aa3ad' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 12px 8px;
}

.akt-input::placeholder {
    color: #9aa3ad;
}

.akt-input:hover,
.akt-select:hover {
    border-color: #d3dae3;
}

.akt-input:focus,
.akt-select:focus {
    outline: none;
    border-color: var(--primary-color, #2196f3);
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.14);
}

.akt-filter-field:focus-within .akt-filter-icon {
    color: var(--primary-color, #2196f3);
}

.akt-filter-reset {
    flex: 0 0 auto;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    border: 1px solid #e4e8ee;
    background: #f6f8fb;
    color: #6b7280;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.akt-filter-reset:hover {
    background: #fee2e2;
    border-color: #fca5a5;
    color: #dc2626;
}

@media (max-width: 575.98px) {
    .akt-filter-field,
    .akt-filter-field.akt-filter-search {
        flex: 1 1 100%;
    }

    .akt-filter-reset {
        flex: 1 1 100%;
        width: 100%;
    }
}

/* Térkép + wrapper (a jelmagyarázat ehhez képest van pozícionálva).
   Izolált réteg (z-index:1 + isolation): a térképen lévő overlay elemek magas
   z-indexe a wrapperen BELÜL marad, így nem mennek a menüsor (header) fölé. */
.akt-map-wrap {
    position: relative;
    z-index: 1;
    isolation: isolate;
}

.akt-map {
    width: 100%;
    height: 520px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    z-index: 1;
}

/* Egyedi térkép-vezérlők – a térkép jobb alsó sarkában (mint a /munkalatok) */
.akt-map-controls {
    position: absolute;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.akt-map-control-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fff;
    border: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--primary-color, #2196f3);
    padding: 0;
}

.akt-map-control-btn:hover {
    background: var(--primary-color, #2196f3);
    color: #fff;
    transform: translateY(-2px);
}

.akt-map-control-btn:active {
    transform: translateY(0);
}

@media (max-width: 576px) {
    .akt-map-controls {
        bottom: 15px;
        right: 15px;
        gap: 8px;
    }

    .akt-map-control-btn {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
}

/* Térképre helyezett kereső + település-választó (shortcode) – bal felső sarok */
.akt-map-search {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 1000;
    width: calc(100% - 32px);
    max-width: 270px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.akt-map-search-box {
    position: relative;
}

.akt-map-search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #9aa3ad;
    font-size: 0.9rem;
    pointer-events: none;
    z-index: 1;
}

.akt-map-search-input,
.akt-map-search-select {
    width: 100%;
    height: 46px;
    border: none;
    border-radius: 24px;
    padding: 0 18px 0 42px;
    background: #fff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    font-size: 0.9rem;
    color: #2b3440;
    transition: box-shadow 0.2s ease;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.akt-map-search-select {
    padding-right: 40px;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%239aa3ad' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 12px 8px;
}

.akt-map-search-input::placeholder {
    color: #9aa3ad;
}

.akt-map-search-input:focus,
.akt-map-search-select:focus {
    outline: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.18), 0 0 0 3px rgba(33, 150, 243, 0.18);
}

@media (max-width: 575.98px) {
    .akt-map-search {
        max-width: none;
        right: 12px;
        left: 12px;
        width: auto;
    }
}

/* Jelmagyarázat – a térkép jobb felső sarkában */
.akt-legend {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 1000; /* a Leaflet vezérlők fölött */
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    padding: 12px 16px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
    max-width: 220px;
    font-size: 0.85rem;
}

.akt-legend-title {
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.akt-legend-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.akt-legend-list li {
    display: flex;
    align-items: center;
    margin-bottom: 6px;
}

.akt-legend-list li:last-child {
    margin-bottom: 0;
}

.akt-legend-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    margin-right: 8px;
    flex-shrink: 0;
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.08);
}

@media (max-width: 576px) {
    .akt-legend {
        top: auto;
        right: auto;
        bottom: 10px;
        left: 10px;
        transform: none;
        padding: 8px 10px;
        max-width: 160px;
        font-size: 0.75rem;
    }

    .akt-legend-title {
        font-size: 0.8rem;
    }
}

/* Egyedi marker */
.akt-marker {
    width: 40px;
    height: 40px;
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    border: 2px solid #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
}

.akt-marker i {
    transform: rotate(45deg);
    color: #fff;
    font-size: 17px;
}

/* Lista – település-csoportok */
.akt-group {
    margin-bottom: 1.75rem;
}

.akt-group-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 0.85rem;
    padding-bottom: 0.6rem;
    border-bottom: 2px solid #eef1f5;
}

.akt-group-pin {
    color: var(--primary-color, #2196f3);
    font-size: 1rem;
}

.akt-group-name {
    font-size: 1.15rem;
    font-weight: 700;
    color: #2b3440;
}

.akt-group-count {
    margin-left: 4px;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--primary-color, #2196f3);
    background: rgba(33, 150, 243, 0.1);
    padding: 3px 10px;
    border-radius: 999px;
    white-space: nowrap;
}

/* Lista kártyák */
.akt-list-col {
    position: relative;
}

/* Nyitott "Részletek" esetén a kártya a szomszédai fölé kerül */
.akt-list-col.is-open {
    z-index: 30;
}

.akt-card {
    position: relative;
    background: #fff;
    border-radius: 14px;
    padding: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
    border-left: 4px solid var(--akt-color, #607d8b);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.akt-card:hover {
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.akt-card.akt-card--active {
    box-shadow: 0 0 0 2px var(--akt-color, #607d8b);
}

.akt-card-top {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.akt-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 4px 0 0;
}

.akt-card-streets {
    font-size: 0.92rem;
    font-weight: 600;
    color: #2b3440;
    margin: 0;
}

.akt-card-streets--muted {
    font-weight: 500;
    color: #6b7280;
}

.akt-card-dates {
    margin-top: auto;
    font-size: 0.8rem;
    color: #666;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding-top: 6px;
}

/* Lenyíló leírás ("Részletek") */
.akt-card-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    align-self: flex-start;
    margin-top: 10px;
    padding: 5px 12px;
    background: rgba(33, 150, 243, 0.08);
    border: none;
    border-radius: 999px;
    color: var(--primary-color, #2196f3);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.akt-card-toggle:hover {
    background: var(--primary-color, #2196f3);
    color: #fff;
}

.akt-card-toggle-arrow {
    font-size: 0.7rem;
    transition: transform 0.25s ease;
}

.akt-card-toggle.is-open .akt-card-toggle-arrow {
    transform: rotate(180deg);
}

/* A lenyíló a kártya alá nyíló popover – nem növeli a kártya magasságát,
   így a rács többi eleme nem mozdul. */
.akt-card-details {
    position: absolute;
    top: calc(100% - 11px);
    left: -4px;
    right: 0;
    z-index: 20;
    max-height: 0;
    overflow: hidden;
    background: #fff;
    border-left: 4px solid var(--akt-color, #607d8b);
    border-radius: 0 0 14px 14px;
    box-shadow: 0 40px 30px rgba(0, 0, 0, 0.14);
    transition: max-height 0.3s ease;
}

.akt-card-details > p {
    margin: 0;
    padding: 14px 16px;
    font-size: 0.85rem;
    line-height: 1.5;
    color: #6b7280;
}

/* Térkép popup */
.akt-popup h4 {
    margin: 0 0 6px;
    font-size: 1rem;
}

.akt-popup .akt-popup-badges {
    display: flex;
    gap: 6px;
    margin-bottom: 6px;
    flex-wrap: wrap;
}

.akt-popup .akt-popup-row {
    font-size: 0.82rem;
    margin: 2px 0;
}

/* Kattintható utcanevek a popupban – kattintásra a térkép az utcához repül */
.akt-popup-street {
    color: var(--primary-color, #2196f3);
    text-decoration: underline dotted;
    text-underline-offset: 2px;
    cursor: pointer;
    font-weight: 600;
}

.akt-popup-street:hover {
    text-decoration: underline;
}
