/* تنسيق عام للصفحة */
body {
    font-family: Arial, sans-serif;
    background-color: #ffffff;
    color: #4b4b4b;
    margin: 0;
    padding: 0;
}

/* تنسيق شريط التنقل (новое меню) */
body {
    font-family: Arial, sans-serif;
    background-color: #ffffff;
    color: #4b4b4b;
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
}

.main-nav {
    background-color: #ffffff;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    box-shadow: 0 4px 12px rgba(0,0,0,0.04);
    padding: 8px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.main-nav .navbar-brand {
    font-weight: 600;
    color: #333333 !important;
    font-size: 1.05rem;
}

.main-nav .brand-icon-wrap {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #e3f2fd;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1976d2;
    font-size: 14px;
}

.main-nav .brand-text {
    white-space: nowrap;
}

.main-nav .nav-link {
    font-size: 0.95rem;
    color: #616161 !important;
    padding: 6px 10px;
    margin: 0 4px;
    border-radius: 999px;
    transition: background-color 0.2s ease, color 0.2s ease;
    display: flex;
    align-items: center;
}

.main-nav .nav-link i {
    font-size: 0.85rem;
}

.main-nav .nav-link:hover {
    background-color: #f2f4f7;
    color: #212121 !important;
}

.nav-cta {
    padding-inline: 14px;
    border-radius: 999px;
    font-size: 0.9rem;
}

/* تخصيص تنسيق الصورة المفردة */
.single-image-section {
    margin:  0;
    text-align: center;
    padding: 4px;
}

.single-image-section img {
    width: 100%; /* يشغل عرض الصفحة بالكامل */
    height: 600px;; /* يحافظ على نسبة العرض إلى الارتفاع */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    border-radius: 2px;
}

/* HERO */
.hero-section {
    background: #ffffff;
    padding: 56px 0 40px;
    border-bottom: 1px solid rgba(0,0,0,0.04);
}

.hero-kicker {
    font-size: 0.85rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #9e9e9e;
    margin-bottom: 8px;
}

.hero-title {
    font-size: 2.4rem;
    font-weight: 700;
    color: #272727;
    margin-bottom: 12px;
}

.hero-subtitle {
    font-size: 1.05rem;
    color: #555555;
    max-width: 580px;
    margin-bottom: 20px;
}

.hero-actions .btn-primary {
    background-color: #1976d2;
    border-color: #1976d2;
}

.hero-actions .btn-primary:hover {
    background-color: #115293;
    border-color: #115293;
}

.hero-actions .btn-outline-secondary {
    border-color: #bdbdbd;
    color: #555555;
}

.hero-actions .btn-outline-secondary:hover {
    background-color: #f5f5f5;
    color: #333333;
}

.hero-stats-card {
    background: #fafafa;
    border-radius: 16px;
    padding: 20px 18px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
    border: 1px solid rgba(0,0,0,0.04);
}

.hero-stat + .hero-stat {
    margin-top: 10px;
}

.hero-stat .label {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #9e9e9e;
}

.hero-stat .value {
    display: block;
    font-size: 1.3rem;
    font-weight: 600;
    color: #424242;
}

.hero-stat .hint {
    display: block;
    font-size: 0.85rem;
    color: #757575;
}

@media (max-width: 768px) {
    .hero-section {
        padding: 36px 0 28px;
    }

    .hero-title {
        font-size: 1.9rem;
    }
}

/* تنسيق قسم مشاهير المدينة */
.celebrities-section {
    background-color: #f5f5f5;
    padding: 30px 0;
}

.celebrities-title {
    font-size: 28px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.celebrities-subtitle {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
}

.celebrities-card {
    text-align: left;
    background-color: white;
    padding: 12px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.celebrities-card img {
    border-radius: 8px;
    margin-bottom: 6px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    width: 180px; 
    height: 260px; 
    object-fit: cover;
}

.celebrities-caption {
    font-size: 14px;
    color: #333;
    font-weight: 500;
    background-color: rgba(255, 255, 255, 0.9);
    padding: 4px 6px;
    border-radius: 5px;
    text-align: center;
}


.row {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start; /* тизменение от space-around к flex-start */
    margin-left: -15px;
    margin-right: -15px;
}
/* الخط الفاصل */
.separator-line {
    border-top: 3px solid #FFC107;
    margin: 0;
}

/* تنسيق الفوتر */
.footer {
    background: radial-gradient(circle at top left, #2f3b4c 0, #121212 60%);
    color: white;
    padding: 30px 0 20px;
    text-align: left;
    margin-top: 0;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.footer .footer-box {
    background-color: transparent;
    padding: 10px 0;
    border-radius: 0;
    margin-bottom: 10px;
    color: #fff;
    box-shadow: none;
}

.footer h5 {
    margin-bottom: 15px;
}

.footer a {
    color: #ddd;
    text-decoration: none;
}

.footer a:hover {
    color: #fff;
}

.footer-link {
    color: #f5f5f5;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.footer-link:hover {
    color: #ffffff;
}

/* تنسيق روابط التواصل الاجتماعي */
.social-links {
    margin-top: 15px;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.social-links a {
    font-size: 24px;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: #fff;
}

.footer .row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    row-gap: 20px;
}

.footer .footer-box {
    flex: 1 1 30%;
    min-height: auto;
}


/* تنسيق map: светлый flat-стиль */

.map-container {
    background-color: #ffffff;
    padding: 60px 0;
}

.map-header .map-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #e3f2fd;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 16px;
    color: #1976d2;
    font-size: 20px;
}

.map-title {
    font-size: 1.9rem;
    color: #212121;
    font-weight: 700;
}

.map-subtitle {
    font-size: 0.95rem;
    color: #757575;
}

.map-wrapper {
    position: relative;
    display: block;
    max-width: 100%;
    border-radius: 18px;
    overflow: hidden;
    background: #fafafa;
}

.mapimg {
    width: 100%;
    height: auto;
    display: block;
}

.sector-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 2;
}

/* подсветка секторов в flat/полу-3D стиле */
.sector-overlay polygon {
    transform-origin: center;
    fill: rgba(25, 118, 210, 0.18);
    stroke: rgba(25, 118, 210, 0.6);
    stroke-width: 2;
    opacity: 0;
    transition: opacity 0.25s ease, transform 0.25s ease, filter 0.25s ease;
}

.sector-overlay polygon[style*="opacity: 1"] {
    transform: translate3d(0, 0, 0) scale(1.02);
    filter: drop-shadow(0 8px 16px rgba(0,0,0,0.18));
}

/* инфокарта справа от карты */
.map-info-card {
    background: #ffffff;
    border-radius: 18px;
    padding: 24px 22px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
    border: 1px solid rgba(0,0,0,0.04);
}

.map-info-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #212121;
    margin-bottom: 18px;
}

.map-info-title i {
    color: #1976d2;
}

.map-info-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(0,0,0,0.04);
}

.map-info-list li:last-child {
    border-bottom: none;
}

.map-info-list i {
    width: 26px;
    height: 26px;
    border-radius: 9px;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #616161;
}

.map-info-list .label {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #9e9e9e;
}

.map-info-list .value {
    display: block;
    font-size: 0.95rem;
    color: #424242;
}

@media (max-width: 992px) {
    .map-container {
        padding: 40px 0;
    }

    .map-info-card {
        margin-top: 20px;
    }
}


/* تنسيقات صفحة التفاصيل */
/* تنسيق البلوك الرئيسي */
.person-info-block {
    background: #ffffff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    margin: 40px auto;
    max-width: 800px;
}

/* روابط التنقل */
.breadcrumb-links {
    margin-bottom: 25px;
    font-size: 14px;
}

.breadcrumb-link {
    color: #666;
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumb-link:hover {
    color: #333;
}

.divider {
    margin: 0 8px;
    color: #999;
}

/* العناوين */
.person-title {
    font-size: 24px;
    color: #444;
    margin-bottom: 10px;
    border-bottom: 2px solid #FFC107;
    padding-bottom: 8px;
}

.person-name {
    font-size: 28px;
    color: #222;
    margin-bottom: 25px;
}

/* تفاصيل المعلومات */
.detail-section {
    margin-bottom: 20px;
}

.detail-title {
    font-size: 18px;
    color: #555;
    margin-bottom: 10px;
}

.detail-content {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
}

.bio-text {
    font-size: 16px;
    color: #444;
    line-height: 1.8;
    text-align: justify;
}

/* تأثيرات تفاعلية */
strong {
    color: #2c3e50;
    font-weight: 600;
}

/* زيادة أبعاد البلوك */
.person-info-block {
    max-width: 1000px; /* زيادة العرض */
    padding: 40px;
    margin: 50px auto;
}

/* تنسيق قسم المحتوى */
.person-content {
    display: grid;
    grid-template-columns: 300px 1fr; /* عرض الصورة الثابت */
    gap: 30px;
    align-items: start;
}

/* تنسيق الصورة */
.person-image img {
    width: 100%;
    height: 350px; /* ارتفاع ثابت للصورة */
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* تحسين المسافات */
.person-details {
    padding-top: 15px;
}

/* تكبير الخطوط */
.person-title {
    font-size: 28px;
}

.person-name {
    font-size: 32px;
}

.bio-text {
    font-size: 17px;
}

/* تنسيق القسم الرئيسي */
.person-content {
    display: grid;
    grid-template-columns: 1fr 2fr; /* نسبة 1:2 بين الصورة والنص */
    gap: 40px;
    align-items: start; /* محاذاة من الأعلى */
    margin-top: 30px;
}

/* تحسين مظهر الصورة */
.person-image img {
    width: 100%;
    height: 400px; /* ارتفاع ثابت */
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

/* تحسين النص */
.person-details {
    padding: 20px;
    background: #f9f9f9;
    border-radius: 12px;
}

/* تجاوب على الشاشات الصغيرة */
@media (max-width: 768px) {
    .person-content {
        grid-template-columns: 1fr; /* عمود واحد على الجوال */
        gap: 25px;
    }

    .person-image img {
        height: 300px; /* تقليل الارتفاع على الجوال */
    }
}
/* Иконки и оверлей на мобильных */
@media screen and (max-width: 1180px) {
    .sector-overlay {
        display: none !important;
    }

    #tooltip {
        display: none !important;
    }

    .map-title {
        font-size: 1.4rem;
    }

    .map-subtitle {
        font-size: 0.85rem;
    }
}


/* تنسيق قسم تاريخ المقبرة */
.history-section {
    background: #ffffff;
    padding: 50px 0;
    margin: 60px 0;
    border-radius: 0;
    box-shadow: none;
    position: relative;
    overflow: visible;
    border-top: 1px solid rgba(153, 134, 132, 0.15);
}

.history-header {
    margin-bottom: 24px;
    padding: 0 0 8px 0;
    border-bottom: 1px solid rgba(0,0,0,0.03);
}

.history-image {
    width: 100%;
    height: 260px;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.history-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.history-image:hover img {
    transform: scale(1.03);
}

.history-title {
    font-size: 2.1rem;
    color: #5a4a42;
    font-weight: 700;
    margin-bottom: 8px;
}

.history-intro {
    font-size: 1rem;
    color: #6d5b52;
    margin: 0;
}

.history-body {
    margin-top: 20px;
}

.history-text {
    font-size: 1rem;
    line-height: 1.8;
    color: #5a4a42;
}

.history-text p {
    margin-bottom: 16px;
}

.history-aside {
    background: #fafafa;
    border-radius: 14px;
    padding: 20px 18px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.06);
    border: 1px solid rgba(0,0,0,0.04);
}

.history-aside-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #4b3b35;
    margin-bottom: 16px;
}

.history-aside-title i {
    color: #1976d2;
}

.history-aside-list li {
    padding: 8px 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.history-aside-list li:last-child {
    border-bottom: none;
}

.history-aside-list .label {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #9e9e9e;
}

.history-aside-list .value {
    display: block;
    font-size: 0.95rem;
    color: #424242;
}

/* تجاوبية للشاشات المتوسطة والصغيرة */
@media (max-width: 1200px) {
    .history-section {
        margin: 50px 60px;
    }
}

@media (max-width: 992px) {
    .history-section {
        margin: 40px 30px;
    }
    
    .history-image {
        height: 250px;
    }
    
    .history-title {
        font-size: 1.9rem;
        padding-left: 15px;
    }
}

@media (max-width: 768px) {
    .history-section {
        margin: 30px 15px;
        padding: 20px 0;
    }
    
    .history-header .row > div {
        width: 100%;
        max-width: 100%;
        flex: 0 0 100%;
    }
    
    .history-image {
        height: 200px;
        margin-bottom: 15px;
    }
    
    .history-title {
        font-size: 1.7rem;
        text-align: center;
        padding-left: 0;
        margin-bottom: 15px;
    }
    
    .history-text {
        padding: 0 15px;
        font-size: 1rem;
    }
    
    .history-text p {
        padding-left: 18px;
    }
}

@media (max-width: 576px) {
    .history-section {
        margin: 20px 10px;
    }
    
    .history-image {
        height: 180px;
    }
    
    .history-title {
        font-size: 1.5rem;
    }
}

.map-popup-link {
    display: inline-block;
    margin-top: 4px;
    font-size: 0.8rem;
    color: #1976d2;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.map-popup-link:hover {
    color: #0d47a1;
}

.memorial-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.75);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.memorial-overlay.open {
    display: flex;
}

.memorial-dialog {
    position: relative;
    max-width: 1100px;
    width: 95%;
    max-height: 90vh;
    background: rgba(255,255,255,0.98);
    border-radius: 18px;
    box-shadow: 0 18px 40px rgba(0,0,0,0.6);
    padding: 18px 20px 20px;
    overflow-y: auto;
    overflow-x: hidden;
}

.memorial-dialog .Memorial-info-block {
    margin: 0;
}

.memorial-dialog .Memorial-details {
    background: #f7f7f7;
}

.memorial-close {
    position: absolute;
    top: 10px;
    right: 14px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: none;
    background: rgba(0,0,0,0.75);
    color: #fff;
    font-size: 26px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 5;
}

.memorial-close:hover {
    background: rgba(0,0,0,0.9);
}

@media (max-width: 768px) {
    .memorial-dialog {
        max-width: 100%;
        width: 100%;
        height: 100vh;
        max-height: 100vh;
        border-radius: 0;
    }
}

/* 3D map section */
.map-3d-section {
    background: #ffffff;
    padding: 40px 0 10px;
}

.map-3d-wrapper {
    position: relative;
    height: 520px;
}

#map3d {
    width: 100%;
    height: 100%;
}

/* чтобы leaflet‑popup был поверх тайлов и оверлеев */
.map-3d-wrapper .leaflet-container {
    z-index: 1;
}

.map-3d-overlay,
.map-legend-3d {
    z-index: 10;
}

.leaflet-popup-pane {
    z-index: 500;
}

.map-3d-overlay {
    position: absolute;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 18px;
    border-radius: 999px;
    background: rgba(255,255,255,0.96);
    border: 1px solid rgba(0,0,0,0.06);
    font-size: 0.9rem;
    color: #424242;
}

.map-3d-overlay i {
    width: 26px;
    height: 26px;
    border-radius: 999px;
    background: #e3f2fd;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1976d2;
}

.map-3d-overlay .title {
    font-weight: 600;
}

.map-3d-overlay .subtitle {
    font-size: 0.8rem;
    color: #757575;
}

/* легенда справа от карты */
.map-legend-3d {
    position: absolute;
    top: 80px;
    right: 16px;
    width: 260px;
    max-height: calc(100% - 120px);
    overflow-y: auto;
    background: #ffffff;
    border-radius: 16px;
    padding: 14px 14px 10px;
    border: 1px solid rgba(0,0,0,0.06);
    font-size: 0.9rem;
}

.map-legend-3d .legend-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #424242;
    margin-bottom: 8px;
}

.map-legend-3d .legend-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 6px 2px;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.map-legend-3d .legend-item:hover {
    background-color: #f5f5f5;
}

.map-legend-3d .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-top: 4px;
}

.map-legend-3d .dot-central {
    background-color: #1976d2;
}

.map-legend-3d .dot-church {
    background-color: #8e24aa;
}

.map-legend-3d .dot-memorial {
    background-color: #ef6c00;
}

.map-legend-3d .legend-text .name {
    display: block;
    font-weight: 500;
    color: #424242;
}

.map-legend-3d .legend-text .desc {
    display: block;
    font-size: 0.8rem;
    color: #757575;
}

@media (max-width: 768px) {
    .map-3d-wrapper {
        height: 420px;
    }

    .map-3d-overlay {
        left: 12px;
        right: 12px;
        transform: none;
        border-radius: 16px;
        justify-content: flex-start;
    }

    .map-legend-3d {
        top: auto;
        bottom: 12px;
        right: 12px;
        left: 12px;
        width: auto;
        max-height: 180px;
        border-radius: 14px;
    }
}

/* تنسيقات جديدة للكنيسة */
.Memorial-info-block {
    background: #ffffff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    margin: 40px auto;
    max-width: 1000px;
}

.Memorial-title {
    font-size: 28px;
    color: #444;
    margin-bottom: 20px;
    border-bottom: 2px solid #998684;
    padding-bottom: 8px;
    text-align: center;
}

.main-image {
    text-align: center;
    margin-bottom: 30px;
}

.main-image img {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.Memorial-content {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 30px;
    align-items: start;
}

.secondary-images {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.Memorial-image img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.Memorial-image img:hover {
    transform: scale(1.05);
}

.Memorial-details {
    padding: 15px;
    background: #f9f9f9;
    border-radius: 10px;
   
}

.bio-text {
    font-size: 16px;
    color: #444;
    line-height: 1.8;
    text-align: justify;
}

/* تجاوبية للشاشات الصغيرة */
@media (max-width: 768px) {
    .Memorial-content {
        grid-template-columns: 1fr;
    }
    
    .secondary-images {
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
        margin-bottom: 20px;
    }
    
    .Memorial-image {
        width: 45%;
        margin: 0 2.5%;
    }
    
    .Memorial-image img {
        height: 180px;
    }
}

@media (max-width: 480px) {
    .Memorial-image {
        width: 100%;
        margin: 0 0 15px 0;
    }
}