body, html {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
    height: 100%;
}

#map {
    height: 100%;
    width: 100%;
}

.location-info {
    font-family: 'Poppins', sans-serif;
    color: transparent;
    max-width: 450px;
    padding: 25px;
    border-radius: 5px;
    /*background: linear-gradient(135deg, #a3a3a3, #f3f3f3);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);*/
}

.location-title {
    font-size: 2em;
    color: #fff;
    margin-bottom: 15px;
    text-align: center;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.image-container {
    width: 100%;
    margin-bottom: 18px;
}

.main-image {
    width: 100%;
    max-height: 270px;
    object-fit: cover;
    border-radius: 5px;
    border: 4px solid #fff;
}

.location-description,
.location-work-time {
    font-size: 1.1em;
    margin: 12px 0;
    color: #fff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.gallery {
    display: flex;
    gap: 14px;
    margin-top: 20px;
    justify-content: center;
}

.gallery-image {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 20%;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.gallery-image:hover {
    transform: scale(1.15);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.button-modern {
    background-color: #2a2a2a;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 5px;
    font-size: 1.1em;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s;
    display: block;
    margin: 25px auto 0;
    text-align: center;
}

.button-modern:hover {
    background-color: #585858;
    transform: scale(1.05);
}

.admin-popup {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    width: 450px;
    background-color: #ffffff;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.2);
}

.close-btn {
    background-color: #414141;
    border: none;
    font-size: 1.6em;
    cursor: pointer;
    color: #fff;
    position: absolute;
    top: 10px;
    right: 10px;
    width: 35px;
    height: 35px;
    line-height: 35px;
    border-radius: 50%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease, transform 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-btn:hover {
    background-color: #2b2b2b;
    transform: scale(1.1);
}


.pop-up {
	width: 400px;
	height: auto;	
}
.pop_wrapper {
	padding: 10px;
	background-color: #fff;
	border-radius: 3px;
	box-shadow: 0 0 20px 6px #aaaaaa; 
	overflow: hidden;
}
.pop_wrapper .l_col {
	width: 40%;
	overflow: hidden;
	float: left;
}
.pop-up .pop_wrapper .l_col img {
	max-width: 100%;
}
.pop_wrapper .r_col {
	width: calc(30% - 20px);
	overflow: hidden;
	float: left;
	box-sizing: border-box;
	margin-left: 20px;
}

.pop_wrapper .r_col:last-child dt:first-child:before, .pop_wrapper .r_col:last-child dt:nth-child(3):before {
	content: "";
	display: inline-block;
	width:15px;
	height:15px;
	top: 0;
	left: 100%;
	background-repeat: no-repeat;
	margin-right: 5px;
}
.pop_wrapper .r_col:last-child dt:first-child:before {
	background-image: url('misc/summer.png');
}
.pop_wrapper .r_col:last-child dt:nth-child(3):before {
	background-image: url('misc/winter.png');
}
.pop_wrapper dl, .pop_wrapper dt, .pop_wrapper dd {
	display: block;
}
.pop_wrapper .r_col:last-child dd:nth-child(2), .pop_wrapper h3 {
	margin-bottom: 7px;
}
.pop_wrapper dt {
	clear: left;
	margin-right: 5px;	
}
.pop_wrapper dd small {
	font-size: 11px;
}

#location-count {
    position: fixed;
    top: 55px;
    left: 50%;
    transform: translateX(-50%);
    /*background: linear-gradient(135deg, rgb(255, 255, 255), rgb(211, 211, 211));*/
    background: rgb(255, 255, 255);
    padding: 10px 18px;
    border: 1px solid rgb(243, 235, 235);
    border-radius: 8px;
    font-size: 15px;
    font-weight: 550;
    color: #252525;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    /*text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);*/
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

#location-count:hover {
    transform: translateX(-50%) scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/*.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: 300px;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out;
    overflow-y: auto;
    z-index: 1000;
}*/

/*.sidebar.hidden {
    transform: translateX(-100%);
}*/

.toggle-btn {
    position: absolute;
    right: -40px;
    top: 10px;
    background-color: #fff;
    border: none;
    padding: 10px;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 0 5px 5px 0;
}

/*map types styles*/

.map-type-dropdown {
    background-color: #fff;
    border: 1px solid #ccc;
    padding: 5px;
    margin: 10px;
    border-radius: 3px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

.map-type-dropdown select {
    font-size: 14px;
    padding: 5px;
    border: none;
    background-color: transparent;
}

/*new buttons style*/

/* CSS */
.button-39 {
    margin-top:12px;
  background-color: #FFFFFF;
  border: 1px solid rgb(209,213,219);
  border-radius: .5rem;
  box-sizing: border-box;
  color: #111827;
  font-family: "Inter var",ui-sans-serif,system-ui,-apple-system,system-ui,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";
  font-size: .875rem;
  font-weight: 600;
  line-height: 1.25rem;
  padding: .75rem 1rem;
  text-align: center;
  text-decoration: none #D1D5DB solid;
  text-decoration-thickness: auto;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
}

.button-39:hover {
  background-color: rgb(249,250,251);
}

.button-39:focus {
  outline: 2px solid transparent;
  outline-offset: 2px;
}

.button-39:focus-visible {
  box-shadow: none;
}

/*.sidebar h1 {
    text-align: center;
    margin: 20px 0;
}*/

.location-item {
    padding: 15px;
    margin: 10px;
    background-color: #f0f0f0;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.location-item:hover {
    background-color: #e0e0e0;
}

.marker-info {
    background-color: white;
    padding: 10px;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.marker-info img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 5px;
}

.info-popup {
    position: fixed;
    right: 20px;
    top: 20px;
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
    max-width: 400px;
    display: none;
    z-index: 1001;
    background: linear-gradient(135deg, rgba(0, 0, 0, .45), rgba(0, 0, 0, 0.1));
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.close-btn {
    position: absolute;
    right: 10px;
    top: 10px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
}

.gallery {
    display: flex;
    overflow-x: auto;
    margin-top: 10px;
}

.gallery img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    margin-right: 10px;
    border-radius: 5px;
}

@keyframes slideDown {
    from { transform: translateY(-20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.animate-slide-down {
    animation: slideDown 0.3s ease-out;
}


/*new sidebar*/

/* Google Font Import - Poppins */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

:root{
    /* ===== Colors ===== */
    --body-color: #E4E9F7;
    --sidebar-color: #FFF;
    --primary-color: #695CFE;
    --primary-color-light: #F6F5FF;
    --toggle-color: #DDD;
    --text-color: #707070;

    /* ====== Transition ====== */
    --tran-03: all 0.2s ease;
    --tran-03: all 0.3s ease;
    --tran-04: all 0.3s ease;
    --tran-05: all 0.3s ease;
}

body{
    min-height: 100vh;
    background-color: var(--body-color);
    transition: var(--tran-05);
}

::selection{
    background-color: var(--primary-color);
    color: #fff;
}

body.dark{
    --body-color: #18191a;
    --sidebar-color: #242526;
    --primary-color: #3a3b3c;
    --primary-color-light: #3a3b3c;
    --toggle-color: #fff;
    --text-color: #ccc;
}

/* Default state: closed */
.sidebar {
    width: 88px; /* Closed state */
}

/* Open state */
.sidebar.open {
    width: 250px; /* Open state */
}

/* Open by default on desktop (min-width: 768px) */
@media screen and (min-width: 768px) {
    .sidebar {
        width: 250px;
    }
}

/* ===== Sidebar ===== */
 .sidebar{
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: 250px;
    padding: 10px 14px;
    background: var(--sidebar-color);
    transition: var(--tran-05);
    z-index: 100;  
}
.sidebar.close{
    width: 88px;
}

/* ===== Reusable code - Here ===== */
.sidebar li{
    height: 50px;
    list-style: none;
    display: flex;
    align-items: center;
    margin-top: 10px;
}

.sidebar header .image,
.sidebar .icon{
    min-width: 60px;
    border-radius: 6px;
}

.sidebar .icon{
    min-width: 60px;
    border-radius: 6px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.sidebar .text,
.sidebar .icon{
    color: var(--text-color);
    transition: var(--tran-03);
}

.sidebar .text{
    font-size: 17px;
    font-weight: 500;
    white-space: nowrap;
    opacity: 1;
}
.sidebar.close .text{
    opacity: 0;
}
/* =========================== */

.sidebar header{
    position: relative;
}

.sidebar header .image-text{
    display: flex;
    align-items: center;
}
.sidebar header .logo-text{
    display: flex;
    flex-direction: column;
}
header .image-text .name {
    margin-top: 2px;
    font-size: 18px;
    font-weight: 600;
}

header .image-text .profession{
    font-size: 16px;
    margin-top: -2px;
    display: block;
}

.sidebar header .image{
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar header .image img{
    width: 40px;
    border-radius: 6px;
}

.sidebar header .toggle{
    position: absolute;
    top: 50%;
    right: -25px;
    transform: translateY(-50%) rotate(180deg);
    height: 25px;
    width: 25px;
    background-color: var(--primary-color);
    color: var(--sidebar-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    cursor: pointer;
    transition: var(--tran-05);
}

body.dark .sidebar header .toggle{
    color: var(--text-color);
}

.sidebar.close .toggle{
    transform: translateY(-50%) rotate(0deg);
}

.sidebar .menu{
    margin-top: 40px;
}

.sidebar li.search-box{
    border-radius: 6px;
    background-color: var(--primary-color-light);
    cursor: pointer;
    transition: var(--tran-05);
}

.sidebar li.search-box input{
    height: 100%;
    width: 100%;
    outline: none;
    border: none;
    background-color: var(--primary-color-light);
    color: var(--text-color);
    border-radius: 6px;
    font-size: 17px;
    font-weight: 500;
    transition: var(--tran-05);
}
.sidebar li a{
    list-style: none;
    height: 100%;
    background-color: transparent;
    display: flex;
    align-items: center;
    height: 100%;
    width: 100%;
    border-radius: 6px;
    text-decoration: none;
    transition: var(--tran-03);
}

.sidebar li a:hover{
    background-color: var(--primary-color);
}
.sidebar li a:hover .icon,
.sidebar li a:hover .text{
    color: var(--sidebar-color);
}
body.dark .sidebar li a:hover .icon,
body.dark .sidebar li a:hover .text{
    color: var(--text-color);
}

.sidebar .menu-bar{
    height: calc(100% - 55px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow-y: scroll;
}
.menu-bar::-webkit-scrollbar{
    display: none;
}
.sidebar .menu-bar .mode{
    border-radius: 6px;
    background-color: var(--primary-color-light);
    position: relative;
    transition: var(--tran-05);
}

.menu-bar .mode .sun-moon{
    height: 50px;
    width: 60px;
}

.mode .sun-moon i{
    position: absolute;
}
.mode .sun-moon i.sun{
    opacity: 0;
}
body.dark .mode .sun-moon i.sun{
    opacity: 1;
}
body.dark .mode .sun-moon i.moon{
    opacity: 0;
}

.menu-bar .bottom-content .toggle-switch{
    position: absolute;
    right: 0;
    height: 100%;
    min-width: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    cursor: pointer;
}
.toggle-switch .switch{
    position: relative;
    height: 22px;
    width: 40px;
    border-radius: 25px;
    background-color: var(--toggle-color);
    transition: var(--tran-05);
}

.switch::before{
    content: '';
    position: absolute;
    height: 15px;
    width: 15px;
    border-radius: 50%;
    top: 50%;
    left: 5px;
    transform: translateY(-50%);
    background-color: var(--sidebar-color);
    transition: var(--tran-04);
}

body.dark .switch::before{
    left: 20px;
}

.home{
    position: absolute;
    top: 0;
    top: 0;
    left: 250px;
    height: 100vh;
    width: calc(100% - 250px);
    background-color: var(--body-color);
    transition: var(--tran-05);
}
.home .text{
    font-size: 30px;
    font-weight: 500;
    color: var(--text-color);
    padding: 12px 60px;
}

.sidebar.close ~ .home{
    left: 78px;
    height: 100vh;
    width: calc(100% - 78px);
}
body.dark .home .text{
    color: var(--text-color);
}