﻿#infoboxText {
    background-color: white;
    border: 1.5px solid #343434;
    display: grid;
    width: 300px;
    min-height:150px;
    border-radius: 5px;
    padding: 3px 6px;
    grid-template-columns: auto auto;
    grid-template-rows: auto auto auto auto;
    animation: fadeIn 0.3s ease-in-out;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);

    @keyframes fadeIn {
        from {
            opacity: 0;
        }

        to {
            opacity: 1;
        }
    }
}

    #infoboxText > img {
        grid-row: 1;
        grid-column: 1;
        width: 40px;
        height: 40px
    }
    #infoboxText > #display-name {
        grid-column: 1 /span 2;
        grid-row: 1;
        margin-left: 42px;
        margin-right:25px;
    }
    #infoboxText > #office-label {
        grid-row: 2;
        grid-column: 1
    }
    #infoboxText > #office-address {
        grid-row: 2;
        grid-column: 2;
    }
    #infoboxText > #manager-label {
        grid-row: 3;
        grid-column: 1;
    }
    #infoboxText > #manager-name {
        grid-row: 3;
        grid-column: 2;
    }
    #infoboxText > #infoBoxCloseButton {
        position: absolute;
        top: 3px;
        right: 3px;
        width: 25px;
        height: 25px;
        border: none;
        border-radius: 50%;
        background-color: #343434;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0;
        cursor: pointer;
        color:white;
    }
    #infoboxText > #close-button-icon {
        color: white !important;
        font-size: 16px;
        font-weight: bold;
        line-height: 1;
    }
    #infoboxText > #directions-button {
        grid-column: 1;
        grid-row: 4;
        margin-top: 5px;
        text-align: center;
        color: #1a73e8;
        text-decoration: none;
        font-size: 28px;
        line-height: 1;
        display: inline-block;
    }
        #infoboxText > #directions-button > #directions-icon {
            text-decoration: none;
            display: inline-block;
            line-height: 1;
        }
    #infoboxText > #icon-container {
        grid-row: 5;
        grid-column: 2;
        display: flex;
        flex-direction: row;
        justify-content: flex-end;
        align-items:center;
    }
.icon {
    font-size: 28px;
    text-decoration:none;
    margin: 8px;
}

.card-icon{
    font-size:15px;
}
.icons-list {
    width: 100%;
}

    .icons-list .card-icon-container {
        display: flex;
        justify-content: flex-end; /* push icons to the right */
        align-items: center;
        gap: 0.5rem; /* space between icons */
        flex-wrap: nowrap;
    }

/* Phone line: left = phone, right = icons */
.card-line-phone {
    display: flex;
    align-items: center;
    justify-content: space-between; /* phone at left, icons at right */
    gap: 0.5rem;
    width: 100%;
    box-sizing: border-box;
    padding-right: 4px; /* small breathing room */
}

/* Ensure the inner icon container lays out icons correctly */
.card-line-phone .card-icon-container {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem;
}

/* small adjustments for icon size/spacing */
.card-line-phone .card-icon {
    margin: 0;
    font-size: 18px;
}


