/* Kosly UI v2: presentation only. */
.kosly-auth {
    margin: 0;
}
.k-sidebar-backdrop {
    position: fixed;
    inset: 0;
    z-index: 45;
    background: #142b4077;
    border: 0;
}
.k-sidebar-backdrop[hidden] {
    display: none;
}
.k-sidebar-close {
    margin: 4px 16px 20px;
    padding: 12px;
    color: white;
    border: 1px solid #ffffff50;
    border-radius: 10px;
    background: transparent;
}
@media (max-width: 767px) {
    .k-mobile-sidebar[data-open="true"] {
        display: flex !important;
        flex-direction: column;
        width: min(300px, 85vw);
        left: 0;
        box-shadow: 20px 0 60px #142b4033;
    }
}
.kosly-public .header-browse {
    background: #eef2f6;
    padding: 40px 0 56px;
}
.kosly-public .filter-card {
    border: 1px solid var(--k-line) !important;
    border-radius: 18px;
    box-shadow: var(--k-shadow);
    margin-top: -20px;
}
.kosly-public .filter-toggle-group .btn-check:checked + .btn {
    background: var(--k-ink);
    border-color: var(--k-ink);
    color: #fff;
}
.kosly-public #browseMap {
    height: 360px;
}
.kosly-public .card-modern {
    border: 1px solid var(--k-line);
    box-shadow: var(--k-shadow);
    border-radius: 18px;
}
.kosly-public .card-modern:hover {
    transform: none;
}
.kosly-public .fs-7 {
    font-size: 0.875rem !important;
}
.kosly-public .gallery-img {
    border-radius: 12px;
}
.kosly-public .position-sticky {
    top: 104px !important;
}
@media (max-width: 767px) {
    .kosly-public #browseMap {
        height: 280px;
    }
    .kosly-public .position-sticky {
        position: static !important;
    }
    .kosly-public .header-browse {
        padding: 28px 0 44px;
    }
    .kosly-public .filter-card {
        padding: 20px !important;
    }
}
:root {
    --k-ink: #142b40;
    --k-muted: #526477;
    --k-accent: #b94413;
    --k-accent-hover: #96340c;
    --k-soft: #fff2e9;
    --k-bg: #f5f7fa;
    --k-line: #dbe2e9;
    --k-radius: 18px;
    --k-shadow: 0 12px 40px #142b400d;
    --k-font: Inter, "Segoe UI", system-ui, sans-serif;
}
.kosly-public,
.kosly-auth,
.kosly-workspace {
    font-family: var(--k-font) !important;
    color: var(--k-ink);
    background: var(--k-bg);
    font-size: 1rem;
    line-height: 1.65;
    --vanilla-bg: #f5f7fa;
    --vanilla-cream: #fff2e9;
    --vanilla-dark: #dbe2e9;
    --accent-caramel: #b94413;
    --accent-hover: #96340c;
    --text-dark: #142b40;
    --text-muted: #526477;
}
.k-scope * {
    box-sizing: border-box;
}
.k-scope a {
    color: inherit;
}
.k-scope img {
    max-width: 100%;
    height: auto;
}
.k-scope button,
.k-scope input,
.k-scope select,
.k-scope textarea {
    font: inherit;
}
.k-scope [hidden] {
    display: none !important;
}
.k-scope :focus-visible {
    outline: 3px solid #187bb3;
    outline-offset: 4px;
}
.k-scope button {
    cursor: pointer;
}
.k-scope button:disabled {
    cursor: wait;
    opacity: 0.65;
}
.k-scope h1,
.k-scope h2,
.k-scope h3 {
    color: var(--k-ink);
}
.k-skip {
    position: fixed;
    left: 1rem;
    top: -100px;
    z-index: 2000;
    background: white;
    padding: 1rem;
    color: var(--k-ink);
}
.k-skip:focus {
    top: 1rem;
}
.k-wrap {
    width: min(1184px, calc(100% - 40px));
    margin-inline: auto;
}
.k-section {
    padding-block: 64px;
}
.k-section-white {
    background: #fff;
}
.k-overline {
    color: var(--k-accent);
    font-size: 0.8125rem;
    font-weight: 750;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    margin: 0 0 12px;
}
.k-heading {
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    line-height: 1.15;
    letter-spacing: -0.04em;
    font-weight: 750;
    margin: 0 0 18px;
}
.k-muted {
    color: var(--k-muted);
}
.k-lead {
    font-size: 1.125rem;
    max-width: 60ch;
    color: var(--k-muted);
}
.k-section-head {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 24px;
    margin-bottom: 28px;
}
.k-section-head p {
    margin: 0;
}
.k-text-link {
    color: var(--k-accent) !important;
    font-weight: 650;
    text-underline-offset: 5px;
}
.k-header {
    position: sticky;
    top: 0;
    z-index: 1030;
    background: #fffffff5;
    border-bottom: 1px solid var(--k-line);
    backdrop-filter: blur(16px);
}
.k-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 80px;
    gap: 24px;
}
.k-brand {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    font-size: 1.9rem;
    font-weight: 800;
    letter-spacing: -0.06em;
    text-decoration: none;
    color: var(--k-ink) !important;
}
.k-brand span {
    color: var(--k-accent);
}
.k-nav {
    display: flex;
    align-items: center;
    gap: 24px;
}
.k-nav > a {
    font-size: 0.9375rem;
    font-weight: 600;
    text-decoration: none;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    border-bottom: 2px solid transparent;
}
.k-nav > a[aria-current="page"] {
    color: var(--k-accent);
    border-bottom-color: var(--k-accent);
}
.k-menu-button {
    display: none;
    background: white;
    border: 1px solid var(--k-line);
    border-radius: 10px;
    padding: 10px 14px;
    min-height: 44px;
}
.k-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.k-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 22px;
    min-height: 48px;
    border: 1px solid transparent;
    border-radius: 12px;
    background: var(--k-accent);
    color: #fff !important;
    font-weight: 650;
    text-decoration: none !important;
    line-height: 1.4;
    transition:
        background 0.2s,
        box-shadow 0.2s;
}
.k-button:hover {
    background: var(--k-accent-hover);
    box-shadow: 0 5px 15px #b9441320;
}
.k-button-secondary {
    background: white;
    color: var(--k-ink) !important;
    border-color: var(--k-line);
}
.k-button-secondary:hover {
    background: var(--k-bg);
}
.k-button-dark {
    background: var(--k-ink);
}
.k-button-block {
    width: 100%;
}
.k-hero {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 48px;
    align-items: center;
    padding-block: 52px 64px;
}
.k-hero h1 {
    font-size: clamp(2.5rem, 5.2vw, 4.4rem);
    line-height: 1.06;
    letter-spacing: -0.055em;
    font-weight: 780;
    margin: 0 0 24px;
}
.k-hero h1 em {
    font-style: normal;
    color: var(--k-accent);
}
.k-hero-photo {
    position: relative;
}
.k-hero-photo > img {
    width: 100%;
    height: 490px;
    object-fit: cover;
    border-radius: 100px 20px 20px 20px;
}
.k-photo-note {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background: #ffffffed;
    border-radius: 14px;
    padding: 16px 20px;
    backdrop-filter: blur(10px);
}
.k-photo-note strong {
    display: block;
}
.k-photo-note span {
    color: var(--k-muted);
    font-size: 0.875rem;
}
.k-search {
    padding: 12px;
    background: #fff;
    border: 1px solid var(--k-line);
    border-radius: 16px;
    box-shadow: var(--k-shadow);
    display: flex;
    gap: 12px;
    margin: 30px 0 16px;
}
.k-search label {
    flex: 1;
    min-width: 0;
    padding-left: 8px;
    font-size: 0.8125rem;
    color: var(--k-muted);
}
.k-search input {
    display: block;
    width: 100%;
    border: 0 !important;
    background: white !important;
    padding: 4px 0;
    box-shadow: none !important;
    color: var(--k-ink);
    font-size: 1rem;
}
.k-chips {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.k-chip {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    border: 1px solid var(--k-line);
    border-radius: 999px;
    padding: 6px 14px;
    background: white;
    text-decoration: none;
    font-size: 0.875rem;
}
.k-chip[aria-pressed="true"] {
    background: var(--k-ink);
    color: white;
    border-color: var(--k-ink);
}
.k-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid var(--k-line);
    padding-top: 24px;
    margin-top: 28px;
    gap: 16px;
}
.k-stats strong {
    display: block;
    font-size: 1.5rem;
    letter-spacing: -0.035em;
}
.k-stats span {
    font-size: 0.875rem;
    color: var(--k-muted);
}
.k-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}
.k-property {
    background: #fff;
    border: 1px solid var(--k-line);
    border-radius: var(--k-radius);
    overflow: hidden;
    box-shadow: 0 4px 14px #142b4005;
    transition:
        box-shadow 0.2s,
        transform 0.2s;
}
.k-property:hover {
    transform: translateY(-3px);
    box-shadow: var(--k-shadow);
}
.k-property-media {
    position: relative;
    aspect-ratio: 1.55;
    background: #e8eef4;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--k-muted);
    overflow: hidden;
}
.k-property-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.k-property-body {
    padding: 22px;
}
.k-property h3 {
    font-size: 1.1875rem;
    font-weight: 700;
    line-height: 1.4;
    margin: 10px 0 6px;
}
.k-property h3 a {
    text-decoration: none;
}
.k-property h3 a:hover {
    text-decoration: underline;
}
.k-property-location {
    font-size: 0.875rem;
    color: var(--k-muted);
    margin-bottom: 20px;
}
.k-property-price {
    border-top: 1px solid var(--k-line);
    padding-top: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.k-property-price strong {
    font-size: 1.15rem;
}
.k-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 6px;
    padding: 4px 9px;
    background: var(--k-soft);
    color: #923910;
    font-size: 0.8125rem;
    font-weight: 650;
}
.k-badge-neutral {
    background: #eef2f6;
    color: var(--k-muted);
}
.k-panel {
    border: 1px solid var(--k-line);
    border-radius: var(--k-radius);
    background: #fff;
    padding: 32px;
    box-shadow: var(--k-shadow);
}
.k-empty {
    text-align: center;
    padding: 44px 24px;
    background: #fff;
    border: 1px dashed var(--k-line);
    border-radius: var(--k-radius);
    grid-column: 1/-1;
}
.k-step-number {
    font-size: 0.875rem;
    font-weight: 750;
    display: inline-flex;
    padding: 9px 14px;
    background: var(--k-soft);
    color: var(--k-accent);
    border-radius: 10px;
    margin-bottom: 20px;
}
.k-banner {
    background: var(--k-ink);
    color: white;
    border-radius: 24px;
    padding: 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}
.k-banner .k-heading {
    color: white;
}
.k-banner p {
    color: #cfdae5;
}
.k-prose {
    max-width: 76ch;
}
.k-prose h2 {
    font-size: 1.5rem;
    margin-top: 32px;
    font-weight: 700;
}
.k-prose p,
.k-prose li {
    color: var(--k-muted);
}
.k-prose a {
    text-decoration: underline;
}
.k-prose li {
    margin-block: 8px;
}
.k-two-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}
.k-footer {
    background: #142b40;
    color: #d3dee8;
    padding: 56px 0 24px;
}
.k-footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
}
.k-footer .k-brand {
    color: white !important;
}
.k-footer p {
    max-width: 39ch;
    color: #b9c9d8;
}
.k-footer h2 {
    font-size: 1rem;
    color: white;
    margin: 12px 0 16px;
}
.k-footer ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.k-footer li {
    margin-block: 8px;
}
.k-footer a:not(.k-brand) {
    display: inline-block;
    padding-block: 4px;
    text-underline-offset: 5px;
}
.k-footer-bottom {
    border-top: 1px solid #ffffff25;
    margin-top: 40px;
    padding-top: 24px;
    font-size: 0.875rem;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}
.k-auth {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    min-height: calc(100vh - 81px);
}
.k-auth-aside {
    background: var(--k-ink);
    color: white;
    padding: 64px clamp(28px, 5vw, 80px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 24px;
}
.k-auth-aside h2 {
    color: white;
    font-size: clamp(2rem, 3.5vw, 3.4rem);
    letter-spacing: -0.04em;
    line-height: 1.1;
}
.k-auth-aside p {
    color: #c2d1df;
}
.k-auth-aside img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    border-radius: 18px 60px 18px 18px;
}
.k-auth-content {
    padding: 48px clamp(20px, 5vw, 72px);
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
}
.k-auth-card {
    width: 100%;
    max-width: 530px;
}
.k-auth-card h1 {
    font-size: 2rem;
    letter-spacing: -0.04em;
    font-weight: 750;
    line-height: 1.2;
    margin-bottom: 12px;
}
.k-form {
    display: grid;
    gap: 20px;
    margin-top: 28px;
}
.k-field {
    display: grid;
    gap: 7px;
}
.k-field > label,
.k-label {
    font-size: 0.9375rem;
    font-weight: 650;
}
.k-field input:not([type="checkbox"]):not([type="radio"]),
.k-field select,
.k-field textarea {
    width: 100%;
    min-height: 48px;
    border: 1px solid #b8c5d1;
    border-radius: 10px;
    padding: 11px 13px;
    background: #fff;
    color: var(--k-ink);
}
.k-field textarea {
    resize: vertical;
    min-height: 110px;
}
.k-field input[type="file"] {
    font-size: 0.8755rem;
}
.k-field small,
.k-help {
    font-size: 0.875rem;
    color: var(--k-muted);
}
.k-field input[aria-invalid="true"] {
    border-color: #be2836;
}
.k-password {
    position: relative;
}
.k-password input {
    padding-right: 88px !important;
}
.k-password button {
    position: absolute;
    right: 5px;
    top: 4px;
    bottom: 4px;
    border: 0;
    border-radius: 7px;
    background: #eef2f6;
    padding-inline: 10px;
    color: var(--k-ink);
    font-size: 0.8125rem;
    min-width: 72px;
}
.k-check {
    display: flex;
    gap: 10px;
    align-items: start;
    font-size: 0.875rem;
}
.k-check input {
    margin-top: 6px;
    flex-shrink: 0;
    width: 17px;
    height: 17px;
    accent-color: var(--k-accent);
}
.k-fieldset {
    border: 1px solid var(--k-line);
    border-radius: 14px;
    padding: 20px;
    display: grid;
    gap: 18px;
    margin: 0;
}
.k-fieldset legend {
    float: none;
    width: auto;
    font-size: 1rem;
    font-weight: 700;
    padding-inline: 8px;
    margin: 0;
}
.k-alert {
    padding: 16px 18px;
    border: 1px solid #bcd3e3;
    border-radius: 12px;
    background: #eef6fc;
    color: #214d68;
    margin-block: 18px;
    font-size: 0.9375rem;
}
.k-alert-danger {
    background: #fff1f2;
    color: #962335;
    border-color: #f0bfc6;
}
.k-alert-warning {
    background: #fff7e8;
    color: #7c4909;
    border-color: #edcea2;
}
.k-alert-success {
    background: #eef8f1;
    color: #225c39;
    border-color: #b9dac6;
}
.k-alert ul {
    margin: 8px 0 0;
    padding-left: 20px;
}
.k-form-status:empty {
    display: none;
}
.k-progress {
    display: flex;
    gap: 10px;
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
    flex-wrap: wrap;
}
.k-progress li {
    border-bottom: 3px solid var(--k-line);
    padding: 8px 0;
    flex: 1;
    min-width: 110px;
    font-size: 0.875rem;
    color: var(--k-muted);
}
.k-progress [aria-current="step"] {
    border-color: var(--k-accent);
    color: var(--k-ink);
    font-weight: 700;
}
.k-checkout {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, 1fr);
    gap: 28px;
    align-items: start;
}
.k-checkout-summary {
    position: sticky;
    top: 105px;
}
.k-cost-row {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-block: 12px;
    font-size: 0.9375rem;
}
.k-cost-row dd {
    font-weight: 650;
    margin: 0;
    text-align: right;
}
.k-cost-total {
    border-top: 1px solid var(--k-line);
    padding-top: 20px;
    font-size: 1.1875rem;
}
.k-voucher {
    display: flex;
    gap: 12px;
    padding: 12px;
    border: 1px solid var(--k-line);
    border-radius: 10px;
    font-size: 0.9375rem;
}
.k-voucher input {
    accent-color: var(--k-accent);
}
.k-image-preview {
    max-width: 200px;
    max-height: 140px;
    object-fit: contain;
    margin-top: 12px;
    border-radius: 10px;
}
/* Keep Bootstrap/Tailwind interaction hooks intact on legacy pages. */
.kosly-public .btn-caramel,
.kosly-public .btn-pay {
    background: var(--k-accent);
    color: white;
    border-radius: 12px;
    min-height: 44px;
    font-weight: 650;
    padding: 11px 20px;
    border: 1px solid transparent;
}
.kosly-public .btn-outline-caramel {
    border: 1px solid var(--k-accent);
    color: var(--k-accent);
    border-radius: 12px;
    min-height: 44px;
}
.kosly-public .text-caramel {
    color: var(--k-accent) !important;
}
.kosly-public .bg-vanilla {
    background: var(--k-soft) !important;
}
.kosly-public .form-control,
.kosly-public .form-select {
    min-height: 46px;
    font-size: 1rem;
    border-radius: 10px;
}
.kosly-public .card,
.kosly-public .card-elegant,
.kosly-public .property-card {
    border-radius: 18px;
    border-color: var(--k-line);
    box-shadow: var(--k-shadow);
}
.kosly-public .container {
    max-width: 1208px;
}
.kosly-public .small,
.kosly-public small {
    font-size: 0.875rem;
}
.kosly-public .contact-sidebar.sticky-top {
    top: 104px;
}
.kosly-workspace .sidebar {
    background: #142b40;
    color: #d3dee8;
}
.kosly-workspace .sidebar .nav-link {
    border-radius: 10px;
    min-height: 44px;
}
.kosly-workspace .sidebar .nav-link:not(.active) {
    color: #d3dee8;
}
.kosly-workspace .sidebar .nav-link.active {
    background: #fff2e9;
    color: #923910;
}
.kosly-workspace .card {
    border-radius: 16px;
}
.kosly-workspace button,
.kosly-workspace input,
.kosly-workspace select {
    min-height: 40px;
}
.kosly-workspace input[type="checkbox"],
.kosly-workspace input[type="radio"] {
    min-height: initial;
}
.kosly-workspace table {
    font-size: 0.875rem;
}
.kosly-workspace .overflow-x-auto {
    overscroll-behavior-x: contain;
}
@media (max-width: 1000px) {
    .k-nav {
        gap: 14px;
    }
    .k-nav > a {
        font-size: 0.875rem;
    }
    .k-hero {
        gap: 28px;
    }
    .k-hero-photo > img {
        height: 440px;
    }
    .k-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .k-auth-aside {
        padding: 40px 28px;
    }
    .k-footer-grid {
        gap: 24px;
    }
}
@media (max-width: 800px) {
    .k-wrap {
        width: calc(100% - 32px);
    }
    .k-section {
        padding-block: 40px;
    }
    .k-menu-button {
        display: block;
    }
    .k-header-inner {
        min-height: 72px;
        flex-wrap: wrap;
        gap: 0;
    }
    .k-nav {
        display: none;
        flex-basis: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        padding: 12px 0 20px;
    }
    .k-nav.is-open {
        display: flex;
    }
    .k-nav > a {
        padding: 10px;
    }
    .k-nav .k-actions {
        margin-top: 8px;
    }
    .k-hero {
        grid-template-columns: 1fr;
        padding-top: 32px;
        gap: 28px;
    }
    .k-hero-photo > img {
        height: 300px;
        border-radius: 48px 16px 16px 16px;
    }
    .k-hero-photo {
        max-width: 650px;
    }
    .k-auth {
        grid-template-columns: 1fr;
    }
    .k-auth-aside {
        display: none;
    }
    .k-auth-content {
        padding: 36px 20px 48px;
    }
    .k-two-column,
    .k-checkout {
        grid-template-columns: 1fr;
    }
    .k-checkout-summary {
        position: static;
    }
    .k-footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    .k-footer-grid > div:first-child {
        grid-column: 1/-1;
    }
    .k-panel {
        padding: 24px;
    }
    .k-banner {
        padding: 28px;
        align-items: start;
        flex-direction: column;
    }
    .k-section-head {
        align-items: start;
        flex-direction: column;
        gap: 12px;
    }
    .kosly-public .contact-sidebar.sticky-top {
        position: static;
    }
}
@media (max-width: 480px) {
    .k-grid {
        grid-template-columns: 1fr;
    }
    .k-search {
        flex-direction: column;
    }
    .k-search .k-button {
        width: 100%;
    }
    .k-stats strong {
        font-size: 1.2rem;
    }
    .k-stats span {
        font-size: 0.8125rem;
    }
    .k-photo-note {
        position: static;
        margin-top: 12px;
        border: 1px solid var(--k-line);
    }
    .k-hero-photo > img {
        height: 240px;
    }
    .k-fieldset {
        padding: 16px;
    }
    .k-progress li {
        min-width: 80px;
    }
    .k-actions > .k-button {
        flex-grow: 1;
    }
}
@media (prefers-reduced-motion: reduce) {
    .k-scope *,
    .k-scope *::before,
    .k-scope *::after {
        scroll-behavior: auto !important;
        animation: none !important;
        transition: none !important;
    }
}
