/* ========================================================
   SISTEM INFORMASI & PETA MASJID PARIPURNA PEKANBARU
   Islamic Emerald, Clean Slate, Golden Accent Style
   ======================================================== */

:root {
  --primary-950: #022c22;
  --primary-900: #064e3b;
  --primary-800: #065f46;
  --primary-700: #047857;
  --primary-600: #059669;
  --primary-500: #10b981;
  --primary-100: #d1fae5;
  --primary-50:  #ecfdf5;

  --gold-500: #f59e0b;
  --gold-600: #d97706;
  --gold-100: #fef3c7;

  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-300: #cbd5e1;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --slate-50:  #f8fafc;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--slate-800);
  background-color: #f8fafc;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Navbar */
.main-navbar {
  background: linear-gradient(135deg, #064e3b 0%, #065f46 60%, #047857 100%);
  padding: 0.85rem 0;
  box-shadow: 0 4px 20px rgba(6, 78, 59, 0.25);
  z-index: 1040;
}

.brand-logo-icon {
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.16);
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(8px);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  color: #fbbf24;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.brand-text-main {
  display: block;
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.15;
}

.brand-text-sub {
  display: block;
  font-size: 0.72rem;
  font-weight: 500;
  color: #a7f3d0;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.main-navbar .nav-link {
  color: rgba(255, 255, 255, 0.85);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.55rem 1rem !important;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.main-navbar .nav-link:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-1px);
}

.main-navbar .nav-link.active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.22);
  border-bottom: 2px solid #fbbf24;
}

/* ==========================================================================
   Hero Section & Carousel (3 Sliders)
   ========================================================================== */
.hero-carousel-section {
  position: relative;
  background-color: #064e3b;
  color: #ffffff;
  overflow: hidden;
}

.hero-carousel-section .carousel-item {
  position: relative;
  min-height: 520px;
  overflow: hidden;
}

.hero-slide-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-slide-bg .hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.hero-slide-bg .hero-overlay {
  position: absolute;
  inset: 0;
  background: 
    linear-gradient(135deg, rgba(3, 40, 30, 0.90) 0%, rgba(6, 78, 59, 0.82) 50%, rgba(2, 44, 34, 0.92) 100%),
    radial-gradient(circle at 50% 30%, rgba(251, 191, 36, 0.15), transparent 60%),
    linear-gradient(to top, rgba(2, 44, 34, 0.95) 0%, rgba(6, 78, 59, 0.2) 60%, transparent 100%);
  pointer-events: none;
}

.hero-carousel-section .container {
  z-index: 2;
}

/* Leader Photo Card in Hero */
.pimpinan-hero-card {
  max-width: 240px;
  margin: 0 auto;
  transition: transform 0.3s ease;
}

.pimpinan-hero-card:hover {
  transform: translateY(-5px);
}

.pimpinan-hero-frame {
  aspect-ratio: 3/4;
  max-height: 330px;
  border-radius: 22px;
  overflow: hidden;
  border: 3px solid rgba(251, 191, 36, 0.85);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
  background: #ffffff;
}

.pimpinan-hero-meta h6 {
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
}

/* Quran Verse Box */
.quran-hero-box {
  background: rgba(4, 46, 35, 0.72);
  border: 1.5px solid rgba(251, 191, 36, 0.45);
  backdrop-filter: blur(12px);
  position: relative;
  overflow: hidden;
}

.quran-hero-box::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, #fbbf24, transparent);
}

.arabic-verse {
  font-family: 'Amiri', 'Traditional Arabic', 'Scheherazade New', serif;
  font-size: clamp(1.45rem, 2.6vw, 2.15rem);
  line-height: 1.85;
  color: #fef08a;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  letter-spacing: 0.02em;
}

.verse-translation {
  font-size: clamp(0.88rem, 1.15vw, 1.02rem);
  line-height: 1.6;
  color: #e2e8f0;
}

/* Carousel Indicators & Controls */
.hero-carousel-section .carousel-indicators {
  bottom: 40px;
  z-index: 5;
}

.hero-carousel-section .carousel-indicators [data-bs-target] {
  width: 32px;
  height: 6px;
  border-radius: 4px;
  background-color: rgba(255, 255, 255, 0.45);
  border: none;
  margin: 0 4px;
  transition: all 0.3s ease;
}

.hero-carousel-section .carousel-indicators .active {
  background-color: #fbbf24;
  width: 48px;
}

.hero-carousel-section .carousel-control-prev,
.hero-carousel-section .carousel-control-next {
  width: 5%;
  z-index: 5;
}

.hero-carousel-section .carousel-control-prev-icon,
.hero-carousel-section .carousel-control-next-icon {
  background-size: 55%;
  width: 44px;
  height: 44px;
}

@media (max-width: 991.98px) {
  .hero-carousel-section .carousel-item {
    min-height: auto;
    padding-bottom: 3.5rem;
  }
  .pimpinan-hero-card {
    max-width: 155px;
  }
  .pimpinan-hero-frame {
    max-height: 220px;
    border-radius: 16px;
  }
  .pimpinan-hero-meta h6 {
    font-size: 0.8rem;
  }
  .hero-carousel-section .carousel-control-prev,
  .hero-carousel-section .carousel-control-next {
    display: none;
  }
}

/* Legacy Hero Section (fallback) */
.hero-section {
  position: relative;
  background-color: #064e3b;
  color: #ffffff;
  padding: 5.5rem 0 4.5rem;
  overflow: hidden;
  min-height: 420px;
}

.hero-bg-lcp {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  z-index: 0;
  pointer-events: none;
}

.hero-pattern {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: 
    linear-gradient(135deg, rgba(4, 46, 35, 0.82) 0%, rgba(6, 78, 59, 0.72) 50%, rgba(4, 78, 56, 0.84) 100%),
    radial-gradient(circle at 85% 20%, rgba(251, 191, 36, 0.18), transparent 50%),
    linear-gradient(to top, rgba(2, 44, 34, 0.95) 0%, rgba(6, 78, 59, 0.2) 60%, transparent 100%);
  pointer-events: none;
}

.hero-section > .container {
  z-index: 2;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(8px);
  padding: 0.35rem 0.95rem;
  border-radius: 9999px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #fef08a;
  margin-bottom: 1.25rem;
}

.hero-title {
  font-size: 2.85rem;
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
}

.hero-desc {
  font-size: 1.05rem;
  line-height: 1.65;
  color: #d1fae5;
  margin-bottom: 2rem;
  max-width: 650px;
}

/* Stat Cards */
.stat-card {
  background: #ffffff;
  border: 1px solid var(--slate-200);
  border-radius: 16px;
  padding: 1.35rem 1.5rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(6, 95, 70, 0.1);
  border-color: var(--primary-500);
}

.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
}

.stat-number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--slate-900);
  line-height: 1;
}

.stat-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--slate-500);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Section Header */
.section-badge {
  display: inline-block;
  padding: 0.3rem 0.85rem;
  background: var(--primary-100);
  color: var(--primary-800);
  border-radius: 9999px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.65rem;
}

.section-title {
  font-size: 1.95rem;
  font-weight: 800;
  color: var(--slate-900);
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.section-desc {
  font-size: 0.98rem;
  color: var(--slate-600);
  max-width: 650px;
  line-height: 1.6;
}

/* Feature Pillar Cards (Idarah, Imarah, Ri'ayah) */
.pillar-card {
  background: #ffffff;
  border: 1px solid var(--slate-200);
  border-radius: 20px;
  padding: 2rem 1.75rem;
  height: 100%;
  transition: all 0.25s ease;
  position: relative;
}

.pillar-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary-600);
  box-shadow: 0 12px 28px rgba(6, 78, 59, 0.08);
}

.pillar-icon-box {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 1.25rem;
}

.pillar-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--slate-900);
  margin-bottom: 0.65rem;
}

.pillar-text {
  font-size: 0.88rem;
  color: var(--slate-600);
  line-height: 1.6;
}

/* Mosque Card */
.mosque-box {
  background: #ffffff;
  border: 1px solid var(--slate-200);
  border-radius: 16px;
  padding: 1.25rem;
  transition: all 0.2s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.mosque-box:hover {
  border-color: var(--primary-500);
  box-shadow: 0 8px 20px rgba(6, 95, 70, 0.08);
  transform: translateY(-2px);
}

.badge-tingkat-kota {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
  font-weight: 700;
}

.badge-tingkat-kecamatan {
  background: #d1fae5;
  color: #065f46;
  border: 1px solid #a7f3d0;
  font-weight: 700;
}

.badge-tingkat-kelurahan {
  background: #e0f2fe;
  color: #0369a1;
  border: 1px solid #bae6fd;
  font-weight: 700;
}

/* Activity / Kegiatan Cards */
.activity-card {
  background: #ffffff;
  border: 1px solid var(--slate-200);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.25s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.activity-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary-500);
  box-shadow: 0 10px 24px rgba(6, 78, 59, 0.08);
}

.activity-date-badge {
  background: var(--primary-50);
  border-right: 1px solid var(--primary-100);
  padding: 1.25rem;
  text-align: center;
  min-width: 90px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.activity-day {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--primary-800);
  line-height: 1;
}

.activity-month {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary-600);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Pengurus Cards (Badan Pelaksana & Pengawas) */
.pengurus-card {
  background: #ffffff;
  border: 1px solid var(--slate-200);
  border-radius: 16px;
  padding: 1.35rem;
  text-align: center;
  transition: all 0.25s ease;
  height: 100%;
}

.pengurus-card:hover {
  transform: translateY(-3px);
  border-color: var(--primary-500);
  box-shadow: 0 8px 20px rgba(6, 95, 70, 0.08);
}

.pengurus-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-100), var(--primary-50));
  border: 2.5px solid var(--primary-500);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.85rem;
  color: var(--primary-700);
  margin: 0 auto 1rem;
}

.pengurus-card.pengawas .pengurus-avatar {
  background: linear-gradient(135deg, #fef3c7, #fef9c3);
  border-color: var(--gold-500);
  color: #b45309;
}

.pengurus-nama {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--slate-900);
  margin-bottom: 0.25rem;
}

.pengurus-jabatan {
  display: inline-block;
  padding: 0.2rem 0.65rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 0.5rem;
}

.jabatan-mufti {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
}

.jabatan-ketua {
  background: #d1fae5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.jabatan-umum {
  background: #e0f2fe;
  color: #0369a1;
  border: 1px solid #bae6fd;
}

.pengurus-photo-wrapper {
  position: relative;
  width: 140px;
  height: 140px;
  margin: 0 auto 1.25rem;
  border-radius: 50%;
  padding: 4px;
  background: linear-gradient(135deg, #059669, #34d399);
  box-shadow: 0 8px 24px rgba(5, 150, 105, 0.22);
  transition: all 0.3s ease;
}

.pengurus-photo-wrapper.pengawas {
  background: linear-gradient(135deg, #d97706, #fbbf24);
  box-shadow: 0 8px 24px rgba(217, 119, 6, 0.22);
}

.pengurus-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid #ffffff;
  display: block;
  transition: transform 0.3s ease;
}

.pengurus-card:hover .pengurus-photo-wrapper {
  transform: translateY(-2px) scale(1.03);
}

.pengurus-photo-placeholder {
  width: 140px;
  height: 140px;
  margin: 0 auto 1.25rem;
  border-radius: 50%;
  background: #f8fafc;
  border: 2.5px dashed #cbd5e1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  font-size: 2.5rem;
  transition: all 0.3s ease;
}

.pengurus-photo-placeholder.mufti {
  border-color: #fde68a;
  background: #fffdf5;
  color: #d97706;
}

.pengurus-card:hover .pengurus-photo-placeholder {
  border-color: #059669;
  color: #059669;
  background: #ecfdf5;
  transform: translateY(-2px) scale(1.03);
}

.pengurus-card:hover .pengurus-photo-placeholder.mufti {
  border-color: #d97706;
  color: #d97706;
  background: #fefce8;
  transform: translateY(-2px) scale(1.03);
}

/* Footer */
.main-footer {
  background: linear-gradient(135deg, #022c22 0%, #064e3b 100%);
  color: #ffffff;
  margin-top: auto;
}

.footer-logo-icon {
  width: 38px;
  height: 38px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fbbf24;
  font-size: 1.15rem;
}

.text-muted-light {
  color: rgba(255, 255, 255, 0.72) !important;
}

.text-emerald-300 {
  color: #6ee7b7 !important;
}

.bg-emerald-light {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-links a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  font-size: 0.88rem;
  transition: all 0.2s ease;
}

.footer-links a:hover {
  color: #ffffff;
  padding-left: 4px;
}

/* Map specific in peta.php */
.map-page-wrapper {
  height: calc(100vh - 120px);
  position: relative;
  overflow: hidden;
}

/* Custom Marker Pins */
.custom-pin {
  display: flex;
  align-items: center;
  justify-content: center;
}

.pin-bubble {
  width: 38px;
  height: 38px;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s;
}

.pin-bubble:hover {
  transform: rotate(-45deg) scale(1.15);
}

.pin-bubble i {
  transform: rotate(45deg);
  font-size: 15px;
  color: white;
}

.pin-kota .pin-bubble {
  background: linear-gradient(135deg, #d97706, #f59e0b);
  border: 2.5px solid #ffffff;
  width: 44px;
  height: 44px;
}
.pin-kota .pin-bubble i {
  font-size: 18px;
}

.pin-kecamatan .pin-bubble {
  background: linear-gradient(135deg, #065f46, #059669);
  border: 2px solid #ffffff;
}

.pin-kelurahan .pin-bubble {
  background: linear-gradient(135deg, #0369a1, #0284c7);
  border: 2px solid #ffffff;
  width: 32px;
  height: 32px;
}
.pin-kelurahan .pin-bubble i {
  font-size: 13px;
}

/* Marker Cluster */
.marker-cluster-small,
.marker-cluster-medium,
.marker-cluster-large {
  background-color: rgba(5, 150, 105, 0.25) !important;
}

.marker-cluster-small div,
.marker-cluster-medium div,
.marker-cluster-large div {
  background-color: #065f46 !important;
  color: #ffffff !important;
  font-family: inherit !important;
  font-weight: 700 !important;
}

/* Leaflet Popup Styling */
.leaflet-popup-content-wrapper {
  padding: 0 !important;
  border-radius: 16px !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18) !important;
  overflow: hidden;
}

.leaflet-popup-content {
  margin: 0 !important;
  min-width: 270px;
}

/* Responsive */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.15rem;
  }
  .section-title {
    font-size: 1.6rem;
  }
}
