/* Project Detail Scoped Styles - 5-Section Architecture & Mobile Responsive */
.khl-project-detail {
    --khl-brand-primary: #f97316;
    --khl-brand-primary-dark: #78350f;
    --khl-brand-surface-dark: #1c3344;
    --khl-brand-surface-deep: #0f172a;
    --khl-brand-on-dark-accent: #fdba74;
    --khl-brand-primary-hover: #ea580c;
    --khl-brand-navy: #1c3344;
    --khl-brand-dark: #0f172a;
    --khl-brand-slate: #475569;
    --khl-brand-bg: #f8fafc;
    --khl-brand-border: #e2e8f0;
    --khl-brand-radius: 14px;
    --khl-brand-container: 1300px;

    font-family: 'Mulish', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #1e293b;
    background: #f8fafc;
    padding-bottom: 60px;
    overflow-x: hidden;
}

.khl-sales-sheet {
    display: grid;
    gap: 18px;
}

.khl-sales-sheet__tabs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 8px 0;
}

.khl-sales-sheet__tab {
    min-height: 38px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    color: #334155;
    border-radius: 6px;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
}

.khl-sales-sheet__tab.active {
    background: #334155;
    color: #ffffff;
    border-color: #334155;
}

.khl-sales-sheet__pane {
    display: none;
}

.khl-sales-sheet__pane.active {
    display: block;
}

.khl-sales-sheet__head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    margin-bottom: 10px;
}

.khl-sales-sheet__head h3 {
    margin: 0;
    color: #0f172a;
    font-size: 18px;
    font-weight: 800;
}

.khl-sales-sheet__head span {
    color: #64748b;
    font-size: 13px;
    font-weight: 700;
}

.khl-sales-sheet__actions { display: flex; align-items: center; gap: 10px; }
.khl-sales-sheet__fullscreen { min-height: 38px; padding: 7px 10px; border: 1px solid #b9d9f7; border-radius: 8px; background: #fff; color: #0756a3; font-weight: 700; cursor: pointer; }
.khl-sales-sheet__pane:fullscreen { padding: 20px; overflow: auto; background: #f4f8fc; }

.khl-sales-sheet__scroll {
    overflow: auto;
    max-height: 72vh;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #fff;
}

@media (max-width: 640px) { .khl-sales-sheet__head { gap: 10px; align-items: flex-start; flex-direction: column; } }

.khl-sales-sheet__table {
    min-width: 900px;
    border-collapse: collapse;
    width: 100%;
    font-size: 12px;
}

.khl-sales-sheet__table td {
    border: 1px solid #94a3b8;
    padding: 5px 8px;
    text-align: center;
    white-space: nowrap;
}

.khl-sales-sheet__table tr:first-child td,
.khl-sales-sheet__table tr:nth-child(2) td {
    background: #bbf7d0;
    font-weight: 800;
}

.khl-stock-matrix {
    display: grid;
    gap: 12px;
}

.khl-stock-matrix__toolbar {
    display: grid;
    grid-template-columns: repeat(5, minmax(128px, 1fr)) auto;
    gap: 8px;
    align-items: end;
    padding: 10px;
    border: 1px solid #d7e3f0;
    border-radius: 14px;
    background: linear-gradient(135deg, #ffffff, #eaf4ff);
    box-shadow: 0 12px 32px rgba(6, 43, 91, .06);
}

.khl-stock-matrix__field {
    display: grid;
    gap: 6px;
    margin: 0;
}

.khl-stock-matrix__field span {
    color: #10233d;
    font-size: 12px;
    font-weight: 800;
}

.khl-stock-matrix__field input,
.khl-stock-matrix__field select {
    width: 100%;
    min-height: 36px;
    border: 1px solid #b9d9f7;
    border-radius: 9px;
    background: #fff;
    color: #10233d;
    font-size: 12px;
    font-weight: 650;
    padding: 7px 9px;
    outline: none;
}

.khl-stock-matrix__field input:focus,
.khl-stock-matrix__field select:focus {
    border-color: #0b74d1;
    box-shadow: 0 0 0 3px rgba(11, 116, 209, .12);
}

.khl-stock-matrix__reset {
    min-height: 36px;
    padding: 7px 12px;
    border: 1px solid #b9d9f7;
    border-radius: 9px;
    color: #0756a3;
    background: #fff;
    font-weight: 800;
    cursor: pointer;
}

.khl-stock-matrix__summary {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border: 1px solid #b9d9f7;
    border-radius: 999px;
    background: #eaf4ff;
    color: #0756a3;
    font-size: 12px;
    font-weight: 800;
}

.khl-stock-matrix__body {
    display: grid;
    gap: 14px;
}

.khl-stock-matrix__tower {
    overflow: hidden;
    border: 1px solid #d7e3f0;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(6, 43, 91, .07);
}

.khl-stock-matrix__tower-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    padding: 10px 12px;
    border-bottom: 1px solid #d7e3f0;
    background: linear-gradient(135deg, #062b5b, #0756a3);
}

.khl-stock-matrix__tower-head h3 {
    margin: 0;
    color: #fff;
    font-size: 14px;
    font-weight: 900;
}

.khl-stock-matrix__tower-head span {
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .15);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
}

.khl-stock-matrix__scroll {
    overflow: auto;
    max-height: 72vh;
    scrollbar-width: thin;
}

.khl-stock-matrix__table {
    width: 100%;
    min-width: 680px;
    border-collapse: separate;
    border-spacing: 0;
    table-layout: fixed;
}

.khl-stock-matrix__table th {
    position: sticky;
    top: 0;
    z-index: 3;
    width: 74px;
    padding: 7px 6px;
    border-right: 1px solid #d7e3f0;
    border-bottom: 1px solid #d7e3f0;
    background: #f4f8fc;
    color: #10233d;
    font-size: 11px;
    font-weight: 900;
    text-align: center;
    white-space: nowrap;
}

.khl-stock-matrix__table tbody th {
    left: 0;
    z-index: 2;
    width: 58px;
    min-width: 58px;
    max-width: 58px;
    background: #eaf4ff;
    color: #0756a3;
}

.khl-stock-matrix__cell {
    width: 74px;
    min-width: 74px;
    padding: 3px;
    border-right: 1px solid #d7e3f0;
    border-bottom: 1px solid #d7e3f0;
    background: #fff;
    text-align: center;
}

.khl-stock-matrix__cell.is-empty {
    background: repeating-linear-gradient(135deg, #f4f8fc, #f4f8fc 8px, #eef5fb 8px, #eef5fb 16px);
}

.khl-stock-matrix__unit {
    display: grid;
    width: 100%;
    min-height: 58px;
    gap: 2px;
    align-content: center;
    padding: 6px 5px;
    border: 1px solid #b9d9f7;
    border-radius: 9px;
    background: #fff;
    color: #10233d;
    cursor: pointer;
    text-align: center;
    transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}

.khl-stock-matrix__unit:hover {
    transform: translateY(-1px);
    border-color: #0b74d1;
    box-shadow: 0 10px 24px rgba(11, 116, 209, .14);
}

.khl-stock-matrix__unit strong {
    color: #062b5b;
    font-size: 11px;
    font-weight: 900;
}

.khl-stock-matrix__unit span {
    color: #0756a3;
    font-size: 10px;
    font-weight: 850;
}

.khl-stock-matrix__unit em {
    color: #5f738b;
    font-size: 9px;
    font-style: normal;
    font-weight: 800;
}

.khl-stock-matrix__cell.is-available .khl-stock-matrix__unit {
    background: #f8fffb;
    border-color: #bbf7d0;
}

.khl-stock-matrix__cell.is-locked .khl-stock-matrix__unit {
    background: #fff7ed;
    border-color: #fed7aa;
}

.khl-stock-matrix__cell.is-confirmed .khl-stock-matrix__unit {
    background: #f1f5f9;
    border-color: #cbd5e1;
    opacity: .82;
}

@media (max-width: 1100px) {
    .khl-stock-matrix__toolbar {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .khl-stock-matrix__reset {
        grid-column: 1 / -1;
    }
}

@media (max-width: 640px) {
    .khl-stock-matrix__toolbar {
        grid-template-columns: 1fr;
        gap: 7px;
        padding: 9px;
    }

    .khl-stock-matrix__tower-head {
        align-items: flex-start;
        flex-direction: column;
        gap: 6px;
    }

    .khl-stock-matrix__table {
        min-width: 560px;
    }

    .khl-stock-matrix__scroll {
        max-height: 66vh;
    }

    .khl-stock-matrix__cell {
        width: 62px;
        min-width: 62px;
    }

    .khl-stock-matrix__table th {
        width: 62px;
        padding: 6px 4px;
    }

    .khl-stock-matrix__table tbody th {
        width: 46px;
        min-width: 46px;
        max-width: 46px;
    }

    .khl-stock-matrix__unit {
        min-height: 52px;
        border-radius: 8px;
    }

    .khl-stock-matrix__unit em {
        display: none;
    }
}

.khl-sales-sheet-preview {
    display: grid;
    gap: 12px;
    margin-top: 18px;
    padding: 14px;
    border: 1px solid #d7e3f0;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(6, 43, 91, .06);
}

.khl-sales-sheet-preview__head {
    display: flex;
    gap: 10px;
    align-items: flex-end;
    justify-content: space-between;
}

.khl-sales-sheet-preview__head h3 {
    margin: 0;
    color: #062b5b;
    font-size: 15px;
    font-weight: 900;
}

.khl-sales-sheet-preview__head p {
    margin: 0;
    color: #5f738b;
    font-size: 12px;
    line-height: 1.45;
}

@media (max-width: 640px) {
    .khl-sales-sheet-preview {
        padding: 10px;
    }

    .khl-sales-sheet-preview__head {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* Container Safe Gutters */
.khl-container {
    max-width: var(--khl-brand-container);
    margin: 0 auto;
    padding: 0 24px;
    box-sizing: border-box;
}

/* Tab Pane Visibility (Single Pane SPA Behavior) */
.khl-tab-pane {
    display: none;
    width: 100%;
    box-sizing: border-box;
    animation: khlFadeIn 0.2s ease;
}
.khl-tab-pane.active {
    display: block;
}
@keyframes khlFadeIn {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Inner Pill Pane Visibility (For Sub-tabs inside Master Plan) */
.khl-pill-pane {
    display: none;
    width: 100%;
    box-sizing: border-box;
}
.khl-pill-pane.active {
    display: block;
}

/* Breadcrumb */
.khl-breadcrumb-wrapper {
    background: #fff;
    border-bottom: 1px solid var(--khl-brand-border);
    padding: 12px 0;
    font-size: 13px;
}
.khl-breadcrumb ol {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}
.khl-breadcrumb li {
    display: inline-flex;
    align-items: center;
    color: #64748b;
}
.khl-breadcrumb li:not(:last-child)::after {
    content: "/";
    margin-left: 8px;
    color: #cbd5e1;
}
.khl-breadcrumb a {
    color: #64748b;
    text-decoration: none;
    transition: color 0.15s;
}
.khl-breadcrumb a:hover { color: var(--khl-brand-primary); }
.khl-breadcrumb .active { color: #0f172a; font-weight: 600; }

/* Header */
.khl-project-header {
    background: #fff;
    padding: 20px 0;
    border-bottom: 1px solid var(--khl-brand-border);
}
.khl-header-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
}
.khl-project-title {
    font-size: 26px;
    font-weight: 800;
    color: #0f172a;
    margin: 8px 0 4px 0;
}
.khl-project-subtitle {
    font-size: 14px;
    color: #64748b;
    margin: 0;
    max-width: 800px;
    line-height: 1.6;
}
.khl-badge {
    display: inline-block;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 700;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.badge-emerald {
    background: #dcfce7;
    color: #15803d;
}
.badge-cobalt {
    background: #e0f2fe;
    color: #0369a1;
}
.khl-btn-share {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    color: #334155;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
}
.khl-btn-share:hover {
    background: #e2e8f0;
    color: #0f172a;
}

/* 11-Tab Sticky Navigation Bar */
.khl-sticky-nav-wrapper {
    position: sticky;
    top: 0;
    z-index: 99;
    background: #ffffff;
    border-bottom: 1px solid var(--khl-brand-border, #e2e8f0);
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
    margin-bottom: 24px;
}
.khl-sticky-nav-wrapper > .khl-container {
    max-width: none;
    width: 100%;
    padding: 0 16px;
}
.khl-sticky-nav {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 6px 0;
    -webkit-overflow-scrolling: touch;
}
.khl-sticky-nav::-webkit-scrollbar {
    display: none;
}
.khl-nav-list {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0 18px 0 0;
    white-space: nowrap;
    width: max-content;
    min-width: 100%;
}
.khl-nav-item {
    display: inline-flex;
    align-items: center;
}
.khl-nav-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 10px 10px;
    color: #475569;
    text-decoration: none;
    font-size: 13.5px;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.15s ease;
    cursor: pointer;
}
.khl-nav-link:hover {
    color: #0f172a;
    background: #f1f5f9;
}
.khl-nav-link.active {
    color: #0284c7;
    background: #e0f2fe;
    font-weight: 700;
}
.khl-nav-link.locked {
    color: #94a3b8;
}
.khl-tab-svg-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}
.khl-icon-lock-svg {
    width: 13px;
    height: 13px;
    fill: #94a3b8;
    margin-left: 2px;
}
.khl-nav-separator {
    color: #cbd5e1;
    margin: 0 2px;
    font-size: 13px;
    user-select: none;
}

@media (min-width: 1280px) {
    .khl-nav-list {
        margin: 0 auto;
        min-width: 0;
    }
}

@media (max-width: 1024px) {
    .khl-sticky-nav-wrapper > .khl-container {
        padding: 0 12px;
    }

    .khl-nav-link {
        padding: 10px 9px;
        font-size: 13px;
    }
}

/* Section Title Highlight Styling (Matching Image 5) */
.khl-title-highlight {
    position: relative;
    color: #2e438f;
    font-size: 24px;
    font-weight: 800;
    margin: 0 0 14px 0;
    display: inline-block;
}
.khl-title-highlight::after {
    content: '';
    display: block;
    width: 48px;
    height: 4px;
    background: var(--khl-brand-primary, #f97316);
    border-radius: 2px;
    margin-top: 6px;
}
.khl-center-header {
    text-align: center;
    margin-bottom: 28px;
}
.khl-center-header .khl-title-highlight::after {
    margin: 6px auto 0 auto;
}
.khl-center-header p {
    font-size: 14px;
    color: #64748b;
    margin: 4px 0 0 0;
}

/* 3-Col Icon Box Cards (Matching Image 1) */
.khl-iconbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
    margin-bottom: 28px;
}
.khl-iconbox-card {
    background: #ffffff;
    border: 1px solid #f1f5f9;
    border-radius: 16px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.04);
    transition: transform 0.2s, box-shadow 0.2s;
}
.khl-iconbox-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}
.khl-iconbox-icon-circle {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, var(--khl-brand-primary, #d97706) 0%, var(--khl-brand-primary-dark, #78350f) 100%);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}
.khl-iconbox-label {
    display: block;
    font-size: 13px;
    color: #475569;
    font-weight: 500;
}
.khl-iconbox-text {
    display: block;
    font-size: 22px;
    font-weight: 800;
    color: #1e293b;
}

/* Hero Banner Swiper Slider */
.khl-hero-slider-section {
    margin-bottom: 24px;
}
.khl-hero-swiper {
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 21 / 9;
    max-height: 480px;
    background: #0f172a;
}
.khl-hero-swiper .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Dark Navy Card Overview (Matching Image 2) */
.khl-card-navy {
    background: linear-gradient(135deg, var(--khl-brand-surface-dark, #1c3344) 0%, var(--khl-brand-surface-deep, #0f172a) 100%);
    color: #ffffff;
    border-radius: 16px;
    padding: 36px;
    margin-bottom: 32px;
    box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.25);
    box-sizing: border-box;
}
.khl-navy-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    align-items: center;
}
.khl-navy-info .khl-title-highlight {
    color: var(--khl-brand-on-dark-accent, #fdba74);
}
.khl-navy-info .khl-overview-list li {
    color: #e2e8f0;
}
.khl-navy-info .khl-overview-list strong {
    color: #ffffff;
}
.khl-overview-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.khl-overview-list li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 10px;
    font-size: 14.5px;
    line-height: 1.6;
    color: #e2e8f0;
}
.khl-overview-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.72em;
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: var(--khl-brand-on-dark-accent, #fdba74);
}
.khl-navy-img {
    width: 100%;
    border-radius: 14px;
    object-fit: cover;
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

/* Light White Sections */
.khl-project-section, .khl-section-white {
    background: #fff;
    border: 1px solid var(--khl-brand-border);
    border-radius: var(--khl-brand-radius);
    padding: 32px;
    margin-bottom: 32px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.02);
    box-sizing: border-box;
}

/* Pill Tabs (Section 2 Floorplan) */
.khl-pill-tabs {
    display: flex;
    justify-content: center;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 10px;
    margin-bottom: 20px;
    -webkit-overflow-scrolling: touch;
}
.khl-pill-tab {
    background: #f1f5f9;
    border: none;
    color: #475569;
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.15s;
    min-height: 40px;
    display: inline-flex;
    align-items: center;
}
.khl-pill-tab.active {
    background: var(--khl-brand-primary);
    color: #fff;
}
.khl-plan-wrapper {
    position: relative;
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    background: #0f172a;
}
.khl-plan-img,
.khl-plan-img-wrapper img {
    width: 100%;
    display: block;
    height: auto;
    border-radius: 12px;
    border: 1px solid var(--khl-brand-border);
}

/* Interactive Pin Markers Overlay */
.khl-plan-marker {
    transform: translate(-50%, -50%);
    cursor: pointer;
    z-index: 10;
}
.khl-marker-dot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: block;
    position: relative;
    border: 3px solid #ffffff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    transition: transform 0.2s;
}
.khl-plan-marker.status-available .khl-marker-dot { background: #10b981; }
.khl-plan-marker.status-locked .khl-marker-dot { background: #f59e0b; }
.khl-plan-marker.status-sold .khl-marker-dot { background: #ef4444; }

.khl-marker-dot::after {
    content: '';
    position: absolute;
    top: -4px; left: -4px; right: -4px; bottom: -4px;
    border-radius: 50%;
    border: 2px solid currentColor;
    animation: markerPulse 2s infinite;
    opacity: 0.7;
}
.khl-plan-marker.status-available .khl-marker-dot::after { color: #10b981; }
.khl-plan-marker.status-locked .khl-marker-dot::after { color: #f59e0b; }
.khl-plan-marker.status-sold .khl-marker-dot::after { color: #ef4444; }

@keyframes markerPulse {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(1.8); opacity: 0; }
}

.khl-plan-marker:hover {
    z-index: 20;
}
.khl-plan-marker:hover .khl-marker-dot {
    transform: scale(1.25);
}

/* Tooltip Popup Card */
.khl-marker-tooltip {
    position: absolute;
    bottom: 130%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    width: 210px;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 12px;
    color: #fff;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    pointer-events: none;
}
.khl-plan-marker:hover .khl-marker-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}
.khl-tooltip-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 6px;
    margin-bottom: 6px;
}
.khl-tooltip-code {
    font-weight: 800;
    font-size: 14px;
    color: #38bdf8;
}
.khl-tooltip-status {
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 10px;
    text-transform: uppercase;
}
.khl-tooltip-status.status-available { background: rgba(16, 185, 129, 0.2); color: #34d399; }
.khl-tooltip-status.status-locked { background: rgba(245, 158, 11, 0.2); color: #fbbf24; }
.khl-tooltip-status.status-sold { background: rgba(239, 68, 68, 0.2); color: #f87171; }
.khl-tooltip-title {
    font-size: 12px;
    font-weight: 600;
    color: #f1f5f9;
    margin-bottom: 6px;
}
.khl-tooltip-row {
    font-size: 12px;
    color: #cbd5e1;
    display: flex;
    justify-content: space-between;
    margin-top: 2px;
}

/* Unit Inventory Table */
.khl-inventory-workspace {
    display: grid;
    gap: 14px;
}

.khl-lowrise-inventory-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
}

.khl-lowrise-inventory-sort {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #8290a5;
    font-size: 12px;
    font-weight: 700;
}

.khl-lowrise-inventory-sort select,
.khl-lowrise-filter-toggle {
    min-height: 42px;
    border: 1px solid #d8e2ef;
    border-radius: 8px;
    background: #fff;
    color: #1f3554;
    font: inherit;
    font-weight: 750;
}

.khl-lowrise-filter-count {
    display: inline-grid;
    width: 17px;
    height: 17px;
    place-items: center;
    border-radius: 999px;
    background: #fff0f2;
    color: #d9425d;
    font-size: 10px;
    font-weight: 850;
}

.khl-lowrise-inventory-sort select {
    min-width: 158px;
    padding: 0 34px 0 13px;
}

.khl-lowrise-filter-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 0 18px;
    cursor: pointer;
}

.khl-lowrise-filter-toggle:hover,
.khl-lowrise-filter-toggle[aria-expanded="true"] {
    border-color: #94bcea;
    background: #eef6ff;
}

.khl-lowrise-inventory-filter {
    margin: 0;
    padding: 16px;
    border: 1px solid #dce7f2;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 12px 26px rgba(16, 43, 83, .06);
}


/* Shared filter controls: high-rise data visibility and touch targets. */
#khangland-unit-inventory[data-project-type="high_rise"] [hidden] {
    display: none;
}

#khangland-unit-inventory[data-project-type="high_rise"] .khl-lowrise-filter-field > input,
#khangland-unit-inventory[data-project-type="high_rise"] .khl-lowrise-filter-field > summary > span:last-child,
#khangland-unit-inventory[data-project-type="high_rise"] .khl-lowrise-option-list label,
#khangland-unit-inventory[data-project-type="high_rise"] .khl-lowrise-filter-tag {
    min-height: 44px;
}


#khangland-unit-inventory[data-project-type="high_rise"] .khl-lowrise-filter-grid {
    grid-template-columns: minmax(0, 1fr);
}

@media (max-width: 639px) {
    #khangland-unit-inventory[data-project-type="high_rise"] .khl-lowrise-multiselect-panel,
    #khangland-unit-inventory[data-project-type="high_rise"] .khl-lowrise-range-panel {
        position: static;
        box-sizing: border-box;
        width: 100%;
        min-width: 0;
        margin-top: 8px;
    }

    #khangland-unit-inventory[data-project-type="high_rise"] .khl-lowrise-inventory-actions {
        flex-direction: column;
        align-items: stretch;
    }
}

@media (min-width: 640px) {
    #khangland-unit-inventory[data-project-type="high_rise"] .khl-lowrise-filter-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    #khangland-unit-inventory[data-project-type="high_rise"] .khl-lowrise-filter-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}

.khl-lowrise-filter-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 15px 10px;
}

.khl-lowrise-filter-field {
    display: grid;
    min-width: 0;
    gap: 7px;
    margin: 0;
    padding: 0;
    border: 0;
}

.khl-lowrise-filter-field > span,
.khl-lowrise-filter-field legend {
    margin: 0;
    padding: 0;
    color: #526989;
    font-size: 11px;
    font-weight: 850;
    text-transform: uppercase;
}

.khl-lowrise-multiselect {
    position: relative;
}

.khl-lowrise-range {
    position: relative;
}

.khl-lowrise-multiselect > summary {
    display: grid;
    gap: 7px;
    cursor: pointer;
    list-style: none;
}

.khl-lowrise-range > summary {
    display: grid;
    gap: 7px;
    cursor: pointer;
    list-style: none;
}

.khl-lowrise-multiselect > summary::-webkit-details-marker { display: none; }
.khl-lowrise-range > summary::-webkit-details-marker { display: none; }

.khl-lowrise-multiselect > summary > span:first-child {
    color: #526989;
    font-size: 11px;
    font-weight: 850;
    text-transform: uppercase;
}

.khl-lowrise-range > summary > span:first-child {
    color: #526989;
    font-size: 11px;
    font-weight: 850;
    text-transform: uppercase;
}

.khl-lowrise-multiselect > summary > span:last-child {
    display: flex;
    min-height: 40px;
    align-items: center;
    box-sizing: border-box;
    border: 1px solid #d7e2ee;
    border-radius: 7px;
    padding: 0 33px 0 11px;
    color: #8b9bb0;
    font-size: 13px;
    font-weight: 600;
    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='%23788ba4' 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 10px center;
}

.khl-lowrise-range > summary > span:last-child {
    display: flex;
    min-height: 40px;
    align-items: center;
    box-sizing: border-box;
    border: 1px solid #d7e2ee;
    border-radius: 7px;
    padding: 0 33px 0 11px;
    color: #8b9bb0;
    font-size: 13px;
    font-weight: 600;
    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='%23788ba4' 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 10px center;
}

.khl-lowrise-multiselect[open] > summary > span:last-child {
    border-color: #78abe5;
    box-shadow: 0 0 0 3px rgba(25, 118, 230, .11);
}

.khl-lowrise-range[open] > summary > span:last-child {
    border-color: #78abe5;
    box-shadow: 0 0 0 3px rgba(25, 118, 230, .11);
}

.khl-lowrise-multiselect-panel {
    position: absolute;
    z-index: 8;
    top: calc(100% - 1px);
    right: 0;
    left: 0;
    min-width: 220px;
    padding: 10px;
    border: 1px solid #c8d9ed;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 14px 28px rgba(16, 43, 83, .16);
}

.khl-lowrise-range-panel {
    position: absolute;
    z-index: 8;
    top: calc(100% - 1px);
    right: 0;
    left: 0;
    min-width: 260px;
    padding: 13px;
    border: 1px solid #c8d9ed;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 14px 28px rgba(16, 43, 83, .16);
}

.khl-lowrise-multiselect-title {
    display: block;
    margin-bottom: 7px;
    color: #526989;
    font-size: 11px;
    font-weight: 850;
    text-transform: uppercase;
}

.khl-lowrise-filter-field > input {
    box-sizing: border-box;
    width: 100%;
    min-height: 40px;
    border: 1px solid #d7e2ee;
    border-radius: 7px;
    padding: 0 11px;
    color: #243b5a;
    font: inherit;
}

.khl-lowrise-option-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 5px 8px;
    max-height: 170px;
    overflow: auto;
    padding: 8px;
    border: 1px solid #d7e2ee;
    border-radius: 7px;
    background: #fff;
}

.khl-lowrise-option-list label {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    color: #3f5878;
    font-size: 12px;
    line-height: 1.3;
}

.khl-lowrise-option-list input {
    flex: 0 0 auto;
    accent-color: #1779dc;
}

.khl-lowrise-filter-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.khl-lowrise-filter-split strong {
    display: block;
    margin-bottom: 5px;
    color: #6a7e99;
    font-size: 11px;
}

.khl-lowrise-filter-split .khl-lowrise-option-list {
    grid-template-columns: 1fr;
}

.khl-lowrise-empty-option {
    color: #8c9caf;
    font-size: 12px;
}

.khl-lowrise-range-values {
    display: flex;
    justify-content: space-between;
    gap: 8px;
}

.khl-lowrise-range output {
    overflow: hidden;
    color: #34516f;
    font-size: 12px;
    font-weight: 750;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.khl-lowrise-range input[type="range"] {
    width: 100%;
    height: 4px;
    margin: 1px 0;
    accent-color: #1976e6;
}

.khl-lowrise-range-inputs {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 20px minmax(0, 1fr);
    align-items: end;
    gap: 7px;
    margin-bottom: 12px;
}

.khl-lowrise-range-inputs > span {
    padding-bottom: 11px;
    color: #a6b3c5;
    text-align: center;
}

.khl-lowrise-range-inputs label {
    display: grid;
    gap: 4px;
    color: #778aa4;
    font-size: 11px;
    font-weight: 750;
}

.khl-lowrise-range-inputs input {
    box-sizing: border-box;
    width: 100%;
    min-height: 36px;
    border: 1px solid #d7e2ee;
    border-radius: 7px;
    padding: 0 9px;
    color: #243b5a;
    font: inherit;
    font-weight: 650;
}

.khl-lowrise-price-presets {
    display: grid;
    gap: 1px;
    margin: 13px -13px -13px;
    padding-top: 10px;
    border-top: 1px solid #edf2f7;
}

.khl-lowrise-price-presets > span {
    padding: 0 13px 5px;
    color: #96a5b9;
    font-size: 10px;
    font-weight: 850;
    text-transform: uppercase;
}

.khl-lowrise-price-presets button {
    min-height: 29px;
    border: 0;
    padding: 0 13px;
    color: #354f70;
    background: transparent;
    text-align: left;
    font: inherit;
    font-size: 13px;
    cursor: pointer;
}

.khl-lowrise-price-presets button:hover,
.khl-lowrise-price-presets button:focus-visible {
    outline: 0;
    color: #0a5ab7;
    background: #eef6ff;
}

.khl-lowrise-range-footer {
    display: flex;
    justify-content: flex-end;
    margin: 12px -13px -13px;
    padding: 10px 13px;
    border-top: 1px solid #edf2f7;
}

.khl-lowrise-range-footer button {
    min-height: 30px;
    border: 0;
    border-radius: 7px;
    padding: 0 11px;
    color: #476587;
    background: #f1f5f9;
    font: inherit;
    font-size: 11px;
    font-weight: 750;
    cursor: pointer;
}

.khl-lowrise-filter-submit {
    display: flex;
    justify-content: center;
    margin-top: 18px;
}

.khl-lowrise-filter-submit button {
    min-height: 42px;
    border: 0;
    border-radius: 8px;
    padding: 0 18px;
    background: #0b2e59;
    color: #fff;
    font-weight: 800;
    cursor: pointer;
}

.khl-lowrise-filter-submit button:hover { background: #0b5fad; }

.khl-lowrise-applied-filters {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px;
    min-height: 38px;
    color: #8290a5;
    font-size: 12px;
    font-weight: 750;
}

.khl-lowrise-filter-tags {
    display: flex;
    flex: 1 1 auto;
    flex-wrap: wrap;
    gap: 7px;
}

.khl-lowrise-filter-tag,
.khl-lowrise-applied-filters > button {
    min-height: 32px;
    border: 0;
    border-radius: 999px;
    padding: 0 11px;
    cursor: pointer;
    font: inherit;
    font-weight: 750;
}

.khl-lowrise-filter-tag {
    border: 1px solid #cbdff5;
    background: #fff;
    color: #2a5c93;
}

.khl-lowrise-applied-filters > button {
    background: #fff0f2;
    color: #e05468;
}

.khl-inventory-toolbar {
    display: grid;
    grid-template-columns: minmax(220px, 1.2fr) repeat(5, minmax(125px, .8fr)) auto;
    gap: 10px;
    align-items: end;
    padding: 12px;
    border: 1px solid #d7e3f0;
    border-radius: 14px;
    background: linear-gradient(135deg, #ffffff, #eaf4ff);
    box-shadow: 0 10px 26px rgba(6, 43, 91, .05);
}

.khl-inventory-filter {
    display: grid;
    gap: 6px;
    margin: 0;
}

.khl-inventory-filter span {
    color: #10233d;
    font-size: 12px;
    font-weight: 850;
}

.khl-inventory-filter input,
.khl-inventory-filter select {
    width: 100%;
    min-height: 38px;
    border: 1px solid #b9d9f7;
    border-radius: 9px;
    background: #fff;
    color: #10233d;
    font-size: 13px;
    font-weight: 650;
    padding: 8px 10px;
    outline: none;
}

.khl-inventory-filter input:focus,
.khl-inventory-filter select:focus {
    border-color: #0b74d1;
    box-shadow: 0 0 0 3px rgba(11, 116, 209, .12);
}

.khl-inventory-reset {
    min-height: 38px;
    padding: 8px 14px;
    border: 1px solid #b9d9f7;
    border-radius: 9px;
    color: #0756a3;
    background: #fff;
    font-weight: 850;
    cursor: pointer;
}

.khl-inventory-summary {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    min-height: 30px;
    padding: 6px 11px;
    border: 1px solid #b9d9f7;
    border-radius: 999px;
    background: #eaf4ff;
    color: #0756a3;
    font-size: 12px;
    font-weight: 850;
}

.khl-table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.inventory-table {
    width: 100%;
    min-width: 900px;
    border-collapse: separate;
    border-spacing: 0;
    background: #ffffff;
    border: 1px solid var(--khl-brand-border);
    border-radius: 14px;
    overflow: hidden;
}
.inventory-table th,
.inventory-table td {
    padding: 13px 14px;
    border-bottom: 1px solid var(--khl-brand-border);
    color: #334155;
    font-size: 13.5px;
    vertical-align: middle;
}
.inventory-table th {
    background: #f4f8fc;
    color: #0f172a;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.inventory-table tbody tr:last-child td {
    border-bottom: 0;
}
.khl-inventory-row:hover td {
    background: #f8fafc;
}
.khl-inventory-row.is-compare-selected td { background: #eff6ff; }
.khl-inventory-compare-cell { width: 76px; text-align: center; }
.khl-inventory-compare-toggle {
    width: 44px;
    height: 44px;
    display: inline-grid;
    place-items: center;
    cursor: pointer;
}
.khl-inventory-compare-toggle input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
}
.khl-inventory-compare-toggle > span[aria-hidden="true"] {
    width: 22px;
    height: 22px;
    border: 2px solid #94a3b8;
    border-radius: 7px;
    display: grid;
    place-items: center;
    background: #ffffff;
    transition: border-color 0.18s, background 0.18s, box-shadow 0.18s;
}
.khl-inventory-compare-toggle > span[aria-hidden="true"]::after {
    content: "";
    width: 9px;
    height: 5px;
    border-left: 2px solid #ffffff;
    border-bottom: 2px solid #ffffff;
    opacity: 0;
    transform: rotate(-45deg) translateY(-1px);
}
.khl-inventory-compare-toggle input:checked + span {
    border-color: #2563eb;
    background: #2563eb;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.14);
}
.khl-inventory-compare-toggle input:checked + span::after { opacity: 1; }
.khl-inventory-compare-toggle input:focus-visible + span {
    outline: 3px solid rgba(37, 99, 235, 0.28);
    outline-offset: 2px;
}
.khl-inventory-compare-bar {
    position: sticky;
    bottom: 16px;
    z-index: 12;
    min-height: 58px;
    margin: 16px auto 0;
    padding: 8px 10px 8px 18px;
    border: 1px solid rgba(37, 99, 235, 0.2);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    color: #0f172a;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.16);
    backdrop-filter: blur(10px);
}
.khl-inventory-compare-bar[hidden] { display: none; }
.khl-inventory-compare-bar > span { font-size: 14px; font-weight: 800; }
.khl-inventory-compare-action {
    min-height: 44px;
    padding: 0 18px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: linear-gradient(135deg, #2563eb, #0284c7);
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 8px 18px rgba(37, 99, 235, 0.24);
    transition: transform 0.18s, box-shadow 0.18s;
}
.khl-inventory-compare-action:hover {
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(37, 99, 235, 0.3);
}
.khl-inventory-empty {
    padding: 30px;
    color: #64748b;
    text-align: center;
    font-weight: 600;
}
.khl-inventory-code {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 4px 10px;
    border: 0;
    border-radius: 999px;
    background: #f1f5f9;
    color: #0f172a;
    font: inherit;
    font-size: 13px;
    font-weight: 900;
    line-height: 1.2;
    cursor: pointer;
}
.khl-inventory-code.is-exclusive {
    color: red;
    background-color: #ff00001a;
}
.khl-inventory-code.is-hidden-cross {
    color: #a77b00;
    background-color: #a77b001a;
}
.khl-inventory-code.is-transfer {
    color: #1e40af;
    background-color: #dbeafe;
}
.khl-inventory-code.is-transfer:hover {
    background-color: #bfdbfe;
}
.khl-inventory-code:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}
.khl-inventory-status {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 4px 9px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}
.khl-inventory-status.is-available {
    background: #dcfce7;
    color: #166534;
}
.khl-inventory-status.is-locked {
    background: #fef3c7;
    color: #92400e;
}
.khl-inventory-status.is-confirmed {
    background: #dbeafe;
    color: #1d4ed8;
}
.khl-inventory-status.is-sold {
    background: #e2e8f0;
    color: #475569;
}
.khl-inventory-status.is-contact {
    background: #f1f5f9;
    color: #475569;
}

/* Project Zones */
.khl-zones-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}
.khl-zone-card {
    overflow: hidden;
    border: 1px solid var(--khl-brand-border);
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.khl-zone-card:hover,
.khl-zone-card:focus-within {
    transform: translateY(-3px);
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.1);
}
.khl-zone-card-head {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 16px 18px 4px;
    color: #64748b;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}
.khl-zone-card-head .dashicons {
    width: 14px;
    height: 14px;
    font-size: 14px;
    color: #94a3b8;
}
.khl-zone-title {
    min-height: 20px;
    margin: 0;
    padding: 0 18px 14px;
    color: #001b44;
    font-size: 21px;
    font-weight: 900;
    line-height: 1.14;
    text-transform: uppercase;
}
.khl-zone-media {
    position: relative;
    overflow: hidden;
    background: #e2e8f0;
}
.khl-zone-img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9.5;
    object-fit: cover;
}
.khl-zone-detail-link {
position: absolute;
    inset: auto 80px 16px auto;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 30px;
    padding: 8px 13px;
    border-radius: 10px;
    background: rgba(15, 23, 42, 0.9);
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}
.khl-zone-detail-link .dashicons {
    width: 16px;
    height: 16px;
    font-size: 16px;
}
.khl-zone-card:hover .khl-zone-detail-link,
.khl-zone-card:focus-within .khl-zone-detail-link {
    opacity: 1;
    transform: translateY(0);
}
.khl-zone-stats {
    display: grid;
    gap: 10px;
    padding: 12px;
}
.khl-zone-stat {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 56px;
    padding: 10px 12px;
    border: 1px solid var(--khl-brand-border);
    border-radius: 12px;
    background: #f8fafc;
}
.khl-zone-stat-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: #f59e0b;
    color: #fff;
    font-size: 17px;
}
.khl-zone-stat:nth-child(2) .khl-zone-stat-icon {
    background: #10b981;
}
.khl-zone-stat-label {
    display: block;
    color: #64748b;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}
.khl-zone-stat strong {
    display: block;
    margin-top: 2px;
    color: #0f172a;
    font-size: 13.5px;
    line-height: 1.25;
}
@media (hover: none) {
    .khl-zone-detail-link {
        opacity: 1;
        transform: none;
    }
}

/* Zone Detail Template */
.khl-zone-switcher {
    margin-bottom: 26px;
}
.khl-zone-switcher-title {
    padding-left: 12px;
    border-left: 4px solid var(--khl-brand-primary);
    color: #0f172a;
    font-size: 14px;
    font-weight: 800;
    margin-bottom: 12px;
}
.khl-zone-switcher-list {
    display: flex;
    gap: 7px;
    flex-wrap: wrap;
}
.khl-zone-switcher-link {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 7px 11px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    background: #fff;
    color: #64748b;
    text-decoration: none;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}
.khl-zone-switcher-link.active {
    background: #737373;
    border-color: #737373;
    color: #fff;
}
.khl-zone-tabs {
    display: flex;
    justify-content: center;
    gap: 0;
    overflow-x: auto;
    margin-bottom: 22px;
    border-bottom: 1px solid #e5e7eb;
}
.khl-zone-tab {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 42px;
    border: 0;
    border-bottom: 2px solid transparent;
    background: transparent;
    color: #001b44;
    padding: 9px 12px;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
    cursor: pointer;
}
.khl-zone-tab .dashicons {
    width: 16px;
    height: 16px;
    font-size: 16px;
}
.khl-zone-tab.active {
    color: var(--khl-brand-primary);
    border-bottom-color: var(--khl-brand-primary);
}
.khl-zone-pane {
    display: none;
}
.khl-zone-pane.active {
    display: block;
}
.khl-zone-page-title {
    margin: 0 0 14px;
    color: #000;
    font-size: 26px;
    font-weight: 900;
    text-transform: uppercase;
}
.khl-zone-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 14px;
    margin-bottom: 34px;
}
.khl-zone-info-grid div {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 12px 0;
    border-bottom: 1px solid #e5e7eb;
    color: #111827;
    font-size: 14px;
}
.khl-zone-info-grid strong {
    color: #000;
    text-align: right;
}
.khl-zone-article {
    color: #111827;
    font-size: 15px;
    line-height: 1.75;
}
.khl-zone-article:empty::before {
    content: 'Nội dung đang được cập nhật.';
    color: #64748b;
    font-style: italic;
}
.khl-zone-article img {
    max-width: 100%;
    height: auto;
}
.khl-zone-floorplan-viewer {
    position: relative;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    background: #0f172a;
}
.khl-zone-floorplan-toolbar {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 3;
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}
.khl-zone-floorplan-toolbar button {
    min-width: 40px;
    min-height: 38px;
    border: 1px solid rgba(255,255,255,0.35);
    border-radius: 8px;
    background: rgba(15, 23, 42, 0.88);
    color: #fff;
    font-weight: 800;
    cursor: pointer;
}
.khl-zone-floorplan-stage {
    position: relative;
    overflow: auto;
    max-height: 76vh;
    min-height: 420px;
    cursor: grab;
    user-select: none;
    background: #020617;
}
.khl-zone-floorplan-stage.swiper {
    overflow: hidden;
}
.khl-zone-floorplan-stage.is-dragging {
    cursor: grabbing;
}
.khl-zone-floorplan-stage .khl-stage-img-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}
.khl-zone-floorplan-stage img {
    display: block;
    max-width: 100%;
    max-height: 74vh;
    width: auto;
    height: auto;
    object-fit: contain;
    margin: 0 auto;
    transform-origin: center center;
    transition: transform 0.16s ease;
}
.khl-zone-floorplan-stage .swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 74vh;
    max-height: 74vh;
    background: #020617;
    overflow: hidden;
}
.khl-zone-floorplan-stage .swiper-button-prev,
.khl-zone-floorplan-stage .swiper-button-next {
    width: 44px;
    height: 44px;
    background: rgba(15, 23, 42, 0.88);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    color: #fff;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
    transition: all 0.2s ease;
    z-index: 10;
}
.khl-zone-floorplan-stage .swiper-button-prev:after,
.khl-zone-floorplan-stage .swiper-button-next:after {
    font-size: 16px;
    font-weight: 900;
}
.khl-zone-floorplan-stage .swiper-button-prev:hover,
.khl-zone-floorplan-stage .swiper-button-next:hover {
    background: #0284c7;
    border-color: #38bdf8;
    color: #fff;
    transform: scale(1.08);
}
.khl-zone-floorplan-stage .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 0.6;
}
.khl-zone-floorplan-stage .swiper-pagination-bullet-active {
    width: 22px;
    border-radius: 6px;
    background: #38bdf8;
    opacity: 1;
}
.khl-zone-floorplan-thumbs-bar {
    display: flex;
    gap: 10px;
    padding: 10px 14px;
    background: #090f1f;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    overflow-x: auto;
    scrollbar-width: thin;
}
.khl-zone-fp-thumb-item {
    position: relative;
    flex: 0 0 76px;
    height: 52px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    background: #020617;
    overflow: hidden;
    cursor: pointer;
    opacity: 0.55;
    transition: all 0.2s ease;
    padding: 0;
}
.khl-zone-fp-thumb-item:hover,
.khl-zone-fp-thumb-item.active {
    opacity: 1;
    border-color: #38bdf8;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(56, 189, 248, 0.35);
}
.khl-zone-fp-thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.khl-zone-fp-thumb-item span {
    position: absolute;
    bottom: 2px;
    right: 3px;
    font-size: 9px;
    font-weight: 800;
    color: #fff;
    background: rgba(0, 0, 0, 0.75);
    padding: 1px 4px;
    border-radius: 3px;
    pointer-events: none;
}
.khl-zone-floorplan-viewer.is-fullscreen {
    position: fixed;
    inset: 0;
    z-index: 99999;
    border-radius: 0;
}
.khl-zone-floorplan-viewer.is-fullscreen .khl-zone-floorplan-stage,
.khl-zone-floorplan-viewer.is-fullscreen .khl-zone-floorplan-stage .swiper-slide {
    max-height: calc(100vh - 72px);
    height: calc(100vh - 72px);
}

/* ── Zone Multi-Floorplan Swiper Slider (5-6 Images) ── */
.khl-zone-floorplan-slider-box {
    background: #0f172a;
    border: 1px solid #1e293b;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    padding: 18px 20px 24px;
}
.khl-zone-floorplan-slider-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.khl-zone-floorplan-count-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    color: #38bdf8;
    background: rgba(56, 189, 248, 0.12);
    padding: 6px 14px;
    border-radius: 20px;
    border: 1px solid rgba(56, 189, 248, 0.25);
}
.khl-zone-floorplan-count-badge .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}
.khl-zone-floorplan-zoom-hint {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #94a3b8;
    font-weight: 500;
}
.khl-zone-floorplan-zoom-hint .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
    color: #38bdf8;
}
.khl-zone-floorplan-swiper {
    position: relative;
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    padding-bottom: 38px;
}
.khl-zone-floorplan-slide-card {
    position: relative;
    width: 100%;
    max-height: 75vh;
    min-height: 360px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #020617;
    border-radius: 10px;
    overflow: hidden;
}
.khl-zone-floorplan-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    cursor: zoom-in;
    text-decoration: none;
    position: relative;
}
.khl-zone-floorplan-link img {
    max-width: 100%;
    max-height: 72vh;
    object-fit: contain;
    transition: transform 0.25s ease;
    border-radius: 8px;
}
.khl-zone-floorplan-link:hover img {
    transform: scale(1.02);
}
.khl-zone-floorplan-float-badge {
    position: absolute;
    bottom: 14px;
    right: 14px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(15, 23, 42, 0.88);
    backdrop-filter: blur(8px);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
    pointer-events: none;
    transition: background 0.2s ease;
}
.khl-zone-floorplan-link:hover .khl-zone-floorplan-float-badge {
    background: rgba(2, 132, 199, 0.95);
    border-color: rgba(56, 189, 248, 0.5);
}
.khl-zone-floorplan-swiper .swiper-button-prev,
.khl-zone-floorplan-swiper .swiper-button-next {
    width: 44px;
    height: 44px;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: #fff;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
    transition: all 0.2s ease;
}
.khl-zone-floorplan-swiper .swiper-button-prev:after,
.khl-zone-floorplan-swiper .swiper-button-next:after {
    font-size: 16px;
    font-weight: 900;
}
.khl-zone-floorplan-swiper .swiper-button-prev:hover,
.khl-zone-floorplan-swiper .swiper-button-next:hover {
    background: #0284c7;
    border-color: #38bdf8;
    color: #fff;
    transform: scale(1.08);
}
.khl-zone-floorplan-swiper .swiper-pagination-bullet {
    width: 9px;
    height: 9px;
    background: rgba(255, 255, 255, 0.4);
    opacity: 0.6;
    transition: all 0.2s ease;
}
.khl-zone-floorplan-swiper .swiper-pagination-bullet-active {
    width: 24px;
    border-radius: 6px;
    background: #38bdf8;
    opacity: 1;
}

@media (max-width: 760px) {
    .khl-zone-floorplan-slider-box {
        padding: 12px 10px 18px;
        border-radius: 12px;
    }
    .khl-zone-floorplan-slide-card {
        min-height: 240px;
        max-height: 55vh;
    }
    .khl-zone-floorplan-swiper .swiper-button-prev,
    .khl-zone-floorplan-swiper .swiper-button-next {
        width: 36px;
        height: 36px;
    }
    .khl-zone-floorplan-swiper .swiper-button-prev:after,
    .khl-zone-floorplan-swiper .swiper-button-next:after {
        font-size: 13px;
    }
    .khl-zone-floorplan-float-badge {
        font-size: 11px;
        padding: 4px 10px;
        bottom: 8px;
        right: 8px;
    }
}
@media (max-width: 760px) {
    .khl-zone-info-grid {
        grid-template-columns: 1fr;
    }
    .khl-zone-tabs {
        justify-content: flex-start;
    }
    .khl-zone-page-title {
        font-size: 22px;
    }
    .khl-zone-floorplan-stage img {
        min-width: 560px;
    }
}

/* Product Cards Slider (Matching Image 3) */
.khl-products-swiper {
    padding-bottom: 40px;
}
.khl-product-card {
    background: #fff;
    border: 1px solid var(--khl-brand-border);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(0,0,0,0.04);
    transition: transform 0.2s, box-shadow 0.2s;
    height: 100%;
}
.khl-product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}
.khl-product-img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    cursor: zoom-in;
}
.khl-product-body {
    padding: 20px;
}
.khl-product-title {
    font-size: 18px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 10px 0;
}
.khl-product-meta {
    font-size: 14px;
    color: #475569;
    line-height: 1.6;
}

/* Amenities 4-Box View Slider (Matching Image 4) */
.khl-amenities-swiper {
    padding-bottom: 40px;
}
.khl-amenity-card-4box {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    background: #0f172a;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.khl-amenity-card-4box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}
.khl-amenity-card-4box:hover img {
    transform: scale(1.05);
}
.khl-amenity-overlay-title {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #1c3344;
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    text-align: center;
    padding: 14px 10px;
    box-sizing: border-box;
    letter-spacing: 0.5px;
}

/* Section 5 Centered Contact Hotline */
.khl-contact-centered-section {
    background: #ffffff;
    border: 1px solid var(--khl-brand-border);
    border-radius: 20px;
    padding: 36px 20px;
    text-align: center;
    box-shadow: 0 6px 18px rgba(0,0,0,0.03);
    margin-bottom: 32px;
}
.khl-contact-avatar-img {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #fff;
    box-shadow: 0 6px 16px rgba(0,0,0,0.1);
    margin-bottom: 12px;
}
.khl-contact-role-text {
    display: block;
    font-size: 13px;
    color: #64748b;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 4px;
}
.khl-contact-name-text {
    font-size: 20px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 16px 0;
}
.khl-btn-phone-orange {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--khl-brand-primary);
    color: #ffffff;
    font-size: 16px;
    font-weight: 800;
    padding: 12px 28px;
    border-radius: 30px;
    text-decoration: none;
    box-shadow: 0 6px 18px rgba(249, 115, 22, 0.4);
    transition: background 0.2s, transform 0.2s;
}
.khl-btn-phone-orange:hover {
    background: var(--khl-brand-primary-hover);
    transform: translateY(-2px);
}

/* Private content sign-in prompt. */
.khl-locked-box {
    position: relative;
    overflow: hidden;
    width: min(100%, 760px);
    margin: 28px auto;
    padding: clamp(28px, 5vw, 52px);
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    color: #0f172a;
    text-align: center;
    background: #f8fafc;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
}
.khl-locked-box::before {
    content: none;
}
.khl-locked-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 22px;
    border: 1px solid #bfdbfe;
    border-radius: 24px;
    display: grid;
    place-items: center;
    color: #2563eb;
    background: #eff6ff;
    box-shadow: none;
}
.khl-locked-icon .dashicons {
    width: 34px;
    height: 34px;
    font-size: 34px;
}
.khl-locked-title {
    max-width: 580px;
    margin: 0 auto 12px;
    color: #0f172a;
    font-size: clamp(21px, 3vw, 28px);
    font-weight: 850;
    line-height: 1.25;
    letter-spacing: -0.02em;
}
.khl-locked-sub {
    max-width: 620px;
    margin: 0 auto 26px;
    color: #64748b;
    font-size: 15px;
    line-height: 1.7;
}
.khl-btn-login-locked {
    min-height: 46px;
    padding: 0 22px;
    border: 1px solid #2563eb;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: #2563eb;
    font-size: 14px;
    font-weight: 850;
    text-decoration: none;
    box-shadow: none;
    transition: background 0.18s ease, transform 0.18s ease;
}
.khl-btn-login-locked:hover {
    color: #ffffff;
    background: #1d4ed8;
    transform: translateY(-2px);
}
.khl-btn-login-locked:focus-visible {
    outline: 3px solid rgba(37, 99, 235, 0.24);
    outline-offset: 4px;
}

/* Project news: compact editorial cards scoped to the project detail tab. */
#sec-news {
    --khl-news-accent: #2563eb;
    --khl-news-text: #0f172a;
    --khl-news-muted: #7c87a3;
    padding: clamp(18px, 3vw, 32px);
}

#sec-news .khl-section-header {
    margin-bottom: 24px;
}

#sec-news .khl-section-title {
    margin: 0;
    color: var(--khl-news-text);
    font-size: clamp(22px, 3vw, 28px);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
    text-transform: uppercase;
}

#sec-news .khl-news-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
}

#sec-news .khl-news-card {
    min-width: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.035);
    transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

#sec-news .khl-news-thumb-link {
    position: relative;
    overflow: hidden;
    display: block;
    aspect-ratio: 16 / 9;
    background: #eaf0f8;
}

#sec-news .khl-news-img,
#sec-news .khl-news-img-placeholder {
    width: 100%;
    height: 100%;
    display: block;
}

#sec-news .khl-news-img {
    object-fit: cover;
    transition: transform 240ms ease;
}

#sec-news .khl-news-img-placeholder {
    background:
        linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(37, 99, 235, 0.2)),
        #eef4ff;
}

#sec-news .khl-news-category {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 1;
    max-width: calc(100% - 20px);
    min-height: 26px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    border-radius: 999px;
    color: #ffffff;
    background: var(--khl-news-accent);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.16);
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

#sec-news .khl-news-category svg {
    width: 12px;
    height: 12px;
    flex: 0 0 12px;
    fill: currentColor;
}

#sec-news .khl-news-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    padding: 14px 14px 8px;
}

#sec-news .khl-news-title {
    min-height: 2.65em;
    margin: 0 0 8px;
    display: -webkit-box;
    overflow: hidden;
    color: var(--khl-news-text);
    font-size: 15px;
    font-weight: 800;
    line-height: 1.32;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

#sec-news .khl-news-title a {
    color: inherit;
    text-decoration: none;
}

#sec-news .khl-news-excerpt {
    margin: 0 0 12px;
    display: -webkit-box;
    overflow: hidden;
    color: var(--khl-news-muted);
    font-size: 13px;
    line-height: 1.55;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

#sec-news .khl-news-footer {
    margin-top: auto;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    border-top: 1px solid #f1f5f9;
}

#sec-news .khl-news-footer time {
    color: #94a3b8;
    font-size: 11px;
    white-space: nowrap;
}

#sec-news .khl-news-footer a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--khl-news-text);
    font-size: 12px;
    font-weight: 750;
    text-decoration: underline;
    text-underline-offset: 2px;
}

#sec-news .khl-news-title a:hover,
#sec-news .khl-news-footer a:hover {
    color: var(--khl-news-accent);
}

#sec-news .khl-news-thumb-link:focus-visible,
#sec-news .khl-news-title a:focus-visible,
#sec-news .khl-news-footer a:focus-visible {
    outline: 3px solid rgba(37, 99, 235, 0.25);
    outline-offset: 2px;
}

#sec-news .khl-news-empty {
    margin: 0;
    padding: 24px;
    border: 1px dashed #cbd5e1;
    border-radius: 10px;
    color: #64748b;
    background: #f8fafc;
    text-align: center;
}

@media (hover: hover) and (pointer: fine) {
    #sec-news .khl-news-card:hover {
        border-color: #bfdbfe;
        box-shadow: 0 10px 24px rgba(15, 23, 42, 0.09);
        transform: translateY(-3px);
    }

    #sec-news .khl-news-card:hover .khl-news-img {
        transform: scale(1.025);
    }
}

@media (min-width: 640px) {
    #sec-news .khl-news-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 900px) {
    #sec-news .khl-news-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 1180px) {
    #sec-news .khl-news-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

/* Responsive Gutters & Grid Breakpoints */
@media (max-width: 1100px) and (min-width: 769px) {
    .khl-inventory-toolbar {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .khl-inventory-filter--search {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .khl-container { padding: 0 14px; }
    .khl-navy-grid, .khl-location-grid, .khl-media-grid { grid-template-columns: 1fr; }
    .khl-card-navy, .khl-media-card, .khl-project-section { padding: 20px; }
    .khl-project-title { font-size: 22px; }
    .khl-inventory-toolbar {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        padding: 10px;
    }
    .khl-inventory-filter--search,
    .khl-inventory-reset {
        grid-column: 1 / -1;
    }
    .khl-lowrise-inventory-actions {
        justify-content: space-between;
    }
    .khl-lowrise-filter-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .inventory-table th,
    .inventory-table td {
        padding: 11px 12px;
        font-size: 13px;
    }
    .khl-locked-box {
        margin: 18px auto;
        padding: 30px 20px;
        border-radius: 16px;
    }
    .khl-locked-icon {
        width: 64px;
        height: 64px;
        margin-bottom: 18px;
        border-radius: 20px;
    }
    .khl-btn-login-locked {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .khl-btn-login-locked,
    #sec-news .khl-news-card,
    #sec-news .khl-news-img {
        transition: none;
    }
}

@media (max-width: 480px) {
    .khl-inventory-toolbar {
        grid-template-columns: 1fr;
    }
    .khl-lowrise-inventory-actions {
        align-items: stretch;
        flex-direction: column;
    }
    .khl-lowrise-inventory-sort {
        justify-content: space-between;
    }
    .khl-lowrise-inventory-sort select,
    .khl-lowrise-filter-toggle {
        min-height: 44px;
    }
    .khl-lowrise-filter-grid {
        grid-template-columns: 1fr;
    }
    .khl-lowrise-filter-split {
        grid-template-columns: 1fr;
    }
    .khl-lowrise-option-list {
        max-height: 132px;
    }
    .khl-inventory-summary {
        width: 100%;
        justify-content: center;
        text-align: center;
    }
    .inventory-table {
        min-width: 760px;
    }
}

/* Training content */
#sec-training .khl-training-content {
    color: #334155;
    font-size: 15px;
    line-height: 1.75;
    overflow-wrap: anywhere;
}

#sec-training .khl-training-content > :first-child {
    margin-top: 0;
}

#sec-training .khl-training-content > :last-child {
    margin-bottom: 0;
}

#sec-training .khl-training-content img,
#sec-training .khl-training-content iframe,
#sec-training .khl-training-content video {
    display: block;
    max-width: 100%;
}

#sec-training .khl-training-content iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    margin: 20px 0;
    border: 0;
    border-radius: 12px;
    background: #0f172a;
}

#sec-training .khl-training-content table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
    border-collapse: collapse;
}

#sec-training .khl-video-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 24px;
}

#sec-training .khl-video-card {
    overflow: hidden;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.07);
}

#sec-training .khl-video-thumb {
    position: relative;
    min-height: 180px;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    cursor: pointer;
    background: #0f172a;
}

#sec-training .khl-vthumb-img,
#sec-training .khl-vthumb-placeholder {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#sec-training .khl-vthumb-placeholder {
    display: grid;
    place-items: center;
    color: #cbd5e1;
    font-weight: 700;
}

#sec-training .khl-play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    display: grid;
    width: 52px;
    height: 52px;
    place-items: center;
    color: #fff;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.78);
    transform: translate(-50%, -50%);
}

#sec-training .khl-video-body {
    padding: 14px 16px 16px;
}

#sec-training .khl-video-title {
    margin: 0;
    color: #0f172a;
    font-size: 16px;
    line-height: 1.45;
}

#sec-training .khl-training-empty {
    color: #64748b;
    font-style: italic;
}

@media (min-width: 640px) {
    #sec-training .khl-video-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    #sec-training .khl-video-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}
