/* ==========================================================================
   SMP NEGERI 2 TAROKAN - DEDICATED FASILITAS & SARANA KAMPUS PAGE
   Font Signature: Quicksand (SLiMS 9 Bulian Theme)
   Palette: Deep Navy (#0a2342) & Prestasi Gold (#f59e0b)
   ========================================================================== */

.fac-page {
    background: #f8fafc;
    min-height: 80vh;
    padding-bottom: 80px;
    font-family: 'Quicksand', -apple-system, BlinkMacSystemFont, sans-serif;
    color: #1e293b;
}

/* --------------------------------------------------------------------------
   HERO HEADER
   -------------------------------------------------------------------------- */
.fac-hero {
    position: relative;
    background: linear-gradient(135deg, #07192e 0%, #0a2342 55%, #154a8a 100%);
    color: #ffffff;
    padding: 56px 0 68px;
    overflow: hidden;
    border-bottom: 3px solid #f59e0b;
}

.fac-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(circle at 18% 22%, rgba(245, 158, 11, 0.14) 0%, transparent 45%),
        radial-gradient(circle at 82% 78%, rgba(59, 130, 246, 0.16) 0%, transparent 50%);
    pointer-events: none;
}

.fac-hero-inner {
    position: relative;
    z-index: 2;
    max-width: 960px;
    margin: 0 auto;
    text-align: center;
}

.fac-breadcrumbs {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #94a3b8;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
    padding: 6px 16px;
    border-radius: 999px;
    margin-bottom: 24px;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.fac-breadcrumbs a {
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.2s ease;
}

.fac-breadcrumbs a:hover {
    color: #fbbf24;
}

.fac-breadcrumbs .sep {
    color: #64748b;
    font-size: 0.8rem;
}

.fac-breadcrumbs .active {
    color: #fbbf24;
}

.fac-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(245, 158, 11, 0.18);
    color: #fcd34d;
    border: 1px solid rgba(245, 158, 11, 0.4);
    padding: 6px 16px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.fac-hero-badge .badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #fbbf24;
    box-shadow: 0 0 8px #fbbf24;
}

.fac-hero h1 {
    font-size: 2.6rem;
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 16px;
    color: #ffffff;
    letter-spacing: -0.01em;
}

.fac-hero h1 span {
    color: #fbbf24;
    display: inline-block;
}

.fac-hero p {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #cbd5e1;
    max-width: 780px;
    margin: 0 auto 32px;
}

/* Quick Stats Bar */
.fac-hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.fac-stat-pill {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    padding: 8px 18px;
    border-radius: 999px;
    font-size: 0.88rem;
    font-weight: 700;
    color: #f8fafc;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.25s ease;
}

.fac-stat-pill:hover {
    background: rgba(245, 158, 11, 0.22);
    border-color: #fbbf24;
    color: #fbbf24;
    transform: translateY(-2px);
}

/* --------------------------------------------------------------------------
   MAIN LAYOUT & CONTROLS
   -------------------------------------------------------------------------- */
.fac-main-wrapper {
    margin-top: -28px;
    position: relative;
    z-index: 10;
}

.fac-control-bar {
    background: #ffffff;
    padding: 16px 22px;
    border-radius: 20px;
    box-shadow: 0 8px 26px rgba(15, 23, 42, 0.08);
    border: 1px solid #e2e8f0;
    margin-bottom: 36px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.fac-category-tabs {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: thin;
    max-width: 100%;
}

.fac-category-tabs::-webkit-scrollbar {
    height: 3px;
}

.fac-category-tabs::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

.fac-cat-btn {
    border: none;
    background: #f1f5f9;
    color: #475569;
    font-family: inherit;
    font-size: 0.88rem;
    font-weight: 700;
    padding: 8px 16px;
    border-radius: 999px;
    cursor: pointer;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.fac-cat-btn:hover {
    background: #e2e8f0;
    color: #0a2342;
}

.fac-cat-btn.is-active {
    background: #0a2342;
    color: #fbbf24;
    box-shadow: 0 4px 12px rgba(10, 35, 66, 0.25);
}

.fac-cat-btn .badge-num {
    background: rgba(0, 0, 0, 0.08);
    font-size: 0.75rem;
    padding: 2px 7px;
    border-radius: 999px;
}

.fac-cat-btn.is-active .badge-num {
    background: rgba(251, 191, 36, 0.25);
    color: #fef08a;
}

.fac-search-box {
    position: relative;
    min-width: 240px;
    flex-shrink: 0;
}

.fac-search-input {
    width: 100%;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 999px;
    padding: 8px 16px 8px 36px;
    font-family: inherit;
    font-size: 0.88rem;
    font-weight: 600;
    color: #1e293b;
    outline: none;
    transition: all 0.2s ease;
}

.fac-search-input:focus {
    background: #ffffff;
    border-color: #f59e0b;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.18);
}

.fac-search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    pointer-events: none;
}

/* --------------------------------------------------------------------------
   FACILITIES GRID (3 COLUMNS)
   -------------------------------------------------------------------------- */
.fac-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-bottom: 56px;
}

@media (max-width: 1100px) {
    .fac-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

.fac-card {
    background: #ffffff;
    border-radius: 22px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.04);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

.fac-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 36px -8px rgba(10, 35, 66, 0.12);
    border-color: #cbd5e1;
}

.fac-card.highlight {
    border-top: 4px solid #f59e0b;
}

.fac-card.blue-top {
    border-top: 4px solid #154a8a;
}

.fac-card-img-wrap {
    width: 100%;
    height: 190px;
    overflow: hidden;
    position: relative;
    background: #f1f5f9;
    border-bottom: 1px solid #e2e8f0;
}

.fac-card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.fac-card:hover .fac-card-img-wrap img {
    transform: scale(1.05);
}

.fac-card-header {
    padding: 24px 24px 16px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.fac-card-cat {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 999px;
    background: #f1f5f9;
    color: #475569;
    margin-bottom: 8px;
}

.fac-card.highlight .fac-card-cat {
    background: #fef3c7;
    color: #92400e;
}

.fac-card.blue-top .fac-card-cat {
    background: #e0f2fe;
    color: #0369a1;
}

.fac-card-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0a2342;
    line-height: 1.35;
    margin: 0;
}

.fac-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: linear-gradient(135deg, #0a2342, #154a8a);
    color: #fbbf24;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
    box-shadow: 0 6px 14px rgba(10, 35, 66, 0.15);
}

.fac-card.highlight .fac-card-icon {
    background: linear-gradient(135deg, #b45309, #f59e0b);
    color: #ffffff;
}

.fac-card-body {
    padding: 0 24px 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.fac-specs-badge {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 10px 14px;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    font-weight: 700;
    color: #334155;
}

.fac-specs-badge .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #f59e0b;
}

.fac-card-desc {
    font-size: 0.92rem;
    line-height: 1.65;
    color: #475569;
    margin-bottom: 16px;
}

.fac-features-title {
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #94a3b8;
    margin-bottom: 8px;
}

.fac-tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 18px;
}

.fac-tag {
    background: #f1f5f9;
    color: #334155;
    font-size: 0.76rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
}

.fac-activity-box {
    margin-top: auto;
    padding: 12px 14px;
    border-radius: 12px;
    background: #fafafa;
    border-left: 3px solid #154a8a;
    font-size: 0.84rem;
    line-height: 1.5;
    color: #334155;
}

.fac-card.highlight .fac-activity-box {
    border-left-color: #f59e0b;
    background: #fffdf5;
}

.fac-activity-box strong {
    color: #0a2342;
    display: block;
    margin-bottom: 2px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

/* Empty State */
.fac-empty-state {
    display: none;
    text-align: center;
    background: #ffffff;
    border-radius: 20px;
    padding: 48px 24px;
    border: 2px dashed #cbd5e1;
    margin: 20px 0 40px;
    grid-column: 1 / -1;
}

.fac-empty-state.is-visible {
    display: block;
}

/* --------------------------------------------------------------------------
   STANDARD OPERATING PROCEDURE (SOP SARPRAS)
   -------------------------------------------------------------------------- */
.fac-sop-section {
    background: linear-gradient(135deg, #0a2342 0%, #154a8a 100%);
    border-radius: 24px;
    padding: 44px 40px;
    color: #ffffff;
    margin-bottom: 56px;
    box-shadow: 0 12px 36px rgba(10, 35, 66, 0.2);
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.fac-sop-head {
    max-width: 720px;
    margin-bottom: 32px;
}

.fac-sop-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(245, 158, 11, 0.2);
    color: #fcd34d;
    border: 1px solid rgba(245, 158, 11, 0.4);
    padding: 4px 14px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.fac-sop-head h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 10px;
}

.fac-sop-head p {
    font-size: 0.95rem;
    line-height: 1.65;
    color: #cbd5e1;
    margin: 0;
}

.fac-sop-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

@media (max-width: 860px) {
    .fac-sop-grid {
        grid-template-columns: 1fr;
    }
}

.fac-sop-card {
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 16px;
    padding: 24px 20px;
    backdrop-filter: blur(8px);
}

.fac-sop-icon {
    font-size: 1.6rem;
    margin-bottom: 12px;
}

.fac-sop-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #fbbf24;
    margin-bottom: 8px;
}

.fac-sop-card p {
    font-size: 0.88rem;
    line-height: 1.6;
    color: #e2e8f0;
    margin: 0;
}

/* --------------------------------------------------------------------------
   BOTTOM NAVIGATION / CTA
   -------------------------------------------------------------------------- */
.fac-bottom-bar {
    background: #ffffff;
    border-radius: 20px;
    padding: 32px;
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.04);
}

@media (max-width: 768px) {
    .fac-bottom-bar {
        flex-direction: column;
        text-align: center;
    }
}

.fac-bottom-bar h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0a2342;
    margin-bottom: 6px;
}

.fac-bottom-bar p {
    font-size: 0.92rem;
    color: #64748b;
    margin: 0;
}

.fac-bottom-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.fac-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: 12px;
    font-size: 0.92rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.25s ease;
    font-family: inherit;
}

.fac-btn.primary {
    background: #0a2342;
    color: #fbbf24;
    box-shadow: 0 4px 14px rgba(10, 35, 66, 0.2);
}

.fac-btn.primary:hover {
    background: #154a8a;
    color: #ffffff;
    transform: translateY(-2px);
}

.fac-btn.gold {
    background: #f59e0b;
    color: #0a2342;
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.3);
}

.fac-btn.gold:hover {
    background: #fbbf24;
    transform: translateY(-2px);
}

.fac-btn.secondary {
    background: #f1f5f9;
    color: #334155;
    border: 1px solid #cbd5e1;
}

.fac-btn.secondary:hover {
    background: #e2e8f0;
    color: #0a2342;
    transform: translateY(-2px);
}

/* Responsiveness */
@media (max-width: 768px) {
    .fac-hero {
        padding: 40px 0 48px;
    }

    .fac-hero h1 {
        font-size: 1.85rem;
    }

    .fac-control-bar {
        padding: 14px 16px;
    }

    .fac-search-box {
        width: 100%;
    }

    .fac-sop-section {
        padding: 32px 20px;
    }
}
