* {
    padding: 0;
    margin: 0;
    font-family: Outfit, Inter;
    font-weight: normal;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

/* Fonts */
@font-face {
    font-family: Outfit;
    src: url("assets/fonts/Outfit/Outfit-VariableFont_wght.woff");
    font-weight: 400;
}

@font-face {
    font-family: Outfit;
    src: url("assets/fonts/Outfit/Outfit-Bold.ttf");
    font-weight: 700;
}

@font-face {
    font-family: Outfit;
    src: url("assets/fonts/Outfit/Outfit-Medium.ttf");
    font-weight: 600;
}

@font-face {
    font-family: Inter;
    src: url("assets/fonts/Inter/Inter-VariableFont_opsz_wght.woff");
}


/* Content */
body {
    background-color: #fff;
}

.home-page {
    overflow: hidden;
}

.main-content {
    padding-top: 60px;
}

.text-body {
    padding: 10px;
    padding-top: 70px;
}



h3 {
    font-size: 16px;
}


a {
    text-decoration: none;
}

.content-unit {
    padding-bottom: 20px;
}
.buttons-container {
    width: fit-content;
    height: 85px; /* fit-content; */
    padding-bottom: 20px;
}
.search-results {
    padding: 10px;
}

#results-container {
    display: flex;
    flex-direction: column;
    gap: 4px;
    position: relative;
    z-index: 999;
    pointer-events: auto;
}

.search-result {
    align-items: center;
    background-color: #fff;
    border: 0;
    border-radius: 8px;
    color: #191A1D;
    cursor: pointer;
    display: flex;
    font-size: 16px;
    gap: 10px;
    justify-content: space-between;
    padding: 10px;
    text-align: left;
    width: 100%;
}

.search-result:hover,
.search-result:focus-visible {
    background-color: #1DC956;
    color: #fff;
}

.search-result-name {
    font-weight: 600;
    overflow-wrap: anywhere;
}

.search-result-category {
    color: #555;
    flex: 0 0 auto;
    font-size: 14px;
}

.search-result:hover .search-result-category,
.search-result:focus-visible .search-result-category {
    color: #fff;
}

.full-search-result-list {
    gap: 10px;
}

.full-search-result-list .search-result {
    border: 1px solid #ddd;
    box-shadow: 1px 2px 8px rgba(0,0,0,0.1);
    min-height: 58px;
    padding: 12px;
    transition: border-color 160ms ease, box-shadow 160ms ease;
}

.full-search-result-list .search-result:hover,
.full-search-result-list .search-result:focus-visible {
    border-color: #1DC956;
    box-shadow: 1px 2px 8px rgba(29, 201, 86, 0.22);
}

.search-empty-message {
    color: #555;
    padding: 12px;
}

.search-results-header {
    align-items: center;
    color: #191A1D;
    display: flex;
    font-size: 18px;
    font-weight: 600;
    justify-content: space-between;
    padding: 2px 2px 8px;
}

.search-results-close {
    align-items: center;
    background-color: transparent;
    border: 0;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    height: 34px;
    justify-content: center;
    width: 34px;
}

.search-results-close:hover,
.search-results-close:focus-visible {
    background-color: rgba(25, 26, 29, 0.06);
    outline: none;
}

.search-results-close img {
    height: 20px;
    opacity: 0.72;
    width: 20px;
}

.search-results-close:hover img,
.search-results-close:focus-visible img {
    opacity: 1;
}


/* Menus */
#menu-collection {
    height: 100vh;
    width: 100vw;
    position: fixed;
    z-index: 1200;

    background-color: unset;
    
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    
    pointer-events: none;
}

.home-page #menu-collection {
    display: block;
}

#title-bar {
    justify-content: space-between;
    border-bottom: 1px solid #ddd;
}

.home-page #title-bar {
    border-bottom: 0;
}

#menu-bar {
    justify-content: space-evenly;
    
    border-top: 1px solid #ddd;
}

.horizontal-menu {
    display: flex;

    background-color: white;
    pointer-events: auto;
    align-items: center;
    color: black;
}

.icon-spacer {
    width: 80px;
    min-height: 60px;
    background-color: unset;
    text-align: center;
    align-content: center;

}

.home-top-nav {
    align-items: flex-start;
    background-color: transparent;
    box-sizing: border-box;
    gap: 8px;
    justify-content: flex-start;
    padding: 8px 11px 0;
    position: absolute;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.home-top-nav .home-nav-menu-wrapper,
.home-top-nav > .nav-icon-link {
    margin-top: 8px;
}

.home-top-nav .nav-icon-link {
    align-items: center;
    background-color: rgba(255, 255, 255, 0.82);
    border: 0;
    border-radius: 999px;
    box-sizing: border-box;
    box-shadow: 0 4px 16px rgba(25, 26, 29, 0.16);
    display: flex;
    flex: 0 0 36px;
    justify-content: center;
    min-height: 36px;
    width: 36px;
}

.home-menu-button {
    border: 0;
    cursor: pointer;
    padding: 0;
}

.home-nav-menu-wrapper {
    align-content: center;
    flex: 0 0 80px;
    min-height: 60px;
    position: relative;
    text-align: center;
    width: 80px;
}

.home-top-nav .home-nav-menu-wrapper {
    flex-basis: 36px;
    min-height: 36px;
    width: 36px;
}

.home-nav-menu-wrapper .nav-icon-link {
    background-color: transparent;
    border: 0;
    min-height: 60px;
    width: 80px;
}

.horizontal-menu:not(.home-top-nav) .home-nav-menu-wrapper > .nav-icon-link .icon,
.horizontal-menu:not(.home-top-nav) > .nav-icon-link .icon {
    display: block;
    height: 36px;
    margin: 0 auto;
    width: 36px;
}

.home-top-nav .home-nav-menu-wrapper .nav-icon-link {
    background-color: rgba(255, 255, 255, 0.82);
    border: 0;
    box-shadow: 0 4px 16px rgba(25, 26, 29, 0.16);
    min-height: 36px;
    width: 36px;
}

.home-nav-menu {
    background-color: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(25, 26, 29, 0.08);
    border-radius: 12px;
    box-shadow: 0 10px 32px rgba(25, 26, 29, 0.22);
    display: none;
    flex-direction: column;
    gap: 4px;
    left: 0;
    min-width: 176px;
    padding: 8px;
    position: absolute;
    top: calc(100% + 16px);
    z-index: 1002;
}

.home-nav-menu.is-open {
    display: flex;
}

.home-nav-menu-item {
    align-items: center;
    border-radius: 8px;
    color: #191A1D;
    display: flex;
    font-size: 16px;
    gap: 10px;
    min-height: 42px;
    padding: 8px 10px;
}

.home-nav-menu-item:hover,
.home-nav-menu-item:focus-visible {
    background-color: rgba(29, 201, 86, 0.12);
    color: #1DC956;
    outline: none;
}

.home-nav-menu-item .icon {
    height: 24px;
    width: 24px;
}

.home-top-nav .icon {
    display: block;
    height: 36px;
}

.home-search-form {
    flex: 1 1 auto;
    max-width: none;
    min-width: 0;
    position: relative;
}

.home-search-form .search-results {
    padding: 0;
}

.home-search-results {
    left: 10px;
    position: absolute;
    right: 10px;
    top: calc(100% + 6px);
}

.home-search-results #results-container {
    max-height: min(320px, calc(100vh - 150px));
    overflow-y: auto;
}

.home-search-results.is-full-search-overlay {
    background-color: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(25, 26, 29, 0.08);
    border-radius: 12px;
    box-shadow: 0 10px 32px rgba(25, 26, 29, 0.22);
    left: 14px;
    margin: 0 auto;
    max-width: 680px;
    padding: 12px;
    position: fixed;
    right: 14px;
    top: 57px;
    z-index: 1001;
}

.home-search-results.is-full-search-overlay #results-container {
    max-height: calc(100vh - 70px);
}


/* Buttons and Controls */
.icon {
    color: #555;
    height: 32px;
    aspect-ratio: 1/1;
}

.account-nav-photo {
    aspect-ratio: 1 / 1;
    border: 0;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(25, 26, 29, 0.18);
    box-sizing: border-box;
    display: block;
    height: 36px;
    object-fit: cover;
    width: 36px;
}

.home-top-nav .account-nav-photo,
img.account-nav-photo {
    height: 36px;
    width: 36px;
}

.icon-button {
    color: #555;
}

.icon-button:hover {
    color: #1DC956FF;
}

.selected-icon {
    color: #1DC956FF;
}

.big-title {
    font-style: bold;
    font-size: 48px;
}

.page-header {
    font-style: bold;
    font-size: 24px;
}

.text-button {
    font-style: bold;
    color: #1DC956FF;
}

#map-controls {
    display: flex;
    flex-direction: column;
    align-items: end;

    margin-bottom: 10px;
}

#map-controls button {
    margin: 5px;
    background-color: white;
    height: 50px;
    width: 50px;

    border: 1px solid #000;
    border-radius: 15px;
}
.approve-button {
    text-align: center;
    margin: 5px;
    /* margin-bottom: 50px; */
    background-color: #1DC956FF;
    padding: 10px;

    border: none;
    border-radius: 15px;

    color: white;
    font-size: 24px;
    font-weight: bold;
}
.reject-button {
    background-color: #FF4D4D;
}
.account-button {
    text-align: center;
    margin: 5px;
    padding: 10px;
    background-color: #5B6170;
    height: 30px;
    width: 100px;

    border: none;
    border-radius: 15px;

    color: white;
    font-size: 24px;
    font-weight: bold;
}
.review-button {
    margin: 10px;
    background-color: #1DC956FF;    
    padding: 10px;

    border: none;
    border-radius: 15px;

    color: black;
    font-size: 15px;
    font-weight: bold;
}

/* Maps */
b {
    font-weight: 600;
}

#main-map-container {
    width: 100% !important;
    height: 100%;
}

.home-page #main-map-container {
    height: 100vh;
    inset: 0;
    position: absolute;
    width: 100vw !important;
}

.home-page .maplibregl-ctrl-top-left {
    top: 54px;
}

#mainMap {
    height: 100%;
    pointer-events: auto;
}
#poi-map-container {
    width: 100% !important;
    height: 300px;
}
#poiMap {
    height: 100%;
    width: 100%;
    pointer-events: auto;
}
#poi-map-info-container {
    width: 100% !important;
    height: 300px;
}
#poiInfoMap {
    height: 100%;
    width: 100%;
    pointer-events: auto;
}
#popup-poi-link {
    font-family: Outfit;
    font-weight: 700;
    color: #4FB855;
    font-size: 20px;
}
#popup-poi-description {
    font-family: Outfit;
    font-weight: 400;
    font-size: 13px;
    color: #191A1D;

}
.popup-poi-actions {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 10px;
}

.popup-check-in-button {
    background-color: #1DC956;
    border: 0;
    border-radius: 8px;
    color: #fff;
    cursor: pointer;
    font-family: Outfit;
    font-size: 14px;
    font-weight: 600;
    min-height: 36px;
    padding: 8px 12px;
    width: 100%;
}

.popup-check-in-button:disabled {
    background-color: #A7EFC1;
    color: #cccccc;
    cursor: default;
}

.popup-check-in-message {
    color: #555;
    font-family: Outfit;
    font-size: 12px;
    min-height: 14px;
}

.popup-check-in-message[data-state="success"] {
    color: #168B3F;
}

.popup-check-in-message[data-state="cooldown"] {
    color: #5B6170;
}

.popup-check-in-message[data-state="error"] {
    color: #C03535;
}
#poiReviewMap {
    height: 100%;
    width: 100%;
    pointer-events: auto;
}

.poi-marker-icon {
    background: transparent;
    border: 0;
}

.poi-marker-icon__badge {
    width: 39px;
    height: 42px;
    display: grid;
    place-items: center;
    background: #fff;
    border: 0;
    clip-path: path("M19.13 1.05C9.23 1.05 1.58 8.7 1.58 18.38C1.58 28.88 14.33 35.7 17.63 39.68C18.38 40.73 19.73 40.73 20.48 39.68C23.78 35.7 36.53 28.88 36.53 18.38C36.53 8.7 28.88 1.05 19.13 1.05Z");
    box-shadow: 0 3px 10px rgba(25, 26, 29, 0.24);
}

.poi-marker-icon__circle {
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    margin-top: -6px;
    background: var(--poi-tag-color, #1DC956);
    border-radius: 50%;
}

.poi-marker-icon__glyph {
    width: 21px;
    height: 21px;
    background: #fff;
    -webkit-mask: var(--poi-icon-url) center / contain no-repeat;
    mask: var(--poi-icon-url) center / contain no-repeat;
    filter:
        drop-shadow(0.5px 0 #fff)
        drop-shadow(-0.5px 0 #fff)
        drop-shadow(0 0.5px #fff)
        drop-shadow(0 -0.5px #fff);
}

.poi-active-user-marker {
    background: transparent;
    border: 0;
}

.poi-active-user-marker__badge {
    background: #fff;
    border: 0;
    box-shadow: 0 3px 10px rgba(25, 26, 29, 0.24);
    clip-path: path("M19.13 1.05C9.23 1.05 1.58 8.7 1.58 18.38C1.58 28.88 14.33 35.7 17.63 39.68C18.38 40.73 19.73 40.73 20.48 39.68C23.78 35.7 36.53 28.88 36.53 18.38C36.53 8.7 28.88 1.05 19.13 1.05Z");
    display: grid;
    height: 42px;
    place-items: center;
    overflow: hidden;
    width: 39px;
}

.poi-active-user-marker__photo {
    border: 2px solid #fff;
    border-radius: 50%;
    box-sizing: border-box;
    height: 32px;
    margin-top: -6px;
    object-fit: cover;
    width: 32px;
}


@media (min-width: 769px) {
    .poi-marker-icon__badge {
        width: 29px;
        height: 32px;
        clip-path: path("M14.5 0.8C7 0.8 1.2 6.6 1.2 14C1.2 22 10.9 27.2 13.4 30.2C14 31 15 31 15.6 30.2C18.1 27.2 27.8 22 27.8 14C27.8 6.6 22 0.8 14.5 0.8Z");
    }

    .poi-marker-icon__circle {
        width: 21px;
        height: 21px;
        margin-top: -4px;
    }

    .poi-marker-icon__glyph {
        width: 16px;
        height: 16px;
    }

    .poi-active-user-marker__badge {
        width: 29px;
        height: 32px;
        clip-path: path("M14.5 0.8C7 0.8 1.2 6.6 1.2 14C1.2 22 10.9 27.2 13.4 30.2C14 31 15 31 15.6 30.2C18.1 27.2 27.8 22 27.8 14C27.8 6.6 22 0.8 14.5 0.8Z");
    }

    .poi-active-user-marker__photo {
        border-width: 1px;
        height: 24px;
        margin-top: -4px;
        width: 24px;
    }
}


.map-thumbnail {
    width: 100% !important;
    height: 120px;

    border-radius: 16px;
    box-shadow: 2px 5px 15px rgba(0,0,0,0.1);
}

.map-thumbnail:hover {
    
    box-shadow: 2px 5px 15px rgba(0,0,0,0.2);
}


/* POI Information */
#poi-name {
    font-family: Outfit;
    font-weight: 700;
    color: #4FB855;
    font-size: 36px;
}
#poi-description {
    font-size: 20px;
    color: #191A1D;
}
.edit-button-containter {
    display: flex;
    justify-content: flex-start;
    padding-right: 7px;
    margin-top: 30px;
    margin-bottom: 70px;  
}
#edit-button {
    padding: 10px 20px;
    background-color: #F3F8EE;
    border: 2px solid #191A1D;
    border-radius: 15px;
    font-family: Outfit;
    font-weight: 600;
    color: #191A1D;
    white-space: nowrap; /* Prevents the text from wrapping to a second line */
}

@media (max-width: 768px) {
    html {
        -webkit-text-size-adjust: none;
        text-size-adjust: none;
    }

    body {
        font-size: 75%;
    }

    h3 {
        font-size: 12px;
    }

    .page-header {
        font-size: 18px;
    }

    #popup-poi-link {
        font-size: 15px;
    }

    #popup-poi-description {
        font-size: 10px;
    }

    .popup-check-in-button {
        font-size: 11px;
        min-height: 27px;
    }

    .popup-check-in-message {
        font-size: 9px;
        min-height: 11px;
    }

    .maplibregl-popup-content {
        font-size: 12px;
    }

    #poi-name {
        font-size: 27px;
    }

    #poi-description {
        font-size: 15px;
    }
}

@media (min-width: 769px) {
    .home-top-nav {
        gap: 15px;
        justify-content: space-between;
        padding: 15px 21px 0;
    }

    .home-top-nav .home-nav-menu-wrapper,
    .home-top-nav > .nav-icon-link {
        margin-top: 0;
    }

    .home-top-nav .nav-icon-link {
        flex: 0 0 52px;
        min-height: 52px;
        width: 52px;
    }

    .home-top-nav .home-nav-menu-wrapper {
        flex-basis: 52px;
        min-height: 52px;
        width: 52px;
    }

    .home-top-nav .home-nav-menu-wrapper .nav-icon-link {
        min-height: 52px;
        width: 52px;
    }

    .home-top-nav .icon {
        height: 52px;
    }

    .horizontal-menu:not(.home-top-nav) .home-nav-menu-wrapper > .nav-icon-link .icon,
    .horizontal-menu:not(.home-top-nav) > .nav-icon-link .icon {
        height: 52px;
        width: 52px;
    }

    .home-search-form {
        max-width: none;
    }

    .home-search-results.is-full-search-overlay {
        top: 46px;
    }

    .home-search-results.is-full-search-overlay #results-container {
        max-height: calc(100vh - 140px);
    }

    .account-nav-photo,
    .home-top-nav .account-nav-photo,
    img.account-nav-photo {
        height: 52px;
        width: 52px;
    }

    .home-page .maplibregl-ctrl-top-left {
        top: 108px;
    }
}
