/* map */
.mapFuncBox .btn-mapFuncClose {
    background-color: white;
    color: var(--main-blue);
    border: 0px solid white;

    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
}

.mapFuncBox .btn-mapFuncClose:hover {
    background-color: var(--main-lighter-blue);
    color: white;
}

.btn-mapFuncOpen {
    height: 50px;
    width: 50px;
    justify-content: center;
    display: flex;

    opacity: 0;
    pointer-events: none;

    position: absolute;
    top: 0;
    right: 0;
    margin: 1rem;
    z-index: 1000;
    transition: background-color 0.3s ease, color 0.3s ease, opacity .3s ease;

    border: 0 solid white;

    filter: drop-shadow(0 0 0.5rem rgba(0, 0, 0, 0.5));

    --bs-btn-color: #fff;
    --bs-btn-bg: var(--main-light-blue);

    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: var(--main-blue);

    --bs-btn-focus-shadow-rgb: 49, 132, 253;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: var(--main-blue);

    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
    --bs-btn-disabled-color: #fff;
    --bs-btn-disabled-bg: var(--main-darker-blue);

    background-color: var(--main-light-blue);
    color: white;
}

.btn-mapFuncOpen.active {
    opacity: 1;
    pointer-events: unset;
    transition: opacity .3s ease;

}

.btn-mapFuncOpen:hover {
    background-color: var(--main-blue);
    color: white;
}

.mapFuncBox {
    width: 30%;
    /* height: 95%; */
    max-height: 95%;
    overflow-y: hidden;
    position: absolute;
    right: -100%;
    top: 10px;
    /* transform: translate(0, -50%); */
    z-index: 1000;
    filter: drop-shadow(0 0 0.5rem rgba(0, 0, 0, 0.5));

    transition: all .3s ease;
}

@media (max-width: 1400px) {
    .mapFuncBox {
        width: 35%;
    }
}


@media (max-width: 992px) {
    .mapFuncBox {
        width: 40%;
    }
}


@media (max-width: 768px) {
    .mapFuncBox {
        width: 50%;
    }
}

@media (max-width: 576px) {
    .mapFuncBox {
        width: 70%;
    }
}

@media (max-width: 357px) {
    .mapFuncBox {
        width: 100%;
    }
}


.mapFuncBox.active {
    right: 10px;
}

#map-section .mapFuncBox .mapFuncBoxInner {
    background-color: #ffffff99;
    border-top-left-radius: 0 !important;

    overflow-y: auto;
}

.downIcons {
    background-color: #ffffff90;

}

#map .mapFuncBox .btn-homeMap {
    background-color: white;
}

#map .mapFuncBox .homeMapBtnBox {
  min-height: 110px; /* 預設值：小於 lg 時 */
}

@media (max-width: 992px) {
  #map .mapFuncBox .homeMapBtnBox {
    min-height: 90px; /* lg 以上時 */
  }
}

#map .mapFuncBox .btn-homeMap:hover,
#map .mapFuncBox .btn-homeMap.active,
#map .mapFuncBox .btn-homeMap.open {
    background-color: var(--main-lighter-blue);
    color: white;
}

.homeMapIcon {
    width: 4rem;
    margin: auto;
}

.homeMapDownIcon {
    width: 20px;
    margin: auto;
}

.characters.active {
    opacity: 1;
}

.characters {
    position: absolute;
    right: 0;
    bottom: 0;
    z-index: 1000;
    /* width: 30%;
  height: 30%; */
    display: flex;
    flex-direction: row;
    justify-content: end;
    opacity: 0;

    transition: all .3s ease;
}

.character {
    height: 160px;
}

.characters .btn-toggleCharacter {
    color: white;
    filter: drop-shadow(0 0 0.5rem rgba(0, 0, 0, 0.5));
    transition: all 0.3s ease;

    padding: 0 !important;
    width: 40px;
    height: 40px;
}

.btn-toggleCharacter.btn-mapFunc {
    opacity: 0;
    transition: opacity .3s ease, all .3s ease;
}

.btn-toggleCharacter.btn-mapFunc.visible {
    opacity: 1;
}

.btn-toggleCharacter.btn-mapFunc .map-icon-marker {
    width: 40px;
    height: 44px;
}

.hintBox {
    width: 80%;
    opacity: 0;
    transition: opacity .3s ease;

    position: absolute;
    top: 0%;
    left: 50%;
    transform: translate(-50%, 0%);
    z-index: 1001;

    filter: drop-shadow(0 0 0.5rem rgba(0, 0, 0, 0.5));
}

.hintBox.active {
    opacity: 1;
}

.hintBox span {
    background-color: #ffffff;
}

.weatherBox {
    position: absolute;
    bottom: 0;
    left: 50%;
    z-index: 1001;

    transform: translateX(-50%);
    width: 100%;
    height: 100%;

    filter: drop-shadow(0 0 0.5rem rgba(0, 0, 0, 0.5));
}

.weatherInner {
    /* background-color: var(--main-bg-blue); */
    background-color: white;
}

.weatherTitle img {
    width: 30px;
}

#simulation-downIcons .bi:before {
    background-color: var(--main-orange);
    color: white;
    padding: 0.4rem;
    border-radius: 6rem;
    font-size: 10px;
}

/* 海洋資訊 */
.lh-12 {
    line-height: 1.2
}

.lh-14 {
    line-height: 1.4
}

.seaInfoBox {
    height: 100%;
    width: 50%;
    overflow: hidden;
    cursor: auto;

    position: absolute;
    bottom: 0;
    right: 0;
    z-index: 1001;
    filter: drop-shadow(0 0 0.5rem rgba(0, 0, 0, 0.5));
}

.seaInfoBoxInner {
    background-color: white;
    height: 100%;
    overflow: hidden;
}

.seaInfoContent {
    overflow: auto;
}

.seaInfoBottomBtns {
    background-color: var(--gray);
}

.basic-coastal-weather {
    max-width: 24rem !important;
}

.seaInfoTitle {
    color: var(--main-blue);
}

.seaInfoTitleLocation {
    color: gray;
}

.seaInfoBox .risk-statement {
    color: var(--main-red);
    display: flex;
    justify-content: start;
}

.seaInfoBox .areaTitle {
    color: var(--main-light-blue);
}

.btn-outside-link {
    color: var(--main-blue) !important;
}

.btn-outside-link:hover {
    color: var(--main-darker-blue) !important;
}

/* .ipft-part-BasicSeaWeather{
    min-width: 390px;
} */
.Inp-Divs>.Inp-Div:nth-child(odd) {
    background-color: var(--light-gray);
}

.Inp-Div {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
}

.Inp-Title {
    flex-grow: 0;
    flex-shrink: 0;
    width: 6.5rem;
    padding: 0.25rem 0.25rem;
    text-align: right;
}

.Inp-Content {
    flex-grow: 1;
    flex-shrink: 1;
    width: 100%;
    padding: 0.25rem;

}

@media (max-width: 1400px) {
    .seaInfoBox {
        width: 50%;
    }
}


@media (max-width: 992px) {
    .seaInfoBox {
        width: 75%;
    }
}


@media (max-width: 768px) {
    .seaInfoBox {
        width: 100%;
    }
}

.weatherContent {
    overflow: auto;
}

.switch-box-label {
    margin-bottom: 0;
    align-items: center;
    justify-content: flex-start
}

.switch-box {
    display: inline-block;
    vertical-align: middle;
    width: 40px;
    height: 20px;
    border-radius: 100px;
    background-color: #ccc;
    box-shadow: 0 3px 0 rgba(0, 0, 0, .13) inset;
    text-align: initial
}

.switch-box .switch-btn {
    /* display: inline-block; */
    display: flex;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: #fff;
    margin-left: 0;
    transition: .5s;
    box-shadow: 1px 2px 5px rgba(0, 0, 0, .3)
}

.switch-ck {
    display: none
}

.switch-ck:checked+.switch-box {
    background-color: #41dcb9
}

.switch-ck:checked+.switch-box .switch-btn {
    margin-left: 20px
}

.limit-notice {
    color: var(--main-red);
}


.bi-snorkeling::before,
.layer-visible:checked+.bi-snorkeling::before,
.bi-snorkeling-white::before {
    content: '';
    display: inline-block;
    width: 1em;
    height: 1em;
    background-size: contain;
    background-image: url('../../../Images/bi-icons/snorkeling-main.webp')
}

.layer-classification-show .bi-snorkeling::before {
    background-image: url('../../../Images/bi-icons/snorkeling-blue.webp')
}

.is-selected>.bi-snorkeling::before,
.layer-classification-show .is-selected>.bi-snorkeling::before,
.bi-snorkeling-white::before,
.awesome-marker .bi-snorkeling::before {
    background-image: url('../../../Images/bi-icons/snorkeling-white.webp')
}

.bi-snorkeling.bi-595959::before,
.layer-visible:not(:checked)+.bi-snorkeling::before {
    background-image: url('../../../Images/bi-icons/snorkeling-595959.webp')
}

.preview-imgs {
    display: flex;
    align-items: stretch;
    justify-content: flex-start;
    width: 100%;
    margin-top: .5rem;
    overflow-x: auto;
}

/* CSS talk bubble */
.talk-bubble {
    display: inline-block;
    position: relative;
    width: 190px;
    height: auto;
    filter: drop-shadow(0 0 0.5rem rgba(0, 0, 0, 0.5));
}

@media screen and (max-width: 1200px) {
    .talk-bubble {
        width: 150px;
    }
}

@media screen and (max-width: 1200px) {
  .talk-bubble {
    width: 120px;
  }
}

/* Right triangle, right side slightly down*/
.tri-right.border.right-in:before {
    content: ' ';
    position: absolute;
    width: 0;
    height: 0;
    left: auto;
    right: -40px;
    top: 30px;
    bottom: auto;
    border: 20px solid;
    border-color: #666 transparent transparent #666;
}

.tri-right.right-in:after {
    content: ' ';
    position: absolute;
    width: 0;
    height: 0;
    left: auto;
    right: -20px;
    top: 38px;
    bottom: auto;
    border: 12px solid;
    border-color: rgba(255, 255, 255, 1) transparent transparent rgba(255, 255, 255, 1);
}

.tri-left.left-in:after {
  content: " ";
  position: absolute;
  width: 0;
  height: 0;
  left: -20px;
  right: auto;
  top: 20px;
  bottom: auto;
  border: 12px solid;
  border-color: rgba(255, 255, 255, 1) transparent transparent rgba(255, 255, 255, 1);
  transform: rotate(180deg);
}

/* talk bubble contents */
.talktext {
    text-align: left;
    line-height: 1.5em;
    background-color: rgba(255, 255, 255, 1);
}

/* remove webkit p margins */
.talktext p {
    line-height: 1;
    -webkit-margin-before: 0em;
    -webkit-margin-after: 0em;
}

.legend-icon-img{
    width: 60%;
    height: 60%;
}

/* datePicker*/
.ui-datepicker-title{
    display: flex;
}

.ui-datepicker-year,
.ui-datepicker-month {
  /* 套用 Bootstrap 的 form-control 樣式 */
  font-size: 1rem;
  line-height: 1.5;
  color: #212529;
  background-color: #fff;
  background-clip: padding-box;
  border: 1px solid #ced4da;
  border-radius: 0.375rem;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
  width: auto;
  height: auto;
}

.ui-datepicker select.ui-datepicker-year,
.ui-datepicker select.ui-datepicker-month {
  margin-left: 0.5rem;
}

/* 地圖右邊功能列表 */
.scroll-open-btn{
    margin: 1rem;

    padding: 0 !important;
    width: 55px;
    height: 55px;

    position: absolute;
    z-index: 1000;
    right: -15rem;

    transition: all 0.3s ease;
    filter: drop-shadow(0 0 0.5rem rgba(0, 0, 0, 0.5));
}

.scroll-open-btn.onShow{
    right: 0;
    transition: all 0.3s ease;
}

.scroll-wrapper {
    width: 15rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;

    position: absolute;
    z-index: 1000;
    right: -15rem;

    filter: drop-shadow(0 0 0.5rem rgba(0, 0, 0, 0.5));

    transition: all 0.3s ease;
}

.scroll-wrapper.active {
    right: 0;
}



.scroll-container {
    flex-grow: 1;
    flex-shrink: 1;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    scroll-behavior: smooth;
    transition: all .3s ease;
}

.scroll-container:hover{
    background-color: rgba(255, 255, 255, 0.5);
}

.scroll-inner{
    margin: 1rem;
    flex-grow: 1;
    flex-shrink: 1;
    overflow-y: auto;
    scroll-behavior: smooth;
    display: flex;
    flex-direction: column;
    gap: .5rem;
}

.scroll-container::-webkit-scrollbar,
.scroll-inner::-webkit-scrollbar {
    display: none;
}

@media (max-width: 992px) {
    .scroll-wrapper {
        width: 5rem;
        min-width: 60px;
        padding: .5rem 0;
    }

    .scroll-inner{
        margin: 0;
    }
}

.scroll-btn{
    padding: 1rem;
    border: 0 !important;
}

.scroll-btn:disabled {
    opacity: 0.3 !important;
    cursor: not-allowed;
}

.scroll-container .item-btn,
.scroll-container .item-btn-dropdown-btn,
#btn-chaoJingBiological{
    text-align: start !important;
    padding: .5rem;
    border: 0 !important;

    display: flex;
    flex-direction: row;
    gap: .3rem;

}


.scroll-container .item-btn .item-btn-icon,
.scroll-container .item-btn-dropdown-btn .item-btn-icon{
    width: 50px;
    height: 50px;
    margin-right: .5rem;
    color: white;
    border-radius: 20rem;

    font-size: 30px;
    line-height: 1.8;
    text-align: center;
}

.scroll-container .item-btn img,
.scroll-container .item-btn-dropdown-btn img{
    width: 50px;
    height: 50px;
    margin-right: .5rem;
    /* margin: 0 auto; */
    /* margin-bottom: .5rem; */
}

.scroll-container .item-btn span,
.scroll-container .item-btn-dropdown-btn span{
    margin: auto 0;
}

.bi-caret-up-fill {
  transition: transform 0.3s ease;
  transform: rotate(180deg);
}

@media (max-width: 992px) {
    .scroll-container .item-btn img,
    .scroll-container .item-btn-dropdown-btn img{
        margin: auto;
    }

}

.scroll-container .item-btn:hover,
.scroll-container .item-btn-dropdown-btn:hover,
.scroll-container .item-btn-dropdown-btn.open{
    background-color: white;

}

.scroll-container .item-btn-dropdown-btn.open{
    border-radius: .5rem .5rem 0 0;
}

.scroll-container .item-btn.active,
.scroll-container .item-btn.active:hover,
.scroll-container .item-btn-dropdown-btn.active,
.scroll-container .item-btn-dropdown-btn.active:hover,
#btn-chaoJingBiological.active,
#btn-chaoJingBiological.active:hover{
    background-color: var(--main-lighter-blue);
    color: white;
}

.item-btn-dropdown-box{
    display: flex;
    flex-direction: column;
    gap: .3rem;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 0 0 .5rem .5rem;

    padding: .5rem 1rem;
}


/* switch */
#map-section .btn-chaoJingBiologicalSwitch{
    height: 50px;
    width: 50px;
  /* margin: 1rem; */
  color: white !important;
  background-color: var(--gray);
}

#map-section .btn-chaoJingBiologicalSwitch.checked{
  /* margin: 1rem; */
  color: white !important;
}

#map-section .btn-chaoJingBiologicalSwitch.checked {
  background-color: var(--main-light-blue);
}

#btn-chaoJingBiological .map-icon-marker{
    width: 30px;
    height: 40px;
}

#btn-chaoJingBiological{
    text-align: start !important;
    padding: .5rem;
    border: 0 !important;

    display: flex;
    flex-direction: row;
    gap: .3rem;
}