.find-providers-wrap {
    max-width: 1280px;
    margin: 0 auto;
    padding: 24px 16px 48px;
}

.find-providers-header h1 {
    margin: 0 0 8px;
    font-size: 1.75rem;
    color: #0f172a;
}

.find-providers-header p {
    margin: 0 0 20px;
    color: #64748b;
    max-width: 720px;
    line-height: 1.5;
}

.find-providers-search {
    display: grid;
    grid-template-columns: 1fr 140px 160px auto;
    gap: 10px;
    align-items: end;
    margin-bottom: 16px;
}

.find-providers-search label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 6px;
}

.find-providers-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 16px;
    align-items: start;
}

.find-providers-map {
    height: 520px;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid #dbe4ef;
    background: #e8eef4;
}

.find-providers-map .mapboxgl-map {
    width: 100%;
    height: 100%;
}

/* Provider map pins — profile photo or default silhouette */
.find-provider-marker {
    cursor: pointer;
    line-height: 0;
}

.find-provider-marker-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.28);
    overflow: hidden;
    background: #cbd5e1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.find-provider-marker-avatar--default {
    background: #e2e8f0;
    color: #94a3b8;
}

.find-provider-marker-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.find-provider-marker-silhouette {
    width: 26px;
    height: 26px;
}

.find-provider-marker:hover .find-provider-marker-avatar,
.find-provider-marker.is-active .find-provider-marker-avatar {
    transform: scale(1.08);
    border-color: #0ea5e9;
    box-shadow: 0 4px 14px rgba(14, 165, 233, 0.45);
}

.find-provider-marker.is-active .find-provider-marker-avatar {
    border-width: 3px;
}

.find-providers-list {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    max-height: 520px;
    overflow-y: auto;
}

.find-providers-list-head {
    padding: 14px 16px;
    border-bottom: 1px solid #e2e8f0;
    font-weight: 700;
    color: #0f172a;
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 1;
}

.find-provider-card {
    padding: 14px 16px;
    border-bottom: 1px solid #f1f5f9;
    cursor: pointer;
    transition: background 0.15s ease;
}

.find-provider-card:hover,
.find-provider-card.is-active {
    background: #f0f9ff;
}

.find-provider-card h3 {
    margin: 0 0 4px;
    font-size: 15px;
    color: #0f172a;
}

.find-provider-meta {
    font-size: 13px;
    color: #64748b;
    margin: 0 0 8px;
}

.find-provider-services {
    font-size: 12px;
    color: #475569;
    margin: 0 0 10px;
    line-height: 1.4;
}

.find-provider-transport-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0 0 10px;
}

.find-provider-transport-chip .transport-mode-icon {
    flex-shrink: 0;
}

.find-provider-transport-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 9px;
    border-radius: 999px;
    border: 1px solid #dbe7f2;
    background: #f8fbff;
    color: #1e3a5f;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.2;
}

.find-provider-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: stretch;
    margin-top: 4px;
}

/* Navbar.css sets global .btn-outline to white — override inside provider cards */
.find-provider-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 1 1 calc(33.333% - 6px);
    min-width: 96px;
    padding: 9px 10px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
    border-radius: 8px;
    text-decoration: none;
    cursor: pointer;
    border: 1.5px solid transparent;
    box-sizing: border-box;
    font-family: inherit;
    white-space: nowrap;
}

.find-provider-action-btn--profile,
.find-provider-action-btn--invite {
    background: #fff;
    color: #1d4ed8;
    border-color: #60a5fa;
}

.find-provider-action-btn--profile:hover,
.find-provider-action-btn--invite:hover {
    background: #eff6ff;
    border-color: #2563eb;
    color: #1e3a8a;
}

.find-provider-action-btn--message {
    background: #2563eb;
    color: #fff;
    border-color: #2563eb;
}

.find-provider-action-btn--message:hover {
    background: #1d4ed8;
    border-color: #1d4ed8;
    color: #fff;
}

.find-provider-actions .profile-help {
    flex: 1 1 100%;
    font-size: 12px;
    color: #64748b;
    padding: 6px 0;
}

.find-providers-empty {
    padding: 24px 16px;
    color: #64748b;
    font-size: 14px;
}

.find-providers-status {
    font-size: 14px;
    color: #334155;
    margin-bottom: 12px;
    min-height: 20px;
}

.find-providers-status--error {
    color: #b45309;
}

.find-invite-modal {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.find-invite-modal[hidden] {
    display: none;
}

.find-invite-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
}

.find-invite-modal-panel {
    position: relative;
    z-index: 1;
    width: min(440px, 100%);
    background: #fff;
    border-radius: 14px;
    padding: 22px 20px 18px;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.2);
}

.find-invite-modal-panel h2 {
    margin: 0 0 8px;
    font-size: 1.25rem;
}

.find-invite-modal-sub {
    margin: 0 0 14px;
    color: #64748b;
    font-size: 14px;
}

.find-invite-modal-panel label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
    color: #334155;
}

.find-invite-modal-status {
    min-height: 18px;
    font-size: 13px;
    margin: 10px 0 0;
    color: #047857;
}

.find-invite-modal-status--error {
    color: #b45309;
}

.find-invite-modal-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 16px;
}

.find-invite-modal-close {
    position: absolute;
    top: 10px;
    right: 12px;
    border: none;
    background: none;
    font-size: 24px;
    cursor: pointer;
    color: #64748b;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 13px;
}

@media (max-width: 960px) {
    .find-providers-search {
        grid-template-columns: 1fr 1fr;
    }
    .find-providers-search .find-search-btn-wrap {
        grid-column: 1 / -1;
    }
    .find-providers-layout {
        grid-template-columns: 1fr;
    }
    .find-providers-map {
        height: 360px;
    }
    .find-providers-list {
        max-height: none;
    }
}

@media (max-width: 560px) {
    .find-providers-search {
        grid-template-columns: 1fr;
    }
}
