
/* Cercador d'immobles (shortcode).
 * Aquests selectors son deliberadament mes especifics que els d'Astra i
 * Elementor, ja que els controls del shortcode no es poden editar des del
 * panell d'estil d'Elementor. */
.bulage-cercador {
    --bulage-search-ink: #2c3e50;
    --bulage-search-border: #d2d6da;
    --bulage-search-focus: #aeb7c0;
    width: 100%;
    margin: 0;
}

.bulage-cercador .bulage-cercador-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 188px;
    gap: 12px;
    align-items: end;
}

.bulage-cercador .bulage-search-field {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 6px;
}

.bulage-cercador .bulage-search-field label {
    margin: 0;
    color: #17283e;
    font-family: "Inter", sans-serif;
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
    text-transform: uppercase;
}

.bulage-cercador .bulage-select {
    width: 100%;
    height: 50px;
    margin: 0;
    padding: 0 42px 0 15px;
    border: 1px solid var(--bulage-search-border);
    border-radius: 7px;
    background-color: #fff;
    color: #46576a;
    font-family: "Inter", "Poppins", sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.2;
    box-shadow: none;
    transition: border-color 160ms ease, box-shadow 160ms ease;
}

.bulage-cercador .bulage-select:hover {
    border-color: var(--bulage-search-focus);
}

.bulage-cercador .bulage-select:focus {
    border-color: var(--bulage-search-ink);
    outline: 0;
    box-shadow: 0 0 0 3px rgb(44 62 80 / 12%);
}

.bulage-cercador .bulage-btn {
    display: inline-flex;
    min-width: 188px;
    min-height: 50px;
    margin: 0;
    padding: 0 24px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 1px solid #9e2f43;
    border-radius: 8px;
    background-color: #9e2f43;
    color: #fff;
    font-family: "Inter", "Poppins", sans-serif;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    box-shadow: none;
    transition: background-color 160ms ease, border-color 160ms ease,
        transform 160ms ease;
}

.bulage-cercador .bulage-btn:hover,
.bulage-cercador .bulage-btn:focus {
    border-color: #7f2033;
    background-color: #7f2033;
    color: #fff;
}

.bulage-cercador .bulage-btn:focus-visible {
    outline: 3px solid rgb(158 47 67 / 24%);
    outline-offset: 2px;
}

.bulage-cercador .bulage-btn:active {
    transform: translateY(1px);
}

.bulage-cercador .bulage-btn__icon {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-width: 1.8;
}

/* Contenidor Elementor del cercador a la portada. */
.elementor-31 .elementor-element.elementor-element-b484bec {
    --margin-top: -114px;
    margin-top: -114px;
}

.elementor-31 .elementor-element.elementor-element-d9b0e22 {
    overflow: hidden;
    border-radius: 16px 16px 0 0;
    background-color: rgb(255 255 255 / 97%);
}

.elementor-31 .elementor-element.elementor-element-630fffe {
    padding: 22px 20px 21px;
    border: 0;
    border-radius: 0;
}

@media (max-width: 767px) {
    .elementor-31 .elementor-element.elementor-element-b484bec {
        --margin-top: -40px;
        margin-top: -40px;
    }

    .elementor-31 .elementor-element.elementor-element-d9b0e22 {
        border-radius: 16px;
    }

    .elementor-31 .elementor-element.elementor-element-630fffe {
        padding: 20px;
    }

    .bulage-cercador .bulage-cercador-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .bulage-cercador .bulage-btn {
        width: 100%;
    }
}

/* Ajust de densitat per a la fitxa impresa. */
@media print {
    @page {
        margin: 10mm 11mm 12mm;
    }

    .bulage-print-masthead {
        margin-bottom: 4mm !important;
        padding-bottom: 2.5mm !important;
    }

    .bulage-print-cover {
        height: 62mm !important;
        margin-bottom: 4mm !important;
    }

    /* Redueix l'espai global que Elementor deixa entre widgets. */
    .elementor-element-830697c {
        --kit-widget-spacing: 6px;
        --gap: 6px;
        gap: 6px !important;
        padding: 0 !important;
    }

    .elementor-element-830697c .elementor-widget {
        margin-block-end: 0 !important;
    }

    .elementor-element-830697c .elementor-heading-title {
        margin-top: 0 !important;
        margin-bottom: 0 !important;
    }

    /* Descripció. */
    .elementor-element-a17c4b6 {
        --gap: 6px;
        gap: 6px !important;
        margin: 0 0 4mm !important;
        padding: 2mm 0 0 !important;
    }

    .bulage-property-description {
        font-size: 9.2pt !important;
        line-height: 1.42 !important;
    }

    .bulage-property-description p {
        margin-bottom: 0.55em !important;
    }

    /* Blocs d'informació, equipament i energia. */
    .elementor-element-4442b20,
    .elementor-element-fe79592,
    .elementor-element-16fd808 {
        --gap: 6px;
        gap: 6px !important;
        margin: 0 0 4mm !important;
        padding: 0 !important;
    }

    .elementor-element-948eb8c .elementor-heading-title,
    .elementor-element-4dc59e7 .elementor-heading-title,
    .elementor-element-9aeb50e .elementor-heading-title,
    .bulage-energy-section__kicker {
        font-size: 11pt !important;
        line-height: 1.1 !important;
    }

    .elementor-element-ab489ed .elementor-heading-title,
    .elementor-element-de844fb .elementor-heading-title,
    .elementor-element-c534979 .elementor-heading-title,
    .bulage-energy-section > h2 {
        margin-bottom: 2mm !important;
        font-size: 16pt !important;
        line-height: 1.15 !important;
    }

    /* Detalls principals: dues columnes compactes i sense alçades heretades. */
    .elementor-element-2f05978 {
        --gap: 0 8mm;
        gap: 0 8mm !important;
    }

    .elementor-element-2f05978 .bulage-detail {
        min-height: 0 !important;
        padding: 2.2mm 0 !important;
        gap: 2mm !important;
    }

    .elementor-element-2f05978 .bulage-detail > * {
        min-height: 0 !important;
        margin: 0 !important;
        line-height: 1.25 !important;
    }

    /* Equipament: quatre columnes curtes aprofitant l'amplada d'A4. */
    .elementor-element-555023e,
    .bulage-property-features {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
        gap: 1.5mm 5mm !important;
    }

    .elementor-element-555023e > .e-con,
    .elementor-element-555023e .bulage-detail,
    .bulage-property-features li {
        min-height: 0 !important;
        margin: 0 !important;
        padding: 1mm 0 !important;
        gap: 2mm !important;
        font-size: 9pt !important;
        line-height: 1.2 !important;
    }

    .elementor-element-555023e .elementor-icon,
    .bulage-property-features li span {
        width: 18px !important;
        height: 18px !important;
        flex-basis: 18px !important;
        font-size: 9px !important;
    }

    /* Certificat complet en una franja baixa, però encara llegible. */
    .bulage-energy-certificate {
        gap: 4mm !important;
    }

    .bulage-energy-metric {
        padding: 3mm !important;
        border-radius: 7px !important;
    }

    .bulage-energy-label {
        margin-bottom: 2.5mm !important;
        font-size: 9.5pt !important;
    }

    .bulage-energy-scale {
        gap: 3px !important;
    }

    .bulage-energy-grade {
        width: 27px !important;
        height: 27px !important;
        flex-basis: 27px !important;
        margin-inline: 0 !important;
        font-size: 9px !important;
    }

    .bulage-energy-grade.is-active {
        transform: scale(1.08) !important;
    }

    .bulage-energy-result {
        margin-top: 2.5mm !important;
        font-size: 8.5pt !important;
    }

    .bulage-energy-result strong {
        font-size: 15pt !important;
    }
}

/* Immobles desats */
.bulage-related-properties__grid,
.bulage-saved-properties__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
}

.bulage-related-card,
.bulage-saved-card {
    overflow: hidden;
    border: 1px solid #e4e8ec;
    border-radius: 4px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(36, 54, 74, 0.08);
}

.bulage-saved-card[hidden],
.bulage-saved-properties__empty[hidden] {
    display: none !important;
}

.bulage-related-card__image,
.bulage-saved-card__image {
    aspect-ratio: 4 / 3;
    display: block;
    overflow: hidden;
    background: #eef1f3;
}

.bulage-related-card__image img,
.bulage-saved-card__image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.bulage-related-card__image:hover img,
.bulage-saved-card__image:hover img {
    transform: scale(1.025);
}

.bulage-related-card__body,
.bulage-saved-card__body {
    padding: 22px;
}

.bulage-related-card__location,
.bulage-saved-card__location {
    margin: 0 0 7px;
    color: #a43245;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
}

.bulage-related-card h3,
.bulage-saved-card h2 {
    margin: 0 0 14px;
    font-size: 20px;
    line-height: 1.35;
}

.bulage-related-card h3 a,
.bulage-saved-card h2 a {
    color: #24364a;
}

.bulage-related-card__price,
.bulage-saved-card__price {
    margin: 0;
    color: #24364a;
    font-size: 19px;
    font-weight: 700;
}

.bulage-related-card__link {
    margin-top: 18px;
    display: inline-block;
    color: #a43245;
    font-weight: 700;
}

.bulage-saved-card__actions {
    margin-top: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.bulage-saved-card__actions a,
.bulage-saved-properties__empty a {
    color: #a43245;
    font-weight: 700;
}

.bulage-saved-card__actions button {
    padding: 0;
    border: 0;
    color: #667382;
    background: transparent;
    font: inherit;
    font-size: 13px;
    text-decoration: underline;
    cursor: pointer;
}

.bulage-saved-properties__empty {
    padding: 54px 28px;
    border: 1px solid #e4e8ec;
    text-align: center;
    background: #f8f9fa;
}

.bulage-saved-properties__empty h2 {
    margin-top: 0;
    color: #24364a;
}

.bulage-save-property.is-saved,
.bulage-save-property.is-saved:hover,
.bulage-save-property.is-saved:focus {
    border-color: #a43245 !important;
    color: #a43245 !important;
}

.bulage-save-property.is-saved .elementor-button-icon .e-font-icon-svg {
    display: none;
}

.bulage-save-property.is-saved .elementor-button-icon::before {
    content: "♥";
    color: #a43245;
    font-size: 19px;
    line-height: 1;
}

.bulage-saved-link {
    padding: 7px 2px;
    display: inline-flex;
    align-items: center;
    color: #a43245;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.bulage-saved-link[hidden] {
    display: none !important;
}

.bulage-saved-link:hover,
.bulage-saved-link:focus {
    color: #7f2636;
}

.bulage-print-masthead,
.bulage-print-cover {
    display: none;
}

@media (max-width: 900px) {
    .bulage-related-properties__grid,
    .bulage-saved-properties__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .bulage-related-properties__grid,
    .bulage-saved-properties__grid {
        grid-template-columns: 1fr;
    }
}

/* Fitxa preparada per imprimir o desar com a PDF */
@media print {
    @page {
        size: A4;
        margin: 14mm 13mm 16mm;
    }

    html,
    body {
        color: #202b36 !important;
        background: #fff !important;
        font-size: 10pt;
    }

    .elementor-location-header,
    .elementor-location-footer,
    header.site-header,
    footer.site-footer,
    .elementor-widget-nav-menu,
    .elementor-widget-share-buttons,
    .elementor-widget-button,
    .elementor-widget-form,
    .elementor-widget-loop-grid,
    .bulage-related-properties,
    .bulage-print-hide,
    .bulage-saved-link,
    /* Ubicació/mapa complet. */
    .elementor-element-3101980,
    /* Columna lateral de contacte. */
    .elementor-element-b9c469f,
    /* Capçalera, separador i graella d'immobles similars. */
    .elementor-element-b5c6745,
    .elementor-element-236de53,
    .elementor-element-48bd2df,
    .elementor-widget-google_maps,
    .elementor-widget-video,
    .elementor-lightbox,
    form,
    iframe,
    nav,
    .bulage-property-description__toggle,
    .bulage-property-description__fade {
        display: none !important;
    }

    /* La columna principal ocupa l'espai que deixa lliure el lateral. */
    .elementor-element-830697c {
        width: 100% !important;
        max-width: 100% !important;
        flex: 1 1 100% !important;
    }

    .bulage-print-masthead {
        margin: 0 0 8mm;
        padding: 0 0 4mm;
        display: flex !important;
        align-items: flex-end;
        justify-content: space-between;
        border-bottom: 1.5pt solid #a43245;
        color: #24364a;
    }

    .bulage-print-masthead strong {
        font-size: 19pt;
        line-height: 1;
    }

    .bulage-print-masthead span {
        color: #667382;
        font-size: 8.5pt;
    }

    .bulage-print-cover {
        width: 100%;
        height: 78mm;
        margin: 0 0 7mm;
        display: block !important;
        object-fit: cover;
        page-break-inside: avoid;
    }

    .elementor-widget-gallery {
        display: none !important;
    }

    main,
    .site-content,
    .ast-container,
    .elementor,
    .e-con,
    .elementor-element {
        max-width: 100% !important;
    }

    .e-con,
    .elementor-element {
        min-height: 0 !important;
    }

    h1,
    h2,
    h3,
    .elementor-heading-title {
        color: #24364a !important;
        page-break-after: avoid;
    }

    h1,
    .elementor-widget-theme-post-title .elementor-heading-title {
        font-size: 22pt !important;
        line-height: 1.2 !important;
    }

    a,
    a:visited {
        color: inherit !important;
        text-decoration: none !important;
    }

    .bulage-property-description.is-ready:not(.is-expanded) .bulage-property-description__content {
        max-height: none !important;
        overflow: visible !important;
    }

    .bulage-property-facts,
    .bulage-property-features,
    .bulage-energy-section,
    img {
        break-inside: avoid;
        page-break-inside: avoid;
    }

    /* La descripció pot continuar a la pàgina següent sense deixar un buit. */
    .bulage-property-description {
        break-inside: auto;
        page-break-inside: auto;
    }

    .bulage-property-facts > div {
        padding-top: 7px;
        padding-bottom: 7px;
    }

    * {
        box-shadow: none !important;
        text-shadow: none !important;
        animation: none !important;
        transition: none !important;
    }
}

/*cercador avançat*/
/* Targetes d'immobles destacats de la portada (Loop Item 68).
 * Les fotografies importades poden portar franges blanques dins del fitxer;
 * el lleuger zoom les retalla i la proporcio fixa alinea totes les targetes. */
.elementor-68 .elementor-element.elementor-element-efdfe9d {
    aspect-ratio: 4 / 3;
    margin: 0;
    overflow: hidden;
    border-radius: 4px 4px 0 0;
}

.elementor-68 .elementor-element.elementor-element-efdfe9d
    .elementor-widget-container,
.elementor-68 .elementor-element.elementor-element-efdfe9d a {
    display: block;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.elementor-68 .elementor-element.elementor-element-efdfe9d img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform: scale(1.14);
    transform-origin: center;
    transition: transform 400ms ease;
}

.elementor-68 .elementor-element.elementor-element-efdfe9d:hover img {
    transform: scale(1.18);
}

@media (prefers-reduced-motion: reduce) {
    .elementor-68 .elementor-element.elementor-element-efdfe9d img {
        transition: none;
    }
}

.bulage-cercador-grid-avancat {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr auto;
    gap: 12px;
    align-items: center;
}

@media (max-width: 1024px) {
    .bulage-cercador-grid-avancat {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {
    .bulage-cercador-grid-avancat {
        grid-template-columns: 1fr;
    }
}

/* Certificat energètic de la fitxa d'immoble */
.bulage-energy-certificate {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 42px;
}

/* --------------------------------------------------------------
 * Proposta Personal Shopper Immobiliari
 * Pàgina Elementor en esborrany: tots els estils queden encapsulats.
 * -------------------------------------------------------------- */
.bulage-psi-page {
    --psi-navy: #2c3e50;
    --psi-navy-deep: #17283e;
    --psi-burgundy: #9e2f43;
    --psi-burgundy-dark: #7f2033;
    --psi-cream: #f6f3ee;
    --psi-line: #e4e2dd;
    --psi-muted: #657181;
    overflow: hidden;
    color: var(--psi-navy);
    font-family: "Inter", sans-serif;
}

.bulage-psi-page,
.bulage-psi-page * {
    box-sizing: border-box;
}

.bulage-psi-page .bulage-psi-section {
    width: 100%;
    padding: 100px max(28px, calc((100vw - 1240px) / 2));
}

.bulage-psi-page .bulage-psi-section > .e-con-inner {
    max-width: none;
}

.bulage-psi-page .bulage-psi-eyebrow .elementor-heading-title {
    margin: 0;
    color: var(--psi-burgundy);
    font-family: "Inter", sans-serif;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.4;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.bulage-psi-page .bulage-psi-title .elementor-heading-title,
.bulage-psi-page .bulage-psi-heading .elementor-heading-title,
.bulage-psi-page .bulage-psi-card-title .elementor-heading-title {
    margin: 0;
    color: var(--psi-navy);
    font-family: "Inter", sans-serif;
    font-weight: 700;
}

.bulage-psi-page .bulage-psi-title .elementor-heading-title {
    max-width: 720px;
    font-size: clamp(48px, 5.3vw, 76px);
    line-height: 0.98;
    letter-spacing: -0.045em;
}

.bulage-psi-page .bulage-psi-heading .elementor-heading-title {
    max-width: 760px;
    font-size: clamp(38px, 4vw, 54px);
    line-height: 1.06;
    letter-spacing: -0.035em;
}

.bulage-psi-page .bulage-psi-copy,
.bulage-psi-page .bulage-psi-copy p {
    color: var(--psi-muted);
    font-family: "Inter", sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.75;
}

.bulage-psi-page .bulage-psi-copy p:last-child {
    margin-bottom: 0;
}

.bulage-psi-page .bulage-psi-hero {
    min-height: 720px;
    padding-top: 80px;
    padding-bottom: 80px;
    background: var(--psi-cream);
}

.bulage-psi-page .bulage-psi-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr);
    gap: clamp(48px, 7vw, 100px);
    align-items: center;
}

.bulage-psi-page .bulage-psi-hero-copy {
    gap: 24px;
}

.bulage-psi-page .bulage-psi-hero-copy .bulage-psi-copy {
    max-width: 650px;
}

.bulage-psi-page .bulage-psi-actions {
    display: flex;
    flex-flow: row wrap;
    gap: 12px;
    margin-top: 10px;
}

.bulage-psi-page .bulage-psi-button {
    width: auto;
}

.bulage-psi-page .bulage-psi-button .elementor-button {
    min-height: 54px;
    padding: 0 24px;
    border: 1px solid var(--psi-burgundy);
    border-radius: 10px;
    background: var(--psi-burgundy);
    color: #fff;
    font-family: "Inter", sans-serif;
    font-size: 14px;
    font-weight: 700;
    line-height: 52px;
    transition: background-color 160ms ease, border-color 160ms ease;
}

.bulage-psi-page .bulage-psi-button .elementor-button:hover,
.bulage-psi-page .bulage-psi-button .elementor-button:focus {
    border-color: var(--psi-burgundy-dark);
    background: var(--psi-burgundy-dark);
    color: #fff;
}

.bulage-psi-page .bulage-psi-button--outline .elementor-button {
    border-color: var(--psi-navy);
    background: transparent;
    color: var(--psi-navy);
}

.bulage-psi-page .bulage-psi-button--outline .elementor-button:hover,
.bulage-psi-page .bulage-psi-button--outline .elementor-button:focus {
    border-color: var(--psi-navy);
    background: var(--psi-navy);
    color: #fff;
}

.bulage-psi-page .bulage-psi-profile-card {
    position: relative;
    min-height: 530px;
    padding: 54px 48px 46px;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 24px;
    background: var(--psi-navy);
    box-shadow: 0 24px 70px rgb(23 40 62 / 18%);
    text-align: center;
}

.bulage-psi-page .bulage-psi-profile-card::before {
    position: absolute;
    width: 260px;
    height: 260px;
    top: -100px;
    right: -90px;
    border: 1px solid rgb(255 255 255 / 14%);
    border-radius: 50%;
    content: "";
}

.bulage-psi-page .bulage-psi-portrait {
    width: 220px;
    max-width: 220px;
    margin-bottom: 24px;
}

.bulage-psi-page .bulage-psi-portrait img {
    width: 220px;
    height: 220px;
    border: 8px solid rgb(255 255 255 / 12%);
    border-radius: 50%;
    object-fit: cover;
}

.bulage-psi-page .bulage-psi-profile-quote,
.bulage-psi-page .bulage-psi-profile-quote p {
    max-width: 370px;
    margin: 0 auto;
    color: #fff;
    font-size: 24px;
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: -0.02em;
}

.bulage-psi-page .bulage-psi-profile-name .elementor-heading-title {
    margin: 25px 0 2px;
    color: #fff;
    font-family: "Inter", sans-serif;
    font-size: 16px;
    font-weight: 800;
}

.bulage-psi-page .bulage-psi-profile-role,
.bulage-psi-page .bulage-psi-profile-role p {
    margin: 0;
    color: rgb(255 255 255 / 68%);
    font-size: 13px;
    line-height: 1.4;
}

.bulage-psi-page .bulage-psi-intro-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(380px, 0.7fr);
    gap: 100px;
    align-items: start;
}

.bulage-psi-page .bulage-psi-intro-copy {
    gap: 22px;
}

.bulage-psi-page .bulage-psi-principle {
    padding: 36px;
    border-top: 3px solid var(--psi-burgundy);
    border-radius: 0 0 16px 16px;
    background: var(--psi-cream);
}

.bulage-psi-page .bulage-psi-principle .elementor-heading-title {
    color: var(--psi-navy);
    font-size: 29px;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.025em;
}

.bulage-psi-page .bulage-psi-method,
.bulage-psi-page .bulage-psi-process {
    background: var(--psi-cream);
}

.bulage-psi-page .bulage-psi-section-heading {
    gap: 18px;
    margin-bottom: 50px;
}

.bulage-psi-page .bulage-psi-cards {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.bulage-psi-page .bulage-psi-card {
    min-height: 330px;
    padding: 32px;
    gap: 22px;
    border: 1px solid var(--psi-line);
    border-radius: 16px;
    background: #fff;
}

.bulage-psi-page .bulage-psi-card-number .elementor-heading-title {
    color: var(--psi-burgundy);
    font-size: 13px;
    font-weight: 800;
}

.bulage-psi-page .bulage-psi-card-title .elementor-heading-title {
    font-size: 24px;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.bulage-psi-page .bulage-psi-card .bulage-psi-copy,
.bulage-psi-page .bulage-psi-card .bulage-psi-copy p {
    font-size: 14px;
    line-height: 1.65;
}

.bulage-psi-page .bulage-psi-manifesto {
    padding-top: 85px;
    padding-bottom: 85px;
    align-items: center;
    background: var(--psi-navy);
    text-align: center;
}

.bulage-psi-page .bulage-psi-manifesto .elementor-heading-title {
    max-width: 940px;
    margin: 0 auto;
    color: #fff;
    font-size: clamp(34px, 4.2vw, 58px);
    font-weight: 600;
    line-height: 1.12;
    letter-spacing: -0.035em;
}

.bulage-psi-page .bulage-psi-benefit-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
}

.bulage-psi-page .bulage-psi-benefit {
    min-height: 245px;
    padding: 0 26px 28px 0;
    gap: 18px;
    border-top: 1px solid var(--psi-navy);
}

.bulage-psi-page .bulage-psi-benefit-stat .elementor-heading-title {
    margin-top: 24px;
    color: var(--psi-burgundy);
    font-size: 38px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.03em;
}

.bulage-psi-page .bulage-psi-benefit-title .elementor-heading-title {
    color: var(--psi-navy);
    font-size: 18px;
    font-weight: 700;
    line-height: 1.25;
}

.bulage-psi-page .bulage-psi-benefit .bulage-psi-copy,
.bulage-psi-page .bulage-psi-benefit .bulage-psi-copy p {
    font-size: 14px;
    line-height: 1.6;
}

.bulage-psi-page .bulage-psi-steps {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0;
}

.bulage-psi-page .bulage-psi-step {
    min-height: 180px;
    padding: 26px 22px;
    gap: 20px;
    border-top: 1px solid var(--psi-navy);
    border-right: 1px solid var(--psi-line);
}

.bulage-psi-page .bulage-psi-step:last-child {
    border-right: 0;
}

.bulage-psi-page .bulage-psi-step-number .elementor-heading-title {
    color: var(--psi-burgundy);
    font-size: 12px;
    font-weight: 800;
}

.bulage-psi-page .bulage-psi-step-title .elementor-heading-title {
    color: var(--psi-navy);
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
}

.bulage-psi-page .bulage-psi-cta {
    padding-top: 90px;
    padding-bottom: 90px;
    background: var(--psi-burgundy);
}

.bulage-psi-page .bulage-psi-cta-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 50px;
    align-items: center;
}

.bulage-psi-page .bulage-psi-cta-copy {
    gap: 16px;
}

.bulage-psi-page .bulage-psi-cta .bulage-psi-eyebrow .elementor-heading-title,
.bulage-psi-page .bulage-psi-cta .bulage-psi-heading .elementor-heading-title,
.bulage-psi-page .bulage-psi-cta .bulage-psi-copy,
.bulage-psi-page .bulage-psi-cta .bulage-psi-copy p {
    color: #fff;
}

.bulage-psi-page .bulage-psi-cta .bulage-psi-copy {
    max-width: 700px;
}

.bulage-psi-page .bulage-psi-button--light .elementor-button {
    min-width: 190px;
    border-color: #fff;
    background: #fff;
    color: var(--psi-burgundy);
}

.bulage-psi-page .bulage-psi-button--light .elementor-button:hover,
.bulage-psi-page .bulage-psi-button--light .elementor-button:focus {
    border-color: var(--psi-navy-deep);
    background: var(--psi-navy-deep);
    color: #fff;
}

@media (max-width: 1024px) {
    .bulage-psi-page .bulage-psi-section {
        padding: 80px 40px;
    }

    .bulage-psi-page .bulage-psi-hero-grid,
    .bulage-psi-page .bulage-psi-intro-grid {
        grid-template-columns: 1fr 1fr;
        gap: 50px;
    }

    .bulage-psi-page .bulage-psi-cards,
    .bulage-psi-page .bulage-psi-benefit-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .bulage-psi-page .bulage-psi-steps {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .bulage-psi-page .bulage-psi-section {
        padding: 64px 22px;
    }

    .bulage-psi-page .bulage-psi-hero {
        padding-top: 55px;
    }

    .bulage-psi-page .bulage-psi-hero-grid,
    .bulage-psi-page .bulage-psi-intro-grid,
    .bulage-psi-page .bulage-psi-cta-grid {
        grid-template-columns: 1fr;
    }

    .bulage-psi-page .bulage-psi-title .elementor-heading-title {
        font-size: 46px;
    }

    .bulage-psi-page .bulage-psi-heading .elementor-heading-title {
        font-size: 37px;
    }

    .bulage-psi-page .bulage-psi-profile-card {
        min-height: 0;
        padding: 44px 24px;
    }

    .bulage-psi-page .bulage-psi-cards,
    .bulage-psi-page .bulage-psi-benefit-grid,
    .bulage-psi-page .bulage-psi-steps {
        grid-template-columns: 1fr;
    }

    .bulage-psi-page .bulage-psi-card {
        min-height: 0;
    }

    .bulage-psi-page .bulage-psi-step {
        min-height: 0;
        border-right: 0;
    }

    .bulage-psi-page .bulage-psi-button,
    .bulage-psi-page .bulage-psi-button .elementor-button {
        width: 100%;
    }
}

.bulage-energy-metric {
    min-width: 0;
    padding: 24px;
    border: 1px solid #e5e8eb;
    border-radius: 14px;
    background: #fff;
}

.bulage-energy-label {
    margin: 0 0 18px;
    color: #24364a;
    font-size: 15px;
    font-weight: 700;
}

.bulage-energy-scale {
    display: flex;
    align-items: center;
    gap: 7px;
}

.bulage-energy-grade {
    width: 38px;
    height: 38px;
    display: inline-flex;
    flex: 0 0 38px;
    align-items: center;
    justify-content: center;
    padding-right: 4px;
    clip-path: polygon(0 0, 78% 0, 100% 50%, 78% 100%, 0 100%);
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    line-height: 1;
    opacity: 0.68;
    transition: transform 0.2s ease, opacity 0.2s ease, filter 0.2s ease;
}

.bulage-energy-grade.is-active {
    transform: scale(1.22);
    margin-inline: 4px;
    opacity: 1;
    filter:
        drop-shadow(0 0 1px #fff)
        drop-shadow(0 0 2px #24364a)
        drop-shadow(0 7px 8px rgba(36, 54, 74, 0.22));
}

.bulage-energy-grade--a { background: #13874b; }
.bulage-energy-grade--b { background: #4a9f43; }
.bulage-energy-grade--c { background: #a1b936; }
.bulage-energy-grade--d { background: #e4c92d; }
.bulage-energy-grade--e { background: #e6a52b; }
.bulage-energy-grade--f { background: #d96d2b; }
.bulage-energy-grade--g { background: #c53d32; }

.bulage-energy-result {
    margin: 20px 0 0;
    display: flex;
    align-items: baseline;
    gap: 9px;
    color: #798695;
    font-size: 13px;
}

.bulage-energy-result strong {
    color: #24364a;
    font-size: 25px;
    line-height: 1;
}

.bulage-energy-notice {
    padding: 18px 20px;
    border: 1px solid #e5e8eb;
    border-radius: 12px;
    color: #566474;
    background: #f7f8f9;
}

@media (max-width: 767px) {
    .bulage-energy-certificate {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .bulage-energy-metric {
        padding: 20px 16px;
    }

    .bulage-energy-scale {
        gap: 4px;
    }

    .bulage-energy-grade {
        width: 34px;
        height: 34px;
        flex-basis: 34px;
        font-size: 12px;
    }
}

/* Preu i descripció dinàmics de la fitxa */
.bulage-property-price {
    display: inline-flex;
    align-items: baseline;
    gap: 0.12em;
    color: #24364a;
    font-size: clamp(30px, 3vw, 42px);
    font-weight: 750;
    line-height: 1.1;
    letter-spacing: -0.035em;
}

.bulage-property-price__currency {
    font-size: 0.72em;
    letter-spacing: normal;
}

.bulage-property-price--hidden {
    font-size: clamp(25px, 2.4vw, 34px);
    letter-spacing: -0.02em;
}

.bulage-property-features {
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 26px;
    list-style: none;
}

.bulage-property-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #667382;
    font-size: 14px;
}

.bulage-property-features li span {
    width: 26px;
    height: 26px;
    flex: 0 0 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #3e9c39;
    background: #b2ebbb;
    font-size: 13px;
    font-weight: 800;
}

.bulage-property-facts {
    margin: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-top: 1px solid #e5e9ed;
}

.bulage-property-facts > div {
    min-width: 0;
    padding: 14px 0;
    display: grid;
    grid-template-columns: minmax(130px, 1fr) minmax(80px, 0.7fr);
    gap: 18px;
    border-bottom: 1px solid #e5e9ed;
}

.bulage-property-facts > div:nth-child(odd) {
    padding-right: 28px;
}

.bulage-property-facts > div:nth-child(even) {
    padding-left: 28px;
    border-left: 1px solid #e5e9ed;
}

.bulage-property-facts dt,
.bulage-property-facts dd {
    margin: 0;
    color: #667382;
    font-size: 14px;
}

.bulage-property-facts dd {
    color: #24364a;
    font-weight: 650;
}

.bulage-energy-section__kicker {
    margin: 0 0 13px;
    color: #24364a;
    font-size: 19px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 0.1px;
    text-transform: uppercase;
}

.bulage-energy-section > h2 {
    margin: 0 0 24px;
    color: #24364a;
    font-family: Poppins, sans-serif;
    font-size: 30px;
    font-weight: 600;
    line-height: 1.2;
}

.bulage-property-description {
    width: 100%;
    max-width: none;
    color: #667382;
    font-size: 15px;
    line-height: 1.75;
}

.bulage-property-description p {
    margin: 0 0 1.35em;
}

.bulage-property-description p:last-child {
    margin-bottom: 0;
}

.bulage-property-description__viewport {
    position: relative;
}

.bulage-property-description.is-ready:not(.is-expanded)
    .bulage-property-description__content {
    max-height: 350px;
    overflow: hidden;
}

.bulage-property-description__fade {
    display: none;
}

.bulage-property-description.is-ready:not(.is-expanded)
    .bulage-property-description__fade {
    height: 105px;
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    display: block;
    pointer-events: none;
    background: linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0),
        rgba(255, 255, 255, 0.96) 78%,
        #fff 100%
    );
}

.bulage-property-description__toggle {
    margin-top: 14px;
    padding: 4px 0;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    border: 0;
    color: #a43245;
    background: transparent;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    appearance: none;
    box-shadow: none;
    text-decoration: none;
}

.bulage-property-description__toggle[hidden] {
    display: none;
}

.bulage-property-description__toggle:hover,
.bulage-property-description__toggle:focus,
.bulage-property-description__toggle:active,
.bulage-property-description__toggle[aria-expanded="true"] {
    border-color: transparent !important;
    color: #a43245 !important;
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
    text-decoration: none;
}

.bulage-property-description__toggle:hover {
    opacity: 0.78;
}

.bulage-property-description__toggle:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 5px;
    border-radius: 2px;
}

.bulage-property-description__chevron {
    width: 8px;
    height: 8px;
    display: inline-block;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: translateY(-2px) rotate(45deg);
    transition: transform 0.2s ease;
}

.bulage-property-description.is-expanded
    .bulage-property-description__chevron {
    transform: translateY(2px) rotate(225deg);
}

@media (max-width: 767px) {
	.bulage-property-features {
		grid-template-columns: 1fr;
	}

	.bulage-property-facts {
		grid-template-columns: 1fr;
	}

	.bulage-property-facts > div,
	.bulage-property-facts > div:nth-child(odd),
	.bulage-property-facts > div:nth-child(even) {
		padding-right: 0;
		padding-left: 0;
		border-left: 0;
	}

    .bulage-property-description.is-ready:not(.is-expanded)
        .bulage-property-description__content {
        max-height: 310px;
    }
}

/* Aquest bloc ha de ser l'últim: Elementor defineix l'amplada del lateral
 * mitjançant --width i no només amb la propietat width. */
@media print {
    @page {
        margin: 10mm 11mm 12mm;
    }

    .elementor-253 .elementor-element.elementor-element-830697c {
        --width: 100% !important;
        width: 100% !important;
        max-width: 100% !important;
        flex-basis: 100% !important;
    }

    .elementor-253 .elementor-element.elementor-element-b9c469f {
        --width: 0% !important;
        width: 0 !important;
        flex-basis: 0 !important;
    }

    /* No reserva una cel·la per als detalls sense valor (p. ex. referència
     * abans de la nova importació de NumeroExpediente). */
    .elementor-element-2f05978 .bulage-detail:not(:has(> :nth-child(2))) {
        display: none !important;
    }
}

/* Menú responsive del header: el panell se superposa al contingut i no
 * modifica l'alçada de la capçalera quan s'obre. */
@media (max-width: 1024px) {
    .elementor-location-header,
    .elementor-location-header .elementor-element-121cbdf,
    .elementor-location-header .elementor-element-121cbdf > .e-con-inner {
        overflow: visible !important;
    }

    .elementor-location-header .elementor-element-121cbdf > .e-con-inner {
        position: relative;
    }

    .elementor-location-header .elementor-element-fc9a3ed,
    .elementor-location-header .elementor-element-fc9a3ed > .elementor-widget-container {
        position: static !important;
    }

    .elementor-location-header
        .elementor-element-fc9a3ed
        > nav.elementor-nav-menu--dropdown,
    .elementor-location-header
        .elementor-element-fc9a3ed
        > .elementor-widget-container
        > nav.elementor-nav-menu--dropdown {
        width: 100% !important;
        max-height: calc(100vh - 120px);
        margin: 0 !important;
        position: absolute !important;
        z-index: 10000;
        top: 100%;
        right: 0;
        left: 0;
        overflow-x: hidden;
        overflow-y: auto;
        border-top: 1px solid #e5e8eb;
        border-radius: 0 0 10px 10px;
        background: #fff;
        box-shadow: 0 14px 30px rgba(36, 54, 74, 0.16);
    }
}
