:root {
    --properties-hero-overlay: rgba(6, 12, 18, 0.48);
    --properties-hero-text: #f8f7f3;
    --properties-hero-accent: #d4af59;
    --properties-hero-shadow: rgba(5, 11, 20, 0.36);
    --properties-page-shell: #f3f1ed;
}

* {
    box-sizing: border-box;
}

body {
    background: var(--properties-page-shell);
}

.properties-page {
    min-height: 100vh;
    background: var(--properties-page-shell);
}

.properties-page__hero {
    position: relative;
    min-height: 690px;
    display: flex;
    align-items: flex-start;
    overflow: hidden;
    background: #071420;
}

.properties-page__hero-image,
.properties-page__hero-overlay {
    position: absolute;
    inset: 0;
}

.properties-page__hero-image {
    background-size: cover;
    background-position: center center;
    transform: scale(1.02);
}

.properties-page__hero-overlay {
    background: var(--properties-hero-overlay);
}

.properties-page__hero-inner {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 104px 24px 0;
    color: var(--properties-hero-text);
}

.properties-page__hero h1 {
    margin: 0;
    font-family: var(--font-heading, "Cormorant Garamond", Georgia, serif);
    font-size: clamp(2.5rem, 4.1vw, 3.75rem);
    line-height: 0.96;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--properties-hero-text);
    text-shadow: 0 5px 22px var(--properties-hero-shadow);
}

.properties-page__breadcrumb {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 18px;
    font-size: 0.95rem;
    line-height: 1.4;
    flex-wrap: wrap;
}

.properties-page__breadcrumb a,
.properties-page__breadcrumb span {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
}

.properties-page__breadcrumb a {
    color: #f3f3f0;
}

.properties-page__breadcrumb-separator {
    color: var(--properties-hero-accent);
    font-weight: 700;
}

.properties-page__breadcrumb span:last-child {
    color: var(--properties-hero-accent);
}

.properties-page__filter-shell {
    position: relative;
    z-index: 3;
    width: min(88%, 1080px);
    margin: -300px auto 0;
    padding-bottom: 14px;
}

.properties-page__filter-shell .property-search {
    margin: 0;
}

.properties-page__results {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 24px 0;
}

.properties-results__inner {
    width: 100%;
}

.properties-results__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin: 0 0 28px;
    padding-top: 8px;
}

.properties-results__title-wrap {
    display: flex;
    align-items: baseline;
    gap: 14px;
    flex-wrap: wrap;
}

.properties-results__icon {
    display: inline-flex;
    width: 46px;
    height: 46px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(194, 139, 46, 0.45);
    border-radius: 50%;
    color: #c28b2e;
    flex: 0 0 auto;
}

.properties-results__icon svg {
    width: 31px;
    height: 31px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.15;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.properties-results__title-wrap h2 {
    margin: 0;
    color: #101827;
    font-family: var(--font-heading, "Cormorant Garamond", Georgia, serif);
    font-size: clamp(2rem, 3vw, 2.8rem);
    font-weight: 600;
    line-height: 1.08;
}

.properties-results__count {
    color: #5d6673;
    font-size: 0.96rem;
    font-weight: 600;
}

.properties-results__sort-form {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #4b5563;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
}

.properties-results__sort-form select {
    min-width: 220px;
    height: 44px;
    padding: 0 42px 0 14px;
    border: 1px solid #dfe3e7;
    border-radius: 10px;
    background-color: #fff;
    background-image: linear-gradient(45deg, transparent 50%, #7b8490 50%), linear-gradient(135deg, #7b8490 50%, transparent 50%);
    background-position: calc(100% - 17px) 18px, calc(100% - 12px) 18px;
    background-repeat: no-repeat;
    background-size: 5px 5px, 5px 5px;
    color: #273244;
    font-size: 0.9rem;
    cursor: pointer;
    appearance: none;
}

.properties-results__sort-form select:focus {
    outline: none;
    border-color: #d4af59;
    box-shadow: 0 0 0 3px rgba(212, 175, 89, 0.12);
}

.properties-results__message,
.properties-results__empty {
    padding: 32px 24px;
    border: 1px solid #e8e5df;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(17, 24, 39, 0.04);
    color: #4b5563;
}

.properties-results__empty h3 {
    margin: 0 0 8px;
    color: #111827;
    font-size: 1.5rem;
    font-family: var(--font-heading, "Cormorant Garamond", Georgia, serif);
}

.properties-results__empty p {
    margin: 0;
    color: #5d6673;
    line-height: 1.6;
}

.properties-results__clear-link {
    display: inline-block;
    margin-top: 18px;
    color: #b77d1b;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
}

.properties-results__clear-link:hover {
    color: #8f5e0d;
    text-decoration: underline;
}

.properties-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin-top: 34px;
    flex-wrap: wrap;
}

.properties-pagination__page,
.properties-pagination__control {
    display: inline-flex;
    min-width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    border: 1px solid #e0e4e8;
    border-radius: 9px;
    background: #fff;
    color: #465160;
    font-size: 0.88rem;
    font-weight: 700;
    text-decoration: none;
    transition: border-color 0.18s ease, background-color 0.18s ease, color 0.18s ease;
}

.properties-pagination__page:hover,
.properties-pagination__control:hover {
    border-color: #c9a24b;
    color: #9a6b14;
}

.properties-pagination__page.is-active {
    border-color: #172236;
    background: #172236;
    color: #fff;
}

.properties-pagination__control {
    color: #b07a1b;
    font-size: 1.45rem;
    font-weight: 400;
}

.properties-pagination__control.is-disabled {
    color: #c2c7ce;
    pointer-events: none;
}

.properties-pagination__ellipsis {
    display: inline-flex;
    width: 24px;
    height: 38px;
    align-items: center;
    justify-content: center;
    color: #7b8490;
}

.properties-results__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
}

@media (max-width: 1100px) {
    .properties-results__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 820px) {
    .properties-results__header {
        flex-direction: column;
        align-items: flex-start;
    }

    .properties-results__sort-form {
        width: 100%;
        justify-content: space-between;
    }

    .properties-results__sort-form select {
        min-width: 0;
        width: 100%;
    }

    .properties-results__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .properties-page__results {
        padding-left: 16px;
        padding-right: 16px;
    }

    .properties-results__header {
        margin-bottom: 22px;
    }

    .properties-results__title-wrap {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .properties-results__sort-form {
        align-items: stretch;
        flex-direction: column;
        width: 100%;
        white-space: normal;
    }

    .properties-results__grid {
        grid-template-columns: 1fr;
    }

    .properties-pagination {
        gap: 5px;
    }

    .properties-pagination__page,
    .properties-pagination__control {
        min-width: 34px;
        height: 36px;
    }
}

@media (max-width: 991px) {
    .properties-page__hero {
        min-height: 500px;
    }

    .properties-page__hero-inner {
        padding-top: 76px;
        padding-bottom: 0;
    }

    .properties-page__filter-shell {
        margin-top: -120px;
    }
}

@media (max-width: 767px) {
    .properties-page__hero {
        min-height: 210px;
    }

    .properties-page__hero-inner {
        padding: 54px 16px 24px;
    }

    .properties-page__hero h1 {
        font-size: clamp(2.2rem, 8vw, 2.7rem);
    }

    .properties-page__breadcrumb {
        gap: 8px;
        font-size: 0.82rem;
    }

    .properties-page__filter-shell {
        width: min(92%, 720px);
        margin-top: -18px;
        padding-bottom: 8px;
    }

    .properties-page__content {
        padding-left: 16px;
        padding-right: 16px;
    }
}


/* =========================================================
   PROPERTIES DESCRIPTION
   ========================================================= */

/* =========================================================
   PROPERTIES DESCRIPTION
   ========================================================= */

.properties-description {
    position: relative;

    /* излизаме от всеки родителски max-width контейнер */
    width: 100vw;
    margin-top: 70px;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);

    padding: 0;

    background:
        linear-gradient(
            90deg,
            #fffdf9 0%,
            #fffdfa 52%,
            #faf6ef 100%
        );

    border-top: 1px solid rgba(199, 139, 72, 0.08);
    overflow: hidden;
}

.properties-description__inner {
    width: min(1200px, calc(100% - 48px));
    min-height: 360px;
    margin: 0 auto;

    display: grid;
    grid-template-columns: minmax(650px, 1fr) minmax(0, 1fr);
    align-items: center;

    position: relative;
}
.properties-description__content {
    padding-left: 0;
}


/* LEFT */

.properties-description__content {
    position: relative;
    z-index: 2;

    width: 100%;
    max-width: 720px;

    padding: 58px 0 60px;
}

.properties-description__content h2 {
    margin: 0;

    font-family: "Cormorant Garamond", serif;
    font-size: 46px;
    line-height: 1.05;
    font-weight: 600;

    color: #14243a;

    /* на desktop остава на един ред */
    white-space: nowrap;
}

.properties-description__line {
    display: block;

    width: 42px;
    height: 1px;

    margin: 18px 0 22px;

    background: #c78b48;
}

.properties-description__text {
    width: 100%;
    max-width: 680px;

    font-family: "Manrope", sans-serif;
    font-size: 14px;
    line-height: 1.75;

    color: #4b5563;
}


/* BUTTON */

.properties-description__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 190px;
    min-height: 46px;

    margin-top: 25px;
    padding: 10px 26px;

    border: 0;
    border-radius: 9px;

    background: linear-gradient(120deg, #e4ba4e, #c88b1c);

    font-family: "Manrope", sans-serif;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;

    color: #fff;

    transition:
        background-color 0.2s ease,
        color 0.2s ease,
        box-shadow 0.2s ease;

    box-shadow: 0 7px 16px rgba(163, 111, 24, 0.15);
}


/* RIGHT IMAGE */

.properties-description__visual {
    position: relative;
    align-self: stretch;

    min-height: 360px;
}

.properties-description__visual img {
    position: absolute;

    width: 720px;
    max-width: none;
    height: auto;

    right: -100px;
    bottom: -5px;

    display: block;
    object-fit: contain;

    opacity: 0.82;
    mix-blend-mode: multiply;

    pointer-events: none;
}

/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1200px) {

    .properties-description__inner {
        width: calc(100% - 64px);

        grid-template-columns:
            minmax(520px, 1fr)
            minmax(0, 0.9fr);
    }

    .properties-description__content h2 {
        font-size: 42px;
    }

    .properties-description__visual img {
        width: 650px;
        right: -90px;
    }
}


@media (max-width: 900px) {

    .properties-description__inner {
        grid-template-columns:
            minmax(440px, 1fr)
            minmax(0, 0.75fr);
    }

    .properties-description__content h2 {
        font-size: 38px;
        white-space: normal;
    }

    .properties-description__visual img {
        width: 540px;
        right: -130px;
    }
}


@media (max-width: 768px) {

    .properties-description {
        margin-top: 50px;
    }

    .properties-description__inner {
        width: calc(100% - 32px);
        min-height: auto;

        display: block;
    }

    .properties-description__content {
        max-width: none;
        padding: 45px 0 15px;
    }

    .properties-description__content h2 {
        font-size: 36px;
        white-space: normal;
    }

    .properties-description__text {
        max-width: none;
    }

    .properties-description__visual {
        min-height: 240px;
    }

    .properties-description__visual img {
        width: 450px;
        max-width: 120%;

        right: -35px;
        bottom: 0;
    }
}
