/* Kosly discovery direction: photo-led, search-first residential catalogue. */
.kosly-public,
.kosly-auth {
    --k-accent: #164f60;
    --k-accent-hover: #103c49;
    --k-soft: #edf6f6;
    --k-bg: #fff;
    --k-line: #e4e9ec;
    --k-radius: 14px;
    --accent-caramel: #164f60;
    --accent-hover: #103c49;
    --vanilla-bg: #fff;
    --vanilla-cream: #edf6f6;
    --vanilla-dark: #e4e9ec;
    background: #fff;
}
.kosly-public .k-wrap {
    width: min(1240px, calc(100% - 64px));
}
.kosly-public .k-header {
    background: #fff;
    backdrop-filter: none;
    border-bottom: 1px solid #edf0f2;
}
.kosly-public .k-header-inner {
    min-height: 84px;
}
.kosly-public .k-brand {
    font-size: 2.15rem;
    letter-spacing: -0.07em;
}
.kosly-public .k-brand span {
    color: #c55e24;
}
.kosly-public .k-nav {
    gap: 28px;
}
.kosly-public .k-button,
.kosly-auth .k-button {
    border-radius: 8px;
}
.kosly-public .k-heading {
    font-size: clamp(1.65rem, 2.5vw, 2.15rem);
    letter-spacing: -0.035em;
    line-height: 1.25;
    margin-bottom: 10px;
}
.kosly-public .k-overline {
    font-size: 0.875rem;
    letter-spacing: 0.08em;
}
.kosly-public .k-section {
    padding-block: 44px;
}
.kosly-public .k-section-head {
    margin-bottom: 24px;
}
.kosly-public .k-text-link {
    text-decoration: none;
    white-space: normal;
}
.kosly-public .k-text-link:hover {
    text-decoration: underline;
}
.k-discovery-hero {
    position: relative;
    isolation: isolate;
    min-height: 590px;
    display: flex;
    align-items: center;
    background: #172f39;
    overflow: hidden;
}
.k-discovery-cover {
    position: absolute;
    inset: 0;
    z-index: -2;
    width: 100%;
    height: 100% !important;
    object-fit: cover;
    object-position: center 55%;
}
.k-discovery-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(
        90deg,
        rgba(8, 28, 36, 0.88),
        rgba(8, 28, 36, 0.52) 60%,
        rgba(8, 28, 36, 0.15)
    );
}
.k-discovery-content {
    padding-block: 58px;
    color: #fff;
}
.k-discovery-eyebrow {
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    margin: 0 0 16px;
    color: #e0edeb;
}
.k-discovery-content h1 {
    font-size: clamp(2.6rem, 4.5vw, 4rem);
    line-height: 1.12;
    letter-spacing: -0.045em;
    font-weight: 750;
    color: white;
    margin: 0 0 18px;
}
.k-discovery-content h1 span {
    color: #f6d98d;
}
.k-discovery-content > p:not(.k-discovery-eyebrow) {
    font-size: 1.125rem;
    color: #edf3f3;
    margin-bottom: 30px;
}
.k-discovery-search {
    max-width: 920px;
    background: white;
    border-radius: 14px;
    box-shadow: 0 12px 40px #071b3826;
    padding: 0 20px 18px;
    color: #142b40;
}
.k-search-caption {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border-bottom: 1px solid #e4e9ec;
    margin-bottom: 16px;
    padding: 15px 0;
    font-size: 0.875rem;
}
.k-search-caption > span {
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 9px;
}
.k-search-caption > a {
    font-size: 0.875rem;
    text-decoration: none;
    color: #164f60;
}
.k-discovery-search form {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(180px, 1fr) auto;
    gap: 18px;
    align-items: center;
}
.k-search-place {
    display: flex;
    align-items: center;
    gap: 12px;
}
.k-search-place > i {
    font-size: 1.4rem;
    color: #164f60;
}
.k-search-place label {
    min-width: 0;
    flex: 1;
}
.k-discovery-search label {
    font-size: 0.875rem;
    font-weight: 650;
    line-height: 1.5;
}
.k-discovery-search input,
.k-discovery-search select {
    display: block;
    width: 100%;
    min-height: 32px;
    border: 0;
    border-radius: 0;
    background: white;
    color: #526477;
    font-weight: 400;
    font-size: 1rem;
    padding: 4px 0;
    box-shadow: none;
}
.k-search-budget {
    padding-left: 20px;
    border-left: 1px solid #e4e9ec;
}
.k-discovery-search .k-button {
    min-height: 54px;
    padding-inline: 26px;
}
.k-discovery-locations {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 20px;
    font-size: 0.875rem;
}
.k-discovery-locations > span {
    color: #e1e9ec;
    margin-right: 6px;
}
.k-discovery-locations a {
    border: 1px solid #ffffff60;
    background: #102c3a45;
    border-radius: 6px;
    padding: 7px 12px;
    color: white;
    text-decoration: none;
}
.k-discovery-locations a:hover {
    background: #ffffff24;
}
.k-discovery-strip {
    border-bottom: 1px solid #e4e9ec;
    background: #f8fafb;
}
.k-discovery-strip > .k-wrap {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    padding-block: 19px;
}
.k-discovery-strip span {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9375rem;
    font-weight: 550;
    color: #435665;
}
.k-discovery-strip i {
    font-size: 1.25rem;
    color: #164f60;
}
.kosly-public .k-catalog-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
}
.kosly-public .k-property {
    box-shadow: none;
    border: 0;
    background: #fff;
    border-radius: 12px;
}
.kosly-public .k-property:hover {
    box-shadow: none;
    transform: translateY(-2px);
}
.kosly-public .k-property-media {
    border-radius: 12px;
    aspect-ratio: 1.32;
    background: #edf1f3;
}
.kosly-public .k-property-media img {
    transition: transform 0.25s;
}
.kosly-public .k-property:hover .k-property-media img {
    transform: scale(1.035);
}
.kosly-public .k-property-body {
    padding: 16px 0 8px;
}
.kosly-public .k-property h3 {
    font-size: 1.0625rem;
    margin: 9px 0 5px;
    line-height: 1.45;
}
.kosly-public .k-property-location {
    margin-bottom: 14px;
    display: flex;
    align-items: start;
    gap: 5px;
}
.kosly-public .k-property-price {
    border-top: 0;
    padding-top: 0;
    align-items: end;
}
.kosly-public .k-property-price strong {
    font-size: 1.1875rem;
}
.kosly-public .k-badge {
    background: #edf6f2;
    color: #275442;
    font-size: 0.8125rem;
    padding: 4px 8px;
    border-radius: 5px;
}
.kosly-public .k-badge-neutral {
    background: #f1f3f5;
    color: #526477;
}
.k-property-rating {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.875rem;
    color: #526477;
    margin-top: 8px;
}
.k-property-rating i {
    color: #b36e11;
}
.k-property-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}
.k-property-kind {
    font-size: 0.8125rem;
    color: #526477;
}
.k-location-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}
.k-location-tile {
    display: flex;
    align-items: center;
    gap: 14px;
    border: 1px solid #e1e8eb;
    padding: 18px;
    border-radius: 12px;
    text-decoration: none;
    transition: background 0.2s;
}
.k-location-tile:hover {
    background: #f0f7f7;
    border-color: #a9c7cb;
}
.k-location-symbol {
    width: 42px;
    height: 48px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    border-radius: 9px;
    background: #edf5f5;
    color: #164f60;
    font-size: 1.35rem;
}
.k-location-tile small,
.k-location-tile strong {
    display: block;
}
.k-location-tile small {
    font-size: 0.8125rem;
    color: #526477;
}
.k-location-tile strong {
    font-size: 1rem;
}
.k-location-tile > span:last-child {
    margin-left: auto;
}
.k-budget-banner {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    align-items: center;
    gap: 36px;
    border-radius: 18px;
    padding: 36px;
    background: #eff6f7;
}
.k-budget-banner p:last-child {
    margin-bottom: 0;
    max-width: 40ch;
}
.k-budget-options {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}
.k-budget-options > a {
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: white;
    border: 1px solid #e0eaec;
    border-radius: 12px;
    padding: 24px 18px;
    text-decoration: none;
}
.k-budget-options > a:hover {
    border-color: #164f60;
}
.k-budget-options small {
    font-size: 0.875rem;
    color: #526477;
}
.k-budget-options strong {
    font-size: 1.5rem;
}
.k-budget-options > a > span {
    font-size: 0.875rem;
    color: #164f60;
    margin-top: 16px;
}
.kosly-public .k-panel {
    box-shadow: none;
    background: #f8fafb;
    border: 0;
}
.kosly-public .k-banner {
    border-radius: 16px;
    background: #163c49;
}
.kosly-public .k-banner .k-button {
    background: #fff;
    color: #163c49 !important;
}
.kosly-public .k-footer {
    background: #f5f8fa;
    color: #142b40;
    border-top: 1px solid #e4e9ec;
}
.kosly-public .k-footer .k-brand {
    color: #142b40 !important;
}
.kosly-public .k-footer h2 {
    color: #142b40;
}
.kosly-public .k-footer p {
    color: #526477;
}
.kosly-public .k-footer-bottom {
    border-color: #dce5e9;
    color: #526477;
}
.kosly-auth .k-auth-aside {
    background: #163c49;
}
.kosly-auth .k-auth-aside img {
    border-radius: 14px;
}
.kosly-public .header-browse {
    background: #eff6f7;
}
.kosly-public .card-modern {
    box-shadow: none;
}
.kosly-public .filter-card {
    box-shadow: 0 6px 24px #142b400a;
}
@media (min-width: 801px) and (max-width: 1100px) {
    .kosly-public .k-nav {
        gap: 14px;
    }
    .kosly-public .k-catalog-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .k-location-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .k-budget-banner {
        grid-template-columns: 1fr;
    }
    .k-discovery-strip span {
        font-size: 0.875rem;
    }
}
@media (max-width: 800px) {
    .kosly-public .k-wrap {
        width: calc(100% - 32px);
    }
    .kosly-public .k-header-inner {
        min-height: 70px;
    }
    .kosly-public .k-nav {
        gap: 4px;
    }
    .kosly-public .k-section {
        padding-block: 32px;
    }
    .k-discovery-hero {
        min-height: 0;
    }
    .k-discovery-content {
        padding-block: 38px 30px;
    }
    .k-discovery-content h1 {
        font-size: clamp(2.1rem, 7vw, 3.3rem);
    }
    .k-discovery-content > p:not(.k-discovery-eyebrow) {
        font-size: 1rem;
        max-width: 32ch;
    }
    .k-discovery-eyebrow {
        font-size: 0.8125rem;
        letter-spacing: 0.08em;
    }
    .k-discovery-search {
        padding: 0 16px 16px;
    }
    .k-discovery-search form {
        grid-template-columns: 1fr auto;
        gap: 14px;
    }
    .k-search-place {
        grid-column: 1/-1;
        border: 1px solid #dce5e9;
        border-radius: 8px;
        padding: 9px 12px;
    }
    .k-search-budget {
        border: 0;
        padding-left: 0;
    }
    .k-discovery-search .k-button {
        padding-inline: 20px;
    }
    .k-discovery-locations {
        gap: 8px;
    }
    .k-discovery-locations > span {
        width: 100%;
    }
    .k-discovery-strip > .k-wrap {
        display: grid;
        gap: 10px;
        padding-block: 16px;
    }
    .k-discovery-strip span {
        font-size: 0.875rem;
    }
    .kosly-public .k-catalog-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px 14px;
    }
    .k-location-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }
    .k-location-tile {
        padding: 14px;
        gap: 10px;
    }
    .k-location-symbol {
        display: none;
    }
    .k-budget-banner {
        grid-template-columns: 1fr;
        padding: 24px;
        gap: 22px;
    }
    .k-budget-options {
        grid-template-columns: 1fr;
    }
    .k-budget-options > a {
        display: grid;
        grid-template-columns: 1fr auto;
        gap: 2px 12px;
        padding: 16px;
    }
    .k-budget-options small {
        grid-column: 1;
    }
    .k-budget-options strong {
        grid-column: 1;
        font-size: 1.25rem;
    }
    .k-budget-options > a > span {
        grid-column: 2;
        grid-row: 1/3;
        margin: 0;
        align-self: center;
    }
    .kosly-public .k-property-body {
        padding: 12px 0;
    }
    .kosly-public .k-property h3 {
        font-size: 1rem;
    }
    .kosly-public .k-property-price strong {
        font-size: 1.0625rem;
    }
    .k-property-meta {
        align-items: start;
        flex-direction: column;
    }
    .kosly-public .k-property-price {
        display: block;
    }
    .kosly-public .k-property-price > span {
        display: none;
    }
    .kosly-public .k-section-head {
        gap: 8px;
    }
}
@media (max-width: 380px) {
    .kosly-public .k-catalog-grid {
        grid-template-columns: 1fr;
    }
    .k-location-grid {
        grid-template-columns: 1fr;
    }
    .k-discovery-search form {
        grid-template-columns: 1fr;
    }
    .k-discovery-search .k-button {
        width: 100%;
    }
    .k-search-caption {
        gap: 8px;
    }
    .k-search-caption > a {
        font-size: 0.8125rem;
    }
}
.k-discovery-numbers {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    border-block: 1px solid #e4e9ec;
    padding-block: 24px;
    text-align: center;
}
.k-discovery-numbers strong {
    display: block;
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    color: #164f60;
    letter-spacing: -0.04em;
}
.k-discovery-numbers span {
    font-size: 0.875rem;
    color: #526477;
}
@media (prefers-reduced-motion: reduce) {
    .kosly-public .k-property:hover {
        transform: none;
    }
}
