/* ========================================
   استایل‌های عمومی - ریسپانسیو و مدرن
   ======================================== */

/* ===== تیترها ===== */
h1 {
    font-size: clamp(1.5rem, 2.5vw, 3rem);
    line-height: 1.4;
    font-weight: 700;
    letter-spacing: -0.02em;
}

h2 {
    font-size: clamp(1.25rem, 2vw, 2rem);
    line-height: 1.5;
    font-weight: 700;
    letter-spacing: -0.01em;
}

h3 {
    font-size: clamp(1.125rem, 1.75vw, 1.5rem);
    font-weight: 600;
}

h4 {
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    font-weight: 600;
}

h5 {
    font-size: clamp(0.95rem, 1.2vw, 1rem);
    font-weight: 600;
}

h6 {
    font-size: clamp(0.85rem, 0.9vw, 1.1rem);
    font-weight: 500;
}

p {
    font-size: clamp(0.9rem, 0.9vw, 1.1rem);
    line-height: 1.8;
    color: #4a5568;
}

a {
    font-size: clamp(0.9rem, 0.9vw, 1rem);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #ff6b00;
}

blockquote {
    font-size: clamp(1rem, 1.2vw, 1.25rem);
    border-right: 4px solid #ff6b00;
    padding-right: 1.5rem;
    color: #2d3748;
    font-style: italic;
}

/* ========================================
   نقشه ایران - استایل‌های مدرن
   ======================================== */

.body-container {
    background: #f0f2f5;
    padding: 40px 0;
    min-height: 100vh;
}

/* ===== کانتینر نقشه ===== */
#IranMap-svg {
    display: block;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.3s ease;
}

#IranMap-svg:hover {
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.12);
}

/* ===== استایل مسیرهای استان‌ها ===== */
#IranMap-svg svg path {
    fill: #1a2744;
    stroke: rgba(255, 255, 255, 0.6);
    stroke-width: 1.5;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    stroke-dasharray: 400;
    stroke-dashoffset: 400;
    animation: SvgDraw 4s ease-in-out infinite;
    cursor: pointer;
}

/* ===== انیمیشن رسم خطوط ===== */
@keyframes SvgDraw {
    0% {
        stroke-dashoffset: 400;
        fill: #1a2744;
    }
    50% {
        stroke-dashoffset: 0;
        fill: #2a3d6e;
    }
    100% {
        stroke-dashoffset: 400;
        fill: #1a2744;
    }
}

/* ===== انیمیشن هاور ===== */
@keyframes SvgDrawHover {
    0% {
        stroke-dashoffset: 400;
        fill: #d45500;
    }
    50% {
        stroke-dashoffset: 0;
        fill: #ff6b00;
    }
    100% {
        stroke-dashoffset: 400;
        fill: #e85d00;
    }
}

/* ===== هاور روی استان‌ها ===== */
#IranMap-svg svg path:hover {
    cursor: pointer;
    animation: SvgDrawHover 4s ease-in-out infinite;
    filter: drop-shadow(0 4px 12px rgba(255, 107, 0, 0.3));
    transform: scale(1.02);
    transform-origin: center;
}

/* ===== استایل‌های خاص برای دریاها و مرزها ===== */
#IranMap-svg .sea path,
#IranMap-svg .lake path {
    fill: rgba(0, 81, 211, 0.15) !important;
    pointer-events: none;
    cursor: default !important;
    animation: none !important;
    stroke-dashoffset: 0 !important;
    stroke: rgba(0, 81, 211, 0.2) !important;
}

#IranMap-svg .sea path:hover,
#IranMap-svg .lake path:hover {
    animation: none !important;
    transform: none !important;
    filter: none !important;
}

#IranMap-svg .border path {
    pointer-events: none;
    cursor: default !important;
    animation: none !important;
    stroke-dashoffset: 0 !important;
    stroke: rgba(255, 255, 255, 0.3) !important;
    fill: transparent !important;
}

#IranMap-svg .border path:hover {
    animation: none !important;
    transform: none !important;
    filter: none !important;
}

/* ===== استان فعال (انتخاب شده) ===== */
#IranMap-svg path.active {
    animation: SvgDrawHover 4s ease-in-out infinite;
    filter: drop-shadow(0 4px 20px rgba(255, 107, 0, 0.4));
    stroke: #ff6b00;
    stroke-width: 2.5;
}

/* ========================================
   باکس اطلاعات استان
   ======================================== */

#IranMap-name p {
    min-height: 30px;
    font-weight: 600;
    color: #1a2744;
    text-align: center;
    font-size: 1.1rem;
}

#IranMap-box {
    width: 60%;
    max-width: 700px;
    display: block;
    margin: 40px auto;
    animation: fadeInUp 0.6s ease-out;
}

/* ===== انیمیشن ظاهر شدن ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== کارت اطلاعات ===== */
#IranMap-box .IranMap-box-content {
    background: #ffffff;
    border-radius: 16px;
    margin: 20px 0;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

#IranMap-box .IranMap-box-content:hover {
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.1);
    transform: translateY(-4px);
}

/* ===== هدر کارت ===== */
#IranMap-box h2 {
    background: linear-gradient(135deg, #ff6b00 0%, #d45500 100%);
    color: white;
    padding: 16px 24px;
    border-radius: 16px 16px 0 0;
    font-size: clamp(1rem, 1.5vw, 1.4rem);
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: 0.3px;
}

#IranMap-box h2::before {
     content: "🏢";
    font-size: 1.2rem;
}

/* ===== لیست اطلاعات ===== */
#IranMap-box ul {
    padding: 24px 28px;
    margin: 0;
    list-style: none;
}

#IranMap-box ul li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    line-height: 1.8;
    font-size: clamp(0.95rem, 1.1vw, 1.05rem);
    color: #2d3748;
    padding: 8px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    transition: background 0.2s ease;
    border-radius: 6px;
    padding-right: 12px;
}

#IranMap-box ul li:last-child {
    border-bottom: none;
}

#IranMap-box ul li:hover {
    background: rgba(255, 107, 0, 0.04);
}

/* ===== آیکون‌ها ===== */
#IranMap-box ul li::before {
    font-size: 1.1rem;
    color: #ff6b00;
    padding-left: 8px;
    flex-shrink: 0;
    min-width: 24px;
    text-align: center;
}

#IranMap-box ul li.bi-geo-alt::before {
    content: "\f3c5";
}

#IranMap-box ul li.bi-person::before {
    content: "\f4e1";
}

#IranMap-box ul li.bi-phone::before {
    content: "\f5a6";
}

#IranMap-box ul li.bi-telephone::before {
    content: "\f5ab";
}

/* آیکون‌های یونیکد برای نمایش بهتر */
#IranMap-box ul li.bi-geo-alt::before {
    content: "📌";
}

#IranMap-box ul li.bi-person::before {
    content: "🤵";
}

#IranMap-box ul li.bi-person2::before {
    content: "👩‍💼";
}

#IranMap-box ul li.bi-telephone::before {
    content: "📞";
}

/* ===== لینک‌های داخل لیست ===== */
#IranMap-box ul li a {
    font-size: clamp(0.95rem, 1.1vw, 1.05rem);
    color: #2d3748;
    transition: color 0.3s ease;
    text-decoration: none;
}

#IranMap-box ul li a:hover {
    color: #ff6b00;
}

/* ===== مخفی کردن آیتم تلفن خالی ===== */
#IranMap-box ul li.bi-phone:has(a[href="tel:+98"]) {
    display: none;
}

/* ========================================
   ریسپانسیو - موبایل و تبلت
   ======================================== */

@media (max-width: 992px) {
    .body-container {
        padding: 20px 0;
    }

    #IranMap-svg {
        padding: 15px;
        border-radius: 16px;
    }

    #IranMap-box {
        width: 80%;
        max-width: 600px;
        margin: 30px auto;
    }
}

@media (max-width: 768px) {
    .body-container {
        padding: 15px 0;
    }

    #IranMap-svg {
        padding: 10px;
        border-radius: 12px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    }

    #IranMap-box {
        width: 100%;
        max-width: 500px;
        margin: 20px auto;
        padding: 0 10px;
    }

    #IranMap-box .IranMap-box-content {
        border-radius: 12px;
        margin: 15px 0;
    }

    #IranMap-box h2 {
        padding: 14px 18px;
        font-size: 1rem;
        border-radius: 12px 12px 0 0;
    }

    #IranMap-box h2::before {
        font-size: 1rem;
    }

    #IranMap-box ul {
        padding: 18px 20px;
    }

    #IranMap-box ul li {
        font-size: 0.9rem;
        padding: 6px 0;
        gap: 10px;
    }

    #IranMap-box ul li a {
        font-size: 0.9rem;
    }

    #IranMap-box ul li::before {
        font-size: 0.95rem;
        min-width: 20px;
    }

    /* ===== انیمیشن‌ها در موبایل سبک‌تر ===== */
    #IranMap-svg svg path {
        stroke-dasharray: 200;
        stroke-dashoffset: 200;
        animation-duration: 3s;
    }

    @keyframes SvgDraw {
        0% {
            stroke-dashoffset: 200;
            fill: #1a2744;
        }
        50% {
            stroke-dashoffset: 0;
            fill: #2a3d6e;
        }
        100% {
            stroke-dashoffset: 200;
            fill: #1a2744;
        }
    }

    @keyframes SvgDrawHover {
        0% {
            stroke-dashoffset: 200;
            fill: #d45500;
        }
        50% {
            stroke-dashoffset: 0;
            fill: #ff6b00;
        }
        100% {
            stroke-dashoffset: 200;
            fill: #e85d00;
        }
    }
}

@media (max-width: 480px) {
    .body-container {
        padding: 10px 0;
    }

    #IranMap-svg {
        padding: 6px;
        border-radius: 10px;
    }

    #IranMap-box {
        margin: 15px auto;
        padding: 0 6px;
    }

    #IranMap-box .IranMap-box-content {
        border-radius: 10px;
        margin: 10px 0;
    }

    #IranMap-box h2 {
        padding: 12px 14px;
        font-size: 0.9rem;
        border-radius: 10px 10px 0 0;
    }

    #IranMap-box h2::before {
        font-size: 0.9rem;
    }

    #IranMap-box ul {
        padding: 14px 16px;
    }

    #IranMap-box ul li {
        font-size: 0.82rem;
        padding: 5px 0;
        gap: 8px;
        line-height: 1.6;
    }

    #IranMap-box ul li a {
        font-size: 0.82rem;
    }

    #IranMap-box ul li::before {
        font-size: 0.85rem;
        min-width: 18px;
        padding-left: 6px;
    }
}

/* ========================================
   حالت تاریک (در صورت نیاز)
   ======================================== */
 /*
[data-theme="dark"] .body-container {
    background: #0f172a;
}

[data-theme="dark"] #IranMap-svg {
    background: #1e293b;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] #IranMap-svg svg path {
    fill: #2d3b5e;
    stroke: rgba(255, 255, 255, 0.2);
}

[data-theme="dark"] #IranMap-svg svg path:hover {
    fill: #ff6b00;
}

[data-theme="dark"] #IranMap-box .IranMap-box-content {
    background: #1e293b;
    border-color: rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] #IranMap-box ul li {
    color: #e2e8f0;
    border-bottom-color: rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] #IranMap-box ul li a {
    color: #e2e8f0;
}

[data-theme="dark"] #IranMap-box ul li a:hover {
    color: #ff6b00;
}

[data-theme="dark"] #IranMap-box ul li:hover {
    background: rgba(255, 107, 0, 0.08);
}

[data-theme="dark"] #IranMap-name p {
    color: #e2e8f0;
}

[data-theme="dark"] p {
    color: #94a3b8;
}

[data-theme="dark"] blockquote {
    color: #e2e8f0;
    border-right-color: #ff6b00;
}
 */