@import url('https://fonts.googleapis.com/css2?family=Afacad:wght@400;500;600;700&display=swap');

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html,
body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    background: var(--body-bg);
    color: var(--text-dark);
    font-family: 'Afacad', 'ABeeZee', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    width: 240px;
    background: var(--sidebar-bg);
    display: flex;
    flex-direction: column;
}

.sidebar .logo {
    padding: 24px;
    color: var(--white);
    font-size: 32px;
    font-weight: 700;
    font-family: 'Poppins', sans-serif;
}

.sidebar .nav {
    padding: 8px 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.nav-link,
.logout-link, .newpost {
    display: flex;
    align-items: center;
    gap: 12px;
    height: 40px;
    padding: 0 16px;
    color: var(--white);
    text-decoration: none;
    border-radius: 28px;
    transition: background .18s;
    width: 100%;
    font-size: 18px;
}

.newpost {
    background-color: #0A0F65;
    border: none;
}

.logout-link {
    margin: 10px 16px;
}

.nav-link:hover, .newpost:hover {
    background: rgba(255, 255, 255, 0.1);
}

.nav-link.active {
    background: var(--accent-yellow);
    /* background: linear-gradient(90deg, #FDBB22 0%, #D63F04 100%); */
    color: var(--text-dark);
}

.sidebar .profile-mini {
    padding: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: auto;
}

.logout-link {
    display: flex;
    align-items: center;
    gap: 12px;
    height: 40px;
    padding: 0 16px;
    color: var(--white);
    text-decoration: none;
    border-radius: 28px;
    transition: background .18s;
    width: calc(100% - 32px);
    font-size: 18px;

    margin: 8px 16px;
}

.logout-link:hover {
    background: rgba(255, 255, 255, 0.1);
}

.profile-mini-inner {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px;
}

.profile-mini img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.profile-mini-name {
    color: var(--white);
    font-size: 15px;
    font-weight: 500;
}

.profile-mini-handle {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

.main {
    margin-left: 240px;
    width: calc(100vw - 255px);
    min-height: 100vh;
    position: relative;
    background: var(--body-bg);
    background-image: url(../img/profile-bg.png);
    background-repeat: no-repeat;
    background-position: bottom;
    background-size: contain;
}

.mb-1 {
    margin-top: -1rem;
}

#map {
    height: 100vh;
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
}

.search-map {
    position: absolute;
    top: 38px;
    left: 30px;
    background-color: var(--white);
    border: 2px solid rgba(10, 15, 101, 0.1);
    border-radius: 14px;
    width: 526px;
    height: 47px;
    display: flex;
    align-items: center;
    padding: 0 15px;
    z-index: 1;
    box-shadow: 0px 2px 2px 0px rgba(0, 0, 0, 0.25);
    padding-top: 1rem;
}

.search-map input {
    flex-grow: 1;
    border: none;
    background: transparent;
    font-family: 'Afacad', sans-serif;
    font-size: 20px;
    color: var(--text-dark);
    margin: 0 10px;
}

.search-map input:focus {
    outline: none;
}

.search-map-icon {
    width: 20px;
    height: 24px;
    flex-shrink: 0;
}

.search-map-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain !important;
}

.search-map-icon-cross {
    width: 18px;
    height: 18px;
}

/* search-icon */
.fa-solid, .fas {
    font-weight: 900;
    display: flex;
    padding: 1rem;
    position: absolute;
}

.map-post {
    position: absolute;
    top: 378px;
    left: 741px;
    width: 380px;
    min-height: 450px;
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.15);
    z-index: 1;
    padding: 16px;
    box-sizing: border-box;
    overflow: visible;
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
}

.map-post-image {
    width: 100%;
    height: 180px;
    border-radius: 15px;
    object-fit: cover;
    flex-shrink: 0;
}

.map-post-location {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--white);
    border-radius: 12px;
    padding: 8px 12px;
    margin-top: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
}

.map-post-location p {
    font-family: 'Afacad', sans-serif;
    font-size: 15px;
    color: var(--text-dark);
    margin: 0;
}

.map-post-location p:last-child {
    font-size: 14px;
    color: #258dc2;
}

.map-post-details {
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin-top: 12px;
    padding: 12px 0;
    border-top: 2px solid #d63f04;
    border-bottom: 2px solid #d63f04;
    flex-shrink: 0;
}

.map-post-detail {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
}

.map-post-detail img {
    width: 24px;
    height: 24px;
}

.map-post-detail p {
    font-family: 'Afacad', sans-serif;
    font-size: 14px;
    color: var(--text-dark);
    margin: 0;
}

.map-post-description {
    font-family: 'ABeeZee', sans-serif;
    font-size: 14px;
    color: var(--text-dark);
    margin-top: 12px;
    background-color: var(--white);
    padding: 12px;
    border-radius: 8px;
    line-height: 1.4;
    word-wrap: break-word;
    flex: 1;
    overflow-wrap: break-word;
}

.leaflet-control-zoom a {
    background-color: var(--sidebar-bg);
    color: var(--white);
    box-shadow: 0px 2px 2px 0px rgba(0, 0, 0, 0.25);
}

.nav-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-icon svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}


/* sub-map style */

#map_sub {
    display: block;
    width: 400px;
    height: 256px;
    margin: 0 0 0 2rem;
}

#map_sub {
    .ol-viewport {
        border-radius: 2rem;
        border: 5px solid white;
        margin: 1rem 1rem 1rem 0;
        box-shadow: 5px 2px 18px 0px #0000000d;
    }

    .ol-attribution {
        position: absolute;
        top: 13.8rem;
        right: 0.05rem;
        background-color: rgba(255, 255, 255, 0.683);
        padding: 0.2rem 1rem;
        border-radius: 0.5rem 0 0 0;
        text-align: right;
        font-size: 0.75rem;
    }
}

.map_location_name {
    display: grid;
    grid-template-columns: 1fr 1fr;
}


#mapdiv {
  #map-search-box {
    position: absolute;
    z-index: 1;
    padding: 1rem;
    width: 40%;
  }

  input#map-search {
    box-shadow: 1px 3px 13px #00000054;
    border: none;
    width: 100%;
    padding: 0.7rem 1rem;
    border-radius: 2rem;
    font-size: 1rem;
  }

  #suggestions {
    position: absolute;
    top: 65px;
    left: 15px;
    width: 532px!important;
    background: #fff;
    border: 1px solid #ccc;
    border-top: none;
    max-height: 200px;
    overflow-y: auto;
    list-style: none;
    padding: 0;
    margin: 0;
    display: none;
    z-index: 1000;
    box-shadow: 1px 3px 13px #00000054;
    border-radius: 1.5rem;
  }

  #suggestions li {
    padding: 8px 16px;
    cursor: pointer;
    transition: background 0.2s;
    font-size: 1rem;
  }

  #suggestions li:hover,
  #suggestions li.highlight {
    background-color: #f0f0f0;
  }

  mark {
    background-color: var(--body-bg);
    font-weight: 600;
    border-radius: 3px;
    padding: 0 2px;
  }

    /* Move scrollbar 6px to the left */
    #suggestions::-webkit-scrollbar {
        width: 8px;
        margin-left: -6px; /* shifts scrollbar left inside the container */
    }

    #suggestions::-webkit-scrollbar-thumb {
        background-color: rgba(0,0,0,0.2);
        border-radius: 4px;
    }

    #suggestions::-webkit-scrollbar-thumb:hover {
        background-color: rgba(0,0,0,0.4);
    }
}

/* animated bubbles  */
/* https://codepen.io/Mark_Bowley/pen/PozwyP */
 body {
	color: #333;
	height: 100vh;
	margin: 0;
	padding: 0;
	overflow-x: hidden;
}

#background-wrap {
    bottom: 0;
	left: 0;
	position: fixed;
	right: 0;
	top: 0;
	z-index: 1;
    width: 85%;
    margin-left: 20rem;
}

/* KEYFRAMES */

 @-webkit-keyframes animateBubble {
    0% {
        margin-top: 1000px;
    }
    100% {
        margin-top: -100%;
    }
}

@-moz-keyframes animateBubble {
    0% {
        margin-top: 1000px;
    }
    100% {
        margin-top: -100%;
    }
}

@keyframes animateBubble {
    0% {
        margin-top: 1000px;
    }
    100% {
        margin-top: -100%;
    }
}

@-webkit-keyframes sideWays { 
    0% { 
        margin-left:0px;
    }
    100% { 
        margin-left:50px;
    }
}

@-moz-keyframes sideWays { 
    0% { 
        margin-left:0px;
    }
    100% { 
        margin-left:50px;
    }
}

@keyframes sideWays { 
    0% { 
        margin-left:0px;
    }
    100% { 
        margin-left:50px;
    }
} */

/* ANIMATIONS */

.x1 {
    -webkit-animation: animateBubble 10s linear infinite, sideWays 2s ease-in-out infinite alternate;
	-moz-animation: animateBubble 10s linear infinite, sideWays 2s ease-in-out infinite alternate;
	animation: animateBubble 10s linear infinite, sideWays 2s ease-in-out infinite alternate;
	
	left: -5%;
	top: 5%;
	
	-webkit-transform: scale(0.3);
	-moz-transform: scale(0.3);
	transform: scale(0.3);
}

.x2 {
    -webkit-animation: animateBubble 12s linear infinite, sideWays 4s ease-in-out infinite alternate;
	-moz-animation: animateBubble 12s linear infinite, sideWays 4s ease-in-out infinite alternate;
	animation: animateBubble 12s linear infinite, sideWays 4s ease-in-out infinite alternate;
	
	left: 5%;
	top: 80%;
	
	-webkit-transform: scale(0.4);
	-moz-transform: scale(0.4);
	transform: scale(0.4);
}

.x3 {
    -webkit-animation: animateBubble 15s linear infinite, sideWays 2s ease-in-out infinite alternate;
	-moz-animation: animateBubble 15s linear infinite, sideWays 2s ease-in-out infinite alternate;
	animation: animateBubble 15s linear infinite, sideWays 2s ease-in-out infinite alternate;
	
	left: 10%;
	top: 40%;
	
	-webkit-transform: scale(0.3);
	-moz-transform: scale(0.3);
	transform: scale(0.3);
}

.x4 {
    -webkit-animation: animateBubble 15s linear infinite, sideWays 3s ease-in-out infinite alternate;
	-moz-animation: animateBubble 15s linear infinite, sideWays 3s ease-in-out infinite alternate;
	animation: animateBubble 15s linear infinite, sideWays 3s ease-in-out infinite alternate;
	
	left: 20%;
	top: 0;
	
	-webkit-transform: scale(0.3);
	-moz-transform: scale(0.3);
	transform: scale(0.3);
}

.x5 {
    -webkit-animation: animateBubble 20s linear infinite, sideWays 4s ease-in-out infinite alternate;
	-moz-animation: animateBubble 20s linear infinite, sideWays 4s ease-in-out infinite alternate;
	animation: animateBubble 20s linear infinite, sideWays 4s ease-in-out infinite alternate;
	
	left: 30%;
	top: 50%;
	
	-webkit-transform: scale(0.1);
	-moz-transform: scale(0.1);
	transform: scale(0.1);
}

.x6 {
    -webkit-animation: animateBubble 10s linear infinite, sideWays 2s ease-in-out infinite alternate;
	-moz-animation: animateBubble 10s linear infinite, sideWays 2s ease-in-out infinite alternate;
	animation: animateBubble 10s linear infinite, sideWays 2s ease-in-out infinite alternate;
	
	left: 50%;
	top: 0;
	
	-webkit-transform: scale(0.3);
	-moz-transform: scale(0.3);
	transform: scale(0.3);
}

.x7 {
    -webkit-animation: animateBubble 20s linear infinite, sideWays 2s ease-in-out infinite alternate;
	-moz-animation: animateBubble 20s linear infinite, sideWays 2s ease-in-out infinite alternate;
	animation: animateBubble 20s linear infinite, sideWays 2s ease-in-out infinite alternate;
	
	left: 65%;
	top: 70%;
	
	-webkit-transform: scale(0.4);
	-moz-transform: scale(0.4);
	transform: scale(0.4);
}

.x8 {
    -webkit-animation: animateBubble 15s linear infinite, sideWays 3s ease-in-out infinite alternate;
	-moz-animation: animateBubble 15s linear infinite, sideWays 3s ease-in-out infinite alternate;
	animation: animateBubble 15s linear infinite, sideWays 3s ease-in-out infinite alternate;
	
	left: 80%;
	top: 10%;
	
	-webkit-transform: scale(0.3);
	-moz-transform: scale(0.3);
	transform: scale(0.3);
}

.x9 {
    -webkit-animation: animateBubble 10s linear infinite, sideWays 4s ease-in-out infinite alternate;
	-moz-animation: animateBubble 10s linear infinite, sideWays 4s ease-in-out infinite alternate;
	animation: animateBubble 10s linear infinite, sideWays 4s ease-in-out infinite alternate;
	
	left: 90%;
	top: 50%;
	
	-webkit-transform: scale(0.2);
	-moz-transform: scale(0.2);
	transform: scale(0.2);
}

.x10 {
    -webkit-animation: animateBubble 26s linear infinite, sideWays 2s ease-in-out infinite alternate;
	-moz-animation: animateBubble 26s linear infinite, sideWays 2s ease-in-out infinite alternate;
	animation: animateBubble 26s linear infinite, sideWays 2s ease-in-out infinite alternate;
	
	left: 80%;
	top: 80%;
	
	-webkit-transform: scale(0.3);
	-moz-transform: scale(0.3);
	transform: scale(0.3);
}

/* OBJECTS */

.bubble {
    -webkit-border-radius: 50%;
	-moz-border-radius: 50%;
	border-radius: 50%;
	
    -webkit-box-shadow: 0 20px 30px rgba(0, 0, 0, 0.2), inset 0px 10px 30px 5px rgba(255, 255, 255, 1);
	-moz-box-shadow: 0 20px 30px rgba(0, 0, 0, 0.2), inset 0px 10px 30px 5px rgba(255, 255, 255, 1);
	box-shadow: 0 20px 30px rgba(0, 0, 0, 0.2), inset 0px 10px 30px 5px rgba(255, 255, 255, 1);
	
    height: 200px;
	position: absolute;
	width: 200px;
}

.bubble:after {
    background: -moz-radial-gradient(center, ellipse cover,  rgba(255,255,255,0.5) 0%, rgba(255,255,255,0) 70%); 
    background: -webkit-gradient(radial, center center, 0px, center center, 100%, color-stop(0%,rgba(255,255,255,0.5)), color-stop(70%,rgba(255,255,255,0)));
    background: -webkit-radial-gradient(center, ellipse cover,  rgba(255,255,255,0.5) 0%,rgba(255,255,255,0) 70%);
    background: -o-radial-gradient(center, ellipse cover,  rgba(255,255,255,0.5) 0%,rgba(255,255,255,0) 70%); 
    background: -ms-radial-gradient(center, ellipse cover,  rgba(255,255,255,0.5) 0%,rgba(255,255,255,0) 70%); 
    background: radial-gradient(ellipse at center,  rgba(255,255,255,0.5) 0%,rgba(255,255,255,0) 70%); 
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#80ffffff', endColorstr='#00ffffff',GradientType=1 );

	-webkit-border-radius: 50%;
	-moz-border-radius: 50%;
	border-radius: 50%;
	
    -webkit-box-shadow: inset 0 20px 30px rgba(255, 255, 255, 0.3);
	-moz-box-shadow: inset 0 20px 30px rgba(255, 255, 255, 0.3);
	box-shadow: inset 0 20px 30px rgba(255, 255, 255, 0.3);
	
	content: "";
    height: 180px;
	left: 10px;
	position: absolute;
	width: 180px;
} 



/* -------------------------------------------------------------------------- */
/*                                 1000px size                                */
/* -------------------------------------------------------------------------- */
@media (max-width:1000px) {
    .sidebar {
        display: none;
    }

    .main {
        margin-left: 0;
    }
}
