/* Giao diện web Đắm Đuối, màu chung để trong các biến :root. */

:root {
  --mau-chinh: #5b4bdb;
  --mau-chinh-dam: #4535c4;
  --mau-chinh-nhat: #efedff;
  --mau-vien: #e6e8f0;
  --mau-nen-phu: #f5f6fa;
  --mau-chu: #1f2340;
  --mau-chu-phu: #6b7085;
}

/* --- Nền tảng --- */

/* [hidden] luôn thắng, kể cả khi class có đặt display */
[hidden] {
  display: none !important;
}

body {
  overflow: hidden;
  overscroll-behavior: none; /* tắt kéo giãn, kéo để tải lại trên điện thoại */
  -webkit-tap-highlight-color: transparent; /* bỏ ô xám nháy lên khi chạm */
  margin: 0;
  display: flex;
  flex-direction: column;
  height: 100vh;
  height: 100dvh; /* trừ thanh địa chỉ trình duyệt trên điện thoại */
}

button {
  font-family: inherit;
}

/* --- Màn chào: mưa rơi, vịt cầm ô nhảy xuống, chữ "Đắm Đuối" bật lên --- */
/* vịt rơi trong 0,7s đầu; 7 chữ bật lần lượt từ 0,75s, mỗi chữ cách 0,08s;
   khẩu hiệu hiện lúc 1,55s; tới 2,9s thì app.js cho cả màn mờ đi */

.man-chao {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: radial-gradient(circle at 50% 42%, var(--nen-khung) 0%, var(--nen-app) 70%);
  color: var(--mau-chu);
  cursor: pointer;
  transition: opacity 0.4s ease, visibility 0.4s;
  /* JS lỗi thì 4,5 giây sau vẫn tự ẩn, khỏi che web mãi */
  animation: man-chao-tu-an 0.4s ease 4.5s forwards;
}

.man-chao--an {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

@keyframes man-chao-tu-an {
  to { opacity: 0; visibility: hidden; pointer-events: none; }
}

.man-chao__giua {
  position: relative;
  text-align: center;
  padding: 0 24px;
}

.man-chao__vit {
  display: block;
  width: 176px;
  height: 176px;
  margin: 0 auto 4px;
  transform-origin: 50% 92%;
  animation:
    vit-nhay-xuong 0.7s cubic-bezier(0.3, 0, 0.4, 1) both,
    vit-lac-lu 0.9s ease-in-out 0.7s infinite;
}

@keyframes vit-nhay-xuong {
  0%   { transform: translateY(-90px) scale(0.85); opacity: 0; }
  25%  { opacity: 1; }
  62%  { transform: translateY(0) scale(1); }
  76%  { transform: translateY(0) scale(1.12, 0.86); }
  90%  { transform: translateY(-8px) scale(0.96, 1.05); }
  100% { transform: translateY(0) scale(1); }
}

@keyframes vit-lac-lu {
  0%, 100% { transform: rotate(0); }
  25%      { transform: rotate(-4deg); }
  75%      { transform: rotate(4deg); }
}

/* phông Mali (OFL) đã cắt chỉ còn chữ trên màn chào; đổi chữ thì chữ mới hiện bằng phông dự phòng */
@font-face {
  font-family: "Mali Man Chao";
  src: url("../font/mali-bold-man-chao.woff") format("woff");
  font-weight: 700;
  font-display: block;
}

/* mỗi chữ cái là 1 span, bật lần lượt theo biến --i; bộ lọc #but-sap trong index.html làm chữ như tô sáp màu */
.man-chao__ten {
  margin: 0;
  font-family: "Mali Man Chao", "Comic Sans MS", var(--font-sans);
  font-size: 54px;
  font-weight: 700;
  letter-spacing: 1px;
  line-height: 1.15;
  filter: url(#but-sap);
}

.man-chao__tu {
  display: inline-block;
  white-space: nowrap;
}

.man-chao__chu {
  display: inline-block;
  animation: chu-bat-len 0.42s cubic-bezier(0.3, 1.6, 0.5, 1) both;
  animation-delay: calc(0.7s + var(--i) * 0.07s);
}

.man-chao__ten {
  color: #3D86D4;
}
:root[data-chu-de="toi"] .man-chao__ten {
  color: #7DB8F5;
}

@keyframes chu-bat-len {
  from { transform: translateY(18px) scale(0.5); opacity: 0; }
  to   { transform: translateY(0) scale(1); opacity: 1; }
}

.man-chao__khau-hieu {
  max-width: 340px;
  margin: 8px auto 0;
  text-wrap: balance;
  font-family: "Mali Man Chao", "Comic Sans MS", var(--font-sans);
  font-weight: 700;
  font-size: 16px;
  color: var(--mau-chu-2);
  animation: noi-len 0.4s ease-out 1.4s both;
}

@keyframes noi-len {
  from { transform: translateY(10px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}

.man-chao__mua i {
  position: absolute;
  top: -12%;
  left: var(--x);
  width: 2px;
  height: 46px;
  border-radius: 2px;
  background: linear-gradient(to bottom, transparent, var(--mau-xanh-tao));
  opacity: 0.35;
  transform: rotate(12deg);
  animation: mua-roi 0.9s linear var(--d) infinite;
}

@keyframes mua-roi {
  from { transform: translate(0, 0) rotate(12deg); }
  to   { transform: translate(-26vh, 120vh) rotate(12deg); }
}

@media (max-width: 600px) {
  .man-chao__vit {
    width: 148px;
    height: 148px;
  }
  .man-chao__ten {
    font-size: 46px;
  }
  .man-chao__khau-hieu {
    font-size: 14px;
  }
}

/* máy bật giảm chuyển động thì chỉ hiện tĩnh */
@media (prefers-reduced-motion: reduce) {
  .man-chao__vit,
  .man-chao__chu,
  .man-chao__khau-hieu {
    animation: none;
  }
  .man-chao__mua {
    display: none;
  }
}

/* --- Thanh tiêu đề --- */

.thanh-tieu-de {
  /* 3 cột: thương hiệu, ô tìm đường, nút.
     hai cột bên đều 1fr nên cột giữa luôn ở chính giữa màn hình */
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 560px) minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  padding: 10px 20px;
  /* chừa chỗ tai thỏ của iPhone khi xem toàn màn hình */
  padding-top: max(10px, env(safe-area-inset-top));
  padding-left: max(20px, env(safe-area-inset-left));
  padding-right: max(20px, env(safe-area-inset-right));
  border-bottom: 1px solid var(--mau-vien);
  position: relative;
  z-index: 1500; /* để khung tìm đường thả xuống nằm trên bản đồ và thanh bên */
}

.thuong-hieu {
  min-width: 0;
}

.thuong-hieu__logo {
  fill: var(--mau-chinh);
  flex-shrink: 0;
}

.thanh-tieu-de h1 {
  margin: 0;
  font-size: 20px;
  line-height: 1.2;
  color: var(--mau-chu);
}

.thanh-tieu-de__khau-hieu {
  margin: 1px 0 0;
  font-size: 11px;
  color: var(--mau-chu-phu);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.thanh-tieu-de__phai {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 8px;
}

.thanh-tieu-de .nut-chia-se {
  box-shadow: none;
  white-space: nowrap;
}

/* --- Bố cục chính và thanh bên --- */

.bo-cuc {
  flex: 1;
  min-height: 0;
  display: flex;
  position: relative;
}

.thanh-ben {
  width: 320px;
  flex-shrink: 0;
  overflow-y: auto;
  background: white;
  border-right: 1px solid var(--mau-vien);
  padding: 8px 20px 20px;
  box-sizing: border-box;
  color: var(--mau-chu);
  z-index: 1000;
}

.thanh-ben__tay-cam {
  display: none;
}

.thanh-ben__muc:last-child {
  border-bottom: none;
}

.thanh-ben__tieu-de {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 0 0 10px;
}

.luoi-chuc-nang {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.o-chuc-nang {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 76px;
  padding: 10px 6px;
  border: 1px solid var(--mau-vien);
  border-radius: 12px;
  background: var(--mau-nen-phu);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.o-chuc-nang:hover {
  border-color: var(--mau-chinh);
}

.o-chuc-nang__hinh {
  font-size: 24px;
  line-height: 1;
}

.o-chuc-nang--noi-bat {
  border: 1.5px solid var(--mau-chinh);
  background: var(--mau-chinh-nhat);
  color: var(--mau-chinh-dam);
}

/* trời đang mưa thì ô Trú mưa đổi màu, class do tro-choi.js bật */
.o-chuc-nang.nut-tro-choi--mua {
  border-color: var(--mau-chinh);
}

.thanh-du-bao__noi {
  padding: 2px 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 150px;
}

.thanh-du-bao__noi:empty {
  display: none;
}

.thanh-du-bao__noi .an-tren-dien-thoai {
  display: none;
}

.thanh-du-bao__tom-tat {
  margin: 0 0 10px;
  line-height: 1.45;
}

.thanh-du-bao__theo-gio {
  display: grid;
  gap: 6px;
}

.o-gio {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 5px 2px;
  font-size: 11px;
  line-height: 1.3;
}

.o-gio__bieu-tuong {
  font-size: 16px;
}

.o-gio__loai {
  font-size: 10px;
  white-space: nowrap;
  overflow: hidden;
  max-width: 100%;
}

.o-gio--vua {
  font-weight: 600;
}
.o-gio--to {
  font-weight: 600;
}

.chon-kieu-ban-do button {
  cursor: pointer;
}

.chon-kieu-ban-do button.dang-chon {
  border-color: var(--mau-chinh);
}

/* --- Vùng bản đồ --- */

.vung-ban-do {
  position: relative;
  flex: 1;
}

#ban-do {
  position: absolute;
  inset: 0;
}

/* các kiểu sáng được tô sẵn trong bo-loc-ban-do.js; đang dẫn đường thì bỏ bộ lọc CSS của kiểu tối */
.dang-dan-duong .leaflet-tile-pane {
  filter: none !important;
}

/* đang kéo, phóng to thu nhỏ thì tạm dừng các hiệu ứng chạy liên tục cho đỡ nặng */
.leaflet-zoom-anim .doan-ngap--dang-ngap,
.ban-do-dang-chay .doan-ngap--dang-ngap,
.ban-do-dang-chay .canh-thoi-tiet *,
.ban-do-dang-chay .vit-vi-tri img {
  animation-play-state: paused;
}

/* Xanh đêm: đảo sáng tối rồi nhuộm xanh, ra nền xanh thẫm, đường sáng */
.kieu-dem .leaflet-tile-pane {
  filter: invert(0.92) grayscale(1) sepia(1) hue-rotate(180deg) saturate(2.6) brightness(0.85) contrast(1.05);
}

.kieu-dem .vien-doan {
  stroke: white;
  stroke-opacity: 0.55;
}

.doan-ngap--dang-ngap {
  animation: nhap-nhay-doan 1.6s ease-in-out infinite;
}

@keyframes nhap-nhay-doan {
  50% { stroke-opacity: 0.45; }
}

@media (prefers-reduced-motion: reduce) {
  .doan-ngap--dang-ngap {
    animation: none;
  }
}

.dang-chon-vi-tri #ban-do {
  cursor: crosshair;
}
/* chạm trúng đoạn ngập, ghim có sẵn thì vẫn tính là chọn điểm, không mở khung thông tin */
.dang-chon-vi-tri #ban-do .leaflet-interactive {
  pointer-events: none !important;
}

/* --- Khung thông tin khi bấm vào điểm --- */

.khung-diem {
  min-width: 200px;
}

.khung-anh {
  position: relative;
  display: block;
  margin: 0 0 10px;
  height: 140px;
  overflow: hidden;
  background: #eee;
}

.khung-anh img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.khung-anh__nguon {
  position: absolute;
  left: 6px;
  bottom: 6px;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.55);
  color: white;
  font-size: 10px;
}

.khung-anh--trong {
  height: auto;
  padding: 14px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 12px;
}

.khung-anh__bieu-tuong {
  font-size: 22px;
}

.leaflet-popup-content a.khung-anh__nut {
  margin-top: 4px;
  padding: 5px 10px;
  text-decoration: none;
}

.khung-diem__ten {
  margin: 0 0 6px;
}

.khung-diem__dong {
  margin: 8px 0 4px;
}

.khung-diem__dong--bao-cao {
  font-weight: bold;
}

.khung-diem__ghi-chu {
  margin: 0;
  font-style: italic;
}

.khung-diem__nut {
  display: flex;
  gap: 6px;
  margin-top: 8px;
}

/* --- Bảng chú thích --- */

.chu-thich {
  font-size: 13px;
}

.chu-thich {
  padding: 0;
  box-shadow: none;
}

.chu-thich__canh-bao {
  margin: 0 0 6px;
  padding: 6px 8px;
  line-height: 1.4;
}

.ds-ngap {
  list-style: none;
  margin: 0 0 6px;
  padding: 0;
}

.ds-ngap__muc {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 4px;
  border-radius: 6px;
  cursor: pointer;
  line-height: 1.25;
}

.ds-ngap__vach {
  width: 5px;
  align-self: stretch;
  border-radius: 3px;
  flex-shrink: 0;
}

.ds-ngap__chu {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.ds-ngap__ten {
  font-weight: bold;
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ds-ngap__phu {
  font-size: 11px;
  color: #777;
}

.ds-ngap__cach {
  font-size: 12px;
  font-weight: bold;
  color: #555;
  white-space: nowrap;
}

.ds-ngap__them {
  margin: 0 0 6px;
  font-size: 11px;
  color: #777;
  text-align: center;
}

.chu-thich__mau {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px 10px;
  padding-top: 6px;
  border-top: 1px solid #eee;
  font-size: 11px;
  color: #555;
  line-height: 1.6;
}

.chu-thich__mau span {
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

.chu-thich__mau i {
  display: inline-block;
  width: 14px;
  height: 5px;
  border-radius: 3px;
}

.chu-thich__mau i.chu-thich__mau-bao-cao {
  width: auto;
  height: auto;
  font-style: normal;
  font-size: 10px;
}

.chu-thich__nut-vi-tri {
  display: block;
  width: 100%;
  margin-bottom: 6px;
  padding: 5px 8px;
  background: white;
  font-size: 12px;
  cursor: pointer;
}

/* --- Nút dùng chung --- */

.nut-chinh {
  padding: 10px 18px;
  border: none;
  border-radius: 8px;
  background: var(--mau-chinh);
  color: white;
  font-weight: bold;
  cursor: pointer;
}

.nut-chinh:disabled {
  opacity: 0.6;
  cursor: wait;
}

.nut-chinh--rong {
  width: 100%;
  margin-top: 10px;
}

.nut-nho {
  padding: 6px 12px;
  border: 1px solid #ccc;
  border-radius: 8px;
  background: white;
  cursor: pointer;
}

.nut-nho--con {
  border-color: #e53935;
  color: #e53935;
}

.nut-nho--rut {
  border-color: #43a047;
  color: #43a047;
}

.nut-chia-se {
  padding: 8px 14px;
  border: none;
  border-radius: 999px;
  background: white;
  color: #1e88e5;
  font-size: 14px;
  font-weight: bold;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.25);
  cursor: pointer;
}

.nut-chia-se-diem {
  width: 100%;
  margin-top: 10px;
  color: #1e88e5;
  border-color: #1e88e5;
  font-weight: bold;
}

.khung-chia-se {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.45);
  padding: 16px;
}

.khung-chia-se__hop {
  width: 100%;
  max-width: 420px;
  background: white;
  border-radius: 14px;
  padding: 14px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.khung-chia-se__dau {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.khung-chia-se__dau h3 {
  margin: 0;
}

.khung-chia-se textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-family: inherit;
  font-size: 13px;
  resize: none;
  background: #fafafa;
}

.khung-chia-se__nut {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.khung-chia-se__nut a {
  text-decoration: none;
  color: #333;
  display: inline-flex;
  align-items: center;
}

.ghim-chia-se {
  font-size: 30px;
  line-height: 36px;
  text-align: center;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.4));
}

/* --- Báo cáo điểm ngập --- */

.thong-bao-chon {
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  width: max-content;
  max-width: calc(100% - 32px);
  background: white;
  padding: 12px 16px;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  text-align: center;
}

.thong-bao-chon p {
  margin: 0 0 8px;
  font-weight: bold;
}

.khung-bao-cao {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1001;
  background: white;
  padding: 16px;
  border-radius: 16px 16px 0 0;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.2);
  max-width: 480px;
  margin: 0 auto;
}

.khung-bao-cao__tieu-de {
  margin: 0 0 12px;
}

.chon-muc-nuoc {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}

.chon-muc-nuoc__o input {
  display: none; /* ẩn nút tròn mặc định, cả ô là nút */
}

.chon-muc-nuoc__o span {
  display: block;
  padding: 10px 4px;
  border: 2px solid #ddd;
  border-radius: 10px;
  text-align: center;
  font-size: 13px;
  cursor: pointer;
}

.chon-muc-nuoc__o input:checked + span {
  font-weight: bold;
}

.khung-bao-cao__nhan {
  display: block;
  font-size: 13px;
  margin-bottom: 4px;
}

.khung-bao-cao textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-family: inherit;
}

.khung-bao-cao__loi {
  color: #e53935;
  font-size: 13px;
  min-height: 1em;
  margin: 6px 0;
}

.khung-bao-cao__nut {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.ghim-bao-cao {
  font-size: 18px;
  line-height: 28px;
  text-align: center;
  background: white;
  border: 2px solid #1e88e5;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

/* --- Tìm đường --- */

/* khung bên trong đặt absolute để khi mở rộng thì thả xuống phủ bản đồ,
   thanh tiêu đề không bị cao lên */
.thanh-tren {
  position: relative;
  width: 100%;
  height: 42px;
}

.khung-tim-duong {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  max-height: calc(100dvh - 24px);
  overflow-y: auto;
  box-sizing: border-box;
}

.khung-tim-duong:not(.khung-tim-duong--mo) .khung-tim-duong__dau,
.khung-tim-duong:not(.khung-tim-duong--mo) .o-dia-chi--di,
.khung-tim-duong:not(.khung-tim-duong--mo) .nut-dao-chieu,
.khung-tim-duong:not(.khung-tim-duong--mo) .chon-che-do,
.khung-tim-duong:not(.khung-tim-duong--mo) #nut-bat-dau-tim,
.khung-tim-duong:not(.khung-tim-duong--mo) .o-dia-chi__nhan--den {
  display: none;
}

.khung-tim-duong:not(.khung-tim-duong--mo) .o-dia-chi input {
  border: none;
  outline: none;
}

.khung-tim-duong:not(.khung-tim-duong--mo) .o-dia-chi input {
  background: transparent;
}

.khung-tim-duong--mo .o-dia-chi__kinh-lup {
  display: none;
}

.o-dia-chi__kinh-lup {
  width: 22px;
  text-align: center;
  flex-shrink: 0;
}

.khung-tim-duong__dau {
  display: flex;
  align-items: center;
}

.khung-tim-duong__dau h3 {
  margin: 0;
  font-size: 16px;
}

.nut-dong {
  border: none;
  background: none;
  font-size: 18px;
  cursor: pointer;
}

.o-dia-chi {
  display: flex;
  align-items: center;
  gap: 4px;
}

.o-dia-chi input {
  flex: 1;
  min-width: 0; /* cho ô nhập co lại trên màn hẹp */
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 14px;
}

.o-dia-chi__nhan {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  color: white;
  font-size: 12px;
  font-weight: bold;
  flex-shrink: 0;
}

.o-dia-chi__nhan--di {
  background: #43a047;
}

.o-dia-chi__nhan--den {
  background: #e53935;
}

.nut-bieu-tuong {
  border: 1px solid #ddd;
  background: white;
  border-radius: 8px;
  padding: 6px;
  cursor: pointer;
  flex-shrink: 0;
}

.nut-dao-chieu {
  display: block;
  margin: 2px 0 2px 26px;
  border: none;
  background: none;
  color: #1e88e5;
  font-size: 16px;
  cursor: pointer;
}

.ket-qua-tim-duong {
  margin-top: 10px;
  font-size: 13px;
}

.ket-qua-tim-duong p {
  margin: 4px 0;
}

.ket-qua__ghi-chu {
  color: #555;
}

.ket-qua__loi {
  color: #e53935;
}

.ket-qua__dia-chi {
  color: #777;
  font-size: 12px;
}

.the-tuyen {
  border-left: 4px solid #ccc;
  padding: 6px 10px;
  margin: 8px 0;
  background: #fafafa;
  border-radius: 0 8px 8px 0;
}

.the-tuyen--tot {
  border-color: #43a047;
}
.the-tuyen--xau {
  border-color: #e53935;
}
.the-tuyen--vua {
  border-color: #d8711e;
}

.the-tuyen__tieu-de {
  font-weight: bold;
}

.the-tuyen__nhe {
  color: #b85a12;
}

/* gợi ý địa chỉ nằm ngay dưới ô nhập, đẩy phần dưới xuống nên không bị khung che */
.o-dia-chi {
  flex-wrap: wrap;
}

.goi-y {
  flex: 0 0 calc(100% - 26px);
  box-sizing: border-box;
  margin: 4px 0 0 26px;
  padding: 4px 0;
  list-style: none;
  border: 1px solid #ddd;
  border-radius: 8px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
  max-height: 260px;
  overflow-y: auto;
}

.goi-y__muc {
  padding: 7px 10px;
  cursor: pointer;
  line-height: 1.3;
}

.goi-y__ten {
  display: block;
  font-size: 14px;
}

.goi-y__mo-ta {
  display: block;
  font-size: 12px;
}

.goi-y__nhan {
  font-size: 11px;
  color: var(--mau-chinh);
  margin-left: 4px;
}

.goi-y__trong {
  padding: 7px 10px;
  font-size: 13px;
  color: #777;
}

.chon-che-do {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  font-size: 13px;
}

.chon-che-do select {
  flex: 1;
  min-width: 0;
  padding: 5px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-family: inherit;
}

/* --- Dẫn đường --- */

.ket-qua__nut {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 8px;
}

.dang-dan-duong .thanh-ben {
  display: none;
}

.khung-dan-duong {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  z-index: 1000;
  max-width: 460px;
}

.lo-trinh {
  position: relative;
  background: white;
  border-radius: 16px;
  padding: 12px 16px;
  box-shadow: 0 6px 20px rgba(26, 115, 232, 0.15);
  color: #2b2f36;
  font-size: 15px;
  letter-spacing: 0.3px;
}

.lo-trinh__dong {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 6px 0;
}

.lo-trinh::before {
  content: '';
  position: absolute;
  left: 20px;
  top: 27px;
  bottom: 27px;
  border-left: 2px solid #1a73e8;
}

.lo-trinh::after {
  content: '';
  position: absolute;
  left: 40px;
  right: 16px;
  top: 50%;
  border-top: 1px solid #d6e6fb;
}

.lo-trinh__cham {
  position: relative;
  z-index: 1;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex: none;
}

.lo-trinh__cham--dau {
  background: #1a73e8;
}

.lo-trinh__cham--cuoi {
  border: 2px solid #1a73e8;
  box-sizing: border-box;
}

.lo-trinh__dich {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.dan-duong__canh-bao {
  margin: 8px 0 0;
  padding: 8px 12px;
  background: #fff3e0;
  color: #b85a12;
  border: 2px solid #d8711e;
  border-radius: 12px;
  font-weight: bold;
  font-size: 14px;
}

.dan-duong__canh-bao--sau {
  background: #ffebee;
  color: #c62828;
  border-color: #e53935;
}

.thanh-dan-duong {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
  max-width: 520px;
  margin: 0 auto;
  background: white;
  padding: 16px 20px calc(14px + env(safe-area-inset-bottom));
  border-radius: 22px 22px 0 0;
  box-shadow: 0 -2px 10px rgba(31, 35, 64, 0.08);
  color: #2b2f36;
}

.nut-ve-giua {
  position: absolute;
  left: 16px;
  bottom: calc(100% + 12px);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px 10px 14px;
  border: none;
  border-radius: 999px;
  background: white;
  color: #1a73e8;
  font-size: 15px;
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(31, 35, 64, 0.22);
  cursor: pointer;
}

.nut-ve-giua svg {
  transform: rotate(45deg);
}

.thanh-dan-duong__chinh {
  display: flex;
  align-items: center;
  gap: 12px;
}

.thanh-dan-duong__chu {
  flex: 1;
  min-width: 0;
}

.dan-duong__khoang-cach {
  margin: 0;
  font-size: 34px;
  font-weight: 600;
  letter-spacing: 0.5px;
  line-height: 1.15;
}

.dan-duong__loi-chi {
  margin: 4px 0 0;
  font-size: 16px;
  color: #80868f;
  letter-spacing: 0.3px;
}

.dan-duong__mui-ten {
  flex: none;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #1a73e8;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 16px rgba(26, 115, 232, 0.35);
}

.thanh-dan-duong__phu {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid #e3edfb;
}

.thanh-dan-duong__so {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.thanh-dan-duong__so strong {
  font-size: 15px;
}

.thanh-dan-duong__so span {
  font-size: 13px;
  color: #80868f;
}

.nut-tron-nho {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid #d6e6fb;
  color: #1a73e8;
  font-size: 18px;
  cursor: pointer;
}

.nut-ket-thuc {
  height: 40px;
  padding: 0 16px;
  border: none;
  border-radius: 20px;
  background: #fdecea;
  color: #c62828;
  font-weight: bold;
  font-size: 14px;
  cursor: pointer;
}

.dang-dan-duong .leaflet-control-zoom {
  display: none;
}

.dang-dan-duong .leaflet-bottom {
  bottom: 190px;
}

.ghim-dich {
  background: none;
  border: none;
}

.ghim-dich span {
  display: block;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: white;
  border: 3px solid #1a73e8;
  box-sizing: border-box;
  box-shadow: 0 0 0 5px rgba(26, 115, 232, 0.18);
}

.cham-vi-tri {
  background: none;
  border: none;
}

.cham-vi-tri__quang {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 70px;
  height: 70px;
  margin: -35px 0 0 -35px;
  border-radius: 50%;
  background: rgba(26, 115, 232, 0.16);
  animation: quang-vi-tri 2s ease-out infinite;
  pointer-events: none;
}

@keyframes quang-vi-tri {
  0%   { transform: scale(0.5); opacity: 1; }
  100% { transform: scale(1.1); opacity: 0.3; }
}

.cham-vi-tri__vong {
  position: relative;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #1a73e8;
  border: 3px solid white;
  box-shadow: 0 2px 8px rgba(26, 115, 232, 0.5);
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 9px;
  line-height: 1;
  transition: transform 0.3s;
}

/* --- Nút vị trí của tôi, thông báo nhanh --- */

.nut-vi-tri-ban-do a {
  font-size: 20px;
  font-weight: bold;
  width: 30px;
  height: 30px;
  line-height: 30px;
}

.nut-vi-tri-ban-do--bat {
  color: #1e88e5 !important;
}

.nut-vi-tri-ban-do--dang-tim {
  color: #1e88e5 !important;
  animation: nhap-nhay 1s infinite;
}

@keyframes nhap-nhay {
  50% { opacity: 0.3; }
}

.dang-dan-duong .nut-vi-tri-ban-do {
  display: none;
}

.thong-bao-nhanh {
  position: absolute;
  left: 50%;
  bottom: 90px;
  transform: translateX(-50%);
  z-index: 1002;
  max-width: calc(100% - 32px);
  width: max-content;
  background: rgba(33, 33, 33, 0.9);
  color: white;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 14px;
  text-align: center;
}

/* --- Điện thoại, máy tính bảng --- */

/* khung báo cáo chừa vạch vuốt dưới đáy iPhone */
.khung-bao-cao {
  padding-bottom: calc(16px + env(safe-area-inset-bottom));
  max-height: calc(100dvh - 20px);
  overflow-y: auto;
  box-sizing: border-box;
}

.leaflet-bottom {
  margin-bottom: env(safe-area-inset-bottom);
}

/* màn cảm ứng: nút to tối thiểu khoảng 40px cho dễ chạm */
@media (pointer: coarse) {
  .nut-bieu-tuong {
    min-width: 40px;
    min-height: 40px;
    font-size: 16px;
  }

  .leaflet-touch .leaflet-bar a {
    width: 40px;
    height: 40px;
    line-height: 40px;
  }

  .nut-vi-tri-ban-do a {
    width: 40px !important;
    height: 40px !important;
    line-height: 40px !important;
  }

  .nut-nho {
    padding: 9px 14px;
  }

  
  .goi-y__muc {
    padding: 10px;
  }

  /* chữ trong ô nhập nhỏ hơn 16px thì iPhone tự phóng to trang, nên giữ 16px */
  input,
  textarea,
  select {
    font-size: 16px !important;
  }
}

/* máy tính bảng 761 đến 1024px: thanh bên hẹp lại, ẩn khẩu hiệu */
@media (min-width: 761px) and (max-width: 1024px) {
  .thanh-ben {
    width: 260px;
  }

  .thanh-ben {
    padding: 6px 14px 16px;
  }

  .thanh-tieu-de__khau-hieu {
    display: none;
  }
}

/* điện thoại, dưới 760px: thanh tiêu đề 2 dòng, thanh bên thành tấm ở đáy, kéo hoặc chạm tay cầm để mở hết */
@media (max-width: 760px) {
  .thanh-tieu-de {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 10px;
    padding-top: max(8px, env(safe-area-inset-top));
    padding-left: max(12px, env(safe-area-inset-left));
    padding-right: max(12px, env(safe-area-inset-right));
  }

  .thuong-hieu {
    width: auto;
    flex: 1;
  }

  .thanh-tieu-de h1 {
    font-size: 18px;
  }

  .thanh-tieu-de__khau-hieu {
    display: none;
  }

  .thanh-tren {
    order: 3;
    flex: 1 1 100%;
  }

  .nut-chia-se__chu {
    display: none;
  }

  .thanh-ben {
    position: absolute;
    width: auto;
    overflow: hidden;
    border-right: none;
    transition: max-height 0.3s ease;
    z-index: 1100;
  }

  .thanh-ben--mo {
    overflow-y: auto;
  }

  .thanh-ben__tay-cam {
    display: block;
    position: sticky;
    top: 0;
    width: 100%;
    margin: 0;
    border: none;
    background: white;
    cursor: pointer;
    z-index: 1;
  }

  .thanh-ben__tay-cam span {
    display: block;
    width: 40px;
    height: 5px;
    margin: 0 auto;
    border-radius: 3px;
    background: #cfd3de;
  }

  .thanh-ben .thanh-ben__muc:first-of-type {
    padding-top: 0;
  }

  .thanh-ben .thanh-ben__muc:first-of-type .thanh-ben__tieu-de {
    display: none;
  }

  .luoi-chuc-nang {
    grid-template-columns: repeat(4, 1fr);
  }

  .o-chuc-nang {
    padding: 8px 2px;
    text-align: center;
  }

  
  .dang-dan-duong .vung-ban-do .leaflet-bottom {
    bottom: 190px;
  }

  .thong-bao-nhanh {
    bottom: 140px;
  }
}

/* điện thoại xoay ngang, cao dưới 500px: thanh bên hẹp, thanh tiêu đề 1 dòng */
@media (max-height: 500px) and (min-width: 761px) {
  .thanh-tieu-de {
    padding-top: max(6px, env(safe-area-inset-top));
    padding-bottom: 6px;
  }

  .thanh-tieu-de__khau-hieu {
    display: none;
  }

  .thanh-ben {
    padding-top: 0;
  }

  .o-chuc-nang {
    min-height: 56px;
  }

  .khung-anh {
    height: 100px;
  }
}

@media (max-height: 500px) {
  .dang-dan-duong .lo-trinh {
    display: none;
  }

  .thanh-dan-duong {
    padding-top: 10px;
    max-width: 420px;
    margin: 0 0 0 12px;
  }

  .dan-duong__khoang-cach {
    font-size: 24px;
  }

  .dan-duong__mui-ten {
    width: 48px;
    height: 48px;
  }

  .thanh-dan-duong__phu {
    margin-top: 8px;
    padding-top: 6px;
  }

  .dang-dan-duong .leaflet-bottom {
    bottom: 0;
  }
}

/* --- Góc trú mưa --- */

.nut-tro-choi--mua {
  background: #7c3aed;
  color: white;
  animation: moi-choi 2.4s ease-in-out infinite;
}

@keyframes moi-choi {
  0%, 80%, 100% { transform: rotate(0); }
  85% { transform: rotate(-6deg); }
  90% { transform: rotate(6deg); }
  95% { transform: rotate(-3deg); }
}

.khung-tro-choi {
  position: fixed;
  inset: 0;
  z-index: 2100;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.55);
  padding: 12px;
  box-sizing: border-box;
}

.khung-tro-choi[hidden] {
  display: none;
}

.tc-hop {
  width: 100%;
  max-width: 420px;
  max-height: 100%;
  overflow-y: auto;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
  padding: 14px 16px 16px;
  box-sizing: border-box;
}

.tc-dau {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.tc-dau h2 {
  margin: 0;
  font-size: 19px;
}

.tc-nut-dong {
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 50%;
  font-size: 16px;
  cursor: pointer;
}

.tc-loi-dan {
  margin: 6px 0 10px;
  font-size: 13px;
  color: #64748b;
}

.tc-su-kien {
  color: white;
  border-radius: 14px;
  padding: 10px 14px;
  margin-bottom: 12px;
}

.tc-su-kien p {
  margin: 0;
}

.tc-su-kien__nhan {
  font-size: 11px;
  opacity: 0.9;
}

.tc-su-kien__tieu-de {
  font-size: 17px;
  font-weight: bold;
  margin: 2px 0 !important;
}

.tc-su-kien__mo-ta {
  font-size: 13px;
}

.tc-danh-sach {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tc-the {
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  padding: 10px 12px;
  border: 1px solid #e2e8f0;
  cursor: pointer;
  font: inherit;
  color: inherit;
}

.tc-the__bieu-tuong {
  font-size: 32px;
  flex: none;
}

.tc-the__chu {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.tc-the__chu small {
  color: #64748b;
  font-size: 12px;
  line-height: 1.35;
}

.tc-the__choi {
  flex: none;
  background: #7c3aed;
  color: white;
  font-weight: bold;
  font-size: 13px;
  padding: 6px 12px;
  border-radius: 999px;
}

.tc-bang-khung h3 {
  margin: 14px 0 6px;
  font-size: 15px;
}

.tc-bang-khung h3 small {
  font-weight: normal;
  color: #64748b;
  font-size: 12px;
}

.tc-tab-bang {
  display: flex;
  gap: 6px;
  overflow-x: auto;
}

.tc-tab-bang button {
  flex: none;
  border: 1px solid #e2e8f0;
  background: white;
  padding: 5px 10px;
  font-size: 12px;
  cursor: pointer;
}

.tc-tab-bang button.dang-chon {
  font-weight: bold;
}

.tc-bang {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
}

.tc-bang li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 4px;
  border-bottom: 1px solid #f1f5f9;
  font-size: 14px;
}

.tc-bang__hang {
  width: 26px;
  text-align: center;
  font-weight: bold;
  color: #64748b;
}

.tc-bang__ten {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tc-bang__diem {
  font-weight: bold;
  color: #5b21b6;
}

.tc-bang .tc-bang__trong {
  color: #94a3b8;
  justify-content: center;
}

.tc-thanh-diem {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 8px 0;
  font-size: 14px;
  font-weight: bold;
}

.tc-diem {
  color: #5b21b6;
  font-size: 18px;
}

/* sân chơi giữ tỉ lệ 3:4, co theo bề ngang và chiều cao màn hình */
.tc-vung-ve {
  display: block;
  width: min(100%, calc((100dvh - 150px) * 0.75));
  aspect-ratio: 3 / 4;
  margin: 0 auto;
  border-radius: 14px;
  touch-action: none; /* chạm, kéo trên sân không làm cuộn trang */
  user-select: none;
  cursor: pointer;
}

.tc-rung {
  animation: tc-rung 0.25s;
}

@keyframes tc-rung {
  25% { transform: translateX(-6px); }
  75% { transform: translateX(6px); }
}

.tc-ket-thuc {
  text-align: center;
  padding: 10px 0 4px;
}

.tc-kq-tro {
  margin: 4px 0;
  font-weight: bold;
  color: #475569;
}

.tc-kq-nhan {
  margin: 8px 0 0;
  color: #64748b;
  font-size: 13px;
}

.tc-kq-diem {
  margin: 0 0 12px;
  font-size: 56px;
  font-weight: 800;
  color: #7c3aed;
  line-height: 1.1;
}

.tc-form-luu {
  display: flex;
  gap: 8px;
}

.tc-form-luu input {
  flex: 1;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  font-size: 15px;
}

.tc-kq-loi {
  min-height: 18px;
  margin: 6px 0;
  color: #dc2626;
  font-size: 13px;
}

.tc-hang-nut {
  display: flex;
  gap: 8px;
  justify-content: center;
}

.tc-nut-chinh {
  padding: 10px 16px;
  border: none;
  border-radius: 10px;
  background: #7c3aed;
  color: white;
  font-weight: bold;
  font-size: 14px;
  cursor: pointer;
}

.tc-nut-chinh:disabled {
  opacity: 0.5;
  cursor: default;
}

.tc-nut-nho {
  padding: 8px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  background: white;
  font-size: 13px;
  cursor: pointer;
}

.dang-dan-duong .thong-bao-nhanh {
  bottom: 250px;
}

/* bảng điều khiển người giả lập, chỉ để thử: góc phải phía trên tấm chỉ dẫn */
.bang-gia-lap {
  position: absolute;
  right: 16px;
  bottom: calc(100% + 12px);
  display: flex;
  gap: 6px;
}

.bang-gia-lap button {
  padding: 9px 14px;
  border: 1.5px dashed #a78bfa;
  border-radius: 999px;
  background: white;
  color: #5b21b6;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(31, 35, 64, 0.18);
  cursor: pointer;
}

.nut-gia-lap {
  border-style: dashed;
  color: #5b21b6;
  border-color: #a78bfa;
}

/* --- Khung tìm đường mở rộng, nút bản đồ, thẻ nổi trên điện thoại --- */

.khung-tim-duong--mo {
  padding: 16px;
}

.khung-tim-duong--mo .khung-tim-duong__dau h3 {
  color: var(--mau-chu);
}

.cac-o-dia-chi {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.khung-tim-duong--mo .o-dia-chi {
  position: relative;
}

.khung-tim-duong--mo .o-dia-chi--di::after {
  content: '';
  position: absolute;
  border-left: 2px dotted #c9cde0;
}

.khung-tim-duong--mo .o-dia-chi__nhan {
  font-size: 15px;
  flex-shrink: 0;
}

.o-dia-chi__khung {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.o-dia-chi__tieu-de {
  display: none;
  font-size: 12px;
  color: var(--mau-chu-phu);
  line-height: 1.2;
}

.khung-tim-duong--mo .o-dia-chi__khung {
  background: var(--mau-nen-phu);
  border-radius: 16px;
  padding: 8px 14px;
  cursor: text;
}

.khung-tim-duong--mo .o-dia-chi__tieu-de {
  display: block;
}

.khung-tim-duong--mo .o-dia-chi input {
  border: none;
  outline: none;
  background: transparent;
  padding: 3px 0 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--mau-chu);
}

.khung-tim-duong--mo .o-dia-chi input::placeholder {
  font-weight: normal;
}

.khung-tim-duong--mo .o-dia-chi .nut-bieu-tuong {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.khung-tim-duong:not(.khung-tim-duong--mo) .nut-bieu-tuong {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #5a607a;
}

.khung-tim-duong--mo .goi-y {
  margin-left: 42px;
  flex-basis: calc(100% - 42px);
}

.khung-tim-duong--mo .nut-dao-chieu {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  cursor: pointer;
}

.khung-tim-duong--mo .chon-che-do {
  align-items: center;
  font-size: inherit;
}

.chon-che-do__bieu-tuong {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chon-che-do__khung {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: var(--mau-nen-phu);
  border-radius: 16px;
  padding: 8px 14px;
}

.khung-tim-duong--mo .chon-che-do select {
  width: 100%;
  margin: 2px 0 0;
  padding: 2px 24px 0 0;
  border: none;
  background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='18' height='18' fill='none' stroke='%235a607a' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right center;
  -webkit-appearance: none;
  appearance: none;
  font-size: 15px;
  font-weight: 600;
  color: var(--mau-chu);
  outline: none;
  cursor: pointer;
}

.nut-tim-duong {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 14px;
  padding: 14px;
}

.khung-tim-duong--mo .ket-qua__dia-chi {
  display: none;
}

.khung-tim-duong--mo .the-tuyen {
  margin-top: 12px;
}

.khung-tim-duong--mo .ket-qua__nut {
  margin-top: 12px;
}

.khung-tim-duong--mo .ket-qua__nut button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.khung-tim-duong--mo .ket-qua__nut .nut-nho {
  background: white;
  color: var(--mau-chu);
}

.leaflet-bar {
  overflow: hidden;
}

.nut-vi-tri-ban-do a {
  color: var(--mau-chinh) !important;
}

/* điện thoại: thanh tiêu đề thành thẻ nổi trên bản đồ, thanh chức năng thành thanh tab nổi dưới đáy */
@media (max-width: 760px) {
  .thanh-tieu-de {
    position: absolute;
    top: max(10px, env(safe-area-inset-top));
    left: 10px;
    right: 10px;
  }

  .bo-cuc {
    height: 100%;
  }

  .thanh-tieu-de .nut-chia-se {
    border: none;
    font-size: 18px;
  }

  .thanh-tren {
    height: auto;
  }

  .khung-tim-duong {
    position: static;
    max-height: calc(100dvh - 190px);
  }

  .khung-tim-duong--mo {
    background: white;
  }

  .khung-tim-duong--mo .khung-tim-duong__dau h3 {
    font-size: 15px;
  }

  .thanh-ben {
    left: 10px;
    right: 10px;
    bottom: max(10px, env(safe-area-inset-bottom));
    max-height: 108px;
    padding: 0 10px 8px;
  }

  
  
  .luoi-chuc-nang {
    gap: 4px;
  }

  .o-chuc-nang {
    min-height: 64px;
    border: none;
  }

  .o-chuc-nang--noi-bat {
    border: none;
  }

  .o-chuc-nang__hinh {
    font-size: 26px;
  }

  .o-chuc-nang {
    white-space: nowrap;
    font-size: 11.5px;
  }

  .khung-tim-duong--mo .ket-qua__nut {
    flex-wrap: nowrap;
    gap: 6px;
  }

  .khung-tim-duong--mo .ket-qua__nut button {
    flex: 1 1 auto;
    justify-content: center;
    white-space: nowrap;
  }

  .vung-ban-do .leaflet-bottom {
    bottom: 124px;
  }

  .dang-dan-duong .thanh-tieu-de {
    display: none;
  }

  .thong-bao-chon {
    top: 90px;
  }
}

/* --- Phong cách app Tao --- */
/* nền xám nhạt, thanh bên tách khỏi khung chính trắng, chữ monospace, viền mảnh */

:root {
  --nen-app: #E9ECF1;
  --nen-ben: #F4F4F3;
  --nen-chim: #F1F1F0;
  --nen-hover: #EAEAE8;
  --mau-den: #141414;
  --mau-xanh-tao: #3B6FD6;
  --bong-tao: 0 10px 24px -12px rgba(0, 0, 0, 0.35);
  --font-mono: "JetBrains Mono", "Cascadia Mono", Consolas, ui-monospace, monospace;
  --font-sans: "Be Vietnam Pro", "Segoe UI", system-ui, sans-serif;
  /* biến cũ của trang trỏ sang bảng màu Tao */
  --mau-chinh: #141414;
  --mau-chinh-dam: #141414;
  --mau-chinh-nhat: #EAEAE8;
  --mau-vien: #E3E3E1;
  --mau-nen-phu: #F1F1F0;
  --mau-chu: #141414;
  --mau-chu-phu: #8A8A88;
}

body {
  font-family: var(--font-mono);
  font-size: 13px;
  -webkit-font-smoothing: antialiased;
}

button,
input,
select,
textarea {
  font-family: inherit;
}

/* máy tính: lưới 2 cột, thanh bên và khung chính */
@media (min-width: 761px) {
  body {
    display: grid;
    grid-template-columns: 284px minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr);
    column-gap: 14px;
    padding: 14px;
    box-sizing: border-box;
  }

  .bo-cuc {
    display: contents;
  }

  .thanh-ben {
    grid-column: 1;
    grid-row: 1 / span 2;
    width: auto;
    border: none;
    border-radius: 14px;
    background: var(--nen-ben);
    padding: 6px 14px 14px;
  }

  .thanh-tieu-de {
    grid-column: 2;
    grid-row: 1;
    border-radius: 14px 14px 0 0;
    padding: 12px 18px;
    border-bottom: 1px solid var(--mau-vien);
  }

  .vung-ban-do {
    grid-column: 2;
    grid-row: 2;
    border-radius: 0 0 14px 14px;
    overflow: hidden;
  }

  body.dang-dan-duong {
    grid-template-columns: 0 minmax(0, 1fr);
    column-gap: 0;
  }
}

@media (min-width: 761px) {
  .thanh-tieu-de {
    grid-template-columns: minmax(0, 1fr) minmax(0, 480px) minmax(0, 1fr);
  }
}

/* màn vừa: ô thời tiết và đồng hồ bớt chữ phụ, nút chia sẻ chỉ còn biểu tượng */
@media (min-width: 761px) and (max-width: 1280px) {
  .o-thoi-tiet__chu small,
  .nut-chia-se__chu,
  .dong-ho span {
    display: none;
  }
}

@media (min-width: 761px) and (max-width: 1024px) {
  body {
    grid-template-columns: 250px minmax(0, 1fr);
    padding: 10px;
    column-gap: 10px;
  }
}

.thuong-hieu {
  display: flex;
  align-items: center;
  padding: 12px 2px 10px;
}

.thuong-hieu__logo {
  width: 38px;
  height: 38px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 9.5px;
}

.thuong-hieu__chu {
  min-width: 0;
}

.thuong-hieu h1 {
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.thuong-hieu .thanh-tieu-de__khau-hieu {
  display: block;
  font-family: var(--font-sans);
  font-size: 11px;
  color: var(--mau-chu-phu);
  white-space: normal;
  line-height: 1.35;
  margin-top: 2px;
}

.dong-ho {
  display: flex;
  align-items: baseline;
  gap: 10px;
  min-width: 0;
}

.dong-ho b {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.dong-ho b small {
  font-size: 12px;
  font-weight: 400;
  color: var(--mau-chu-phu);
}

.dong-ho span {
  font-size: 12px;
  color: var(--mau-chu-phu);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.o-thoi-tiet {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 5px 12px 5px 8px;
  border: 1px solid var(--mau-vien);
  border-radius: 10px;
  background: white;
  text-align: left;
  cursor: pointer;
}

.o-thoi-tiet:hover {
  background: var(--nen-chim);
}

.o-thoi-tiet__hinh {
  width: 28px;
  font-size: 20px;
  text-align: center;
}

.o-thoi-tiet__chu {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
  min-width: 0;
}

.o-thoi-tiet__chu b {
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}

.o-thoi-tiet__chu small {
  font-size: 10.5px;
  color: var(--mau-chu-phu);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 160px;
}

.thanh-tieu-de .nut-chia-se {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 12px;
  border: 1px solid #D6D6D3;
  border-radius: 9px;
  background: white;
  color: var(--mau-chu);
  font-size: 12px;
  font-weight: 400;
}

.thanh-tieu-de .nut-chia-se:hover {
  background: var(--nen-hover);
  border-color: #D6D6D3;
}

.khung-tim-duong {
  border: 1px solid var(--mau-vien);
  border-radius: 9px;
  padding: 2px 8px 2px 10px;
}

.khung-tim-duong:not(.khung-tim-duong--mo) .o-dia-chi__kinh-lup {
  font-size: 0;
  width: 16px;
  height: 16px;
  background: no-repeat center / 15px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238A8A88' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-3.5-3.5'/%3E%3C/svg%3E");
}

.khung-tim-duong:not(.khung-tim-duong--mo) .o-dia-chi input {
  font-size: 13px;
}

.khung-tim-duong--mo {
  border: 1px solid var(--mau-vien);
  border-radius: 14px;
  box-shadow: var(--bong-tao), 0 2px 6px rgba(0, 0, 0, 0.05);
}

.khung-tim-duong--mo .khung-tim-duong__dau h3 {
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
}

.khung-tim-duong--mo .o-dia-chi__khung,
.chon-che-do__khung {
  border: 1px solid var(--mau-vien);
  border-radius: 10px;
}

.khung-tim-duong--mo .o-dia-chi .nut-bieu-tuong {
  border-radius: 9px;
  border: 1px solid var(--mau-vien);
  background: white;
  color: var(--mau-chu-phu);
}

.khung-tim-duong--mo .o-dia-chi .nut-bieu-tuong:hover {
  background: var(--nen-hover);
  color: var(--mau-chu);
}

.khung-tim-duong--mo .nut-dao-chieu {
  border-radius: 10px;
  border: 1px solid var(--mau-vien);
  background: var(--nen-chim);
  color: var(--mau-chu);
}

.chon-che-do__bieu-tuong {
  border-radius: 9px;
  background: var(--nen-chim);
  color: var(--mau-chu-phu);
  border: 1px solid var(--mau-vien);
}

.khung-tim-duong--mo .o-dia-chi input,
.khung-tim-duong--mo .chon-che-do select {
  font-size: 13px;
}

.nut-tim-duong {
  border-radius: 10px;
  font-size: 14px;
  background: var(--mau-den);
  box-shadow: var(--bong-tao);
}

.khung-tim-duong--mo .the-tuyen {
  border-left: 4px solid;
}

.khung-tim-duong--mo .ket-qua__nut button {
  border-radius: 9px;
  font-size: 12.5px;
  font-weight: 500;
}

.khung-tim-duong--mo .ket-qua__nut .nut-chinh {
  background: var(--mau-den);
  box-shadow: var(--bong-tao);
}

.khung-tim-duong--mo .ket-qua__nut .nut-nho {
  border: 1px solid #D6D6D3;
}

.thanh-ben__muc {
  padding: 12px 0;
  border-bottom: 1px solid var(--mau-vien);
}

.thanh-ben__tieu-de {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
}

.thanh-ben .thanh-ben__muc:first-of-type .thanh-ben__tieu-de {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  color: var(--mau-chu-phu);
  margin-bottom: 4px;
}

/* máy tính: ô chức năng thành danh sách dọc */
@media (min-width: 761px) {
  .thanh-ben .thanh-ben__muc:first-of-type {
    border-bottom: none;
    padding-top: 4px;
  }

  .luoi-chuc-nang {
    display: flex;
    flex-direction: column;
  }

  .o-chuc-nang {
    flex-direction: row;
    justify-content: flex-start;
    gap: 10px;
    min-height: 0;
    padding: 9px 10px;
    border: none;
    border-radius: 9px;
    background: transparent;
    color: #3C3C3C;
    font-weight: 400;
    text-align: left;
  }

  .o-chuc-nang:hover {
    background: var(--nen-hover);
    border: none;
  }

  .o-chuc-nang--noi-bat,
  .o-chuc-nang--noi-bat:hover {
    background: var(--mau-den);
    color: white;
    box-shadow: var(--bong-tao);
  }
}

.o-chuc-nang__hinh {
  display: grid;
  place-items: center;
}

.o-chuc-nang__hinh svg {
  width: 17px;
  height: 17px;
}

.o-chuc-nang.nut-tro-choi--mua {
  border: none;
  animation: none;
}

.o-chuc-nang.nut-tro-choi--mua::after {
  content: 'đang mưa';
  margin-left: auto;
  font-size: 10px;
  border-radius: 5px;
  padding: 0 6px;
}

.thanh-du-bao__noi {
  border-radius: 5px;
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 10px;
}

.thanh-du-bao__tom-tat {
  font-size: 12px;
}

.o-gio {
  border: 1px solid var(--mau-vien);
  border-radius: 10px;
}

.chu-thich__canh-bao {
  border: 1px solid var(--mau-vien);
  border-radius: 10px;
  background: white;
  font-size: 12px;
}

.chu-thich__canh-bao--tot {
  background: white;
  color: #2F8F5B;
}

.chu-thich__canh-bao--xau {
  background: white;
  color: #C2413A;
  border-color: #EBC9C6;
}

.chu-thich__nut-vi-tri {
  border: 1px solid #D6D6D3;
  border-radius: 9px;
  color: var(--mau-chu);
  font-family: inherit;
}

.chu-thich__nut-vi-tri:hover {
  background: var(--nen-hover);
}

.chon-kieu-ban-do {
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--mau-vien);
  border-radius: 10px;
}

.chon-kieu-ban-do button {
  border: none;
  border-radius: 7px;
  background: transparent;
  font-size: 11px;
  padding: 6px 4px;
}

.chon-kieu-ban-do button.dang-chon {
  font-weight: 400;
}

.leaflet-bar {
  border: 1px solid var(--mau-vien) !important;
  border-radius: 10px !important;
  box-shadow: var(--bong-tao) !important;
}

.leaflet-bar a,
.leaflet-touch .leaflet-bar a {
  width: 38px !important;
  height: 38px !important;
  line-height: 38px !important;
}

/* điện thoại: thẻ trên và thanh tab theo phong cách Tao */
@media (max-width: 760px) {
  body {
    background: var(--nen-app);
  }

  .thanh-tieu-de {
    border-radius: 14px;
    border: 1px solid var(--mau-vien);
    box-shadow: var(--bong-tao);
    padding: 10px 12px;
  }

  .dong-ho {
    flex: 1;
  }

  .dong-ho span {
    display: none;
  }

  .o-thoi-tiet__chu small {
    display: none;
  }

  .thanh-tieu-de .nut-chia-se {
    width: 38px;
    height: 38px;
    justify-content: center;
    padding: 0;
    border-radius: 9px;
    background: white;
  }

  
  .khung-tim-duong--mo {
    border: none;
    box-shadow: none;
    padding: 6px 0 0;
  }

  .thanh-ben {
    border-radius: 14px;
    border: 1px solid var(--mau-vien);
    box-shadow: var(--bong-tao);
  }

  .thuong-hieu {
    padding-top: 4px;
  }

  /* thanh tab thu gọn chỉ hiện 4 ô, kéo lên mới thấy tên web */
  .thanh-ben:not(.thanh-ben--mo) .thuong-hieu {
    display: none;
  }

  .o-chuc-nang {
    border-radius: 10px;
    color: #3C3C3C;
    font-weight: 400;
  }

  .o-chuc-nang__hinh svg {
    width: 22px;
    height: 22px;
  }

  .o-chuc-nang--noi-bat {
    box-shadow: var(--bong-tao);
  }

  .o-chuc-nang.nut-tro-choi--mua::after {
    display: none;
  }

  .o-chuc-nang.nut-tro-choi--mua .o-chuc-nang__hinh {
    color: var(--mau-xanh-tao);
  }
}

.tc-hop {
  border-radius: 14px;
}

.tc-dau h2 {
  font-family: var(--font-sans);
}

.tc-su-kien {
  background: var(--mau-den);
  box-shadow: var(--bong-tao);
}

.tc-su-kien__nhan {
  color: #9DB8F0;
  letter-spacing: 0.12em;
}

.tc-the {
  border-radius: 12px;
  background: white;
}

.tc-the:hover {
  border-color: #D6D6D3;
}

.tc-the--su-kien {
  border: 1.5px solid var(--mau-den);
  background: white;
}

.tc-the__choi,
.tc-nut-chinh,
.nut-tro-choi--mua {
  background: var(--mau-den);
  border-radius: 9px;
}

.tc-tab-bang button {
  border-radius: 7px;
  font-family: inherit;
}

.tc-tab-bang button.dang-chon {
  background: var(--mau-den);
  border-color: var(--mau-den);
  color: white;
}

.tc-bang__diem,
.tc-kq-diem,
.tc-diem {
  color: var(--mau-chu);
}

.tc-nut-nho,
.tc-form-luu input {
  border-radius: 9px;
  font-family: inherit;
}

.chu-thich {
  line-height: 1.5;
  color: var(--mau-chu);
  background: transparent;
  border-radius: 0;
}

.chu-thich .chu-thich__canh-bao,
.chu-thich .chu-thich__canh-bao--tot,
.chu-thich .chu-thich__canh-bao--xau {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin: 0 0 8px;
  padding: 10px 12px;
  border: 1px solid var(--mau-vien);
  border-radius: 10px;
  background: white;
  color: var(--mau-chu);
  font: inherit;
  text-align: left;
  box-sizing: border-box;
}

/* chấm trạng thái: xanh là ổn, đỏ là ngập, xám là đang chờ */
.trang-thai {
  width: 8px;
  height: 8px;
  flex: none;
  border-radius: 50%;
}

.trang-thai--tot {
  background: #2f9e5f;
  box-shadow: 0 0 0 3px rgba(47, 158, 95, 0.15);
}

.trang-thai--xau {
  background: #d63b36;
  box-shadow: 0 0 0 3px rgba(214, 59, 54, 0.15);
}

.trang-thai--cho {
  background: var(--mau-chu-phu);
  animation: nhap-nhay 1s infinite;
}

.chu-thich__chu {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  line-height: 1.35;
}

.chu-thich__chu b {
  font-size: 13px;
  font-weight: 600;
}

.chu-thich__chu small {
  font-size: 11px;
  color: var(--mau-chu-phu);
}

.chu-thich__so-lon {
  font-size: 18px;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  margin-right: 2px;
}

.chu-thich .chu-thich__nut-vi-tri {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-bottom: 10px;
  padding: 7px 10px;
  background: white;
  color: var(--mau-chu);
  font-size: 12px;
}

.chu-thich__nut-vi-tri svg {
  color: var(--mau-chu-phu);
}

.chu-thich .ds-ngap__ten {
  font-weight: 600;
}

.chu-thich .ds-ngap__phu,
.chu-thich .ds-ngap__cach,
.chu-thich .ds-ngap__them {
  color: var(--mau-chu-phu);
  font-weight: 400;
}

.chu-thich .chu-thich__mau {
  gap: 4px 12px;
  padding-top: 10px;
  border-top: 1px solid var(--mau-vien);
  font-size: 11px;
  color: #3C3C3C;
}

.chu-thich .chu-thich__mau span {
  color: #3C3C3C;
}

.chu-thich .chu-thich__mau i {
  width: 12px;
  height: 4px;
  border-radius: 2px;
}

.chu-thich .chu-thich__mau i.chu-thich__mau-bao-cao {
  width: 12px;
  height: 12px;
  font-size: 0;
  background: no-repeat center / 12px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%233b6fd6'%3E%3Cpath d='M12 2s-7 8-7 13a7 7 0 0 0 14 0c0-5-7-13-7-13z'/%3E%3C/svg%3E");
}

/* --- Chủ đề màu: Mặc định, Trắng, Tối --- */
/* app.js đặt html[data-chu-de]; màu các phần bên dưới đều đọc từ biến của chủ đề */

/* Trắng, giống app Tao */
:root[data-chu-de="trang"] {
  --nen-app: #E9ECF1;
  --nen-ben: #F4F4F3;
  --nen-khung: #FFFFFF;
  --nen-chim: #F1F1F0;
  --nen-hover: #EAEAE8;
  --mau-den: #141414;
  --chu-tren-den: #FFFFFF;
  --mau-chu: #141414;
  --mau-chu-2: #3C3C3C;
  --mau-chu-phu: #8A8A88;
  --mau-vien: #E3E3E1;
  --mau-vien-2: #D6D6D3;
  --chip: #E6E6E4;
  --mau-xanh-tao: #3B6FD6;
  --bong-tao: 0 10px 24px -12px rgba(0, 0, 0, 0.35);
  color-scheme: light;
}

/* Mặc định: xanh nước như chữ "Đắm Đuối" ở màn chào, nền trắng xanh, chữ xanh than */
:root,
:root[data-chu-de="mac-dinh"] {
  --nen-app: #DCEAF8;
  --nen-ben: #F2F8FE;
  --nen-khung: #FFFFFF;
  --nen-chim: #F1F7FE;
  --nen-hover: #E3EFFC;
  --mau-den: #2B74C2; /* đậm hơn chữ màn chào chút cho chữ trắng trên nút dễ đọc */
  --chu-tren-den: #FFFFFF;
  --mau-chu: #14284A;
  --mau-chu-2: #2F4568;
  --mau-chu-phu: #7088A8;
  --mau-vien: #D6E5F5;
  --mau-vien-2: #C3D7EE;
  --chip: #DCEAF8;
  --mau-xanh-tao: #3D86D4;
  --bong-tao: 0 10px 24px -12px rgba(43, 116, 194, 0.4);
  color-scheme: light;
}

/* Tối, giống chủ đề tối của Tao */
:root[data-chu-de="toi"] {
  --nen-app: #0E0E0F;
  --nen-ben: #161617;
  --nen-khung: #1B1B1D;
  --nen-chim: #222224;
  --nen-hover: #2A2A2D;
  --mau-den: #F2F2F1;
  --chu-tren-den: #121212;
  --mau-chu: #EDEDEC;
  --mau-chu-2: #C9C9C7;
  --mau-chu-phu: #8B8B89;
  --mau-vien: #2A2A2C;
  --mau-vien-2: #3A3A3D;
  --chip: #2E2E31;
  --mau-xanh-tao: #7BA2F0;
  --bong-tao: 0 10px 24px -12px rgba(0, 0, 0, 0.8);
  color-scheme: dark;
}

:root {
  --mau-chinh: var(--mau-den);
  --mau-chinh-dam: var(--mau-den);
  --mau-chinh-nhat: var(--nen-hover);
  --mau-nen-phu: var(--nen-chim);
}

/* --- Áp màu chủ đề cho từng phần --- */
body {
  background: var(--nen-app);
  color: var(--mau-chu);
}

.thanh-ben,
.thanh-ben__tay-cam {
  background: var(--nen-ben);
  color: var(--mau-chu);
}
.thanh-ben__muc {
  border-color: var(--mau-vien);
}

.thanh-tieu-de {
  background: var(--nen-khung);
  color: var(--mau-chu);
  border-color: var(--mau-vien);
}
.vung-ban-do,
.leaflet-container {
  background: var(--nen-chim);
}

.thuong-hieu__logo {
  background: #FFFFFF;
  box-shadow: 0 0 0 1px var(--mau-vien-2);
  overflow: hidden;
}
.thuong-hieu__logo img {
  display: block;
}

.dong-ho b {
  color: var(--mau-chu);
}

.o-thoi-tiet,
.thanh-tieu-de .nut-chia-se {
  background: var(--nen-khung);
  border-color: var(--mau-vien-2);
  color: var(--mau-chu);
}
.o-thoi-tiet:hover,
.thanh-tieu-de .nut-chia-se:hover {
  background: var(--nen-hover);
}

.khung-tim-duong {
  background: var(--nen-chim);
  border-color: var(--mau-vien);
  color: var(--mau-chu);
}
.khung-tim-duong--mo {
  background: var(--nen-khung);
}
.khung-tim-duong input,
.khung-tim-duong select {
  color: var(--mau-chu);
}
.khung-tim-duong input::placeholder {
  color: var(--mau-chu-phu);
}
.khung-tim-duong select option {
  background: var(--nen-khung);
  color: var(--mau-chu);
}
.khung-tim-duong--mo .o-dia-chi__khung,
.chon-che-do__khung {
  background: var(--nen-chim);
  border-color: var(--mau-vien);
}
.khung-tim-duong .nut-bieu-tuong,
.khung-tim-duong--mo .o-dia-chi .nut-bieu-tuong {
  background: var(--nen-khung);
  border-color: var(--mau-vien);
  color: var(--mau-chu-phu);
}
.khung-tim-duong:not(.khung-tim-duong--mo) .nut-bieu-tuong {
  background: transparent;
  border: none;
}
.khung-tim-duong--mo .nut-dao-chieu,
.chon-che-do__bieu-tuong {
  background: var(--nen-chim);
  border-color: var(--mau-vien);
  color: var(--mau-chu);
}
.nut-dong {
  color: var(--mau-chu-phu);
}
.nut-chinh,
.nut-tim-duong,
.khung-tim-duong--mo .ket-qua__nut .nut-chinh {
  background: var(--mau-den);
  color: var(--chu-tren-den);
}
.nut-nho,
.khung-tim-duong--mo .ket-qua__nut .nut-nho {
  background: var(--nen-khung);
  border-color: var(--mau-vien-2);
  color: var(--mau-chu);
}
.khung-tim-duong--mo .ket-qua__nut .nut-gia-lap {
  color: var(--mau-xanh-tao);
}
.khung-tim-duong--mo .the-tuyen {
  border-color: var(--mau-vien);
}
.ket-qua-tim-duong {
  color: var(--mau-chu);
}

.khung-tim-duong--mo .o-dia-chi__nhan {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--nen-chim);
  border: 1px solid var(--mau-vien);
  box-shadow: none;
  display: grid;
  place-items: center;
}
.o-dia-chi__nhan--di {
  color: #3b6fd6;
}
.o-dia-chi__nhan--den {
  color: #d63b36;
}
.o-dia-chi__nhan svg {
  width: 16px;
  height: 16px;
}

.goi-y {
  background: var(--nen-khung);
  border-color: var(--mau-vien);
  color: var(--mau-chu);
}
.goi-y__muc:hover,
.goi-y__muc--chon {
  background: var(--nen-hover);
}
.goi-y__mo-ta {
  color: var(--mau-chu-phu);
}

.o-chuc-nang {
  color: var(--mau-chu-2);
}
.o-chuc-nang:hover {
  background: var(--nen-hover);
}
.o-chuc-nang__hinh {
  color: var(--mau-chu-phu);
}
.o-chuc-nang--noi-bat,
.o-chuc-nang--noi-bat:hover {
  background: var(--mau-den);
  color: var(--chu-tren-den);
}
.o-chuc-nang--noi-bat .o-chuc-nang__hinh {
  color: inherit;
}
.o-chuc-nang.nut-tro-choi--mua {
  background: transparent;
  color: var(--mau-chu-2);
}
.o-chuc-nang.nut-tro-choi--mua::after {
  background: var(--chip);
  color: var(--mau-xanh-tao);
}
.thanh-ben__tieu-de {
  color: var(--mau-chu);
}
.thanh-du-bao__noi {
  background: var(--chip);
  color: var(--mau-chu-phu);
}
.thanh-du-bao__tom-tat {
  color: var(--mau-chu-2);
}
.o-gio {
  background: var(--nen-khung);
  border-color: var(--mau-vien);
  color: var(--mau-chu-phu);
}
.o-gio--nho {
  background: var(--nen-chim);
  color: var(--mau-chu-2);
}
.o-gio--vua {
  background: var(--chip);
  color: var(--mau-chu);
}
.o-gio--to {
  background: var(--mau-den);
  border-color: var(--mau-den);
  color: var(--chu-tren-den);
}

.chu-thich,
.chu-thich .chu-thich__mau,
.chu-thich .chu-thich__mau span {
  color: var(--mau-chu-2);
}
.chu-thich .chu-thich__canh-bao,
.chu-thich .chu-thich__canh-bao--tot,
.chu-thich .chu-thich__canh-bao--xau,
.chu-thich .chu-thich__nut-vi-tri {
  background: var(--nen-khung);
  border-color: var(--mau-vien);
  color: var(--mau-chu);
}
.chu-thich .chu-thich__nut-vi-tri:hover {
  background: var(--nen-hover);
}
.chu-thich .chu-thich__mau {
  border-color: var(--mau-vien);
}
.chu-thich .ds-ngap__ten {
  color: var(--mau-chu);
}
.ds-ngap__muc:hover {
  background: var(--nen-hover);
}

.chon-kieu-ban-do {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: var(--nen-chim);
  border-color: var(--mau-vien);
}
.chon-kieu-ban-do button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: var(--mau-chu-phu);
  white-space: nowrap;
}
.chon-kieu-ban-do button.dang-chon {
  background: var(--mau-den);
  color: var(--chu-tren-den);
}
.mau-mau {
  width: 10px;
  height: 10px;
  flex: none;
  border-radius: 3px;
  box-shadow: 0 0 0 1px rgba(127, 127, 127, 0.45);
}
.mau-mau--mac-dinh {
  background: #3D86D4;
}
.mau-mau--trang {
  background: #FFFFFF;
}
.mau-mau--toi {
  background: #1B1B1D;
}

.leaflet-bar {
  border-color: var(--mau-vien) !important;
}
.leaflet-bar a,
.leaflet-touch .leaflet-bar a {
  background: var(--nen-khung) !important;
  color: var(--mau-chu) !important;
  border-bottom-color: var(--mau-vien) !important;
}
.leaflet-bar a:hover {
  background: var(--nen-hover) !important;
}
.leaflet-control-attribution {
  background: color-mix(in srgb, var(--nen-khung) 85%, transparent) !important;
  color: var(--mau-chu-phu);
}
.leaflet-control-attribution a {
  color: var(--mau-xanh-tao);
}
.leaflet-popup-content-wrapper,
.leaflet-popup-tip {
  background: var(--nen-khung);
  color: var(--mau-chu);
}
.leaflet-popup-content-wrapper {
  border-radius: 14px;
  box-shadow: var(--bong-tao), 0 2px 8px rgba(0, 0, 0, 0.12);
  border: 1px solid var(--mau-vien);
}
.leaflet-container a.leaflet-popup-close-button {
  color: var(--mau-chu-phu);
}

.khung-diem {
  font-family: var(--font-mono);
  color: var(--mau-chu);
}
.khung-diem__ten {
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  color: var(--mau-chu);
}
.khung-diem__nhan {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 9px;
  border: 1px solid var(--mau-vien);
  border-radius: 7px;
  background: var(--nen-chim);
  color: var(--mau-chu);
  font-size: 11px;
  font-weight: 500;
}
.khung-diem__nhan i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.khung-diem__dong {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: var(--mau-chu-2);
  font-size: 12.5px;
}
.khung-diem__dong strong {
  color: var(--mau-chu);
}
.khung-diem .bt {
  width: 15px;
  height: 15px;
  flex: none;
  margin-top: 2px;
  color: var(--mau-chu-phu);
}
.khung-diem__dong--bao-cao {
  color: var(--mau-xanh-tao);
}
.khung-diem__dong--bao-cao .bt {
  color: var(--mau-xanh-tao);
}
.khung-diem__ghi-chu {
  color: var(--mau-chu-phu);
  font-size: 12px;
}
.khung-diem .nut-chia-se-diem,
.khung-diem .nut-nho {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid var(--mau-vien-2);
  border-radius: 9px;
  background: var(--nen-khung);
  color: var(--mau-chu);
  font-family: inherit;
  font-weight: 500;
}
.khung-diem .nut-chia-se-diem:hover,
.khung-diem .nut-nho:hover {
  background: var(--nen-hover);
}
.khung-diem .nut-chia-se-diem .bt,
.khung-diem .nut-nho .bt {
  margin-top: 0;
  color: inherit;
}
.khung-diem .nut-nho--con {
  color: #d63b36;
  border-color: #e7b9b6;
}
.khung-diem .nut-nho--rut {
  color: #2f9e5f;
  border-color: #b9dcc8;
}
.khung-anh {
  border-radius: 10px;
}
.khung-anh--trong {
  background: var(--nen-chim);
  border: 1px dashed var(--mau-vien-2);
  color: var(--mau-chu-phu);
}
.khung-anh .bt--to {
  width: 26px;
  height: 26px;
  margin: 0;
  color: var(--mau-chu-phu);
}
.leaflet-popup-content a.khung-anh__nut {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--mau-den);
  color: var(--chu-tren-den);
  border-radius: 8px;
  font-weight: 500;
}
.leaflet-popup-content a.khung-anh__nut .bt {
  width: 13px;
  height: 13px;
  margin: 0;
  color: inherit;
}

.khung-bao-cao,
.khung-chia-se__hop,
.thong-bao-chon {
  background: var(--nen-khung);
  color: var(--mau-chu);
}
.khung-bao-cao textarea,
.khung-chia-se textarea {
  background: var(--nen-chim);
  border-color: var(--mau-vien);
  color: var(--mau-chu);
}
.chon-muc-nuoc__o span {
  border-color: var(--mau-vien);
  border-width: 1px;
  background: var(--nen-khung);
}
.chon-muc-nuoc__o input:checked + span {
  border-color: var(--mau-den);
  background: var(--nen-hover);
}

.tc-hop {
  background: var(--nen-khung);
  color: var(--mau-chu);
}
.tc-dau h2 {
  color: var(--mau-chu);
}
.tc-nut-dong {
  background: var(--nen-chim);
  color: var(--mau-chu);
}
.tc-loi-dan,
.tc-the__chu small,
.tc-kq-nhan,
.tc-bang-khung h3 small {
  color: var(--mau-chu-phu);
}
.tc-the,
.tc-the--su-kien {
  background: var(--nen-khung);
  color: var(--mau-chu);
}
.tc-the {
  border-color: var(--mau-vien);
}
.tc-the--su-kien {
  border-color: var(--mau-den);
}
.tc-the:hover {
  background: var(--nen-hover);
}
.tc-the__choi,
.tc-nut-chinh,
.tc-su-kien,
.tc-tab-bang button.dang-chon {
  background: var(--mau-den);
  color: var(--chu-tren-den);
}
.tc-tab-bang button,
.tc-nut-nho {
  background: var(--nen-khung);
  border-color: var(--mau-vien);
  color: var(--mau-chu);
}
.tc-bang li {
  border-color: var(--mau-vien);
}
.tc-bang__diem,
.tc-kq-diem,
.tc-diem,
.tc-kq-tro {
  color: var(--mau-chu);
}
.tc-form-luu input {
  background: var(--nen-chim);
  border-color: var(--mau-vien);
  color: var(--mau-chu);
}

.lo-trinh,
.thanh-dan-duong,
.nut-ve-giua,
.bang-gia-lap button {
  background: var(--nen-khung);
  color: var(--mau-chu);
}
.lo-trinh::after,
.thanh-dan-duong__phu {
  border-color: var(--mau-vien);
}
.dan-duong__loi-chi,
.thanh-dan-duong__so span {
  color: var(--mau-chu-phu);
}
.nut-tron-nho {
  background: var(--nen-chim);
  border-color: var(--mau-vien);
}
.lo-trinh__cham--cuoi {
  background: var(--nen-khung);
}

/* chủ đề Tối: lúc dẫn đường vẫn giữ bản đồ tối */
:root[data-chu-de="toi"] .dang-dan-duong .leaflet-tile-pane {
  filter: invert(0.92) grayscale(1) sepia(1) hue-rotate(180deg) saturate(2.6) brightness(0.85) contrast(1.05) !important;
}

.ghim-diem-di,
.ghim-diem-den {
  background: none;
  border: none;
}
.ghim-diem-di span {
  display: block;
  width: 22px;
  height: 22px;
  box-sizing: border-box;
  border-radius: 50%;
  background: white;
  border: 6px solid #3b6fd6;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}
.ghim-diem-den svg {
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.35));
}

.khung-tim-duong:not(.khung-tim-duong--mo) {
  display: flex;
  align-items: center;
  height: 42px;
  padding: 0 5px 0 12px;
  box-sizing: border-box;
}
.khung-tim-duong:not(.khung-tim-duong--mo) #form-tim-duong,
.khung-tim-duong:not(.khung-tim-duong--mo) .cac-o-dia-chi,
.khung-tim-duong:not(.khung-tim-duong--mo) .o-dia-chi--den {
  width: 100%;
}
.khung-tim-duong:not(.khung-tim-duong--mo) .o-dia-chi--den {
  align-items: center;
  gap: 8px;
}
.khung-tim-duong:not(.khung-tim-duong--mo) .o-dia-chi input {
  padding: 0;
  height: 30px;
  line-height: 30px;
}
.khung-tim-duong:not(.khung-tim-duong--mo) .nut-bieu-tuong {
  width: 32px;
  height: 32px;
  min-width: 0;
  min-height: 0;
  padding: 0;
}
.khung-tim-duong:not(.khung-tim-duong--mo) .ket-qua-tim-duong {
  display: none;
}

.khung-tim-duong__dau {
  justify-content: flex-end;
  margin-bottom: 2px;
}
.khung-tim-duong__dau .nut-dong {
  width: 28px;
  height: 28px;
  border-radius: 8px;
}
.khung-tim-duong__dau .nut-dong:hover {
  background: var(--nen-hover);
}

/* điện thoại */
@media (max-width: 760px) {
  .chu-thich .chu-thich__mau {
    display: none;
  }

  /* tấm dưới kéo lên không chui xuống dưới thẻ trên */
  .thanh-ben--mo {
    max-height: calc(100% - 150px);
  }

  .thanh-ben {
    background: var(--nen-ben);
    border-color: var(--mau-vien);
  }
  .o-chuc-nang {
    background: transparent;
  }
  .o-chuc-nang--noi-bat {
    background: var(--mau-den);
    color: var(--chu-tren-den);
  }
  .thanh-tieu-de {
    border-color: var(--mau-vien);
  }

  .khung-tim-duong--mo {
    max-height: calc(100dvh - 210px);
  }
}

/* --- Nút chức năng tô màu, thương hiệu gọn trên điện thoại, dự báo 3 ô giờ --- */

.thuong-hieu-gon {
  display: none;
}

.thanh-du-bao__theo-gio {
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 760px) {
  .dong-ho {
    display: none;
  }

  .thuong-hieu-gon {
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 0;
  }

  .thuong-hieu-gon .thuong-hieu__logo {
    width: 32px;
    height: 32px;
    border-radius: 8px;
  }
  
  .thuong-hieu-gon b {
    font-family: var(--font-sans);
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--mau-chu);
  }

  .thanh-ben .thuong-hieu {
    display: none;
  }

  /* Báo ngập, Trú mưa tô đặc màu chủ đạo; Tìm đường, Vị trí của tôi là ô trắng viền mảnh */
  .o-chuc-nang,
  .o-chuc-nang:hover {
    background: var(--nen-khung);
    border: 1px solid var(--mau-vien);
    color: var(--mau-chu);
    box-shadow: none;
  }

  .o-chuc-nang .o-chuc-nang__hinh {
    color: var(--mau-chu-2);
  }

  .o-chuc-nang--bao-ngap,
  .o-chuc-nang--bao-ngap:hover,
  .o-chuc-nang--tru-mua,
  .o-chuc-nang--tru-mua:hover,
  .o-chuc-nang.nut-tro-choi--mua {
    background: var(--mau-den);
    border: 1px solid var(--mau-den); /* đủ viền như lúc rê chuột, ô khỏi to ra 2px */
    color: var(--chu-tren-den);
    box-shadow: var(--bong-tao);
  }

  .o-chuc-nang--bao-ngap .o-chuc-nang__hinh,
  .o-chuc-nang--tru-mua .o-chuc-nang__hinh,
  .o-chuc-nang.nut-tro-choi--mua .o-chuc-nang__hinh {
    color: inherit;
  }
}

/* --- Máy tính: nút chức năng giống điện thoại, thanh trên giữ cột cố định --- */

/* mỗi phần thanh trên đứng yên ở cột của nó, để lúc ô tìm đường bị ẩn khi báo ngập,
   dẫn đường thì ô thời tiết không bị dồn vào giữa */
@media (min-width: 761px) {
  .thanh-tieu-de > .thuong-hieu-gon,
  .thanh-tieu-de > .dong-ho {
    grid-column: 1;
    grid-row: 1;
  }
  .thanh-tieu-de > .thanh-tren {
    grid-column: 2;
    grid-row: 1;
  }
  .thanh-tieu-de > .thanh-tieu-de__phai {
    grid-column: 3;
    grid-row: 1;
  }

  .luoi-chuc-nang {
    gap: 6px;
  }

  .o-chuc-nang,
  .o-chuc-nang:hover {
    background: var(--nen-khung);
    border: 1px solid var(--mau-vien);
    color: var(--mau-chu);
    box-shadow: none;
    font-weight: 500;
  }

  .o-chuc-nang {
    transition: background 0.15s, border-color 0.15s, filter 0.15s;
  }
  .o-chuc-nang:hover {
    background: var(--nen-hover);
    border-color: var(--mau-vien-2);
  }

  .o-chuc-nang .o-chuc-nang__hinh {
    color: var(--mau-chu-2);
  }

  .o-chuc-nang--bao-ngap,
  .o-chuc-nang--bao-ngap:hover,
  .o-chuc-nang--tru-mua,
  .o-chuc-nang--tru-mua:hover,
  .o-chuc-nang.nut-tro-choi--mua {
    background: var(--mau-den);
    border: 1px solid var(--mau-den);
    color: var(--chu-tren-den);
    box-shadow: var(--bong-tao);
  }

  .o-chuc-nang--bao-ngap:hover,
  .o-chuc-nang--tru-mua:hover {
    filter: brightness(1.08);
  }

  .o-chuc-nang--bao-ngap .o-chuc-nang__hinh,
  .o-chuc-nang--tru-mua .o-chuc-nang__hinh,
  .o-chuc-nang.nut-tro-choi--mua .o-chuc-nang__hinh {
    color: inherit;
  }

  .o-chuc-nang.nut-tro-choi--mua::after {
    background: color-mix(in srgb, var(--chu-tren-den) 22%, transparent);
    color: inherit;
  }
}

.khung-tim-duong--mo .the-tuyen {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--mau-vien);
  border-radius: 10px;
  background: var(--nen-khung);
  color: var(--mau-chu);
}

.the-tuyen .trang-thai {
  margin-top: 6px;
}

.trang-thai--vua {
  background: #e07a1f;
  box-shadow: 0 0 0 3px rgba(224, 122, 31, 0.15);
}

.the-tuyen__chu {
  flex: 1;
  min-width: 0;
}

.khung-tim-duong--mo .the-tuyen p {
  margin: 0;
}

.khung-tim-duong--mo .the-tuyen__tieu-de {
  font-size: 13px;
  font-weight: 600;
  color: var(--mau-chu);
}

.the-tuyen__phu {
  font-size: 11.5px;
  color: var(--mau-chu-phu);
}

.khung-tim-duong--mo .the-tuyen__nhe {
  margin-top: 4px;
  font-size: 11.5px;
  color: #b8620f;
}

.khung-tim-duong--mo .the-tuyen--xau .the-tuyen__nhe {
  color: #c2413a;
}

:root[data-chu-de="toi"] .khung-tim-duong--mo .the-tuyen__nhe {
  color: #f0a35e;
}
:root[data-chu-de="toi"] .khung-tim-duong--mo .the-tuyen--xau .the-tuyen__nhe {
  color: #ee6b61;
}

/* --- Khung tìm đường: căn lưới --- */
/* mỗi hàng địa chỉ: biểu tượng 32px, ô nhập, 2 nút 40px; nút đảo chiều ở cột riêng bên phải.
   các hàng cách nhau 12px, 3 nút dưới cùng rộng bằng nhau */
.khung-tim-duong--mo #form-tim-duong {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.khung-tim-duong--mo .cac-o-dia-chi {
  gap: 12px;
  padding-right: 52px; /* chừa cột nút đảo chiều: 40px + 12px khoảng cách */
}

.khung-tim-duong--mo .o-dia-chi {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) 40px 40px;
  align-items: center;
  gap: 8px;
}

.khung-tim-duong--mo .o-dia-chi .o-dia-chi__nhan {
  grid-column: 1;
}
.khung-tim-duong--mo .o-dia-chi .o-dia-chi__khung {
  grid-column: 2;
}
.khung-tim-duong--mo #nut-vi-tri-di {
  grid-column: 3;
}
.khung-tim-duong--mo #nut-chon-di,
.khung-tim-duong--mo #nut-chon-den {
  grid-column: 4;
}
.khung-tim-duong--mo .goi-y {
  grid-column: 2 / -1;
  margin: 0;
}

.khung-tim-duong--mo .o-dia-chi__khung,
.khung-tim-duong--mo .chon-che-do__khung {
  min-height: 50px;
  box-sizing: border-box;
  justify-content: center;
  padding: 7px 14px;
}

.khung-tim-duong--mo .o-dia-chi .nut-bieu-tuong,
.khung-tim-duong--mo .nut-dao-chieu {
  width: 40px;
  height: 40px;
  border-radius: 10px;
}

.khung-tim-duong--mo .nut-dao-chieu {
  right: 0;
}

.khung-tim-duong--mo .o-dia-chi--di::after {
  left: 15px;
  top: calc(50% + 17px);
  height: 28px;
}

.khung-tim-duong--mo .chon-che-do {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 8px;
  margin: 0;
}

.khung-tim-duong--mo .nut-tim-duong {
  margin: 0;
  height: 48px;
  padding: 0 14px;
}

.khung-tim-duong--mo .ket-qua-tim-duong:not(:empty) {
  margin-top: 12px;
}

.khung-tim-duong--mo .ket-qua-tim-duong {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.khung-tim-duong--mo .the-tuyen,
.khung-tim-duong--mo .ket-qua__nut {
  margin: 0;
}

.khung-tim-duong--mo .ket-qua__nut {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
}

.khung-tim-duong--mo .ket-qua__nut button {
  flex: 1 1 0;
  justify-content: center;
  height: 42px;
  padding: 0 8px;
  white-space: nowrap;
}

.khung-tim-duong--mo .ket-qua__ghi-chu,
.khung-tim-duong--mo .ket-qua__loi {
  margin: 0;
}

.khung-tim-duong--mo .ket-qua__nut button {
  min-width: 0;
}

@media (max-width: 760px) {
  .khung-tim-duong--mo .ket-qua__nut button {
    font-size: 12.5px;
    gap: 4px;
    padding: 0 4px;
  }
}

.khung-tim-duong--mo .ket-qua__nut .nut-chinh {
  border: 1px solid var(--mau-den); /* viền dày bằng 2 nút bên cạnh thì 3 nút mới rộng đúng bằng nhau */
}

/* --- Dòng hướng dẫn "Chạm vào bản đồ..." trên nút Tìm đường --- */
.huong-dan-chon {
  margin: 0;
  text-align: center;
  font-size: 13px;
  color: var(--mau-chu-phu);
}

/* --- Cảnh thời tiết chìm ở góc phải thanh trên --- */
/* tranh SVG do canh-thoi-tiet.js vẽ, nằm dưới các nút (z-index âm), mờ dần sang trái.
   màu trời đổi theo data-canh và theo chủ đề */
.canh-thoi-tiet {
  --troi-1: #CFE5FB;
  --troi-2: #EAF3FD;
  --may: #FFFFFF;
  --may-vien: #C9DDF2;
  --may-dam: #A9BCD3;
  --mua: #5C9AE0;
  --mat-troi: #FFC845;
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(520px, 52%);
  z-index: -1; /* trên nền thanh trên nhưng dưới chữ và nút */
  overflow: hidden;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(200deg, var(--troi-1), var(--troi-2) 75%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.6) 30%, #000 65%);
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.6) 30%, #000 65%);
  opacity: 0;
  transition: opacity 0.6s ease;
}
.canh-thoi-tiet[data-canh] {
  opacity: 1;
}
.canh-thoi-tiet svg {
  display: block;
  width: 100%;
  height: 100%;
}

.canh-thoi-tiet[data-canh="nang"] {
  --troi-1: #BFE0FF;
  --troi-2: #EAF5FF;
}
.canh-thoi-tiet[data-canh="nhieu-may"] {
  --troi-1: #D3E1EF;
  --troi-2: #EEF3F8;
}
.canh-thoi-tiet[data-canh="mua-nho"] {
  --troi-1: #C9D8E8;
  --troi-2: #EAF0F6;
}
.canh-thoi-tiet[data-canh="mua-vua"] {
  --troi-1: #B5C6DA;
  --troi-2: #E2E9F1;
  --may-dam: #93A7C0;
}
.canh-thoi-tiet[data-canh="mua-to"] {
  --troi-1: #8FA3BD;
  --troi-2: #D6DEE8;
  --may-dam: #73879F;
  --mua: #3F78C0;
}
.canh-thoi-tiet[data-canh="dem"] {
  --troi-1: #3A5283;
  --troi-2: #C7D3E8;
  --may: #DDE5F2;
  --may-vien: #AFC0DA;
}

:root[data-chu-de="toi"] .canh-thoi-tiet {
  --troi-1: #1E2C44;
  --troi-2: #1B1B1D;
  --may: #3A4A63;
  --may-vien: #4B5D7A;
  --may-dam: #2C394D;
  --mua: #6FA6EC;
}
:root[data-chu-de="toi"] .canh-thoi-tiet[data-canh] {
  opacity: 0.85;
}
:root[data-chu-de="toi"] .canh-thoi-tiet[data-canh="nang"] {
  --troi-1: #24364F;
}

:root[data-chu-de="trang"] .canh-thoi-tiet[data-canh="nang"] {
  --troi-1: #DCE8F5;
  --troi-2: #F3F6FA;
}

.canh__may {
  fill: var(--may);
  stroke: var(--may-vien);
  stroke-width: 1.2;
}
.canh__may-dam {
  fill: var(--may-dam);
}
.canh__mat-troi {
  fill: var(--mat-troi);
}
.canh__tia {
  stroke: var(--mat-troi);
  stroke-width: 3;
  stroke-linecap: round;
  animation: canh-xoay 24s linear infinite;
}
.canh__mat-trang {
  fill: #FFF3C4;
}
.canh__sao {
  fill: #FFFFFF;
  animation: canh-lap-lanh 3s ease-in-out infinite;
}
.canh__mua {
  stroke: var(--mua);
  stroke-width: 2;
  stroke-linecap: round;
  opacity: 0.7;
  animation: canh-mua-roi 0.9s linear infinite;
}
.canh__mua--nho {
  stroke-width: 1.5;
  opacity: 0.55;
  animation-duration: 1.3s;
}
.canh__mua--to {
  stroke-width: 2.4;
  opacity: 0.8;
  animation-duration: 0.6s;
}
.canh__set {
  fill: #FFD84A;
  opacity: 0;
  animation: canh-set 5s ease-in-out infinite;
}
.canh__troi--cham {
  animation: canh-may-troi 9s ease-in-out infinite alternate;
}
.canh__troi--nhanh {
  animation: canh-may-troi 6s ease-in-out infinite alternate-reverse;
}

@keyframes canh-xoay {
  to { transform: rotate(360deg); }
}
@keyframes canh-lap-lanh {
  0%, 100% { opacity: 0.3; }
  50%      { opacity: 1; }
}
@keyframes canh-mua-roi {
  from { transform: translate(0, 0); }
  to   { transform: translate(-5px, 80px); }
}
@keyframes canh-set {
  0%, 86%, 100% { opacity: 0; }
  88%, 92%      { opacity: 1; }
  90%           { opacity: 0.2; }
}
@keyframes canh-may-troi {
  from { transform: translateX(0); }
  to   { transform: translateX(-10px); }
}

@media (prefers-reduced-motion: reduce) {
  .canh-thoi-tiet * {
    animation: none !important;
  }
}

.thanh-tieu-de .o-thoi-tiet,
.thanh-tieu-de .nut-chia-se {
  background: color-mix(in srgb, var(--nen-khung) 50%, transparent);
}
/* làm mờ nền tốn sức khi bản đồ chạy bên dưới, chỉ dùng trên máy tính */
@media (min-width: 761px) {
  .thanh-tieu-de .o-thoi-tiet,
  .thanh-tieu-de .nut-chia-se {
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
  }
}

/* điện thoại: thẻ trên hẹp nên tranh rộng hơn, mờ sớm hơn cho khỏi đè tên dự án */
@media (max-width: 760px) {
  .canh-thoi-tiet {
    bottom: auto;
    height: 64px;
    width: 62%;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.5) 40%, #000 80%);
    mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.5) 40%, #000 80%);
  }
}

/* --- Thương hiệu: vịt không khung, tên "Đắm Đuối" giống màn chào --- */
.thuong-hieu__logo,
:root[data-chu-de] .thuong-hieu__logo {
  width: auto;
  height: auto;
  background: none;
  box-shadow: none;
  border-radius: 0;
  overflow: visible;
}
.thuong-hieu__logo img {
  width: 52px;
  height: 52px;
}
.thuong-hieu {
  gap: 8px;
}
.thuong-hieu h1,
.thuong-hieu-gon b {
  font-family: "Mali Man Chao", "Comic Sans MS", var(--font-sans);
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #3D86D4;
  filter: url(#but-sap-nho);
}
.thuong-hieu h1 {
  font-size: 25px;
  line-height: 1.15;
}
:root[data-chu-de="toi"] .thuong-hieu h1,
:root[data-chu-de="toi"] .thuong-hieu-gon b {
  color: #7DB8F5;
}
@media (max-width: 760px) {
  .thuong-hieu-gon .thuong-hieu__logo img {
    width: 40px;
    height: 40px;
  }
  .thuong-hieu-gon b {
    font-size: 21px;
    white-space: nowrap;
  }
  .thuong-hieu-gon {
    gap: 6px;
  }
}

.bieu-tuong-vit,
.bieu-tuong-anh {
  width: 1.3em;
  height: 1.3em;
  object-fit: contain;
  vertical-align: -0.32em;
}

.vit-vi-tri {
  background: none;
  border: none;
}
.vit-vi-tri img {
  position: relative;
  display: block;
  width: 44px;
  height: 44px;
  filter: drop-shadow(0 2px 3px rgba(20, 40, 74, 0.35));
  animation: vit-dung-yen 2.4s ease-in-out infinite;
  transform-origin: 50% 90%;
}
.vit-vi-tri__bong {
  position: absolute;
  left: 50%;
  top: 36px;
  width: 26px;
  height: 8px;
  margin-left: -13px;
  border-radius: 50%;
  background: rgba(61, 134, 212, 0.45);
  box-shadow: 0 0 0 4px rgba(61, 134, 212, 0.15);
}
@keyframes vit-dung-yen {
  0%, 100% { transform: rotate(-3deg); }
  50%      { transform: rotate(3deg); }
}
@media (prefers-reduced-motion: reduce) {
  .vit-vi-tri img {
    animation: none;
  }
}

/* --- Góc trú mưa: dòng cách chơi, cỡ lớn hơn trên điện thoại --- */
.tc-dau h2 .bieu-tuong-vit {
  width: 1.5em;
  height: 1.5em;
  vertical-align: -0.42em;
}
.tc-huong-dan {
  margin: 0 0 8px;
  font-size: 12.5px;
  line-height: 1.4;
  color: var(--mau-chu-phu);
  text-align: center;
}

@media (max-width: 760px) {
  .khung-tro-choi {
    align-items: flex-end;
    padding: 0;
  }
  .tc-hop {
    max-width: none;
    max-height: 92dvh;
    border-radius: 22px 22px 0 0;
    padding: 18px 16px calc(18px + env(safe-area-inset-bottom));
  }
  .tc-dau h2 {
    font-size: 21px;
  }
  .tc-nut-dong {
    width: 44px;
    height: 44px;
    font-size: 18px;
  }
  .tc-loi-dan {
    font-size: 13.5px;
    margin: 8px 0 14px;
  }
  .tc-danh-sach {
    gap: 10px;
  }
  .tc-the {
    min-height: 78px;
    padding: 14px;
    gap: 14px;
    border-radius: 16px;
  }
  .tc-the__bieu-tuong {
    font-size: 40px;
  }
  .tc-the__chu b {
    font-size: 16.5px;
  }
  .tc-the__chu small {
    font-size: 13.5px;
  }
  .tc-the__choi {
    display: inline-flex;
    align-items: center;
    height: 44px;
    padding: 0 18px;
    font-size: 15px;
  }
  .tc-bang-khung h3 {
    margin-top: 18px;
    font-size: 16.5px;
  }
  .tc-tab-bang {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }
  .tc-tab-bang button {
    min-height: 42px;
    padding: 0 2px;
    font-size: 12px;
    letter-spacing: -0.3px;
    white-space: nowrap;
  }
  .tc-bang li {
    padding: 12px 4px;
    font-size: 15.5px;
  }
  .tc-nut-chinh,
  .tc-nut-nho {
    min-height: 46px;
    font-size: 15px;
  }
  .tc-form-luu input {
    min-height: 46px;
    font-size: 16px; /* 16px để iPhone không tự phóng to khi gõ */
  }
  .tc-huong-dan {
    font-size: 13.5px;
  }
}

/* --- Góc trú mưa: chơi toàn màn hình trên điện thoại, chữ to hơn trên máy tính --- */
@media (max-width: 760px) {
  .khung-tro-choi--dang-choi .tc-hop {
    display: flex;
    flex-direction: column;
    height: 100dvh;
    max-height: none;
    border-radius: 0;
    padding: max(10px, env(safe-area-inset-top)) 12px max(10px, env(safe-area-inset-bottom));
    overflow: hidden;
  }
  .khung-tro-choi--dang-choi .tc-dau h2 {
    font-size: 18px;
  }
  .khung-tro-choi--dang-choi #tc-choi {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
  }
  .khung-tro-choi--dang-choi .tc-thanh-diem {
    margin: 6px 0;
    font-size: 16px;
  }
  .khung-tro-choi--dang-choi .tc-diem {
    font-size: 20px;
  }
  .khung-tro-choi--dang-choi .tc-huong-dan {
    font-size: 14.5px;
    margin-bottom: 8px;
  }
  .khung-tro-choi--dang-choi .tc-san {
    flex: 1;
    min-height: 0;
    container-type: size;
    display: grid;
    place-items: center;
  }
  .khung-tro-choi--dang-choi .tc-vung-ve {
    /* kích thước thật do datKichThuocSan trong tro-choi.js đặt */
    width: min(100cqw, 75cqh);
    aspect-ratio: auto;
    margin: 0;
  }
}

@media (min-width: 761px) {
  .tc-hop {
    max-width: 460px;
  }
  .tc-dau h2 {
    font-size: 22px;
  }
  .tc-loi-dan {
    font-size: 14px;
  }
  .tc-the__chu b {
    font-size: 16px;
  }
  .tc-the__chu small {
    font-size: 13.5px;
  }
  .tc-the__choi {
    font-size: 14px;
    padding: 7px 14px;
  }
  .tc-bang-khung h3 {
    font-size: 16.5px;
  }
  .tc-bang-khung h3 small {
    font-size: 13px;
  }
  .tc-tab-bang button {
    font-size: 13.5px;
    padding: 6px 12px;
  }
  .tc-bang li {
    font-size: 15px;
  }
  .tc-thanh-diem {
    font-size: 15.5px;
  }
  .tc-diem {
    font-size: 18px;
  }
  .tc-huong-dan {
    font-size: 14px;
  }
  .tc-kq-nhan {
    font-size: 14.5px;
  }
}

/* --- Thanh bên máy tính: chữ to hơn --- */
@media (min-width: 761px) {
  .thuong-hieu .thanh-tieu-de__khau-hieu {
    font-size: 12.5px;
  }
  .o-chuc-nang {
    font-size: 14.5px;
  }
  .thanh-ben__tieu-de {
    font-size: 16px;
  }
  .thanh-du-bao__noi {
    font-size: 12px;
  }
  .thanh-du-bao__tom-tat {
    font-size: 13.5px;
  }
  .o-gio__gio {
    font-size: 13px;
  }
  .o-gio__bieu-tuong {
    font-size: 19px;
  }
  .o-gio__loai {
    font-size: 12px;
  }
  .chu-thich__chu b {
    font-size: 14.5px;
  }
  .chu-thich__chu small {
    font-size: 12.5px;
  }
  #khung-chu-thich .chu-thich__nut-vi-tri {
    font-size: 13.5px;
  }
  .chu-thich__mau span {
    font-size: 12.5px;
  }
  .chon-kieu-ban-do button {
    font-size: 12.5px;
  }
}

/* --- Báo ngập theo đoạn: ghim A (đầu đoạn) và B (cuối đoạn) khi đang chọn --- */
.ghim-doan-ngap {
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #1e88e5;
  color: #fff;
  font: 700 13px/1 var(--font-sans);
  border: 2px solid #fff;
  box-shadow: 0 2px 6px rgba(20, 40, 74, 0.35);
}
/* điện thoại: biểu mẫu báo ngập phải nằm trên thanh chức năng ở đáy để không che ô ghi chú và nút Gửi */
@media (max-width: 760px) {
  .khung-bao-cao {
    z-index: 2000;
    border-radius: 22px 22px 0 0;
  }
}

/* --- Điện thoại: tóm tắt tuyến, ô địa chỉ gọn, nút dễ chạm --- */

.tom-tat-tuyen {
  display: none;
}
@media (max-width: 760px) {
  .khung-tim-duong--da-tim .tom-tat-tuyen {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-height: 48px;
    padding: 0 14px;
    border: 1px solid var(--mau-vien-2);
    border-radius: 14px;
    background: var(--nen-chim);
    color: var(--mau-chu);
    font: 600 15px/1.3 var(--font-sans);
    text-align: left;
    cursor: pointer;
  }
  .tom-tat-tuyen__chu {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
  }
  .tom-tat-tuyen__mui-ten {
    margin: 0 6px;
    color: var(--mau-chu-phu);
  }
  .tom-tat-tuyen__sua {
    flex: none;
    color: var(--mau-xanh-tao);
    font-size: 14px;
  }
  .khung-tim-duong--da-tim .cac-o-dia-chi,
  .khung-tim-duong--da-tim .chon-che-do,
  .khung-tim-duong--da-tim .nut-tim-duong,
  .khung-tim-duong--da-tim .huong-dan-chon,
  .khung-tim-duong--da-tim .ket-qua__dia-chi {
    display: none !important;
  }

  .khung-tim-duong--mo .o-dia-chi input {
    font-family: var(--font-sans);
  }
  .khung-tim-duong--mo .cac-o-dia-chi {
    padding-right: 46px;
  }
  .khung-tim-duong--mo .o-dia-chi {
    grid-template-columns: 26px minmax(0, 1fr) 38px 38px;
    gap: 6px;
  }
  .khung-tim-duong--mo .o-dia-chi .nut-bieu-tuong,
  .khung-tim-duong--mo .nut-dao-chieu {
    width: 38px;
    height: 38px;
  }
  .khung-tim-duong--mo .o-dia-chi__khung,
  .khung-tim-duong--mo .chon-che-do__khung {
    padding: 6px 12px;
  }
  .khung-tim-duong--mo .o-dia-chi__tieu-de {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  
  /* mặt trời, mặt trăng của cảnh thời tiết bị kẹt giữa ô thời tiết và nút chia sẻ nên giấu đi */
  .canh__mat-troi,
  .canh__tia,
  .canh__mat-trang {
    display: none;
  }
}

/* máy rất nhỏ, tới 360px: bỏ nút vị trí của tôi vì để trống ô điểm đi là dùng vị trí rồi; các phần khác thu nhỏ cho khỏi đè nhau */
@media (max-width: 360px) {
  .khung-tim-duong--mo #nut-vi-tri-di {
    display: none;
  }
  .khung-tim-duong--mo #nut-chon-di {
    grid-column: 4;
  }
  .thanh-tieu-de .o-thoi-tiet__chu {
    display: none;
  }
  .thuong-hieu-gon b {
    font-size: 19px !important;
  }
  .thanh-ben .o-chuc-nang {
    font-size: 11px;
    letter-spacing: -0.3px;
  }
}

.chon-kieu-ban-do button {
  min-height: 36px;
}
@media (max-width: 760px) {
  .chon-kieu-ban-do button {
    min-height: 40px;
  }
}
#nut-dong-chia-se {
  width: 36px;
  height: 36px;
  font-size: 16px;
}
.leaflet-container a.leaflet-popup-close-button {
  width: 36px;
  height: 36px;
  font: 22px/36px var(--font-sans);
  top: 2px;
  right: 2px;
}
@media (max-width: 760px) {
  .thanh-ben__tay-cam {
    height: 30px;
    padding: 0 !important;
  }
}
.khung-tim-duong--mo #nut-dong-tim-duong {
  width: 36px;
  height: 36px;
}
@media (max-height: 500px) {
  .tc-huong-dan,
  .tc-loi-dan {
    display: none;
  }
  .tc-hop {
    padding-top: 8px;
    padding-bottom: 8px;
  }
  .tc-dau h2 {
    font-size: 17px;
  }
  .tc-thanh-diem {
    margin: 4px 0;
  }
}
.leaflet-popup-content {
  margin-right: 38px;
}

/* --- Bàn phím và cửa sổ máy tính hẹp --- */

.khung-tim-duong--mo .o-dia-chi__khung:focus-within,
.khung-tim-duong--mo .chon-che-do__khung:focus-within {
  box-shadow: 0 0 0 2px var(--mau-xanh-tao);
}
.khung-bao-cao textarea:focus-visible,
.tc-form-luu input:focus-visible {
  outline: 2px solid var(--mau-xanh-tao);
  outline-offset: 1px;
}

/* máy tính 761 đến 1100px: thanh trên không đủ chỗ nên ô tìm co giãn, hẹp quá thì ẩn đồng hồ */
@media (min-width: 761px) and (max-width: 1100px) {
  .thanh-tieu-de {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }
}
@media (min-width: 761px) and (max-width: 1000px) {
  .thanh-tieu-de > .dong-ho {
    display: none;
  }
  .thanh-tieu-de > .thanh-tren {
    grid-column: 1 / 3;
  }
}
/* khung tìm đường mở luôn nằm trên ô thời tiết và nút chia sẻ, để nút đóng không bị che */
.thanh-tren:has(.khung-tim-duong--mo) {
  position: relative;
  z-index: 5;
}
/* ô tìm đường thu gọn: các ô đang ẩn không nhận Tab */
.khung-tim-duong:not(.khung-tim-duong--mo) :is(#o-nhap-di, #chon-che-do-ne, #nut-vi-tri-di, #nut-chon-di, #nut-dao-chieu, #nut-bat-dau-tim) {
  visibility: hidden;
}
@media (min-width: 761px) and (max-width: 1100px) {
  .khung-tim-duong--mo {
    min-width: min(440px, calc(100vw - 340px));
  }
}
.dang-dan-duong .vit-vi-tri {
  display: none;
}
@media (min-width: 761px) {
  .khung-tim-duong--mo {
    padding-bottom: 16px;
  }
}
.khung-tim-duong--mo {
  padding-bottom: 20px;
}

/* --- Nhóm khảo sát --- */

.thanh-khao-sat {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 1000;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  max-width: calc(100% - 24px);
  padding: 6px 6px 6px 12px;
  border: 1px solid var(--mau-vien);
  border-radius: 12px;
  background: var(--nen-khung);
  color: var(--mau-chu);
  box-shadow: var(--bong-tao);
  font-size: 14px;
}
.dang-chon-vi-tri .thanh-khao-sat {
  display: none;
}
.thanh-khao-sat__ten {
  font-weight: 700;
  margin-right: 4px;
}
.thanh-khao-sat__vai-tro {
  padding: 1px 6px;
  border-radius: 6px;
  background: var(--chip);
  color: var(--mau-chu-2);
  font-size: 11px;
  font-weight: 600;
}
.thanh-khao-sat__nut {
  min-height: 34px;
  padding: 6px 10px;
  border: 1px solid var(--mau-vien-2);
  border-radius: 9px;
  background: var(--nen-chim);
  color: var(--mau-chu);
  font-size: 14px;
  cursor: pointer;
}
.thanh-khao-sat__nut--chinh {
  border-color: var(--mau-den);
  background: var(--mau-den);
  color: var(--chu-tren-den);
  font-weight: 700;
}
.thanh-khao-sat__nut b {
  display: inline-block;
  min-width: 18px;
  margin-left: 2px;
  padding: 0 5px;
  border-radius: 9px;
  background: #f08c00;
  color: white;
  font-size: 12px;
  line-height: 18px;
  text-align: center;
}

/* ô nhập trong khung đăng nhập và biểu mẫu khảo sát, 16px để iPhone khỏi tự phóng to */
.o-nhap-ks {
  width: 100%;
  box-sizing: border-box;
  margin-bottom: 10px;
  padding: 9px 10px;
  border: 1px solid var(--mau-vien-2);
  border-radius: 8px;
  background: var(--nen-chim);
  color: var(--mau-chu);
  font: inherit;
  font-size: 16px;
}
.khung-dang-nhap .khung-chia-se__hop {
  max-width: 360px;
}

.chon-loai-mua {
  grid-template-columns: repeat(3, 1fr);
}
.o-trieu-cuong {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  margin-bottom: 8px;
  font-size: 14px;
  cursor: pointer;
}
.o-trieu-cuong input {
  width: 18px;
  height: 18px;
}
.o-anh-ks {
  display: none;
}
.nut-chon-anh {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  margin-bottom: 6px;
  padding: 8px 12px;
  border: 1px dashed var(--mau-vien-2);
  border-radius: 9px;
  background: var(--nen-chim);
  color: var(--mau-chu-2);
  font-size: 14px;
  cursor: pointer;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.nut-chon-anh--co-anh {
  border-style: solid;
  border-color: var(--mau-den);
  color: var(--mau-chu);
}
.ks-canh-bao {
  margin: 6px 0 0;
  padding: 8px 10px;
  border-radius: 8px;
  background: #fff4e0;
  color: #8a4b00;
  font-size: 13px;
}
.khung-khao-sat textarea {
  font-size: 16px;
}

.khung-diem__nhan--cho i {
  background: #f08c00;
}
.khung-diem__dong--phu {
  color: var(--mau-chu-phu);
  font-size: 12px;
}
.nut-go-doan,
.nut-luu-khao-sat {
  display: block;
  width: 100%;
  margin-top: 8px;
}

.khung-duyet {
  max-height: 70dvh;
}
.ds-cho-duyet {
  margin: 0;
  padding: 0;
  list-style: none;
}
.ds-cho-duyet__dong {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 0;
  border-top: 1px solid var(--mau-vien);
}
.ds-cho-duyet__chu {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.ds-cho-duyet__chu small {
  color: var(--mau-chu-phu);
}
.ds-cho-duyet__nut {
  display: flex;
  gap: 6px;
}
.ds-cho-duyet__nut .nut-nho {
  min-height: 36px;
}
.ds-cho-duyet__trong {
  padding: 12px 0;
  color: var(--mau-chu-phu);
}

@media (max-width: 760px) {
  .thanh-khao-sat {
    top: calc(132px + env(safe-area-inset-top));
    left: 10px;
    font-size: 13px;
  }
  .thanh-khao-sat {
    flex-wrap: nowrap;
    gap: 4px;
    padding-left: 10px;
  }
  .thanh-khao-sat__nut {
    padding: 6px 8px;
    font-size: 13px;
  }
  .thanh-khao-sat__vai-tro,
  .thanh-khao-sat__phu {
    display: none;
  }
  .dang-dan-duong .thanh-khao-sat {
    display: none;
  }
}
