/* Homepage specific styles */
.hero-section {
    background:
        radial-gradient(circle at 12% 18%, rgba(255, 255, 255, 0.16), transparent 42%),
        radial-gradient(circle at 88% 90%, rgba(14, 165, 233, 0.38), transparent 46%),
        linear-gradient(150deg, #00837f 0%, #006a72 55%, #0b3f53 100%);
    padding: 72px 20px 64px;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

/* Dot grid that fades out towards the edges. */
.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.14) 1px, transparent 1px);
    background-size: 22px 22px;
    mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
}

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

.hero-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 15px;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.hero-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 30px;
    line-height: 1.6;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-top: 30px;
}

.hero-stat {
    text-align: center;
}

.hero-stat-number {
    font-size: 3rem;
    font-weight: 800;
    display: block;
}

.hero-stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.current-time {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 25px;
    padding: 12px 28px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.current-time .time-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    color: #ffffff;
}

.main-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 10px;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1rem;
}

.faskes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 24px;
}

.faskes-card {
    background: var(--surface);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.faskes-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.faskes-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
    gap: 10px;
}

.faskes-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-main);
    margin: 0;
    flex: 1;
}

.status-badge {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.status-buka {
    background: linear-gradient(135deg, #10B981, #059669);
    color: white;
}

.status-tutup {
    background: linear-gradient(135deg, #EF4444, #DC2626);
    color: white;
}

.status-unknown {
    background: var(--muted);
    color: white;
}

.faskes-info {
    flex: 1;
}

.faskes-detail {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.faskes-detail svg {
    flex-shrink: 0;
    margin-top: 2px;
    color: var(--primary-color);
}

.schedule-info {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
}

.vaccine-info {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
}

.vaccine-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.vaccine-chip {
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    border: 1px solid color-mix(in srgb, var(--brand) 35%, transparent);
    background: var(--brand-soft);
    color: var(--brand-ink);
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.4;
}

.schedule-title {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.schedule-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 3px;
}

.schedule-day {
    text-align: center;
    padding: 6px 2px;
    border-radius: 6px;
    font-size: 0.65rem;
    background: var(--surface-2);
}

.schedule-day-name {
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 3px;
    font-size: 0.6rem;
}

.schedule-day-time {
    color: var(--text-main);
    font-weight: 600;
    font-size: 0.6rem;
    line-height: 1.3;
}

.schedule-day.libur {
    background: var(--danger-soft);
    color: var(--danger-ink);
}

.schedule-day.libur .schedule-day-time {
    color: var(--danger-ink);
}

.schedule-day.active {
    background: var(--primary-light);
    border: 2px solid var(--primary-color);
}

.empty-state-modern {
    text-align: center;
    padding: 60px 20px;
    background: var(--surface);
    border-radius: 16px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.empty-state-modern svg {
    width: 80px;
    height: 80px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.empty-state-modern h3 {
    font-size: 1.25rem;
    margin-bottom: 8px;
}

.empty-state-modern p {
    color: var(--text-muted);
}

.footer {
    background: var(--surface);
    color: var(--muted);
    text-align: center;
    padding: 30px 20px;
    margin-top: 40px;
}

.footer p {
    margin: 0;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 1.75rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: 20px;
    }

    .hero-stat-number {
        font-size: 2rem;
    }

    .faskes-grid {
        grid-template-columns: 1fr;
    }

    .schedule-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.faskes-location-link {
    color: var(--primary-color);
    text-decoration: none;
}

.faskes-wa-link {
    color: #128C3E;
    text-decoration: none;
    font-weight: 500;
}

/* A day may list several sessions, one under the other. */
.schedule-sesi {
    display: block;
}

.schedule-sesi + .schedule-sesi {
    margin-top: 4px;
    padding-top: 4px;
    border-top: 1px dashed rgba(0, 0, 0, 0.15);
}

.faskes-today {
    color: var(--text-main);
}

/* Facility filter above the cards (webroot/js/pages/public.js). */
.faskes-filter {
    display: grid;
    gap: 12px;
    margin-bottom: 24px;
    padding: 16px 18px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xs);
}

.faskes-filter-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.faskes-search {
    position: relative;
    flex: 1;
    min-width: 220px;
}

.faskes-search .icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted);
    pointer-events: none;
}

.faskes-search .form-control {
    padding-left: 38px;
}

.filter-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--muted);
}

.vaccine-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.filter-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border-radius: 999px;
    border: 1px solid var(--line-strong);
    background: var(--surface);
    color: var(--ink-2);
    font: inherit;
    font-size: 0.84rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.filter-toggle .icon {
    width: 16px;
    height: 16px;
}

.filter-toggle:hover {
    border-color: var(--brand);
    color: var(--brand-ink);
}

.filter-toggle[aria-pressed="true"] {
    background: var(--brand);
    border-color: var(--brand);
    color: var(--on-brand);
}

.filter-result {
    font-size: 0.8rem;
    color: var(--muted);
}
