/*
 * HTML5 Boilerplate
 *
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */

/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */

html,
button,
input,
select,
textarea {
    color: #222;
}

body {
    font-size: 1em;
    line-height: 1.4;
}

/*
 * Remove text-shadow in selection highlight: h5bp.com/i
 * These selection rule sets have to be separate.
 * Customize the background color to match your design.
 */

::-moz-selection {
    background: #b3d4fc;
    text-shadow: none;
}

::selection {
    background: #b3d4fc;
    text-shadow: none;
}

/*
 * A better looking default horizontal rule
 */

hr {
    display: block;
    height: 1px;
    border: 0;
    border-top: 1px solid #ccc;
    margin: 1em 0;
    padding: 0;
}

/*
 * Remove the gap between images and the bottom of their containers: h5bp.com/i/440
 */

img {
    vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

fieldset {
    border: 0;
    margin: 0;
    padding: 0;
}

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
    resize: vertical;
}

/* ==========================================================================
   Chrome Frame prompt
   ========================================================================== */

.chromeframe {
    margin: 0.2em 0;
    background: #ccc;
    color: #000;
    padding: 0.2em 0;
}

/* ==========================================================================
   Author's custom styles
   ========================================================================== */

.lt-ie9 #get_user_location{
	display:none;
}

.lt-ie9 #places_input{
	width:673px;
}

#map_wrapper .cluster{
	text-align: center;
}

body{
	background: #fff;
}

#print_results {
    position: absolute;
    right: 0;
    top: 314px;
    width: 300px;
}

#container{
	width:713px;
	margin:auto;
}

#details{
	display:none;
	position:relative;
	padding-top:16px;
}

#search_wrapper{
	display:block;
	position:relative;
	padding-top:16px;
}

#close_details{
	position:absolute;
	right:0;
	top:5px;
	width:40px;
	height:40px;
	background: url(../img/close_icon.png) 50% 50% no-repeat;
	text-indent: -9000px;
}
a#close_details:focus{
	outline:0;
}

#details_top{
	width:713px;
	height:285px;
	margin-top:40px;
	float:left;
}
#details_info{
	width:483px;
	height:245px;
	padding:20px;
	float:right;
	position:relative;
	background:#fcfbf9;
}

#details_address{
	font-size:12px;
	position:relative;
	float:left;
	width:288px;
}

#hours_wrapper_outer, #information_wrapper_outer, #events_wrapper_outer {
 	padding-bottom: 12px;
    margin-bottom: 12px;   
    width: 713px;
    float:left;
    border-bottom: 1px solid #E5E5E5;
}

#hours_wrapper, #events_wrapper, #information_wrapper{
    background: none repeat scroll 0 0 #FCFBF9;
    padding: 20px;
    float:left;
    width: 673px;    
}

#information_wrapper{
	font-size:12px;
}

#information_wrapper, #events_wrapper{
	height: auto!important;	
}

#hours_heading, #information_heading{
	width:100%;
	float:left;
	font-size:12px;
}


#details_brands{
	position:relative;	
	float:right;	
	width:79px;
}
#details_brands img{
	float:left;
	margin: 5px 0;
}

#details_name{
	margin-bottom:16px;
}

.day_hour{
	float:left;
	width:280px;
	line-height:16px;
	font-size:10px;
}

.day_hour span{
	display:inline-block!important;
	width:90px;
	float:none;
}


#details_address span{
	display:inline-block;
	width:100%;
	float:left;
}

#address_heading, #hours_heading, #information_heading{
	color:#7d7d7d;
	text-transform:uppercase;
	margin-bottom:8px;
	text-decoration:underline;
	font-family: Helvetica, Arial, sans-serif
}

#details_city{
	margin-bottom:12px;	
}

.separator_line{
	width:713px;
	float:left;
	height:1px;
	background:#e5e5e5;
	margin: 12px 0;
}

#route_wrapper{
	float:left;
	width:713px;
	height:26px;
}

#route_wrapper input{
	padding:0;
	width:252px;
	margin-right: 8px;
	padding: 0 4px;
	height:24px;
	line-height: 24px;
	border: 1px solid #d0d0d0;
	float:left;
	font-size:11px;
}

#details_map_wrapper{
	height:500px;
	width:713px;	
	float:left;
	margin-bottom:20px;
	background:#fcfbf9;
}

#details_news_wrapper{
	width:713px;
	padding: 10px 0;
}

#details_news_text{
	font-size:12px;
	color:#000;
	width:380px;
	float:left;
}

#details_news_links{
	float:left;
	width:680px;
}

.details_link_entry{
	font-size:12px;
	width:100%;
	float:left;
	margin-bottom:20px;
}

.details_link_entry .date{
	display:block;
	width:100%;
	color:#4e7688;
	margin-bottom:5px;	
	text-decoration:none;
	font-weight:bold;
}

h1{
	font-weight:normal;
	color:#3a3a3a;
	text-transform:uppercase;
	height:36px;
	font-size:23px;
	line-height: 23px;
	border-bottom: 1px solid #e5e5e5;
	margin: 0;
}

h2{
	font-weight:normal;
	color:#3a3a3a;
	text-transform:uppercase;
	height:32px;
	font-size:23px;
	line-height: 23px;
	padding:0;
	margin:0;
	
}

h3{
	font-weight:normal;
	color:#3a3a3a;
	text-transform:uppercase;	
	font-size:23px;
	line-height: 26px;
	padding:0;
	margin:0;
	width:305px;
}


p{
	color:#3a3a3a;
	text-transform:uppercase;
	width:550px;	
	font-size:16px;
	line-height: 22px;
	
}


#inputs_wrapper, #brands_filter_wrapper{
	background:#fcfbf9;
	padding:20px;
	float:left;
	margin:6px 0;
	width: 673px;
}

#location_wrapper, #country_filter_wrapper{
	width: 673px;
	float:left;
	position:relative;
}

#suggestions_wrapper {
    background: none repeat scroll 0 0 #FFFFFF;
    border: 1px solid #D0D0D0;    
    left: 0;
    position: absolute;
    top: 25px;
    width: 480px;
    z-index: 99;
}

.suggestion_place {
    border-bottom: 1px solid #F5F5F5;
    font-size: 10px;
    padding: 5px;
    cursor:pointer;
}

.suggestion_place.active{
	background:#eee;
}

#results_wrapper{
	width:713px;
	height:340px;
	position:relative;
	float:left;
	margin:6px 0;
}

#map_wrapper{
	float:left;
	width:397px;
	height:340px;
	float:left;
	background:#fcfbf9;
}

#print_content_results, #print_details{
	display:none;
}

#results_list {
    background: none repeat scroll 0 0 #FCFBF9;
    float: right;
    height: 260px;
    padding: 20px 5px 20px 15px;
    position: relative;
    width: 280px;
}

#results_list_inner {
    height: 248px;
    margin-bottom:10px;
    overflow: auto;
}

#result_headline{
	color:#3e3e3e;
	text-transform:uppercase;
	font-size:14px;
	margin-left:5px;
}

.result{
	font-size:10px;
	line-height: 16px;
}

#loadingStores{
	position:absolute;
	top:0;
	left:0;
	width:100%;
	height:100%;
	z-index:99;
	
	display:none;
	opacity:0.8;
	background: url(../img/ajax-loader.gif) 50% 50% no-repeat #FCFBF9;
}

.result{
	float:left;
	width:250px;
	border-bottom: 1px solid #1f1f1f;
	padding:9px 5px 5px;
	cursor:pointer;
}
.result:hover{
	background:#eae7e2
}

.store_name{
	width:100%;
	float:left;
	color:#6b6a6a;
	text-transform:uppercase;	
}
.store_street{
	width:100%;
	float:left;
	color:#1f1f1f
}
.store_city{
	width:112px;
	float:left;
	color:#1f1f1f
}
.store_distance{
	float:right;
	width:90px;
	color:#3c5864;
}
.store_brands{
	float:left;
	width:100%;
	margin-top:5px;
}
.store_brands img{
	float:left;
	margin: 0 5px 0 0;
}

label{	
    color: #7D7D7D;
    font-size: 12px;
    font-weight: bold;
    float:left;
    width:248px;
}

.select_wrapper{
	 float:left;
    width:248px;
}
.select_wrapper select{
	width: 232px;
	font-size:12px;
	
	height:16px;
}

.filter_wrapper{
	width:100%;
	display:block;
	float:left;
	padding: 2px 0;
}

#places_input{
	padding:0;
	width:472px;
	padding: 0 4px;
	height:24px;
	line-height: 24px;
	border: 1px solid #d0d0d0;
	float:left;
	font-size:11px;
}

.btn_loading{
	display:none;
	background: url(../img/btn_ajax-loader.gif) 50% 50% no-repeat;
	width:100%;
	height:100%;
	position:absolute;
	top:0;
	left:0;
	z-index: 10;
}

#print_details_link, #back_to_overview{
    border-bottom: 1px solid #7D7D7D;
    color: #7D7D7D;
    display: inline-block;
    font-size: 12px;
    letter-spacing: 1px;
    padding-bottom: 0;
    position: absolute;
    
    text-decoration: none;
    text-transform: none;
    top: 71px;
}

#print_details_link:focus, #back_to_overview:focus{
	outline:0;
}

#print_details_link{
	right: 0;
}

#back_to_overview{
	left:0;   
}

#find_stores{
	position:relative;
}
#find_stores.loading .btn_loading{
	display:block;
}
#find_stores.loading span{
	display:none;
}

.radio_button{
	float:left;
	margin-right:36px;
	height:20px;
}

.radio_button input{
	float:left;
}
.radio_button span{
	font-size:12px;
	line-height:16px;
	text-transform: uppercase;
	margin-left:9px;
	float:left;
	line-height: 12px;
}

.button{
	float:right;
	text-decoration:none;
	background:#3e5862;
	width:170px;
	display:block;
	border:0;
	height:26px;
	line-height:26px;
	text-align:center;
	color:#fff;
	font-size:13px;
	text-transform: uppercase;
}

.line{
	color:#3e3e3e;
	font-size:12px;
	padding:16px 0;
	float:left;
}

.line strong{
	text-transform: uppercase;
	font-weight:bold;
}

#content a#get_route {
	color: #fff;
}


/* ==========================================================================
   Helper classes
   ========================================================================== */

/*
 * Image replacement
 */

.ir {
    background-color: transparent;
    border: 0;
    overflow: hidden;
    /* IE 6/7 fallback */
    *text-indent: -9999px;
}

.ir:before {
    content: "";
    display: block;
    width: 0;
    height: 150%;
}

/*
 * Hide from both screenreaders and browsers: h5bp.com/u
 */

.hidden {
    display: none !important;
    visibility: hidden;
}

/*
 * Hide only visually, but have it available for screenreaders: h5bp.com/v
 */

.visuallyhidden {
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
}

/*
 * Extends the .visuallyhidden class to allow the element to be focusable
 * when navigated to via the keyboard: h5bp.com/p
 */

.visuallyhidden.focusable:active,
.visuallyhidden.focusable:focus {
    clip: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    position: static;
    width: auto;
}

/*
 * Hide visually and from screenreaders, but maintain layout
 */

.invisible {
    visibility: hidden;
}

/*
 * Clearfix: contain floats
 *
 * For modern browsers
 * 1. The space content is one way to avoid an Opera bug when the
 *    `contenteditable` attribute is included anywhere else in the document.
 *    Otherwise it causes space to appear at the top and bottom of elements
 *    that receive the `clearfix` class.
 * 2. The use of `table` rather than `block` is only necessary if using
 *    `:before` to contain the top-margins of child elements.
 */

.clearfix:before,
.clearfix:after {
    content: " "; /* 1 */
    display: table; /* 2 */
}

.clearfix:after {
    clear: both;
}

/*
 * For IE 6/7 only
 * Include this rule to trigger hasLayout and contain floats.
 */

.clearfix {
    *zoom: 1;
}

/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   These examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */

@media only screen and (min-width: 35em) {
    /* Style adjustments for viewports that meet the condition */
}

@media print,
       (-o-min-device-pixel-ratio: 5/4),
       (-webkit-min-device-pixel-ratio: 1.25),
       (min-resolution: 120dpi) {
    /* Style adjustments for high resolution devices */
}

/* ==========================================================================
   Print styles.
   Inlined to avoid required HTTP connection: h5bp.com/r
   ========================================================================== */

@media print {
    * {
        background: transparent !important;
        color: #000 !important; /* Black prints faster: h5bp.com/s */
        box-shadow: none !important;
        text-shadow: none !important;
    }

    a,
    a:visited {
        text-decoration: underline;
    }

    a[href]:after {
        content: " (" attr(href) ")";
    }

    abbr[title]:after {
        content: " (" attr(title) ")";
    }

    /*
     * Don't show links for images, or javascript/internal links
     */

    .ir a:after,
    a[href^="javascript:"]:after,
    a[href^="#"]:after {
        content: "";
    }

    pre,
    blockquote {
        border: 1px solid #999;
        page-break-inside: avoid;
    }

    thead {
        display: table-header-group; /* h5bp.com/t */
    }

    tr,
    img {
        page-break-inside: avoid;
    }

    img {
        max-width: 100% !important;
    }

    @page {
        margin: 0.5cm;
    }

    p,
    h2,
    h3 {
        orphans: 3;
        widows: 3;
    }

    h2,
    h3 {
        page-break-after: avoid;
    }
}