/* ══════════════════════════════════════════════
   PAGE HEADER
   ══════════════════════════════════════════════ */
.bch-page-top {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    padding: 28px 0 0;
    margin-bottom: 8px;
}

.bch-page-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-family: 'Poppins', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #D25534;
    margin-bottom: 8px;
}

.bch-live-dot {
    width: 7px;
    height: 7px;
    background: #D25534;
    border-radius: 50%;
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: .4;
        transform: scale(.75);
    }
}

.bch-page-title {
    font-family: 'Poppins', sans-serif;
    font-size: 26px;
    font-weight: 800;
    color: #1a1a1a;
    margin: 0;
    line-height: 1.2;
}

.bch-page-sub {
    font-size: 13.5px;
    color: #595959;
    margin: 6px 0 0;
    line-height: 1.5;
}

/* ══════════════════════════════════════════════
   BUTTONS
   ══════════════════════════════════════════════ */
.btn-pinjam {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #D25534;
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 11px 22px;
    font-family: 'Poppins', sans-serif;
    font-size: 13.5px;
    font-weight: 600;
    text-decoration: none;
    transition: background .2s, box-shadow .2s, transform .15s;
    white-space: nowrap;
    flex-shrink: 0;
}

.btn-pinjam:hover {
    background: #b8412a;
    color: #fff;
    text-decoration: none;
    box-shadow: 0 6px 20px rgba(210, 85, 52, .35);
    transform: translateY(-1px);
}

.btn-bch-purple {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    background: #7239EA;
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 14px 36px;
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: background .2s, box-shadow .2s, transform .15s;
}

.btn-bch-purple:hover {
    background: #5f2dc4;
    color: #fff;
    text-decoration: none;
    box-shadow: 0 8px 24px rgba(114, 57, 234, .38);
    transform: translateY(-2px);
}

/* ══════════════════════════════════════════════
   SECTION LABEL (matching existing site style)
   ══════════════════════════════════════════════ */
.bch-section-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.bch-section-heading {
    font-family: 'Poppins', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #222;
    border-left: 4px solid #D25534;
    padding-left: 12px;
    margin: 0;
    line-height: 1.3;
}

.bch-section-meta {
    font-size: 12px;
    color: #767676;
}

/* ══════════════════════════════════════════════
   FILTER (inline di heading Statistik Ekraf)
   ══════════════════════════════════════════════ */
.bch-stat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
    margin-top: 8px;
}

.bch-filter-inline {
    display: flex;
    align-items: center;
    gap: 7px;
    flex-wrap: wrap;
}

.bch-filter-inline input[type="date"] {
    height: 34px;
    border: 1.5px solid #E0E0E0;
    border-radius: 8px;
    padding: 0 10px;
    font-size: 12.5px;
    color: #444;
    background: #fff;
    outline: none;
    transition: border-color .2s;
}

.bch-filter-inline input[type="date"]:focus {
    border-color: #D25534;
}

.bch-filter-sep {
    color: #ccc;
    font-size: 14px;
    flex-shrink: 0;
}

.btn-filter-apply {
    height: 34px;
    padding: 0 14px;
    background: #D25534;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s;
    white-space: nowrap;
}

.btn-filter-apply:hover {
    background: #b8412a;
}

.btn-filter-clear {
    height: 34px;
    padding: 0 12px;
    background: transparent;
    color: #aaa;
    border: 1.5px solid #E0E0E0;
    border-radius: 8px;
    font-size: 12.5px;
    cursor: pointer;
    transition: color .2s, border-color .2s;
    white-space: nowrap;
}

.btn-filter-clear:hover {
    color: #555;
    border-color: #bbb;
}

#filter-active-pill {
    display: none;
    align-items: center;
    gap: 5px;
    background: #FFF0EB;
    color: #D25534;
    border: 1px solid #FFCCBC;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 10px;
    border-radius: 20px;
}

/* ══════════════════════════════════════════════
   VENUE CARD
   ══════════════════════════════════════════════ */
.bch-venue-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #EBEBEB;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: box-shadow .3s ease, transform .3s ease;
}

.bch-venue-card:hover {
    box-shadow: 0 16px 40px rgba(0, 0, 0, .13);
    transform: translateY(-5px);
}

/* Artwork / Photo area */
.bch-venue-art {
    position: relative;
    height: 240px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
    flex-shrink: 0;
}

/* Dot-grid texture */
.bch-venue-art::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(255, 255, 255, .16) 1.5px, transparent 1.5px);
    background-size: 24px 24px;
    pointer-events: none;
    z-index: 1;
}

/* Bottom text scrim */
.bch-venue-art::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 72%;
    background: linear-gradient(to top, rgba(0, 0, 0, .70) 0%, rgba(0, 0, 0, .15) 60%, transparent 100%);
    pointer-events: none;
    z-index: 2;
}

/* Large decorative circle top-right */
.bch-venue-deco {
    position: absolute;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .07);
    top: -80px;
    right: -60px;
    pointer-events: none;
    z-index: 1;
}

.bch-venue-deco-sm {
    position: absolute;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .06);
    bottom: 30px;
    right: 24px;
    pointer-events: none;
    z-index: 1;
}

/* Big icon */
.bch-venue-bg-icon {
    position: absolute;
    top: 20px;
    left: 22px;
    font-size: 5.5rem;
    color: rgba(255, 255, 255, .12);
    pointer-events: none;
    z-index: 1;
    line-height: 1;
}

/* Top badges */
.bch-venue-art-top {
    position: absolute;
    top: 16px;
    left: 16px;
    right: 16px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    z-index: 3;
}

.bch-venue-source-badge {
    background: rgba(255, 255, 255, .18);
    border: 1px solid rgba(255, 255, 255, .30);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 20px;
    backdrop-filter: blur(6px);
}

.bch-venue-rank-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 10.5px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    backdrop-filter: blur(6px);
}

.bch-venue-rank-badge.rank-1 {
    background: rgba(255, 215, 0, .25);
    border: 1px solid rgba(255, 215, 0, .45);
    color: #ffe566;
}

.bch-venue-rank-badge.rank-other {
    background: rgba(255, 255, 255, .16);
    border: 1px solid rgba(255, 255, 255, .28);
    color: rgba(255, 255, 255, .85);
}

/* Bottom text content */
.bch-venue-art-content {
    position: relative;
    z-index: 3;
}

.bch-venue-type-tag {
    display: inline-block;
    background: rgba(255, 255, 255, .2);
    border: 1px solid rgba(255, 255, 255, .28);
    color: #fff;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 20px;
    margin-bottom: 8px;
    backdrop-filter: blur(4px);
}

.bch-venue-art-name {
    font-family: 'Poppins', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 3px;
    line-height: 1.25;
    text-shadow: 0 2px 10px rgba(0, 0, 0, .3);
}

.bch-venue-art-desc {
    font-size: 12px;
    color: rgba(255, 255, 255, .72);
    margin: 0;
    line-height: 1.4;
}

/* Card body */
.bch-venue-body {
    padding: 18px 20px 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.bch-venue-stats-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 14px;
}

.bch-venue-count {
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.bch-venue-num {
    font-family: 'Poppins', sans-serif;
    font-size: 2.6rem;
    font-weight: 800;
    line-height: 1;
    font-variant-numeric: tabular-nums;
    letter-spacing: -1px;
}

.bch-venue-count-label {
    font-size: 12.5px;
    color: #595959;
    font-weight: 500;
    margin-bottom: 3px;
}

.bch-rank-label {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11.5px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 4px;
}

.bch-rank-label.rl-gold {
    background: #FFFBEB;
    color: #B45309;
    border: 1px solid #FDE68A;
}

.bch-rank-label.rl-silver {
    background: #F8FAFC;
    color: #64748B;
    border: 1px solid #CBD5E1;
}

.bch-rank-label.rl-other {
    background: #F9FAFB;
    color: #9CA3AF;
    border: 1px solid #E5E7EB;
}

.bch-venue-bar-wrap {
    height: 7px;
    background: #F3F3F5;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 6px;
}

.bch-venue-bar-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.5s ease-out;
}

.bch-venue-bar-caption {
    font-size: 11.5px;
    color: #767676;
}

.btn-venue-detail {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #D25534;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    margin-top: auto;
    padding-top: 14px;
    transition: color .2s;
}

.btn-venue-detail:hover {
    color: #b8412a;
    text-decoration: none;
}

.btn-venue-detail:hover .btn-venue-detail-arrow {
    transform: translateX(4px);
}

.btn-venue-detail-arrow {
    display: inline-block;
    font-size: 11px;
    transition: transform .2s ease-out;
}

/* ══════════════════════════════════════════════
   PANEL (Kategori + Grafik)
   ══════════════════════════════════════════════ */
.bch-panel {
    background: #fff;
    border: 1px solid #EBEBEB;
    border-radius: 16px;
    padding: 22px;
    height: 100%;
}

/* Panel heading — left-border style matching site */
.bch-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1.5px solid #F3F3F5;
}

.bch-panel-head h6 {
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
    border-left: 3px solid #D25534;
    padding-left: 10px;
    line-height: 1.3;
}

.bch-panel-badge {
    font-size: 11px;
    font-weight: 700;
    color: #595959;
    background: #F5F5F7;
    padding: 3px 10px;
    border-radius: 20px;
    white-space: nowrap;
}

/* ── Kategori: sector rows ── */
.bch-sector-list {}

.bch-sector-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 0;
    border-bottom: 1px solid #F5F5F7;
}

.bch-sector-row:first-child {
    padding-top: 0;
}

.bch-sector-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.bch-sector-icon {
    width: 40px;
    height: 40px;
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
    line-height: 1;
}

.bch-sector-body {
    flex: 1;
    min-width: 0;
}

.bch-sector-name {
    font-size: 13px;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bch-sector-bar-track {
    height: 5px;
    background: #F0F0F3;
    border-radius: 3px;
    overflow: hidden;
}

.bch-sector-bar-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.5s ease-out;
}

.bch-sector-count {
    font-family: 'Poppins', sans-serif;
    font-size: 17px;
    font-weight: 800;
    color: #1a1a1a;
    min-width: 26px;
    text-align: right;
    flex-shrink: 0;
    letter-spacing: -0.5px;
}

/* ── Grafik: line chart wrapper ── */
.bch-chart-wrap {
    position: relative;
    height: 210px;
}

/* ══════════════════════════════════════════════
   CTA
   ══════════════════════════════════════════════ */
.bch-cta-wrap {
    text-align: center;
    padding: 10px 0 6px;
}

/* ══════════════════════════════════════════════
   SKELETON
   ══════════════════════════════════════════════ */
.skeleton {
    background: linear-gradient(90deg, #EBEBEB 25%, #F5F5F5 50%, #EBEBEB 75%);
    background-size: 200% 100%;
    animation: skel-shimmer 1.6s infinite linear;
    border-radius: 6px;
}

@keyframes skel-shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

.skel-card {
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #EBEBEB;
}

.skel-art {
    height: 240px;
    width: 100%;
    border-radius: 0;
}

.skel-body {
    padding: 18px 20px 20px;
}

.skel-line {
    height: 13px;
    margin-bottom: 10px;
    border-radius: 5px;
}

/* ══════════════════════════════════════════════
   EMPTY STATE
   ══════════════════════════════════════════════ */
.bch-empty {
    text-align: center;
    padding: 40px 20px;
    color: #ccc;
}

.bch-empty i {
    font-size: 38px;
    display: block;
    margin-bottom: 12px;
    color: #E0E0E0;
}

.bch-empty p {
    font-size: 13.5px;
    color: #bbb;
    margin: 0;
}

/* ══════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════ */
@media (max-width: 767px) {
    .bch-venue-art {
        height: 200px;
    }

    .bch-venue-bg-icon {
        font-size: 4rem;
    }

    .bch-venue-art-name {
        font-size: 16px;
    }

    .bch-venue-num {
        font-size: 2.1rem;
    }

    .bch-page-title {
        font-size: 22px;
    }

    .bch-stat-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .bch-filter-inline {
        flex-wrap: wrap;
    }

    .bch-filter-inline input[type="date"] {
        flex: 1;
        min-width: 0;
    }

    .jadwal-event-pill {
        padding: 3px 4px;
        border-left-width: 2px;
        margin-bottom: 2px;
    }
    .jadwal-event-name {
        font-size: 10px;
    }
    .jadwal-event-loc {
        font-size: 9px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .bch-live-dot {
        animation: none;
    }

    .skeleton {
        animation: none;
        background: #EBEBEB;
    }

    .bch-venue-bar-fill,
    .bch-sector-bar-fill {
        transition: none;
    }

    .bch-venue-card:hover {
        transform: none;
    }

    .btn-pinjam:hover,
    .btn-bch-purple:hover {
        transform: none;
    }

    .btn-venue-detail-arrow {
        transition: none;
    }
}

/* ══════════════════════════════════════════════
   JADWAL PEMINJAMAN CALENDAR
   ══════════════════════════════════════════════ */
.jadwal-section {
    margin-top: 48px;
    margin-bottom: 32px;
}

.jadwal-section-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
}

.jadwal-section-head h5 {
    font-size: 18px;
    font-weight: 700;
    color: #1A1A2E;
    margin: 0 0 4px;
}

.jadwal-section-head p {
    font-size: 13px;
    color: #888;
    margin: 0;
    max-width: 480px;
}

.btn-tambah-pinjam {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: #D25534;
    color: #fff !important;
    font-size: 13px;
    font-weight: 600;
    padding: 9px 18px;
    border-radius: 8px;
    text-decoration: none !important;
    white-space: nowrap;
    transition: background .2s, transform .15s;
    flex-shrink: 0;
}

.btn-tambah-pinjam:hover {
    background: #b8452a;
    transform: translateY(-1px);
}

/* Filter bar */
.jadwal-filter-bar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px 20px;
    border-bottom: 1px solid #F0F0F3;
    background: #FAFAFA;
}

.jadwal-filter-bar select,
.jadwal-filter-bar input[type="text"] {
    height: 32px;
    padding: 0 10px;
    border: 1px solid #E5E7EB;
    border-radius: 7px;
    font-size: 12px;
    color: #444;
    background: #fff;
    outline: none;
    font-family: inherit;
    min-width: 0;
    transition: border-color .15s;
}

.jadwal-filter-bar select {
    padding-right: 26px;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23AAA' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
}

.jadwal-filter-bar select:focus,
.jadwal-filter-bar input[type="text"]:focus {
    border-color: #D25534;
}

.jadwal-filter-select-gedung {
    width: 170px;
}

.jadwal-filter-select-ruangan {
    width: 200px;
}

.jadwal-filter-btn-apply {
    height: 32px;
    padding: 0 14px;
    background: #D25534;
    color: #fff;
    border: none;
    border-radius: 7px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: background .15s;
    font-family: inherit;
}

.jadwal-filter-btn-apply:hover {
    background: #b8452a;
}

.jadwal-filter-btn-reset {
    height: 32px;
    padding: 0 12px;
    background: #fff;
    color: #888;
    border: 1px solid #E5E7EB;
    border-radius: 7px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: background .15s;
}

.jadwal-filter-btn-reset:hover {
    background: #F9F9FB;
}

.jadwal-filter-active-pill {
    display: none;
    align-items: center;
    gap: 5px;
    background: #D2553415;
    color: #D25534;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 20px;
}

.jadwal-filter-active-pill.show {
    display: inline-flex;
}

/* Card */
.jadwal-card {
    background: #fff;
    border-radius: 16px;
    border: 1px solid #F0F0F3;
    box-shadow: 0 2px 12px rgba(0, 0, 0, .05);
    overflow: hidden;
}

/* Toolbar */
.jadwal-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    padding: 14px 20px;
    border-bottom: 1px solid #F0F0F3;
}

.jadwal-nav {
    display: flex;
    align-items: center;
    gap: 6px;
}

.jadwal-nav-btn {
    width: 34px;
    height: 34px;
    border: 1px solid #E5E7EB;
    background: #fff;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    color: #555;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background .15s;
}

.jadwal-nav-btn:hover {
    background: #F9F9FB;
}

.jadwal-today-btn {
    height: 34px;
    padding: 0 14px;
    border: 1px solid #E5E7EB;
    background: #fff;
    border-radius: 8px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    color: #555;
    transition: background .15s;
}

.jadwal-today-btn:hover {
    background: #F9F9FB;
}

.jadwal-month-label {
    font-size: 15px;
    font-weight: 700;
    color: #D25534;
    min-width: 150px;
    text-align: center;
}

.jadwal-view-tabs {
    display: flex;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    overflow: hidden;
}

.jadwal-view-tab {
    padding: 7px 14px;
    font-size: 12px;
    font-weight: 600;
    color: #666;
    background: #fff;
    border: none;
    cursor: pointer;
    transition: background .15s, color .15s;
}

.jadwal-view-tab:not(:last-child) {
    border-right: 1px solid #E5E7EB;
}

.jadwal-view-tab.active {
    background: #D25534;
    color: #fff;
}

/* Month grid */
.jadwal-weekday-row {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    border-bottom: 1px solid #F0F0F3;
}

.jadwal-weekday-cell {
    text-align: center;
    font-size: 11px;
    font-weight: 700;
    color: #AAA;
    text-transform: uppercase;
    letter-spacing: .5px;
    padding: 9px 0 7px;
}

.jadwal-days-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
}

.jadwal-day-cell {
    min-height: 88px;
    border-right: 1px solid #F0F0F3;
    border-bottom: 1px solid #F0F0F3;
    padding: 6px 6px 4px;
    position: relative;
}

.jadwal-day-cell:nth-child(7n) {
    border-right: none;
}

.jadwal-day-cell.other-month {
    background: #FAFAFA;
}

.jadwal-day-cell.other-month .jadwal-day-num {
    color: #CCC;
}

.jadwal-day-cell.is-today {
    background: #FFF8EE;
}

.jadwal-day-num {
    font-size: 12px;
    font-weight: 600;
    color: #444;
    text-align: right;
    display: block;
    margin-bottom: 3px;
}

.jadwal-day-cell.is-today .jadwal-day-num {
    color: #D25534;
}

.jadwal-event-pill {
    display: flex;
    align-items: flex-start;
    gap: 4px;
    padding: 4px 6px;
    border-radius: 6px;
    cursor: pointer;
    margin-bottom: 3px;
    background: #fdf0ed;
    border-left: 3px solid #e13009;
    transition: background 0.15s;
}

.jadwal-event-pill:hover .jadwal-event-text {
    text-decoration: underline;
    background: #fdf0ed;
}

.jadwal-event-content {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
}

.jadwal-event-name {
    font-size: 11px;
    font-weight: 700;
    color: #1a1a1a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.jadwal-event-loc {
    font-size: 10px;
    color: #888;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.jadwal-event-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #e13009;
    flex-shrink: 0;
    margin-top: 4px;
}

.jadwal-event-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: calc(100% - 10px);
}

.jadwal-more-link {
    font-size: 10px;
    color: #D25534;
    font-weight: 600;
    cursor: pointer;
    padding: 1px 0;
}

/* List view */
.jadwal-list-view {
    padding: 16px 20px;
    min-height: 200px;
}

.jadwal-list-empty {
    text-align: center;
    padding: 48px 20px;
    color: #BBB;
}

.jadwal-list-empty i {
    font-size: 30px;
    display: block;
    margin-bottom: 10px;
    color: #DDD;
}

.jadwal-list-group {
    margin-bottom: 20px;
}

.jadwal-list-date-label {
    font-size: 11px;
    font-weight: 700;
    color: #999;
    text-transform: uppercase;
    letter-spacing: .6px;
    margin-bottom: 8px;
    padding-bottom: 6px;
    border-bottom: 1px solid #F0F0F3;
}

.jadwal-list-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 10px 0;
    border-bottom: 1px solid #F9F9FB;
    cursor: pointer;
}

.jadwal-list-item:last-child {
    border-bottom: none;
}

.jadwal-list-item:hover .jadwal-list-name {
    color: #D25534;
}

.jadwal-list-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #0E9E8A;
    flex-shrink: 0;
    margin-top: 4px;
}

.jadwal-list-body {
    flex: 1;
    min-width: 0;
}

.jadwal-list-name {
    font-size: 13px;
    font-weight: 600;
    color: #222;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color .15s;
}

.jadwal-list-meta {
    font-size: 11px;
    color: #888;
    margin-top: 2px;
}

.jadwal-list-time {
    font-size: 11px;
    font-weight: 600;
    color: #D25534;
    white-space: nowrap;
    flex-shrink: 0;
    background: #D2553410;
    padding: 2px 7px;
    border-radius: 5px;
}

/* Week view */
/* Week view — pill-column layout */
.jadwal-week-simple {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
}

.jadwal-week-col {
    border-right: 1px solid #F0F0F3;
    min-height: 120px;
}

.jadwal-week-col:last-child {
    border-right: none;
}

.jadwal-week-col-head {
    padding: 10px 6px 8px;
    border-bottom: 1px solid #F0F0F3;
    text-align: center;
}

.jadwal-week-col.is-today .jadwal-week-col-head {
    background: #FFF8EE;
}

.jadwal-week-col-head-label {
    font-size: 10px;
    font-weight: 700;
    color: #AAA;
    text-transform: uppercase;
    letter-spacing: .5px;
    display: block;
}

.jadwal-week-col-head-num {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    line-height: 1.3;
    display: block;
    margin-top: 2px;
}

.jadwal-week-col.is-today .jadwal-week-col-head-num {
    color: #D25534;
}

.jadwal-week-col.is-past {
    opacity: .5;
}

.jadwal-week-col-body {
    padding: 6px 4px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.jadwal-week-col-empty {
    padding: 14px 4px;
    text-align: center;
    font-size: 11px;
    color: #DDD;
}

.jadwal-week-pill {
    background: rgba(210, 85, 52, .08);
    border-left: 3px solid #D25534;
    border-radius: 0 6px 6px 0;
    padding: 5px 7px;
    font-size: 10.5px;
    color: #222;
    cursor: pointer;
    transition: background .12s;
}

.jadwal-week-pill:hover {
    background: rgba(210, 85, 52, .18);
}

.jadwal-week-pill-time {
    font-size: 9.5px;
    color: #D25534;
    font-weight: 700;
    display: block;
    margin-bottom: 2px;
}

.jadwal-week-pill-name {
    font-weight: 600;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-height: 1.3;
}

@media (max-width: 600px) {
    .jadwal-week-col-head-num { font-size: 14px; }
    .jadwal-week-pill { padding: 3px 4px; font-size: 9.5px; }
    .jadwal-week-pill-time { font-size: 8.5px; }
}

/* Detail Modal */
.jadwal-modal-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .55);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.jadwal-modal-backdrop.open {
    display: flex;
}

.jadwal-modal {
    background: #fff;
    width: 100%;
    border-radius: 6px;

    max-width: 380px;
    overflow: hidden;
    font-family: Arial, sans-serif;
}

.jadwal-modal-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 18px;
    border-bottom: 1px solid #eee
}


@keyframes modalIn {
    from {
        opacity: 0;
        transform: translateY(12px) scale(.97);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.jadwal-modal-close {
    background: none;
    border: 1px solid #ddd;
    border-radius: 4px;
    width: 26px;
    height: 26px;
    cursor: pointer;
    font-size: 13px;
    color: #777;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.jadwal-modal-close:hover {
    background: #E5E7EB;
}

.jadwal-modal-title-block {
    padding: 16px 18px 14px;
    border-bottom: 1px solid #eee;
}

.jadwal-modal-badge {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: #e13009;
}

.jadwal-modal-title {
    font-size: 16px;
    font-weight: 700;
    color: #1A1A2E;
    margin: 0 0 14px;
    line-height: 1.4;
}

.jadwal-modal-title {
    font-size: 18px;
    font-weight: normal;
    color: #111;
    line-height: 1.4;
    margin-bottom: 5px;
    font-family: Georgia, serif;
}

.jadwal-modal-gedung-line {
    font-size: 12px;
    color: #999;
}

.jadwal-modal-rows {
    padding: 4px 0 10px;
}

.jadwal-modal-row {
    display: flex;
    align-items: baseline;
    gap: 10px;
    padding: 9px 18px;
    border-bottom: 1px solid #f5f5f5;
}

.jadwal-modal-row:last-child {
    border-bottom: none;
}

.jadwal-modal-divider {
    height: 1px;
    background: #eee;
    margin: 0 18px;
}

.jm-label {
    font-size: 11px;
    color: #585252;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    min-width: 68px;
    flex-shrink: 0;
}

.jm-val {
    font-size: 13px;
    color: #1a1a1a;
    line-height: 1.4;
}

.jm-tag {
    display: inline-block;
    background: #fdf0ed;
    color: #e13009;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 3px;
}

.jadwal-modal-row i {
    width: 15px;
    color: #D25534;
    flex-shrink: 0;
    margin-top: 2px;
}

/* ===================================
   Gedung Section
=================================== */

.gedung-section {
    padding: 0;
}

/* Toolbar */
.gedung-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 1.25rem;
}

.gedung-search-wrap {
    position: relative;
    flex: 1;
    max-width: 420px;
}

.gedung-search-wrap svg {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    pointer-events: none;
}

.gedung-search-wrap input {
    width: 100%;
    padding: 9px 14px 9px 36px;
    font-size: 13px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #fff;
    color: #111827;
    outline: none;
    transition: border-color 0.15s;
}

.gedung-search-wrap input:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.08);
}

.gedung-count {
    font-size: 12px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: #6b7280;
    white-space: nowrap;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    padding: 5px 12px;
}

/* Grid */
.gedung-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 18px;
}

/* Card */
.gedung-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: border-color 0.2s, transform 0.15s, box-shadow 0.2s;
    cursor: pointer;
}

.gedung-card:hover {
    border-color: #c7d2fe;
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.08);
}

/* Card image */
.gedung-card__img {
    width: 100%;
    height: 160px;
    background: #f3f4f6;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.gedung-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s;
}

.gedung-card:hover .gedung-card__img img {
    transform: scale(1.04);
}

.gedung-card__img--fallback {
    width: 100%;
    height: 100%;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gedung-card__img--fallback::before {
    content: '';
    display: block;
    width: 36px;
    height: 36px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23d1d5db' stroke-width='1.2'%3E%3Crect x='3' y='10' width='18' height='11' rx='1'/%3E%3Cpath d='M9 21V12h6v9'/%3E%3Cpath d='M3 10l9-7 9 7'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.8;
}

/* Card body */
.gedung-card__body {
    padding: 14px 16px 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.gedung-card__name {
    font-size: 12px;
    font-weight: 600;
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: #111827;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    line-height: 1.4;
    margin-bottom: 5px;
}

.gedung-card__addr {
    font-size: 12px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: #6b7280;
    line-height: 1.55;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 12px;
}

.gedung-card__foot {
    margin-bottom: 12px;
}

.gedung-card__badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: #3b6d11;
    background: #eaf3de;
    padding: 4px 10px;
    border-radius: 20px;
    letter-spacing: 0.01em;
}

.gedung-card__btn {
    display: block;
    width: 100%;
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: #374151;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 9px;
    padding: 9px 0;
    text-decoration: none;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.gedung-card__btn:hover {
    background: #eef2ff;
    border-color: #c7d2fe;
    color: #4338ca;
}

/* Empty state */
.gedung-empty {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 3.5rem 1rem;
    color: #9ca3af;
}

.gedung-empty svg {
    opacity: 0.35;
}

.gedung-empty p {
    font-size: 13px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: #9ca3af;
}

.gedung-empty--hidden {
    display: none;
}

/* Responsive */
@media (max-width: 640px) {
    .gedung-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 12px;
        
    }

    .gedung-card__img {
        height: 120px;
    }

    .gedung-toolbar {
        flex-wrap: wrap;
    }

    .gedung-search-wrap {
        max-width: 100%;
    }

    .jadwal-event-pill {
        padding: 3px 4px;
        border-left-width: 2px;
        margin-bottom: 2px;
    }
    .jadwal-event-name {
        font-size: 10px;
    }
    .jadwal-event-loc {
        font-size: 9px;
    }
}

@media (max-width: 600px) {
    .jadwal-day-cell {
        min-height: 56px;
        padding: 4px 3px;
    }

    .jadwal-event-text {
        display: none;
    }

    .jadwal-event-pill {
        justify-content: center;
    }

    .jadwal-event-dot {
        width: 7px;
        height: 7px;
        margin: 0;
    }

    .jadwal-section-head {
        flex-direction: column;
    }

    .jadwal-toolbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .jadwal-month-label {
        min-width: unset;
    }

    .jadwal-event-pill {
        padding: 3px 4px;
        border-left-width: 2px;
        margin-bottom: 2px;
    }
    .jadwal-event-name {
        font-size: 10px;
    }
    .jadwal-event-loc {
        font-size: 9px;
    }
}
/* ══════════════════════════════════════════════
   GEDUNG RUANGAN MODAL
   ══════════════════════════════════════════════ */
.gd-modal-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .5);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.gd-modal-backdrop.open {
    display: flex;
}

.gd-modal {
    background: #fff;
    border-radius: 16px;
    width: 100%;
    max-width: 480px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .2);
    animation: gd-modal-in .2s ease-out;
}

@keyframes gd-modal-in {
    from { opacity: 0; transform: translateY(16px) scale(.97); }
    to   { opacity: 1; transform: translateY(0)   scale(1);    }
}

.gd-modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 20px 22px 16px;
    border-bottom: 1.5px solid #F3F3F5;
    flex-shrink: 0;
}

.gd-modal-label {
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: .09em;
    text-transform: uppercase;
    color: #D25534;
    margin: 0 0 4px;
}

.gd-modal-title {
    font-family: 'Poppins', sans-serif;
    font-size: 17px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
    line-height: 1.3;
}

.gd-modal-close {
    width: 30px;
    height: 30px;
    border: 1px solid #E5E7EB;
    background: #fff;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    color: #777;
    flex-shrink: 0;
    margin-top: 2px;
    transition: background .15s;
}

.gd-modal-close:hover {
    background: #F3F3F5;
}

.gd-modal-body {
    overflow-y: auto;
    padding: 16px 22px 22px;
    flex: 1;
}

/* Room list */
.gd-room-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.gd-room-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 14px;
    border: 1px solid #F0F0F3;
    border-radius: 12px;
    transition: border-color .15s, box-shadow .15s;
}

.gd-room-item:hover {
    border-color: #D2553440;
    box-shadow: 0 2px 8px rgba(210, 85, 52, .08);
}

.gd-room-icon {
    width: 38px;
    height: 38px;
    background: #FFF0EB;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #D25534;
    font-size: 15px;
    flex-shrink: 0;
}

.gd-room-info {
    flex: 1;
    min-width: 0;
}

.gd-room-name {
    font-size: 13.5px;
    font-weight: 600;
    color: #1a1a1a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gd-room-sub {
    font-size:10.5px;
    font-weight: 200;
    color: #1a1a1a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gd-room-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    border-radius: 12px;
    background: #f5f5f5;
    text-decoration: none;
    color: inherit;
}

.gd-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.gd-arrow {
    color: #aaa;
    font-size: 14px;
}

.gd-room-meta {
    font-size: 11.5px;
    color: #888;
    margin-top: 2px;
}

.gd-room-badge {
    font-size: 11px;
    font-weight: 700;
    color: #D25534;
    background: #FFF0EB;
    border: 1px solid #FFCCBC;
    padding: 3px 9px;
    border-radius: 20px;
    white-space: nowrap;
    flex-shrink: 0;
}

/* Skeleton ruangan */
.gd-skel-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 14px;
    border: 1px solid #F0F0F3;
    border-radius: 12px;
}

/* Empty */
.gd-modal-empty {
    text-align: center;
    padding: 32px 16px;
    color: #ccc;
}

.gd-modal-empty i {
    font-size: 32px;
    display: block;
    margin-bottom: 10px;
    color: #E0E0E0;
}

.gd-modal-empty p {
    font-size: 13px;
    color: #bbb;
    margin: 0;
}



@media (max-width: 540px) {
    .gd-modal {
        max-height: 92vh;
        border-radius: 14px 14px 0 0;
    }

    .gd-modal-backdrop {
        align-items: flex-end;
        padding: 0;
    }

    .jadwal-event-pill {
        padding: 2px 3px;
        border-radius: 4px;
    }
    .jadwal-event-name {
        font-size: 9px;
    }
    .jadwal-event-loc {
        display: none; /* lokasi disembunyikan, terlalu sempit */
    }
    .jadwal-event-dot {
        display: none;
    }
}
