/**
 * Nečiūnas NT Elementor selected-properties widget.
 */

.neciunasnt-properties,
.neciunasnt-properties *,
.neciunasnt-properties *::before,
.neciunasnt-properties *::after {
    box-sizing: border-box;
}

.neciunasnt-properties {
    --neciunasnt-properties-burgundy: #391214;
    --neciunasnt-properties-cream: var(--color-cream, #f2eee3);
    --neciunasnt-properties-muted: #6b645d;
    --neciunasnt-properties-gap: 32px;
    --neciunasnt-properties-decoration-opacity: 1;

    position: relative;
    isolation: isolate;
    width: 100%;
    overflow: hidden;
    padding-block: clamp(88px, 8.35vw, 120px);
    color: var(--neciunasnt-properties-burgundy);
    background-color: var(--neciunasnt-properties-cream);
    font-family: var(--font-primary, "TT Firs Neue", Arial, sans-serif);
}

.neciunasnt-properties::before {
    position: absolute;
    z-index: 0;
    inset: 0;
    background-image: var(--neciunasnt-properties-decoration);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    content: "";
    opacity: var(--neciunasnt-properties-decoration-opacity);
    pointer-events: none;
}

.neciunasnt-properties__inner {
    position: relative;
    z-index: 1;
    width: min(calc(100% - 48px), 1240px);
    margin-inline: auto;
}

.neciunasnt-properties__heading {
    margin: 0 0 64px;
    text-align: center;
}

.neciunasnt-properties__eyebrow {
    margin: 0 0 12px;
    color: var(--neciunasnt-properties-burgundy);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.18em;
    line-height: 1.4;
    text-transform: uppercase;
}

.neciunasnt-properties__title {
    margin: 0;
    color: var(--neciunasnt-properties-burgundy);
    font-size: clamp(34px, 3.1vw, 40px);
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1.1;
    text-transform: uppercase;
}

.neciunasnt-properties__viewport {
    width: 100%;
    min-width: 0;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-behavior: smooth;
    scroll-snap-type: inline mandatory;
    scrollbar-width: none;
}

.neciunasnt-properties__viewport::-webkit-scrollbar {
    display: none;
}

.neciunasnt-properties__cards {
    display: flex;
    width: 100%;
    align-items: stretch;
    gap: var(--neciunasnt-properties-gap);
}

.neciunasnt-properties.is-single-page .neciunasnt-properties__cards {
    justify-content: center;
}

.neciunasnt-properties__card {
    display: flex;
    min-width: 0;
    min-height: 360px;
    flex: 0 0 calc((100% - (var(--neciunasnt-properties-gap) * 3)) / 4);
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--neciunasnt-properties-burgundy);
    border-radius: 20px;
    background-color: rgba(242, 238, 227, 0.6);
    scroll-snap-align: start;
}

.neciunasnt-properties__card-image {
    position: relative;
    width: 100%;
    aspect-ratio: 286 / 180;
    flex: 0 0 auto;
    overflow: hidden;
    border-radius: 20px 20px 0 0;
    background-color: rgba(142, 127, 115, 0.16);
}

.neciunasnt-properties__card-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.neciunasnt-properties__image-placeholder {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, rgba(57, 18, 20, 0.04), rgba(57, 18, 20, 0.12));
}

.neciunasnt-properties__card-body {
    display: flex;
    min-height: 178px;
    flex: 1 1 auto;
    flex-direction: column;
    padding: 20px 24px 22px;
}

.neciunasnt-properties__card-title,
.neciunasnt-properties__price,
.neciunasnt-properties__meta {
    margin: 0;
}

.neciunasnt-properties__card-title {
    color: var(--neciunasnt-properties-burgundy);
    font-size: 18px;
    font-weight: 600;
    letter-spacing: -0.012em;
    line-height: 1.3;
}

.neciunasnt-properties__price {
    margin-top: 8px;
    color: var(--neciunasnt-properties-burgundy);
    font-size: 22px;
    font-weight: 600;
    line-height: 1.25;
}

.neciunasnt-properties__meta {
    margin-top: 8px;
    color: var(--neciunasnt-properties-muted);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
}

.neciunasnt-properties__card-cta {
    display: inline-flex;
    width: fit-content;
    min-height: 40px;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    padding-top: 14px;
    color: var(--neciunasnt-properties-burgundy);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.1em;
    line-height: 1.2;
    text-decoration: none;
    text-transform: uppercase;
}

.neciunasnt-properties__card-cta:hover,
.neciunasnt-properties__card-cta:focus,
.neciunasnt-properties__card-cta:focus-visible,
.neciunasnt-properties__card-cta:active,
.neciunasnt-properties__card-cta:visited {
    color: var(--neciunasnt-properties-burgundy);
}

.neciunasnt-properties__card-cta svg,
.neciunasnt-properties__archive-cta svg {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    stroke: currentColor;
    transition: transform 180ms ease;
}

.neciunasnt-properties__card-cta:hover svg,
.neciunasnt-properties__card-cta:focus-visible svg,
.neciunasnt-properties__archive-cta:hover svg,
.neciunasnt-properties__archive-cta:focus-visible svg {
    transform: translateX(3px);
}

.neciunasnt-properties__dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 36px;
}

.neciunasnt-properties__dots[hidden],
.neciunasnt-properties__dot[hidden] {
    display: none;
}

.neciunasnt-properties__dot {
    width: 10px;
    height: 10px;
    flex: 0 0 10px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    appearance: none;
    background-color: #8e7f73;
    cursor: pointer;
    transition: background-color 180ms ease, transform 180ms ease;
}

.neciunasnt-properties__dot[aria-current="true"] {
    background-color: var(--neciunasnt-properties-burgundy);
    transform: scale(1.2);
}

.neciunasnt-properties__archive-wrap {
    display: flex;
    justify-content: center;
    margin-top: 56px;
}

.neciunasnt-properties__archive-cta {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 9px 24px;
    border: 1px solid var(--neciunasnt-properties-burgundy);
    border-radius: 999px;
    color: var(--neciunasnt-properties-burgundy);
    background-color: transparent;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.1em;
    line-height: 1.2;
    text-decoration: none;
    text-transform: uppercase;
    transition: background-color 180ms ease, color 180ms ease;
}

.neciunasnt-properties__archive-cta:hover,
.neciunasnt-properties__archive-cta:focus-visible {
    color: var(--neciunasnt-properties-cream);
    background-color: var(--neciunasnt-properties-burgundy);
}

.neciunasnt-properties__card-cta:focus-visible,
.neciunasnt-properties__archive-cta:focus-visible,
.neciunasnt-properties__dot:focus-visible,
.neciunasnt-properties__viewport:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 4px;
}

.neciunasnt-properties__placeholder {
    padding: 24px;
    border: 1px dashed #8e7f73;
    border-radius: 12px;
    color: var(--neciunasnt-properties-muted);
    text-align: center;
}

@media (max-width: 1024px) {
    .neciunasnt-properties {
        --neciunasnt-properties-gap: 24px;

        padding-block: 88px;
    }

    .neciunasnt-properties__heading {
        margin-bottom: 52px;
    }

    .neciunasnt-properties__card {
        flex-basis: calc((100% - var(--neciunasnt-properties-gap)) / 2);
    }

    .neciunasnt-properties__archive-wrap {
        margin-top: 48px;
    }
}

@media (max-width: 767px) {
    .neciunasnt-properties {
        --neciunasnt-properties-gap: 18px;

        padding-block: 64px;
    }

    .neciunasnt-properties__inner {
        width: min(calc(100% - 32px), 1240px);
    }

    .neciunasnt-properties__heading {
        margin-bottom: 38px;
    }

    .neciunasnt-properties__eyebrow {
        margin-bottom: 10px;
        font-size: 11px;
        letter-spacing: 0.15em;
    }

    .neciunasnt-properties__title {
        font-size: clamp(30px, 10vw, 36px);
    }

    .neciunasnt-properties__card {
        flex-basis: min(88%, 320px);
    }

    .neciunasnt-properties__dots {
        margin-top: 28px;
    }

    .neciunasnt-properties__archive-wrap {
        margin-top: 40px;
    }
}

@media (max-width: 374px) {
    .neciunasnt-properties__card-body {
        padding-inline: 20px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .neciunasnt-properties__viewport {
        scroll-behavior: auto;
    }

    .neciunasnt-properties__card-cta svg,
    .neciunasnt-properties__archive-cta,
    .neciunasnt-properties__archive-cta svg,
    .neciunasnt-properties__dot {
        transition: none;
    }
}
