:root,
[data-fit-theme="layerBox"] {
  --fit-layerbox-width: 340px;
  --fit-layerbox-width-xs: 300px;
}

/*圖層設定*/
.layerBox {
  display: block;
  z-index: 999;
  position: absolute;
  right: calc(var(--fit-layerbox-width) * -1);
  top: 0;
  width: var(--fit-layerbox-width);
  height: 100%;
  transition: all 0.3s;
}

.layerBox.open {
  right: 8px;
}
.hidelayerBox {
  position: absolute;
  right: 10px;
  top: 10px;
  width: 20px;
  height: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--fit-green);
}

.layerBoxScrollbar {
  width: 100%;
  height: 100%;
  padding: 10px;
  overflow-x: visible;
}

/*關閉圖層半圓按鈕*/
.map-toggle-btn {
  z-index: 0;
  position: absolute;
  top: 75px;
  left: -14px;
  transform: translate(-50%, -50%);
  width: 50px;
  height: 100px;
  background-color: #fff;
  border-radius: 50px 0 0 50px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.map-toggle-btn:hover,
.map-toggle-btn:focus {
  background-color: #f8f9fa;
  outline: 1px solid var(--ardswc246-blue);
}

.map-toggle-btn i {
  font-size: 1.5rem;
  color: #0d6efd; /* Bootstrap 藍 */
  transition: transform 0.3s ease;
}
.layerBox.open .map-toggle-btn i {
  transform: rotate(180deg);
}

@media (max-width: 767px) {
  .map-toggle-btn {
    top: 50%;
  }
}
@media (max-width: 576px) {
  .layerBox {
    right: calc(var(--fit-layerbox-width-xs) * -1);
    width: var(--fit-layerbox-width-xs);
  }
}

.layerBox .card {
  padding: 1rem;
  border: 0;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

/*右側資訊欄*/
/* LBS資訊 */
.lbs-alert-img {
  width: 50px;
  height: 50px;
}
.lbs-alert-location {
  color: var(--ardswc246-blue);
  font-size: 1.2rem;
  font-weight: bold;
}
.lbs-alert-location > div {
  font-size: inherit;
  line-height: 1;
}

.switch-btn-group {
  display: flex;
  gap: 0.5rem;
}
.switch-btn-group {
  display: flex;
  justify-content: center;
  gap: 0.25rem;
}
.switch-btn-group > a {
  width: 46px;
  height: 40px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.layer-switch-btn > a {
  height: 40px;
}

.switch-btn-group > a:hover {
  border: 1px solid var(--ardswc246-blue);
  background: rgba(var(--ardswc246-blue-light-rgb), 0.3);
}
.switch-btn-group a.active {
  border: 1px solid var(--ardswc246-blue);
  background: rgba(var(--ardswc246-blue-light-rgb), 0.3);
}
#descText {
  display: none; /* 初始隱藏 */
  transition: opacity 0.3s ease;
}
#descText.show {
  display: block;
  opacity: 1;
}
/* <!-- 1.土石流及大規模崩塌災害圖層選單 --> */
#debrisflow-descText {
  height: 50px;
}
/* <!--2.防災資訊 --> */
#evacuation-descText {
  height: 40px;
}
/* <!--3.氣象圖層套疊 --> */
#radio-descText {
  height: 40px;
}
/*警戒狀態排版*/
.status-item {
  line-height: 1;
  font-size: 1.6rem;
  font-weight: bold;
}
.status-item span {
  line-height: 1;
  font-size: 0.8rem;
  font-weight: bold;
}

.evacuation-form-check .form-check-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.evacuation-form-check .form-check-label img {
  width: 34px;
  height: 20px;
}
.evacuation-form-check .form-check-input {
  width: 1.2rem;
  height: 1.2rem;
}
.evacuation-form-check .form-check-input:checked {
  background-color: var(--ardswc246-blue);
  border-color: var(--ardswc246-blue);
}
.evacuation-form-check .form-check-input:focus {
  box-shadow: 0 0 0 0.25rem rgba(var(--ardswc246-blue-rgb), 0.25);
}

.radioArea {
  display: flex;
  gap: 1rem;
  padding: 10px 0;
  border-bottom: 1px solid rgba(var(--ardswc246-blue-rgb), 0.25);
}
.titleImg {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}
.radioBox {
  flex: 1;
}
.radioBox input[type="radio"],
.radioBox input[type="checkbox"] {
  display: none;
  border: 1px solid #ff0;
}
input[type="checkbox"],
input[type="radio"] {
  margin: 4px 0 0;
  margin-top: 1px\9;
  line-height: normal;
}
.radioBox label {
  width: 100%;
  cursor: pointer;
}
.radioBox input[type="radio"] + label > span:nth-child(1),
.radioBox input[type="checkbox"] + label > span:nth-child(1) {
  display: inline-block;
  width: 100%;
  padding: 0.2rem;
  text-align: center;
  background-color: rgba(149, 166, 204, 0.5);
  border-radius: 20px;
}
.radioBox input[type="radio"]:checked + label > span:nth-child(1),
.radioBox input[type="checkbox"]:checked + label > span:nth-child(1) {
  background-color: var(--ardswc246-blue);
  color: #fff;
}

.descText {
  line-height: 1.2;
  font-size: 1rem;
  color: var(--fit-red);
  margin-top: 0.5rem;
}
@media (max-width: 768px) {
  .status-item {
    font-size: 1.4rem;
  }
}
