﻿/* ─────────────────────────────────────────────
   Input groups
   ───────────────────────────────────────────── */

.input-group {
    flex-wrap: nowrap !important;
}


/* ─────────────────────────────────────────────
   Full screen
   ───────────────────────────────────────────── */

html,
body {
    overflow: hidden !important;
    height: 100% !important;
}

    body.mainBodyWrapper {
        overflow: hidden !important;
        height: 100vh !important;
        padding-top: 0 !important;
    }

#navigationBar,
.it-nav,
nav.it-nav,
.it-mobile-drawer {
    display: none !important;
}

#playerContainer {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    height: 100vh !important;
    overflow: hidden;
    position: relative;
}

.container-fluid {
    padding: 0 !important;
    margin: 0 !important;
}

#Container {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    overflow: hidden;
}

#mapContainer2 {
    width: 100% !important;
    height: 100% !important;
    padding: 0 !important;
}

#iframeC,
#iframeB,
#iframeA {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
}

#map {
    width: 100% !important;
    height: 100% !important;
}


/* ─────────────────────────────────────────────
   Tour title chip
   ───────────────────────────────────────────── */

/*
#tourTitle {
    position: absolute !important;
    top: 12px !important;
    left: 12px;
    z-index: 50;
    background-color: transparent !important;
}
*/

/*
.tour-name-chip {
    height: 38px;
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
    background: rgba(0, 0, 0, 0.55) !important;
    backdrop-filter: blur(8px);
    color: #fff !important;
    font-size: 13px !important;
    font-weight: 500;
    padding: 6px 12px !important;
    border-radius: 20px !important;
    cursor: pointer;
    max-width: 300px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    border: none !important;
    text-shadow: none !important;
}
*/

.tour-name-chip:hover {
    background: rgba(0, 0, 0, 0.72) !important;
}

.info-icon {
    font-size: 14px !important;
    opacity: .7;
}


/* ─────────────────────────────────────────────
   Command bar
   ───────────────────────────────────────────── */

#commandBar {
    position: absolute !important;
    top: 8px !important;
    right: 8px !important;
    left: auto !important;
    transform: none !important;
    z-index: 100 !important;
    pointer-events: none;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    max-width: calc(100vw - 20px) !important;
}

#topCommandBar {
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
    pointer-events: auto;
    width: auto !important;
    float: none !important;
    visibility: visible !important;
    opacity: 1 !important;
    flex-wrap: nowrap;
    justify-content: flex-end;
}


    /* HUD buttons — circular dark pills */

    #topCommandBar .btn,
    #topCommandBar .btnOnMap3,
    #topCommandBar .btnOnMap2 {
        display: inline-flex;
        align-items: center !important;
        justify-content: center !important;
        height: 34px !important;
        padding: 0 !important;
        margin: 0 !important;
        background: #e9ecef !important;
        backdrop-filter: blur(8px);
        border: none !important;
        border-style: none !important;
        border-radius: 50% !important;
        cursor: pointer;
        transition: background .15s !important;
        opacity: 1 !important;
        box-shadow: none !important;
        float: none !important;
        width: 42px !important;
    }

        #topCommandBar .btn:hover,
        #topCommandBar .btnOnMap3:hover,
        #topCommandBar .btnOnMap2:hover {
            background: #1a9e5c !important;
        }

        #topCommandBar .btn i,
        #topCommandBar .btnOnMap3 i,
        #topCommandBar .btnOnMap2 i {
            font-size: 18px !important;
            margin: 0 !important;
        }


/* ─────────────────────────────────────────────
   Start button
   ───────────────────────────────────────────── */

#btnStart {
    width: auto !important;
    padding: 0 12px !important;
    border-radius: 20px !important;
    background: #1a9e5c !important;
    border: none !important;
    border-style: none !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    height: 34px !important;
    gap: 4px;
}

    #btnStart:hover {
        background: #157a47 !important;
    }

    #btnStart i {
        font-size: 14px !important;
    }

.small-screen-hidden {
    display: none !important;
}


/* ─────────────────────────────────────────────
   Setup panel
   ───────────────────────────────────────────── */

#createTour {
    position: absolute !important;
    top: 50px !important;
    right: 0 !important;
    left: auto !important;
    background: #fff !important;
    backdrop-filter: blur(12px);
    border-radius: 14px !important;
    border: 0.5px solid rgba(0, 0, 0, .12) !important;
    padding: 14px 16px !important;
    margin: 0 !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, .18) !important;
}


/* Kill outer float wrapper's shadow/background */

#commandBar > div[style*="float"] {
    float: none !important;
    box-shadow: none !important;
    background: transparent !important;
    opacity: 1 !important;
}

    #commandBar > div[style*="float"] > div {
        margin-bottom: 0 !important;
        width: auto !important;
        background: transparent !important;
    }


/* ─────────────────────────────────────────────
   Setup tabs
   ───────────────────────────────────────────── */

.tc-tab-group {
    display: inline-flex;
    border: 0.5px solid #dee2e6;
    border-radius: 8px;
    overflow: visible;
    margin-bottom: 12px;
}

#radioViewSetupLbl,
#radioRouteSetupLbl {
    font-size: 12px !important;
    font-weight: 500 !important;
    padding: 6px 12px !important;
    background: #f8f9fa !important;
    color: #495057 !important;
    border: none !important;
    border-right: 0.5px solid #dee2e6 !important;
    border-radius: 0 !important;
    cursor: pointer !important;
    pointer-events: auto !important;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin: 0 !important;
    user-select: none;
}

#radioRouteSetupLbl {
    border-right: none !important;
}

.btn-check:checked + #radioViewSetupLbl,
.btn-check:checked + #radioRouteSetupLbl {
    background: #e8f5e9 !important;
    color: #1a9e5c !important;
}


/* ─────────────────────────────────────────────
   Config layout
   ───────────────────────────────────────────── */

.tour-config {
    display: flex;
    flex-direction: column !important;
    gap: 10px !important;
    margin-top: 10px !important;
    background: #fff !important;
}

.tour-config-row {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    flex-wrap: nowrap;
    background: #fff !important;
}

.tour-config-label {
    font-size: 11px !important;
    font-weight: 600 !important;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: #6c757d !important;
    min-width: 80px;
    flex-shrink: 0;
}

.tour-config-subLabel {
    font-size: 11px !important;
    font-weight: 600 !important;
    text-transform: uppercase;
    color: #6c757d !important;
    flex-shrink: 0;
}

.tour-config-controls {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    flex-wrap: nowrap;
}


/* ─────────────────────────────────────────────
   Radio button groups
   ───────────────────────────────────────────── */

.tc-btn-group {
    display: inline-flex;
    border: 0.5px solid #dee2e6;
    border-radius: 8px;
    overflow: hidden;
}

    .tc-btn-group .tour-config-btn {
        font-size: 12px !important;
        padding: 5px 10px !important;
        background: #fff !important;
        color: #495057 !important;
        border: none !important;
        border-right: 0.5px solid #dee2e6 !important;
        border-radius: 0 !important;
        height: auto !important;
        cursor: pointer;
        display: inline-flex;
        align-items: center;
        gap: 4px;
        margin: 0 !important;
        transition: background .12s, color .12s;
    }

        .tc-btn-group .tour-config-btn:last-of-type {
            border-right: none !important;
        }

.btn-check:checked + .tour-config-btn {
    background: #e8f5e9 !important;
    color: #1a9e5c !important;
    font-weight: 600 !important;
}


/* ─────────────────────────────────────────────
   Dropdowns
   ───────────────────────────────────────────── */

#selectTimeBtn,
#musicSelectBtn {
    font-size: 12px !important;
    padding: 5px 10px !important;
    border-radius: 8px !important;
    border: 0.5px solid #dee2e6 !important;
    border-style: solid !important;
    background: #fff !important;
    color: #495057 !important;
    height: auto !important;
}


/* ─────────────────────────────────────────────
   Checkboxes
   ───────────────────────────────────────────── */

.form-check-input {
    accent-color: #1a9e5c !important;
}

.form-check-label {
    font-size: 13px !important;
    color: #495057 !important;
}


/* ─────────────────────────────────────────────
   Route config
   ───────────────────────────────────────────── */

#tourRouteConfig .input-group-text {
    font-size: 12px !important;
    background: #f8f9fa !important;
    border-color: #dee2e6 !important;
    min-width: 80px;
}

.tour-config-h38 {
    height: auto !important;
    font-size: 12px !important;
    padding: 4px 10px !important;
    border-style: solid !important;
}


/* ─────────────────────────────────────────────
   Footer
   ───────────────────────────────────────────── */

#secondRowEdit hr {
    margin: 8px 0 !important;
}

#btnCloseEdit {
    font-size: 13px !important;
    padding: 7px 14px !important;
    border-radius: 8px !important;
    background: #1a9e5c !important;
    color: #fff !important;
    border: none !important;
    height: auto !important;
}

    #btnCloseEdit:hover {
        background: #157a47 !important;
    }

#saveTourData {
    font-size: 13px !important;
    padding: 7px 14px !important;
    border-radius: 8px !important;
    border-style: solid !important;
    height: auto !important;
}


/* ─────────────────────────────────────────────
   Arrow / direction buttons
   ───────────────────────────────────────────── */

.arrowButton {
    width: 38px !important;
    height: 38px !important;
    padding: 0 !important;
    margin: 2px !important;
    background: rgba(0, 0, 0, 0.55) !important;
    backdrop-filter: blur(8px);
    border: none !important;
    border-radius: 8px !important;
    color: #fff !important;
    font-size: 15px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: background .15s !important;
}

    .arrowButton:hover {
        background: rgba(0, 0, 0, 0.75) !important;
    }

#commandDiv {
    position: absolute !important;
    right: 8px !important;
    bottom: 8px !important;
    top: auto !important;
    left: auto !important;
    width: auto !important;
    z-index: 50;
}

#commandDiv2 {
    position: absolute !important;
    right: 8px !important;
    bottom: 170px !important;
    top: auto !important;
    width: 36px !important;
    z-index: 50;
}

    #commandDiv2 > div {
        flex-direction: column !important;
        align-items: flex-end !important;
        gap: 2px !important;
        width: 36px !important;
    }

    #commandDiv2 .arrowButton {
        width: 36px !important;
        height: 36px !important;
    }


/* ─────────────────────────────────────────────
   Tour status bar
   ───────────────────────────────────────────── */


/* ─────────────────────────────────────────────
   Setup overlay
   ───────────────────────────────────────────── */

.tour-setup-overlay {
    position: fixed !important;
    inset: 0;
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(6px);
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    overflow-y: auto;
}

    .tour-setup-overlay.d-none {
        display: none !important;
    }

.tour-setup-card {
    width: min(480px, 100%);
    background: #fff;
    border-radius: 1rem;
    padding: 1.25rem;
    text-align: center;
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, .35);
    max-height: calc(100vh - 2rem);
    overflow-y: auto;
}

    .tour-setup-card h3 {
        font-size: 18px;
        font-weight: 600;
        color: #212529;
        margin: 0;
    }

    .tour-setup-card video {
        width: 100%;
        border-radius: 10px;
        max-height: 200px;
        object-fit: cover;
    }

.setup-text {
    font-size: 14px;
    color: #6c757d;
    margin: 0;
    line-height: 1.6;
}

.look-around-hint {
    font-size: 13px;
    color: #000;
    margin: 0;
}

.tour-setup-card .btn {
    padding: 10px !important;
    border-radius: 10px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    border: 1px solid #dee2e6 !important;
    border-style: solid !important;
    cursor: pointer;
    background: #f8f9fa !important;
    color: #495057 !important;
    width: 100%;
    display: block;
}

.setup-btn-row {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 0.75rem;
    flex-wrap: wrap;
}

.setup-btn {
    flex: 1;
    max-width: 160px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 20px;
    border: 1.5px solid #dee2e6;
    background: #f8f9fa;
    color: #495057;
    cursor: pointer;
    transition: background .15s;
}

    .setup-btn:hover {
        background: #e9ecef;
    }

/*
.tour-setup-card .btn:first-of-type {
    background: #1a9e5c !important;
    color: #fff !important;
    border-color: #1a9e5c !important;
}
*/

.hidden-text {
    display: none;
}
