/* ==========================================================================
   MentonJobs – Map Shortcode – Person Cards
   [mentonjobs_map side="left"]  /  [mentonjobs_map side="right"]
   The layout (columns + map) is handled by Elementor.
   ========================================================================== */

/* Entries wrapper — stacks cards vertically inside the Elementor column */
.mjmap-entries {
    display: flex;
    flex-direction: column;
    gap: 35px;
    font-family: 'Gotham', 'Gotham HTF', sans-serif;
}

/* ==========================================================================
   Single entry
   ========================================================================== */
.mjmap-entry {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* Counties block — sits above the profile row */
.mjmap-entry__counties {
    display: flex;
    flex-direction: column;
    gap: 1px;
    margin-bottom: 8px;
}

.mjmap-entry__counties span {
    display: block;
    font-family: 'Gotham', 'Gotham HTF', sans-serif;
    font-weight: 800;
    font-size: 0.70rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    line-height: 1.5;
    color: #003770;
}

/* Profile row: photo + info side by side */
.mjmap-entry__profile {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Photo wrap — no circle, no border, just the image */
.mjmap-entry__photo-wrap {
    flex-shrink: 0;
    width: 77px;    /* +20% vs original 64px */
    height: 77px;
    overflow: hidden;
}

.mjmap-entry__photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Initials fallback (shown when no photo is set) */
.mjmap-entry__initials {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1a3c5e;
    color: #ffffff;
    font-family: 'Gotham', 'Gotham HTF', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 0.03em;
    user-select: none;
}

/* Info column: name, position, phone, email */
.mjmap-entry__info {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.mjmap-entry__name {
    display: block;
    font-family: 'Gotham', 'Gotham HTF', sans-serif;
    font-weight: 700;
    font-size: 1.05rem;
    line-height: 1.3;
    color: #95C11F;     /* MentonJobs green */
}

.mjmap-entry__position {
    display: block;
    font-family: 'Gotham', 'Gotham HTF', sans-serif;
    font-size: 0.78rem;
    opacity: 0.85;
    line-height: 1.3;
    color: inherit;
}

.mjmap-entry__soon {
    display: block;
    font-family: 'Gotham', 'Gotham HTF', sans-serif;
    font-style: italic;
    font-size: 0.85rem;
    opacity: 0.6;
    color: inherit;
}

.mjmap-entry__phone,
.mjmap-entry__email {
    display: block;
    font-family: 'Gotham', 'Gotham HTF', sans-serif;
    font-size: 0.75rem;
    text-decoration: none;
    color: inherit;
    word-break: break-all;
    opacity: 0.9;
    transition: opacity 0.2s;
}

.mjmap-entry__phone:hover,
.mjmap-entry__email:hover {
    opacity: 1;
    text-decoration: underline;
}

/* ==========================================================================
   Responsive tweaks
   ========================================================================== */

@media (max-width: 1024px) {
    .mjmap-entries {
        gap: 31px;      /* -15% vs 36px */
    }

    .mjmap-entry__photo-wrap {
        width: 62px;
        height: 62px;
    }
}

@media (max-width: 480px) {
    .mjmap-entries {
        gap: 24px;      /* -15% vs 28px */
    }

    .mjmap-entry__counties span {
        font-size: 0.72rem;
    }

    .mjmap-entry__name {
        font-size: 0.95rem;
    }

    .mjmap-entry__profile {
        gap: 10px;
    }
}

/* ==========================================================================
   Card grid layout  —  [mentonjobs_map_cards]
   Quote-request page: all entries, card style with county badge + pin photo
   ========================================================================== */

.mjcard-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    font-family: 'Gotham', 'Gotham HTF', sans-serif;
}

/* Single card */
.mjcard {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.10);
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
    padding-bottom: 24px;
}

/* County badge — dark blue header, uniform height across all cards in a row */
.mjcard__badge {
    width: 100%;
    background: #003770;
    color: #ffffff;
    text-align: center;
    padding: 12px 16px;
    min-height: 120px;          /* equalises badge height — fits up to 5 county lines */
    display: flex;
    flex-direction: column;
    justify-content: center;    /* vertically centre the county lines */
    gap: 2px;
    box-sizing: border-box;
}

.mjcard__badge span {
    display: block;
    font-family: 'Gotham', 'Gotham HTF', sans-serif;
    font-weight: 800;
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    line-height: 1.4;
}

/* Photo pin: circle + triangle pointer below */
.mjcard__photo-wrap {
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 16px;
}

.mjcard__photo-circle {
    width: 156px;   /* +30% vs original 120px */
    height: 156px;
    overflow: hidden;
}

/* Triangle pin removed — photos are pre-formatted, no decorative frame needed */
.mjcard__photo-wrap::after {
    display: none;
}

.mjcard__photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.mjcard__initials {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #95C11F;
    color: #ffffff;
    font-family: 'Gotham', 'Gotham HTF', sans-serif;
    font-weight: 700;
    font-size: 1.6rem;
    letter-spacing: 0.03em;
    user-select: none;
}

/* Info block */
.mjcard__info {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 5px;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
}

.mjcard__name {
    display: block;
    font-family: 'Gotham', 'Gotham HTF', sans-serif;
    font-weight: 700;
    font-size: 1.10rem;
    line-height: 1.2;
    color: #95C11F;
    margin-bottom: 2px;
}

.mjcard__position {
    display: block;
    font-family: 'Gotham', 'Gotham HTF', sans-serif;
    font-size: 0.82rem;
    color: inherit;
    line-height: 1.3;
    opacity: 0.85;
    margin-bottom: 6px;
}

.mjcard__contact {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-family: 'Gotham', 'Gotham HTF', sans-serif;
    font-size: 0.78rem;
    text-decoration: none;
    color: inherit;
    opacity: 0.9;
    word-break: break-all;
    transition: opacity 0.2s;
}

.mjcard__contact:hover {
    opacity: 1;
    text-decoration: underline;
}

.mjcard__contact-icon {
    flex-shrink: 0;
    font-size: 0.85rem;
    opacity: 0.7;
}

/* ==========================================================================
   Card grid – responsive
   ========================================================================== */

@media (max-width: 1024px) {
    .mjcard-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .mjcard-grid {
        grid-template-columns: 1fr;
    }

    .mjcard__badge span {
        font-size: 0.62rem;
    }
}
