/* Glavni omotač lokatora */
.intercom-locator-wrapper {
    margin: 20px 0;
}

/* Forma za pretragu */
.ic-search-form .form-row {
    margin-bottom: 12px;
}

.ic-search-form label {
    font-weight: 600;
    display: block;
    margin-bottom: 6px;
}

.ic-search-input {
    width: 100%;
    max-width: 520px;
    padding: 10px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 1rem;
    box-sizing: border-box;
}

.ic-form-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 10px;
}

/* Status poruka */
#intercom-locator-status {
    margin: 15px 0;
    font-weight: 600;
    display: none;
}

/* Naslov rezultata */
.ic-results-title {
    margin: 25px 0 15px 0;
    font-size: 1.25rem;
    font-weight: 700;
}

/* Kontejner kartica */
.ic-services-cards {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 10px;
}

/* Pojedinačna kartica servisera */
.ic-service-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 18px 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.ic-service-card:hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.08);
}

/* Zaglavlje kartice */
.ic-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
}

.ic-card-title {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.3;
}

.ic-card-title .ic-city {
    color: #64748b;
    font-weight: 500;
}

/* Bedž za kilometražu */
.ic-distance-badge {
    background: #ecfdf5;
    color: #047857;
    font-weight: 700;
    font-size: 0.9rem;
    padding: 4px 10px;
    border-radius: 9999px;
    border: 1px solid #a7f3d0;
    white-space: nowrap;
}

/* Telo kartice (adresa) */
.ic-card-body p {
    margin: 0 0 14px 0;
    color: #334155;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Grupa dugmadi za akciju */
.ic-card-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.ic-card-actions .ic-btn-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 14px;
    font-size: 0.9rem;
    text-decoration: none;
    border-radius: 6px;
    cursor: pointer;
    line-height: 1.4;
}

/* Mobilna prilagođenost (ekrani do 640px) */
@media (max-width: 640px) {
    .ic-search-input {
        max-width: 100%;
    }

    .ic-form-actions {
        flex-direction: column;
    }

    .ic-form-actions button {
        width: 100%;
        text-align: center;
    }

    .ic-service-card {
        padding: 14px;
    }

    .ic-card-actions {
        flex-direction: column;
        width: 100%;
    }

    .ic-card-actions .ic-btn-action {
        width: 100%;
        text-align: center;
        padding: 10px 14px;
        box-sizing: border-box;
    }
}

/* Kontejner za Leaflet mapu */
.ic-map-container {
    width: 100%;
    height: 380px;
    margin: 20px 0;
    border-radius: 10px;
    border: 1px solid #cbd5e1;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    z-index: 1;
}

/* Custom Pin za servisere (Kompaktan moderan bedž) */
.ic-service-marker {
    background: transparent;
    border: none;
}

.ic-pin-box {
    width: 32px;
    height: 32px;
    background: #0284c7;
    color: #ffffff;
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.25);
    border: 2px solid #ffffff;
    font-size: 14px;
    transition: transform 0.15s ease;
}

.ic-pin-box:hover {
    transform: rotate(-45deg) scale(1.15);
    background: #0369a1;
}

/* Plavi pulsirajući pin za korisnika */
.ic-user-marker {
    background: transparent;
    border: none;
}

.ic-user-pin {
    width: 16px;
    height: 16px;
    background: #2563eb;
    border: 3px solid #ffffff;
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.35);
}

/* Popup prozorčić na mapi */
.ic-map-popup {
    font-family: inherit;
    font-size: 0.9rem;
    line-height: 1.4;
    padding: 2px;
}

.ic-map-popup strong {
    font-size: 1rem;
    color: #0f172a;
}

.ic-pop-dist {
    display: inline-block;
    color: #059669;
    font-weight: 700;
    margin: 4px 0;
}

.ic-pop-btn {
    display: block;
    margin-top: 6px;
    padding: 5px 10px;
    background: #f1f5f9;
    color: #1e293b !important;
    text-align: center;
    border-radius: 4px;
    text-decoration: none !important;
    font-weight: 600;
    font-size: 0.85rem;
}

.ic-pop-btn.ic-pop-route {
    background: #0284c7;
    color: #ffffff !important;
}

/* Efekat prelaza kada se pređe preko kartice servisera */
.ic-service-card {
    cursor: pointer;
}