
/* =========================================================
   GURUJI A.S. RAGHAVAN
   100th Birth Centenary Celebration

   JOURNEY TIMELINE + LOCATION MAP
========================================================= */


/* =========================================================
   PAGE
========================================================= */

.journey-page {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 15px;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
}



/* =========================================================
   GURUJI INTRO
========================================================= */

.guruji-intro {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 25px;

    margin-bottom: 20px;
    padding: 18px;

    box-sizing: border-box;

    background: #faf7f0;

    border: 1px solid #e4dccd;

    border-radius: 10px;
}



/* =========================================================
   GURUJI PHOTO
========================================================= */

.guruji-photo {
    width: 150px;
    min-width: 150px;
    height: 150px;

    overflow: hidden;

    border-radius: 10px;

    border: 3px solid #ddd;

    background: #eee;

    display: flex;
    align-items: center;
    justify-content: center;
}


.guruji-photo img {
    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center 25%;

    display: block;
}



/* =========================================================
   INTRO TEXT
========================================================= */

.guruji-description {
    flex: 1;
}


.guruji-name {
    font-size: 25px;
    font-weight: bold;
    color: #6b3f00;

    margin-bottom: 4px;
}


.guruji-title {
    font-size: 17px;
    font-weight: bold;

    color: #9a6415;

    margin-bottom: 10px;
}


.guruji-text {
    font-size: 15px;

    line-height: 1.55;

    color: #444;
}



/* =========================================================
   MAIN JOURNEY AREA
========================================================= */

.journey-area {

    width: 100%;

    display: flex;

    gap: 15px;

    height: 600px;

    min-height: 500px;
}



/* =========================================================
   LEFT JOURNEY PANEL
========================================================= */

.journey-panel {

    width: 38%;

    min-width: 280px;

    height: 100%;

    display: flex;

    flex-direction: column;

    background: #fff;

    border: 1px solid #ddd;

    border-radius: 8px;

    overflow: hidden;
}



/* =========================================================
   JOURNEY HEADER
========================================================= */

.journey-panel-header {

    flex-shrink: 0;

    padding: 15px;

    background: #6b3f00;

    color: white;
}


.journey-panel-title {

    font-size: 21px;

    font-weight: bold;
}


.journey-panel-title i {

    margin-right: 7px;

}


.journey-panel-subtitle {

    margin-top: 4px;

    font-size: 13px;

    opacity: 0.9;
}



/* =========================================================
   JOURNEY LIST
========================================================= */

.journey-list {

    flex: 1;

    overflow-y: auto;

    overflow-x: hidden;

    padding: 8px;

    box-sizing: border-box;

    background: #fafafa;
}



/* =========================================================
   JOURNEY ITEM
========================================================= */

.journey-item {

    position: relative;

    padding: 12px 13px;

    margin-bottom: 8px;

    background: white;

    border: 1px solid #ddd;

    border-left: 5px solid transparent;

    border-radius: 6px;

    cursor: pointer;

    transition:
        background 0.2s ease,
        border 0.2s ease,
        box-shadow 0.2s ease;

    user-select: none;
}


.journey-item:hover {

    background: #fffaf0;

    border-color: #d6c19a;

    box-shadow: 0 2px 7px rgba(0,0,0,0.08);
}


.journey-item.selected {

    background: #fff4d8;

    border-left-color: #b56b00;

    border-top-color: #d6b276;

    border-right-color: #d6b276;

    border-bottom-color: #d6b276;

    box-shadow: 0 2px 8px rgba(0,0,0,0.10);
}



/* =========================================================
   JOURNEY DATE
========================================================= */

.journey-date {

    font-size: 13px;

    font-weight: bold;

    color: #8b5a00;

    margin-bottom: 5px;
}


.journey-date i {

    width: 18px;

    margin-right: 4px;
}



/* =========================================================
   JOURNEY CITY
========================================================= */

.journey-city {

    font-size: 18px;

    font-weight: bold;

    color: #333;

    margin-bottom: 4px;
}


.journey-city i {

    width: 18px;

    margin-right: 4px;

    color: #b56b00;
}



/* =========================================================
   VENUE
========================================================= */

.journey-venue {

    font-size: 14px;

    color: #555;

    line-height: 1.4;

    margin-bottom: 4px;
}



/* =========================================================
   NOTES
========================================================= */

.journey-notes {

    font-size: 13px;

    color: #777;

    line-height: 1.4;
}



/* =========================================================
   LOADING
========================================================= */

.journey-loading {

    padding: 30px 10px;

    text-align: center;

    color: #777;

    font-size: 14px;
}


.journey-loading i {

    margin-right: 5px;
}



/* =========================================================
   MAP PANEL
========================================================= */

.map-panel {

    position: relative;

    flex: 1;

    min-width: 0;

    height: 100%;

    border: 1px solid #ddd;

    border-radius: 8px;

    overflow: hidden;

    background: #eee;
}



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

.map-header {

    position: absolute;

    z-index: 500;

    top: 10px;

    left: 60px;

    right: 10px;

    min-height: 45px;

    padding: 8px 12px;

    box-sizing: border-box;

    background: rgba(255,255,255,0.94);

    border-radius: 6px;

    box-shadow: 0 2px 8px rgba(0,0,0,0.18);

    pointer-events: none;
}


.map-city {

    font-size: 18px;

    font-weight: bold;

    color: #5e3600;
}


.map-date {

    display: inline-block;

    margin-right: 8px;

    font-size: 13px;

    color: #777;
}


.map-venue {

    display: inline-block;

    font-size: 13px;

    color: #555;
}



/* =========================================================
   LEAFLET MAP
========================================================= */

#journeyMap {

    width: 100%;

    height: 100%;

    min-height: 500px;

    background: #e5e5e5;
}


#journeyMap .leaflet-container {

    width: 100%;

    height: 100%;
}



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

.journey-popup {

    min-width: 220px;

    max-width: 300px;

    font-size: 14px;

    line-height: 1.4;
}


.journey-popup strong {

    display: block;

    font-size: 17px;

    color: #6b3f00;

    margin-bottom: 3px;
}


.journey-popup-notes {

    margin-top: 7px;

    padding-top: 7px;

    border-top: 1px solid #eee;

    color: #666;
}



/* =========================================================
   SHOW DETAILS BUTTON
========================================================= */

.journey-details-container {

    margin-top: 10px;

    padding-top: 8px;

    border-top: 1px solid #eee;

    text-align: center;
}


.journey-details-btn {

    display: inline-block;

    width: 100%;

    padding: 8px 12px;

    border: 0;

    border-radius: 5px;

    background: #6b3f00;

    color: white;

    font-size: 14px;

    font-weight: bold;

    cursor: pointer;

    transition: background 0.2s ease;
}


.journey-details-btn:hover {

    background: #8b5700;
}


.journey-details-btn i {

    margin-right: 5px;
}


.journey-details-btn.disabled,
.journey-details-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background-color: #999;
    border-color: #999;
}



/* =========================================================
   IMAGE MODAL
========================================================= */

.journey-image-modal {

    position: fixed;

    z-index: 99999;

    top: 0;
    left: 0;
    right: 0;
    bottom: 0;

    width: 100%;
    height: 100%;

    display: none;

    align-items: center;
    justify-content: center;

    padding: 20px;

    box-sizing: border-box;

    background: rgba(0,0,0,0.82);
}


.journey-image-modal.show {

    display: flex;
}



/* =========================================================
   IMAGE MODAL CONTENT
========================================================= */

.journey-image-modal-content {

    position: relative;

    max-width: 95vw;

    max-height: 95vh;

    padding: 15px;

    box-sizing: border-box;

    background: white;

    border-radius: 8px;

    box-shadow: 0 10px 40px rgba(0,0,0,0.5);

    display: flex;

    flex-direction: column;

    align-items: center;
}



/* =========================================================
   CLOSE BUTTON
========================================================= */

.journey-image-close {

    position: absolute;

    z-index: 5;

    top: 8px;

    right: 8px;

    width: 34px;

    height: 34px;

    border: none;

    border-radius: 50%;

    background: rgba(0,0,0,0.70);

    color: white;

    font-size: 18px;

    cursor: pointer;
}


.journey-image-close:hover {

    background: rgba(0,0,0,0.9);
}



/* =========================================================
   IMAGE TITLE
========================================================= */

.journey-image-title {

    width: 100%;

    padding: 5px 45px 10px 5px;

    box-sizing: border-box;

    text-align: center;

    font-size: 18px;

    font-weight: bold;

    color: #6b3f00;
}



/* =========================================================
   IMAGE WRAPPER
========================================================= */

.journey-image-wrapper {

    max-width: 90vw;

    max-height: 82vh;

    overflow: auto;

    text-align: center;
}


.journey-image-wrapper img {

    display: block;

    max-width: 90vw;

    max-height: 82vh;

    width: auto;

    height: auto;

    margin: 0 auto;

    object-fit: contain;
}



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

@media screen and (max-width: 800px) {

    .journey-page {

        padding: 8px;
    }


    .guruji-intro {

        flex-direction: column;

        text-align: center;

        gap: 12px;
    }


    .guruji-photo {

        width: 125px;

        min-width: 125px;

        height: 125px;
    }


    .guruji-name {

        font-size: 21px;
    }


    .guruji-text {

        font-size: 14px;
    }


    .journey-area {

        flex-direction: column;

        height: auto;

        min-height: 0;
    }


    .journey-panel {

        width: 100%;

        min-width: 0;

        height: 380px;
    }


    .map-panel {

        width: 100%;

        height: 500px;

        min-height: 500px;
    }


    #journeyMap {

        min-height: 500px;
    }


    .map-header {

        left: 50px;

        right: 8px;

        top: 8px;
    }

}

.journey-disclaimer {
    font-size: 9px;
    line-height: 1.4;
    color: gray;
    text-align: center;
    margin: 8px 10px 15px 10px;
}

/* =========================================================
   VERY SMALL SCREENS
========================================================= */

@media screen and (max-width: 480px) {

    .journey-panel {

        height: 350px;
    }


    .map-panel {

        height: 450px;

        min-height: 450px;
    }


    #journeyMap {

        min-height: 450px;
    }


    .journey-image-modal {

        padding: 8px;
    }


    .journey-image-modal-content {

        max-width: 98vw;

        max-height: 96vh;

        padding: 8px;
    }


    .journey-image-wrapper img {

        max-width: 96vw;

        max-height: 82vh;
    }

}

