/* Directory Cards - Better internal spacing */
.directory-card .card-body {
    padding: 1.75rem !important;
 }

/* Ensure text doesn't hug the left when no image */
.directory-card .flex-grow-1 {
    min-width: 0;
/* prevents flex overflow issues */
 }

/* Slightly larger hover lift */
/* REMOVED: .directory-card:hover rule is now replaced by the global .hover-lift class in styles.css */


/* Specialty badges */
.badge-specialty {
    font-size: 0.82rem;
    padding: 0.45em 0.9em;
margin-bottom: 0.35rem;
 }
.badge-more {
    background: #6c757d !important;
 }

/* Profile Page Card Spacing */
.profile-card {
    position: relative;
    min-height: 360px;
    padding: 3rem;
    border: 1px solid #dee2e6;
border-radius: 18px;
     background: #fff;
    box-shadow: 0 6px 25px rgba(0,0,0,0.1);
}
.logo-top-left {
    top: 28px; left: 28px;
    width: 120px;
height: 120px;
     padding: 10px;
    border-radius: 14px;
}
.photo-top-right {
    top: 28px; right: 28px;
    width: 150px; height: 150px;
border: 6px solid #fff;
 }
.profile-content {
    margin-top: 180px;
 }

/* Directory Listing Card Image Sizing Adjustment for consistency */
.directory-card .card-body img.rounded-circle {
    width: 100px !important;
    height: 100px !important;
}
.directory-card .card-body img.rounded { /* For expert/logo image */
    width: 100px !important;
    height: 100px !important;
    object-fit: contain; /* Logos should contain, not cover */
}

@media (max-width: 576px) {
    .profile-card { padding: 2rem; }
    .logo-top-left, .photo-top-right { width: 100px;
height: 100px; }
    .profile-content { margin-top: 150px;
 }
}

/* Profile page map embed */
.profile-map-wrapper {
    width: 100%;
    max-width: 500px;
    aspect-ratio: 4 / 3;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 18px rgba(0,0,0,0.12);
}

.profile-map-wrapper iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* ================================
   DIRECTORY CARD IMAGE STACKING
   ================================ */

/* Top-tier stacked images */
.directory-images-stack {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    min-width: 120px;
}

/* Profile image (top-tier) */
.profile-img-top-tier {
    width: 100px !important;
    height: 100px !important;
    object-fit: cover;
}

/* Logo image (top-tier) */
.logo-img-top-tier {
    width: 80px !important;
    height: 80px !important;
    object-fit: contain;
    border: 1px solid var(--fc-border-color);
    border-radius: 10px;
    background: #fff;
}

/* Mid-tier profile image */
.profile-img-mid {
    width: 100px !important;
    height: 100px !important;
    object-fit: cover;
}

/* Remove tier badges from directory cards */
.directory-card .badge {
    display: none !important;
}