body.ks-market {
    margin: 0;
    background: #f5f5f7;
    color: #1d1d1f;
}

.ks-nav {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    padding: 10px 16px;
    background: rgba(245, 245, 247, 0.8);
    backdrop-filter: saturate(180%) blur(18px);
    box-sizing: border-box;
}

.ks-brand {
    display: inline-flex;
    flex: 1 1 auto;
    min-width: 0;
    background: transparent;
    padding: 0;
    box-shadow: none;
}

.ks-brand img {
    height: 46px;
    width: auto;
    max-width: 100%;
    display: block;
    object-fit: contain;
    object-position: left center;
}

.ks-nav-tools {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 0 0 auto;
    margin-left: auto;
}

.ks-nav-links {
    display: flex;
    gap: 18px;
    align-items: center;
    min-width: 0;
}

.ks-nav-links a {
    color: #1d1d1f;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

.ks-nav-links .ks-btn {
    color: #fff;
    padding: 10px 16px;
}

.ks-hero {
    position: relative;
    margin: 0 20px;
    border-radius: 28px;
    overflow: hidden;
    min-height: 78vh;
    background: #111;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.16);
}

.ks-slide {
    display: none;
    min-height: 78vh;
    background-size: cover;
    background-position: center;
    position: relative;
}

.ks-slide.is-on {
    display: flex;
    align-items: flex-end;
}

.ks-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.05) 10%, rgba(0, 0, 0, 0.55) 100%);
}

.ks-slide-copy {
    position: relative;
    z-index: 1;
    color: #fff;
    padding: 48px 48px 240px;
    max-width: 720px;
}

.ks-slide-copy p {
    margin: 0 0 8px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-size: 12px;
    font-weight: 600;
}

.ks-slide-copy h1 {
    margin: 0 0 10px;
    font-size: clamp(36px, 5vw, 64px);
    line-height: 1.02;
    letter-spacing: -0.03em;
    font-weight: 650;
}

.ks-hero-ui {
    position: absolute;
    right: 24px;
    bottom: 228px;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ks-hero-ui button {
    border: 0;
    background: rgba(255, 255, 255, 0.86);
    color: #1d1d1f;
    border-radius: 999px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
    width: 36px;
    height: 36px;
}

.ks-hero-ui .ks-dot {
    width: 8px;
    height: 8px;
    padding: 0;
}

.ks-hero-ui .ks-dot.is-on {
    width: 22px;
    background: #e07a2f;
}

.ks-search {
    position: absolute;
    left: 24px;
    right: 24px;
    bottom: 20px;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1.3fr) minmax(0, 0.8fr) minmax(0, 0.8fr) minmax(0, 0.8fr) auto;
    gap: 18px;
    padding: 16px;
    border-radius: 22px;
    background: rgba(232, 235, 240, 0.92);
    backdrop-filter: blur(18px) saturate(160%);
    box-shadow: inset 0 1px 0 #fff, 0 16px 40px rgba(0, 0, 0, 0.16);
    box-sizing: border-box;
    overflow: hidden;
}

.ks-search > * {
    min-width: 0;
    max-width: 100%;
}

.ks-deals {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.ks-deals span {
    font-size: 11px;
    color: #6e6e73;
    margin-right: 4px;
}

.ks-deal {
    border: 0;
    background: #fff;
    color: #1d1d1f;
    border-radius: 999px;
    padding: 8px 14px;
    font: inherit;
    font-size: 13px;
    font-weight: 650;
    text-decoration: none;
    box-shadow: inset 0 1px 0 #fff, 0 1px 2px rgba(0, 0, 0, 0.06);
}

.ks-deal.is-on {
    background: #1d6fe8;
    color: #fff;
}

.ks-search label {
    display: block;
    font-size: 11px;
    color: #6e6e73;
    margin-bottom: 4px;
}

.ks-search input,
.ks-search select {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    display: block;
    border: 0;
    background: #fff;
    border-radius: 12px;
    padding: 10px 12px;
    font: inherit;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.06);
}

.ks-search button {
    align-self: end;
    height: 42px;
    padding: 0 18px;
    color: #fff;
}

.ks-search-inline {
    position: static;
    margin-top: 8px;
}

.ks-wrap {
    width: min(1120px, calc(100% - 40px));
    margin: 0 auto;
}

.ks-section {
    padding: 72px 0 10px;
}

.ks-kicker {
    color: #e07a2f;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin: 0 0 8px;
}

.ks-section h2 {
    margin: 0 0 8px;
    font-size: clamp(28px, 4vw, 44px);
    letter-spacing: -0.03em;
}

.ks-section .lead {
    color: #6e6e73;
    max-width: 640px;
    margin: 0 0 28px;
}

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

.ks-feature,
.ks-prop,
.ks-vendor,
.ks-quote {
    padding: 18px;
}

.ks-feature h3,
.ks-prop h3,
.ks-vendor h3 {
    margin: 8px 0;
    font-size: 18px;
}

.ks-feature p,
.ks-quote p,
.ks-muted {
    color: #6e6e73;
    margin: 0;
}

.ks-prop {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 0;
    overflow: hidden;
    color: #1d1d1f;
    text-decoration: none;
}

.ks-prop a,
.ks-prop h3,
.ks-prop h3 a {
    color: inherit;
    text-decoration: none;
}

.ks-prop .ks-price {
    color: #1d6fe8;
    text-decoration: none;
}

.ks-prop h3 a:hover {
    color: #1d6fe8;
}

.ks-book {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: center;
    width: auto;
    max-width: 100%;
    margin-top: 12px;
    background: #1d6fe8;
    color: #fff !important;
    text-decoration: none !important;
    border: 0;
    border-radius: 999px;
    padding: 6px 12px;
    min-height: 0;
    line-height: 1.2;
    font-size: 12px;
    font-weight: 650;
    cursor: pointer;
    box-sizing: border-box;
}

.ks-cat-pick {
    display: grid;
    gap: 6px;
    max-width: min(420px, calc(100% - 48px));
}

.ks-cat-pick span {
    font-size: 12px;
    color: #6e6e73;
}

.ks-cat-pick select {
    width: 100%;
    box-sizing: border-box;
    appearance: none;
    border: 0;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%231d1d1f' d='M1 1l5 5 5-5'/%3E%3C/svg%3E") no-repeat right 14px center;
    border-radius: 14px;
    padding: 12px 36px 12px 14px;
    font: inherit;
    font-size: 15px;
    font-weight: 650;
    color: #1d1d1f;
    box-shadow: inset 0 1px 0 #fff, 0 8px 18px rgba(0, 0, 0, 0.06);
}

.ks-prop img {
    width: 100%;
    height: 190px;
    object-fit: cover;
    display: block;
}

.ks-prop-body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    padding: 16px 16px 18px;
}

.ks-pills {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.ks-pill {
    font-size: 11px;
    font-weight: 650;
    padding: 4px 8px;
    border-radius: 999px;
    background: #f2f2f5;
    color: #1d1d1f;
}

.ks-pill.rent {
    background: rgba(29, 111, 232, 0.12);
    color: #1d6fe8;
}

.ks-pill.sell {
    background: rgba(224, 122, 47, 0.14);
    color: #c45e12;
}

.ks-pill.hotel {
    background: #ecfdf5;
    color: #047857;
}

.ks-pill.short_stay {
    background: #eef2ff;
    color: #4338ca;
}

.ks-price {
    font-size: 20px;
    letter-spacing: -0.03em;
    color: #1d6fe8;
    text-decoration: none;
}

.ks-was {
    color: #94a3b8;
    font-size: 14px;
    margin-right: 6px;
}

.ks-also,
.ks-off {
    margin: 0;
    font-size: 13px;
}

.ks-also { color: #64748b; }
.ks-off { color: #b45309; font-weight: 600; }
.ks-pill.featured { background: #0f172a; color: #f5c16c; }

.ks-cats {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.ks-cats a {
    text-decoration: none;
    color: #1d1d1f;
    background: #fff;
    border-radius: 999px;
    padding: 12px 16px;
    box-shadow: inset 0 1px 0 #fff, 0 8px 18px rgba(0, 0, 0, 0.05);
}

.ks-vendor strong {
    display: block;
    font-size: 18px;
}

.ks-quote {
    min-height: 0;
}

.ks-cta {
    margin: 72px 20px 40px;
    border-radius: 28px;
    padding: 48px;
    color: #fff;
    background:
        linear-gradient(120deg, rgba(5, 5, 5, 0.2), rgba(5, 5, 5, 0.55)),
        url("../assets/marketplace/slides/slide-6.jpg") center/cover;
}

.ks-cta h2 {
    margin: 0 0 8px;
    font-size: clamp(28px, 4vw, 46px);
    letter-spacing: -0.03em;
}

.ks-partners {
    width: min(1120px, calc(100% - 40px));
    margin: 36px auto 8px;
}

.ks-partner-viewport { overflow: hidden; }

.ks-partner-track {
    display: flex;
    gap: 14px;
    transition: transform 0.45s ease;
}

.ks-partner {
    flex: 0 0 240px;
    display: grid;
    gap: 6px;
    padding: 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(125, 211, 252, 0.35);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
    text-decoration: none;
    color: #0f172a;
}

.ks-partner img { width: 100%; height: 72px; object-fit: contain; }
.ks-partner span { color: #64748b; font-size: 13px; }

.ks-pop {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(2, 6, 23, 0.55);
    backdrop-filter: blur(8px);
}

.ks-pop[hidden] { display: none !important; }

.ks-pop-card {
    position: relative;
    box-sizing: border-box;
    width: min(340px, calc(100% - 32px));
    max-height: calc(100vh - 32px);
    padding: 12px;
    border-radius: 22px;
    background: rgba(8, 12, 28, 0.92);
    border: 1px solid rgba(186, 230, 253, 0.35);
    box-shadow: 0 0 40px rgba(56, 189, 248, 0.28);
    overflow: hidden;
}

.ks-pop-card a { display: block; color: inherit; text-decoration: none; }
.ks-pop-brand {
    display: block;
    width: auto;
    max-width: calc(100% - 40px);
    height: 58px;
    object-fit: contain;
    margin: 0 auto 10px;
    border-radius: 0;
}
.ks-pop-photo {
    width: 100%;
    height: 168px;
    object-fit: cover;
    border-radius: 14px;
    display: block;
}
.ks-pop-card p { color: #e2e8f0; margin: 10px 4px 2px; font-size: 15px; }
.ks-pop-close {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 2;
    width: 30px;
    height: 30px;
    border: 0;
    border-radius: 999px;
    background: #fff;
    cursor: pointer;
    font-size: 18px;
    line-height: 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

@media (max-width: 640px) {
    .ks-pop {
        padding: 16px;
        box-sizing: border-box;
        align-items: center;
    }

    .ks-pop-card {
        width: min(260px, calc(100% - 24px));
        padding: 10px;
        border-radius: 18px;
    }

    .ks-pop-brand {
        max-width: calc(100% - 36px);
        height: 50px;
        margin-bottom: 8px;
    }

    .ks-pop-photo {
        height: 132px;
        border-radius: 12px;
    }

    .ks-pop-card p { font-size: 13px; margin: 8px 2px 0; }
    .ks-pop-close { width: 26px; height: 26px; font-size: 16px; line-height: 26px; }
}

.ks-footer {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 28px;
    color: #6e6e73;
    font-size: 13px;
}

.ks-pages {
    display: flex;
    gap: 12px;
    align-items: center;
    margin: 24px 0 8px;
}

.ks-pages a {
    color: #1d6fe8;
}

.ks-detail {
    display: grid;
    grid-template-columns: 1.4fr 0.8fr;
    gap: 20px;
    padding-top: 24px;
}

.ks-market-switch {
    display: flex;
    gap: 6px;
    align-items: center;
    min-width: 0;
}

.ks-market-switch a {
    border: 1px solid #d7dbe3;
    border-radius: 999px;
    padding: 6px 10px;
    color: #0f172a;
    background: #fff;
    font-size: 13px;
    white-space: nowrap;
    max-width: 34vw;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ks-market-switch a.is-on {
    background: #1d6fe8;
    color: #fff;
    border-color: #1d6fe8;
}

.ks-ops {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.ks-ops button {
    border: 1px solid #d7dbe3;
    background: #fff;
    border-radius: 999px;
    padding: 8px 14px;
    cursor: pointer;
}

.ks-ops button.is-on {
    background: #0f172a;
    color: #fff;
    border-color: #0f172a;
}

.ks-shot {
    border: 0;
    background: transparent;
    padding: 0;
    text-align: left;
    cursor: pointer;
}

.ks-shot span {
    display: block;
    margin-top: 6px;
    color: #64748b;
    font-size: 13px;
}

.ks-map,
.ks-film-empty {
    width: 100%;
    height: 460px;
    border: 0;
    border-radius: 24px;
    background: #e8eef6;
}

.ks-film-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.ks-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.88);
    z-index: 80;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 24px;
}

.ks-lightbox[hidden] {
    display: none;
}

.ks-lightbox img {
    max-width: min(1000px, 80vw);
    max-height: 80vh;
    object-fit: contain;
    border-radius: 16px;
}

.ks-lightbox button {
    border: 0;
    background: #fff;
    border-radius: 999px;
    padding: 10px 14px;
    cursor: pointer;
}

.ks-detail img.cover {
    width: 100%;
    border-radius: 24px;
    height: 460px;
    object-fit: cover;
}

.ks-menu-btn {
    display: none;
    flex: 0 0 42px;
    border: 1px solid #d7dbe3;
    background: #fff;
    color: #0f172a;
    border-radius: 12px;
    width: 42px;
    height: 42px;
    padding: 0;
    align-items: center;
    justify-content: center;
}

.ks-menu-btn svg {
    width: 22px;
    height: 22px;
    display: block;
}

@media (max-width: 991.98px) {
    .ks-nav {
        top: 8px;
        margin: 8px 10px 0;
        padding: 6px 6px 6px 10px;
        border-radius: 22px;
        background: rgba(255, 255, 255, 0.94);
        box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
    }

    .ks-brand img {
        height: 36px;
        max-width: 42vw;
    }

    .ks-nav-links {
        display: none;
    }

    .ks-menu-btn {
        display: inline-flex;
    }

    .ks-nav-tools .ks-currency,
    .ks-nav-links .ks-nav-currency {
        display: none;
    }

    .ks-nav.is-open .ks-nav-links {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: calc(100% + 8px);
        left: 0;
        right: 0;
        padding: 16px;
        background: #fff;
        border-radius: 18px;
        box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
        align-items: flex-start;
        z-index: 30;
    }

    .ks-nav.is-open .ks-nav-links .ks-nav-currency {
        display: flex;
        width: 100%;
    }

    .ks-hero {
        min-height: 0;
        overflow: hidden;
        margin: 8px 10px;
        max-width: calc(100% - 20px);
        border-radius: 22px;
        box-sizing: border-box;
    }

    .ks-slide,
    .ks-slide.is-on {
        min-height: 46vh;
        align-items: flex-start;
    }

    .ks-slide-copy {
        padding: 64px 20px 28px;
    }

    .ks-slide-copy h1 {
        font-size: clamp(26px, 8vw, 40px);
        overflow-wrap: anywhere;
    }

    .ks-slide-copy p {
        overflow-wrap: anywhere;
    }

    .ks-search,
    .ks-detail {
        grid-template-columns: 1fr;
    }

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

    .ks-search {
        position: relative;
        left: auto;
        right: auto;
        bottom: auto;
        width: auto;
        max-width: 100%;
        margin: 12px 10px;
        padding-right: 72px;
        grid-template-columns: 1fr;
    }

    .ks-hero-ui {
        left: 12px;
        right: 12px;
        bottom: auto;
        top: 12px;
        justify-content: space-between;
    }

}

.ks-story-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 16px;
    margin-bottom: 18px;
}

.ks-story-nav {
    display: flex;
    gap: 8px;
}

.ks-story-nav button,
.ks-walk {
    border: 0;
    background: #fff;
    color: #1d1d1f;
    width: 36px;
    height: 36px;
    border-radius: 999px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
}

.ks-story-viewport {
    overflow: hidden;
}

.ks-story-track {
    display: flex;
    align-items: stretch;
    gap: 16px;
    transition: transform 0.45s ease;
}

.ks-quote {
    flex: 0 0 calc((100% - 32px) / 3);
    min-height: 0;
    height: auto;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 14px 16px 12px;
}

.ks-quote p {
    white-space: normal;
    overflow: visible;
}

@media (max-width: 991.98px) {
    .ks-quote {
        flex: 0 0 calc((100% - 16px) / 2);
    }
}

@media (max-width: 640px) {
    .ks-grid {
        grid-template-columns: 1fr;
    }

    .ks-grid:has(.ks-prop) {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .ks-prop img {
        height: 112px;
    }

    .ks-prop-body { padding: 10px 10px 12px; }
    .ks-prop h3 { font-size: 15px; margin: 6px 0; }
    .ks-prop .ks-muted,
    .ks-prop .ks-pill { font-size: 11px; }
    .ks-prop .ks-price { font-size: 15px; white-space: normal; }
    .ks-prop .ks-also,
    .ks-prop .ks-off { font-size: 11px; }
    .ks-prop .ks-book { padding: 5px 10px; font-size: 11px; min-height: 0; line-height: 1.2; }
    .ks-top { bottom: 88px; left: 10px; }

    .ks-quote {
        flex: 0 0 100%;
        min-height: 0;
        width: 100%;
    }
}

.ks-quote strong {
    display: block;
    margin-top: 8px;
}

.ks-quote .ks-muted {
    margin-top: 2px;
}

.ks-visit {
    padding-top: 28px;
}

.ks-stay {
    padding: 22px;
}

.ks-stay h1 {
    letter-spacing: -0.03em;
    margin: 12px 0 6px;
    font-size: 32px;
}

.ks-share {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 14px 0;
}

.ks-share a,
.ks-share button {
    border: 0;
    border-radius: 999px;
    padding: 8px 12px;
    color: #fff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 650;
    cursor: pointer;
}

.ks-share-icons a,
.ks-share-icons button {
    width: 36px;
    height: 36px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.ks-share-icons svg { width: 18px; height: 18px; display: block; }

a.ks-btn,
button.ks-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff !important;
    background: linear-gradient(180deg, #3b86f0 0%, #1d6fe8 100%) !important;
    text-decoration: none !important;
    border: 0;
    border-radius: 999px;
    padding: 14px 22px;
    line-height: 1.45;
    height: auto;
    min-height: 46px;
    overflow: visible;
    font-weight: 650;
    font-size: 14px;
    box-sizing: border-box;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 8px 16px rgba(29, 111, 232, 0.25);
}

.ks-cta { overflow: visible; }
.ks-cta .ks-btn { margin-top: 18px; }

@media (max-width: 767.98px) {
    .ks-cta {
        text-align: center;
        padding: 32px 20px;
    }

    .ks-cta .ks-btn {
        display: inline-flex;
        margin-left: auto;
        margin-right: auto;
    }
}
.ks-more { display: flex; justify-content: center; margin-top: 28px; }

.ks-currency { display: flex; align-items: center; }
.ks-currency label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}
.ks-currency select {
    appearance: none;
    border: 1px solid rgba(255, 255, 255, 0.8);
    background-color: rgba(255, 255, 255, 0.86);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%230f172a' stroke-width='1.6' stroke-linecap='round' d='M1 1.5 6 6.5 11 1.5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    color: #0f172a;
    border-radius: 999px;
    padding: 8px 34px 8px 14px;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.03em;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08), inset 0 1px 0 #fff;
    backdrop-filter: blur(12px);
    cursor: pointer;
}

.ks-pager {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 28px 0 8px;
}

.ks-pager a,
.ks-pager span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    border-radius: 999px;
    background: #fff;
    color: #1d1d1f;
    text-decoration: none;
    font-size: 14px;
    font-weight: 650;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.ks-pager .is-on,
.ks-pager a:hover { background: #1d6fe8; color: #fff; }

.ks-market nav[role="navigation"] svg { width: 16px; height: 16px; }

.ks-manage { overflow: visible; }
.ks-manage .ks-btn { margin-top: 12px; }

.ks-top {
    position: fixed;
    left: 16px;
    bottom: 28px;
    z-index: 36;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 999px;
    background: #1d1d1f;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.ks-top.is-on { opacity: 1; pointer-events: auto; }

.ks-prop-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: auto;
    padding-top: 10px;
    text-align: center;
}

.ks-prop-row .ks-price,
.ks-prop-row .ks-book { white-space: nowrap; }

.ks-prop-row .ks-price { margin: 0; }
.ks-prop-row .ks-book { margin-top: 0; }

.ks-pill.fire { background: #fff1e6; color: #c2410c; }
.ks-pill.distress { background: #fee2e2; color: #b91c1c; }

.ks-brand-page { padding-top: 28px; }
.ks-brand-page h1 { margin: 8px 0; letter-spacing: -0.03em; }

.ks-share .wa { background: #1faf62; }
.ks-share .tg { background: #2aa1d8; }
.ks-share .fb { background: #3b5998; }
.ks-share .ig { background: #d62976; }

.ks-tour,
.ks-book-panel {
    margin-top: 36px;
}

.ks-stage {
    position: relative;
    height: 520px;
    border-radius: 28px;
    overflow: hidden;
    background: #101820;
    perspective: 1200px;
}

.ks-stage-room {
    position: absolute;
    inset: 7% 7% 18%;
    border-radius: 18px;
    background-size: cover;
    background-position: center;
    transform-style: preserve-3d;
    transition: transform 0.35s ease, filter 0.35s ease;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45);
}

.ks-stage-room.is-walking {
    transform: scale(1.18) translateZ(40px);
    filter: brightness(1.15);
}

.ks-stage-floor {
    position: absolute;
    left: 10%;
    right: 10%;
    bottom: 0;
    height: 18%;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.2), transparent);
    transform: rotateX(62deg);
    transform-origin: top;
}

.ks-walk {
    position: absolute;
    bottom: 18px;
    z-index: 2;
}

.ks-walk-prev { left: 18px; width: auto; padding: 0 14px; }
.ks-walk-next { right: 18px; width: auto; padding: 0 14px; background: #1d6fe8; color: #fff; }

.ks-room-label {
    position: absolute;
    left: 50%;
    bottom: 22px;
    transform: translateX(-50%);
    margin: 0;
    color: #fff;
    font-size: 13px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    pointer-events: none;
    z-index: 2;
}

.ks-tour-path {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 14px 0;
}

.ks-tour-path button {
    border: 0;
    background: transparent;
    padding: 0;
    min-width: 92px;
    color: #6e6e73;
    font-size: 11px;
}

.ks-tour-path img {
    width: 92px;
    height: 64px;
    object-fit: cover;
    border-radius: 12px;
    display: block;
    opacity: 0.7;
}

.ks-tour-path button.is-on img {
    opacity: 1;
    outline: 2px solid #1d6fe8;
}

.ks-film iframe,
.ks-film video {
    width: 100%;
    height: 420px;
    border: 0;
    border-radius: 24px;
    background: #000;
}

.ks-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-top: 16px;
}

.ks-gallery img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-radius: 16px;
    display: block;
}

.ks-gallery figcaption {
    font-size: 12px;
    color: #6e6e73;
    margin-top: 6px;
}

.ks-book-panel {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 24px;
    padding: 22px;
}

.ks-book-panel form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.ks-book-panel label {
    display: grid;
    gap: 6px;
    font-size: 12px;
    color: #6e6e73;
}

.ks-book-panel label:nth-child(6),
.ks-book-panel button {
    grid-column: 1 / -1;
}

.ks-book-panel input,
.ks-book-panel textarea {
    width: 100%;
    box-sizing: border-box;
    border: 0;
    background: #f5f5f7;
    border-radius: 12px;
    padding: 10px 12px;
    font: inherit;
    color: #1d1d1f;
}

.ks-note {
    background: rgba(29, 111, 232, 0.1);
    color: #1d1d1f;
    border-radius: 12px;
    padding: 10px 12px;
}

@media (max-width: 767.98px) {
    .ks-gallery,
    .ks-book-panel,
    .ks-book-panel form {
        grid-template-columns: 1fr;
    }

    .ks-stage {
        height: 380px;
    }

    .ks-film iframe,
    .ks-film video {
        height: 220px;
    }
}

.ks-courier {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 0;
    overflow: hidden;
}

.ks-courier img,
.ks-courier-detail > img {
    width: 100%;
    height: 210px;
    object-fit: cover;
    object-position: center top;
    display: block;
}

.ks-courier-body {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1 1 auto;
    padding: 16px;
}

.ks-courier-body h3 { margin: 0; }
.ks-courier-phone { margin: 0; font-weight: 700; letter-spacing: 0.02em; }
.ks-courier .ks-btn { margin-top: auto; text-align: center; }

.ks-courier-detail {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 18px;
    align-items: start;
}

.ks-courier-detail > img {
    height: 420px;
    border-radius: 28px;
}

.ks-courier-panel { padding: 22px; }
.ks-courier-panel h2 { margin: 8px 0; }

.ks-fields {
    display: grid;
    gap: 12px;
    margin-top: 16px;
}

.ks-fields label {
    display: grid;
    gap: 6px;
    font-size: 13px;
    font-weight: 650;
    color: #64748b;
}

.ks-fields input,
.ks-fields textarea,
.ks-fields select {
    width: 100%;
    border: 0;
    border-radius: 18px;
    padding: 14px 16px;
    background: linear-gradient(180deg, #f8fbff, #eef3fb);
    box-shadow: inset 0 1px 0 #fff, 0 10px 24px rgba(15, 23, 42, 0.06);
    font: inherit;
    color: #0f172a;
}

.ks-fields textarea { min-height: 96px; resize: vertical; }

@media (max-width: 800px) {
    .ks-courier-detail { grid-template-columns: 1fr; }
    .ks-courier-detail > img { height: 260px; }
}

body.ks-market {
    max-width: 100%;
}

body.ks-market img,
body.ks-market video,
body.ks-market iframe {
    max-width: 100%;
}

@media (max-width: 991.98px) {
    body.ks-market .ks-tabbar {
        left: 8px;
        right: 8px;
        bottom: max(8px, env(safe-area-inset-bottom));
        width: auto;
        max-width: calc(100% - 16px);
        box-sizing: border-box;
        padding: 6px 2px;
        gap: 0;
    }

    body.ks-market .ks-tabbar a,
    body.ks-market .ks-tabbar button {
        font-size: clamp(8px, 2.4vw, 11px);
        padding: 6px 0;
    }

    .ks-wrap {
        width: auto;
        max-width: calc(100% - 20px);
    }

    body.ks-market .ks-manage {
        box-sizing: border-box;
        width: min(1120px, calc(100% - 20px));
        max-width: calc(100% - 20px);
        margin-left: auto;
        margin-right: auto;
    }

    .ks-footer {
        flex-direction: column;
        padding: 20px 12px 108px;
    }

    .ks-currency select {
        max-width: 100%;
    }
}

@media (max-width: 380px) {
    .ks-nav {
        gap: 6px;
        padding: 6px;
    }

    .ks-brand img {
        height: 30px;
        max-width: 32vw;
    }

    .ks-market-switch {
        gap: 4px;
    }

    .ks-market-switch a {
        padding: 6px 8px;
        font-size: 12px;
    }

    .ks-menu-btn {
        width: 38px;
        height: 38px;
        flex-basis: 38px;
    }

    .ks-search {
        padding-right: 60px;
    }
}
