/* =========================
   نقشه ایران
========================= */

#map-wrapper {
    max-width: 400px;
    margin: 40px auto;
}

#map-wrapper svg {
    width: 100%;
    height: auto;
    display: block;
}

#map-wrapper svg path {
    fill: #e5e7eb !important;
    fill-opacity: 1 !important;
    stroke: #9ca3af !important;
    stroke-width: 1 !important;
    cursor: pointer;
    transition: all .3s ease;
}

#map-wrapper svg a:hover path {
    fill: #93c5fd !important;
}

#map-wrapper svg path.has-rep {
    fill: #22c55e !important;
}

#map-wrapper svg path.active {
    fill: #2563eb !important;
}

/* =========================
   دکمه
========================= */

#show-all {
    display: block;
    margin: 20px auto;
    padding: 10px 25px;
    border: 0;
    border-radius: 10px;
    background: #111827;
    color: #fff;
    cursor: pointer;
    transition: .3s;
}

#show-all:hover {
    background: #2563eb;
}

/* =========================
   عنوان
========================= */

#title {
    text-align: center;
    font-size: 22px;
    margin: 25px 0;
}

/* =========================
   گرید
========================= */

#grid {
    display: grid;
    grid-template-columns: repeat(auto-fill,minmax(260px,1fr));
    gap: 20px;
    padding: 20px;
}

/* =========================
   کارت
========================= */

.card {
    background: #fff;
    border-radius: 16px;
    padding: 20px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,.08);
    transition: .3s;
}

.card::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 4px;
    border-radius: 16px 16px 0 0;
    background: linear-gradient(90deg,#3b82f6,#22c55e);
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 40px rgba(0,0,0,.12);
}

.card h3 {
    margin: 0 0 10px;
    font-size: 18px;
}

.card span {
    display: inline-block;
    margin-bottom: 10px;
    color: #2563eb;
    font-size: 13px;
}

.card p {
    margin: 0;
    color: #555;
    line-height: 1.8;
}

.card a {
    display: inline-block;
    margin-top: 12px;
    padding: 6px 12px;
    border-radius: 8px;
    text-decoration: none;
    background: #f3f4f6;
    color: #111;
    transition: .3s;
}

.card a:hover {
    background: #2563eb;
    color: #fff;
}

/* =========================
   موبایل
========================= */

@media (max-width:768px) {

    #grid {
        grid-template-columns: 1fr;
    }

    #map-wrapper {
        padding: 0 10px;
    }
}