.smp-container {
    margin: 20px 0;
    font-family: Tahoma, sans-serif;
    direction: rtl;
}

.smp-svg-wrapper {
    max-width: 100%;
    overflow: auto;
    border: 1px solid #ddd;
    padding: 10px;
    background: #f9f9f9;
}

.smp-svg-wrapper svg {
    width: 100%;
    height: auto;
    display: block;
}

/* صندلی‌های قابل انتخاب */
.smp-svg-wrapper svg path,
.smp-svg-wrapper svg rect,
.smp-svg-wrapper svg circle,
.smp-svg-wrapper svg polygon,
.smp-svg-wrapper svg ellipse,
.smp-svg-wrapper svg use {
    cursor: pointer;
    transition: fill 0.3s ease, stroke 0.3s ease;
    pointer-events: all !important;
    fill: #f0f0f0; /* رنگ بسیار روشن پیش‌فرض */
    stroke: #ccc;   /* خط دور کمرنگ */
    stroke-width: 0.5px;
}

/* اگر المان از قبل رنگی دارد، آن را حفظ کن مگر اینکه سیاه مطلق باشد */
.smp-svg-wrapper svg [fill]:not([fill="#000000"]):not([fill="black"]):not([fill="#000"]) {
    /* اجازه بده رنگ خود SVG نمایش داده شود */
}

/* استایل مخصوص جایگاه‌ها در نقشه اصلی (Overview) */
.smp-svg-wrapper.main-overview svg .cls-3,
.smp-svg-wrapper.main-overview svg .cls-4,
.smp-svg-wrapper.main-overview svg .cls-5,
.smp-svg-wrapper.main-overview svg [data-section] {
    fill: #dfe6e9 !important;
    stroke: #636e72 !important;
    stroke-width: 1px !important;
}

/* هاور صندلی و جایگاه */
.smp-svg-wrapper svg path:hover,
.smp-svg-wrapper svg rect:hover,
.smp-svg-wrapper svg circle:hover,
.smp-svg-wrapper svg polygon:hover,
.smp-svg-wrapper svg ellipse:hover,
.smp-svg-wrapper svg use:hover {
    fill: #fdcb6e !important; /* زرد ملایم */
    stroke: #e17055 !important;
}

/* صندلی انتخاب شده */
.smp-svg-wrapper svg .smp-seat-selected {
    fill: #00b894 !important; /* سبز زمردی */
    stroke: #55efc4 !important;
    stroke-width: 2px !important;
}

/* جلوگیری از تداخل متن با کلیک و بهبود خوانایی */
.smp-svg-wrapper svg text,
.smp-svg-wrapper svg tspan {
    pointer-events: none !important;
    user-select: none;
    font-family: Tahoma, Arial, sans-serif;
    font-weight: bold;
    fill: #000000 !important; /* مشکی برای خوانایی بهتر شماره صندلی‌ها */
    stroke: none;
    stroke-width: 0;
}

/* Modal Styles */
.smp-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999999 !important;
    overflow: hidden;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.smp-modal.is-visible {
    display: flex !important;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.smp-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.8); /* تیره و مدرن */
    backdrop-filter: blur(4px); /* افکت بلور پشت مودال */
    z-index: 1;
}

.smp-modal-container {
    position: relative;
    z-index: 2;
    width: 95%;
    max-width: 1100px;
    margin: 20px auto;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.smp-modal.is-visible .smp-modal-container {
    transform: translateY(0);
}

.smp-modal-content {
    background: #fff;
    border-radius: 16px; /* گوشه‌های گرد مدرن */
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
    max-height: 90vh;
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

.smp-modal-header {
    padding: 20px 25px;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
}

.smp-modal-title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
    font-family: inherit;
}

.smp-close-modal-btn {
    background: #f1f5f9;
    border: none;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    color: #64748b;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.smp-close-modal-btn:hover {
    background: #e2e8f0;
    color: #0f172a;
    transform: rotate(90deg);
}

.smp-modal-body {
    padding: 25px;
    overflow-y: auto;
    background: #f8fafc; /* پس‌زمینه روشن برای بخش نقشه */
}

.smp-modal-footer {
    padding: 20px 25px;
    border-top: 1px solid #f1f5f9;
    display: flex;
    justify-content: flex-end;
    background: #fff;
}

/* بهبود استایل دکمه بازگشت */
.smp-back-to-overview {
    background: #fff !important;
    color: #1e293b !important;
    border: 1px solid #e2e8f0 !important;
    padding: 10px 18px !important;
    border-radius: 10px !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05) !important;
    margin-bottom: 20px !important;
    transition: all 0.2s !important;
}

.smp-back-to-overview:hover {
    background: #f1f5f9 !important;
    border-color: #cbd5e1 !important;
    transform: translateX(-5px);
}

/* استایل بخش اطلاعات انتخاب صندلی */
.smp-selection-info {
    margin-top: 20px;
    padding: 15px 20px;
    background: #f1f5f9;
    border-radius: 12px;
    border-right: 4px solid #f68b24;
}

.smp-selection-info p {
    margin: 0;
    font-size: 15px;
    color: #475569;
    font-weight: 600;
}

#smp-selected-seats-list {
    color: #f68b24;
    font-weight: 700;
}

/* استایل دکمه‌های MyListing در مودال */
.smp-modal .buttons.button-2 {
    border-radius: 10px !important;
    padding: 12px 25px !important;
    font-weight: 700 !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    transition: all 0.2s !important;
}

/* بهبود نمایش خلاصه در صفحه اصلی */
.smp-selection-summary {
    margin-top: 12px;
    font-size: 14px;
    color: #64748b;
    background: #f8fafc;
    padding: 8px 15px;
    border-radius: 8px;
    display: inline-block;
}

.smp-selected-seats-display {
    color: #f68b24;
    font-weight: 700;
}

/* هایلایت جایگاه‌ها در نقشه اصلی */
.smp-svg-wrapper.main-overview svg [data-section],
.smp-svg-wrapper.main-overview svg .cls-3,
.smp-svg-wrapper.main-overview svg .cls-4,
.smp-svg-wrapper.main-overview svg .cls-5 {
    cursor: pointer !important;
    stroke: #f68b24 !important; /* هماهنگ با رنگ برند شما */
    stroke-width: 1.5px !important;
    stroke-dasharray: 5,5;
    transition: all 0.3s ease !important;
    fill-opacity: 0.1 !important;
}

.smp-svg-wrapper.main-overview svg [data-section]:hover,
.smp-svg-wrapper.main-overview svg .cls-3:hover,
.smp-svg-wrapper.main-overview svg .cls-4:hover,
.smp-svg-wrapper.main-overview svg .cls-5:hover {
    fill-opacity: 0.3 !important;
    fill: #f68b24 !important;
    stroke-dasharray: 0;
}
