@import "https://fonts.googleapis.com/css?family=Montserrat:300,400,500,600,700";

/* .modal-backdrop {
    display: none;
	z-index: -1
} */

.modal-backdrop.fade {
    z-index: 0;
}

.offcanvas-backdrop{
	display: none;
}

html,
body {
    height: 100%;
    padding: 0;
    margin: 0;
	width: 100%;
    font-family: 'Montserrat', sans-serif;
}

table {
    width: 100%;
}

table tr th {
    text-align: center; 
    vertical-align: middle;
    min-width: 10px;
    max-width: 40px;
}

table tr td {
    font-size: smaller;
    min-width: 95%;
    max-width: 95%;
}

/* predefined */

#main_screen {
	margin-top: 10px;
}

#map {
    height: 80.5vh;
/* 	height:1900px; */
	height: 100%;
    width: 100%;
	padding-left: 0;
}

#overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

#overlay-text {
    color: white;
    font-size: 18px;
    text-align: center;
}

#sidemenu {
    position: fixed;
    top: 50%;
    right: 0;
    z-index: 1000;
    transform: translateY(-50%);
    opacity: 0.8;
}

#sidebarBtn {
    position: fixed;
    top: 50%;
    left: 0;
    z-index: 1000;
    transform: translateY(-50%);
    opacity: 0.8;
}

#suggestion {
    max-height: 100px;
    /*height: auto;*/
    overflow-y: auto;
}


#searchbar {
    margin-top: 10px;
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-25%);
    z-index: 1000;
    opacity: 0.9;
    border-radius: 5px;
}

#loading {
    display: none;
    left: 0;
}

#radiusToast {
    position: fixed;
    z-index: 1000;
    bottom: 0;
    right: 0;
    margin-right: 10px;
    margin-bottom: 40px;
}

/* Carian Rangkaian */

.autocomplete-container {
    position: absolute;
    overflow-y: auto;
    border: 1px solid #ccc;
    background-color: white;
    z-index: 1;
    border-radius: 5px;
    max-height: 300px;
}

.autocomplete-result-google {
    border-radius: 0% !important;
    text-align: left;
    background-color: white !important;
    width: 700px !important;
    cursor: pointer;
    font-weight: 400 !important;
    color: #666666;
}

.autocomplete-result {
    border-radius: 0% !important;
    text-align: left;
    width: 700px !important;
    cursor: pointer;
    font-weight: 400 !important;
}

/* SIDE BAR CSS */

.wrapper {
    display: flex;
    width: 100%;
    align-items: stretch;
	height: 77vh;
/* 	height: 1900px; */
}

 #sidebarPoiCollapse {
	 position: relative;
	 z-index: 1000;
	 height: 40px;
	 min-width: 5px;
	 max-width: 450px;
	 box-shadow: rgba(0, 0, 0, 0.3) 0px 1px 4px -1px;
	 overflow: hidden;
	 top: 0px;
	 left: 0px;
	 transition: all 0.3s;
	 margin-top: 300px;
	 margin-left: 0px;
	 border-radius: 0% 20% 20% 0%; 
}

#sidebarPoi {
    font-size: Smaller;
    min-width: 400px;
    max-width: 400px;
    background: #fff;
    color: #fff;
    transition: all 0.3s;
    overflow-y: auto;

    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

#sidebarPoi.active {
    margin-left: -400px;
}

#content {
    width: 100%;
    /*min-height: 100vh;*/
    transition: all 0.3s;
}

#filter {
    position: fixed;
    top: 2%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    max-width: 400px;
    background: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    z-index: 1000;
    display: block;
    margin-top: 15vh;
}

/* Responsive styles */
@media (max-width: 768px) {
    #filter {
        width: 90%;
    }
}

@media only screen and (max-height: 1080px){
    #map{
        height: 81.1vh;
    }
    #sidebarPoi{
        height: 81.1vh;
    }
}

@media only screen and (max-height: 768px){
    #map{
        height: 71.8vh;
    }
    #sidebarPoi{
        height: 71.8vh;
    }
}

@media only screen and (max-height: 1080px) and (-webkit-min-device-pixel-ratio: 1.25){
    #map{
        height: 75.4vh;
    }
    #sidebarPoi{
        height: 75.4vh;
    }
}

@media only screen and (max-width: 980px){
    #map{
        height: 92vh !important;
    }
    #sidebarPoi{
        height: 92vh !important;
    }
	body{
		position: fixed;
	}
}

@media only screen and (max-width: 480px){
    #sidebarPoi{
        height: 92vh !important;
		min-width: 70%;
    }
}

/*@media only screen and (max-height: 768px) and (-webkit-min-device-pixel-ratio: 1.25){
    #map{
        height: 62.4vh;
    }
    #sidebarPoi{
        height: 62.4vh;
    }
}*/

.mapFullscreen {
    height: 100vh !important;
}

.bottomStickyMenuHidden {
    display: none;
}

#floatingButtonContainer {
    position: fixed;
    top: 12%;
    right: 10%;
    z-index: 1000;
}

#filterContainer {
    opacity: 1;
    position: relative;
    z-index: 1000; /* Ensure it's above other elements */
}

#popContainer {
    position: relative;
    z-index: 1000;
}

#rangkaianPakejPop {
    opacity: 1;
    position: fixed;
    top: 10%;
    left: 50%;
    transform: translate(-50%, -50%);
    /* width: 80%;
    max-width: 400px; */
    background: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    z-index: 1000;
    display: none; /* Hide by default */
    margin-top: 14vh;
}

#postalPop {
    opacity: 1;
    position: fixed;
    top: 10%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    max-width: 800px;
    background: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    z-index: 1000;
    display: none; /* Hide by default */
    margin-top: 20vh;
}

#rangkaianPakejPop.active {
    display: block;
}

#postalPop.active {
    display: block;
}

/* CSS */
#overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    z-index: 1005;
}

#overlay-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.spinner {
    border: 6px solid #f3f3f3;
    border-top: 6px solid #3498db;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

#offcanvasLeft {
	height: inherit;
	z-index: 5000;
	padding-top: 15vh;
	padding-bottom: 5vh;
}

/* Component in Main Card */

#displayInfoCard,
#displayMarkerCard,
#displayMarkersWithinRadiusCard {
    display: none;
}


/* Sub-components in Main Card */
/* ----->> Carian POI */
#poiSearchList { 
    overflow-y: auto;
    max-height: 40vh;
}

/* ----->> Radius POI */
#markersWithinRadiusList {
    overflow-y: auto;
    max-height: 40vh;
}

.modal-content {
	margin-top:130px;
}

.entry-content tr td {
	border-top: 0px;
}

.accordion-header {
	padding-bottom: 0;
	border-radius: inherit;
	color: white;
	background-color: #2f328d;
}

.accordion-button {
	color: white;
	background-color: #2f328d;
}

.accordion-button[aria-expanded="true"] {
	color: white;
	background-color: #2f328d;
}

.accordion-button[aria-expanded="false"] {
	color: white;
	background-color: #2f328d;
}

.link-primary:visited {
	color: purple;
}

.link-container {
	display: inline-block;
	padding: 10px 10px 10px 0px;
	background-color: #ffffff;
	text-decoration: none;
	color: #333;
	/*border: 1px solid #ccc;*/
	border-top: 1px dotted #333333;
	margin: 0;
	transition: background-color 0.3s;
}

.link-container.selected {
    background-color: #F7AC08;
    color: #0073C8;
}

.link-container:hover {
	background-color: #F3F3F3;
}

/* Change the background color on visited 
.link-container:visited {
	background-color: #c0c0c0;
	color: #000;
}*/

ul.pagination.justify-content-center {
    list-style-type: none !important;
	padding: 0 0 23px 0 !important;
	margin-top: 10px;
}
