@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@300;400;500;600&display=swap');

.apl-wrapper {
    font-family: 'DM Sans', sans-serif;
    background: #fdf5f5;
    border-radius: 16px;
    padding: 36px 40px 44px;
    max-width: 100%;
    box-sizing: border-box;
}

.apl-filter-bar {
    display: flex;
    align-items: center;
    gap: 20px;
    justify-content: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.apl-filter-label {
    color: #b05070;
    font-size: 18px;
    font-weight: 400;
}

.apl-select-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.apl-select {
    appearance: none;
    -webkit-appearance: none;
    background: #fff;
    border: 1.5px solid #e8d0d8;
    border-radius: 40px;
    padding: 10px 52px 10px 22px;
    font-family: 'DM Sans', sans-serif;
    font-size: 15px;
    color: #555;
    cursor: pointer;
    outline: none;
    min-width: 220px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.apl-select:hover,
.apl-select:focus {
    border-color: #b05070;
    box-shadow: 0 0 0 3px rgba(176,80,112,0.1);
}

.apl-select-arrow {
    position: absolute;
    right: 18px;
    pointer-events: none;
    color: #b05070;
    font-size: 20px;
    top: 50%;
    transform: translateY(-55%);
}

/* Grid — desktop */
.apl-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    justify-content: center;
}

/* Card — desktop */
.apl-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 14px;
    width: calc(20% - 20px);
    min-width: 160px;
}

/* Skrivanje — MORA biti !important */
.apl-card.apl-hidden,
.apl-card.apl-more-hidden {
    display: none !important;
}

.apl-card-name {
    display: block;
    border: 1.5px solid #c07090;
    border-radius: 50px;
    padding: 10px 24px;
    font-size: 15px;
    font-weight: 600;
    color: #8a2040;
    text-decoration: none;
    background: transparent;
    width: 100%;
    box-sizing: border-box;
    transition: background 0.2s, color 0.2s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

a.apl-card-name:hover {
    background: #8a2040;
    color: #fff;
    border-color: #8a2040;
}

.apl-card-info p {
    margin: 0;
    font-size: 14px;
    color: #7a5060;
    line-height: 1.5;
}

.apl-telefon a {
    color: #7a5060;
    text-decoration: none;
}

.apl-telefon a:hover {
    color: #8a2040;
}

.apl-grad {
    font-size: 12px !important;
    color: #b08090 !important;
}

.apl-empty,
.apl-no-results {
    color: #b05070;
    font-size: 15px;
    padding: 20px 0;
    width: 100%;
    text-align: center;
}

.apl-load-more-wrap {
    text-align: center;
    margin-top: 32px;
    width: 100%;
}

.apl-load-more {
    border: 1.5px solid #c07090;
    border-radius: 50px;
    padding: 11px 36px;
    font-family: 'DM Sans', sans-serif;
    font-size: 15px;
    font-weight: 500;
    color: #8a2040;
    background: transparent;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.apl-load-more:hover {
    background: #8a2040;
    color: #fff;
}

/* Tablet */
@media (max-width: 1024px) {
    .apl-card { width: calc(25% - 18px); }
}

@media (max-width: 768px) {
    .apl-wrapper { padding: 24px 20px 32px; }
    .apl-card { width: calc(33.33% - 16px); }
}

/* Mobitel — jedna kolona, centrirano */
@media (max-width: 540px) {
    .apl-wrapper { padding: 24px 16px 32px; }

    .apl-filter-bar {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    .apl-select-wrapper { width: 100%; }
    .apl-select { width: 100%; min-width: 0; }

    .apl-grid {
        flex-direction: column !important;
        align-items: center !important;
        gap: 20px;
    }

    .apl-card {
        width: 100% !important;
        max-width: 300px !important;
        min-width: 0 !important;
    }
}
