/* =========================================
   FACILITIES PUBLIC PAGE CSS
========================================= */

body {
    background: #f8fafc;
    font-family: 'Outfit', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #1e293b;
    margin: 0;
    padding: 0;
}

/* ===== HERO ===== */
.facilities-hero {
    position: relative;
    background: linear-gradient(135deg, #091e3a 0%, #1e3a5f 60%, #0f2744 100%);
    padding: 90px 5% 70px;
    text-align: center;
    color: white;
    overflow: hidden;
}

.facilities-hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.hero-eyebrow {
    display: inline-block;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: #60a5fa;
    margin-bottom: 12px;
    background: rgba(96, 165, 250, 0.12);
    padding: 6px 14px;
    border-radius: 20px;
    border: 1px solid rgba(96, 165, 250, 0.25);
}

.facilities-hero h1 {
    font-size: 2.8rem;
    font-weight: 800;
    margin: 0 0 16px 0;
    letter-spacing: -0.5px;
}

.hero-accent {
    background: linear-gradient(135deg, #60a5fa, #93c5fd);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.facilities-hero p {
    font-size: 1.1rem;
    color: #cbd5e1;
    line-height: 1.6;
    margin: 0;
}

/* Background glowing rings */
.hero-rings {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 1;
}

.h-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.r1 { width: 350px; height: 350px; }
.r2 { width: 580px; height: 580px; border-color: rgba(96, 165, 250, 0.08); }
.r3 { width: 820px; height: 820px; }

/* ===== MAIN CONTENT ===== */
.facilities-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 50px 20px 90px;
}

.facilities-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 35px;
    flex-wrap: wrap;
    gap: 15px;
}

.search-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    background: white;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    padding: 10px 18px;
    width: 320px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
    transition: all 0.2s;
}

.search-wrap:focus-within {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37,99,235,0.12);
}

.search-wrap svg {
    color: #94a3b8;
    flex-shrink: 0;
}

.search-wrap input {
    border: none;
    outline: none;
    font-size: 0.95rem;
    width: 100%;
    color: #1e293b;
    font-family: inherit;
}

.facility-count-badge {
    font-size: 0.92rem;
    font-weight: 700;
    color: #475569;
    background: #e2e8f0;
    padding: 6px 14px;
    border-radius: 20px;
}

/* Grid Layout */
.facilities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

/* Facility Card */
.pub-facility-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid #eef2f7;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    display: flex;
    flex-direction: column;
}

.pub-facility-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.1);
    border-color: #bfdbfe;
}

.pub-facility-img-wrap {
    width: 100%;
    height: 210px;
    position: relative;
    overflow: hidden;
    background: #f1f5f9;
}

.pub-facility-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

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

.pub-facility-ph {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    color: #2563eb;
}

.pub-facility-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.pub-facility-body h3 {
    font-size: 1.28rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 10px 0;
    line-height: 1.3;
}

.pub-facility-body p {
    font-size: 0.95rem;
    color: #64748b;
    line-height: 1.6;
    margin: 0;
    /* 2 line clean clamp */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

/* Empty State */
.no-facilities {
    text-align: center;
    padding: 80px 20px;
    background: white;
    border-radius: 20px;
    border: 2px dashed #cbd5e1;
    grid-column: 1 / -1;
}

.no-facilities h3 {
    font-size: 1.3rem;
    color: #334155;
    margin-bottom: 8px;
}

.no-facilities p {
    color: #64748b;
}

@media(max-width: 768px) {
    .facilities-hero {
        padding: 60px 5% 50px;
    }

    .facilities-hero h1 {
        font-size: 2.1rem;
    }

    .facilities-wrapper {
        padding: 30px 16px 60px;
    }

    .facilities-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .search-wrap {
        width: 100%;
        box-sizing: border-box;
    }

    .facilities-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .pub-facility-img-wrap {
        height: 180px;
    }
}
