:root {
  --bg: #f4f7f5;
  --panel: #ffffff;
  --ink: #17211b;
  --muted: #5d6b63;
  --line: #d8e2dc;
  --green: #2f8f58;
  --blue: #2577b8;
  --yellow: #c98b1d;
  --red: #c83f36;
  --teal: #117e83;
  --shadow: 0 18px 45px rgba(24, 42, 33, 0.12);
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.app-shell {
  min-height: 100%;
  padding: 24px;
}

.topbar {
  align-items: center;
  display: flex;
  gap: 20px;
  justify-content: space-between;
  margin: 0 auto 18px;
  max-width: 1440px;
}

.eyebrow {
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin: 0 0 7px;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  font-size: clamp(2rem, 3.2vw, 3.7rem);
  line-height: 1;
}

.topbar-actions {
  align-items: center;
  display: flex;
  gap: 10px;
}

.sync-pill,
.icon-button,
.toolbar,
.summary-grid article,
.side-panel {
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.sync-pill {
  border-radius: 999px;
  color: var(--muted);
  display: inline-flex;
  font-size: 0.88rem;
  padding: 10px 14px;
  white-space: nowrap;
}

.icon-button {
  align-items: center;
  border-radius: 8px;
  color: var(--ink);
  display: inline-flex;
  font-size: 1.2rem;
  height: 42px;
  justify-content: center;
  width: 42px;
}

.dashboard {
  display: grid;
  gap: 16px;
  margin: 0 auto;
  max-width: 1440px;
}

.toolbar {
  border-radius: 8px;
  display: grid;
  gap: 12px;
  grid-template-columns: 1.4fr repeat(3, minmax(160px, 0.55fr));
  padding: 14px;
}
.seo{

max-width:1100px;

margin:60px auto;

padding:20px;

line-height:1.7;

font-size:16px;

}

.seo h2{

margin-bottom:15px;

}
label {
  color: var(--muted);
  display: grid;
  font-size: 0.8rem;
  font-weight: 700;
  gap: 6px;
}

input,
select {
  background: #fbfdfc;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  height: 44px;
  min-width: 0;
  padding: 0 12px;
}

input:focus,
select:focus,
button:focus-visible {
  outline: 3px solid rgba(37, 119, 184, 0.25);
  outline-offset: 2px;
}

.summary-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.summary-grid article {
  border-radius: 8px;
  display: grid;
  gap: 7px;
  padding: 16px;
}

.summary-grid span {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
}

.summary-grid strong {
  font-size: 1.65rem;
}

.content-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1fr) 410px;
  min-height: 680px;
}

.map-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  min-height: 680px;
  overflow: hidden;
  position: relative;
}

#map {
  height: 100%;
  min-height: 680px;
  width: 100%;
}

.map-notice {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  bottom: 18px;
  box-shadow: var(--shadow);
  color: var(--muted);
  left: 18px;
  max-width: min(420px, calc(100% - 36px));
  padding: 12px 14px;
  position: absolute;
  z-index: 500;
}

.side-panel {
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

.panel-header {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 12px;
  justify-content: space-between;
  padding: 16px;
}

.panel-header h2 {
  font-size: 1.15rem;
}

.panel-header p {
  color: var(--muted);
  font-size: 0.88rem;
  margin-top: 4px;
}

.panel-header button {
  background: #eef5f1;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  font-weight: 800;
  height: 38px;
  padding: 0 14px;
}

.legend {
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 12px 16px;
}

.legend span {
  align-items: center;
  color: var(--muted);
  display: inline-flex;
  font-size: 0.84rem;
  font-weight: 700;
  gap: 7px;
}

.dot {
  border-radius: 50%;
  display: inline-block;
  height: 10px;
  width: 10px;
}

.critical,
.status-critical {
  background: var(--red);
}

.low,
.status-low {
  background: var(--yellow);
}

.healthy,
.status-healthy {
  background: var(--blue);
}

.full,
.status-full {
  background: var(--green);
}

.dam-list {
  display: grid;
  gap: 10px;
  overflow: auto;
  padding: 12px;
}

.dam-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  display: grid;
  gap: 12px;
  padding: 14px;
  text-align: left;
  width: 100%;
}

.dam-card:hover {
  border-color: rgba(17, 126, 131, 0.45);
}

.dam-card-main {
  display: grid;
  gap: 4px;
}

.dam-name {
  font-size: 1rem;
  line-height: 1.25;
}

.dam-location {
  color: var(--muted);
  font-size: 0.86rem;
}

.meter-row {
  align-items: center;
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr 58px;
}

.meter-track {
  background: #e8eee9;
  border-radius: 999px;
  height: 10px;
  overflow: hidden;
}

.meter-fill {
  border-radius: 999px;
  display: block;
  height: 100%;
  width: 0%;
}

.meter-value {
  font-size: 0.9rem;
  text-align: right;
}

.dam-meta {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
}

.dam-meta div {
  min-width: 0;
}

.dam-meta dt {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.dam-meta dd {
  font-size: 0.82rem;
  margin: 3px 0 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.leaflet-popup-content {
  margin: 12px 14px;
}

.popup-title {
  font-weight: 800;
  margin-bottom: 4px;
}

.popup-meta {
  color: #526159;
  line-height: 1.5;
}

@media (max-width: 1100px) {
  .toolbar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .content-grid {
    grid-template-columns: 1fr;
  }

  .side-panel {
    max-height: 620px;
  }
}

@media (max-width: 720px) {
  .app-shell {
    padding: 14px;
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .topbar-actions {
    width: 100%;
  }

  .sync-pill {
    flex: 1;
    min-width: 0;
    white-space: normal;
  }

  .toolbar,
  .summary-grid {
    grid-template-columns: 1fr;
  }

  .map-panel,
  #map {
    min-height: 520px;
  }
}
