/* Shared presentation for Leaf pages. Map/camera layout and navbar are independent. */
body.cs-surface {
  min-height: 100vh;
  font-family: Verdana, sans-serif;
  font-size: 16px;
  background:
    radial-gradient(circle at top left, rgba(4, 170, 109, .18), transparent 32rem),
    linear-gradient(135deg, #f7fafc 0%, #e8f0f5 42%, #f6f7fb 100%);
}
.cs-page {
  position: relative;
  min-width: 0;
  margin: 28px auto;
  padding: 32px;
  color: #374151;
  line-height: 1.6;
  overflow-wrap: anywhere;
  background: rgba(255, 255, 255, .95);
  border: 1px solid rgba(148, 163, 184, .28);
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(31, 41, 55, .12);
}
.cs-page::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 4px;
  border-radius: 8px 8px 0 0;
  background: linear-gradient(90deg, #04aa6d, #2b7de9, #111827);
}
.cs-page-document { max-width: 860px; }
.cs-page-form { max-width: 960px; }
.cs-page h1, .cs-page h2, .cs-page h3, .cs-page h4, .cs-page h5 {
  color: #111827;
  font-weight: 700;
  line-height: 1.3;
  overflow-wrap: anywhere;
}
.cs-page > h3 { margin-bottom: 24px; font-size: 28px; }
.cs-page-document p, .cs-page-document li { line-height: 1.8; }
.cs-page-document img { max-width: 100%; height: auto; }
.cs-page img[width="96"][height="96"] { border-radius: 8px; object-fit: cover; }
.cs-page .row > .col { min-width: 0; }
.cs-page .row > .fixed, .cs-page .row > .fixed2, .cs-page .row > .static {
  flex-shrink: 0;
  padding-inline-end: 16px;
  color: #4b5563;
  font-weight: 600;
}
.cs-page .form-group { margin-bottom: 18px; }
.cs-page label { color: #374151; font-weight: 600; }
.cs-page .form-control, .cs-dialog .form-control, .cs-page .custom-select {
  min-height: 44px;
  border-color: #d7dee8;
  border-radius: 8px;
  background-color: #f8fafc;
  color: #111827;
  font-size: 16px;
}
.cs-page textarea.form-control, .cs-dialog textarea.form-control { min-height: 100px; }
.cs-page .form-control::placeholder, .cs-dialog .form-control::placeholder {
  color: #6b7280;
  opacity: 1;
}
.cs-page .form-control:focus, .cs-dialog .form-control:focus, .cs-page .custom-select:focus {
  background-color: #fff;
  border-color: #8ab7f5;
  box-shadow: 0 0 0 3px rgba(43, 125, 233, .15);
}
.cs-page .form-control-file { max-width: 100%; padding: 12px; border: 1px dashed #94a3b8; border-radius: 8px; }
.cs-page .btn-primary, .cs-page .btn-success, .cs-page .btn-danger,
.cs-page .btn-secondary, .cs-page .btn-default, .cs-page .btn-outline-primary {
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: 600;
  white-space: normal;
}
.cs-page .btn-primary, .cs-page .btn-success {
  border-color: #038857;
  background: linear-gradient(135deg, #04aa6d, #038857);
  color: #fff;
}
.cs-page .btn-primary:hover, .cs-page .btn-success:hover { background: #02734a; border-color: #02734a; }
.cs-page .btn-default { color: #374151; background: #eef2f7; border-color: #d7dee8; }
.cs-page a:focus-visible, .cs-page button:focus-visible, .cs-page input:focus-visible,
.cs-dialog a:focus-visible, .cs-dialog button:focus-visible {
  outline: 2px solid #2b7de9;
  outline-offset: 3px;
}
.cs-page .alert { border-radius: 8px; }
.cs-page .pagination { flex-wrap: wrap; margin-top: 20px; }
.cs-page .page-link { color: #047857; border-color: #d7dee8; min-height: 36px; padding: 8px 12px; }
.cs-page .page-item.active .page-link { background: #038857; border-color: #038857; color: #fff; }
.cs-table-scroll {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid #d7dee8;
  border-radius: 8px;
  margin: 16px 0;
}
.cs-table-scroll:focus-visible { outline: 2px solid #2b7de9; outline-offset: 3px; }
.cs-table-scroll .table { margin: 0; border: 0; color: #374151; font-size: 14px; }
.cs-table-scroll .table th, .cs-table-scroll .table td {
  padding: 12px 16px;
  vertical-align: middle;
  border: 0;
  border-bottom: 1px solid #e2e8f0;
}
.cs-table-scroll .table th { background: #eef2f7; color: #334155; font-weight: 600; white-space: nowrap; }
.cs-table-scroll .table td { min-width: 110px; max-width: 360px; overflow-wrap: anywhere; }
.cs-table-scroll .table tbody tr:nth-child(even) { background: #f8fafc; }
.cs-table-scroll .table tbody tr:hover { background: #edf7f3; }
.cs-page .card { border-color: #d7dee8; border-radius: 8px; overflow: hidden; }
.cs-page .card-header { background: #eef2f7; border-bottom-color: #d7dee8; padding: 18px; }
.cs-page .card-body { padding: 24px; }
.cs-page .card-deck .card { min-width: 0; }
.cs-page .pricing-header { padding-top: 8px !important; }
.cs-page .pricing-header h1 { font-size: 28px; }
.cs-page ol.b { border-inline-start: 4px solid #04aa6d; background: #f8fafc; border-radius: 6px; }
.cs-page ol.b li::marker { color: #047857; }
/* Modal placement, scrolling, close buttons and map toolbars stay under Bootstrap/map CSS. */
.cs-dialog {
  color: #374151;
  border: 1px solid #d7dee8;
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(31, 41, 55, .2);
}
.cs-dialog .modal-header { background: #f8fafc; border-bottom-color: #e2e8f0; border-radius: 8px 8px 0 0; }
.cs-dialog .modal-title { color: #111827; font-weight: 700; overflow-wrap: anywhere; }
.cs-dialog .modal-footer { border-top-color: #e2e8f0; background: #f8fafc; border-radius: 0 0 8px 8px; }
.cs-dialog .modal-body { overflow-wrap: anywhere; }
.cs-dialog .modal-footer .btn { border-radius: 8px; white-space: normal; }
@media (max-width: 575px) {
  .cs-page { margin: 18px auto; padding: 24px 16px; }
  .cs-page > h3, .cs-page .pricing-header h1 { font-size: 23px; }
  .cs-page .row > .fixed, .cs-page .row > .fixed2, .cs-page .row > .static {
    width: 100%;
    height: auto;
    padding: 0 0 6px;
    margin-top: 0;
  }
  .cs-page .row > .col { flex-basis: 100%; }
  .cs-page .card-body { padding: 18px; }
  .cs-page .container { padding-right: 0; padding-left: 0; }
  .cs-table-scroll .table th, .cs-table-scroll .table td { padding: 10px 12px; }
}
