
/* ============================================================
   lankawayfarer
   TRIP PLANNER MAP
   STYLES
============================================================ */


/* ============================================================
   MAP CARD
============================================================ */

.trip-map-card {

    width: 100%;

    margin-top: 24px;

    overflow: hidden;

    background:
        #ffffff;

    border:
        1px solid #e7e7e7;

    border-radius:
        18px;

    box-shadow:
        0 8px 30px rgba(0,
            0,
            0,
            0.06);

}


/* ============================================================
   MAP HEADER
============================================================ */

.trip-map-header {

    display:
        flex;

    align-items:
        center;

    justify-content:
        space-between;

    gap:
        20px;

    padding:
        20px 22px;

    border-bottom:
        1px solid #eeeeee;

}


.trip-map-header-content {

    min-width:
        0;

}


.trip-map-header h3 {

    margin:
        0;

    font-size:
        20px;

    line-height:
        1.3;

    font-weight:
        700;

    color:
        #1f2937;

}


.trip-map-header p {

    margin:
        5px 0 0;

    font-size:
        14px;

    line-height:
        1.5;

    color:
        #6b7280;

}


/* ============================================================
   MAP HEADER BADGE
============================================================ */

.trip-map-badge {

    display:
        inline-flex;

    align-items:
        center;

    gap:
        6px;

    flex-shrink:
        0;

    padding:
        7px 11px;

    border-radius:
        999px;

    background:
        #f0fdf4;

    color:
        #166534;

    font-size:
        12px;

    font-weight:
        700;

}


/* ============================================================
   MAP WRAPPER
============================================================ */

.trip-map-wrapper {

    position:
        relative;

    width:
        100%;

    height:
        520px;

    background:
        #eef2f1;

}


/* ============================================================
   MAP CONTAINER
============================================================ */

#tripJourneyMap {

    width:
        100%;

    height:
        100%;

    min-height:
        520px;

    z-index:
        1;

}


/* ============================================================
   LEAFLET CONTROL LAYER
============================================================ */

#tripJourneyMap .leaflet-control {

    z-index:
        500;

}


#tripJourneyMap .leaflet-top,
#tripJourneyMap .leaflet-bottom {

    z-index:
        500;

}


/* ============================================================
   CUSTOM DESTINATION MARKER
============================================================ */

.lankaquest-trip-marker-wrapper {

    background:
        transparent;

    border:
        0;

}


.lankaquest-trip-marker {

    position:
        relative;

    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    width:
        42px;

    height:
        42px;

    border:
        3px solid #ffffff;

    border-radius:
        50% 50% 50% 0;

    background:
        #176b52;

    box-shadow:
        0 4px 12px rgba(0,
            0,
            0,
            0.25);

    transform:
        rotate(-45deg);

}


.lankaquest-trip-marker span {

    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    width:
        100%;

    height:
        100%;

    color:
        #ffffff;

    font-size:
        14px;

    font-weight:
        800;

    transform:
        rotate(45deg);

}


/* ============================================================
   ROUTE LINE
============================================================ */

.lankaquest-trip-route {

    stroke:
        #176b52;

    stroke-width:
        6;

    stroke-opacity:
        0.82;

    stroke-linecap:
        round;

    stroke-linejoin:
        round;

    filter:
        drop-shadow(0 2px 3px rgba(0,
                0,
                0,
                0.18));

}


/* ============================================================
   POPUP
============================================================ */

.lankaquest-trip-popup {

    width:
        240px;

    overflow:
        hidden;

    border-radius:
        12px;

    background:
        #ffffff;

}


.lankaquest-trip-popup-image {

    display:
        block;

    width:
        100%;

    height:
        130px;

    object-fit:
        cover;

}


.lankaquest-trip-popup-content {

    padding:
        12px 13px 13px;

}


.lankaquest-trip-popup-number {

    display:
        inline-block;

    margin-bottom:
        5px;

    font-size:
        11px;

    font-weight:
        700;

    letter-spacing:
        0.04em;

    text-transform:
        uppercase;

    color:
        #176b52;

}


.lankaquest-trip-popup h4 {

    margin:
        0;

    font-size:
        16px;

    line-height:
        1.35;

    color:
        #1f2937;

}


.lankaquest-trip-popup p {

    margin:
        6px 0 0;

    font-size:
        12px;

    line-height:
        1.45;

    color:
        #6b7280;

}


/* ============================================================
   ROUTE SUMMARY
============================================================ */

.trip-map-summary {

    display:
        grid;

    grid-template-columns:
        repeat(2,
            minmax(0,
                1fr));

    gap:
        1px;

    background:
        #eeeeee;

    border-top:
        1px solid #eeeeee;

}


.trip-map-summary-item {

    display:
        flex;

    align-items:
        center;

    gap:
        11px;

    padding:
        15px 18px;

    background:
        #ffffff;

}


.trip-map-summary-icon {

    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    flex-shrink:
        0;

    width:
        38px;

    height:
        38px;

    border-radius:
        10px;

    background:
        #f0fdf4;

    font-size:
        18px;

}


.trip-map-summary-label {

    display:
        block;

    margin-bottom:
        2px;

    font-size:
        11px;

    font-weight:
        600;

    text-transform:
        uppercase;

    letter-spacing:
        0.04em;

    color:
        #9ca3af;

}


.trip-map-summary-value {

    display:
        block;

    font-size:
        15px;

    font-weight:
        700;

    color:
        #1f2937;

}


/* ============================================================
   ROUTE STATUS
============================================================ */

.trip-map-route-status {

    padding:
        11px 18px;

    border-top:
        1px solid #eeeeee;

    background:
        #fafafa;

    font-size:
        12px;

    line-height:
        1.5;

    color:
        #6b7280;

}


.trip-map-route-status.is-error {

    color:
        #b42318;

    background:
        #fff7f7;

}


/* ============================================================
   EMPTY MAP
============================================================ */

#tripJourneyMap.is-empty::after {

    content:
        "";

    position:
        absolute;

    inset:
        0;

    pointer-events:
        none;

    background:
        linear-gradient(180deg,
            rgba(255,
                255,
                255,
                0.10),
            rgba(255,
                255,
                255,
                0.22));

}


/* ============================================================
   MAP ERROR
============================================================ */

.trip-map-error {

    position:
        absolute;

    inset:
        0;

    z-index:
        20;

    display:
        flex;

    flex-direction:
        column;

    align-items:
        center;

    justify-content:
        center;

    padding:
        30px;

    text-align:
        center;

    background:
        #f8faf9;

}


.trip-map-error-icon {

    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    width:
        64px;

    height:
        64px;

    margin-bottom:
        14px;

    border-radius:
        50%;

    background:
        #edf8f1;

    font-size:
        30px;

}


.trip-map-error strong {

    margin-bottom:
        6px;

    font-size:
        17px;

    color:
        #1f2937;

}


.trip-map-error p {

    max-width:
        420px;

    margin:
        0;

    font-size:
        13px;

    line-height:
        1.6;

    color:
        #6b7280;

}


/* ============================================================
   LEAFLET POPUP OVERRIDE
============================================================ */

#tripJourneyMap .leaflet-popup-content-wrapper {

    padding:
        0;

    overflow:
        hidden;

    border-radius:
        12px;

}


#tripJourneyMap .leaflet-popup-content {

    margin:
        0;

}


#tripJourneyMap .leaflet-popup-tip {

    background:
        #ffffff;

}


/* ============================================================
   LEAFLET ZOOM CONTROLS
============================================================ */

#tripJourneyMap .leaflet-control-zoom {

    overflow:
        hidden;

    border:
        0;

    border-radius:
        10px;

    box-shadow:
        0 4px 14px rgba(0,
            0,
            0,
            0.15);

}


#tripJourneyMap .leaflet-control-zoom a {

    width:
        36px;

    height:
        36px;

    line-height:
        36px;

    border:
        0;

    color:
        #374151;

    background:
        #ffffff;

}


#tripJourneyMap .leaflet-control-zoom a:hover {

    background:
        #f3f4f6;

}


/* ============================================================
   MOBILE
============================================================ */

@media (max-width: 768px) {

    .trip-map-card {

        margin-top:
            18px;

        border-radius:
            14px;

    }


    .trip-map-header {

        align-items:
            flex-start;

        padding:
            17px;

    }


    .trip-map-header h3 {

        font-size:
            18px;

    }


    .trip-map-header p {

        font-size:
            13px;

    }


    .trip-map-badge {

        display:
            none;

    }


    .trip-map-wrapper {

        height:
            420px;

    }


    #tripJourneyMap {

        min-height:
            420px;

    }


    .trip-map-summary {

        grid-template-columns:
            1fr;

    }


    .trip-map-summary-item {

        padding:
            13px 16px;

    }

}


/* ============================================================
   SMALL MOBILE
============================================================ */

@media (max-width: 480px) {

    .trip-map-wrapper {

        height:
            360px;

    }


    #tripJourneyMap {

        min-height:
            360px;

    }


    .lankaquest-trip-popup {

        width:
            210px;

    }


    .lankaquest-trip-popup-image {

        height:
            110px;

    }


    .trip-map-summary-item {

        padding:
            12px 14px;

    }


    .trip-map-summary-icon {

        width:
            34px;

        height:
            34px;

        font-size:
            16px;

    }

}


/* ============================================================
   ACCESSIBILITY
============================================================ */

@media (prefers-reduced-motion: reduce) {

    .lankaquest-trip-marker {

        transition:
            none;

    }

}


/* ============================================================
   END TRIP-MAP.CSS
============================================================ */
