.poligon-detail {
    padding: 26px 0 40px;
}

.poligon-detail__breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 18px;
    font-size: 15px;
    color: #3f3f3f;
}

.poligon-detail__breadcrumb a {
    color: #3f3f3f;
    text-decoration: none;
}

.poligon-detail__breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb-strong {
    font-weight: 700;
    color: #000;
}

.fav-star {
    color: #f5b301;
    margin-right: 8px;
    font-size: 16px;
    line-height: 1;
}

.poligon-detail__header {
    margin-bottom: 44px;
}

.poligon-detail__title {
    margin: 0 0 28px;
    color: #161616;
    line-height: 0.98;
    font-weight: 300;
    font-size: 76px;
    letter-spacing: -1px;
}

.poligon-detail__title span,
.poligon-detail__title strong {
    display: block;
}

.poligon-detail__title strong {
    margin-top: 12px;
    font-weight: 800;
}

.poligon-detail__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.btn-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 20px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: all .2s ease;
}

.btn-pill:hover {
    transform: translateY(-1px);
    text-decoration: none;
}

.btn-pill--outline {
    background: #fff;
    border: 1px solid #8d867f;
    color: #2e2e2e;
}

.btn-pill--brown {
    background: #6d5949;
    color: #fff;
}

.btn-pill--dark {
    background: #000;
    color: #fff;
}

.btn-pill--sand {
    background: #d2c4a6;
    color: #fff;
}

.btn-pill--brown-light {
    background: #7b6653;
    color: #fff;
}

.btn-pill--outline-soft {
    border: 1px solid #6d5949;
    color: #6d5949;
    background: transparent;
}

.btn-pill--edit {
    background: #19b7df;
    color: #ffffff;
}

.btn-pill--edit:hover {
    background-color: #258ca4;
}

.section-title {
    margin: 0 0 18px;
    color: #232323;
    font-size: 42px;
    line-height: 1.08;
    font-weight: 300;
}

/* top */
.poligon-top {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 520px;
    gap: 54px;
    align-items: start;
}

.info-rows {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.info-row {
    display: grid;
    grid-template-columns: 260px 1fr;
    border: 1px solid #8e8e8e;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
}

.info-row__label {
    padding: 14px 20px;
    font-size: 16px;
    font-weight: 700;
    color: #202020;
    border-right: 1px solid #8e8e8e;
    background: #fff;
}

.info-row__value {
    padding: 14px 20px;
    font-size: 16px;
    color: #494949;
    background: #fff;
}

.poligon-top__media {
    width: 100%;
}

.poligon-gallery {
    position: relative;
    width: 100%;
}

.gallery-image {
    display: none;
    width: 100%;
    border-radius: 10px;
    object-fit: cover;
    aspect-ratio: 4 / 3;
}

.gallery-image.is-active {
    display: block;
}

.poligon-top__media > img {
    width: 100%;
    display: block;
    border-radius: 10px;
    object-fit: cover;
    aspect-ratio: 4 / 3;
}

.poligon-top__dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 12px;
}

.poligon-top__dots span,
.gallery-dot {
    width: 12px;
    height: 12px;
    border-radius: 999px;
    background: #d3d3d3;
}

.gallery-dot {
    cursor: pointer;
}

.poligon-top__dots .is-active,
.gallery-dot.is-active {
    background: #000;
}

/* camps */
.poligon-fields,
.poligon-fields * {
    font-family: 'Montserrat', sans-serif;
}

.poligon-fields {
    margin-top: 56px;
}

.poligon-fields__title {
    margin: 20px 0 10px;
    color: #1f1f1f;
    font-size: 42px;
    line-height: 1.1;
    font-weight: 300;
    letter-spacing: -0.5px;
}

.poligon-block {
    margin-top: 26px;
}

.poligon-block__title {
    margin: 0 0 18px;
    color: #6d5949;
    font-size: 20px;
    font-weight: 700;
}

.detail-rows {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.detail-row {
    display: grid;
    grid-template-columns: 320px 1fr 200px;
    align-items: center;
    gap: 14px;
}

.detail-row__label,
.detail-row__value {
    height: 46px;
    border: 1.5px solid #8a8a8a;
    border-radius: 10px;
    background: #ffffff;
    display: flex;
    align-items: center;
    padding: 0 16px;
    box-sizing: border-box;
}

.detail-row__label {
    font-size: 15px;
    font-weight: 700;
    color: #1f1f1f;
}

.detail-row__value {
    font-size: 15px;
    color: #3f3f3f;
}

.detail-row__meta {
    font-size: 12px;
    color: #b5b5b5;
    line-height: 1.3;
}

/* ubicació */
.poligon-links {
    margin-top: 70px;
}

.poligon-links__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 0.9fr;
    gap: 64px;
    align-items: start;
}

.poligon-map {
    margin-top: 14px;
    margin-bottom: 42px;
    width: 100%;
    max-width: 690px;
}

.poligon-map iframe {
    display: block;
    width: 100%;
    height: 260px;
    border: 0;
    border-radius: 28px;
    overflow: hidden;
    background: #e9e9e9;
}

.poligon-links__title {
    margin: 0 0 12px;
    color: #1f1f1f;
    font-size: 40px;
    line-height: 1.08;
    font-weight: 300;
    letter-spacing: -0.5px;
}

.poligon-links__title strong {
    font-weight: 800;
}

.poligon-cta-card p {
    margin: 0 0 20px;
    max-width: 520px;
    color: #3c3c3c;
    font-size: 18px;
    line-height: 1.35;
    font-weight: 400;
}

.poligon-links__divider {
    margin: 42px 0 46px;
    border: none;
    border-top: 1px solid #8e8e8e;
}

/* CTA final */
.poligon-extra {
    margin-top: 80px;
}

.iep-cta {
    background: #d8cfc0;
    border-radius: 14px;
    padding: 48px 40px;
    text-align: center;
}

.iep-cta__title {
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 14px;
    color: #1f1f1f;
}

.iep-cta__text {
    max-width: 760px;
    margin: 0 auto 26px;
    font-size: 16px;
    color: #3f3f3f;
    line-height: 1.6;
}

.iep-cta__actions {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}

/* Botó tornar */
.back-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #1f1f1f;
    text-decoration: none;
    font-weight: 700;
    white-space: nowrap;
}

/* Cercle icona */
.back-icon {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #5E4C3F;
    color: #ffffff;
    flex-shrink: 0;
}

/* SVG dins el cercle */
.back-icon svg {
    width: 14px;
    height: 14px;
}

/* Hover */
.back-button:hover .back-icon {
    background: #4f3f35;
}

/* Text */
.back-text {
    font-size: 15px;
    font-weight: 700;
    color: #1f1f1f;
}

/* Opcional: hover del text */
.back-button:hover .back-text {
    text-decoration: underline;
}

/* responsive */
@media (max-width: 1200px) {
    .poligon-detail__title {
        font-size: 62px;
    }

    .poligon-top,
    .poligon-links__grid {
        grid-template-columns: 1fr;
    }

    .poligon-top__media,
    .poligon-map {
        max-width: 520px;
    }

    .detail-row {
        grid-template-columns: 260px minmax(0, 1fr);
    }

    .detail-row__meta {
        grid-column: 2 / 3;
    }
}

@media (max-width: 768px) {
    .poligon-detail__title {
        font-size: 48px;
    }

    .section-title,
    .poligon-fields__title {
        font-size: 32px;
    }

    .info-row,
    .detail-row {
        grid-template-columns: 1fr;
    }

    .info-row__label {
        border-right: none;
        border-bottom: 1px solid #8e8e8e;
    }

    .detail-row__meta {
        grid-column: auto;
        padding-left: 4px;
    }

    .poligon-links__title {
        font-size: 28px;
        line-height: 1.15;
    }

    .poligon-cta-card p {
        font-size: 16px;
    }

    .iep-cta__title {
        font-size: 32px;
    }
}