/* ══════════════════════════════════════
   SI-LINGKUNGAN — Main Stylesheet
   ══════════════════════════════════════ */

body {
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
}

/* ── Navbar ── */
.navbar-main {
    background: #ffffff;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    padding: .55rem 0;
    position: sticky;
    top: 0;
    z-index: 1040;
}

/* ── Brand Logo (Navbar) ── */
.brand-logo {
    height: 120px;
    width: auto;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 1px 3px rgba(0,0,0,0.08));
    transition: filter .2s;
}

.navbar-center-text {
    margin-left: auto;
    margin-right: auto;
    /* Menggunakan clamp: ukuran minimal 1.2rem, ideal 2.5vw (mengikuti layar), maksimal 3rem */
    font-size: clamp(1.2rem, 2.5vw, 2rem);
    font-weight: 700;
    color: #334155;
    letter-spacing: -.02em;
    white-space: nowrap;
}
.navbar-main:hover .brand-logo {
    filter: drop-shadow(0 2px 6px rgba(0,0,0,0.12));
}

/* ── Hero ── */
.hero {
    position: relative; padding: 7rem 0 6rem; overflow: hidden; background: #f8fafc;
}
.hero::before {
    content: ''; position: absolute; top: -40%; right: -20%; width: 700px; height: 700px;
    background: radial-gradient(circle, rgba(21,128,61,0.06) 0%, transparent 70%); border-radius: 50%; pointer-events: none;
}
.hero::after {
    content: ''; position: absolute; bottom: -30%; left: -15%; width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(37,99,235,0.05) 0%, transparent 70%); border-radius: 50%; pointer-events: none;
}
.hero-badge {
    display: inline-flex; align-items: center; gap: 6px;
    background: rgba(21,128,61,0.07); color: #15803d; font-size: .8rem; font-weight: 600;
    padding: 6px 14px; border-radius: 100px; border: 1px solid rgba(21,128,61,0.1); margin-bottom: 1.5rem;
}
.hero h1 {
    font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 800; line-height: 1.12;
    letter-spacing: -.04em; color: #0f172a; margin-bottom: 1.25rem;
}
.hero h1 .accent { color: #15803d; }
.hero p.lead { font-size: 1.1rem; color: #64748b; max-width: 520px; line-height: 1.7; font-weight: 400; }

/* ── Hero Maps Link ── */
.hero-maps-link {
    display: inline-flex; align-items: center; gap: 6px;
    margin-top: 1.25rem; padding: 8px 18px;
    background: rgba(21,128,61,0.06); color: #15803d;
    font-size: .82rem; font-weight: 600;
    border-radius: 100px; border: 1px solid rgba(21,128,61,0.12);
    text-decoration: none; transition: all .2s;
}
.hero-maps-link:hover {
    background: rgba(21,128,61,0.12);
    border-color: rgba(21,128,61,0.25);
    color: #15803d;
    transform: translateY(-1px);
}

.hero-stats { display: flex; gap: 2.5rem; margin-top: 2.5rem; padding-top: 2rem; border-top: 1px solid #e2e8f0; }
.hero-stats .stat-num { font-size: 1.5rem; font-weight: 800; color: #0f172a; letter-spacing: -.03em; }
.hero-stats .stat-label { font-size: .78rem; color: #94a3b8; font-weight: 500; margin-top: 2px; }
.hero-visual { position: relative; }
.hero-card-float {
    position: absolute; background: #fff; border-radius: 14px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.08); padding: 1rem 1.25rem;
    display: flex; align-items: center; gap: .75rem; animation: floatY 4s ease-in-out infinite; z-index: 2;
}
.hero-card-float.card-1 { top: 10%; right: 0; animation-delay: 0s; }
.hero-card-float.card-2 { bottom: 15%; left: 0; animation-delay: 1.5s; }
.hero-card-float .float-icon { width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; }
.hero-card-float .float-text strong { display: block; font-size: .82rem; color: #0f172a; }
.hero-card-float .float-text span { font-size: .72rem; color: #94a3b8; }
.hero-img-main { width: 100%; height: 380px; object-fit: cover; border-radius: 20px; box-shadow: 0 20px 60px rgba(0,0,0,0.1); }
@keyframes floatY { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ── Quick Nav ── */
.quick-nav { margin-top: -2rem; position: relative; z-index: 10; }
.quick-nav-card {
    background: #fff; border: 1px solid #e2e8f0; border-radius: 16px; padding: 1.5rem;
    text-decoration: none; display: flex; align-items: center; gap: 1rem; transition: all .25s ease; cursor: pointer;
}
.quick-nav-card:hover { border-color: #15803d; box-shadow: 0 8px 25px rgba(21,128,61,0.08); transform: translateY(-3px); color: inherit; }
.quick-nav-icon { width: 52px; height: 52px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 1.4rem; flex-shrink: 0; }
.quick-nav-card h3 { font-size: .95rem; font-weight: 700; color: #0f172a; margin-bottom: 2px; }
.quick-nav-card p { font-size: .78rem; color: #94a3b8; margin: 0; }

/* ── Section Commons ── */
.section-wrap { padding: 5rem 0; }
.section-label {
    display: inline-flex; align-items: center; gap: 6px; font-size: .75rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: .08em; padding: 5px 12px; border-radius: 100px; margin-bottom: .75rem;
}
.section-title { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; color: #0f172a; letter-spacing: -.03em; line-height: 1.2; }
.section-desc { color: #64748b; font-size: .95rem; max-width: 500px; line-height: 1.7; }

/* ── Inline Maps Link (di deskripsi section) ── */
.link-maps-inline {
    display: inline-flex; align-items: center; gap: 4px;
    color: #15803d; font-size: .82rem; font-weight: 600;
    text-decoration: none; border-bottom: 1px dashed rgba(21,128,61,0.3);
    transition: all .2s;
}
.link-maps-inline:hover {
    color: #166534;
    border-bottom-color: #166534;
}

/* ── Facility Tabs ── */
.facility-tabs { border: none; gap: .5rem; }
.facility-tabs .nav-link {
    border: 1.5px solid #e2e8f0; border-radius: 10px; padding: .55rem 1.2rem;
    font-size: .85rem; font-weight: 600; color: #64748b; background: #fff; transition: all .2s;
}
.facility-tabs .nav-link:hover { color: #0f172a; border-color: #cbd5e1; }
.facility-tabs .nav-link.active {
    background: #15803d; color: #fff; border-color: #15803d;
}

/* ── Weekly Slot Table ── */
.slot-table { border-collapse: separate; border-spacing: 0; }
.slot-table thead th {
    background: #f8fafc; font-size: .7rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: .06em; color: #64748b; padding: .75rem .5rem; border-bottom: 2px solid #e2e8f0;
    vertical-align: bottom;
}
.slot-table thead th:first-child { border-radius: 12px 0 0 0; min-width: 100px; }
.slot-table thead th:last-child { border-radius: 0 12px 0 0; }
.day-header-name { font-size: .65rem; color: #94a3b8; text-transform: uppercase; letter-spacing: .04em; }
.day-header-num { font-size: 1.05rem; font-weight: 800; color: #0f172a; margin-top: 2px; }
.day-header-today {
    display: inline-block; font-size: .5rem; font-weight: 700; padding: 1px 5px;
    background: #15803d; color: #fff; border-radius: 4px; margin-top: 3px; text-transform: uppercase; letter-spacing: .04em;
}
.slot-table tbody td {
    padding: .4rem; border-bottom: 1px solid #f1f5f9; vertical-align: middle;
}
.slot-table tbody tr:last-child td { border-bottom: none; }
.slot-table tbody tr:last-child td:first-child { border-radius: 0 0 0 12px; }
.slot-table tbody tr:last-child td:last-child { border-radius: 0 0 12px 0; }
.slot-time-label {
    display: flex; align-items: center; gap: .5rem; font-size: .8rem; font-weight: 600; color: #475569;
    white-space: nowrap; padding-left: .75rem;
}
.slot-time-icon { color: #94a3b8; font-size: 1rem; }

/* ── Slot Pills (3 Status) ── */
.slot-booked, .slot-free, .slot-pending, .slot-confirmed {
    display: block; padding: .5rem .25rem; border-radius: 8px;
    font-size: .72rem; font-weight: 600; text-align: center; transition: all .2s;
}

/* Tersedia — hijau, clickable */
.slot-free {
    background-color: #f0fdf4 !important; color: #15803d; cursor: pointer;
}
.slot-free:hover {
    background-color: #dcfce7 !important; transform: scale(1.06);
    box-shadow: 0 2px 10px rgba(21,128,61,0.18);
}

/* Dipesan — kuning, tidak clickable */
.slot-pending {
    background-color: #fffbeb !important; color: #b45309; cursor: not-allowed;
}

/* Terkonfirmasi — biru, tidak clickable */
.slot-confirmed {
    background-color: #eff6ff !important; color: #1d4ed8; cursor: not-allowed;
}

/* Batal — merah (fallback) */
.slot-booked {
    background-color: #fef2f2 !important; color: #dc2626; cursor: not-allowed;
}

/* ── Gedung Day Cards (3 Status) ── */
.gedung-card {
    border-radius: 14px; padding: 1.25rem 1rem; text-align: center;
    transition: all .25s ease; border: 1.5px solid; position: relative;
}
.gedung-card.available {
    background: #f0fdf4; border-color: #bbf7d0; cursor: pointer;
}
.gedung-card.available:hover {
    border-color: #15803d; box-shadow: 0 4px 15px rgba(21,128,61,0.15); transform: translateY(-3px);
}
.gedung-card.pending {
    background: #fffbeb; border-color: #fde68a; cursor: not-allowed;
}
.gedung-card.confirmed {
    background: #eff6ff; border-color: #bfdbfe; cursor: not-allowed;
}
.gedung-card.cancelled {
    background: #fef2f2; border-color: #fecaca; cursor: not-allowed; opacity: .5;
}
.gedung-card-day { font-size: .68rem; font-weight: 600; text-transform: uppercase; color: #94a3b8; letter-spacing: .04em; }
.gedung-card-num { font-size: 1.6rem; font-weight: 800; color: #0f172a; margin: .2rem 0; }
.gedung-card-status { font-weight: 700; font-size: .82rem; }
.gedung-card-status.avail { color: #15803d; }
.gedung-card-status.pend  { color: #b45309; }
.gedung-card-status.conf  { color: #1d4ed8; }
.gedung-card-status.canc  { color: #dc2626; }
.gedung-card-time { font-size: .7rem; color: #94a3b8; margin-top: .2rem; }

/* ── UMKM Cards ── */
.umkm-card { border: 1px solid #f1f5f9; border-radius: 16px; overflow: hidden; transition: all .3s ease; background: #fff; }
.umkm-card:hover { border-color: #e2e8f0; box-shadow: 0 12px 35px rgba(0,0,0,0.06); transform: translateY(-4px); }
.umkm-img { width: 100%; height: 180px; object-fit: cover; }
.umkm-badge { display: inline-flex; align-items: center; gap: 4px; font-size: .68rem; font-weight: 600; padding: 3px 8px; border-radius: 6px; background: #f0f9ff; color: #0284c7; }
.umkm-card .card-body { padding: 1.15rem; }
.umkm-card .card-title { font-size: .95rem; font-weight: 700; color: #0f172a; margin-bottom: .35rem; }
.umkm-card .umkm-desc { font-size: .8rem; color: #94a3b8; line-height: 1.5; margin-bottom: .85rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.btn-umkm {
    width: 100%; background: #f8fafc; color: #334155; border: 1px solid #e2e8f0; border-radius: 10px;
    padding: .55rem; font-size: .8rem; font-weight: 600; display: flex; align-items: center; justify-content: center; gap: 6px; transition: all .2s;
}
.btn-umkm:hover { background: #15803d; color: #fff; border-color: #15803d; }

/* ── Empty State ── */
.empty-state-modern { padding: 4rem 2rem; text-align: center; }
.empty-icon-ring {
    width: 100px; height: 100px; border-radius: 50%;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 2.2rem; color: #0284c7; margin-bottom: 1.5rem; position: relative;
}
.empty-icon-ring::after {
    content: ''; position: absolute; inset: -6px; border-radius: 50%;
    border: 2px dashed #bae6fd; animation: spinSlow 20s linear infinite;
}
@keyframes spinSlow { to { transform: rotate(360deg); } }

/* ── Modal ── */
.modal-content { border: none; border-radius: 20px; box-shadow: 0 25px 60px rgba(0,0,0,0.15); }
.modal-header { border-bottom: 1px solid #f1f5f9; padding: 1.5rem 1.75rem; }
.modal-body { padding: 1.75rem; }
.modal-footer { border-top: 1px solid #f1f5f9; padding: 1.25rem 1.75rem; }
.form-label { font-size: .78rem; font-weight: 600; color: #475569; text-transform: uppercase; letter-spacing: .04em; margin-bottom: .4rem; }
.form-control, .form-select { border: 1.5px solid #e2e8f0; border-radius: 10px; padding: .65rem .85rem; font-size: .88rem; transition: all .2s; }
.form-control:focus, .form-select:focus { border-color: #15803d; box-shadow: 0 0 0 3px rgba(21,128,61,0.08); }

/* ── Booking Summary in Modal ── */
.booking-summary {
    background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 14px; padding: 1.25rem;
}
.summary-item { display: flex; flex-direction: column; gap: 2px; }
.summary-label { font-size: .68rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: #94a3b8; }
.summary-value { font-size: .92rem; font-weight: 700; color: #0f172a; }

.estimasi-box {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border: 1px solid #bfdbfe; border-radius: 14px; padding: 1.25rem;
}
.estimasi-box .est-label { font-size: .75rem; color: #64748b; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.estimasi-box .est-value { font-size: 1.6rem; font-weight: 800; color: #1e40af; letter-spacing: -.02em; }

/* ── Footer ── */
.footer-modern { background: #0f172a; color: #94a3b8; padding: 3rem 0 1.5rem; }

/* ── Footer Logo ── */
.footer-logo {
    height: 105px;
    width: auto;
    object-fit: contain;
    display: block;
    opacity: .88;
    transition: opacity .2s;
}
.footer-logo:hover { opacity: 1; }

.footer-modern a { color: #94a3b8; text-decoration: none; font-size: .85rem; transition: color .2s; }
.footer-modern a:hover { color: #fff; }

/* ── Footer Contact Link ── */
.footer-contact-link {
    display: inline-flex; align-items: center;
    color: #94a3b8 !important;
    text-decoration: none;
    transition: color .2s;
}
.footer-contact-link:hover {
    color: #fff !important;
}

.footer-bottom { border-top: 1px solid rgba(255,255,255,0.06); margin-top: 2rem; padding-top: 1.25rem; font-size: .78rem; color: #475569; }

/* ── Info Hint ── */
.click-hint {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: .78rem; color: #94a3b8; background: #f8fafc;
    padding: 6px 14px; border-radius: 8px; border: 1px dashed #e2e8f0;
}

/* ── Animations ── */
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .4; } }

/* ── Responsive ── */
@media (max-width: 767.98px) {
    .hero { padding: 5rem 0 4rem; }
    .hero-stats { gap: 1.5rem; flex-wrap: wrap; }
    .hero-visual { margin-top: 2.5rem; }
    .hero-card-float { display: none; }
    .quick-nav { margin-top: -1rem; }
    .section-wrap { padding: 3rem 0; }
    .slot-table thead th { padding: .5rem .25rem; }
    .day-header-num { font-size: .85rem; }
    .slot-time-label { font-size: .7rem; padding-left: .4rem; }
    .slot-booked, .slot-free { font-size: .65rem; padding: .4rem .15rem; }
    .brand-logo { height: 42px; }
    .footer-logo { height: 50px; }
    .hero-maps-link { font-size: .78rem; padding: 7px 14px; }
}