/* ==========================================================================
   استایل مشترک صفحات نقشه (آب‌وهواشناسی / لرزه‌نگاری ایران / لرزه‌نگاری USGS)
   عیناً برگرفته از استایل‌های Section "upscripts" در نسخه قدیمی cshtml
   ========================================================================== */

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: Tahoma, Arial, sans-serif;
}

#map {
    z-index: 105 !important;
    height: 600px;
    width: 100%;
}

#TileLayerPanel {
    z-index: 107;
    position: absolute;
    right: 24px;
    top: 11px;
    background-color: lavender;
    opacity: 0.7;
}

@keyframes fade {
    from {
        opacity: 0.3;
    }
}

.blinking {
    animation: fade 0.5s infinite alternate;
}

.ScrollIt {
    height: 200px;
    width: 300px;
    overflow: auto;
    scrollbar-color: #1a9625 black;
    scrollbar-width: thin;
}

.ScrollIt:hover {
    overflow-y: auto;
}

/* پنل کنترل لایه‌ها و Legend */
.info.legend {
    margin-bottom: 0 !important;
    background: #0000001a;
    padding: 5px;
}

.info.legend > i {
    color: black;
    width: 35px;
    overflow: hidden;
    display: inline-block;
    font-size: 8px !important;
    height: 15px;
    text-align: center;
    float: right;
}

.leaflet-control-attribution {
    display: none;
}

@media (max-width: 820px) {
    .info.legend {
        display: none;
    }
}

/* جدول نمایش رویدادهای لرزه‌نگاری */
table.iw-events-table {
    width: 100%;
    border-collapse: collapse;
}

table.iw-events-table th,
table.iw-events-table td {
    border-top: 1px solid #ddd;
    text-align: center;
    padding: 6px;
}
