/**
 * Location Team Members Widget Styles
 * Loaded only on pages where the Location Team Members widget is rendered.
 */

/* -------------------------------------------------------------------------
   Container
   ------------------------------------------------------------------------- */

.pcc-location-team-members {
    font-family: inherit;
    font-size: inherit;
}

/* -------------------------------------------------------------------------
   Slider
   ------------------------------------------------------------------------- */

.pcc-team-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.pcc-team-wrapper {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
}

.pcc-team-wrapper::-webkit-scrollbar {
    display: none;
}

/* -------------------------------------------------------------------------
   Card
   ------------------------------------------------------------------------- */

.pcc-member-card {
    flex: 0 0 auto;
    width: 320px;
}

@media (max-width: 480px) {
    .pcc-member-card {
        width: 240px;
    }
}

.pcc-member-photo img {
    width: 100%;
    border-radius: 10px;
    display: block;
}


.pcc-member-name {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 24px 0 0;
    line-height: 1.3;
}

.pcc-member-title {
    font-size: 0.9rem;
    display: block;
    margin: 8px 0 10px;
}

.pcc-member-bio-trigger {
    font-size: 0.875rem!important;
    padding: 0.375rem 0.875rem!important;
    cursor: pointer;
    border: 1px solid #D6D3D1!important;
    border-radius: 20px!important;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    color: #57534E!important;
    margin-bottom: 10px!important;
    background-color: unset!important;
}

.pcc-member-bio-trigger:hover {
    color: #ffffff!important;
    background-color: #E41A40!important;
    border-radius: 20px;
}

/* -------------------------------------------------------------------------
   Navigation controls
   ------------------------------------------------------------------------- */

.pcc-team-controls {
    display: flex;
    gap: 12px;
    margin-top: 1.5rem;
}

.pcc-team-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 12px;
    color: #667085;
    border: 1px solid #e4e7ec;
    border-radius: 50%;
    cursor: pointer;
    line-height: 1;
    transition: background 0.15s ease;
    user-select: none;
}

.pcc-team-btn:hover {
    background: #f9fafb;
}

/* -------------------------------------------------------------------------
   Bio modal
   ------------------------------------------------------------------------- */

.pcc-team-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pcc-team-modal[hidden] {
    display: none;
}

.pcc-team-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
}

.pcc-team-modal-panel {
    position: relative;
    background: #fff;
    border-radius: 20px;
    max-width: 560px;
    width: calc(100% - 2rem);
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
}

.pcc-team-modal-header {
    display: flex;
    justify-content: flex-end;
    padding: 1rem 1rem 0;
    flex-shrink: 0;
}

.pcc-team-modal-body {
    overflow-y: auto;
    padding: 0.5rem 2rem 2rem;
    scrollbar-width: thin;
    scrollbar-color: #d1d5db transparent;
}

.pcc-team-modal-body::-webkit-scrollbar {
    width: 4px;
}

.pcc-team-modal-body::-webkit-scrollbar-track {
    background: transparent;
}

.pcc-team-modal-body::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 20px;
}

.pcc-team-modal-body::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

.pcc-team-modal-close {
    background: none !important;
    border: none !important;
    font-size: 1.5rem !important;
    line-height: 1 !important;
    cursor: pointer !important;
    color: #9ca3af !important;
    padding: 0.25rem 0.5rem !important;
    border-radius: 50% !important;
}

.pcc-team-modal-close:hover {
    color: #111 !important;
    background: #f3f4f6 !important;
}

.pcc-team-modal-content {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.pcc-team-modal-photo img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    display: block;
}

.pcc-team-modal-info {
    flex: 1;
}

.pcc-team-modal-name {
    font-size: 1.125rem;
    font-weight: 700;
    margin: 0 0 0.25rem;
}

.pcc-team-modal-job-title {
    font-size: 0.9375rem;
    color: #6b7280;
    margin: 0 0 1rem;
}

.pcc-team-modal-bio {
    font-size: 0.9375rem;
    color: #4b5563;
    line-height: 1.6;
    margin: 0;
    white-space: pre-line;
}

body.pcc-modal-open {
    overflow: hidden;
}

/* -------------------------------------------------------------------------
   Error state
   ------------------------------------------------------------------------- */

.pcc-team-error {
    color: #9ca3af;
    font-size: 0.875rem;
    font-style: italic;
    margin: 0;
}
