:root {
    --primary-color: #ffcc00;
    /* Signature Playdate Yellow accent */
    --dark: #ba3b01;
    --light: #ffffff;

    /* Customizable Map Colors */
    --map-water-color: #000000;
    --map-island-color: #feaf1a;
    --map-border-color: #ffffff;
    --map-overlay-color: rgba(0, 0, 0, 0.5);
    /* Adjust opacity here */
}

html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    width: 100vw;
    height: 100vh;
    overflow: hidden !important;
    position: fixed;
    top: 0;
    left: 0;
    font-family: 'Outfit', sans-serif;
    background-color: var(--dark);
    /* Prevent touch gestures */
    touch-action: none;
    -ms-touch-action: none;
    /* Prevent zoom/scroll behaviors */
    overscroll-behavior: none;
    -webkit-user-select: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

#map {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

/* Customizable map features colors */
#map {
    background-color: var(--map-water-color) !important;
}

path.map-vector-feature {
    fill: var(--map-island-color);
    stroke: var(--map-border-color);
    stroke-width: 3px;
    fill-opacity: 1;
    stroke-opacity: 1;
}

/* Glassmorphism background for the logo to stand out */
.logo-container {
    position: absolute;
    top: 25%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000;
    pointer-events: none;
    /* Let map events pass through if needed */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    filter: drop-shadow(4px 12px 6px rgba(0, 0, 0, 0.8));
    padding: 40px;
}

@keyframes float {
    0% {
        transform: translate(-50%, -50%) translateY(0px);
    }

    50% {
        transform: translate(-50%, -50%) translateY(-15px);
    }

    100% {
        transform: translate(-50%, -50%) translateY(0px);
    }
}

.logo-container img {
    width: 50vw;
    height: auto;
    object-fit: contain;
}

@media (max-width: 768px) {
    .logo-container img {
        min-width: 120vw;
    }
}

/* Pin CSS */
.custom-pin {
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
}

.pin-body {
    width: 100%;
    height: 100%;
    background: var(--primary-color);
    border-radius: 50% 50% 50% 0;
    position: relative;
    transform: rotate(-45deg);
    box-shadow: -6px 6px 15px rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: popIn 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    border: 3px solid var(--dark);
}

/* Inner white circle for the pin frame */
.pin-body::after {
    content: '';
    width: 80%;
    height: 80%;
    background: var(--light);
    border-radius: 50%;
    position: absolute;
}

.pin-image {
    width: 76%;
    height: 76%;
    border-radius: 50%;
    object-fit: cover;
    position: absolute;
    z-index: 10;
    transform: rotate(45deg);
    /* Counter-rotate the image to face upright */
    border: 2px solid var(--light);
}

@keyframes popIn {
    0% {
        transform: scale(0) rotate(-45deg) translateY(20px);
        opacity: 0;
    }

    50% {
        transform: scale(1.1) rotate(-45deg) translateY(-5px);
    }

    100% {
        transform: scale(1) rotate(-45deg) translateY(0);
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: scale(1) rotate(-45deg);
    }

    to {
        opacity: 0;
        transform: scale(0.5) rotate(-45deg) translateY(-20px);
    }
}

.fade-out .pin-body {
    animation: fadeOut 0.5s ease-in forwards !important;
}

.map-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--map-overlay-color);
    z-index: 500;
    pointer-events: none;
}

.catalog-badge {
    position: absolute;
    bottom: 20%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), filter 0.2s;
    filter: drop-shadow(0px 8px 16px rgba(0, 0, 0, 0.4));
}

.catalog-badge:hover {
    transform: translateX(-50%) scale(1.05);
    filter: drop-shadow(0px 12px 20px rgba(0, 0, 0, 0.6));
}

.catalog-badge img {
    display: block;
    height: auto;
    max-width: 100%;
    border-radius: 8px;
    /* Adjusts well with standard badges */
}
