.agresa-services {
    margin: 2rem 0;
    color: var(--agresa-color-text, #373737);
}

.agresa-services > code {
    display: block;
    box-sizing: border-box;
    width: 100%;
}

.agresa-services__grid {
    display: grid;
    grid-template-columns: repeat(var(--agresa-service-columns, 4), minmax(0, 1fr));
    gap: 1.25rem;
}

.agresa-service-card {
    overflow: hidden;
    background: var(--agresa-color-card-background, #f7f7f7);
}

.agresa-service-card:hover {
    background: #f2f2f2;
    background: color-mix(in srgb, var(--agresa-color-card-background, #f7f7f7) 97%, #000);
}

.agresa-service-card__link {
    display: flex;
    height: 100%;
    flex-direction: column;
    color: inherit;
    text-decoration: none;
}

.agresa-service-card__link:hover,
.agresa-service-card__link:focus {
    color: inherit;
    text-decoration: none;
}

.agresa-service-card__visual {
    position: relative;
    display: block;
    flex-shrink: 0;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #49372e;
}

.agresa-service-card__visual--empty {
    background: #795b4b;
}

.agresa-service-card__visual img.agresa-service-card__image {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.agresa-service-card__content {
    display: grid;
    min-height: 210px;
    justify-items: center;
    align-content: center;
    gap: 0.45rem;
    padding: 1.5rem 1rem;
    text-align: center;
}

.agresa-service-card__title {
    font-size: 1.15rem;
    font-weight: 400;
    letter-spacing: 0.08em;
    color: var(--agresa-color-heading, inherit);
    text-transform: uppercase;
}

.agresa-service-card__price {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--agresa-color-text, inherit);
}

.agresa-service-card__more {
    display: grid;
    width: 2.25rem;
    height: 2.25rem;
    place-items: center;
    margin-top: 0.5rem;
    border: 1px solid #e3e3e3;
    border-radius: 50%;
    color: var(--agresa-color-text, #373737);
    transition: background-color 160ms ease, border-color 160ms ease;
}

.agresa-service-card__link:hover .agresa-service-card__more,
.agresa-service-card__link:focus .agresa-service-card__more {
    display: flex;
    width: auto;
    gap: 0.4rem;
    padding: 0 0.8rem;
    border-color: var(--agresa-color-accent, #795b4b);
    border-radius: 999px;
    background: #fff;
}

.agresa-service-card__link:hover .agresa-service-card__more-label,
.agresa-service-card__link:focus .agresa-service-card__more-label {
    position: static;
    width: auto;
    height: auto;
    padding: 0;
    margin: 0;
    overflow: visible;
    clip: auto;
}

.agresa-service-card__more-label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.agresa-service-card__arrow {
    font-size: 1.1rem;
    line-height: 1;
}

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

    .agresa-services__grid--columns-1 {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .agresa-services__grid {
        grid-template-columns: 1fr;
    }
}

.agresa-service-detail {
    max-width: 900px;
    margin: 2.5rem auto;
    padding: 24px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: var(--agresa-color-panel-background, #fff);
    color: var(--agresa-color-text, #334155);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.agresa-service-detail__title {
    margin: 0;
    padding: 0 0 1rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--agresa-color-heading, inherit);
    text-transform: uppercase;
}

.agresa-service-detail__layout {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
}

.agresa-service-detail__photo {
    min-height: 320px;
    background: #eeeae7;
}

.agresa-service-detail__photo img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 320px;
    object-fit: cover;
}

.agresa-service-detail__photo-placeholder {
    display: grid;
    min-height: 320px;
    place-items: center;
    padding: 1rem;
    color: #68635e;
    text-align: center;
}

.agresa-service-detail__content {
    min-width: 0;
    padding: 0.25rem 1rem 1rem 0;
}

.agresa-service-detail__facts {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    padding: 0.85rem 1rem;
}

.agresa-service-detail__price {
    font-weight: 700;
    color: var(--agresa-color-heading, inherit);
}

.agresa-service-detail__duration {
    align-self: center;
}

.agresa-service-detail__booking {
    padding: 0.85rem 1rem;
    text-align: right;
}

.agresa-service-detail__book.agresa-btn {
    background-color: var(--agresa-color-button-primary, var(--theme-color-text_link, #795b4b));
    color: #fff;
}

.agresa-service-detail__book.agresa-btn:hover,
.agresa-service-detail__book.agresa-btn:focus {
    background-color: var(--agresa-color-button-primary-hover, var(--theme-color-text_hover, #614637));
    color: #fff;
}

.agresa-service-detail__back {
    color: var(--agresa-color-accent, #795b4b);
}

.agresa-service-detail__description {
    padding: 0.25rem 1rem 1rem;
}

.agresa-service-detail__back {
    display: inline-block;
    margin: 0.85rem 0 0;
}

@media (max-width: 640px) {
    .agresa-service-detail__layout {
        grid-template-columns: 1fr;
    }

    .agresa-service-detail__photo {
        min-height: 0;
    }

    .agresa-service-detail__photo img {
        height: auto;
        min-height: 0;
        aspect-ratio: 4 / 3;
    }

    .agresa-service-detail__photo-placeholder {
        min-height: 0;
        aspect-ratio: 4 / 3;
    }

    .agresa-service-detail__content {
        padding: 0 1rem 1rem;
    }
}
