:root {
  --forest: #176b4a;
  --forest-700: #0f5139;
  --forest-50: #ecf7f1;
  --ocean: #247c9f;
  --ocean-700: #185b76;
  --amber: #eba83a;
  --coral: #d85d4f;
  --ink: #17212b;
  --slate: #526173;
  --mist: #edf3f1;
  --line: #d8e3df;
  --paper: #f8fbfa;
  --white: #ffffff;
  --shadow-xs: 0 2px 10px rgba(23, 33, 43, 0.05);
  --shadow-sm: 0 10px 28px rgba(23, 33, 43, 0.08);
  --shadow-md: 0 20px 56px rgba(23, 33, 43, 0.12);
  --radius: 8px;
}

* {
  box-sizing: border-box;
  letter-spacing: 0;
}

html {
  scroll-padding-top: 88px;
}

body {
  min-width: 320px;
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(36, 124, 159, 0.07), rgba(248, 251, 250, 0) 340px),
    var(--paper);
}

a {
  color: var(--forest);
}

a:hover {
  color: var(--forest-700);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--ink);
}

.navbar {
  min-height: 72px;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(216, 227, 223, 0.85);
  box-shadow: var(--shadow-xs);
  backdrop-filter: blur(16px);
}

.navbar .nav-link {
  color: #344254;
  font-weight: 650;
}

.navbar .nav-link:hover {
  color: var(--forest);
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--forest), var(--ocean));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 850;
  box-shadow: inset 0 -10px 18px rgba(0, 0, 0, 0.15);
}

.brand-logo {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: contain;
  background: #fff;
  padding: 3px;
  border: 1px solid rgba(216, 227, 223, 0.9);
  box-shadow: 0 8px 18px rgba(23, 33, 43, 0.09);
}

.btn {
  min-height: 40px;
  border-radius: var(--radius);
  font-weight: 750;
}

.btn-sm {
  min-height: 34px;
}

.btn-lg {
  min-height: 50px;
}

.btn-primary {
  background: var(--forest);
  border-color: var(--forest);
  box-shadow: 0 10px 22px rgba(23, 107, 74, 0.18);
}

.btn-primary:hover,
.btn-primary:focus {
  background: var(--forest-700);
  border-color: var(--forest-700);
}

.btn-warning {
  background: var(--amber);
  border-color: var(--amber);
  color: #17212b;
}

.btn-outline-primary {
  color: var(--forest);
  border-color: rgba(23, 107, 74, 0.5);
  background: #fff;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
  color: #fff;
  background: var(--forest);
  border-color: var(--forest);
}

.btn-link {
  color: var(--forest);
}

.section-pad {
  padding: 76px 0;
}

.section-band {
  background: #fff;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  color: var(--ocean);
  font-size: 0.76rem;
  font-weight: 850;
  text-transform: uppercase;
}

.hero {
  position: relative;
  min-height: 650px;
  display: flex;
  align-items: end;
  color: #fff;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(12, 42, 34, 0.9), rgba(12, 42, 34, 0.58), rgba(12, 42, 34, 0.25)),
    url("https://images.unsplash.com/photo-1628689469838-524a4a973b8e?auto=format&fit=crop&w=1800&q=80") center/cover;
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 120px;
  background: linear-gradient(0deg, var(--paper), rgba(248, 251, 250, 0));
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 860px;
  padding-top: 120px;
  padding-bottom: 128px;
}

.hero h1 {
  max-width: 840px;
  color: #fff;
  font-size: clamp(2.35rem, 5vw, 4.85rem);
  line-height: 1.02;
  font-weight: 850;
}

.hero p {
  max-width: 680px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.08rem;
  line-height: 1.65;
}

.hero-stat-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero-stat {
  min-width: 132px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.hero-stat strong {
  display: block;
  color: #fff;
  font-size: 1.35rem;
}

.hero-stat span {
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.85rem;
}

.page-header {
  padding: 116px 0 46px;
  background:
    linear-gradient(135deg, rgba(23, 107, 74, 0.1), rgba(36, 124, 159, 0.13)),
    #fff;
  border-bottom: 1px solid var(--line);
}

.page-header p {
  max-width: 760px;
  line-height: 1.65;
}

.page-header-shell {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
}

.page-header-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.soft-card,
.region-card,
.benefit-card,
.step-card,
.summary-card,
.destination-card,
.route-panel,
.map-workspace {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.region-card,
.benefit-card,
.step-card,
.destination-card,
.documentation-media {
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.region-card:hover,
.benefit-card:hover,
.step-card:hover,
.destination-card:hover,
.documentation-media:hover {
  transform: translateY(-2px);
  border-color: rgba(23, 107, 74, 0.32);
  box-shadow: var(--shadow-md);
}

.region-card {
  min-height: 188px;
}

.icon-tile {
  width: 46px;
  height: 46px;
  border-radius: var(--radius);
  background: var(--forest-50);
  color: var(--forest);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 850;
}

.badge-soft {
  background: rgba(36, 124, 159, 0.12);
  color: var(--ocean-700);
}

.form-control,
.form-select {
  min-height: 46px;
  border-color: #cbd8d3;
  border-radius: var(--radius);
  color: var(--ink);
}

.form-control:focus,
.form-select:focus {
  border-color: rgba(23, 107, 74, 0.62);
  box-shadow: 0 0 0 0.22rem rgba(23, 107, 74, 0.12);
}

.form-label {
  color: #22303d;
}

.form-text,
.text-secondary {
  color: var(--slate) !important;
}

.planner-section {
  padding-top: 48px;
}

.route-submit-btn {
  position: relative;
}

.route-submit-btn .submit-loading {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.route-submit-btn.is-loading .submit-label {
  display: none;
}

.route-submit-btn.is-loading .submit-loading {
  display: inline-flex;
}

.route-loading-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(9, 24, 35, 0.38);
  backdrop-filter: blur(5px);
}

.route-loading-overlay.is-visible {
  display: flex;
}

.route-loading-card {
  width: min(420px, 100%);
  padding: 30px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(9, 24, 35, 0.25);
  text-align: center;
}

.route-loading-card h2 {
  margin: 16px 0 8px;
  font-size: 1.25rem;
  font-weight: 900;
}

.route-loading-card p {
  margin: 0;
  color: var(--slate);
  line-height: 1.6;
}

.route-loading-spinner {
  width: 54px;
  height: 54px;
  margin: 0 auto;
  border-radius: 50%;
  border: 5px solid #dff2eb;
  border-top-color: var(--forest);
  animation: route-spin 0.8s linear infinite;
}

@keyframes route-spin {
  to {
    transform: rotate(360deg);
  }
}

.planner-grid {
  align-items: start;
}

.planner-stack {
  display: grid;
  gap: 18px;
}

.form-section-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
}

.form-step-mark {
  width: 36px;
  height: 36px;
  border-radius: var(--radius);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--forest-50);
  color: var(--forest);
  font-weight: 850;
  flex: 0 0 auto;
}

.selected-place-panel {
  border-left: 4px solid var(--ocean);
}

.empty-state {
  min-height: 96px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.map-workspace {
  overflow: hidden;
}

.map-toolbar {
  min-height: 68px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.map-traffic-legend {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #fff4ed;
  color: #9a3412;
  font-size: 0.82rem;
  font-weight: 850;
}

.map-traffic-legend span {
  width: 20px;
  height: 5px;
  border-radius: 999px;
  background: linear-gradient(90deg, #f97316, #dc2626);
}

.map-large,
.map-search {
  width: 100%;
  min-height: 520px;
  border: 0;
  border-radius: 0;
  overflow: hidden;
  background: #dfecea;
}

.map-search {
  min-height: 470px;
}

.route-layout {
  align-items: start;
}

.route-panel {
  padding: 20px;
}

.route-panel-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.route-list {
  position: relative;
}

.route-list::before {
  content: "";
  position: absolute;
  left: 17px;
  top: 22px;
  bottom: 22px;
  width: 2px;
  background: #d6e6de;
}

.route-item {
  position: relative;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 12px;
  width: 100%;
  padding: 0 0 18px;
  border: 0;
  background: transparent;
  text-align: left;
}

.route-item:last-child {
  padding-bottom: 0;
}

.route-jump {
  cursor: pointer;
}

.route-content {
  min-width: 0;
  padding: 8px 10px;
  border-radius: var(--radius);
  transition: background 0.18s ease, box-shadow 0.18s ease;
}

.route-jump:hover .route-content,
.route-jump.is-active .route-content {
  background: #f2f8f5;
  box-shadow: inset 0 0 0 1px rgba(23, 107, 74, 0.16);
}

.route-marker {
  position: relative;
  z-index: 1;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--forest);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 850;
  box-shadow: 0 8px 18px rgba(23, 107, 74, 0.22);
}

.route-hotel .route-marker {
  background: var(--ocean);
}

.route-jump.is-active .route-marker {
  background: var(--amber);
  color: #17212b;
}

.route-meta {
  color: var(--slate);
  font-size: 0.88rem;
  margin-top: 2px;
}

.route-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.route-tags span {
  min-height: 26px;
  padding: 4px 9px;
  border-radius: 999px;
  background: #edf4f1;
  color: #455464;
  display: inline-flex;
  align-items: center;
  font-size: 0.78rem;
  font-weight: 700;
}

.segment-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  padding: 13px 0;
  text-align: left;
  cursor: pointer;
}

.segment-row:last-child {
  border-bottom: 0;
}

.segment-main {
  min-width: 0;
  color: #2f3e4f;
  font-size: 0.88rem;
  font-weight: 750;
}

.segment-meta {
  flex: 0 0 auto;
  color: var(--slate);
  font-size: 0.84rem;
  white-space: nowrap;
}

.traffic-delay-pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  margin-left: 6px;
  padding: 3px 8px;
  border-radius: 999px;
  background: #fff3cd;
  color: #9a5b00;
  font-weight: 850;
  font-size: 0.76rem;
}

.traffic-advisory {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 14px;
  padding: 16px 18px;
  margin-bottom: 22px;
  border: 1px solid #f5d38d;
  border-left: 5px solid var(--amber);
  border-radius: 10px;
  background: #fff8e8;
  color: #5f3b00;
}

.traffic-advisory-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--amber);
  color: #17212b;
  font-weight: 900;
}

.traffic-advisory h2 {
  margin: 0 0 4px;
  color: #4f3100;
  font-size: 1rem;
  font-weight: 900;
}

.traffic-advisory p {
  margin: 0;
  line-height: 1.6;
}

.segment-jump:hover .segment-main,
.segment-jump.is-active .segment-main {
  color: var(--forest);
}

.map-segment-control {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 16px;
}

.metric-card {
  position: relative;
  overflow: hidden;
  border-left: 4px solid var(--forest);
  padding: 18px 20px;
  min-height: 112px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.metric-card::after {
  content: "";
  position: absolute;
  right: 12px;
  top: 12px;
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  background: rgba(36, 124, 159, 0.1);
}

.metric-card > * {
  position: relative;
  z-index: 1;
}

.route-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(178px, 1fr));
  gap: 14px;
}

.metric-label {
  color: var(--slate);
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.25;
}

.metric-value {
  margin-top: 6px;
  color: var(--ink);
  font-size: clamp(1.12rem, 1.55vw, 1.42rem);
  line-height: 1.18;
  font-weight: 900;
}

.traffic-metric {
  border-left-color: var(--amber);
}

.traffic-metric::after {
  background: rgba(235, 168, 58, 0.14);
}

.destination-card {
  display: flex;
  flex-direction: column;
}

.destination-card p {
  flex: 1;
}

.detail-shell {
  align-items: stretch;
}

.detail-facts {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin-top: 18px;
}

.detail-fact {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.detail-fact:last-child {
  border-bottom: 0;
}

.detail-fact span {
  color: var(--slate);
}

.detail-fact strong {
  text-align: right;
}

.gallery-section {
  padding-top: 8px;
}

.documentation-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.documentation-gallery-compact {
  grid-template-columns: 1fr;
  gap: 10px;
}

.documentation-media {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.documentation-media img,
.documentation-media video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: #e3eeeb;
}

.documentation-caption {
  padding: 11px 13px;
  color: var(--slate);
  font-size: 0.9rem;
}

.gallery-admin-preview {
  width: 128px;
  height: 82px;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: #e3eeeb;
}

.leaflet-popup-content-wrapper {
  border-radius: var(--radius);
  box-shadow: 0 16px 36px rgba(23, 33, 43, 0.18);
}

.leaflet-popup-content {
  margin: 14px 16px;
  min-width: 190px;
}

.leaflet-popup-content .btn {
  width: 100%;
}

.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background:
    linear-gradient(90deg, rgba(12, 42, 34, 0.88), rgba(12, 42, 34, 0.55)),
    url("https://images.unsplash.com/photo-1516690553959-71a414d6b9b6?auto=format&fit=crop&w=1800&q=80") center/cover;
}

.login-card {
  max-width: 480px;
  margin-left: auto;
}

.admin-page {
  background: #f4f8fc;
}

.admin-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 276px minmax(0, 1fr);
  background: #f4f8fc;
}

.admin-sidebar {
  background: #fff;
  color: #0f2742;
  border-right: 1px solid #e3eaf2;
  box-shadow: 10px 0 30px rgba(15, 39, 66, 0.04);
  padding: 18px 16px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

.admin-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  margin-bottom: 14px;
}

.admin-brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: linear-gradient(135deg, var(--forest), var(--ocean));
  font-weight: 900;
  box-shadow: 0 12px 28px rgba(23, 107, 74, 0.22);
}

.admin-brand-logo {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: contain;
  background: #fff;
  padding: 3px;
  border: 1px solid #dfe8f0;
  box-shadow: 0 12px 26px rgba(15, 39, 66, 0.12);
  flex: 0 0 auto;
}

.admin-brand-title {
  color: #092440;
  font-size: 1rem;
  font-weight: 850;
}

.admin-brand-subtitle {
  color: #5d7190;
  font-size: 0.86rem;
}

.admin-user-card {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 74px;
  padding: 13px 14px;
  margin-bottom: 14px;
  border-radius: 20px;
  background: #f4ecff;
}

.admin-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: linear-gradient(135deg, #7c3aed, #a855f7);
  font-weight: 850;
  flex: 0 0 auto;
}

.admin-avatar-sm {
  width: 38px;
  height: 38px;
  font-size: 0.95rem;
}

.admin-user-name {
  color: #0b2340;
  font-weight: 850;
  line-height: 1.2;
}

.admin-user-role {
  color: #52698a;
  font-size: 0.9rem;
}

.admin-nav {
  display: grid;
  gap: 4px;
}

.admin-nav a,
.admin-sidebar-footer a {
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 14px;
  color: #52698a;
  text-decoration: none;
  padding: 0 14px;
  border-radius: 14px;
  font-size: 0.94rem;
  font-weight: 750;
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.admin-nav a i,
.admin-sidebar-footer a i {
  width: 22px;
  color: #647899;
  font-size: 1.06rem;
}

.admin-nav a:hover,
.admin-sidebar-footer a:hover {
  color: #007bc8;
  background: #eef8ff;
}

.admin-nav a:hover i,
.admin-sidebar-footer a:hover i {
  color: #007bc8;
}

.admin-nav a.active {
  color: #0084d8;
  background: #e7f5ff;
}

.admin-nav a.active i {
  color: #0084d8;
}

.admin-sidebar-footer {
  margin: 16px -16px -18px;
  padding: 14px 16px;
  border-top: 1px solid #e8eef5;
}

.admin-main {
  min-width: 0;
  background: #f4f8fc;
}

.admin-topbar {
  min-height: 66px;
  background: #fff;
  border-bottom: 1px solid #e3eaf2;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  position: sticky;
  top: 0;
  z-index: 5;
}

.admin-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #52698a;
  font-size: 0.92rem;
  margin: 0;
}

.admin-breadcrumb i {
  font-size: 0.78rem;
}

.admin-page-title {
  margin-bottom: 20px;
}

.admin-page-title h1 {
  margin: 0;
  color: #0b2340;
  font-size: 1.75rem;
  font-weight: 900;
}

.admin-page-title p {
  margin: 4px 0 0;
  color: #5d7190;
  font-size: 0.98rem;
}

.admin-topbar-user {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #0b2340;
  font-size: 1.02rem;
  font-weight: 750;
}

.admin-content {
  padding: 24px;
}

.min-w-0 {
  min-width: 0;
}

.admin-stat-card {
  min-height: 186px;
  padding: 26px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid #e3eaf2;
  box-shadow: 0 8px 22px rgba(15, 39, 66, 0.08);
}

.admin-stat-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.35rem;
  box-shadow: 0 12px 24px rgba(15, 39, 66, 0.14);
}

.admin-stat-icon.blue {
  background: linear-gradient(135deg, #1495ff, #0077dc);
}

.admin-stat-icon.green {
  background: linear-gradient(135deg, #12c978, #08a95e);
}

.admin-stat-icon.purple {
  background: linear-gradient(135deg, #8b5cf6, #a855f7);
}

.admin-stat-icon.pink {
  background: linear-gradient(135deg, #fb4d8b, #f43f70);
}

.admin-stat-icon.amber {
  background: linear-gradient(135deg, #f59e0b, #f97316);
}

.admin-stat-value {
  margin-top: 20px;
  color: #0b2340;
  font-size: 2rem;
  font-weight: 900;
}

.admin-stat-label {
  color: #52698a;
  font-size: 0.98rem;
}

.admin-panel-card {
  min-height: 420px;
  padding: 30px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid #e3eaf2;
  box-shadow: 0 8px 22px rgba(15, 39, 66, 0.08);
}

.admin-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}

.admin-panel-header h2 {
  margin: 0;
  color: #0b2340;
  font-size: 1.24rem;
  font-weight: 850;
}

.admin-list {
  display: grid;
  gap: 18px;
}

.admin-list-item {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
}

.admin-list-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #1298f4;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 850;
}

.admin-pill {
  min-width: 86px;
  padding: 6px 12px;
  border-radius: 999px;
  background: #e1f3ff;
  color: #0084d8;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 850;
}

.soft-card,
.summary-card,
.route-panel {
  border-radius: 18px;
  border-color: #e3eaf2;
  box-shadow: 0 8px 22px rgba(15, 39, 66, 0.08);
}

.admin-crud-layout {
  --crud-card-radius: 20px;
}

.admin-crud-form-col {
  min-width: 300px;
}

.admin-crud-table-col {
  min-width: 0;
}

.admin-crud-card {
  background: #fff;
  border: 1px solid #e3eaf2;
  border-radius: var(--crud-card-radius);
  box-shadow: 0 8px 22px rgba(15, 39, 66, 0.08);
  overflow: hidden;
}

.admin-form-card {
  padding: 18px;
}

.admin-table-card {
  padding: 0;
}

.admin-crud-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.admin-table-card .admin-crud-card-header {
  margin: 0;
  padding: 18px 20px;
  border-bottom: 1px solid #edf2f7;
}

.admin-section-kicker {
  display: block;
  margin-bottom: 3px;
  color: #0084d8;
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-crud-card-header h2 {
  margin: 0;
  color: #0b2340;
  font-size: 1.08rem;
  font-weight: 900;
}

.admin-crud-icon {
  width: 40px;
  height: 40px;
  border-radius: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  color: #0084d8;
  background: #e7f5ff;
  font-size: 1.25rem;
}

.admin-form-grid {
  display: grid;
  gap: 12px;
}

.admin-field {
  min-width: 0;
}

.admin-field .form-label {
  margin-bottom: 5px;
  color: #30445f;
  font-size: 0.86rem;
}

.admin-form-card .form-control,
.admin-form-card .form-select {
  min-height: 42px;
  border-color: #d9e4ee;
  background-color: #fbfdff;
}

.admin-form-card textarea.form-control {
  min-height: 88px;
}

.admin-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid #edf2f7;
}

.admin-form-actions .btn {
  min-width: 118px;
}

.admin-table-toolbar {
  align-items: center;
}

.admin-toolbar-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
}

.admin-search {
  min-width: 230px;
  height: 40px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 14px;
  border: 1px solid #dbe6ef;
  border-radius: 999px;
  background: #f8fbff;
  color: #7083a0;
}

.admin-search input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: #0b2340;
  font-size: 0.93rem;
}

.admin-count-badge {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 999px;
  background: #eef8ff;
  color: #0084d8;
  font-weight: 850;
  font-size: 0.88rem;
}

.admin-data-table {
  margin: 0;
  min-width: 980px;
}

.admin-data-table thead th {
  padding: 12px 14px;
  background: #f8fbff;
  color: #647899;
  border-color: #edf2f7;
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-data-table tbody td {
  padding: 12px 14px;
  border-color: #edf2f7;
  color: #263a52;
  font-size: 0.9rem;
  vertical-align: middle;
  white-space: nowrap;
}

.admin-data-table tbody tr:last-child td {
  border-bottom: 0;
}

.admin-row-actions {
  display: inline-flex;
  flex-wrap: nowrap;
  justify-content: flex-end;
  gap: 7px;
}

.admin-row-actions .btn {
  min-height: 30px;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.8rem;
}

.admin-data-table th:last-child,
.admin-data-table td:last-child {
  position: sticky;
  right: 0;
  z-index: 2;
  background: #fff;
  box-shadow: -10px 0 18px rgba(15, 39, 66, 0.06);
}

.admin-data-table thead th:last-child {
  z-index: 3;
  background: #f8fbff;
}

.admin-data-table td:nth-child(4),
.admin-data-table td:nth-child(5),
.admin-data-table td:nth-child(6),
.admin-data-table td:nth-child(7) {
  max-width: 190px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.table {
  vertical-align: middle;
  --bs-table-hover-bg: #f5faf7;
}

.table thead th {
  background: #edf5f1;
  color: #314253;
  border-bottom: 1px solid var(--line);
  font-size: 0.86rem;
  white-space: nowrap;
}

.table td {
  color: #293847;
}

.table-responsive {
  border-radius: var(--radius);
}

.site-footer {
  background:
    linear-gradient(135deg, rgba(23, 107, 74, 0.96), rgba(15, 47, 40, 0.98)),
    #0d2f28;
  color: #d8eee5;
  padding: 56px 0 24px;
}

.site-footer-main {
  display: grid;
  grid-template-columns: minmax(260px, 1.1fr) minmax(0, 1.7fr);
  gap: 46px;
  align-items: start;
}

.site-footer-brand {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.footer-logo {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  object-fit: contain;
  padding: 4px;
  background: #fff;
  border: 1px solid rgba(255, 255, 255, 0.45);
  flex: 0 0 auto;
}

.footer-brand-title {
  color: #fff;
  font-size: 1.2rem;
  font-weight: 900;
  margin-bottom: 8px;
}

.site-footer p {
  max-width: 460px;
  margin: 0;
  color: rgba(216, 238, 229, 0.78);
  line-height: 1.7;
}

.site-footer-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.site-footer h2 {
  margin: 0 0 14px;
  color: #fff;
  font-size: 0.92rem;
  font-weight: 850;
  text-transform: uppercase;
}

.site-footer a,
.site-footer-links span {
  display: block;
  color: rgba(216, 238, 229, 0.76);
  text-decoration: none;
  margin-bottom: 9px;
  font-size: 0.95rem;
}

.site-footer a:hover {
  color: #fff;
}

.site-footer-bottom {
  margin-top: 38px;
  padding-top: 20px;
  border-top: 1px solid rgba(216, 238, 229, 0.18);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: rgba(216, 238, 229, 0.68);
  font-size: 0.92rem;
}

.site-footer-bottom a {
  margin: 0;
  color: rgba(216, 238, 229, 0.82);
}

footer:not(.site-footer) {
  background: #0d2f28;
  color: #d8eee5;
}

@media (min-width: 992px) {
  .route-sidebar {
    position: sticky;
    top: 96px;
  }
}

@media (min-width: 1200px) {
  .admin-form-card {
    position: sticky;
    top: 88px;
    max-height: calc(100vh - 112px);
    overflow-y: auto;
  }

  .admin-form-card::-webkit-scrollbar {
    width: 8px;
  }

  .admin-form-card::-webkit-scrollbar-thumb {
    background: #cbd8e6;
    border-radius: 999px;
  }
}

@media (max-width: 1199.98px) {
  .map-large,
  .map-search {
    min-height: 440px;
  }
}

@media (max-width: 991.98px) {
  .hero {
    min-height: 610px;
  }

  .page-header-shell,
  .map-toolbar {
    display: block;
  }

  .page-header-actions {
    justify-content: flex-start;
    margin-top: 18px;
  }

  .admin-shell {
    display: block;
  }

  .admin-sidebar {
    position: static;
    height: auto;
  }

  .admin-nav {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  }

  .admin-sidebar-footer {
    margin: 20px 0 0;
    padding: 16px 0 0;
  }

  .admin-topbar {
    min-height: auto;
    padding: 18px 20px;
  }

  .admin-topbar {
    position: static;
  }

  .admin-crud-card-header,
  .admin-table-toolbar,
  .admin-toolbar-actions {
    align-items: flex-start;
  }

  .admin-table-toolbar {
    display: block;
  }

  .admin-toolbar-actions {
    justify-content: flex-start;
    margin-top: 16px;
  }

  .admin-search {
    width: 100%;
    min-width: 0;
  }

  .site-footer-main,
  .site-footer-links {
    grid-template-columns: 1fr;
  }

  .site-footer-main {
    gap: 30px;
  }
}

@media (max-width: 575.98px) {
  .section-pad {
    padding: 54px 0;
  }

  .hero-content {
    padding-bottom: 104px;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .soft-card,
  .route-panel {
    padding: 18px !important;
  }

  .map-large,
  .map-search {
    min-height: 360px;
  }

  .admin-content {
    padding: 16px;
  }

  .admin-form-card {
    padding: 18px;
  }

  .admin-table-card .admin-crud-card-header {
    padding: 18px;
  }

  .admin-data-table thead th,
  .admin-data-table tbody td {
    padding: 13px 14px;
  }

  .segment-row {
    display: block;
  }

  .segment-meta {
    margin-top: 4px;
    white-space: normal;
  }

  .detail-fact {
    display: block;
  }

  .detail-fact strong {
    display: block;
    text-align: left;
    margin-top: 3px;
  }

  .site-footer {
    padding: 42px 0 22px;
  }

  .site-footer-brand {
    display: block;
  }

  .footer-logo {
    margin-bottom: 14px;
  }

  .site-footer-bottom {
    display: block;
  }

  .site-footer-bottom a {
    margin-top: 8px;
  }
}
