:root {
    --black: #333333;
    --white: #ffffff;
    --gray1: #f5f5f5;
    --gray2: #eeeeee;
    --gray3: #e0e0e0;
    --gray4: #bdbdbd;
    --gray5: #9e9e9e;
    --gray6: #757575;
    --gray7: #616161;
    --gray8: #424242;
    --gray9: #212121;
    --balance: balance;
    --text-color-body: #333333;
    --text-color-white: #fff;
    --border-color: #ABABAB;
    --border-radius: .2em;
    --font-size-normal: 1em;
    --font-size-large: 1.5rem; /* For larger text */
    --font-size-medium: 1.25rem; /* For medium text */
    --font-size-small: 0.875rem;
    --line-height: 1.3em;
}

@font-face {
    font-family: 'Graphik Web';
    src: url('../assets/fonts/Graphik-Regular-Web.eot');
    src: url('../assets/fonts/Graphik-Regular-Web.eot?#iefix') format('embedded-opentype'),
        url('../assets/fonts/Graphik-Regular-Web.woff2') format('woff2'),
        url('../assets/fonts/Graphik-Regular-Web.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-stretch: normal;
  }
  
  @font-face {
    font-family: 'Graphik Web';
    src: url('../assets/fonts/Graphik-Medium-Web.eot');
    src: url('../assets/fonts/Graphik-Medium-Web.eot?#iefix') format('embedded-opentype'),
        url('../assets/fonts/Graphik-Medium-Web.woff2') format('woff2'),
        url('../assets/fonts/Graphik-Medium-Web.woff') format('woff');
    font-weight: 500;
    font-style: normal;
    font-stretch: normal;
  }

/* @font-face {
    font-family: Graphik;
    font-style: normal;
    font-weight: 600;
    src: url(/assets/fonts/Graphik-Bold-Web.woff2) format("woff2"),url(..assets/fonts/Graphik-Bold-Web.woff) format("woff")
} */

html {
    font-size: var(--font-size-normal);
    color: var(--black);
}

body {
    margin:0;
    font-weight: 400;
    font-family: 'Graphik Web', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.textLink {
    color: blue;
    text-decoration: none;
}

.textLink:hover {
    color:blue;
    border-bottom: 1px solid blue;
}

.logoBox, #saved-locations {
    background-color: #fff; 
    position: fixed; 
    z-index: 1000; 
    border: 1px var(--border-color) solid; 
    padding: 1em; 
    border-radius: 4px; 
    box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.16), 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.logoBox {
    top: 20px;
    left: 20px;
}

#saved-locations {
    top: 20px;
    right: 20px;
    max-width: 300px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    width: 250px;
}

@media (max-width: 768px) {
    .logoBox {
        top: 1em;
        left: 1em;
        padding: 10px;
        font-size: var(--font-size-normal); /* Adjust if needed for better fit on mobile */
    }

    #saved-locations {
        position: relative; /* Change from fixed to relative */
        top: auto; /* Reset top positioning */
        bottom: auto; /* Reset bottom positioning */
        left: 0;
        right: 0;
        max-width: 90%; /* Set a maximum width as a percentage of the device width */
        max-height: 50vh; /* Set a maximum height */
        overflow-y: auto; /* Enable scrolling */
        border-top: none;
        border-bottom: none;
        border-left: none;
        border-right: none;
        border-radius: 4px 4px 0 0;
        width: 100%; /* Full width */
        margin: 0 auto; /* Center the container */
        box-shadow: none;
    }
}

.saved-locations-title {
    margin-top: 0;
    font-weight: 400;
}

.logoBox h1 {
    font-weight: 500;
    font-size: var(--font-size-normal);
}

#map {
    height: calc(100vh - 4em);
    width: 100%;
    margin: 0;
    padding-top: 60px; /* Adjust based on the height of your logoBox */
}

@media (max-width: 768px) {
    #map {
        height: 80vh;
        padding-top: 40px; /* Adjust for mobile */
    }
}

#saved-list {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.saved-location-item {
    display: flex;
    align-items: center;
    padding: 16px 4px;
    border-bottom: 1px solid #e0e0e0;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.saved-location-item:hover {
    background-color: var(--gray1);
}

.location-text {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    padding-left: .5em;
}

.location-name {
    font-size: var(--font-size-normal);
    font-weight: 400;
    color: rgba(0, 0, 0, 0.87);
}

.location-street {
    font-size: var(--font-size-small);
    color: rgba(0, 0, 0, 0.54);
}

.remove-button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: rgba(0, 0, 0, 0.54);
    transition: color 0.3s;
}

.remove-button:hover {
    color: rgba(0, 0, 0, 0.87);
}

.remove-button i {
    font-size: 24px;
}

.no-saved-locations {
    text-align: left;
    padding: 0;
    color: #666;
    font-style: italic;
    margin: 0;
}

.canny {
    position: fixed;
    bottom: 0;
    right: 0;
    padding: 7px;
    font-size: 14px;
    font-weight: bold;
    background: #fff;
    color: #000;
    text-decoration: none;
    z-index: 99;
    border-top: 1px solid var(--border-color);
    border-left: 1px solid var(--border-color);
    border-top-left-radius: var(--border-radius);
}

@media (max-width: 768px) {
    .canny {
        top: 10px;
        right: 10px;
        left: auto; /* In case it was set to left on mobile before */
    }
}

.custom-info-window {
    max-width: 250px;
    background-color: var(--white);
    border: 1px solid var(--border-color);
    padding: 10px;
    border-radius: var(--border-radius);
    box-shadow: 0 2px 7px 1px rgba(0,0,0,0.3);
}
/* this is the pointy thing when marker is place on top.*/
/* .custom-info-window::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    margin-left: -10px;
    border-width: 10px 10px 0;
    border-style: solid;
    border-color: white transparent transparent;
} */

.info-content {
    width: 100%;
    word-wrap: break-word;
}

.info-image-container {
    position: relative;
    height: 150px; /* Adjust as needed */
    overflow: hidden;
    background-color: var(--gray1);
}

@media (max-width: 768px) {
    .custom-info-window{
        max-width: 200px;
    }
    .info-image-container {
        height: 100px;
    }
}

.info-image {
    width: 100%;
    height: 100%;
    object-fit: cover;

}

.close-button {
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(0, 0, 0, 0.5);
    color: var(--white);
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    font-size: 20px;
    cursor: pointer;
}

.info-content h3 {
    margin-top: 16px;
    color: var(--black);
    font-size: 20px;
    font-weight: 400;
    margin-bottom: 4px;
}

.info-content p {
    color: var(--gray6);
    font-size: var(--font-size-small);
    margin-top: 0;
    margin-bottom: 16px;
}

.info-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
}

.info-button {
    padding: 8px 12px;
    text-decoration: none;
    color: var(--black);
    border-radius: 4px;
    font-size: 12px;
    text-transform: uppercase;
    place-content: center;
}

.info-street {
    color: var(--gray6);
    font-size: 12px !important;
    margin-top: 0;
    margin-bottom: 8px;
}

.website-button {
    background-color: var(--white);
    border: 1px solid var(--white);
}

.website-button:hover {
    background-color: var(--black);
    color: var(--white);
    border: 1px solid var(--white);
}


.instagram-button {
    background-color: #E1306C;
}

.submit-button {
    padding: 8px 12px;
    background-color: var(--black);
    color: var(--white);
    text-decoration: none;
    border-radius: 4px;
    font-size: 12px;
    text-transform: uppercase;
    place-content: center;
}


.save-button, .route-button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    transition: transform 0.2s;
}

.save-button:hover {
    transform: scale(1.1);
}

.bookmark-icon,
.bookmark-icon-filled {
    width: 24px;
    height: 24px;
    transition: opacity 0.3s;
    vertical-align: bottom;
}

.bookmark-icon-filled {
    display: none;
}

.simpleWalk-icon-disabled {
    width: 24px;
    height: 24px;
    opacity: .3;
    vertical-align: bottom;
    cursor: default;
}

.simpleWalk-icon {
    width: 24px;
    height: 24px;
    opacity: 1;
    vertical-align: bottom;
    cursor: pointer;
}

.save-button:hover .bookmark-icon,
.save-button.saved .bookmark-icon {
    display: none;
}

.save-button:hover .bookmark-icon-filled,
.save-button.saved .bookmark-icon-filled {
    display: inline;
}

.save-button i {
    font-size: 24px; /* This corresponds to 24dp in Material Design */
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

#about-button, #back-button {
    background: none;
    border: none;
    color: var(--gray6);
    cursor: pointer;
    padding: 8px;
    font-size: var(--font-size-small);
    text-align: left;
    width: 100%;
    transition: color 0.3s;
}


#about-button:hover, #back-button:hover {
    color: var(--black);
}

#about-section {
    padding: 16px;
}

#about-section h3 {
    margin-top: 0;
}

#about-box {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background-color: #fff;
    border: 1px var(--border-color) solid;
    border-radius: 4px;
    box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.16), 0 0 0 1px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    overflow: hidden;
    z-index: 1000;
}

@media (max-width: 768px) {
    #about-box {
        top: 4em;
        left: 1em;
        bottom: auto;
    }
}

#about-box.collapsed {
    width: auto;
    height: auto;
    cursor: pointer;
}

#about-box.expanded {
    width: 300px;
    height: auto;
    max-height: 80vh;
    overflow-y: auto;
    padding: 0.5em;
}

#about-box h3 {
    margin: 0;
    padding: 10px;
    font-weight: 400;
    font-size: var(--font-size-normal);
}

#about-box .about-content {
    padding: 0 10px 10px;
    display: none;
}

#about-box.expanded .about-content {
    display: block;
    font-size: var(--font-size-small);
    line-height: var(--line-height);
    text-wrap: var(--balance);
}

.visual-cross {
    float: right;
    padding: 10px;
    font-size: 18px;
    color: var(--gray6);
    cursor: pointer;
    display: none;
}

#about-box.expanded .visual-cross {
    display: block;
}

.about-collapsed-close {
    display: flex; 
    align-items: center; 
    justify-content: space-between;
}

#center-box {
    position: absolute;
    top: 45%;
    left: calc(50% - 300px);
    margin-top: -50px;
    margin-left: -50px;
    /* width: 100px;
    height: 100px; */
    /* position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%); */
    /* position: fixed;
  inset: 0px;
  width: 12rem;
  height: 5rem;
  max-width: 100vw;
  max-height: 100dvh;
  margin: auto; */
    background-color: var(--black);
    border: 1px var(--border-color) solid;
    border-radius: 4px;
    box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.16), 0 0 0 1px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    overflow: hidden;
    z-index: 899;
    color: var(--white);
}
@media (max-width: 768px) {
    #center-box {
        top: 40%;
        left: calc(66% - 300px);
    }
}


#center-box.collapsed {
    width: auto;
    height: auto;
    cursor: pointer;
}

#center-box.expanded {
    width: 500px;
    height: auto;
    max-height: 80vh;
    overflow-y: auto;
    padding: 0.5em;
}

.center-collapsed-close {
    display: flex; 
    align-items: center; 
    justify-content: space-between;
}

.center-content {
    padding: 0 10px 10px;
    display: none;
}

#center-box.expanded .center-content {
    display: block;
    font-size: var(--font-size-small);
    line-height: var(--line-height);
    text-wrap: var(--balance);
    text-align: center;
}

.ad {
    padding: 1em; 
    border: 1px solid var(--border-color); 
    margin-top: 1em; 
    background-color: var(--gray1);
}

#list-box {
    position: fixed;
    bottom: 20px;
    left: 100px;
    background-color: #fff;
    border: 1px var(--border-color) solid;
    border-radius: 4px;
    box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.16), 0 0 0 1px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    overflow: hidden;
    z-index: 900;
}

@media (max-width: 768px) {
    #list-box {
        top: 7em;
        left: 1em;
        bottom: auto;
    }
}

#list-box.collapsed {
    width: auto;
    height: auto;
    cursor: pointer;
}

#list-box.expanded {
    width: 300px;
    height: auto;
    max-height: 75vh;
    overflow-y: auto;
    padding: 0.5em;
}

@media (max-width: 768px) {
    #list-box.expanded {
        width: calc(100vw - 2.5em);
    }
}

#list-box h3 {
    margin: 0;
    padding: 10px;
    font-weight: 400;
    font-size: var(--font-size-normal);
}

#list-box.expanded h3, #center-box.expanded h3 {
    padding: 10px;
}

#list-box p {
    margin: 0;
    padding-left: 10px;
    color: rgba(0, 0, 0, 0.54);
    margin-top: -10px;;
}

#list-box .list-content {
    padding: 0 10px 10px;
    display: none;
}

#list-box.expanded .list-content {
    display: block;
}

#list-box.expanded .visual-cross {
    display: block;
}

.list-collapsed-close {
    display: flex; 
    align-items: center; 
    justify-content: space-between;
    position: sticky; /* Make the element sticky */
    top: 0; /* Position it at the top of the parent container */
    background-color: #fff; /* Set a background color to cover content below */
    z-index: 10; /* Ensure it stays above other content */
}

#entries-list-container {
    margin-left: 20px; /* Space between About button and entries list */
}

#entries-list {
    list-style-type: none; /* Remove default list styling */
    padding: 0; /* Remove padding */
}

.entry-item {
    display: flex; /* Use flexbox for layout */
    align-items: flex-start; /* Center items vertically */
    border-top: 1px solid #ccc; /* Add a bottom border */
    padding: 10px 10px 10px 0px;
    border-top: 1px solid #ccc;
    gap: 10px;
}

.entry-item:nth-last-child(){
    border-bottom: 1px solid #ccc; /* Add a bottom border */
}

.entry-item img {
    width: 50px; /* Set image size */
    height: 50px; /* Set image size */
}

.entry-item h3 {
    margin: 0; /* Remove default margin */
    font-size: var(--font-size-small); /* Adjust font size */
}

.entry-item {
    /* Normal state styles */
    transition: background-color 0.3s ease; /* Smooth transition */
}

.entry-item:hover {
    background-color: #f0f0f0; /* Change background color on hover */
    cursor: pointer; /* Change cursor to pointer */
}

#walking-time {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(255, 255, 255, 0.9);
    color: #333;
    padding: 10px 20px;
    border-radius: var(--border-radius);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    font-family: 'Graphik', sans-serif;
    font-size: 14px;
    z-index: 1000;
    display: none; /* Hidden by default */
}

@media (max-width: 768px) {
    #walking-time {
        bottom: 170px; 
        left: 1em;
        transform: none;
        padding: 10px;
    }
}