/* এলাকাভিত্তিক সংবাদ: মানচিত্র, ফিল্টার, সংবাদ তালিকা ও ফলাফল পেজ */

.dnl-widget {
	--dnl-navy: #051441;
	--dnl-red: #ff2143;
	--dnl-blue: #0b6aa6;
	--dnl-line: #e3e8f0;
	--dnl-muted: #5b6475;
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 24px;
	align-items: start;
}

.dnl-lead {
	color: var(--dnl-muted, #5b6475);
	margin: -8px 0 18px;
	font-size: 15px;
	font-weight: 500;
}

/* ---------- মানচিত্র ---------- */

.dnl-map-box {
	position: relative;
	background: linear-gradient(180deg, #f6f9ff 0%, #e9f1fa 100%);
	border: 1px solid var(--dnl-line);
	border-radius: 14px;
	padding: 10px 10px 12px;
	overflow: hidden;
}

.dnl-crumbs {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 6px;
	min-height: 30px;
	padding: 2px 4px 8px;
	font-size: 14px;
	padding-right: 130px; /* রিসেট বাটনের জায়গা */
}

.dnl-crumb {
	background: none;
	border: 0;
	padding: 2px 4px;
	color: var(--dnl-blue);
	cursor: pointer;
	border-radius: 4px;
	font-size: inherit;
	line-height: 1.4;
}

.dnl-crumb:hover { text-decoration: underline; }
.dnl-crumb:focus-visible { outline: 2px solid var(--dnl-navy); }
.dnl-crumb.is-current { color: var(--dnl-navy); cursor: default; }
.dnl-crumb.is-current:hover { text-decoration: none; }
.dnl-sep { color: #8a94a6; }

.dnl-stage {
	position: relative;
	width: 100%;
	aspect-ratio: 4 / 5;
	max-height: 680px;
	margin: 0 auto;
	border-radius: 10px;
	overflow: hidden;
}

.dnl-svg {
	width: 100%;
	height: 100%;
	display: block;
	touch-action: manipulation;
}

.dnl-loading {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: 20px;
	color: var(--dnl-muted);
	font-size: 15px;
}

.dnl-sh {
	fill: var(--f);
	stroke: #fff;
	stroke-width: 1px;
	vector-effect: non-scaling-stroke;
	stroke-linejoin: round;
	cursor: pointer;
	transition: fill 0.15s ease;
	outline: none;
}

.dnl-sh:hover,
.dnl-sh:focus-visible { fill: var(--dnl-red); }
.dnl-sh:focus-visible { stroke: var(--dnl-navy); stroke-width: 2.5px; }
.dnl-sh.is-ctx:hover { fill: #f4909f; }
.dnl-sh.is-sel { fill: var(--dnl-navy); }

.dnl-outline {
	fill: none;
	stroke: var(--dnl-navy);
	stroke-width: 2px;
	vector-effect: non-scaling-stroke;
	stroke-linejoin: round;
	pointer-events: none;
}

.dnl-lbl { pointer-events: none; }
.dnl-lb rect { fill: var(--dnl-navy); opacity: 0.88; }
.dnl-lb text { fill: #fff; font-weight: 600; }
.dnl-lb.is-sel rect { fill: var(--dnl-red); opacity: 1; }

.dnl-tip {
	position: absolute;
	z-index: 5;
	background: var(--dnl-navy);
	color: #fff;
	font-size: 13px;
	line-height: 1.3;
	padding: 5px 10px;
	border-radius: 6px;
	pointer-events: none;
	white-space: nowrap;
	box-shadow: 0 4px 14px rgba(5, 20, 65, 0.25);
}

.dnl-tip[hidden] { display: none; }

.dnl-reset {
	position: absolute;
	top: 10px;
	right: 10px;
	z-index: 4;
	background: #fff;
	color: var(--dnl-navy);
	border: 1px solid var(--dnl-line);
	border-radius: 999px;
	font-size: 13px;
	padding: 5px 12px;
	cursor: pointer;
	box-shadow: 0 1px 4px rgba(5, 20, 65, 0.1);
}

.dnl-reset:hover { background: var(--dnl-navy); color: #fff; }
.dnl-reset[hidden] { display: none; }

.dnl-hint {
	position: absolute;
	left: 50%;
	bottom: 14px;
	transform: translateX(-50%);
	background: rgba(255, 255, 255, 0.95);
	border: 1px solid var(--dnl-line);
	color: var(--dnl-muted);
	font-size: 12.5px;
	padding: 4px 12px;
	border-radius: 999px;
	white-space: nowrap;
	pointer-events: none;
}

.dnl-noscript { font-size: 13px; color: var(--dnl-muted); }

/* ---------- ফিল্টার ফর্ম ---------- */

.dnl-filter {
	background: #fff;
	border: 1px solid var(--dnl-line);
	border-radius: 14px;
	padding: 18px;
	margin: 0 0 22px;
}

.dnl-side-col .dnl-filter { background: #f6f9fd; }

.dnl-filter-head {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 14px;
}

.dnl-filter-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border-radius: 10px;
	background: #e3effb;
	color: var(--dnl-blue);
	font-size: 18px;
	flex: 0 0 auto;
}

.dnl-filter-title { font-size: 18px; color: var(--dnl-navy); line-height: 1.2; font-weight: 700; }
.dnl-filter-sub { font-size: 12.5px; color: var(--dnl-muted); margin-top: 2px; font-weight: 500; }

.dnl-selects {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 10px;
	margin-bottom: 12px;
}

.dnl-selects select {
	width: 100%;
	min-width: 0;
	height: 44px;
	padding: 0 30px 0 12px;
	border: 1px solid #cdd6e3;
	border-radius: 8px;
	background-color: #fff;
	color: var(--dnl-navy);
	font-size: 14px;
	appearance: auto;
}

.dnl-selects select:disabled { background-color: #eef1f6; color: #8a94a6; }
.dnl-selects select:focus-visible { outline: 2px solid var(--dnl-blue); outline-offset: 1px; }

.dnl-btn {
	display: block;
	width: 100%;
	height: 46px;
	border: 0;
	border-radius: 8px;
	background: var(--dnl-red);
	color: #fff;
	font-size: 16px;
	cursor: pointer;
	transition: background 0.15s ease;
}

.dnl-btn:hover { background: #d81434; }
.dnl-btn:focus-visible { outline: 2px solid var(--dnl-navy); outline-offset: 2px; }

/* ছোট ফর্ম (সারাদেশ সেকশনের পাশে): ড্রপডাউন এক কলামে */
.dnl-filter.dnl-compact .dnl-selects { grid-template-columns: 1fr; }
.dnl-filter.dnl-compact { margin-top: 12px; }

/* ---------- সংবাদ তালিকা ---------- */

.dnl-news-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	padding-bottom: 8px;
	border-bottom: 2px solid #f1f1f1;
	margin-bottom: 4px;
}

.dnl-news-title { margin: 0; font-size: 19px; color: var(--dnl-navy); line-height: 1.3; }
.dnl-all { color: var(--dnl-red); font-size: 14px; white-space: nowrap; }
.dnl-all:hover { text-decoration: underline; }

.dnl-list { list-style: none; margin: 0; padding: 0; transition: opacity 0.2s ease; }
.dnl-news.is-loading .dnl-list { opacity: 0.4; }

.dnl-item {
	display: flex;
	gap: 14px;
	padding: 12px 0;
	border-bottom: 1px dashed #d5dbe6;
}

.dnl-item:last-child { border-bottom: 0; }

.dnl-thumb {
	display: block;
	flex: 0 0 112px;
	height: 76px;
	border-radius: 6px;
	overflow: hidden;
	background: #e9eef5;
}

.dnl-thumb-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dnl-item-body { min-width: 0; }

.dnl-loc {
	display: block;
	font-size: 12.5px;
	color: var(--dnl-blue);
	margin-bottom: 3px;
	line-height: 1.4;
}

.dnl-loc .bi { font-size: 11px; }

.dnl-item-title { margin: 0; font-size: 16px; line-height: 1.5; font-weight: 700; }
.dnl-item-title a { color: var(--dnl-navy); }
.dnl-item-title a:hover { color: var(--dnl-red); }

.dnl-empty {
	padding: 22px 6px;
	color: var(--dnl-muted);
	font-size: 15px;
	text-align: center;
}

.dnl-credit {
	grid-column: 1 / -1;
	margin: -10px 0 0;
	text-align: right;
	font-size: 11px;
	color: #9aa3b3;
	font-weight: 500;
}

/* ---------- ফলাফল পেজ (/location-news/) ---------- */

.dnl-results .dnl-count { color: var(--dnl-muted, #5b6475); margin: -8px 0 14px; font-size: 14px; }

.dnl-results .dnl-widget { display: block; }
.dnl-results .dnl-widget .dnl-map-col { margin-bottom: 18px; }
.dnl-results .dnl-selects { grid-template-columns: 1fr; }

.dnl-results-list { list-style: none; margin: 0; padding: 0; }

.dnl-result {
	display: flex;
	gap: 18px;
	padding: 16px 0;
	border-bottom: 1px solid #e8ecf3;
}

.dnl-result-thumb {
	display: block;
	flex: 0 0 240px;
	aspect-ratio: 16 / 10;
	border-radius: 8px;
	overflow: hidden;
	background: #e9eef5;
}

.dnl-result-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dnl-result-body { min-width: 0; }
.dnl-result-title { font-size: 21px; line-height: 1.45; margin: 4px 0 6px; }
.dnl-result-title a { color: #051441; }
.dnl-result-title a:hover { color: #ff2143; }
.dnl-result-meta { font-size: 13px; color: #6b7487; margin-bottom: 6px; }
.dnl-result-excerpt { font-size: 15px; color: #3d4659; margin: 0; line-height: 1.7; font-weight: 500; }

.dnl-pager { margin: 24px 0 8px; }
.dnl-pager ul { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0; }
.dnl-pager a,
.dnl-pager span.page-numbers {
	display: inline-block;
	min-width: 38px;
	text-align: center;
	padding: 7px 12px;
	border: 1px solid #d5dbe6;
	border-radius: 6px;
	color: #051441;
	background: #fff;
}
.dnl-pager a:hover { background: #051441; color: #fff; border-color: #051441; }
.dnl-pager .current { background: #ff2143; color: #fff; border-color: #ff2143; }

.dnl-no-results {
	background: #fff;
	border: 1px dashed #cdd6e3;
	border-radius: 12px;
	padding: 32px 18px;
	text-align: center;
	color: #5b6475;
}

/* ---------- মোবাইল ---------- */

@media (max-width: 991px) {
	.dnl-widget { grid-template-columns: minmax(0, 1fr); gap: 18px; }
	.dnl-stage { max-height: 540px; }
}

@media (max-width: 575px) {
	.dnl-selects { grid-template-columns: 1fr; }
	.dnl-crumbs { padding-right: 4px; padding-top: 38px; }
	.dnl-reset { top: 8px; right: 8px; }
	.dnl-thumb { flex-basis: 96px; height: 68px; }
	.dnl-result { flex-direction: column; gap: 10px; }
	.dnl-result-thumb { flex-basis: auto; width: 100%; }
	.dnl-result-title { font-size: 19px; }
}

@media (prefers-reduced-motion: reduce) {
	.dnl-sh, .dnl-list { transition: none; }
}
