:root {
    --primary-color: #FF451B;
    --primary-color-opacity-10: rgba(255, 69, 27, 0.1);
    --primary-background: #FCFBFA;
}

@font-face {
    font-family: 'bgp';
    src: url('bpg_arial_2009.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

html,
body {
    margin: 0;
    padding: 0;
    height: 100%;
    overflow: hidden;
    font-family: 'Arial', sans-serif;
}

* {
    touch-action: manipulation;
}

.container {
    display: flex;
    flex-direction: column;
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background-color: var(--primary-background);
    position: relative;
    z-index: 10000;
    color: var(--primary-color);
}

.logo img {
    height: 25px;
    display: block;
}

#hamburger {
    cursor: pointer;
    font-size: 31px;
    line-height: 1;
}

#menuToggle {
    display: none;
    /* Keep the checkbox hidden */
}

.menu {
    display: flex;
    align-items: center;
}

#userInfo {
    display: flex;
    align-items: center;
    margin-left: 10px;
    margin-right: 16px;
}



.dropdown-menu {
    position: absolute;
    top: 60px;
    right: 20px;
    display: none;
    background-color: white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    overflow: hidden;
    z-index: 10;
}

.menu-item {
    display: block;
    padding: 10px 20px;
    text-decoration: none;
    color: #333;
    border-bottom: 1px solid #ddd;
}

.menu-item:hover {
    background-color: #f0f0f0;
}

.menu-item:last-child {
    border-bottom: none;
}

/* Control dropdown visibility based on checkbox */
#menuToggle:checked~.menu .dropdown-menu {
    display: block;
}

#login {
    background: #373234;
    color: white;
    font-family: 'bgp', serif;
    padding: 8px;
    margin-right: 16px;
    border-radius: 4px;
    border: none;
    transition: background-color 0.2s ease, color 0.2s ease;
    cursor: pointer;
}

#login:hover {
    background: var(--primary-color);
}


#map {
    flex-grow: 1;
    display: none;
    outline: none;
}

.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    height: 100vh;
    background-color: #f8f9fa;
    position: relative;
}

.pulsing-dots {
    display: flex;
    gap: 8px;
    margin-top: 20px;
}

.dot {
    width: 16px;
    height: 16px;
    background-color: #33393f;
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}

.dot:nth-child(1) {
    animation-delay: 0s;
}

.dot:nth-child(2) {
    animation-delay: 0.3s;
}

.dot:nth-child(3) {
    animation-delay: 0.6s;
}


@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.5);
        opacity: 0.5;
    }
}

@keyframes fadeIn {

    0%,
    100% {
        opacity: 0;
    }

    50% {
        opacity: 1;
    }
}

.loader {
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    width: 24px;
    height: 24px;
    animation: spin 2s linear infinite;
    margin: auto;
  }

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


.markers-count {
    background: none padding-box rgb(255, 255, 255);
    font-size: 17px;
    padding: 10px;
    margin: 10px;
}

#userPhoto {
    height: 32px;
    width: 32px;
    border-radius: 50%;
}

#userInfo {
    cursor: default;
    line-height: 0;
}

#userGreeting {
    vertical-align: top;
    font-size: 1.2rem;
    line-height: 1.6;
    font-family: 'bgp', serif;
    margin-right: 16px;
}

.bottom-strip {
    position: absolute;
    bottom: 10px;
    width: 100%;
    overflow: auto;
    white-space: nowrap;
    background-color: rgba(0, 0, 0, 0.0);
    padding: 10px 0;
    cursor: grab;
}

.bottom-strip:active {
    cursor: grabbing !important;
}

.bottom-strip:active .card {
    cursor: grabbing !important;
}

.card {
    display: inline-block;
    width: 150px;
    height: 200px;
    background-color: white;
    border: 1px solid #ccc;
    border-radius: 8px;
    margin-left: 5px;
    margin-right: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: border-color 0.5s ease;
    box-sizing: border-box;
    cursor: pointer;
    /*transition: transform 0.1s ease, width 0.1s ease, height 0.1s ease;*/
}

.card.highlight {
    border: 2px solid blue;
    box-sizing: border-box;
    box-shadow: 0 0 10px rgba(0, 0, 255, 0.5);
}

.card.zoomed {
    position: fixed;
    top: 45%;
    left: 45%;
    transform: translate(-45%, -42%);
    margin: 0px;
    z-index: 1000;
    width: 90%;
    height: 90%;
    cursor: default ! important;
}

.card.zoomed .card-image {
    height: 42%;
    width: 42%;
    margin: 0 auto;
}

.card-image {
    width: 100%;
    height: 150px;
    background-size: cover;
    background-color: #ddd;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

.card-content {
    padding: 4px;
}

.card-title {
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 2px;
}

.card-description {
    display: none;
    font-size: 12px;
    color: #666;
    white-space: break-spaces;
    padding: 4px;
}

.card-button {
    display: none;
}

.card-extra-details {
    display: none;
    font-size: 12px;
    color: #333;
    margin-top: 5px;
    white-space: break-spaces;
    padding: 4px;
}

.card.zoomed .card-description {
    display: block;
}

.card.zoomed .card-button {
    display: block;
}

.card.zoomed .card-extra-details {
    display: block;
}

.close-btn {
    position: absolute;
    margin: 0;
    padding: 0;
    top: 15px;
    right: 15px;
    width: 30px;
    height: 30px;
    background-color: #383636;
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 20px;
    line-height: 30px;
    text-align: center;
    cursor: pointer;
    display: none;
}

.card.zoomed .close-btn {
    display: block;
}



@media (max-width: 768px) {
    #userGreeting {
        display: none;
    }
}