/* Trang Ảnh vệ tinh và Phản ánh hiện trạng */

.sat-h {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  font-size: 14px;
}
.sat-h .icon {
  width: 17px;
  height: 17px;
}

/* ---------- Ảnh vệ tinh: banner ---------- */
.sat-hero,
.rep-hero {
  min-height: 0;
  padding-bottom: 70px;
}
.sat-hero .hero-inner,
.rep-hero .hero-inner {
  max-width: 1540px;
}
.sat-hero h1,
.rep-hero h1 {
  font-size: clamp(28px, 3.6vw, 46px);
  margin: 2px 0;
}
.sat-hero h1 em,
.rep-hero h1 em {
  font-size: clamp(38px, 4.8vw, 62px);
}
.sat-hero .hero-subtitle,
.rep-hero .hero-subtitle {
  margin: 2px 0 14px;
}
.sat-feats {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 30px;
}
.sat-feats li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
}
.sat-feats .icon {
  width: 30px;
  height: 30px;
  padding: 6px;
  border: 1.5px solid #ffffffaa;
  border-radius: 9px;
  filter: brightness(0) invert(1);
}
.sat-feats b {
  display: block;
  font-size: 13px;
}
.sat-feats small {
  opacity: 0.85;
  font-size: 11px;
}

/* ---------- Ảnh vệ tinh: bố cục ---------- */
.sat-layout {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 clamp(8px, 1.2vw, 18px) 30px;
  display: grid;
  grid-template-columns: clamp(270px, 19vw, 330px) minmax(0, 1fr) clamp(
      270px,
      19vw,
      330px
    );
  gap: 14px;
  align-items: start;
}
.sat-layout .panel + .panel {
  margin-top: 14px;
}
.sat-right {
  display: grid;
  gap: 14px;
}
.sat-right .panel {
  margin: 0;
}
.sat-left {
  padding: 16px;
}
.sat-tabs {
  display: flex;
  border-bottom: 1px solid var(--line);
  margin-bottom: 12px;
}
.sat-tabs button {
  flex: 1;
  padding: 9px 4px;
  font-size: 12px;
  font-weight: 600;
  color: #56636b;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.sat-tabs button.active {
  color: var(--teal);
  border-bottom-color: var(--teal);
}
.sat-sources {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}
.sat-source[hidden] {
  display: none;
}
.sat-source {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 7px 36px 7px 7px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: #f6f8f7;
  text-align: left;
}
.sat-source:hover {
  background: #eef5f2;
}
.sat-source.active {
  border-color: #8fcdbf;
  background: #e5f5ef;
}
.sat-source img {
  flex: none;
  width: 46px;
  height: 40px;
  border-radius: 7px;
  object-fit: cover;
}
.sat-source strong {
  display: block;
  font-size: 13px;
}
.sat-source small {
  display: block;
  font-size: 11px;
  color: var(--muted);
}
.sat-check {
  position: absolute;
  right: 9px;
  top: 50%;
  transform: translateY(-50%);
  display: none;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--teal);
}
.sat-source.active .sat-check {
  display: grid;
}
.sat-check .icon {
  width: 12px;
  height: 12px;
  filter: brightness(0) invert(1);
}
.sat-visuals {
  display: grid;
  gap: 2px;
  margin-bottom: 14px;
}
.sat-visuals .radio-row {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  padding: 7px 8px;
  border-radius: 8px;
  font-size: 12.5px;
  line-height: 1.3;
}
.sat-visuals .radio-row:has(input:checked) {
  background: #e5f5ef;
  font-weight: 600;
}
.sat-visuals .radio-row input {
  margin: 0;
  accent-color: var(--teal);
}
.sat-dates {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.sat-dates label,
.sat-range,
.sat-aoi {
  font-size: 12px;
  margin: 8px 0 0;
}
.sat-dates input,
.sat-aoi select {
  font-size: 12px;
}
.sat-go {
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  border-radius: 10px;
}
.sat-go .icon {
  filter: brightness(0) invert(1);
  width: 16px;
  height: 16px;
}

/* Bản đồ */
.sat-center {
  min-width: 0;
}
.sat-map-shell {
  position: relative;
  height: clamp(420px, 56vh, 620px);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.sat-map-shell .satellite-map {
  position: absolute;
  inset: 0;
}
.sat-search {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 8px;
  width: min(380px, calc(100% - 330px));
  min-width: 220px;
  height: 40px;
  margin: 0;
  padding: 0 12px;
  border-radius: 10px;
  background: #fffffff2;
  box-shadow: 0 2px 10px #0003;
}
.sat-search > .icon {
  width: 16px;
  height: 16px;
  opacity: 0.6;
}
.sat-search input {
  flex: 1;
  min-width: 0;
  margin: 0;
  border: 0;
  background: none;
  padding: 0;
  font-size: 12px;
}
.sat-search input:focus {
  outline: 0;
}
.sat-suggest {
  position: absolute;
  top: 44px;
  left: 0;
  right: 0;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 8px 24px #0003;
  overflow: hidden;
}
.sat-suggest button {
  display: block;
  width: 100%;
  padding: 9px 12px;
  text-align: left;
  font-size: 12.5px;
}
.sat-suggest button:hover {
  background: #eef5f2;
}
.sat-suggest small {
  display: block;
  color: var(--muted);
  font-size: 10.5px;
}
.sat-basemaps {
  position: absolute;
  top: 12px;
  right: 58px;
  z-index: 5;
  display: flex;
  padding: 3px;
  border-radius: 10px;
  background: #fffffff2;
  box-shadow: 0 2px 10px #0003;
}
.sat-basemaps button {
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 12px;
}
.sat-basemaps button.active {
  background: var(--teal);
  color: #fff;
}
.sat-tools {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 5;
  display: grid;
  gap: 8px;
}
.sat-tools .icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #fffffff2;
  box-shadow: 0 2px 10px #0003;
}
.sat-map-shell .mapboxgl-ctrl-top-right {
  top: 56px;
  right: 8px;
}
.sat-map-shell .map-label {
  left: 62px;
  right: 62px;
  bottom: 12px;
}
.sat-map-shell:fullscreen {
  height: 100vh;
  border-radius: 0;
}

/* Danh sách ảnh đã xử lý */
.sat-featured {
  margin-top: 14px;
}
.sat-jobs {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 6px;
  scroll-snap-type: x mandatory;
}
.sat-jobs > .empty {
  margin: 8px 0;
}
.sat-job {
  flex: 0 0 clamp(170px, 18%, 220px);
  scroll-snap-align: start;
  padding: 0 0 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  text-align: left;
}
.sat-job:hover,
.sat-job.active {
  border-color: var(--teal);
  box-shadow: 0 0 0 2px #0f766e22;
}
.sat-job-img {
  display: block;
  height: 96px;
  background: linear-gradient(135deg, #2f5f50, #1d3f37);
}
.sat-job-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.sat-ph {
  display: grid;
  height: 100%;
  place-items: center;
  color: #fff;
  font-size: 11px;
}
.sat-job strong {
  display: block;
  margin: 8px 10px 2px;
  font-size: 12.5px;
  line-height: 1.3;
}
.sat-job small {
  display: block;
  margin: 0 10px;
  font-size: 10.5px;
  color: var(--muted);
}

/* Thông tin ảnh */
.sat-thumb {
  height: 120px;
  margin-bottom: 10px;
  border-radius: 10px;
  overflow: hidden;
  background: linear-gradient(135deg, #2f5f50, #1d3f37);
  display: grid;
  place-items: center;
  color: #ffffffcc;
  font-size: 12px;
}
.sat-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.sat-right .btn.full {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 8px;
}
.sat-right .btn.full:not(.light) .icon {
  filter: brightness(0) invert(1);
}

@media (max-width: 1200px) {
  .sat-layout {
    grid-template-columns: clamp(250px, 30vw, 310px) minmax(0, 1fr);
  }
  .sat-right {
    grid-column: 1 / -1;
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 760px) {
  .sat-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .sat-right {
    grid-template-columns: minmax(0, 1fr);
  }
  .sat-center {
    order: -1;
  }
  .sat-search {
    width: calc(100% - 24px);
    top: 60px;
  }
  .sat-basemaps {
    right: 12px;
    top: 12px;
  }
  .sat-tools {
    top: 108px;
  }
  .sat-map-shell {
    height: 460px;
  }
}

/* ---------- Phản ánh ---------- */
.rep-stats {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.rep-stats li {
  min-width: 130px;
  padding: 8px 14px;
  border: 1.5px solid #ffffff88;
  border-radius: 12px;
  background: #0b2d2a66;
  backdrop-filter: blur(4px);
}
.rep-stats b {
  display: block;
  font-size: 22px;
  line-height: 1.1;
}
.rep-stats span {
  font-size: 11.5px;
  opacity: 0.9;
}
.rep-layout {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 clamp(8px, 1.2vw, 18px) 30px;
  display: grid;
  grid-template-columns: clamp(300px, 26vw, 400px) minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}
.rep-layout .panel + .panel {
  margin-top: 0;
}
.rep-form-panel {
  position: sticky;
  top: 12px;
}
.rep-form-panel label {
  font-size: 12.5px;
  margin: 10px 0;
}
.rep-pos {
  margin: 10px 0;
  padding: 10px 12px;
  border: 1px dashed #b7d4cb;
  border-radius: 10px;
  background: #f4faf8;
}
.rep-pos-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.rep-pos-head .text-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
}
.rep-pos-head .icon {
  width: 14px;
  height: 14px;
}
.rep-coords {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.rep-coords label {
  margin: 6px 0 0;
}
.rep-form-panel .btn.full {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 6px;
}
.rep-form-panel .btn.full .icon {
  filter: brightness(0) invert(1);
  width: 16px;
  height: 16px;
}
.rep-login {
  padding: 8px 0;
  font-size: 13px;
  line-height: 1.6;
}
.rep-main {
  display: grid;
  gap: 14px;
  min-width: 0;
}
.rep-map-panel .section-heading {
  flex-wrap: wrap;
}
.rep-map-panel h3,
.rep-list-panel h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 15px;
}
.rep-map-panel h3 .icon {
  width: 18px;
  height: 18px;
}
.rep-legend {
  margin-left: auto;
  display: flex;
  gap: 12px;
  font-size: 11.5px;
}
.rep-legend span::before {
  content: "";
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-right: 5px;
  border-radius: 50%;
  background: var(--lc, #999);
}
.lg-received {
  --lc: #e6a100;
}
.lg-processing {
  --lc: #2563eb;
}
.lg-resolved {
  --lc: #16a34a;
}
.rep-map-shell {
  position: relative;
  height: clamp(320px, 46vh, 470px);
  border-radius: 12px;
  overflow: hidden;
}
.rep-map {
  position: absolute;
  inset: 0;
}
.rep-pin {
  width: 22px;
  height: 22px;
  border: 3px solid #fff;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  background: var(--c, #e6a100);
  box-shadow: 0 2px 6px #0006;
  cursor: pointer;
  padding: 0;
}
.rep-pin.is-active {
  width: 28px;
  height: 28px;
  z-index: 3;
  box-shadow:
    0 0 0 4px #ffffffcc,
    0 2px 8px #0008;
}
.rep-pin.is-draft {
  width: 26px;
  height: 26px;
  cursor: grab;
  animation: rep-bounce 1.6s ease-in-out infinite;
}
@keyframes rep-bounce {
  50% {
    translate: 0 -3px;
  }
}
.rep-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 4px 0 12px;
}
.rep-filters button {
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  font-size: 12px;
}
.rep-filters button.active {
  background: var(--teal);
  border-color: var(--teal);
  color: #fff;
}
.rep-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.rep-card {
  margin: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
}
.rep-card[hidden] {
  display: none;
}
.rep-card:hover,
.rep-card.active {
  border-color: var(--teal);
  box-shadow: 0 4px 16px #0f766e22;
}
.rep-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.rep-card h3 {
  margin: 8px 0 4px;
  font-size: 14px;
  line-height: 1.35;
}
.rep-card p {
  margin: 0 0 8px;
  font-size: 12.5px;
  line-height: 1.55;
  color: #4a5860;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.rep-card .text-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-right: 12px;
  font-size: 11.5px;
}
.rep-card .text-btn .icon {
  width: 13px;
  height: 13px;
}
.rep-tag {
  padding: 3px 9px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  background: #fdf3dc;
  color: #8a5a00;
}
.rep-tag.s-processing {
  background: #e3edff;
  color: #1d4ed8;
}
.rep-tag.s-resolved {
  background: #dff3e5;
  color: #166534;
}
.rep-tag.s-rejected {
  background: #eceff1;
  color: #55646d;
}

@media (max-width: 1100px) {
  .rep-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .rep-form-panel {
    position: static;
  }
}
@media (max-width: 640px) {
  .rep-list {
    grid-template-columns: minmax(0, 1fr);
  }
  .rep-map-shell {
    height: 300px;
  }
}

.sat-map-shell .map-label {
  bottom: 40px;
  left: 12px;
  right: auto;
  max-width: calc(100% - 24px);
  width: max-content;
}

.sat-dates > label {
  min-width: 0;
}
.sat-dates input {
  width: 100%;
  min-width: 0;
  padding-left: 8px;
  padding-right: 6px;
  font-size: 11.5px;
}
.rep-response{background:#f1f8f6;border-left:3px solid #00695f;padding:8px 10px;border-radius:6px;font-size:13px}
