/* ==========================================================================
   LUCKNOW IMAMBARA - AUTHENTIC HERITAGE STYLES (MATCHING SITE THEME)
   Theme: #006359 (Emerald), #199591 (Aqua/Teal border), #feffd6 (Cream), #1c3d3c
   ========================================================================== */

/* Section Wrapper */
.heritage-section-clean {
  padding: 4rem 0;
  background-color: #ffffff;
}

/* Prophetic Hadith Card */
.hadith-quote-wrap {
  background: #006359;
  border-radius: 25px;
  padding: 2.2rem 2rem;
  color: #ffffff;
  box-shadow: 0 4px 20px rgba(0, 99, 89, 0.15);
}

.hadith-quote-wrap .hadith-arabic {
  font-family: "Playfair Display", serif;
  font-size: 1.5rem;
  color: #feffd6;
  margin-bottom: 0.6rem;
  line-height: 1.4;
}

.hadith-quote-wrap .hadith-translation {
  font-size: 1.05rem;
  color: #ffffff;
  line-height: 1.6;
}

.hadith-quote-wrap .hadith-ref {
  color: #7cfad3;
  font-size: 0.85rem;
  margin-top: 0.6rem;
}

/* ==========================================================================
   PREMIUM 3-COLUMN CHRONICLE TRIO (COMPACT, HIGH-END HERITAGE CARDS)
   ========================================================================== */
.chronicle-trio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
  margin-bottom: 2.5rem;
}

@media (max-width: 991px) {
  .chronicle-trio-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
}

.chronicle-card {
  background: #ffffff;
  border: 2px solid #199591;
  border-radius: 24px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease;
  box-shadow: 0 4px 16px rgba(0, 99, 89, 0.05);
  text-align: left;
}

.chronicle-card:hover {
  transform: translateY(-5px);
  border-color: #006359;
  box-shadow: 0 14px 32px rgba(0, 99, 89, 0.12);
}

.chronicle-img-frame {
  height: 190px;
  background: radial-gradient(circle at center, #ffffff 40%, #edf7f5 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  position: relative;
  border-bottom: 1px solid rgba(25, 149, 145, 0.2);
  overflow: hidden;
}

.chronicle-img-frame img {
  max-height: 100%;
  max-width: 90%;
  object-fit: contain;
  transition: transform 0.4s ease;
}

.chronicle-card:hover .chronicle-img-frame img {
  transform: scale(1.06);
}

.chronicle-body {
  padding: 1.5rem 1.35rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.chronicle-badge {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #006359;
  background: #eef7f5;
  border: 1px solid rgba(25, 149, 145, 0.35);
  padding: 0.2rem 0.65rem;
  border-radius: 12px;
  margin-bottom: 0.75rem;
}

.chronicle-title {
  font-family: "Playfair Display", serif;
  font-size: 1.25rem;
  font-weight: 800;
  color: #006359;
  margin-bottom: 0.75rem;
  line-height: 1.35;
}

.chronicle-text {
  font-size: 0.88rem;
  line-height: 1.6;
  color: #555555;
  margin-bottom: 0.6rem;
}

.chronicle-text:last-child {
  margin-bottom: 0;
}

.chronicle-text b {
  color: #1c3d3c;
  font-weight: 700;
}

/* Urdu RTL Chronicle Card Alignment */
body.urdu-lang .chronicle-card,
[dir="rtl"] .chronicle-card {
  text-align: right !important;
}

body.urdu-lang .chronicle-badge,
[dir="rtl"] .chronicle-badge {
  align-self: flex-end;
}

body.urdu-lang .chronicle-title,
[dir="rtl"] .chronicle-title {
  font-family: "Gulzar", serif;
  font-size: 1.35rem;
}

/* Sayings Grid (Matching Bada-Card Style) */
.sayings-clean-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.saying-card-heritage {
  border: 2px solid #199591;
  border-radius: 20px;
  padding: 1.5rem 1.6rem;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.saying-card-heritage:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 99, 89, 0.1);
}

.saying-card-heritage .saying-arabic {
  font-family: "Playfair Display", serif;
  font-size: 1.2rem;
  color: #006359;
  font-weight: 700;
  margin-bottom: 0.6rem;
}

.saying-card-heritage .saying-text {
  font-size: 0.9rem;
  color: #555555;
  line-height: 1.55;
  font-style: italic;
  margin-bottom: 0.6rem;
}

.saying-card-heritage .saying-category {
  font-size: 0.8rem;
  color: #006359;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Moral Pillars Grid */
.pillars-clean-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}

.pillar-card-heritage {
  border: 2px solid #199591;
  border-radius: 20px;
  padding: 1.5rem 1.4rem;
  background: #ffffff;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.pillar-card-heritage:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 99, 89, 0.1);
}

.pillar-card-heritage h4 {
  font-family: "Playfair Display", serif;
  color: #006359;
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
}

.pillar-card-heritage p {
  font-size: 0.88rem;
  color: #555555;
  line-height: 1.55;
  margin-bottom: 0;
}

/* Tributes Grid */
.tributes-clean-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}

.tribute-card-heritage {
  border: 2px solid #199591;
  border-radius: 20px;
  padding: 1.5rem 1.4rem;
  background: #feffd6;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.tribute-card-heritage:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 99, 89, 0.1);
}

.tribute-card-heritage .tribute-text {
  font-size: 0.9rem;
  color: #333333;
  line-height: 1.55;
  font-style: italic;
  margin-bottom: 1rem;
}

.tribute-card-heritage .tribute-author-name {
  font-weight: 700;
  color: #006359;
  font-size: 1rem;
  margin-bottom: 0.2rem;
}

.tribute-card-heritage .tribute-author-role {
  font-size: 0.8rem;
  color: #666666;
}

/* Plan Your Visit / Info Grid */
.plan-visit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.plan-info-card {
  border: 2px solid #199591;
  border-radius: 25px;
  padding: 2.2rem;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.plan-info-card.accent-card {
  background: #feffd6;
}

.plan-info-card h3 {
  font-family: "Playfair Display", serif;
  color: #006359;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(0, 99, 89, 0.15);
}

.plan-table {
  width: 100%;
  margin-bottom: 1rem;
}

.plan-table td {
  padding: 0.6rem 0;
  font-size: 0.95rem;
  border-bottom: 1px dashed rgba(0, 99, 89, 0.15);
  color: #444444;
}

.plan-table td:last-child {
  text-align: right;
  font-weight: 700;
  color: #006359;
}

.guidelines-list {
  padding-left: 1.2rem;
  margin-bottom: 0;
}

.guidelines-list li {
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
  color: #444444;
  line-height: 1.6;
}

.plan-note {
  background: rgba(0, 99, 89, 0.08);
  border-left: 3px solid #006359;
  padding: 0.6rem 0.85rem;
  font-size: 0.85rem;
  color: #006359;
  border-radius: 4px;
  margin-top: 1rem;
}

/* Map Layout */
.map-layout-clean {
  display: grid;
  grid-template-columns: 1.8fr 1.2fr;
  gap: 2rem;
  border: 2px solid #199591;
  border-radius: 25px;
  padding: 1.5rem;
  background: #ffffff;
}

@media (max-width: 900px) {
  .map-layout-clean {
    grid-template-columns: 1fr;
  }
}

.leaflet-frame-clean {
  width: 100%;
  height: 420px;
  border-radius: 18px;
  border: 1px solid #199591;
  overflow: hidden;
}

.map-sidebar-clean {
  padding: 0.5rem;
}

.map-sidebar-clean h3 {
  font-family: "Playfair Display", serif;
  color: #006359;
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 1.2rem;
}

.trail-clean-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.trail-clean-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(0, 99, 89, 0.2);
  border-radius: 12px;
  background: #feffd6;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.trail-clean-item:hover, .trail-clean-item.active {
  background: #006359;
  color: #ffffff;
  border-color: #006359;
}

.trail-clean-item:hover h4, .trail-clean-item.active h4 {
  color: #ffffff !important;
}

.trail-clean-item:hover span, .trail-clean-item.active span {
  color: #feffd6 !important;
}

.trail-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #006359;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.trail-clean-item.active .trail-num, .trail-clean-item:hover .trail-num {
  background: #ffffff;
  color: #006359;
}

.trail-clean-meta h4 {
  font-size: 1rem;
  font-weight: 700;
  color: #006359;
  margin: 0;
}

.trail-clean-meta span {
  font-size: 0.8rem;
  color: #666666;
}
