.profiles {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    padding: 20px;
    margin: 20px;
}

.profile {
    border-radius: 15px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 15px;
    margin-bottom: 10px;
    position: relative;
    cursor: pointer;
    transition: transform 0.3s ease;
    max-width: 550px;
}

.profile h3 {
    font-size: 1.5em;
    text-align: center;
}

.profile img {
    border-radius: 50%; 
    object-fit: cover;
    align-items: center;
}

.booking-icon a {
    position: absolute;
    top: 20px;
    left: -40px;
    padding: 10px;
    opacity: 0.5;
    font-size: 2em;
    text-transform: uppercase;
    rotate: z -41deg;
    border-radius: 5px;
    color: var(--primary-accent-contrast);
    background-color: var(--primary-accent);
}

.booking-icon a:hover {
    opacity: 1.0;
    color: var(--primary-accent-contrast);
}

.booking-expanded-icon a {
    padding: 10px;
    opacity: 0.5;
    font-size: 2em;
    text-transform: uppercase;
    border-radius: 5px;
    color: var(--primary-accent-contrast);
    background-color: var(--primary-accent);
}

.booking-expanded-icon a:hover {
    opacity: 1.0;
    color: var(--primary-accent-contrast);
}

.profile-expanded {
    display: none;
}

.profile-expanded-picture {
    margin: 15px;
    width: 3em;
}


.profile-compact.inactive {
    display: none;
}

.profile-expanded.active {
    display: flex;
    flex-direction: column;
    margin: 15px;
}

 .profile-expanded-heading  {
    display: flex;
    flex-wrap: wrap;
    padding: 15px;
    margin: 15px;
    flex-direction: row;
}

profile-expanded-name {
    margin: 15px;
}

.profile-expanded-tags {
    width: 100%;
    margin: 15px;
}

.profile-expanded-contact {
    width: 100%;
    margin: 15px;
}

.profile-expanded-content {
    width: 100%;
    margin: 15px;
}

.profile-contact {
    font-size: 5em;
    text-align: center;
}

.profile-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 10px;
}

.profile-header img {
    height: 100px;
    width: 100px;
    margin-bottom: 10px;
    border-radius: 50%; 
    object-fit: cover;
}

.profile-header h3 {
    margin: 0;
    text-align: center;
}

.close-button {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 2em;
    cursor: pointer;
    z-index: 1100;
}

@media (max-width: 599px) {
    .profile {
        width: 100%; 
        margin-bottom: 20px;
    }



.profile-expanded-heading  {
    display: flex;
    padding: 5px;
    margin: 5px;
    flex-direction: column;
}
    
    .profile-header h3 {
        font-size: 1em;
    }
    
    .profile-contact {    
    font-size: 3em;
    text-align: center;
    }
}
