/* 1. استيراد خط الرقعة من جوجل */
@import url('https://fonts.googleapis.com/css2?family=Aref+Ruqaa:wght@400;700&display=swap');

:root {
    --v5-red: #c8102e;
    --v5-text: #000000;
    /* ألوان النقاط الذهبية الجديدة */
    --v5-gold: #d4af37;
    --v5-gold-shine: #ffd700;
}

/* 2. الحاوية - عرض كامل (لم يتم المساس به) */
.tp-v5-wrapper {
    position: relative;
    width: 100vw;
    max-width: 100%;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    font-family: sans-serif;
    box-sizing: border-box;
    overflow: hidden;
}

.tp-v5-map-box {
    position: relative;
    width: 100%;
    line-height: 0;
}

.tp-v5-img {
    width: 100% !important;
    height: auto !important;
    display: block;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* 3. النقاط (تم التعديل لتصبح ذهبية ومتوهجة) */
.tp-v5-point {
    position: absolute;
    
    /* الحجم كما طلبت */
    width: 1.6%;          
    aspect-ratio: 1 / 1;
    min-width: 8px;       
    min-height: 8px;
    max-width: 25px;
    
    /* --- التعديل: تحويل الخلفية لذهبي متدرج (3D) --- */
    background: radial-gradient(circle at 30% 30%, var(--v5-gold-shine), var(--v5-gold));
    
    /* إطار أبيض ناعم */
    border: 1.5px solid #fff;
    border-radius: 50%;
    
    transform: translate(-50%, -50%);
    cursor: pointer;
    z-index: 10;
    
    /* --- التعديل: إضافة توهج ذهبي حول النقطة --- */
    box-shadow: 
        0 0 0 1px rgba(212, 175, 55, 0.4), /* حلقة خارجية */
        0 0 8px 1px rgba(212, 175, 55, 0.8), /* توهج */
        inset 0 0 2px rgba(255, 255, 255, 0.5); /* لمعة داخلية */

    transition: transform 0.2s, box-shadow 0.2s;
}

.tp-v5-point:hover {
    transform: translate(-50%, -50%) scale(1.6);
    /* عند التحويم تصبح مضيئة أكثر */
    background: #fff;
    border-color: var(--v5-gold);
    z-index: 20;
    box-shadow: 0 0 15px var(--v5-gold); /* توهج قوي عند الضغط */
}

/* 4. النافذة المنبثقة (لم يتم المساس بها) */
#tp-v5-popup {
    display: none;
    position: fixed;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 400px;
    background: #fff;
    z-index: 999999;
    border-radius: 10px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.6);
    overflow: hidden;
    animation: v5Fade 0.3s;
    text-align: left;
    font-size: 16px;
    line-height: 1.5;
}

.tp-v5-head {
    background: #9d2c1e;
    padding: 15px;
    color: #fff;
    text-align: center;
}

.tp-v5-head h3 { 
    margin: 0; 
    font-size: 1.5rem; 
    color: #fff !important; 
    font-family: sans-serif;
}

/* خط الرقعة للاسم العربي */
.tp-v5-head span { 
    font-family: 'Aref Ruqaa', serif !important;
    font-size: 1.5rem !important;
    color: #f0f0f0 !important;
    display: block;
    margin-top: 5px;
    font-weight: 400;
}

.tp-v5-body { padding: 20px; color: #000; }

.v5-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 15px;
    font-size: 0.9rem;
    border-bottom: 1px solid #ddd;
    padding-bottom: 15px;
}
.v5-grid div, .v5-desc, .v5-extra-row, .v5-grid span { color: #000000 !important; }
.v5-grid strong { color: #444 !important; }

.v5-desc { margin-bottom: 15px; line-height: 1.6; font-size: 0.95rem; }

.v5-extra-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
    border-bottom: 1px dashed #eee;
    padding-bottom: 2px;
}
.v5-extra-row strong { color: var(--v5-red) !important; }

.v5-btn {
    display: block; width: 100%; padding: 12px;
    background: #333; color: #fff !important; text-align: center;
    text-decoration: none; border-radius: 5px; font-weight: bold;
    margin-top: 15px;
}
.v5-btn:hover { background: #000; }

.tp-v5-close {
    position: absolute; top: 10px; right: 15px;
    color: #fff; font-size: 28px; cursor: pointer; line-height: 1;
}

#tp-v5-overlay {
    display: none; position: fixed; top: 0; left: 0;
    width: 100%; height: 100%; background: rgba(0,0,0,0.8); z-index: 999998;
}

@keyframes v5Fade { from{opacity:0; transform:translate(-50%,-60%)} to{opacity:1; transform:translate(-50%,-50%)} }