/* ==================================================================
   STYLE GLOBAL — PORTAL TATA RUANG KABUPATEN KEBUMEN
   Satu file CSS untuk: index.html | peta-tata-ruang.html | pelayanan.html
   ------------------------------------------------------------------
   CARA PAKAI:
   - Semua halaman: <link rel="stylesheet" href="style.css">
   - Halaman peta : <body class="page-map">
   - Menu aktif   : cukup beri class="active" pada link navbar
   ================================================================== */

/* ================================================================
   01. RESET & BASE
================================================================ */
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
	background: #f4f7fa;
	color: #333;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}

a {
	text-decoration: none;
	color: inherit;
}

.container {
	width: 100%;
	max-width: 980px;
	margin: 0 auto;
	padding: 0 40px;
}

/* ================================================================
   02. TOP HEADER
================================================================ */
.top-header {
	background: linear-gradient(135deg, #1a6fc0 0%, #1e88d0 50%, #2196c2 100%);
	padding: 12px 0;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.header-inner {
	display: flex;
	align-items: center;
	gap: 16px;
}

.top-header .logo {
	width: 56px;
	height: 56px;
	background: #fff;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
	overflow: hidden;
}

.top-header .logo svg {
	width: 36px;
	height: 36px;
}

.top-header .info {
	display: flex;
	flex-direction: column;
}

.top-header .info .gov-name {
	color: #fff;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.5px;
	text-transform: uppercase;
}
.top-header .info .dept-name {
	color: #d0e8f7;
	font-size: 11.5px;
	font-weight: 500;
	margin-top: 2px;
}
.top-header .info .unit-name {
	color: #b0d4f1;
	font-size: 10.5px;
	margin-top: 1px;
}

/* ================================================================
   03. NAVBAR & MENU AKTIF (gaya index.html — berlaku di semua halaman)
================================================================ */
.navbar {
	background: #fff;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
	position: sticky;
	top: 0;
	z-index: 1100;
}

.nav-inner {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
}

.nav-menu {
	list-style: none;
	display: flex;
	justify-content: center;
}

.nav-menu li a {
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 12px 18px;
	font-size: 12px;
	font-weight: 600;
	color: #444;
	transition: all 0.25s;
	border-bottom: 3px solid transparent;
}

/* >>> MENU AKTIF: teks biru + garis bawah biru + bg biru muda <<< */
.nav-menu li a:hover,
.nav-menu li a.active {
	color: #1a6fc0;
	border-bottom-color: #1a6fc0;
	background: #f0f7ff;
}

.nav-menu li a .nav-icon {
	font-size: 13px;
}

/* ================================================================
   04. HAMBURGER (MOBILE)
================================================================ */
.hamburger {
	display: none;
	flex-direction: column;
	gap: 5px;
	cursor: pointer;
	padding: 12px 0;
}

.hamburger span {
	width: 24px;
	height: 2.5px;
	background: #333;
	border-radius: 2px;
	transition: 0.3s;
}

/* ================================================================
   05. FOOTER
================================================================ */
.footer {
	margin-top: auto;
	background: linear-gradient(135deg, #0d4a7a 0%, #105a8e 100%);
	padding: 24px 40px;
	text-align: center;
}

.footer p {
	color: #a8cce8;
	font-size: 10px;
	line-height: 1.8;
}
.footer p strong {
	color: #d0e8f7;
}

/* ================================================================
   06. HALAMAN INDEX : HERO, LAYANAN & KARTU
================================================================ */
.hero {
	background: linear-gradient(135deg, #0f5fa8 0%, #1576b8 40%, #1a8fd1 100%);
	margin: 28px 0 0;
	border-radius: 14px;
	padding: 44px 40px;
	text-align: center;
	box-shadow: 0 8px 32px rgba(15, 95, 168, 0.25);
	position: relative;
	overflow: hidden;
}

.hero::before {
	content: "";
	position: absolute;
	top: -60px;
	right: -60px;
	width: 200px;
	height: 200px;
	background: rgba(255, 255, 255, 0.04);
	border-radius: 50%;
}

.hero::after {
	content: "";
	position: absolute;
	bottom: -80px;
	left: -40px;
	width: 250px;
	height: 250px;
	background: rgba(255, 255, 255, 0.03);
	border-radius: 50%;
}

.hero h1 {
	color: #fff;
	font-size: 26px;
	font-weight: 700;
	margin-bottom: 10px;
	position: relative;
	z-index: 1;
}

.hero p {
	color: #c5e0f5;
	font-size: 14px;
	line-height: 1.6;
	max-width: 520px;
	margin: 0 auto 24px;
	position: relative;
	z-index: 1;
}

.hero .btn-hero {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: #fff;
	color: #1a6fc0;
	padding: 11px 24px;
	border-radius: 8px;
	font-size: 13px;
	font-weight: 700;
	transition: all 0.3s;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
	position: relative;
	z-index: 1;
}

.hero .btn-hero:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
	background: #f0f8ff;
}

.layanan-section {
	margin: 40px 0;
	text-align: center;
}

.layanan-section h2 {
	font-size: 18px;
	font-weight: 700;
	color: #1a6fc0;
	margin-bottom: 6px;
}

.layanan-section .subtitle {
	font-size: 12.5px;
	color: #777;
	margin-bottom: 28px;
}

.cards-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 18px;
}

.card {
	background: #fff;
	border-radius: 12px;
	padding: 26px 20px;
	text-align: center;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
	transition: all 0.3s ease;
	border: 1px solid rgba(0, 0, 0, 0.04);
}

.card:hover {
	transform: translateY(-4px);
	box-shadow: 0 8px 28px rgba(26, 111, 192, 0.12);
	border-color: rgba(26, 111, 192, 0.15);
}

.card .card-icon {
	font-size: 28px;
	margin-bottom: 12px;
	display: block;
}

.card h3 {
	font-size: 13px;
	font-weight: 700;
	color: #1a6fc0;
	margin-bottom: 8px;
}

.card p {
	font-size: 11px;
	color: #777;
	line-height: 1.6;
	margin-bottom: 14px;
}

.card .btn-card {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-size: 11.5px;
	font-weight: 700;
	color: #1a6fc0;
	transition: gap 0.2s;
}

.card .btn-card:hover {
	gap: 8px;
}

/* ================================================================
   07. HALAMAN PETA TATA RUANG (khusus <body class="page-map">)
================================================================ */
/* Peta full 1 layar: tanpa scroll */
html,
body.page-map {
	height: 100%;
}
body.page-map {
	overflow: hidden;
}

/* Header & logo sedikit lebih ramping agar peta lebih luas */
.page-map .top-header {
	padding: 10px 0;
}
.page-map .top-header .logo {
	width: 52px;
	height: 52px;
}
.page-map .top-header .logo svg {
	width: 34px;
	height: 34px;
}

.map-wrapper {
	flex: 1; /* isi sisa tinggi layar */
	min-height: 0;
	position: relative;
	background: #aad3df;
}

#map {
	position: absolute;
	inset: 0;
	z-index: 1;
}

/* Panel judul peta (kiri atas) */
.map-title-panel {
	position: absolute;
	top: 14px;
	left: 14px;
	z-index: 1000;
	background: rgba(255, 255, 255, 0.96);
	border-radius: 10px;
	padding: 12px 16px;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
	max-width: 280px;
	border-left: 4px solid #1a6fc0;
}

.map-title-panel h2 {
	font-size: 13.5px;
	font-weight: 700;
	color: #1a6fc0;
}
.map-title-panel p {
	font-size: 10.5px;
	color: #777;
	margin-top: 3px;
	line-height: 1.5;
}

/* Legenda (kanan bawah) */
.legend {
	position: absolute;
	bottom: 20px;
	right: 12px;
	z-index: 1000;
	background: rgba(255, 255, 255, 0.96);
	border-radius: 10px;
	padding: 12px 16px;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
}

.legend h3 {
	font-size: 11.5px;
	font-weight: 700;
	color: #1a6fc0;
	margin-bottom: 8px;
	padding-bottom: 6px;
	border-bottom: 1px solid #eaeaea;
}

.legend ul {
	list-style: none;
}

.legend li {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 10.5px;
	color: #555;
	margin-bottom: 6px;
}

.legend li:last-child {
	margin-bottom: 0;
}

.legend .swatch {
	width: 14px;
	height: 14px;
	border-radius: 3px;
	border: 1px solid rgba(0, 0, 0, 0.15);
	flex-shrink: 0;
}

/* Bar koordinat (kiri bawah) */
.coord-bar {
	position: absolute;
	bottom: 8px;
	left: 10px;
	z-index: 1000;
	background: rgba(255, 255, 255, 0.92);
	border-radius: 8px;
	padding: 6px 12px;
	font-size: 10.5px;
	font-weight: 600;
	color: #1a6fc0;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
	font-family: "Consolas", monospace;
	min-width: 190px;
	text-align: center;
}

/* Tombol reset tampilan */
.btn-reset {
	position: absolute;
	top: 14px;
	right: 120px;
	z-index: 1000;
	background: rgba(255, 255, 255, 0.96);
	border: none;
	border-radius: 8px;
	padding: 9px 14px;
	font-size: 11px;
	font-weight: 700;
	color: #1a6fc0;
	cursor: pointer;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
	transition: all 0.25s;
}

.btn-reset:hover {
	background: #1a6fc0;
	color: #fff;
}

/* Styling kontrol Leaflet agar serasi */
.leaflet-control-layers {
	border-radius: 8px !important;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18) !important;
}

.leaflet-popup-content-wrapper {
	border-radius: 10px;
}

.leaflet-popup-content {
	font-family: "Segoe UI", Tahoma, sans-serif;
	margin: 12px 14px;
}

.popup-title {
	font-size: 12px;
	font-weight: 700;
	color: #1a6fc0;
	margin-bottom: 4px;
}

.popup-desc {
	font-size: 11px;
	color: #666;
	line-height: 1.5;
}

/* ================================================================
   08. HALAMAN PELAYANAN : DESKRIPSI, PERSYARATAN, ALUR, CTA
================================================================ */
.content {
	flex: 1;
	padding: 28px 0 40px;
}

/* --- Deskripsi layanan --- */
.service-header {
	background: linear-gradient(135deg, #0f5fa8 0%, #1576b8 40%, #1a8fd1 100%);
	border-radius: 14px;
	padding: 36px 40px;
	box-shadow: 0 8px 32px rgba(15, 95, 168, 0.25);
	position: relative;
	overflow: hidden;
}

.service-header::before {
	content: "";
	position: absolute;
	top: -60px;
	right: -60px;
	width: 200px;
	height: 200px;
	background: rgba(255, 255, 255, 0.05);
	border-radius: 50%;
}

.service-header::after {
	content: "";
	position: absolute;
	bottom: -80px;
	left: -40px;
	width: 250px;
	height: 250px;
	background: rgba(255, 255, 255, 0.04);
	border-radius: 50%;
}

.service-header .badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: rgba(255, 255, 255, 0.15);
	color: #e3f2fd;
	font-size: 10.5px;
	font-weight: 700;
	padding: 5px 12px;
	border-radius: 20px;
	margin-bottom: 14px;
	letter-spacing: 0.5px;
	position: relative;
	z-index: 1;
}

.service-header h1 {
	color: #fff;
	font-size: 25px;
	font-weight: 700;
	margin-bottom: 12px;
	position: relative;
	z-index: 1;
}

.service-header p {
	color: #c5e0f5;
	font-size: 13.5px;
	line-height: 1.7;
	max-width: 640px;
	position: relative;
	z-index: 1;
}

.service-header p strong {
	color: #e8f4fd;
}

/* --- Judul section umum --- */
.section {
	margin-top: 36px;
}

.section-title {
	text-align: center;
	margin-bottom: 6px;
}

.section-title h2 {
	font-size: 18px;
	font-weight: 700;
	color: #1a6fc0;
}

.section-title .subtitle {
	font-size: 12.5px;
	color: #777;
	margin-top: 4px;
}

/* --- Persyaratan --- */
.requirements-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 16px;
	margin-top: 22px;
}

.requirement-card {
	background: #fff;
	border-radius: 12px;
	padding: 20px 22px;
	display: flex;
	gap: 16px;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
	border: 1px solid rgba(0, 0, 0, 0.04);
	transition: all 0.3s ease;
}

.requirement-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 8px 28px rgba(26, 111, 192, 0.12);
	border-color: rgba(26, 111, 192, 0.15);
}

.req-number {
	width: 34px;
	height: 34px;
	background: #e8f2fc;
	color: #1a6fc0;
	border-radius: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 14px;
	font-weight: 800;
	flex-shrink: 0;
}

.req-body {
	flex: 1;
}

.req-body h3 {
	font-size: 13.5px;
	font-weight: 700;
	color: #1a6fc0;
	display: flex;
	align-items: center;
	gap: 8px;
}

.req-body h3 .req-icon {
	font-size: 16px;
}

.req-body p {
	font-size: 11.5px;
	color: #777;
	line-height: 1.65;
	margin-top: 5px;
}

/* --- Catatan --- */
.note-box {
	margin-top: 20px;
	background: #fff9e6;
	border: 1px solid #f5dfa0;
	border-left: 4px solid #e6b800;
	border-radius: 10px;
	padding: 14px 18px;
	display: flex;
	gap: 12px;
	align-items: flex-start;
}

.note-box .note-icon {
	font-size: 17px;
	flex-shrink: 0;
	margin-top: 1px;
}
.note-box p {
	font-size: 11.5px;
	color: #7a6412;
	line-height: 1.65;
}

/* --- Alur pelayanan (stepper) --- */
.steps {
	display: flex;
	justify-content: space-between;
	margin-top: 28px;
	position: relative;
}

.steps::before {
	content: "";
	position: absolute;
	top: 27px;
	left: 10%;
	right: 10%;
	height: 3px;
	background: linear-gradient(90deg, #b7dcf5, #1a6fc0, #b7dcf5);
	border-radius: 3px;
}

.step {
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	position: relative;
	z-index: 1;
	padding: 0 6px;
}

.step-circle {
	width: 54px;
	height: 54px;
	background: #fff;
	border: 3px solid #1a6fc0;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 22px;
	box-shadow: 0 4px 12px rgba(26, 111, 192, 0.18);
	transition: all 0.3s;
}

.step:hover .step-circle {
	background: #1a6fc0;
	transform: scale(1.08);
}

.step h3 {
	font-size: 12.5px;
	font-weight: 700;
	color: #1a6fc0;
	margin-top: 12px;
}

.step p {
	font-size: 10.5px;
	color: #777;
	line-height: 1.5;
	margin-top: 4px;
	max-width: 130px;
}

/* --- CTA --- */
.cta-section {
	margin-top: 40px;
	background: linear-gradient(135deg, #0f5fa8 0%, #1576b8 40%, #1a8fd1 100%);
	border-radius: 14px;
	padding: 38px 40px;
	text-align: center;
	box-shadow: 0 8px 32px rgba(15, 95, 168, 0.25);
	position: relative;
	overflow: hidden;
}

.cta-section::before {
	content: "";
	position: absolute;
	top: -60px;
	right: -60px;
	width: 220px;
	height: 220px;
	background: rgba(255, 255, 255, 0.05);
	border-radius: 50%;
}

.cta-section::after {
	content: "";
	position: absolute;
	bottom: -80px;
	left: -40px;
	width: 260px;
	height: 260px;
	background: rgba(255, 255, 255, 0.04);
	border-radius: 50%;
}

.cta-section h2 {
	color: #fff;
	font-size: 22px;
	font-weight: 700;
	position: relative;
	z-index: 1;
}

.cta-section p {
	color: #c5e0f5;
	font-size: 13px;
	line-height: 1.6;
	max-width: 520px;
	margin: 10px auto 24px;
	position: relative;
	z-index: 1;
}

.cta-buttons {
	display: flex;
	justify-content: center;
	gap: 14px;
	flex-wrap: wrap;
	position: relative;
	z-index: 1;
}

.btn-primary {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: #fff;
	color: #1a6fc0;
	padding: 12px 28px;
	border-radius: 8px;
	font-size: 13px;
	font-weight: 700;
	transition: all 0.3s;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
}

.btn-primary:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
	background: #f0f8ff;
}

.btn-secondary {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: transparent;
	color: #fff;
	border: 2px solid rgba(255, 255, 255, 0.7);
	padding: 10px 28px;
	border-radius: 8px;
	font-size: 13px;
	font-weight: 700;
	transition: all 0.3s;
}

.btn-secondary:hover {
	background: rgba(255, 255, 255, 0.12);
	border-color: #fff;
	transform: translateY(-2px);
}

.menu-icon {
	width: 5px;
	font-size: 13px;
	margin-right: 8px;
}

.icon-home {
	color: #4caf50;
}

.icon-map {
	color: #2196f3;
}

.icon-clipboard {
	color: #ff9800;
}

.icon-folder {
	color: #ffc107;
}

.icon-phone {
	color: #dd3703;
}

.icon-warning {
	color: #ffc107;
}

.icon-check {
	color: #7cc50d;
}

.icon-export {
	color: #ff7bcf;
}

/* ================================================================
   09. RESPONSIVE
================================================================ */

/* ---------- TABLET ---------- */
@media (min-width: 769px) and (max-width: 1024px) {
	.cards-grid {
		grid-template-columns: repeat(2, 1fr);
	}
	.requirements-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

/* ---------- MOBILE ---------- */
@media (max-width: 768px) {
	.container {
		padding: 0 20px;
	}

	/* Navbar mobile */
	.nav-inner {
		justify-content: flex-start;
	}

	.hamburger {
		display: flex;
	}

	.nav-menu {
		display: none;
		flex-direction: column;
		width: 100%;
	}

	.nav-menu.open {
		display: flex;
	}

	.nav-menu li a {
		padding: 12px 16px;
		border-bottom: 1px solid #f0f0f0;
		border-left: 3px solid transparent;
	}

	/* Menu aktif & hover versi mobile (garis kiri biru) */
	.nav-menu li a:hover,
	.nav-menu li a.active {
		border-bottom: 1px solid #f0f0f0;
		border-left-color: #1a6fc0;
	}

	/* --- Index --- */
	.hero {
		margin: 20px 0 0;
		padding: 32px 24px;
	}
	.hero h1 {
		font-size: 21px;
	}
	.layanan-section {
		margin: 28px 0;
	}
	.cards-grid {
		grid-template-columns: 1fr;
		gap: 14px;
	}

	/* --- Peta --- */
	.map-title-panel {
		max-width: 200px;
		padding: 10px 12px;
	}
	.map-title-panel h2 {
		font-size: 12px;
	}
	.map-title-panel p {
		font-size: 9.5px;
	}

	.legend {
		bottom: 46px;
		padding: 10px 12px;
		right: 10px;
	}
	.legend li {
		font-size: 9.5px;
	}

	.coord-bar {
		min-width: 160px;
		font-size: 9.5px;
		bottom: 6px;
	}

	.btn-reset {
		top: auto;
		bottom: 46px;
		right: 10px;
	}

	/* --- Pelayanan --- */
	.service-header {
		padding: 28px 24px;
	}
	.service-header h1 {
		font-size: 20px;
	}
	.service-header p {
		font-size: 12.5px;
	}

	.requirements-grid {
		grid-template-columns: 1fr;
		gap: 12px;
	}
	.requirement-card {
		padding: 16px;
		gap: 12px;
	}

	/* Alur jadi timeline vertikal */
	.steps {
		flex-direction: column;
		padding-left: 8px;
	}

	.steps::before {
		top: 27px;
		left: 26px;
		right: auto;
		width: 3px;
		height: calc(100% - 54px);
		background: linear-gradient(180deg, #1a6fc0, #b7dcf5);
	}

	.step {
		flex-direction: row;
		text-align: left;
		align-items: flex-start;
		gap: 16px;
		padding: 0 0 24px 0;
	}

	.step:last-child {
		padding-bottom: 0;
	}
	.step-circle {
		flex-shrink: 0;
	}
	.step h3 {
		margin-top: 4px;
	}
	.step p {
		margin-top: 3px;
		max-width: none;
	}

	.cta-section {
		padding: 28px 20px;
	}
	.cta-section h2 {
		font-size: 18px;
	}
	.cta-buttons {
		flex-direction: column;
		align-items: stretch;
	}
	.btn-primary,
	.btn-secondary {
		justify-content: center;
		padding: 12px 20px;
	}

	.footer {
		padding: 20px;
	}
}
