/* Teamliste shortcodes [team_slug] — grupper efter masterolle */

.teamlist {
    margin: 1.25rem 0 2rem;
}

.teamlist__map {
    margin: 0 0 1.75rem;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
}

/* Inline Leaflet: ikke sæt height/min-height på .leaflet-container — det overskriver Leaflets inline-størrelse (kort forsvinder). Højde kommer fra widget-#id (460px). */
.teamlist__map--inline [role="application"] {
    min-height: min(460px, 85vh);
    width: 100%;
}

.teamlist__map-frame {
    display: block;
    width: 100%;
    height: 460px;
    min-height: 320px;
    border: 0;
    vertical-align: top;
    /* Sikrer synlig kort også når global .site-main-regler ændres */
    max-height: min(460px, 85vh);
}

.teamlist__map--guest {
    padding: 1rem 1.25rem;
}

.teamlist__map-note {
    margin: 0;
    font-size: 0.95rem;
    color: #475569;
}

.teamlist__map-link {
    color: #2563eb;
    font-weight: 600;
}

.teamlist__empty-msg {
    margin: 0 0 1.25rem;
    padding: 0.85rem 1rem;
    border-radius: 8px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #475569;
}

.teamlist__warn {
    margin: 1rem 0;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    background: #fef3c7;
    border: 1px solid #fcd34d;
    color: #78350f;
}

.teamlist--empty {
    padding: 1rem;
    border-radius: 8px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.teamlist__group {
    margin-bottom: 2.25rem;
}

.teamlist__group:last-child {
    margin-bottom: 0;
}

.teamlist__group-title {
    margin: 0 0 0.35rem;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: #2563eb;
    text-transform: uppercase;
}

.teamlist__rule {
    margin: 0 0 1.25rem;
    border: none;
    border-top: 1px solid #cbd5e1;
}

.teamlist__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.25rem;
    align-items: stretch;
}

.teamlist-card {
    box-sizing: border-box;
    padding: 1.25rem 1.35rem;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}

.teamlist-card__photo-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
}

.teamlist-card__photo {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #e5e7eb;
}

.teamlist-card__photo--placeholder {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background: #e5e7eb
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%239ca3af'%3E%3Cpath d='M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z'/%3E%3C/svg%3E")
        center / 52% no-repeat;
}

.teamlist-card__title {
    margin: 0 0 0.75rem;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.35;
    text-align: center;
    color: #111827;
}

.teamlist-card__actions {
    margin: 0 0 1rem;
    text-align: center;
}

.teamlist-card__btn {
    display: inline-block;
    padding: 0.45rem 1rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: #fff;
    background: #2563eb;
    border-radius: 8px;
    text-decoration: none;
}

.teamlist-card__btn:hover {
    background: #1d4ed8;
}

.teamlist-card__dl {
    margin: 0;
    padding-top: 0.85rem;
    border-top: 1px solid #e5e7eb;
}

.teamlist-card__dl > div {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.35rem 0.65rem;
    margin-bottom: 0.45rem;
    font-size: 0.9rem;
    line-height: 1.45;
}

.teamlist-card__dl > div:last-child {
    margin-bottom: 0;
}

.teamlist-card__dl dt {
    margin: 0;
    font-weight: 700;
    color: #374151;
}

.teamlist-card__dl dd {
    margin: 0;
    color: #1f2937;
}

.teamlist-card__dl a {
    color: #2563eb;
}
