/* AeroXC archive - merged CSS
   Cleaned from merge_aero_archive.css.
   Names are preserved; only redundant/empty/conflicting rules were merged or simplified.
*/

/* -------------------------------------------------------------------------
   GRAV
   ------------------------------------------------------------------------- */
.container.grid-lg {
    max-width: 1100px;
}

/* -------------------------------------------------------------------------
   Base
   ------------------------------------------------------------------------- */

.hidden {
    visibility: hidden;
}

/* -------------------------------------------------------------------------
   Archive wrapper / iframe
   ------------------------------------------------------------------------- */

.archive-iframe {
    width: 100%;
    height: 960px;
    border: 0;
    border-radius: 16px;
}

/* ladeni zrusit tento .container*/
.container {
}

/* zmena */
#aeroxc-archive {
    max-width: 1200px;
    font-family: Arial, sans-serif;		
    height: 100%;		
	/*background: magenta;*/
}

/* -------------------------------------------------------------------------
   Toolbar / buttons / icons
   ------------------------------------------------------------------------- */

.archive-toolbar {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.archive-toolbar button {
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid #ccd6e0;
    background: #1383c6;
    color: white;
    font-weight: bold;
    cursor: pointer;
}

.icon-button,
.icon-button-fullscreen,
.icon-button-map {
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 34px;
    padding: 0 12px;
    border: 0;
    border-radius: 999px;
    background: #ffffff00;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
}

.icon-button-fullscreen {
    display:none;
    align-items: center;
    justify-content: center;
	margin-top: 3px;
    border: 0;    
    background: #ffffff00;
    color: #ffffff;    
    cursor: pointer;    
}

.icon-button-map {
    display: none;
}

.icon-button:hover,
.icon-button-map:hover {
    background: #fbb040;
    color: #111827;
}

.ui-icon {
    width: 20px;
    height: 20px;
    fill: currentColor;
    flex: 0 0 auto;
    margin-top: 0;
}

/* mobile-only map button hook */
.archive-side-toggle {
    display: none;
}

/* -------------------------------------------------------------------------
   Archive picker / search autocomplete
   ------------------------------------------------------------------------- */

.archive-picker {
    position: relative;
    flex: 1 1 320px;
    min-width: 240px;
}

.archive-search-input {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 38px 10px 12px;
    border-radius: 10px;
    border: 1px solid #ccd6e0;
    background: white;
    font-size: 15px;
}

.archive-search-input:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.archive-search-clear {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 26px;
    height: 26px;
    border: 0;
    border-radius: 999px;
    background: #eef2f6;
    color: #475467;
    cursor: pointer;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    line-height: 1;
    padding: 0;
}

.archive-search-clear:hover {
    background: #d9e2ec;
    color: #1f2a37;
}

.archive-search-clear.hidden {
    display: none;
}

.archive-search-results {
    position: absolute;
    z-index: 9999;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    max-height: 320px;
    overflow-y: auto;
    background: white;
    border: 1px solid #ccd6e0;
    border-radius: 12px;
    box-shadow: 0 12px 28px rgba(18, 38, 63, 0.18);
}

.archive-search-results.hidden {
    display: none;
}

.archive-search-item {
    padding: 10px 12px;
    cursor: pointer;
    border-bottom: 1px solid #edf2f7;
}

.archive-search-item:hover,
.archive-search-item.is-active {
    background: #eef4ff;
}

.archive-search-item-title {
    font-weight: bold;
    color: #1f2a37;
}

.archive-search-item-sub {
    margin-top: 2px;
    font-size: 13px;
    color: #667085;
}

.archive-search-empty {
    padding: 12px;
    color: #667085;
}

/* -------------------------------------------------------------------------
   Archive selects / info
   ------------------------------------------------------------------------- */

#archiveItemSelect,
#archiveModelSelect {
    padding: 10px 0 10px 10px;
    border-radius: 14px;
    background: #f4f7fb;
    border: 1px solid #d9e2ec;
}

#archiveItemSelect {
    margin-bottom: 14px;
}

.archive-info-panel {
    margin-bottom: 10px;
    padding: 14px;
    border-radius: 14px;
    background: #f4f7fb;
    border: 1px solid #d9e2ec;
}

.archive-info-panel h2 {
    margin: 0 0 6px;
}

#archiveInfoBtn{
	 display: none;
}


#archiveMeta {
    color: #667085;
    font-size: 14px;
}

#archiveXcontest {
    margin-top: 8px;
    font-weight: bold;
}

/* -------------------------------------------------------------------------
   Archive layout / side panel
   ------------------------------------------------------------------------- */

.archive-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.archive-forecast,
.archive-side {
    min-height: 700px;
	height: 100%;
    max-height: 800px;
    border-radius: 16px;
	border-bottom-left-radius: 8px;
	border-bottom-right-radius: 8px;
    border: 1px solid #d9e2ec;
    overflow: hidden;	
}

.archive-side-mobile-header {
    display: none;
}

.archive-forecast.is-fullscreen {
    position: fixed;
    inset: 0;
    z-index: 99999;
    width: 100vw;
    height: 100dvh;
    background: white;
    overflow: auto;
    padding: 0;
}

body.archive-fullscreen-active {
    overflow: hidden;
}

/* -------------------------------------------------------------------------
   Pressure map placeholder
   ------------------------------------------------------------------------- */

.pressure-map-wrap {
    position: relative;
    width: 100%;
    min-height: 220px;
    border-radius: 14px;
    overflow: hidden;
}

#pressureImage {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}

.pressure-placeholder {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    text-align: center;
    font-size: 17px;
    font-weight: 600;
    color: #4d4d4d;
}

.pressure-placeholder.hidden {
    display: none;
}

/* -------------------------------------------------------------------------
   Settings panel
   ------------------------------------------------------------------------- */

.archive-settings-panel {
    display: none;
    flex-wrap: wrap;
    gap: 14px 10px;
    background: #fbb040;
    position: absolute;
    padding: 14px;
    border-radius: 14px;
    border: 1px solid #d9e2ec;
    z-index: 3;
}
.archive-settings-panel.is-open {
    display: block;
}

.archive-settings-panel label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    white-space: nowrap;
}

/* -------------------------------------------------------------------------
   Forecast main layout
   ------------------------------------------------------------------------- */

.main-container {
    display: flex;  
    flex-direction: column;
    justify-content: start;
	height: 100%;
}

.topbars {
    height: 40px;
    width: 100%;
    display: flex;
    color: white;
}

.topbarLeft {
    width: 100%;
    height: 100%;
    display: flex;
    z-index: 2;
    justify-content: space-between;
    background-image: linear-gradient(to right, #888, #888);
    color: white;
    border-radius: 8px 8px 0 0;
}

.forecast-container {
    display: flex;
    flex-direction: column;	
	height: 100%;
}

.topmenu {
    width: 100%;
    position: relative;
    z-index: 1;
}

.navi-menu {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: nowrap;
    width: 100%;
    height: 80px;
    background-image: linear-gradient(to right, #959595, #959595);
    box-sizing: border-box;
    color: white;
    font-size: 11px;
}

.navi-menu div {
    flex: 1;
    text-align: center;
    cursor: pointer;
}

.navi-menu div:nth-child(5) {
    flex: 1.9;
    height: 110%;
}

.navi-menu img {
    height: 30px;
    width: auto;
}

.navi-menu div > div {
    font-size: 110%;
}

.frame {
    flex: 1;
    min-width: 150px;
    height: 100%;
    box-sizing: border-box;
    display: block;
    cursor: crosshair;
}

#position,
#models,
#autocomplete-container,
#autocomplete-clear {
    display: flex;
    justify-content: center;
    align-items: center;
}

#position {
    width: 100%;
    font-size: 14px;
}

#cursor {
    width: 20px;
    height: 20px;
    position: absolute;
    pointer-events: none;
    background-image: url(../pics/cursor_cross.png);
}

/* -------------------------------------------------------------------------
   Vertical scale slider
   ------------------------------------------------------------------------- */
.finger{
	    display: none;
    position: absolute;
    top: 40%;
    z-index: 40;
    width: 39px;
    height: 122px;
    background-color: #fefefe59;
    right: 0;
    border-top-left-radius: 26px;
    border-bottom-left-radius: 24px;
}

#scale_levels {
 /*   float: left;
    width: 5%;
    height: 35%;
    position: absolute;
    top: 30%;
    left: 45%;
    z-index: 1;
	*/
	
    position: absolute;
    left: calc(50% - 60px);
    top: 60%;
    transform: translateY(-50%);
    z-index: 40;
    width: 36px;
    height: 201px;
    /*background: red;*/
}

.seek_vertical {
    /* display: block; */
    /* width: 100%; */
    /* padding-left: 30%; */
    /* box-sizing: border-box; */
}

.seek_vertical input {
	-webkit-appearance: none;
    background-color: #fafafa57;
    width: 15vh;
    height: 17px;
    /* margin-top: 100%; */
    transform-origin: 106px 95px;
    transform: rotate(-90deg);
    /* display: flow-root; */
    box-sizing: border-box;
    border-radius: 5px;
    border: 1px solid #55555545;
    outline: none;
	
  /*  -webkit-appearance: none;
    background-color: #fafafa57;
    width: 15vh;
    height: 12px;
    margin-top: 100%;
    transform-origin: 140px 100px;
    transform: rotate(-90deg);
    display: flow-root;
    box-sizing: border-box;
    border-radius: 5px;
    border: 1px solid #55555545;
    outline: none;*/
	
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 24px;
    height: 24px;
    background: #fffe;
    border-radius: 15px;
    border: 1px solid #999;
}

/* -------------------------------------------------------------------------
   Canvas layout
   ------------------------------------------------------------------------- */

.flex-container {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    position: relative;	
	height: 90%; 
}

.flex-container canvas {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 0;
}

#windAxisCanvas,
#tempAxisCanvas,
#humiAxisCanvas,
#termAxisCanvas,
#cludAxisCanvas {
    width: 100%;
    height: 100%;
    pointer-events: none;
}

#termAxisCanvas,
#cludAxisCanvas {
    background: transparent;
}

#windCanvas,
#tempCanvas,
#humiCanvas,
#termCanvas,
#cludCanvas {
    width: 100%;
}

#termCanvas,
#cludCanvas {
    background-image: linear-gradient(to top, #d2d2d2, #d2d2d2);
}

.canvas-container {
    position: relative;
}

.canvas-container canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

#cludCanvasNavi,
#axisCanvas {
    width: 100%;
    aspect-ratio: auto !important;
}

#axisCanvas {
    z-index: 1;
}

/* -------------------------------------------------------------------------
   Time / scales
   ------------------------------------------------------------------------- */

#hours {
    float: left;
    width: 100%;
	height: 5%;
    max-height: 30px;
}

.time-table {
    width: 100%;
    height: 100%;
    border-collapse: collapse;
    background-color: #aaa;
    border-radius: 8px;
    border-top: 2px solid #fff;
	font-size: 12px;
}

.time-table td {
    width: 4.17%;
    text-align: center;
    color: #fff;
    height: 16px;
}

.vl {
    font-size: 7px;
}

.v0 {
    width: 2.0% !important;
}

.humi_scale,
.temp_scale,
.term_scale,
.wind_scale,
.clud_scale {
    float: left;
    background-size: 100% 100%;
    width: 100%;
    border-radius: 8px;
    border-top: 2px solid #fff;
    height: 5%;
    max-height: 30px;
	
	width: 100%;
    height: 100%;
    color: #fff;
    table-layout: fixed;
    text-align: center;
	font-size: 12px;
}

.humi_scale {
    background-image: url(../pics/scales/scale_humi.png);
}

.temp_scale {
    background-image: url(../pics/scales/scale_temp.png);
}

.term_scale {
    background-image: url(../pics/scales/scale_term.png);
}

.wind_scale {
    background-image: url(../pics/scales/scale_wind.png);
}

.clud_scale {
    background-image: url(../pics/scales/scale_clouds_d.png);
}



.humiTableScale,
.cloudsTableScale,
.tempTableScale,
.termTableScale,
.windTableScale {
    width: 100%;
    height: 100%;
    color: #fff;
    table-layout: fixed;
    text-align: center;
}

.windTableScale tr {
    vertical-align: middle;
}

/* -------------------------------------------------------------------------
   Manual button / tooltip
   ------------------------------------------------------------------------- */

.man {
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 50%;
    position: absolute;
    top: 11%;
    left: 8%;
    background: rgba(255, 255, 255, 0.5);
    color: #237ae7;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    z-index: 1;
    font-size: 0;
}

.man-icon {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.man::after {
    content: attr(data-tooltip);
    position: absolute;
    left: 50%;
    bottom: calc(100% + 8px);
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.5);
    color: #888;
    padding: 6px 9px;
    border-radius: 8px;
    font-size: 12px;
    line-height: 1.2;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s ease, transform 0.15s ease;
    z-index: 99999;
}

.man::before {
    content: "";
    position: absolute;
    left: 50%;
    bottom: calc(100% + 3px);
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: rgba(20, 30, 45, 0.95);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s ease;
    z-index: 99999;
}

.man:hover::after,
.man:hover::before,
.man:focus-visible::after,
.man:focus-visible::before {
    opacity: 1;
}

.man:hover::after,
.man:focus-visible::after {
    transform: translateX(-50%) translateY(-2px);
}

/* -------------------------------------------------------------------------
   Mobile
   ------------------------------------------------------------------------- */

@media (max-width: 768px) {

	#aeroxc-archive {
        height: 100dvh;
        display: flex;
        flex-direction: column;
        overflow: hidden;
    }

    #aeroxc-archive .archive-layout,
    #aeroxc-archive .archive-forecast,
    #aeroxc-archive .frames-container {
        flex: 1 1 auto;
        min-height: 0;
        overflow: hidden;
		height: 100%;
    }

    #aeroxc-archive .frame {
        height: auto !important;
        flex: 1 1 auto;
        min-height: 0;
        overflow: hidden;
    }	
	
	.archive-layout {
        display: block;
        padding: 2px;
    }


	.archive-forecast {   
		/*width: 90%;	*/
		max-height: 620px;  
		}

    .main-container {
        margin: 0;
        display: flex;
        height: 100%;
        flex-direction: column;
    }

    #windCanvas,
    #tempCanvas,
    #humiCanvas,
    #termCanvas,
    #cludCanvas {
        touch-action: none;
    }
	
	.flex-container {    
	    height: 90%;		
	}

    .topbarLeft {
        margin-right: 0;
    }

    .forecast-container {
        display: block;
        position: relative;
    }
    
    .frames-container {
        display: flex;
        flex-flow: column;	
    }

    .frame {
        cursor: crosshair;		
		display: flex;
        flex-flow: column;
        height: 100%;
    }

    .seek_vertical {
    /*    display: none;*/
    }
	
	.finger{
		display:block;
	}
	
	#scale_levels{
		  display: none;
	}

    .icon-button-map {
        display: inline-flex;
    }

    .archive-side {
		position: absolute;
        width: 86%;        
        z-index: 9999;
        background: white;
        transform: translateY(100dvh);
        transition: transform 0.25s ease;
        overflow-y: auto;  
		display: none;		
    }

    .archive-side.is-open {
        transform: translateY(0);
		display: block;	
    }

    .archive-side-mobile-header {
        display: flex;
        align-items: center;
		float: inline-end;
        justify-content: space-between;
        margin-bottom: 12px;
        position: sticky;
        top: 0;
        background: white;
        z-index: 2;
        padding-bottom: 8px;
    }

    #archiveSideClose {
        border: 0;
        background: #f2f4f7;
        border-radius: 999px;
        width: 36px;
        height: 36px;
        font-size: 24px;
        line-height: 1;
		margin-right: 2px;
    }

	.archive-info-panel {
        margin: 0;
        position: absolute;
        z-index: 30;
        display: none;
        left: 17px;
        right: 23px;
        margin-bottom: 0;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);    
    }

    .archive-info-panel.is-open {
        display: block;
    }

	.archive-settings-panel {    		
		z-index: 3;
		left: 17px;
		right: 23px;    
		margin-bottom: 0;
		box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
	} 

    .archive-toolbar {
        display: flex;
        grid-template-columns: 1fr;
        gap: 10px;
    }

    #archiveInfoBtn,    
    #archiveSettingsBtn,
    #archiveSideToggle {   
	   width: 20.3%;
    }
	
	#archiveModelSelect{
		width: 30.0%;
	}
	
	#archiveInfoBtn{
		 display: inline-flex;
	}

    .archive-search-results {
        max-height: 55vh;
    }
	
	.icon-button-fullscreen {	
		display:none;	
	}
	
	.time-table {
		font-size: smaller;
	}
	.windTableScale { 
		font-size: smaller;
	}
	
	.navi-menu div > div {
		font-size: 100%;
	}
	
	#position { 
		font-size: 14px;
	}

}

/* -------------------------------------------------------------------------
   Desktop / tablet
   ------------------------------------------------------------------------- */

@media (min-width: 769px) {
    .forecast-container {
        flex-direction: row;
    }

    .frames-container {
        flex: 1;
        display: flex;
        flex-direction: column;
		height: 100%;
    }
}
