﻿/* --- Map Popups --- */
.price-marker {
    background: #d35400;
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 14px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
    position: relative;
    cursor: pointer;
    border: 2px solid white;
    transition: transform 0.2s ease;
}

    .price-marker:hover {
        transform: scale(1.1);
        z-index: 1000 !important;
    }

    .price-marker::after {
        content: '';
        position: absolute;
        bottom: -8px;
        left: 50%;
        transform: translateX(-50%);
        border-width: 8px 8px 0;
        border-style: solid;
        border-color: white transparent transparent transparent;
    }

    .price-marker.price-marker-cheapest {
        background: dodgerblue !important;
        z-index: 999; /* Ensure the cheapest marker sits slightly above others */
        font-size: 20px;
    }

.price-marker-cluster {
    background: #a32020;
}

    .price-marker.price-marker-cheapest,
    .price-marker-cluster.price-marker-cheapest {
        background: dodgerblue !important;
        z-index: 999;
    }



.price-marker .station-name {
    display: none;
}

.show-marker-names .price-marker .station-name {
    display: block;
}

@keyframes markerPop {
    0% {
        transform: scale(0) translateY(10px);
        opacity: 0;
    }

    70% {
        transform: scale(1.1) translateY(-2px);
        opacity: 1;
    }

    100% {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

.marker-pop {
    /* The cubic-bezier gives it that nice bouncy/springy feel */
    animation: markerPop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes markerFadeIn {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

.marker-fade-in {
    /* 0.2s duration, ease-in-out makes it start and end gently */
    animation: markerFadeIn 0.2s ease-in-out forwards;
}

.info-window-content {
    min-width: 200px;
    max-width: min(320px, 75vw);
    white-space: normal;
}

.gm-style .gm-style-iw-c {
    border-bottom: 6px solid #d35400 !important;
    border-bottom-left-radius: 8px !important;
    border-bottom-right-radius: 8px !important;
}

.gm-style .gm-style-iw-d {
    padding-bottom: 5px !important;
}

/* --- Layout --- */
.h-mobile-50 {
    height: 50vh;
}

@media (min-width: 768px) {
    .h-mobile-50 {
        height: 100vh !important;
    }
}

/* --- NEW: Custom Search Bar matching Mockup --- */
.search-wrapper {
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 2px;
    /*display: flex;*/
    background: #fff;
    min-height: 44px; /* Gives the wrapper enough room to hold the button */
}

    .search-wrapper gmp-place-autocomplete {
        border: none;
        box-shadow: none;
        background: transparent;
        flex-grow: 1;
        padding-left: 5px;
        outline: none;
        font-size: 0.7rem;
        color: #555;
        min-width: 0; /* Prevents the input from pushing the button out on small screens */
    }

        .search-wrapper gmp-place-autocomplete:focus-visible {
            outline: none !important;
        }

    .search-wrapper .near-me-btn {
        background-color: #e5a4a4 !important;
        color: #a83232 !important;
        border-radius: 5px !important;
        padding: 0.25em 0.25em !important;
        font-size: 0.85rem !important;
        display: flex !important;
        align-items: center !important;
        gap: 6px !important;
        font-weight: bold !important;
        border: none !important;
        margin: 0 5px 0 0 !important;
        /* These three lines fix the breakout issue */
        white-space: nowrap !important; /* Stops text from wrapping to two lines */
        text-transform: none !important; /* Stops forced uppercase */
        line-height: 1 !important; /* Removes extra invisible vertical space */
    }

    .search-wrapper .search-icon {
        color: #d98888;
        padding: 0 10px 0 5px;
        cursor: pointer;
        font-size: 1.1rem;
    }

/* --- NEW: Custom Pill Filters matching Mockup --- */
.pill-container {
    border: 1px solid #ccc;
    border-radius: 50px;
    background-color: #fff;
    padding: 3px;
    display: flex;
    text-align: center;
}

.app-container .pill-container .btn {
    border: none !important;
    color: #555 !important;
    font-weight: normal !important;
    flex: 1;
    border-radius: 50px;
    transition: all 0.2s ease-in-out;
    padding: 6px 12px !important;
    font-size: 0.85rem !important;
    letter-spacing: normal !important;
    text-transform: none !important;
    margin: 0 !important;
    /* --- NEW RULES FOR CENTERING --- */
    display: flex !important; /* Turns the label into a flex container */
    align-items: center !important; /* Centers the text vertically */
    justify-content: center !important; /* Centers the text horizontally */
    line-height: 1.1 !important; /* Keeps the two lines of 'Super Unleaded' tight so it doesn't stretch the pill height */
    text-align: center !important; /* Ensures the wrapped text aligns to the center of its own block */
}

.app-container .pill-container .btn-check:checked + .btn {
    background-color: #d35400 !important; /* Orange */
    color: #fff !important;
    font-weight: bold !important;
}

.small-text {
    font-size: 0.6rem;
}

.logo {
    width: 1.75rem;
    height: 1.75rem;
    margin-right: 0.5rem;
}

.station-list-warning {
    margin-left: -0.25em;
    margin-right: -0.5em;
}

/* Custom Google Maps Location Control */
.custom-map-control-location {
    background-color: #fff;
    border: none;
    border-radius: 2px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.3);
    cursor: pointer;
    margin-right: 10px;
    margin-bottom: 22px;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.2s ease-in-out;
}

    .custom-map-control-location:hover {
        background-color: #eee;
    }

/* Classic Google Maps Blue Dot */
.user-location-dot {
    width: 16px;
    height: 16px;
    background-color: #4285F4; /* Google Blue */
    border: 3px solid white;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}