/**
 * EspaceRomand Core - Local
 * Etape 244 : presentation des fiches professionnelles.
 *
 * Charge uniquement sur les fiches Local.
 * Conserve les interactions natives HivePress.
 */

/* En-tete professionnel */

body.erc-local-single .hp-listing--view-page .hp-listing__title {
    font-size: clamp(28px, 3vw, 38px);
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: -0.025em;
    margin-bottom: 16px;
}

/* Galerie */

body.erc-local-single .hp-listing--view-page .hp-listing__images {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 28px rgba(20, 35, 50, 0.08);
}

/* Presentation de l'etablissement */

body.erc-local-single .hp-listing--view-page .hp-listing__description {
    margin-top: 28px;
    padding: 28px;
    background: #fff;
    border: 1px solid #e7ebef;
    border-radius: 14px;
    box-shadow: 0 5px 22px rgba(20, 35, 50, 0.04);
    font-size: 16px;
    line-height: 1.8;
}

/* Informations professionnelles */

body.erc-local-single .hp-listing--view-page .hp-listing__attributes--primary {
    background: #fff;
    border: 1px solid #e7ebef;
    border-radius: 14px;
    box-shadow: 0 6px 24px rgba(20, 35, 50, 0.06);
}

body.erc-local-single .hp-listing--view-page .hp-listing__attribute {
    overflow-wrap: anywhere;
}

/* Bloc du professionnel */

body.erc-local-single .hp-listing--view-page .hp-vendor--view-block {
    background: #fff;
    border: 1px solid #e7ebef;
    border-radius: 14px;
    box-shadow: 0 6px 24px rgba(20, 35, 50, 0.06);
}

/* ERC LOCAL CONTACT BUTTON V2 */

body.erc-local-single .hp-listing--view-page
.hp-vendor--view-block
.hp-vendor__actions--primary {
    display: flex;
    width: 100%;
}

body.erc-local-single .hp-listing--view-page
.hp-vendor--view-block
.hp-vendor__action--message {
    display: inline-flex;
    width: 100%;
    min-height: 50px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 13px 20px;
    border: 1px solid #075f7c;
    border-radius: 10px;
    background: #075f7c;
    color: #ffffff;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.3;
    text-align: center;
    text-decoration: none;
    box-shadow: 0 5px 14px rgba(7, 95, 124, 0.15);
    transition:
        background-color 0.18s ease,
        box-shadow 0.18s ease,
        transform 0.18s ease;
}

body.erc-local-single .hp-listing--view-page
.hp-vendor--view-block
.hp-vendor__action--message:hover {
    background: #064e67;
    border-color: #064e67;
    color: #ffffff;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(7, 95, 124, 0.22);
}

body.erc-local-single .hp-listing--view-page
.hp-vendor--view-block
.hp-vendor__action--message:focus-visible {
    outline: 3px solid #68b7db;
    outline-offset: 3px;
}

body.erc-local-single .hp-listing--view-page
.hp-vendor--view-block
.hp-vendor__action--message i {
    color: inherit;
}

body.erc-local-single .hp-listing--view-page
.hp-vendor--view-block
.hp-vendor__action--message::after {
    content: "Contacter le professionnel";
    color: inherit;
}
/* Adaptation mobile */

@media (max-width: 767px) {
    body.erc-local-single .hp-listing--view-page .hp-listing__title {
        font-size: 27px;
    }

    body.erc-local-single .hp-listing--view-page .hp-listing__description {
        padding: 20px;
        font-size: 15px;
    }

    body.erc-local-single .hp-listing--view-page
    .hp-vendor--view-block
    .hp-vendor__action--message {
        width: 100%;
        min-height: 46px;
    }
}
/* Informations professionnelles Local */
.erc-local-professional { margin: 28px 0; padding: 30px; background: #fff; border: 1px solid #e5eaf0; border-radius: 16px; box-shadow: 0 8px 28px rgba(20,35,50,.06); }
.erc-local-professional h2 { margin: 0 0 24px; font-size: 23px; font-weight: 800; color: #172b42; }
.erc-local-detail { display: grid; grid-template-columns: minmax(150px,190px) minmax(0,1fr); gap: 20px; padding: 15px 0; border-bottom: 1px solid #edf0f3; }
.erc-local-detail:last-child { border-bottom: 0; padding-bottom: 0; }
.erc-local-detail__label { font-weight: 700; color: #536477; }
.erc-local-detail__value { min-width: 0; color: #172b42; overflow-wrap: anywhere; }
.erc-local-detail__value a { color: #1769aa; font-weight: 600; text-decoration: none; }
.erc-local-detail__value a:hover { text-decoration: underline; }
.erc-local-detail__value a:focus-visible { outline: 3px solid #68b7db; outline-offset: 3px; }
body.erc-local-single .hp-listing__details { display: flex; flex-wrap: wrap; gap: .5rem 1rem; }
body.erc-local-single .hp-listing__description { overflow-wrap: anywhere; }
@media (max-width: 767px) { .erc-local-professional { padding: 22px 18px; } .erc-local-detail { grid-template-columns: minmax(0,1fr); gap: 6px; } }
