/* ==========================================================================
   Khali Chha – public website theme  ·  v1.0  ·  2026
   Brand colours from the Khali Chha logo. Same system as the admin panel.
   ========================================================================== */

:root {
    --blue: #0973BA;
    --blue-dark: #075E98;
    --blue-soft: #E6F1F9;
    --blue-tint: #F2F8FC;
    --navy: #004F76;
    --navy-soft: #E5EFF4;
    --ink: #102330;
    --ink-2: #1D3445;
    --night: #0E2230;
    --muted: #566573;
    --faint: #8795A1;
    --ground: #F4F7FA;
    --surface: #FFFFFF;
    --line: #E1E7ED;
    --line-soft: #EEF2F5;
    --input: #D3DCE4;
    --green: #15703A;   --green-soft: #E7F6EC;
    --amber: #93570A;   --amber-soft: #FEF3DC;
    --red: #B42318;     --red-soft: #FDECEA;
    --wa: #128C4B;
    --radius: 16px;
    --radius-sm: 10px;
    --shadow: 0 1px 2px rgba(16,35,48,.04), 0 8px 24px rgba(16,35,48,.06);
    --shadow-lg: 0 24px 60px rgba(16,35,48,.16);
    --font: 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --font-head: 'Plus Jakarta Sans', 'Figtree', system-ui, sans-serif;
    --header-h: 76px;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.6;
    color: var(--ink);
    background: var(--surface);
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--navy); }
h1, h2, h3, h4, h5 { font-family: var(--font-head); color: var(--ink); margin: 0; line-height: 1.2; letter-spacing: -0.015em; }
p { margin: 0 0 1em; }
button { font: inherit; }
:focus-visible { outline: 3px solid rgba(9,115,186,.45); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.kc-icon { width: 1.15em; height: 1.15em; flex-shrink: 0; vertical-align: -0.2em; }

.kc-container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.kc-section { padding: 80px 0; }
.kc-section-tight { padding: 56px 0; }
.kc-section-ground { background: var(--ground); }
.kc-muted { color: var(--muted); }

/* ---------- Buttons ---------- */
.kc-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    height: 48px; padding: 0 22px;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    font-family: var(--font); font-size: 15px; font-weight: 600; line-height: 1;
    cursor: pointer; white-space: nowrap;
    transition: background .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease;
}
.kc-btn-sm { height: 40px; padding: 0 16px; font-size: 14px; }
.kc-btn-lg { height: 56px; padding: 0 28px; font-size: 16px; }
.kc-btn-block { width: 100%; }
.kc-btn-primary { background: var(--blue); color: #fff !important; }
.kc-btn-primary:hover { background: var(--blue-dark); }
.kc-btn-dark { background: var(--ink); color: #fff !important; }
.kc-btn-dark:hover { background: #000; }
.kc-btn-light { background: #fff; color: var(--ink) !important; border-color: var(--input); }
.kc-btn-light:hover { background: var(--ground); }
.kc-btn-ghost { background: transparent; color: var(--ink) !important; }
.kc-btn-ghost:hover { background: var(--ground); }
.kc-btn-white { background: #fff; color: var(--blue) !important; }
.kc-btn-white:hover { background: var(--blue-soft); }
.kc-btn-wa { background: var(--wa); color: #fff !important; }
.kc-btn-wa:hover { background: #0E7A40; }
.kc-btn-danger-ghost { background: transparent; color: var(--red) !important; border-color: #F1C7C2; }
.kc-btn-danger-ghost:hover { background: var(--red-soft); }

/* ---------- Pills / chips ---------- */
.kc-pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; line-height: 1.4; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.kc-pill-active  { background: var(--green-soft); color: var(--green); }
.kc-pill-pending { background: var(--amber-soft); color: var(--amber); }
.kc-pill-expired { background: var(--red-soft); color: var(--red); }
.kc-pill-neutral { background: #EEF1F4; color: #475467; }
.kc-pill-blue    { background: var(--blue-soft); color: var(--blue); }

.kc-eyebrow {
    display: inline-block;
    font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
    color: var(--blue); margin-bottom: 10px;
}

/* ==========================================================================
   HEADER
   ========================================================================== */
.kc-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255,255,255,.96);
    backdrop-filter: saturate(160%) blur(8px);
    border-bottom: 1px solid var(--line);
}
.kc-header-inner { height: var(--header-h); display: flex; align-items: center; gap: 32px; }
.kc-logo img { height: 46px; width: auto; }
.kc-nav { display: flex; align-items: center; gap: 4px; margin-right: auto; }
.kc-nav a {
    display: inline-flex; align-items: center; height: 40px; padding: 0 14px;
    border-radius: 8px; color: var(--ink); font-size: 15px; font-weight: 500;
}
.kc-nav a:hover { background: var(--ground); color: var(--ink); }
.kc-nav a.active { color: var(--blue); font-weight: 600; }
.kc-header-actions { display: flex; align-items: center; gap: 10px; }
.kc-account-link {
    display: inline-flex; align-items: center; gap: 10px; height: 44px;
    padding: 0 14px 0 6px; border-radius: 999px; border: 1px solid var(--line);
    color: var(--ink); font-size: 14px; font-weight: 600;
}
.kc-account-link:hover { background: var(--ground); color: var(--ink); }
.kc-avatar {
    width: 32px; height: 32px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--blue); color: #fff; font-family: var(--font-head); font-size: 13px; font-weight: 700;
    overflow: hidden; flex-shrink: 0;
}
.kc-avatar img { width: 100%; height: 100%; object-fit: cover; }
.kc-menu-btn {
    display: none; width: 44px; height: 44px; border-radius: 10px;
    border: 1px solid var(--line); background: #fff; color: var(--ink);
    align-items: center; justify-content: center; cursor: pointer;
}
.kc-mobile-nav { display: none; }

/* ==========================================================================
   HERO (home)
   ========================================================================== */
.kc-hero { background: var(--night); color: #fff; position: relative; overflow: hidden; }
.kc-hero::before {
    content: ""; position: absolute; width: 640px; height: 640px; right: -220px; top: -260px;
    border-radius: 50%; border: 90px solid rgba(9,115,186,.16); pointer-events: none;
}
.kc-hero-inner {
    position: relative;
    display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr); gap: 48px; align-items: center;
    padding-top: 72px; padding-bottom: 84px;
}
.kc-hero h1 { color: #fff; font-size: 54px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.06; margin-bottom: 18px; }
.kc-hero h1 span { color: #6CC0F5; }
.kc-hero-sub { font-size: 19px; color: #BFCCD6; max-width: 560px; margin-bottom: 32px; }

.kc-search-card {
    background: #fff; color: var(--ink);
    border-radius: 18px; padding: 10px;
    display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) auto; gap: 4px;
    box-shadow: var(--shadow-lg);
}
.kc-search-field { display: flex; flex-direction: column; gap: 2px; padding: 10px 14px; border-radius: 12px; min-width: 0; }
.kc-search-field:hover { background: var(--ground); }
.kc-search-field + .kc-search-field { border-left: 1px solid var(--line-soft); }
.kc-search-field label { font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.kc-search-field select, .kc-search-field input {
    border: 0; background: transparent; padding: 0; font: inherit; font-size: 15px; font-weight: 600;
    color: var(--ink); outline: none; width: 100%; cursor: pointer; appearance: none; -webkit-appearance: none;
    text-overflow: ellipsis;
}
.kc-search-card .kc-btn { height: auto; min-height: 60px; border-radius: 12px; padding: 0 26px; }

.kc-hero-cities { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 22px; font-size: 14px; color: #9FB1BF; }
.kc-hero-cities a {
    padding: 6px 14px; border-radius: 999px; border: 1px solid rgba(255,255,255,.18);
    color: #E3EAF0; font-weight: 500;
}
.kc-hero-cities a:hover { background: rgba(255,255,255,.08); color: #fff; }

.kc-hero-art { position: relative; height: 460px; }
.kc-hero-photo { position: absolute; border-radius: 20px; overflow: hidden; box-shadow: 0 24px 60px rgba(0,0,0,.35); background: var(--ink-2); }
.kc-hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.kc-hero-photo.p1 { inset: 0 18% 22% 0; }
.kc-hero-photo.p2 { width: 46%; height: 46%; right: 0; bottom: 0; border: 6px solid var(--night); }
.kc-hero-badge {
    position: absolute; left: -18px; bottom: 34px;
    display: flex; align-items: center; gap: 12px;
    background: #fff; color: var(--ink); padding: 14px 18px; border-radius: 14px;
    box-shadow: var(--shadow-lg); font-size: 14px; line-height: 1.35;
}
.kc-hero-badge strong { display: block; font-family: var(--font-head); font-size: 16px; }
.kc-hero-badge .kc-badge-ico {
    width: 40px; height: 40px; border-radius: 10px; background: var(--green-soft); color: var(--green);
    display: flex; align-items: center; justify-content: center;
}

/* Trust strip */
.kc-trust { border-bottom: 1px solid var(--line); background: #fff; }
.kc-trust-inner { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.kc-trust-item { display: flex; align-items: center; gap: 14px; padding: 26px 24px; }
.kc-trust-item + .kc-trust-item { border-left: 1px solid var(--line); }
.kc-trust-ico { width: 46px; height: 46px; border-radius: 12px; background: var(--blue-soft); color: var(--blue); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.kc-trust-item strong { display: block; font-family: var(--font-head); font-size: 16px; }
.kc-trust-item div > span { font-size: 14px; color: var(--muted); }

/* ==========================================================================
   SECTION HEAD
   ========================================================================== */
.kc-section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 32px; flex-wrap: wrap; }
.kc-section-head h2 { font-size: 36px; font-weight: 800; letter-spacing: -0.025em; }
.kc-section-head p { margin: 8px 0 0; color: var(--muted); font-size: 17px; }
.kc-link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 15px; }
.kc-link-arrow .kc-icon { transition: transform .15s ease; }
.kc-link-arrow:hover .kc-icon { transform: translateX(3px); }

/* ==========================================================================
   LISTING CARD
   ========================================================================== */
.kc-grid { display: grid; gap: 24px; }
.kc-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.kc-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.kc-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.kc-card {
    position: relative;
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    overflow: hidden; display: flex; flex-direction: column;
    transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
}
.kc-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); border-color: #D5DEE6; }
.kc-card-photo { position: relative; aspect-ratio: 4 / 3; background: var(--blue-soft); overflow: hidden; }
.kc-card-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.kc-card:hover .kc-card-photo img { transform: scale(1.04); }
.kc-card-badges { position: absolute; top: 12px; left: 12px; display: flex; gap: 6px; }
.kc-card-badges span {
    font-size: 12px; font-weight: 700; padding: 5px 10px; border-radius: 999px;
    background: rgba(255,255,255,.95); color: var(--ink);
}
.kc-card-badges span.feat { background: var(--blue); color: #fff; }
.kc-card-photos-count {
    position: absolute; right: 12px; bottom: 12px;
    display: inline-flex; align-items: center; gap: 5px;
    font-size: 12px; font-weight: 600; padding: 4px 9px; border-radius: 8px;
    background: rgba(16,35,48,.72); color: #fff;
}
.kc-card-body { padding: 18px 18px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1 1 auto; }
.kc-card-price { font-family: var(--font-head); font-size: 20px; font-weight: 800; color: var(--ink); letter-spacing: -0.01em; }
.kc-card-price small { font-family: var(--font); font-size: 13px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.kc-card-title { font-size: 16px; font-weight: 600; color: var(--ink); line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.kc-card-title a { color: inherit; }
.kc-card-title a::after { content: ""; position: absolute; inset: 0; } /* whole card clickable */
.kc-card-addr { display: flex; align-items: center; gap: 6px; font-size: 14px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kc-card-facts { display: flex; flex-wrap: wrap; gap: 14px; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line-soft); font-size: 14px; color: var(--ink-2); }
.kc-card-facts span { display: inline-flex; align-items: center; gap: 6px; }
.kc-card-facts .kc-icon { color: var(--faint); }

/* Horizontal scroller rows (home) */
.kc-scroller { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 72px) / 4); gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 2px 18px; scrollbar-width: none; }
.kc-scroller::-webkit-scrollbar { display: none; }
.kc-scroller > * { scroll-snap-align: start; }
.kc-scroll-btns { display: flex; gap: 8px; }
.kc-scroll-btn {
    width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--input); background: #fff; color: var(--ink);
    display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
}
.kc-scroll-btn:hover { background: var(--ground); }

/* City tiles */
.kc-city-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.kc-city {
    display: flex; align-items: center; gap: 14px;
    padding: 18px; border-radius: 14px; background: #fff; border: 1px solid var(--line);
    color: var(--ink);
    transition: border-color .15s ease, box-shadow .15s ease;
}
.kc-city:hover { border-color: var(--blue); box-shadow: var(--shadow); color: var(--ink); }
.kc-city-ico { width: 48px; height: 48px; border-radius: 12px; background: var(--blue-soft); color: var(--blue); display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-family: var(--font-head); font-weight: 800; font-size: 18px; }
.kc-city strong { display: block; font-size: 16px; }
.kc-city div > span { font-size: 14px; color: var(--muted); }

/* How it works */
.kc-how { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.kc-how-card { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 32px; }
.kc-how-card h3 { font-size: 22px; font-weight: 800; margin-bottom: 22px; display: flex; align-items: center; gap: 12px; }
.kc-how-card h3 .kc-how-ico { width: 44px; height: 44px; border-radius: 12px; background: var(--blue-soft); color: var(--blue); display: flex; align-items: center; justify-content: center; }
.kc-steps { list-style: none; margin: 0 0 24px; padding: 0; display: flex; flex-direction: column; gap: 18px; counter-reset: step; }
.kc-steps li { display: flex; gap: 14px; counter-increment: step; }
.kc-steps li::before {
    content: counter(step); flex-shrink: 0;
    width: 30px; height: 30px; border-radius: 50%;
    background: var(--ink); color: #fff; font-family: var(--font-head); font-weight: 700; font-size: 14px;
    display: flex; align-items: center; justify-content: center;
}
.kc-steps strong { display: block; font-size: 16px; }
.kc-steps span { font-size: 15px; color: var(--muted); }

/* Owner CTA band */
.kc-cta {
    background: var(--blue); color: #fff; border-radius: 24px;
    padding: 48px 56px; display: flex; align-items: center; justify-content: space-between; gap: 32px;
    position: relative; overflow: hidden;
}
.kc-cta::after { content: ""; position: absolute; right: -80px; top: -120px; width: 320px; height: 320px; border-radius: 50%; background: rgba(255,255,255,.08); }
.kc-cta h2 { color: #fff; font-size: 32px; font-weight: 800; margin-bottom: 8px; }
.kc-cta p { margin: 0; color: #D6EAF7; font-size: 17px; }
.kc-cta > * { position: relative; z-index: 1; }

/* ==========================================================================
   PAGE HEADER (inner pages)
   ========================================================================== */
.kc-page-head { background: var(--ground); border-bottom: 1px solid var(--line); padding: 36px 0 32px; }
.kc-page-head h1 { font-size: 36px; font-weight: 800; letter-spacing: -0.025em; }
.kc-page-head p { margin: 8px 0 0; color: var(--muted); font-size: 17px; }
.kc-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); margin-bottom: 12px; }
.kc-crumbs a { color: var(--muted); font-weight: 500; }
.kc-crumbs a:hover { color: var(--blue); }
.kc-crumbs .sep { color: var(--faint); }

/* ==========================================================================
   LISTINGS PAGE
   ========================================================================== */
.kc-browse { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 32px; align-items: start; padding: 40px 0 80px; }
.kc-filters { position: sticky; top: calc(var(--header-h) + 20px); background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.kc-filters summary { list-style: none; }
@media (min-width: 992px) { .kc-filters summary { pointer-events: none; } .kc-filters summary a { pointer-events: auto; } }
.kc-filters summary::-webkit-details-marker { display: none; }
.kc-filters-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--line); cursor: default; }
.kc-filters-head h2 { font-size: 17px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.kc-filters-head a { font-size: 14px; font-weight: 600; }
.kc-filters-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 16px; }
.kc-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.kc-label, .kc-filters label { display: block; font-size: 14px; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.kc-input, .kc-select, .kc-textarea {
    width: 100%; height: 46px; padding: 0 14px;
    border: 1px solid var(--input); border-radius: var(--radius-sm); background: #fff;
    font: inherit; font-size: 15px; color: var(--ink);
    transition: border-color .15s ease, box-shadow .15s ease;
}
.kc-select { appearance: none; -webkit-appearance: none; padding-right: 38px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23566573' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; }
.kc-textarea { height: auto; min-height: 140px; padding: 12px 14px; line-height: 1.55; resize: vertical; }
.kc-input:focus, .kc-select:focus, .kc-textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(9,115,186,.16); }
.kc-input::placeholder, .kc-textarea::placeholder { color: var(--faint); }

.kc-results-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.kc-results-bar h2 { font-size: 20px; font-weight: 700; }
.kc-results-bar h2 span { color: var(--muted); font-weight: 500; }
.kc-sort { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); }
.kc-sort .kc-select { height: 42px; width: auto; min-width: 190px; font-size: 14px; }
.kc-active-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: -6px 0 20px; }
.kc-active-filters a { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: var(--blue-soft); color: var(--blue); font-size: 13px; font-weight: 600; }
.kc-active-filters a:hover { background: #D6E8F5; }

.kc-empty {
    text-align: center; padding: 64px 24px; background: #fff; border: 1px dashed var(--input); border-radius: var(--radius);
}
.kc-empty .kc-empty-ico { width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 50%; background: var(--blue-soft); color: var(--blue); display: flex; align-items: center; justify-content: center; }
.kc-empty h3 { font-size: 20px; margin-bottom: 8px; }
.kc-empty p { color: var(--muted); max-width: 420px; margin: 0 auto 20px; }

/* Pagination (yii LinkPager) */
.kc-pager ul, ul.pagination { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 32px 0 0; justify-content: center; }
ul.pagination li a, ul.pagination li span {
    min-width: 42px; height: 42px; padding: 0 12px;
    display: inline-flex; align-items: center; justify-content: center;
    border: 1px solid var(--line); border-radius: 10px; background: #fff;
    color: var(--ink); font-weight: 600; font-size: 15px;
}
ul.pagination li a:hover { background: var(--ground); }
ul.pagination li.active a, ul.pagination li.active span { background: var(--blue); border-color: var(--blue); color: #fff; }
ul.pagination li.disabled span { color: var(--faint); }
.list-view .summary { display: none; }
.list-view .empty { display: none; }

/* ==========================================================================
   DETAIL PAGE
   ========================================================================== */
.kc-detail-top { padding: 28px 0 24px; }
.kc-detail-title { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.kc-detail-title h1 { font-size: 34px; font-weight: 800; letter-spacing: -0.025em; margin-bottom: 8px; }
.kc-detail-addr { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 16px; }
.kc-detail-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 14px; color: var(--muted); }
.kc-detail-meta span { display: inline-flex; align-items: center; gap: 6px; }

.kc-gallery { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 220px 220px; gap: 10px; border-radius: 20px; overflow: hidden; }
.kc-gallery button { position: relative; border: 0; padding: 0; margin: 0; background: var(--blue-soft); cursor: zoom-in; overflow: hidden; }
.kc-gallery button img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease, filter .2s; }
.kc-gallery button:hover img { transform: scale(1.03); filter: brightness(.95); }
.kc-gallery button:first-child { grid-row: 1 / 3; }
.kc-gallery.n1 { grid-template-columns: 1fr; grid-template-rows: 460px; }
.kc-gallery.n2 { grid-template-columns: 2fr 1fr; grid-template-rows: 460px; }
.kc-gallery.n2 button:first-child, .kc-gallery.n1 button:first-child { grid-row: auto; }
.kc-gallery.n3 { grid-template-columns: 2fr 1fr; }
.kc-gallery.n4 { grid-template-columns: 2fr 1fr 1fr; }
.kc-gallery.n4 button:last-child { grid-column: 2 / 4; }
.kc-gallery-all {
    position: absolute; right: 14px; bottom: 14px;
    display: inline-flex; align-items: center; gap: 8px;
    padding: 10px 14px; border-radius: 10px; background: #fff; color: var(--ink);
    font-size: 14px; font-weight: 600; box-shadow: var(--shadow); pointer-events: none;
}
.kc-gallery-empty { height: 360px; border-radius: 20px; background: var(--blue-soft); color: var(--blue); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; font-weight: 600; }

.kc-detail { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 48px; align-items: start; padding: 36px 0 72px; }
.kc-facts { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-bottom: 36px; }
.kc-fact { background: var(--ground); border-radius: 14px; padding: 16px; display: flex; flex-direction: column; gap: 6px; }
.kc-fact .kc-icon { width: 22px; height: 22px; color: var(--blue); }
.kc-fact strong { font-family: var(--font-head); font-size: 20px; font-weight: 800; line-height: 1; }
.kc-fact span { font-size: 13px; color: var(--muted); }
.kc-block { padding: 32px 0; border-top: 1px solid var(--line); }
.kc-block:first-of-type { border-top: 0; padding-top: 0; }
.kc-block h2 { font-size: 22px; font-weight: 800; margin-bottom: 18px; }
.kc-desc { font-size: 16.5px; line-height: 1.75; color: var(--ink-2); }
.kc-desc p:last-child { margin-bottom: 0; }
.kc-amenities { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 32px; }
.kc-amenity { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line-soft); font-size: 15px; }
.kc-amenity .kc-am-ico { width: 38px; height: 38px; border-radius: 10px; background: var(--ground); color: var(--ink-2); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.kc-amenity > span:not(.kc-am-ico) { flex: 1 1 auto; color: var(--muted); }
.kc-amenity b { font-weight: 600; color: var(--ink); text-align: right; }
.kc-amenity b.yes { color: var(--green); }
.kc-map { border-radius: 16px; overflow: hidden; background: var(--ground); }
.kc-map iframe { width: 100% !important; height: 380px !important; border: 0; display: block; }

.kc-contact-card {
    position: sticky; top: calc(var(--header-h) + 20px);
    background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 24px;
    box-shadow: var(--shadow);
}
.kc-contact-price { font-family: var(--font-head); font-size: 32px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; }
.kc-contact-price small { font-family: var(--font); font-size: 15px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.kc-contact-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 20px; }
.kc-contact-actions { display: flex; flex-direction: column; gap: 10px; }
.kc-contact-owner { display: flex; align-items: center; gap: 12px; padding: 16px 0; margin-top: 18px; border-top: 1px solid var(--line-soft); }
.kc-contact-owner .kc-avatar { width: 44px; height: 44px; font-size: 15px; }
.kc-contact-owner strong { display: block; font-size: 15px; }
.kc-contact-owner div > span { font-size: 13px; color: var(--muted); }
.kc-contact-note { font-size: 13px; color: var(--muted); display: flex; gap: 8px; align-items: flex-start; background: var(--ground); padding: 12px; border-radius: 10px; margin: 0; }
.kc-share { display: flex; align-items: center; gap: 8px; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line-soft); font-size: 14px; color: var(--muted); }
.kc-share a, .kc-share button {
    width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line); background: #fff; color: var(--ink);
    display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
}
.kc-share a:hover, .kc-share button:hover { background: var(--ground); }
.kc-share .kc-share-label { margin-right: auto; }

/* Lightbox */
.kc-lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(8,18,26,.94); display: none; align-items: center; justify-content: center; }
.kc-lightbox.open { display: flex; }
.kc-lightbox img { max-width: 92vw; max-height: 84vh; object-fit: contain; border-radius: 8px; }
.kc-lb-btn { position: absolute; width: 52px; height: 52px; border-radius: 50%; border: 0; background: rgba(255,255,255,.12); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.kc-lb-btn:hover { background: rgba(255,255,255,.22); }
.kc-lb-prev { left: 24px; top: 50%; transform: translateY(-50%); }
.kc-lb-next { right: 24px; top: 50%; transform: translateY(-50%); }
.kc-lb-close { right: 24px; top: 24px; }
.kc-lb-count { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); color: #BFCCD6; font-size: 14px; }

/* Mobile sticky contact bar */
.kc-mobile-contact { display: none; }

/* ==========================================================================
   FORMS (Yii ActiveForm output)
   ========================================================================== */
.kc-form .form-group, .kc-form .mb-3, .kc-form .field-wrap { margin-bottom: 18px; }
.kc-form label, .kc-form .control-label, .kc-form .form-label { display: block; font-size: 14px; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.kc-form .form-control, .kc-form .form-select, .kc-form .custom-select,
.kc-form input[type=text], .kc-form input[type=email], .kc-form input[type=password], .kc-form input[type=tel], .kc-form input[type=number], .kc-form input[type=time], .kc-form select {
    width: 100%; height: 48px; padding: 0 14px;
    border: 1px solid var(--input); border-radius: var(--radius-sm); background-color: #fff;
    font: inherit; font-size: 15px; color: var(--ink);
    transition: border-color .15s ease, box-shadow .15s ease;
}
.kc-form select, .kc-form .form-select { appearance: none; -webkit-appearance: none; padding-right: 38px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23566573' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; }
.kc-form textarea, .kc-form textarea.form-control { width: 100%; height: auto; min-height: 140px; padding: 12px 14px; border: 1px solid var(--input); border-radius: var(--radius-sm); font: inherit; font-size: 15px; line-height: 1.55; color: var(--ink); resize: vertical; }
.kc-form .form-control:focus, .kc-form .form-select:focus, .kc-form input:focus, .kc-form select:focus, .kc-form textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(9,115,186,.16); }
.kc-form input::placeholder, .kc-form textarea::placeholder { color: var(--faint); }
.kc-form input[disabled] { background: var(--ground); color: var(--muted); }
.kc-form .invalid-feedback, .kc-form .help-block-error, .kc-form .help-block { display: block; margin-top: 6px; font-size: 13px; color: var(--red); }
.kc-form .help-block:empty, .kc-form .invalid-feedback:empty { display: none; }
.kc-form .is-invalid, .kc-form .has-error .form-control { border-color: var(--red) !important; }
.kc-form .form-text, .kc-form .hint-block { display: block; margin-top: 6px; font-size: 13px; color: var(--muted); }
.kc-form .form-check { display: flex; align-items: center; gap: 10px; }
.kc-form .form-check-input, .kc-form input[type=checkbox] { width: 18px; height: 18px; margin: 0; accent-color: var(--blue); }
.kc-form .form-check-label { margin: 0; font-weight: 500; }
.kc-form .error-summary, .kc-alert {
    border-radius: 12px; padding: 14px 16px; margin-bottom: 20px; font-size: 15px;
}
.kc-form .error-summary { background: var(--red-soft); color: var(--red); border: 1px solid #F5C2BC; }
.kc-form .error-summary p { margin: 0 0 6px; font-weight: 600; }
.kc-form .error-summary ul { margin: 0; padding-left: 18px; }
.kc-alert-success { background: var(--green-soft); color: var(--green); }
.kc-alert-error, .kc-alert-danger { background: var(--red-soft); color: var(--red); }
.kc-alert-info, .kc-alert-warning { background: var(--amber-soft); color: var(--amber); }
.kc-alert { display: flex; align-items: flex-start; gap: 10px; }
.kc-alert .kc-alert-x { margin-left: auto; background: none; border: 0; color: inherit; opacity: .6; cursor: pointer; font-size: 20px; line-height: 1; padding: 0 4px; }

/* ==========================================================================
   AUTH PAGES
   ========================================================================== */
.kc-auth { background: var(--ground); padding: 56px 0 80px; }
.kc-auth-card { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); max-width: 1000px; margin: 0 auto; background: #fff; border: 1px solid var(--line); border-radius: 24px; overflow: hidden; box-shadow: var(--shadow); }
.kc-auth-card.single { grid-template-columns: 1fr; max-width: 520px; }
.kc-auth-side { background: var(--night); color: #fff; padding: 44px; display: flex; flex-direction: column; justify-content: space-between; gap: 32px; position: relative; overflow: hidden; }
.kc-auth-side::after { content: ""; position: absolute; right: -120px; bottom: -120px; width: 360px; height: 360px; border-radius: 50%; border: 60px solid rgba(9,115,186,.2); }
.kc-auth-side > * { position: relative; z-index: 1; }
.kc-auth-side img { width: 170px; }
.kc-auth-side h2 { color: #fff; font-size: 30px; font-weight: 800; margin-bottom: 14px; }
.kc-auth-side ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; color: #BFCCD6; font-size: 15px; }
.kc-auth-side li { display: flex; gap: 10px; align-items: flex-start; }
.kc-auth-side li .kc-icon { color: #6CC0F5; margin-top: 3px; }
.kc-auth-main { padding: 44px; }
.kc-auth-main h1 { font-size: 28px; font-weight: 800; margin-bottom: 6px; }
.kc-auth-main .kc-auth-sub { color: var(--muted); margin-bottom: 26px; }
.kc-auth-links { display: flex; flex-direction: column; gap: 8px; margin-top: 22px; font-size: 14px; color: var(--muted); text-align: center; }
.kc-auth-links a { font-weight: 600; }
.kc-auth-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: -4px 0 18px; font-size: 14px; }
.kc-auth-row .form-group, .kc-auth-row .mb-3 { margin: 0 !important; }
.kc-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.kc-form-grid .span-2 { grid-column: 1 / -1; }

/* ==========================================================================
   CONTACT
   ========================================================================== */
.kc-contact { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 48px; padding: 56px 0 80px; align-items: start; }
.kc-contact-list { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-direction: column; gap: 14px; }
.kc-contact-list li { display: flex; align-items: center; gap: 14px; padding: 16px; border: 1px solid var(--line); border-radius: 14px; }
.kc-contact-list .kc-ci { width: 44px; height: 44px; border-radius: 12px; background: var(--blue-soft); color: var(--blue); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.kc-contact-list small { display: block; font-size: 13px; color: var(--muted); }
.kc-contact-list strong, .kc-contact-list a { font-size: 16px; font-weight: 600; color: var(--ink); }
.kc-panel { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 32px; box-shadow: var(--shadow); }
.kc-panel h2 { font-size: 22px; font-weight: 800; margin-bottom: 6px; }
.kc-contact-map iframe { width: 100% !important; height: 420px !important; border: 0; display: block; }

/* ==========================================================================
   ACCOUNT AREA
   ========================================================================== */
.kc-account { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 32px; align-items: start; padding: 36px 0 80px; }
.kc-side { position: sticky; top: calc(var(--header-h) + 20px); background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.kc-side-user { display: flex; align-items: center; gap: 12px; padding: 20px; border-bottom: 1px solid var(--line); }
.kc-side-user .kc-avatar { width: 48px; height: 48px; font-size: 17px; }
.kc-side-user strong { display: block; font-size: 16px; line-height: 1.3; }
.kc-side-user div > span { font-size: 13px; color: var(--muted); display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kc-side nav { display: flex; flex-direction: column; padding: 10px; gap: 2px; }
.kc-side nav a { display: flex; align-items: center; gap: 12px; height: 46px; padding: 0 12px; border-radius: 10px; color: var(--ink-2); font-size: 15px; font-weight: 500; }
.kc-side nav a:hover { background: var(--ground); color: var(--ink); }
.kc-side nav a.active { background: var(--blue-soft); color: var(--blue); font-weight: 600; }
.kc-side nav a .kc-icon { color: inherit; opacity: .85; }
.kc-side nav a em { margin-left: auto; font-style: normal; font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--ground); color: var(--muted); }
.kc-side nav a.active em { background: #fff; color: var(--blue); }
.kc-side nav .kc-side-sep { height: 1px; background: var(--line); margin: 6px 4px; }
.kc-side .kc-side-cta { padding: 0 16px 16px; }

.kc-acc-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.kc-acc-head h1 { font-size: 28px; font-weight: 800; letter-spacing: -0.02em; }
.kc-acc-head p { margin: 6px 0 0; color: var(--muted); }
.kc-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 28px; }
.kc-stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.kc-stat span { font-size: 14px; font-weight: 600; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.kc-stat strong { display: block; font-family: var(--font-head); font-size: 30px; font-weight: 800; line-height: 1.1; margin-top: 10px; }
.kc-box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.kc-box-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.kc-box-head h2 { font-size: 18px; font-weight: 700; }
.kc-box-body { padding: 22px; }

/* My listing rows */
.kc-rows { display: flex; flex-direction: column; }
.kc-row { display: grid; grid-template-columns: 120px minmax(0, 1fr) auto; gap: 18px; align-items: center; padding: 16px 22px; border-bottom: 1px solid var(--line-soft); }
.kc-row:last-child { border-bottom: 0; }
.kc-row-img { width: 120px; height: 90px; border-radius: 12px; overflow: hidden; background: var(--blue-soft); }
.kc-row-img img { width: 100%; height: 100%; object-fit: cover; }
.kc-row-main { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.kc-row-main strong { font-size: 16px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kc-row-main strong a { color: var(--ink); }
.kc-row-main strong a:hover { color: var(--blue); }
.kc-row-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 14px; color: var(--muted); }
.kc-row-meta span { display: inline-flex; align-items: center; gap: 6px; }
.kc-row-price { font-family: var(--font-head); font-weight: 800; color: var(--ink); }
.kc-row-actions { display: flex; gap: 8px; }

/* Submit property */
.kc-form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 20px; }
.kc-form-card-head { display: flex; align-items: center; gap: 14px; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.kc-form-card-head .kc-step { width: 32px; height: 32px; border-radius: 50%; background: var(--ink); color: #fff; font-family: var(--font-head); font-weight: 700; font-size: 14px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.kc-form-card-head h2 { font-size: 18px; font-weight: 700; }
.kc-form-card-head p { margin: 2px 0 0; font-size: 14px; color: var(--muted); }
.kc-form-card-body { padding: 22px 22px 6px; }
.kc-fgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; }
.kc-fgrid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.kc-fgrid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.kc-fgrid .span-all { grid-column: 1 / -1; }
.kc-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; margin-bottom: 20px; }
.kc-photo-tile { position: relative; aspect-ratio: 1 / 1; border-radius: 14px; overflow: hidden; background: var(--ground); border: 1px solid var(--line); }
.kc-photo-tile img { width: 100%; height: 100%; object-fit: cover; }
.kc-photo-tile .kc-photo-x {
    position: absolute; top: 8px; right: 8px; width: 32px; height: 32px; border-radius: 50%; border: 0;
    background: rgba(16,35,48,.78); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.kc-photo-tile .kc-photo-x:hover { background: var(--red); }
.kc-photo-tile .kc-photo-cover { position: absolute; left: 8px; bottom: 8px; font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 6px; background: #fff; color: var(--ink); }
.kc-photo-add {
    aspect-ratio: 1 / 1; border-radius: 14px; border: 2px dashed var(--input); background: var(--blue-tint);
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
    color: var(--blue); font-weight: 600; font-size: 14px; cursor: pointer; text-align: center; padding: 10px;
}
.kc-photo-add:hover { border-color: var(--blue); background: var(--blue-soft); }
.kc-photo-add small { color: var(--muted); font-weight: 500; font-size: 12px; }
.kc-submit-bar {
    position: sticky; bottom: 0; z-index: 20;
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    background: rgba(255,255,255,.96); backdrop-filter: blur(6px);
    border: 1px solid var(--line); border-radius: 16px; padding: 14px 18px; margin-top: 8px;
    box-shadow: 0 -8px 24px rgba(16,35,48,.06);
}
.kc-submit-bar p { margin: 0; font-size: 14px; color: var(--muted); }
.sceditor-container { width: 100% !important; border-radius: var(--radius-sm) !important; border-color: var(--input) !important; overflow: hidden; }
.sceditor-toolbar { background: var(--ground) !important; border-bottom-color: var(--line) !important; }

/* Profile */
.kc-profile { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 32px; align-items: start; }
.kc-profile-photo { position: relative; width: 180px; height: 180px; border-radius: 50%; overflow: hidden; background: var(--blue-soft); border: 4px solid #fff; box-shadow: var(--shadow); }
.kc-profile-photo img { width: 100%; height: 100%; object-fit: cover; }
.kc-profile-photo label {
    position: absolute; inset: auto 0 0 0; height: 44px; margin: 0;
    display: flex; align-items: center; justify-content: center; gap: 6px;
    background: rgba(16,35,48,.72); color: #fff; font-size: 13px; font-weight: 600; cursor: pointer;
}
.kc-profile-photo input { display: none; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.kc-footer { background: var(--night); color: #BFCCD6; margin-top: 0; }
.kc-footer-main { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 40px; padding: 64px 0 48px; }
.kc-footer img.kc-footer-logo { width: 170px; margin-bottom: 18px; }
.kc-footer p { font-size: 15px; line-height: 1.7; margin-bottom: 20px; max-width: 340px; }
.kc-footer h4 { color: #fff; font-size: 15px; font-weight: 700; letter-spacing: .02em; margin-bottom: 18px; }
.kc-footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.kc-footer ul a { color: #BFCCD6; font-size: 15px; }
.kc-footer ul a:hover { color: #fff; }
.kc-footer-contact li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; }
.kc-footer-contact .kc-icon { color: #6CC0F5; margin-top: 4px; }
.kc-footer-contact a { color: #E3EAF0 !important; }
.kc-social { display: flex; gap: 8px; }
.kc-social a { width: 40px; height: 40px; border-radius: 10px; background: rgba(255,255,255,.07); color: #E3EAF0; display: inline-flex; align-items: center; justify-content: center; }
.kc-social a:hover { background: var(--blue); color: #fff; }
.kc-footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 22px 0; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 14px; color: #8FA3B3; }
.kc-footer-bottom a { color: #BFCCD6; }

.kc-to-top {
    position: fixed; right: 20px; bottom: 20px; z-index: 40;
    width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--ink); color: #fff;
    display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: var(--shadow);
    opacity: 0; pointer-events: none; transition: opacity .2s ease;
}
.kc-to-top.show { opacity: 1; pointer-events: auto; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1180px) {
    .kc-grid-4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .kc-scroller { grid-auto-columns: calc((100% - 48px) / 3); }
    .kc-hero h1 { font-size: 46px; }
    .kc-search-card { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .kc-search-field + .kc-search-field { border-left: 0; }
    .kc-search-card .kc-btn { grid-column: 1 / -1; min-height: 54px; }
    .kc-facts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .kc-detail { grid-template-columns: minmax(0, 1fr) 340px; gap: 32px; }
    .kc-footer-main { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 991px) {
    :root { --header-h: 68px; }
    .kc-nav, .kc-header-actions .kc-hide-md { display: none; }
    .kc-menu-btn { display: inline-flex; }
    .kc-header-inner { gap: 12px; }
    .kc-logo { margin-right: auto; }
    .kc-logo img { height: 40px; }
    .kc-mobile-nav { display: none; border-top: 1px solid var(--line); padding: 12px 24px 20px; background: #fff; }
    .kc-mobile-nav.open { display: block; }
    .kc-mobile-nav a { display: flex; align-items: center; gap: 12px; height: 48px; padding: 0 12px; border-radius: 10px; color: var(--ink); font-weight: 500; }
    .kc-mobile-nav a:hover { background: var(--ground); }
    .kc-mobile-nav .kc-btn { margin-top: 10px; width: 100%; }
    .kc-hero-inner { grid-template-columns: 1fr; padding-top: 48px; padding-bottom: 56px; gap: 32px; }
    .kc-hero-art { display: none; }
    .kc-trust-inner { grid-template-columns: 1fr; }
    .kc-trust-item + .kc-trust-item { border-left: 0; border-top: 1px solid var(--line); }
    .kc-grid-4, .kc-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .kc-scroller { grid-auto-columns: calc((100% - 24px) / 2); }
    .kc-city-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .kc-how { grid-template-columns: 1fr; }
    .kc-cta { flex-direction: column; align-items: flex-start; padding: 36px 28px; }
    .kc-browse { grid-template-columns: 1fr; gap: 20px; padding-top: 24px; }
    .kc-filters { position: static; }
    .kc-filters:not([open]) .kc-filters-body { display: none; }
    .kc-filters-head { cursor: pointer; }
    .kc-detail { grid-template-columns: 1fr; padding-bottom: 110px; }
    .kc-contact-card { position: static; }
    .kc-gallery { grid-template-columns: 1fr 1fr; grid-template-rows: 260px 140px; }
    .kc-gallery button:first-child { grid-column: 1 / -1; grid-row: auto; }
    .kc-gallery button:nth-child(n+4) { display: none; }
    .kc-gallery.n1, .kc-gallery.n2 { grid-template-rows: 300px; }
    .kc-mobile-contact {
        display: flex; gap: 10px; align-items: center;
        position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
        padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--line);
        box-shadow: 0 -8px 24px rgba(16,35,48,.08);
    }
    .kc-mobile-contact .kc-mc-price { margin-right: auto; font-family: var(--font-head); font-weight: 800; font-size: 18px; line-height: 1.1; }
    .kc-mobile-contact .kc-mc-price small { display: block; font-family: var(--font); font-size: 12px; font-weight: 500; color: var(--muted); }
    .kc-contact { grid-template-columns: 1fr; gap: 32px; }
    .kc-auth-card { grid-template-columns: 1fr; }
    .kc-auth-side { display: none; }
    .kc-account { grid-template-columns: 1fr; gap: 20px; padding-top: 24px; }
    .kc-side { position: static; }
    .kc-side nav { flex-direction: row; overflow-x: auto; }
    .kc-side nav a { flex-shrink: 0; }
    .kc-side nav .kc-side-sep, .kc-side .kc-side-cta { display: none; }
    .kc-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .kc-fgrid-3, .kc-fgrid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .kc-to-top { bottom: 90px; }
}
@media (max-width: 640px) {
    body { font-size: 15px; }
    .kc-container { padding: 0 16px; }
    .kc-section { padding: 56px 0; }
    .kc-hero h1 { font-size: 36px; }
    .kc-hero-sub { font-size: 17px; }
    .kc-search-card { grid-template-columns: 1fr; }
    .kc-section-head h2 { font-size: 28px; }
    .kc-grid-4, .kc-grid-3, .kc-grid-2 { grid-template-columns: 1fr; }
    .kc-scroller { grid-auto-columns: 82%; gap: 16px; }
    .kc-city-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
    .kc-city { padding: 14px; gap: 10px; }
    .kc-city-ico { width: 40px; height: 40px; font-size: 16px; }
    .kc-how-card { padding: 24px; }
    .kc-cta h2 { font-size: 26px; }
    .kc-page-head h1 { font-size: 28px; }
    .kc-detail-title h1 { font-size: 26px; }
    .kc-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .kc-amenities { grid-template-columns: 1fr; }
    .kc-footer-main { grid-template-columns: 1fr; gap: 32px; padding: 48px 0 32px; }
    .kc-auth { padding: 24px 0 48px; }
    .kc-auth-main { padding: 28px 22px; }
    .kc-form-grid, .kc-fgrid, .kc-fgrid-3, .kc-fgrid-4 { grid-template-columns: 1fr; }
    .kc-row { grid-template-columns: 84px minmax(0, 1fr); padding: 14px 16px; }
    .kc-row-img { width: 84px; height: 72px; }
    .kc-row-actions { grid-column: 1 / -1; }
    .kc-row-actions .kc-btn { flex: 1 1 0; }
    .kc-profile { grid-template-columns: 1fr; justify-items: center; }
    .kc-profile > div:last-child { width: 100%; }
    .kc-panel { padding: 22px; }
    .kc-submit-bar { flex-direction: column; align-items: stretch; }
    .kc-submit-bar .kc-btn { width: 100%; }
}

/* ==========================================================================
   Subscribe box (above the footer) · v1.2
   ========================================================================== */
.kc-subscribe-band { background: var(--surface); padding: 64px 0; border-top: 1px solid var(--line-soft); }
.kc-subscribe { position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; padding: 44px 52px; border-radius: 24px; background: var(--night); }
.kc-subscribe::before { content: ""; position: absolute; right: -90px; top: -120px; width: 320px; height: 320px; border-radius: 50%; border: 60px solid rgba(9,115,186,.18); pointer-events: none; }
.kc-subscribe > * { position: relative; }
.kc-subscribe-text { display: flex; flex-direction: column; gap: 10px; }
.kc-subscribe-eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #6CC0F5; }
.kc-subscribe h2 { margin: 0; font-family: var(--font-head); font-size: 32px; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; color: #fff; }
.kc-subscribe p { margin: 0; font-size: 16px; line-height: 1.55; color: #BFCCD6; max-width: 460px; }
.kc-subscribe-form { display: flex; flex-direction: column; gap: 12px; }
.kc-subscribe-fields { display: flex; gap: 10px; }
.kc-subscribe-fields label { display: flex; flex-direction: column; gap: 6px; margin: 0; font-size: 13px; font-weight: 600; color: #BFCCD6; }
.kc-subscribe-email { flex: 1 1 auto; min-width: 0; }
.kc-subscribe-city { width: 190px; flex: none; }
.kc-subscribe-fields input, .kc-subscribe-fields select { width: 100%; height: 52px; padding: 0 16px; border: 0; border-radius: 12px; background: #fff; font: inherit; font-size: 16px; font-weight: 400; color: var(--ink); }
.kc-subscribe-fields select { font-size: 15px; padding: 0 38px 0 14px; appearance: none; -webkit-appearance: none; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23566573' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center; }
.kc-subscribe-fields input:focus, .kc-subscribe-fields select:focus { outline: none; box-shadow: 0 0 0 3px rgba(108,192,245,.55); }
.kc-subscribe-btn { height: 52px; border: 0; border-radius: 12px; background: var(--blue); color: #fff; font: inherit; font-size: 16px; font-weight: 700; cursor: pointer; transition: background .15s; }
.kc-subscribe-btn:hover { background: var(--blue-dark); }
.kc-subscribe-btn:disabled { opacity: .7; cursor: default; }
.kc-subscribe-note { font-size: 12.5px; line-height: 1.5; color: #8FA3B3; }
.kc-subscribe-note b { color: #fff; }
.kc-subscribe-note.is-ok { font-size: 14.5px; color: #B7F0CB; }
.kc-subscribe-note.is-error { font-size: 14px; color: #FFB4AB; }
.kc-subscribe-form.is-done .kc-subscribe-fields, .kc-subscribe-form.is-done .kc-subscribe-btn { display: none; }
.kc-subscribe-form.is-done .kc-subscribe-note { padding: 18px 20px; border-radius: 12px; background: rgba(255,255,255,.06); }
.kc-subscribe-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 991px) {
    .kc-subscribe { grid-template-columns: 1fr; gap: 28px; padding: 36px 32px; }
}
@media (max-width: 767px) {
    .kc-subscribe-band { padding: 40px 0; }
    .kc-subscribe { padding: 28px 22px; border-radius: 20px; }
    .kc-subscribe h2 { font-size: 26px; }
    .kc-subscribe-fields { flex-direction: column; }
    .kc-subscribe-city { width: 100%; }
}
