:root {
    --brand: #1e6b4f;
    --brand-dark: #124d38;
    --bg: #f6f7f5;
    --card-bg: #ffffff;
    --text: #1f2421;
    --muted: #667066;
    --urgent: #c0392b;
    --radius: 12px;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: "Vazirmatn", Tahoma, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.8;
}

.container { max-width: 1180px; margin: 0 auto; padding: 0 16px; }

a { color: inherit; text-decoration: none; }

/* ── هدر ── */
.site-header { background: var(--brand-dark); color: #fff; }
.header-inner { display: flex; justify-content: space-between; align-items: center; padding: 14px 0; flex-wrap: wrap; gap: 10px; }
.brand { display: flex; flex-direction: column; }
.brand-name { font-size: 20px; font-weight: 700; }
.brand-sub { font-size: 12px; color: #cfe4da; }
.main-nav { display: flex; gap: 18px; flex-wrap: wrap; }
.main-nav a { font-size: 15px; opacity: 0.9; }
.main-nav a:hover { opacity: 1; text-decoration: underline; }

/* ── پیام‌ها ── */
.alert { padding: 10px 14px; margin-top: 12px; border-radius: var(--radius); background: #e6f4ea; color: #1e6b4f; }

/* ── نقشه ── */
.map-section { position: relative; }
.city-map { width: 100%; height: 78vh; min-height: 480px; }
.map-toolbar { position: absolute; top: 10px; right: 10px; z-index: 5; max-width: 90%; }
.category-filters { display: flex; gap: 6px; flex-wrap: wrap; }
.cat-btn {
    background: #ffffffee; border: 1px solid #ddd; border-radius: 20px;
    padding: 6px 14px; font-size: 13px; cursor: pointer; font-family: inherit;
}
.cat-btn.active { background: var(--brand); color: #fff; border-color: var(--brand); }
.poi-marker { font-size: 22px; cursor: pointer; filter: drop-shadow(0 1px 2px rgba(0,0,0,.4)); }

.poi-panel {
    position: absolute; top: 0; left: 0; height: 100%; width: 320px; max-width: 90%;
    background: #fff; box-shadow: 4px 0 16px rgba(0,0,0,.15); padding: 18px;
    overflow-y: auto; z-index: 6;
}
.poi-panel.hidden { display: none; }
.poi-panel-close { position: absolute; top: 10px; left: 10px; background: none; border: none; font-size: 18px; cursor: pointer; }
.poi-panel-img { width: 100%; border-radius: var(--radius); margin-bottom: 10px; }
.poi-cat { color: var(--muted); font-size: 13px; }
.poi-directions { display: flex; gap: 8px; flex-wrap: wrap; margin: 14px 0; }
.district-poi-list { list-style: none; padding: 0; }
.district-poi-list li { padding: 8px 4px; border-bottom: 1px solid #eee; cursor: pointer; }
.district-poi-list li:hover { background: #f2f7f4; }

/* ── محتوای اصلی ── */
.two-col { display: grid; grid-template-columns: 2fr 1fr; gap: 24px; margin: 30px auto; }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; } }

.card-block {
    background: var(--card-bg); border-radius: var(--radius); padding: 20px;
    margin-bottom: 22px; box-shadow: 0 1px 3px rgba(0,0,0,.06);
}
.card-block h2 { margin-top: 0; font-size: 19px; color: var(--brand-dark); }

.announcement-list { list-style: none; padding: 0; margin: 0; }
.announcement-list li { padding: 10px 0; border-bottom: 1px solid #eee; }
.announcement-list li.urgent strong { color: var(--urgent); }

.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.news-card { background: #fafafa; border-radius: var(--radius); overflow: hidden; border: 1px solid #eee; display: block; }
.news-card img { width: 100%; height: 120px; object-fit: cover; }
.news-card-body { padding: 10px 12px; }
.news-card-body h3 { font-size: 15px; margin: 0 0 6px; }
.news-card-body p { font-size: 13px; color: var(--muted); margin: 0; }
.see-all { display: inline-block; margin-top: 14px; color: var(--brand); font-weight: 600; }

.poll-form { display: flex; flex-direction: column; gap: 8px; }
.poll-question { font-weight: 600; }
.poll-option { display: flex; gap: 8px; align-items: center; }

.btn {
    display: inline-block; background: var(--brand); color: #fff !important; padding: 9px 18px;
    border-radius: 8px; border: none; cursor: pointer; font-family: inherit; font-size: 14px;
}
.btn:hover { background: var(--brand-dark); }
.btn-sm { padding: 6px 12px; font-size: 13px; }
.btn-outline { background: #fff; color: var(--brand) !important; border: 1px solid var(--brand); }

.widget-clock { text-align: center; }
.live-clock { font-size: 30px; font-weight: 700; color: var(--brand-dark); direction: ltr; }
.jalali-date { color: var(--muted); margin-top: 4px; }

.weather-current { font-size: 20px; margin-bottom: 10px; }
.weather-forecast { display: flex; justify-content: space-between; gap: 6px; font-size: 12px; color: var(--muted); }
.weather-day { display: flex; flex-direction: column; align-items: center; gap: 2px; }

/* ── فرم تماس ── */
.form-control {
    width: 100%; padding: 10px 12px; border-radius: 8px; border: 1px solid #ccc;
    font-family: inherit; margin-bottom: 12px; font-size: 14px;
}

/* ── فوتر ── */
.site-footer { background: var(--brand-dark); color: #d9e9e2; margin-top: 40px; padding: 22px 0; text-align: center; }
.footer-sub { font-size: 12px; opacity: .8; }
