﻿@charset "utf-8";
/*CSS Info ======================================================================
File Name: GIS.css
Editor: Rebecca
CreateDate:2025/12/31
Version: 1.0
---------------------------
【 Table of Contents 】
	DIV XHTML頁面
	Free Style
	使用jQuery
=================================================================================*/

/*===============================================================================
                         Default Style Setting
=================================================================================*/
#Map {
    display: block;
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
    left: 0;
    margin: auto;
    z-index: -1;
}

.goTop {
    display: none;
}

#Content {
    padding: 0;
    height: calc(var(--vh, 1vh) * 100 - 180px);
    position: relative;
    z-index: 1;
}

.mapArea {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    overflow: hidden;
    z-index: 0;
}

/*點位樣式*/


/*icon svg setting*/

/*.AQIpoint {
	width: 360px;
}*/

.pattern {
    height: 2rem;
    width: 2rem;
    border-radius: 50px;
    position: relative;
}

    .pattern::after {
        content: '';
        width: 100%;
        height: 100%;
        background-color: rgba(0,0,0,0.3);
        border: solid 3px rgba(0,0,0,0.3);
        position: absolute;
        top: -3px;
        left: -3px;
        border-radius: 50px;
        opacity: 0;
        transition: opacity 0.2s ease;
        pointer-events: none;
        z-index: 400;
    }


.aqi_level1 .pattern {
    background-color: var(--AQI-01-bg);
    border: solid 3px var(--AQI-01);
}

.aqi_level2 .pattern {
    background-color: var(--AQI-02-bg);
    border: solid 3px var(--AQI-02);
}

.aqi_level3 .pattern {
    background-color: var(--AQI-03-bg);
    border: solid 3px var(--AQI-03);
}

.aqi_level4 .pattern {
    background-color: var(--AQI-04-bg);
    border: solid 3px var(--AQI-04);
}

.aqi_level5 .pattern {
    background-color: var(--AQI-05-bg);
    border: solid 3px var(--AQI-05);
}

.aqi_level6 .pattern {
    background-color: var(--AQI-06-bg);
    border: solid 3px var(--AQI-06);
}

/*select狀態*/
.aqi_level1.AQIpoint.select .pattern {
    background-color: var(--AQI-01);
    border: solid 3px var(--AQI-01-bg);
    outline: 4px solid var(--AQI-01);
}

.aqi_level2.AQIpoint.select .pattern {
    background-color: var(--AQI-02);
    border: solid 3px var(--AQI-02-bg);
    outline: 4px solid var(--AQI-02);
}

.aqi_level3.AQIpoint.select .pattern {
    background-color: var(--AQI-03);
    border: solid 3px var(--AQI-03-bg);
    outline: 4px solid var(--AQI-03);
}

.aqi_level4.AQIpoint.select .pattern {
    background-color: var(--AQI-04);
    border: solid 3px var(--AQI-04-bg);
    outline: 4px solid var(--AQI-04);
}

.aqi_level5.AQIpoint.select .pattern {
    background-color: var(--AQI-05);
    border: solid 3px var(--AQI-05-bg);
    outline: 4px solid var(--AQI-05);
}

.aqi_level6.AQIpoint.select .pattern {
    background-color: var(--AQI-06);
    border: solid 3px var(--AQI-06-bg);
    outline: 4px solid var(--AQI-06);
}

.AQIpoint:hover .pattern::after {
    opacity: 0.2;
}
/*.AQIpoint.select .pattern {
	outline: 2px solid #ccc;
}*/



/*.AQIpoint:hover .infoCard.mapCard {
	display: block;
}*/

/*右邊點位資訊區塊*/
.myInfo {
    background: #fff;
    position: absolute;
    bottom: 0;
    right: 0;
    height: calc(var(--vh, 1vh) * 100 - 180px);
    width: 400px;
    z-index: 1;
    padding: 0.8rem 0;
    box-sizing: border-box;
    overflow: hidden;
    box-shadow: -2px 0px 4px rgba(0, 0, 0, 0.2);
    transition: 0.5s;
}

.cardArea {
    padding-top: 0;
    margin: .5rem 0 1.5rem 1rem;
}

    .cardArea .layerCheck {
        display: inline-block;
        align-content: flex-start;
        flex-wrap: wrap;
        align-items: center;
        width: 100%;
        margin-top: .5rem;
    }

        .cardArea .layerCheck input {
            margin: 0 0.5em;
        }


.layerSelect {
    margin-top: .5rem;
}

    .layerSelect label {
        display: inline-block;
        width: 5rem;
    }

.layerSelect select {
    width: 50%;
}

.cardContainer {
    background: #fff;
    height: calc(var(--vh, 1vh) * 100 - 133px);
    overflow-y: auto;
    padding: .75rem;
}

.cardArea .legendBox {
    margin: 0.5rem 0 0.5rem 2.5rem;
}

    .cardArea .legendBox img {
        height: 1rem;
        width: unset;
        text-align: left;
    }

.cardArea .layerBox:first-child .legendBox img {
    height: 1.5rem;
}

.schoolSelect {
    margin-bottom: 1rem;
}

.cardArea input[type=radio], .cardArea input[type=checkbox] {
    border: 1px solid #ccc;
    border-radius: 6px;
    width: 20px;
    height: 20px;
    position: relative;
    transition: all .3s ease-in-out;
}

    .cardArea input[type=checkbox]:hover, .cardArea input[type=checkbox]:checked {
        background: #60A63F;
        cursor: pointer;
        border: 1px solid #60A63F;
    }

.mapFuncTitle {
    font-size: 1.4rem;
    vertical-align: text-bottom;
    font-weight: bold;
    position: relative;
    padding: 0 0.75rem 0 0.75rem;
}

    .mapFuncTitle::before {
        content: "";
        display: inline-block;
        width: 1.3rem;
        height: 1.3rem;
        border-radius: 6px;
        background: #9CCC7B;
        margin-right: 0.5rem;
    }

.mapSubTitle {
    font-size: 1.2rem;
    padding: 0.5rem 0;
}

/*學校資訊卡片*/

.infoCard {
    border-radius: 10px;
    box-shadow: 0 3px 6px rgba(0, 0, 0, .2);
    padding: 1rem;
    box-sizing: border-box;
    border: 1px solid #60A63F;
    position: relative;
    background: #fff;
    z-index: 401;
    transition: all 0.3s ease-in-out;
    /*	display:none;*/
}

.cardHead {
    display: flex;
    margin-bottom: 0.5rem;
}

    .cardHead > div {
        height: 3.6rem;
        vertical-align: middle;
    }

    .cardHead img {
        height: 3.6rem;
        width: 3.6rem;
        margin-right: 0.5rem;
    }

    .cardHead .cardLaction {
        line-height: unset;
        font-size: 1rem;
        color: #666;
        margin-bottom: 0.3rem;
        font-weight: bold;
    }

    .cardHead .cardTitle {
        padding: 0;
    }


.cardContent ul {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.3rem;
}

    .cardContent ul li {
        border: 1px solid #ddd;
        padding: 0.5rem;
        border-radius: 4px;
    }

        .cardContent ul li span {
            display: block;
        }

.cardContent .dataName {
    display: block;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.AOI_Level {
    text-align: center;
    font-size: 1rem;
    color: #fff;
    padding: 0 0.5rem;
    box-sizing: border-box;
    font-weight: bold;
    border-radius: 4px;
}

.aqi_level1 .AOI_Level {
    background: var(--AQI-01);
}

.aqi_level2 .AOI_Level {
    background: var(--AQI-02);
}

.aqi_level3 .AOI_Level {
    background: var(--AQI-03);
}

.aqi_level4 .AOI_Level {
    background: var(--AQI-04);
}

.aqi_level5 .AOI_Level {
    background: var(--AQI-05);
}

.aqi_level6 .AOI_Level {
    background: var(--AQI-06);
}

.cardContent .Num {
    font-size: 2rem;
    font-weight: bold;
    text-align: center;
}

.cardContent .unit {
    font-size: 0.8rem;
    text-align: right;
}

.btnArea {
    text-align: right;
    margin-top: 0.5rem;
}

.btn {
    padding: 0.5rem 1rem;
    border-radius: 4px;
    background: #60A63F;
    color: #1f2e21;
    display: inline-block;
}

    .btn:hover {
        font-weight: bold;
    }

.infoCard.mapCard {
    /*	display: none;*/
    width: 360px;
    border-radius: unset;
    box-shadow: unset;
    padding: unset;
    border: unset;
}

    .infoCard.mapCard .cardHead > div {
        margin-top: -1rem;
    }

/*底圖切換*/
.mapChange .itemBar .item {
    display: block;
    text-align: center;
    padding: 1rem;
    margin: 0.5rem;
    border-radius: 4px;
    box-shadow: 0 3px 6px rgba(0, 0, 0, .2);
    /*	border: 2px solid #60A63F;
	border: 2px solid rgba(96,166,63,1);*/
    cursor: pointer;
    background: rgba(96,166,63,0.1);
}

    .mapChange .itemBar .item:hover, .mapChange .itemBar .item.select:hover {
        /*border: 2px solid #60A63F;*/
        background: rgba(96,166,63,0.5);
        color: unset;
        font-weight: bold;
    }

    .mapChange .itemBar .item.select {
        background: rgba(96,166,63,1);
        color: #1f2e21;
        /*	border: 2px solid rgba(96,166,63,0.3);*/
    }
	.mapChange .itemBar .item.select p {
		font-weight: bold;
	}

.mapChange input[type=radio] {
    opacity: 0;
    position: absolute;
    bottom: 0;
    z-index: -10;
}

.mapChange .itemBar input[type="radio"]:focus + label {
    outline: 2px dotted #60A63F;
}
.tiptxt {
    font-size: 1rem;
    margin: 0.5rem 0;
}



/*圖層套疊*/
/* legend icons */
.legend img {
    width: 26px;
    height: 26px;
    padding-left: .5rem
}

.legend .cardArea {
    height: 300px;
    overflow: auto;
}

.legendBar {
    display: flex;
}

p.square:before, span.square:after {
    width: 22px;
    height: 22px;
    top: 4px;
    left: 2px;
}

span.square:after {
    left: 100%;
}

p.rectangle:before, span.rectangle:after {
    width: 28px;
    height: 18px;
    top: 7px;
}

span.rectangle:after {
    left: 100%;
}

p.circle:before, span.circle:after {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    top: 2px;
}

span.circle:after {
    left: 100%;
}

p.triangle:before, span.triangle:after {
    width: 0;
    height: 0;
    background: none;
    border-left: 13px solid transparent;
    border-right: 13px solid transparent;
    border-bottom: 21px solid #fff;
    top: 5px;
}

span.triangle:after {
    left: 100%;
}

.feedback, .gotop {
    display: none;
}

.itemBar {
    margin-bottom: 0.5rem;
}

    .itemBar:last-child {
        margin-bottom: 0;
    }

.Card {
    background: #fff;
    position: absolute;
    bottom: 0;
    right: 0;
    height: calc(var(--vh, 1vh) * 100 - 70px);
    width: 400px;
    z-index: 99;
    padding: 0.8rem 0;
    box-sizing: border-box;
    overflow: hidden;
    box-shadow: -2px 0px 4px rgba(0, 0, 0, 0.2);
    transition: 0.5s;
}

.scrollArea {
    overflow: auto;
    padding: 0.5rem 1rem 1rem 1rem;
}

.infoBtn {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 1.5rem;
    width: 1.5rem;
    text-align: center;
    vertical-align: bottom;
    border-radius: 0.3rem;
    background: #A9CA97;
    color: #fff;
    margin-right: 0.5rem;
}

    .infoBtn i {
        margin-left: 0.2rem;
    }

    .infoBtn:hover {
        color: #fff;
        background: #88BE6B;
    }

.location {
    width: 84.5%;
}

    .location span {
        display: block;
        font-weight: bold;
        line-height: 1.5rem;
        font-size: 0.9rem;
        margin-right: 0.5rem;
    }

.collapseBtnArea {
    display: none;
}

    .collapseBtnArea .infoBtn:last-child {
        margin-right: 0;
    }


/*----------------- RWD -----------------*/
@media only screen and (min-width: 76.25em) and (max-width: 86.1875em) { /*1220~1379*/

}

@media only screen and (max-width:61em) {
    #Content {
        height: calc(var(--vh, 1vh) * 100 - 70px);
    }

    .myInfo.full {
        height: calc(var(--vh, 1vh) * 100 - 70px);
        border-radius: unset;
        box-shadow: unset;
    }

    .myInfo {
        height: calc(var(--vh, 1vh) * 60 - 70px);
        width: 100%;
        border-radius: 16px 16px 0px 0px;
        transition: height 0.3s ease; /* 平滑動畫 */
    }

        .myInfo.bottom {
            height: calc(var(--vh, 1vh) * 13.5 - 70px);
        }

        .myInfo.full .cardContainer {
            height: calc(var(--vh, 1vh) * 100 - 139px);
        }
        
        .cardContainer {
            height: calc(var(--vh, 1vh) * 60 - 139px);
        }

    .collapseBtnArea {
        display: flex;
        justify-content: right;
        padding: 0 1.55rem 0.5rem 1.55rem;
        /*	    position: absolute;
		top: 1.55rem;
		right: 1.55rem;
		z-index:10;*/
    }

    .myInfo.full #mobile_infoIcon {
        transform: rotate(180deg);
        margin: 0 0.3rem 0 0;
    }
}

@media only screen and (max-width: 47.9375em) {
    .myInfo {
        height: calc(var(--vh, 1vh) * 60 - 70px);
        width: 100%;
        border-radius: 16px 16px 0px 0px;
        transition: height 0.3s ease; /* 平滑動畫 */
    }

    .cardContainer {
        height: calc(var(--vh, 1vh) * 60 - 139px);
    }

    .collapseBtnArea {
        display: flex;
        justify-content: right;
        padding: 0 1.55rem 0.5rem 1.55rem;
        /*		position: absolute;
		top: 1.55rem;
		right: 1.55rem;
		z-index: 402;*/
    }
}

@media only screen and (max-width: 376px) {
    /*	.cardContainer {
		height: calc(var(--vh, 1vh) * 60 - 218px);
	}
*/
    .myInfo.bottom {
        height: calc(var(--vh, 1vh) * 17 - 70px);
    }
}
