/* ==========================================================================
   Laboratory Single Listing Template
   ========================================================================== */

/* ---- Hero section ---- */
.single-job-listing.laboratory-template{
    padding: 70px 20px;
}

.laboratory-hero {
    padding: 20px 0px;
}

.laboratory-hero__inner {
    display: flex;
    align-items: center;
    gap: 24px;
}

.laboratory-hero__logo {
    flex-shrink: 0;
}

.laboratory-hero__logo a {
    display: block;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
}

.laboratory-hero__logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.laboratory-hero__name {
    font-size: 28px;
    font-weight: 500;
    margin: 0 0 4px;
    line-height: 1.2;
}

.laboratory-hero__name .verified-listing {
    vertical-align: middle;
    margin-left: 6px;
}

p.laboratory-hero__tagline {
    font-size: 16px;
    color: #666;
    margin: 0 0 8px;
    line-height: 1.5;
}

.laboratory-hero__sectors {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.laboratory-hero__sector-tag {
    line-height: 1.4;
}

.laboratory-hero__actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.laboratory-hero__actions:empty {
    display: none;
}

/* Buttons */
a.laboratory-btn {
    display: inline-block;
    background: #014783;
    color: #FFFFFFCC !important;
    font-size: 14px;
    font-weight: 500;
    padding: 4px 10px;
    border-radius: 4px;
    line-height: 1.3;
    text-decoration: none !important;
    border: none;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

a.laboratory-btn:hover,
a.laboratory-btn:focus {
    background: #013B6E;
    color: #fff !important;
    text-decoration: none !important;
}

a.laboratory-btn--sm {
    font-size: 14px;
    padding: 10px 15px;
}

/* ---- Cover image ---- */
.laboratory-cover {
    padding: 30px 0 30px;
}

.laboratory-cover__img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    max-height: 480px;
    object-fit: cover;
}

/* ---- Body / sidebar + content ---- */
.laboratory-body {
    padding: 20px 0 40px;
}

.laboratory-sidebar {
    padding-right: 30px;
}

.laboratory-sidebar__map {
    margin-bottom: 16px;
    border-radius: 8px;
    overflow: hidden;
}

.laboratory-sidebar__map .contact-map {
    height: auto;
    border-radius: 8px;
    overflow: hidden;
    z-index: 1;
    position: relative;
}

.laboratory-sidebar__map .c27-map {
    height: 250px;
}

.laboratory-sidebar__map-address {
    margin-top: 10px;
}

.laboratory-directions-link {
    display: block;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    margin-top: 6px;
}

.laboratory-directions-link:hover {
    text-decoration: underline;
}

.laboratory-sidebar__detail {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 14px;
    line-height: 1.5;
    word-break: break-word;
    color: #012545;
}

.laboratory-sidebar__detail i {
    font-size: 14px;
    flex-shrink: 0;
    margin-top: 2px;
    color: #012545 !important;
}

.laboratory-sidebar__detail a {
    text-decoration: none;
    color: #014783 !important;
}

.laboratory-sidebar__social-wrap {
    display: flex;
    flex-direction: row;
    gap: 6px;
}

.laboratory-sidebar__social {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 0;
}

.laboratory-social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border-radius: 0;
    background: none !important;
    color: #000;
    font-size: 13px;
    transition: opacity 0.2s;
    text-decoration: none;
}

.laboratory-social-icon:hover {
    opacity: 0.6;
    color: #000;
    text-decoration: none;
}

.laboratory-social-icon svg {
    width: 13px;
    height: 13px;
    fill: #000;
}

.laboratory-social-icon i {
    color: #000 !important;
}

/* ---- Manager block (laboratory-specific) ---- */
.laboratory-sidebar__manager {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.laboratory-sidebar__manager-title {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0 0 8px;
    color: #888;
}

a.laboratory-manager-link {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
}

a.laboratory-manager-link:hover {
    text-decoration: underline;
}

.laboratory-manager-name {
    font-size: 15px;
    font-weight: 500;
    color: #012545;
}

/* Content / Description */
.laboratory-content__description {
    font-size: 16px;
    line-height: 1.75;
}

/* Vertical separator between sidebar and content */
.laboratory-separator {
    position: absolute;
    left: 33.333%;
    top: 0;
    bottom: 0;
    width: 1px;
    background: rgba(0, 0, 0, 0.08);
    box-shadow: 1px 0 2px rgba(0, 0, 0, 0.03);
}

.laboratory-body .row {
    position: relative;
}

.laboratory-content {
    padding-left: 40px;
}

.laboratory-content__description p {
    margin-bottom: 16px;
}

/* ---- Taxonomy sections (Materials / Techniques) ---- */
.laboratory-taxonomy-section {
    margin-top: 32px;
    padding-top: 28px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.03);
}

.laboratory-taxonomy-section__title {
    font-size: 22px;
}

.laboratory-taxonomy-section__desc {
    margin: 0 0 14px;
}

.laboratory-taxonomy-section__desc p {
    margin: 0;
    font-size: 16px;
    line-height: 1.75;
    color: #012545;
}

/* ---- Section title ---- */
.laboratory-section-title {
    font-size: 22px;
    font-weight: 500;
    margin: 0 0 24px;
    position: relative;
}
/* ---- Related artworks/awards thumbnail ---- */
.craftsperson-artworks__thumb,
.laboratory-artworks .craftsperson-artworks__thumb {
    width: 72px;
    height: 72px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}
/* ---- Gallery ---- */
.laboratory-gallery {
    padding: 50px 0;
    background: #fff;
}

.laboratory-gallery__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.laboratory-gallery__item {
    display: block;
    border-radius: 6px;
    overflow: hidden;
    position: relative;
    aspect-ratio: 1 / 1;
}

.laboratory-gallery__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.laboratory-gallery__item:hover img {
    transform: scale(1.05);
}

.laboratory-gallery__item--video {
    position: relative;
}

.laboratory-gallery__play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 36px;
    color: #fff;
    background: rgba(0, 0, 0, 0.45);
    border-radius: 50%;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

/* ---- Responsive ---- */
@media (max-width: 1199px) {
    .laboratory-body .col-md-4.laboratory-sidebar,
    .laboratory-body .col-md-8.laboratory-content {
        width: 100%;
        max-width: 100%;
        flex: 0 0 100%;
    }

    .laboratory-sidebar {
        padding-right: 0;
        margin-bottom: 30px;
    }

    .laboratory-content {
        padding-left: 0;
        margin-top: 32px;
        padding-top: 28px;
        border-top: 1px solid rgba(0, 0, 0, 0.08);
        box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.03);
    }

    .laboratory-separator {
        display: none;
    }
}

@media (max-width: 767px) {
    .laboratory-hero__inner {
        flex-direction: column;
        text-align: center;
    }

    .laboratory-hero__actions {
        justify-content: center;
    }

    .laboratory-gallery__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .laboratory-hero__name {
        font-size: 22px;
    }
}

.laboratory-sidebar__map-address .xp-short-address { white-space: pre-line; }
