﻿/* ========================================= */
/* --- GOOGLE MAPS INFO WINDOW OVERRIDES --- */
/* (Clears out the default speech bubble)    */
/* ========================================= */

.gm-style {
    font-family: FSElliotWebBold, sans-serif !important;
}

    .gm-style .gm-style-iw-c {
        background-color: transparent !important;
        box-shadow: none !important;
        border: none !important;
        padding: 0 !important;
        border-radius: 0 !important;
        filter: none !important;
        overflow: visible !important;
    }

    .gm-style .gm-style-iw-d {
        overflow: visible !important;
        padding: 0 !important;
        max-width: none !important;
    }

    /* Hide the triangle tail safely without collapsing the master wrapper */
    .gm-style .gm-style-iw-tc {
        opacity: 0 !important;
        visibility: hidden !important;
    }

    /* Hides the original Google Maps top bar and native close button */
    .gm-style .gm-style-iw-chr {
        display: none !important;
    }

/* ========================================= */
/* --- CUSTOM INFO WINDOW STYLING ---        */
/* (Matches your new mockup design)          */
/* ========================================= */

/* Outer container & Shadow */
.fp-info-window {
    background-color: #ffffff;
    border-radius: 6px;
    width: 320px;
    max-width: 85vw;
    color: #333;
    padding: 0;
    position: relative;
    filter: drop-shadow(0 4px 10px rgba(0,0,0,0.25));
    box-shadow: none !important;
    z-index: 1;
}

    /* Base Triangular Pointer (Default state) */
    .fp-info-window::after {
        content: '';
        position: absolute;
        bottom: -15px;
        left: 50%;
        transform: translateX(-50%) rotate(45deg);
        width: 16px;
        height: 16px;
        background-color: #333333; /* Dark pointer for non-cheapest */
        z-index: -1;
    }

    /* Default state bottom border to match the dark pointer */
    .fp-info-window:not(.fp-iw-cheapest) {
        border-bottom: 0.5rem solid #333333;
    }

        .fp-info-window:not(.fp-iw-cheapest) .fp-iw-header {
            display: none;
        }

    /* --- CHEAPEST STATION MODIFIERS --- */
    .fp-info-window.fp-iw-cheapest .fp-iw-header {
        background-color: #D25D15;
        color: #ffffff;
        padding: 4px 10px;
        border-top-left-radius: 6px;
        border-top-right-radius: 6px;
        display: flex;
        align-items: center;
        font-size: 1rem;
        font-weight: bold;
    }

    /* Orange pointer and bottom border for cheapest */
    .fp-info-window.fp-iw-cheapest {
        border-bottom: 0.5rem solid #D25D15;
    }

        .fp-info-window.fp-iw-cheapest::after {
            background-color: #D25D15;
        }

/* --- INNER CONTENT FORMATTING --- */
.fp-iw-body {
    padding: 14px 18px 18px 18px;
    position: relative;
    background: #ffffff;
    border-bottom-left-radius: 6px;
    border-bottom-right-radius: 6px;
}

/* Custom Close (X) Icon */
.fp-iw-close-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 0.2s;
    z-index: 10;
    color: #333;
}

    .fp-iw-close-btn:hover {
        opacity: 1;
    }

/* Table Styling */
.fp-iw-prices {
    /*width: 100%;*/
    /*margin-bottom: 0;*/
    background: #EAF4F1;
    padding: 8px 8px 8px 9px;
    border-radius: 2px;
}

.fp-iw-cheapest .fp-iw-prices {
    background: #FBF0E9;
}

.fp-iw-brand {
    width: 95%;
}