/* ==========================================================================
   Craftsperson Single Listing Template
   ========================================================================== */

/* ---- Hero section ---- */

.single-job-listing.craftsperson-template{
    padding: 70px 20px;
}
.craftsperson-hero {
    padding: 20px 0px
}

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

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

.craftsperson-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);
}

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

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

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

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

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

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

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

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

/* Buttons */
a.craftsperson-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.craftsperson-btn:hover,
a.craftsperson-btn:focus {
    background: #013B6E;
    color: #fff !important;
    text-decoration: none !important;
}

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

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

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

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

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

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

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

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

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

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

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

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

.craftsperson-sidebar__detail i {
    font-size: 14px;
    flex-shrink: 0;
    margin-top: 2px;
}

.craftsperson-sidebar__detail a {
    text-decoration: none;
}

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

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

.craftsperson-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;
}

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

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

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

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

/* Vertical separator between sidebar and content */
.craftsperson-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);
}

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

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

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

/* ---- Taxonomy sections (Materials / Techniques) ---- */
.craftsperson-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);
}

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

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

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



.craftsperson-extra-block {
    margin-top: 24px;
}

/* ---- Section title ---- */
.craftsperson-section-title {
    font-size: 22px;
    font-weight: 500;
    margin: 0 0 24px;
    position: relative;
}

/* ---- Awards + Artworks sections ---- */
.craftsperson-artworks + .craftsperson-awards {
    padding-top: 36px;
    border-top: 1px solid #d5d8dc;
}

.craftsperson-awards__thumb {
    width: 60px;
    height: 60px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
}

/* ---- Artworks section ---- */
.craftsperson-artworks {
    margin-top: 36px;
}

.craftsperson-artworks__thumb {
    width: 72px;
    height: 72px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}

/* ---- Gallery: Δημιουργίες ---- */
.craftsperson-gallery {
    padding: 50px 0;
    background: #fff;
}

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

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

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

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

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

.craftsperson-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) {
    .craftsperson-body .col-md-4.craftsperson-sidebar,
    .craftsperson-body .col-md-8.craftsperson-content {
        width: 100%;
        max-width: 100%;
        flex: 0 0 100%;
    }

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

    .craftsperson-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);
    }

    .craftsperson-separator {
        display: none;
    }
}

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

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

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

    .craftsperson-similar__header {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }

    .craftsperson-hero__logo a {
        width: 100px;
        height: 100px;
    }

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

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