/* v6 */

/* Basic layout and map */

html, body {
    margin:0px; padding:0px; width:100%; height:100%;
    font-family: 'Fira Sans Extra Condensed', sans-serif;
    letter-spacing: 0.25px;
    line-height: 1.25;
    font-weight: 300;
    color: #00205c;
}

#main {
    width:100%;
    display: -ms-grid;
    display: grid;
    -ms-grid-columns: 1fr 420px;
    grid-template-columns: 1fr 420px;
    margin: 0 auto;
    padding: 0;
    position: relative;
    overflow: hidden;
    height: 100%;
}

.orangegrad {
    background: #F09819;
    background: linear-gradient(#ed6904, #f3d25d); 
}

.greengrad {
    background: #4aa848;
    background: linear-gradient(to top,  #4aa848, #2b7438 ); 
}

.browngrad {
    background: #d28513;
    background: linear-gradient(to top,  #d28513, #7f4014); 
}

.bluegrad {
    background: #00205c;
    background: linear-gradient(to top, #0071ce -90px, #00205c );
}

.mapwrapper {
    position: relative;
    -ms-grid-column: 1;
    height: 100%;
}

#mapid {
    width: 100%;
    height: 100%;
    background-color: transparent!important;
    margin: 0;
    position: relative;
}

/* Sidebar */

#sidebar{
    z-index: 1000;
    padding: 0px;
    background-color: white; 
    height: 100%;
    -ms-grid-column: 2;
    filter: drop-shadow(-10px 0px 5px rgba(0, 0, 0, 0.05));
}

.sbwrapper {
    position: relative;
    padding: 60px;
    height: 100%;
}


#sbdata {
    padding: 0px 0px 0px 60px;
    min-height: 300px;
    margin: 0;
    z-index: 1010;
    position: relative;
    height: 100%;
}

#bottlewrapper {
    position: absolute;
    left: 0px;
    top: 50vh;
    transform: translate(-50%,-55%);
    z-index: 20001;
    height: 660px;
    max-height: 75%;
}

#bottlewrapper img.notbutton {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    transform: translate(-50%, 0%);
    opacity: 0;
    transition: opacity 0.5s ease-in-out; 
}

 #bottlewrapper .notbutton.visible {
    opacity: 1;
 }

#bottlewrapper.short {
    transform: translate(-50%,-70%);
}

#bottlewrapper.tall {
    transform: translate(-50%,-65%);
}

#bottlewrapper .leaflet-touch {
    display: none;
    position: absolute;
    bottom: -60px;
    left: -17px;
    cursor: pointer;
    z-index: 30000;
}

#bottlewrapper .leaflet-control {
    z-index: 30001;
}

#bottlewrapper.multiple .leaflet-touch {
    display: block;
}



/* Text styles */

h2 {
    font-size: 30px;
    font-weight: 500;
    letter-spacing: 0.75px;
    line-height: 1;
    margin: 0 0 20px 0;  
}

h3 {
    font-size: 30px;
    font-weight: 600;
    text-transform: uppercase;
    line-height: 1;
    letter-spacing: 1px;
    margin: 0 0 5px 0;
}

.intro {
    font-size: 22px;
    text-transform: none;
    font-weight: 500;
    line-height: 1.2;
    margin: 0 0 0 -60px
}

h4 {
    font-size: 15px;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: 0.5px;
    margin:24px 0 8px 0;
    color: #00205c;
}

.mypop h3 {
    font-size: 17px;
    font-weight: 600;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin:0;
    color: #00205c;
    text-align: center;
}

.mypop h4 {margin:0;}

p {
    font-size: 14px;
    margin: 0;
    color: black;
}

p + p, img + p {margin: 14px 0 0 0;}

p.variety {
    font-style: italic;
    font-size: 18px;
    line-height: 1;
    margin: 2px 0 5px 0;
    color: #00205c;
    text-wrap: balance;
}

.mypop p.variety {
    font-size: 14px;
    display: none;

}

.mypop p {margin:6px 0 3px 0}

.mypop.wide p {margin:3px 0 3px 0}

.leaflet-container a, p a {
    color: #00205c;
    font-weight: 500;
}

em {
    display: block;
    font-style: italic;
    margin: 14px 0 0 0;
}

.datablock {
    margin: 0px 20px 0 0;
    padding: 5px 0;
    border-top: 1px solid #00205c;
    border-bottom: 1px solid #00205c;
}

.datablock p {
    color: #00205c;
    font-weight: 300;
    margin: 5px 0 5px 30px;
    line-height: 1.15;
    letter-spacing: 0.25px;
    text-indent:-30px;
    text-wrap: balance;
}

.balance-text {
    text-wrap: balance;
}

.scrollblock {
  max-height: 40%;
  overflow-y: auto; 
  position: relative; 
  padding: 20px 20px 30px 0px; 
    margin: 10px -20px 10px 0;
  -webkit-mask-image: linear-gradient(
    to bottom,
    transparent, /* Top transparent for fade-in */
    black 20px,   /* Solid black after 20px for content visibility */
    black calc(100% - 40px), /* Solid black until 20px from bottom */
    transparent   /* Bottom transparent for fade-out */
  );
  mask-image: linear-gradient(
    to bottom,
    transparent,
    black 20px,
    black calc(100% - 40px),
    transparent
  );
}

.scrollblock::-webkit-scrollbar {
  display: none;
}

.scrollblock p {
    text-wrap: balance;
}

/* Popup */

.mypop {
    font-family: 'Fira Sans Extra Condensed', sans-serif;
    letter-spacing: 0.25px;
    font-weight: 300;
    font-size: 14px;
    line-height: 1.25;
    margin: -5px 0;
    overflow: hidden;
    position: relative;
    min-width: 100px;
}

.mypop.wide {
    min-width: 260px;
    margin: 0;
}

.mypopheader {
    float: left; 
    display: block; 
    width: 100%;
}

.wide .mypopheader {
    width: 80%;
}

.mypop img {display: none;}

.mypop.wide img {display: inline;}

.leaflet-popup-content-wrapper {
    border-radius: 6px !important;
}


/* Stat boxes */

.bigstatblock {
    position: absolute;
    top: 42%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.bigstatbox {
    height: 120px;
    width: 120px;
    text-align: center;
    color: white;
    margin: 0 0 20px 0;
    padding: 10;
    border-radius: 8px; 
    display: block;
}

.bigstat {
    font-size: 60px;
    font-weight: 600;
    line-height: 0.8;
    letter-spacing: 2px;
}

.biglabel {
    padding: 20px 0 5px 0;
    font-size: 20px;
}

.bigstatbox.orangegrad h3.biglabel {
    font-size: 25px;
    padding: 18px 0 2px 0;
}

.bigstatbox.orangegrad .bigstat {
    letter-spacing: -0.5px;
}

.statbox {
    display: none;
    float: right;
    clear: right;
    height: 40px;
    width: 40px;
    text-align: center;
    margin: 1px 0;
    border-radius: 4px;
}

#sbdata .statbox {
    display: block;
    float: left;
    clear: left;
    margin: 3px 0 3px -60px;
}

.infobox {
    background-color: #0071ce;
    display: none;
}

.maltbox {
    clear: right; 
    margin: 5px 0;
}

.tourbox {
    display: block;
    border: 2px solid rgba(255,255,255,0.4);
    background: #0071ce;
	border-radius: 4px;
    color: white;
    text-transform: uppercase;
    cursor: pointer;
    position: relative;
    box-sizing: border-box;
    -webkit-appearance: none;
}

.tourbox:hover {
	background-color: #00205c;
}

.statbox.tourbox p {
    font-weight: 500;
    font-size: 14px;
    margin: 5px 0 0 0;
}

.statbox p {
    color: white; 
    margin:0; 
    line-height: 1; 
    font-weight: 500;
    letter-spacing: 0.75px;
}

p.label {
    font-size: 10px !important; 
    font-weight: 600; 
    margin: 6px 0 1px 0}

p.value {font-size: 18px}

p.idlabel {
    color: lightgray;
    font-size: 11px !important; 
    font-weight: 600; 
    margin: 2px 0 1px 0;
}

p.idnumber {
    color: lightgray;
    font-size: 17px !important;
    font-weight: 500;
    margin: 0px 0 0 -1px;
    letter-spacing: 0.25px;
}

/* Design elements overlaying map */

header img {
    display: block;
    position: absolute;
    right:0;
    left:0;
    margin: 0 auto;
    top: 60px;
    z-index: 20;
}

.scale {    
    position: absolute;
    margin: 0px;
    bottom: 50px;
    left: 60px;
    z-index: 1000;
}

.scale img {
    margin: 0 0 0 10px;
    filter: drop-shadow( 0px 0px 2px rgba(1,1,1,0.25));
}

.leaflet-top {top: 50px !important}

.leaflet-left {left: 60px !important}

footer {
    display: block;
    position: absolute;
    right:0;
    left:0;
    margin: 0 auto;
    bottom: 5px;
    z-index: 1000;
    overflow: hidden;
    line-height: 1;
    text-align: center;
    padding: 0px 60px;
}

footer p {
    font-size: 10px;
    color: #ffffff;
}


h4 img {
    vertical-align: middle;
    margin: 0 18px 3px 12px;
    width: 20px;
}

h4 a img:hover, h4 a:hover {
    opacity: 0.5 !important;
}

h4 a {
    color: #00205c !important;
    text-decoration: none;
}


/* Review section */

.reviewblock {
    padding: 0px 0px 0px 10px;
    width: 100%;
    text-align: left;
    position: absolute;
    bottom: 170px;
    left: 0px;
    z-index: 20000;
}

#reviewrow {
    margin: 0 -60px 0 -60px;
    display: flex;
    gap: 0 25px;
    justify-content: center;
}

.lastreview {
    position: relative;
    padding: 0 30px 0 0;
    cursor: pointer;
}

.popbottle {
    margin: 0 auto;
    max-height: 200px;
}

.stars {
    width: 120px;
    transform: rotate(270deg);
    position: absolute;
    bottom: 50px;
    right: -45px;
}


.lastreview p {
    text-align: center;
    margin-bottom: -20px
};

/* Extra controls */

.buttonIcon {
    margin: 0px;
    padding: 0;
}

.leaflet-control-zoom-in img, .leaflet-control-zoom-out img, .buttonIcon img {
    width: 14px;
    margin: 0;
    position: absolute;
    top: 25%; 
    left: 50%;
    transform: translate(-50%, -50%);
} 

.leaflet-control-zoom-out img {
    top: 75%; 
} 

.buttonIcon img {
    top: 50%; 
}

.leaflet-top .leaflet-control:last-of-type {display: none;}

/* Responsive */

.mobileshow {display:none}


/* Vertical breakpoint */

@media only screen and (max-height: 900px) {
            
.bigstatbox:last-of-type {display: none;}
    
.lastreview:last-of-type {display: none;}

}

/* nav fix */

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

nav {
    max-width: 60px;
    display: block !important;
}
    
nav p + p, nav p {
    padding: 0px 10px 10px 0px !important;
    display: inline-block!important;
}
    
}

/* Medium screens */

@media only screen and (max-width: 1160px) {
             
.mobileshow, 
.mypop img,
.statbox {display: block;}
    
.tourbox {display: none;}
    
#sidebar,
.mypop span.medium {display: none;}
    
#main {width:100%;
    display: -ms-grid;
    display: grid;
    -ms-grid-columns: 1fr;
    grid-template-columns: 1fr;}
      
.mypop {
    min-width: 260px;
    margin: 5px 0;
}
    
.mypopheader {width: 80%;}
        
.mypop span {display: inline;}
    
.mypop h3 {
    font-size: 24px;
    text-align: left;
}
    
.mypop p.variety {
    font-size: 16px;
    display: block;
}
    
}

/* Dodgy iPad breakpoint! */

@media only screen and (max-width: 768px) {
            
nav {right: 40px !important;}
    
}


/* Small screens */

@media only screen and (max-width: 600px) {
    
.mobilehide, {display: none;}
    
nav {
    display: none !important;
}
    
.infobox {display: block;}
        
#main {height: 100%;}
    
header img {
    top: 30px;
    width: 90%;
    max-width: 300px !important;
    height: auto;
}
    
footer {    
    padding: 0 60px 0 10px;
    text-align: left;
}

.leaflet-control-zoom, .scale {display: none !important}
    
.leaflet-touch .leaflet-bar button, .leaflet-control-search .search-button {
	width: 40px !important;
	height: 40px !important;
	line-height: 40px !important;
}
    
.buttonIcon img {
    width: 20px;
}
    
.leaflet-top .leaflet-control:last-of-type {display: block;}

.leaflet-top .leaflet-control:last-of-type .buttonIcon img {width: 18px;}    

.leaflet-control-search .search-button {
    background-size: 20px;
}
    
.leaflet-top.leaflet-left .leaflet-control {
    margin: 0;
    }
    
.leaflet-top {
    top: auto !important;
    bottom: -30px !important;
    margin: 0 0 0 -74px;
    }

.leaflet-left {
    left: 50% !important;
    
    }
    
.leaflet-control:nth-of-type(2) {
}
    
.leaflet-control:nth-of-type(3) {
    transform: translate(54px, -44px)
}
    
.leaflet-control:nth-of-type(4) {
    transform: translate(108px, -88px)
}
   
.search-exp {
    position: fixed !important;
	top: 52px !important;
	left:50%;
    margin: 0 0 0 -128px !important;
    }

.search-exp .search-input {
    line-height: 20px;
    font-size: 16px;
    width: 178px;
    margin: 10px 0 10px 10px;
}
    
.search-tooltip {
    position: fixed !important;
	top: 140px !important;
	left:50% !important;
    margin: 0 0 0 -150px;
	float:none;
    max-width: 300px;
    max-height: 165px !important;
    }

h2 {
    font-size: 45px;
    margin: 20px auto; 
}
    
    nav {
    display: none;
}

}

/* double up tester */

/* .leaflet-marker-icon.leaflet-interactive {
    opacity: 0.5;
} */

