/*
 * 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;
    font-family: 'Open Sans', sans-serif;
    font-size: 100%;
}

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

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

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


/*
 * Global styles
 */

html, body {
	font-family: 'Open Sans', sans-serif;
	font-size: 13px;
}

.hidden { 
	display: none; 
}

.center {
	text-align: center;
}

.center * {
	display: inline-block;
}

a.regular {
	display: inline-block;
}

a.regular:hover {
	border-bottom: 0 none;
	padding-bottom: 1px;
	text-decoration: none;
}

.container {
	width: 960px;
	margin: 0 auto;
	position: relative;
	overflow: hidden;
}

.container .sidebar {
	width: 270px;
	float: left;
	margin-right: 20px;
}

.container .main-content {
	width: 670px;
	float: left;
}

.page-title {
	font-size: 24px;
	font-weight: 300;
	text-transform: uppercase;
	padding: 10px 0px 20px 0px;
}

.train-railing {
	width: 100%; 
	white-space: nowrap; 
	overflow: hidden;
	margin: 20px 0;
}

.quick-search .train-railing {
	margin: 0;
}

.train-railing .railing {
	display: table-cell; 
	width: 50%;
	vertical-align: middle;
	background: url("../img/railing.png") repeat-x left center;
	height: 6px;
}

.train-railing .train {
	display: table-cell;
	padding: 0 10px;
	font-weight: 300;
	text-transform: uppercase;
}

.train-railing.separator {
	margin: 46px 0;
}

.train-railing.separator .train, .train-railing.title .train {
	font-size: 24px;
	line-height: 24px;
	text-transform: uppercase;
}

.text-content p {
	margin: 10px 0;
}

.thumbnails {
	overflow: hidden;
	padding: 10px 0 0;
}

.thumbnails img {
	display: block;
	float: left;
	margin: 0 10px 0 0;
}

.agent .call-to-action {
	color: #858585;
	display: block;
	margin: 10px 0 0;
}

.agent.card .contact-info {
	clear: both;
	float: left;
	width: 100%;
	padding: 10px 0;
}

.agent .contact-info a {
	display: inline;
	float: none;
}

.agent.card .photo {
	float: left;
	margin: 0 10px 0 0;
}

.agent.card  {
	clear: both;
	overflow: hidden;
}

.social-buttons {
	padding: 5px 0;
	float: left;
	margin: 10px 0;
}

.social-buttons .button {
	float: left;
	margin-right: 10px;
}

.prop-extended-info {
	overflow: hidden;
	clear: both;
	margin-top: 26px;
}

.prop-extended-info li {
	width: 30%;
	padding: 5px 0;
	float: left;
	border-top: 1px #cecece solid;
	margin-right: 1%;
}

.prop-extended-info .label {
	color: #858585;
}

/*
 * Buttons 
 */
.button {
	display: block;
	border: none;
	font-weight: bold;
	-webkit-border-radius: 3px;
	border-radius: 3px;
}

.button.full {
	width: 100%;
	}

.button.th-yellow,
.button.th-brown,
.button.th-grey,
.button.th-red {
	text-align: center;
	text-decoration: none;
	padding: 10px 0;
	color: #FFF;
	-webkit-box-shadow: 0 1px 2px rgba(0, 0, 0, .3);
	box-shadow: 0 1px 2px rgba(0, 0, 0, .3);
}

.button.small {
	padding-top: 5px;
	padding-bottom: 5px;
}

.button.social
{
	display: block;
	width: 38px;
	height: 38px;
	margin-right: 5px;
	float: left;
	padding-top: 5px;
	font-size: 21px;
}

input.button.th-brown {
	padding: 0;
}

.button.w-230 {
	width: 230px;
}

/*
 * Header styles
 */
#header {
	height: 340px;
}

.home #header {
	height: 400px;
}

#header:after {
	content: "";
	height: 8px;
	width: 100%;
	position: absolute;
	bottom: -4px;
	left: 0;
	z-index: 1;
}

#header .container {
	z-index: 2;
	overflow: visible;
}

#header h1, #header h2 {
	margin: 0;
	padding: 0;
	color: #e0b971;
	text-shadow: 1px 1px 0 rgba(0, 0, 0, .5);
}

#header h1 {
	padding-top: 5px;
	font-size: 33px;
	font-weight: normal;
		font-weight: 300;
}

#header h2 {
	font-size: 20px;
	font-weight: lighter;
	letter-spacing: .449em;
	margin-top: -10px;
	padding-left: 2px;
}

#header .logo:hover {
	text-decoration: none;
}

#header .mobile {
	display: none;
}

#header nav {
	position: absolute;
	top: 25px;
	right: 0;
	z-index: 1;
}

#header nav ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

#header nav a {
	font-size: 14px;
	line-height: 14px;
	color: #e0b971;
	text-decoration: none;
	display: block;
	padding: 11px 15px;
	text-align: center;
	font-style: italic;
	text-shadow: 1px 1px 0 rgba(0, 0, 0, .5);
	text-transform: uppercase;
}

#header nav .has-children a {
	padding: 11px 25px 11px 15px;
}

#header nav li {
	float: left;
	margin: 0 2px;
	position: relative;
}

#header nav ul ul {
	display: none;
}

#header nav li:hover > ul {
	display: block;
	position: absolute;
	top: 100%;
	left: 0;
	background-color: #49280d;
}

#header nav li ul li a:hover {
	background-color: #ff9900;
}

#header nav .has-children ul li {
	margin: 0;
	width: 100%;
}

#header nav li:hover > a.active {
	font-style: italic;
}

#header nav li:hover .has-children ul {
	left: 100%;
	top: 0;
}

#header nav .has-children > a:after {
	content: "";
	width: 11px;
	height: 8px;
	background: url("../img/icons.png") no-repeat -27px -916px;
	position: absolute;
	top: 50%;
	right: 0;
	margin: -4px 6px 0 0;
}

.svg #header nav .has-children > a:after {
	background-image: url("../img/icons.svg");
}

#header nav .has-children .has-children > a:after {
	content: "";
	width: 7px;
	height: 11px;
	background: url("../img/icons.png") no-repeat -29px -853px;
	position: absolute;
	top: 50%;
	right: 0;
	margin: -6px 6px 0 0;
}

.svg #header nav .has-children .has-children > a:after {
	background-image: url("../img/icons.svg");
}

#header nav .has-children:hover > a {
	line-height: 14px;
	color: #FFF;
	display: block;
	/* padding: 11px 15px; */
	text-align: center;
	font-weight: normal;
	text-shadow: 1px 1px 0 rgba(0, 0, 0, .5);
	text-transform: uppercase;
}

#header nav .has-children:hover > a {
	-webkit-border-radius: 3px 3px 0 0;
	border-radius: 3px 3px 0 0;
}

#header nav .has-children ul li:hover > a {
	-webkit-border-radius: 0;
	border-radius: 0;
}

#header nav li .button.th-yellow.active {
	font-weight: normal;
}

#header nav .has-children:hover li {
	margin: 0;
	width: 100%;
}

#header nav .has-children:hover ul a {
	text-align: left;
	white-space: nowrap;
	font-style: normal;
	text-transform: none;
}

#header nav .has-children ul li a {
	font-size: 12px;
}

#header nav .has-children .button.th-yellow:after {
	content: "";
	width: 11px;
	height: 8px;
	position: absolute;
	top: 50%;
	right: 0;
	margin: -4px 6px 0 0;
	background: url("../img/icons.png") no-repeat -27px -885px;
}

.svg #header nav .has-children .button.th-yellow:after {
	background-image: url("../img/icons.svg");
}

#header .slider {
	height: 240px;
	background: #FFF;
	padding: 10px;
	-webkit-box-shadow: 0 1px 2px rgba(0, 0, 0, .2);
	box-shadow: 0 1px 2px rgba(0, 0, 0, .2);
	margin-top: 15px;
	overflow: hidden;
	position: relative;
}

#header .slider .slides > li {
	display: none;
}

#header .slider .slides li:first-child,
#header .slider .slides .show {
	display: list-item;
}

.home #header .slider {
	height: 380px;
	-webkit-transform: translate3d(0, 0, 0);
}

#header .slider img {
	width: 100%;
	height: 100%;
}

#header .controls .arrow {
	position: absolute;
	top: 44%;
	margin: 2px 0 0 0;
	opacity: 0;
	filter: alpha(opacity = 0);
}

#header .slider .bx-caption {
	opacity: 0;
	filter: alpha(opacity = 0);
	-webkit-transition: opacity 1s ease-in-out;
	-moz-transition: opacity 1s ease-in-out;
	-ms-transition: opacity 1s ease-in-out;
	-o-transition: opacity 1s ease-in-out;
	transition: opacity 1s ease-in-out;
}

#header .slider:hover .controls .arrow,
#header .slider:hover .bx-caption {
	opacity: 1;
	filter: alpha(opacity = 100);
}

#header .controls .prev,
#header .controls .next {
	-webkit-transition: opacity 1s ease-in-out;
	-moz-transition: opacity 1s ease-in-out;
	-ms-transition: opacity 1s ease-in-out;
	-o-transition: opacity 1s ease-in-out;
	transition: opacity 1s ease-in-out;
}

#header .controls .prev {
	left: 20px;
}

#header .controls .next {
	right: 20px;
}

/*
 * Quick search form
 */

.quick-search {
	width: 820px;
	height: 132px;
	position: relative;
	margin-top: -97px;
	left: 50%;
	margin-left: -410px;
	-webkit-border-radius: 7px;
	border-radius: 7px;
	padding: 18px 20px;
	z-index: 10;
}

.quick-search-shadow {
	content: "";
	position: absolute;
	z-index: 1;
	-webkit-box-shadow: 0 0 22px rgba(0, 0, 0, .75);
	box-shadow: 0 0 22px rgba(0, 0, 0, .75);
	bottom: 0;
	width: 84%;
	left: 8%;
	right: 8%;
	-webkit-border-radius: 100%;
	border-radius: 100%;
	height: 40px;
}

.quick-search .train-railing {
	overflow: visible;
	padding: 0 0 10px;
	}

.quick-search .railing {
	opacity: .6;
}

.quick-search .train {
	font-weight: 300 !important;
	font-size: 30px;
	line-height: 28px;
}

.quick-search .filters {
	list-style: none;
	margin: 0;
	padding: 10px 0;
}

.quick-search .filters > li {
	width: 16.6666%;
	float: left;
	padding: 0 7px;
}

.quick-search .filters > li:first-child {
	padding-left: 0;
}

.quick-search .filters > li:last-child {
	-webkit-border-radius: 3px;
	border-radius: 3px;
	padding: 5px;
	margin-top: -5px;
	float: right;
	text-align: center;
}

.quick-search .button.submit {
	width: 115px;
	text-transform: uppercase;
	position: relative;
	display: inline-block;
	height: 32px;
	line-height: 32px;
	padding: 0;
}

.quick-search .advanced-search {
	float: right;
	display: block;
	color: #512813;
	text-decoration: underline;
	font-size: 11px;
	padding: 2px 20px;
}

.box {
	padding: 10px;
	background: #FFF;
	-webkit-box-shadow: 0 1px 2px rgba(0, 0, 0, .2);
	box-shadow: 0 1px 2px rgba(0, 0, 0, .2);
	float: left;
	width: 100%;
	overflow: hidden;
	margin-bottom: 20px;
}

.box .title {
	font-weight: bold;
	padding: 10px 0;
	margin: 0;
}

.box p {
	color: #171717;
}

.box.map {
	margin: 20px 0px 20px 0px;
}

.contact-info {
	overflow: hidden;
}

.contact-info .type {
	padding-left: 60px;
	min-height: 50px;
	position: relative;
}

.contact-info .type .icon {
	position: absolute;
	top: 0;
	left: 0;
}

.contact-info a:hover {
	border-bottom: 0px none;
	padding-bottom: 1px;
}

.message {
	
}

.message.generic {
	font-weight: bold;
	margin: 30px 0;
}

/*
 * Form styles
 */
form input, form textarea, .styled-select {
	width: 100%;
	height: 32px;
	-webkit-border-radius: 2px;
	border-radius: 2px;
	color: #515151;
	padding: 0 10px;
	background: #eeeeee;
	-webkit-box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.15), 1px 1px 0 rgba(255, 255, 255, .3);
	box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.15), 1px 1px 0 rgba(255, 255, 255, .3);
	border: 1px #cac7c6 solid;
}

form textarea {
	overflow: auto;
}

.styled-select {
	line-height: 32px;
}

.styled-select select {
	width: 100%;
	display: inline-block;
	background: transparent;
	border: none;
	-webkit-border-radius: 0;
	border-radius: 0;
	outline: none;
}

form textarea {
	height: 200px;
}

form .field {
	padding: 5px 0;
}

.list-style-a {
	list-style: none;
}

.list-style-a li {
	margin: 0;
	border-bottom: 1px #e6e6e6 solid;
	line-height: 13px;
	padding: 10px 0 10px 15px;
	position: relative;
	font-weight: 400;
}

.list-style-a li:after {
	content: "";
	width: 7px;
	height: 11px;
	position: absolute;
	top: 50%;
	left: 0;
	margin: -5px 0 0;
	background: url("../img/icons.png") no-repeat -29px -822px;
}

.svg .list-style-a li:after {
	background-image: url("../img/icons.svg");
}

.list-style-a li:first-child {
	border-top: 1px #e6e6e6 solid;
}

.list-style-a li:hover, 
.list-style-a .active {
	background-color: #f1f1f1;
	background-image: none;
}

.list-style-a li:hover:after,
.list-style-a .active:after {
	display: none;
}

.list-style-a li:hover:before,
.list-style-a .active:before {
	content: "";
	width: 5px;
	height: 100%;
	position: absolute;
	left: 0;
	top: 0;
}

.sidebar .box {
	margin-bottom: 30px;
}

/*
 * FAQ page
 */
ul.faq-item li {
    border-bottom: 1px dotted #CECECE;
}

ul.faq-item li {
    padding: 0 10px 20px;
}

ul.faq-item dd p.question {
    font-weight: bold;
}

ul.faq-item dd p {
    margin: 20px 0;
    padding: 0 0 0 20px;
}

.faq-item .question-symbol, .faq-item .answer-symbol {
    float: left;
    font-weight: bold;
}

#main {
	margin-top: 100px;
}

.home #main {
	margin-top: 155px;
}

/*
 * Offers
 */
.offers {
	float: left;
	width: 100%;
	padding: 0;
}

.offers.slide {
	margin-top: 30px;
	-webkit-transform: translate3d(0, 0, 0);
}

.offers.slide .bx-controls-direction {
	opacity: 0;
	filter: alpha(opacity = 0);
}

.offers.slide:hover .bx-controls-direction {
	opacity: 1;
	filter: alpha(opacity = 100);
}

.offers .items {
	list-style: none;
	margin: 0;
	padding: 0;
	overflow: hidden;
}

.offers .offer {
	background: #FFF;
	-webkit-box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.2);
	box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.2);
	margin: 0px 0px 5px 0px;
}

.offers .automatch > li {
	padding: 0 0 0 10px;
}

.home .automatch > li {
  margin-bottom: 0px;
}

.home .offers .offer {
	margin: 0px 0px 5px 7px;
}

.offers .packed .offer:hover {
	background-color: #f1f1f1;
}

.offer address {
	overflow: hidden;
	display: table-cell;
	height: 60px;
	vertical-align: middle;
	text-overflow: ellipsis;
	font-weight: normal;
	font-style: italic;
}

.offer address p {
	padding: 5px 10px;
	max-height: 60px;
	margin: 0;
	font-size: 14px;
	line-height: 16px;
}

.grid .offer img {
	display: block;
	width: 100%;
}

.list.items .offer {
	position: relative;
	margin-bottom: 30px;
	padding: 0;
	overflow: hidden;
}

.list .offer address {
	padding: 10px 0px 5px 0;
}

.box.general .list .offer address {
	padding: 0px 0px 5px 0;
}

.list .offer .prop-info {
	margin-bottom: 20px;
}

.list .offer .prop-info.price {
	margin: 0;
	position: absolute;
	bottom: 0;
	left: 5%;
	width: 90%;
	z-index: 10;
}

.offer .prop-info .label {
	color: #858585;
}

.offer .prop-info .value {
	color: #000;
}

.list.items .offer address {
	height: auto;
	font-size: 14px;
	font-style: normal;
}

.list .offer .left {
	float: left;
	position: relative;
}

.list .offer .right {
	margin-left: 240px;
	padding-right: 10px;
}

.grid .offer .prop-info {
	list-style: none;
	margin: -30px 10px 0;
	padding: 0;
	position: relative;
	z-index: 10;
}

.offer .prop-info .highlight .value {
	font-size: 18px;
}

.offer .prop-info li, .offer .prop-info .highlight {
	overflow: hidden;
	border-bottom: 1px #e4e4e4 solid;
	padding: 6px 10px;
	color: #858585;
}

.offer .prop-info .last {
	border: none;
	padding-left: 0;
	padding-right: 0;
}

.offer .prop-info .label {
	float: left;
}

.offer .prop-info .value {
	float: right;
	color: #171717;
}

.offer .prop-info.horizontal .label,
.offer .prop-info.horizontal .value {
	float: none;
}

.list .offer .highlight {
	border-bottom: none;
}

.offers .packed .offer {
	padding: 10px 0 10px 110px;
	border-bottom: 1px #e6e6e6 solid;
	position: relative;
	-webkit-box-shadow: none;
	box-shadow: none;
	min-height: 100px;
	margin: 0;
}

.offers .packed .offer a:hover {
	text-decoration: none;
}

.offers .packed .offer:first-child {
	border-top: 1px #e6e6e6 solid;
}

.offers .packed .offer:last-child {
	border-bottom: 0px none;
}

.offers .packed .offer .image {
	position: absolute;
	top: 10px;
	left: 0;
}

.offers .packed .price {
	display: inline-block;
	padding: 2px 6px;
}

.offers .packed .date {
	color: #717171;
	font-size: 11px;
	padding-left: 20px;
	position: relative;
}

.offers .packed .date:after {
	content: "";
	width: 14px;
	height: 15px;
	position: absolute;
	top: 50%;
	left: 0;
	margin: -7px 0 0;
	background: url("../img/icons.png") no-repeat -25px -211px;
}

.svg .offers .packed .date:after {
	background-image: url("../img/icons.svg");
}

.bx-wrapper {
	margin: 0 auto;
	max-width: 100% !important; /* Plugin calculations are not correct. Force max-width */
}

.bx-wrapper .bx-viewport {
	background: none;
	border: none;
	-webkit-box-shadow: none;
	-moz-box-shadow: none;
	box-shadow: none;
	left: 0;
	margin-left: 0;
}

.bx-wrapper .bx-pager, .bx-wrapper .bx-controls-auto {
	bottom: auto;
	top: 0px;
	padding-bottom: 30px;
	margin-top: -50px;
}

.bx-wrapper .bx-pager.bx-default-pager a,
.bx-wrapper .bx-pager.bx-default-pager a.active,
.bx-wrapper .bx-pager.bx-default-pager a:hover {
	width: 16px;
	height: 16px;
	background: url("../img/icons.png") no-repeat -25px -955px;
}

.bx-wrapper .bx-pager.bx-default-pager a.active {
	background-position: -25px -990px;
}

.svg .bx-wrapper .bx-pager.bx-default-pager a {
	background-image: url("../img/icons.svg");
}

/*
 * Testimonials
 */
.testimonials {
	padding: 25px 100px;
	font-style: italic;
	color: #575757;
	font-size: 14px;
	float: left;
	width: 100%;
	position: relative;
	margin-bottom: 3px;
}

.testimonials .arrow {
	opacity: 0.4;
	filter: alpha(opacity = 40);
}

.testimonials:hover .arrow {
	opacity: 1;
	filter: alpha(opacity = 100);
}

.testimonials-internal {
	font-style: italic;
	color: #575757;
	font-size: 18px;
}

.testimonials-internal ul li {
	margin: 0px 0px 30px 0px;
	padding: 26px;
}

.testimonials-internal blockquote:before {
	color: #d7d7d7;
	content: "\201C";
	display: block;
	font-family: times new roman;
	font-size: 100px;
	position: absolute;
	left: -10px;
	top: -30px;
	font-style: normal;
}
  
 .testimonials-internal blockquote {
	color: #383838;
	padding: 0px 0px 0px 40px;
	position: relative;
}

 .testimonials-internal blockquote cite {
	display: block;
	font-size: 14px;
	font-style: italic;
	font-weight: bold;
	padding: 10px 0 0;
	text-align: center;
}

.testimonials ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.testimonials .author,
.testimonials-internal .author {
	font-weight: bold;
	font-style: italic;
	text-align: center;
	font-size: 14px;
	display: block;
	padding: 15px 0 0;
}

.testimonials-internal .author {
	padding: 10px 0 0;
}

.testimonials .controls .arrow {
	display: block;
	position: absolute;
	top: 50%;
	margin: -20px 0 0;
}

.testimonials .controls .arrow a {
	display: block;
	width: 40px;
	height: 40px;
	-webkit-border-radius: 100%;
	border-radius: 100%;
	background-color: #e9e4e0;
	position: relative;
}

.testimonials .controls .arrow a:after {
	content: "";
	width: 16px;
	height: 24px;
	position: absolute;
	top: 50%;
	left: 50%;
	margin: -12px 0 0 -8px;
	background: url("../img/icons.png") no-repeat;
}

.svg .testimonials .controls .arrow a:after {
	background-image: url("../img/icons.svg");
}

.testimonials .controls .arrow.prev a:after {
	background-position: -25px -697px;
}

.testimonials .controls .arrow.next a:after {
	background-position: -25px -761px;
}

.testimonials:after {
	/*background: url("http://www.unifato.net/estate/assets/core/img/testimonials-curtain.png") repeat-x left top;*/
}

.testimonials .controls .prev {
	left: 20px;
}

.testimonials .controls .prev a {
	background-position: left top;
}

.testimonials .controls .next {
	right: 20px;
}

.testimonials .controls .next a {
	background-position: right top;
}

.testimonials:after {
	content: "";
	position: absolute;
	bottom: -3px;
	left: 0;
	height: 3px;
	width: 100%;
}

/*
 * Shortcodes
 */
.warning, 
.error,
.info,
.success {
	min-height: 50px;
 	line-height: 50px;
 	padding: 0px 0px 0px 50px;
 	font-size: 14px;
	background-position: 12px center;
	background-repeat: no-repeat;
	border: 3px solid transparent;
	margin-bottom: 10px;
	position: relative;
}

.warning:after, 
.error:after,
.info:after,
.success:after {
	content: "";
	width: 28px;
	height: 28px;
	position: absolute;
	top: 50%;
	left: 0;
	margin: -14px 0 0 14px;
	background: url("../img/icons.png") no-repeat;
}

.svg .warning:after, 
.svg .error:after,
.svg .info:after,
.svg .success:after {
	background-image: url("../img/icons.svg");
}

.error:after {
	background-position: -19px -416px;
}

.warning:after {
	background-position: -18px -268px;
}

.info:after {
	background-position: -18px -341px;
}

.success:after {
	background-position: -18px -491px;
}

.warning.simple, 
.error.simple,
.info.simple,
.success.simple {
	border: 3px dashed #4b4b4b;
	background-color: transparent;
}

/*
 * Promises (home page)
 */
.promises {
	position: relative;
	overflow: visible;
	padding-top: 20px;
	padding-bottom: 20px;
}

.promises .col {
	position: relative;
	padding-left: 100px;
}

.promises .col.alpha {
	border-right: 1px #cbcbcb solid;
	padding-right: 20px;
	margin-bottom: 0px;
}

.promises .col.omega {
	padding-right: 20px;
	margin-bottom: 0px;
}

.promises h6 {
	margin: 0px 0px 5px 0px;
	padding: 0;
}

.promises:after {
	content: "";
	position: absolute;
	bottom: -5px;
	left: 0;
	width: 100%;
	height: 5px;
	background: url("../img/promises-curtain.png") repeat-x left top;
}

.promises .icon {
	position: absolute;
	top: 0;
	left: 10px;
}

.promises .data {
	float: left;
}

/*
 * Agents
 */
.agents {
	float: left;
	width: 100%;
	color: #171717;
	margin: 20px 0 0 0;
}

.agents .agent.col.omega {
	padding-left: 25px;
}

.agents.grid .descr {
	margin: 10px 0;
	line-height: 1.5em;
}

.agents.grid h6 {
	text-transform: uppercase;
	font-size: 20px;
	font-weight: normal;
}

.agents .list .agent {
	overflow: hidden;
/*	background: url("../img/railing.png") repeat-x left bottom;
*/	margin-bottom: 40px;
}

.agents .list.tighter .agent {
	padding-bottom: 40px;
	margin-bottom: 37px;
	background: none;
	border-bottom: 1px #cbcbcb solid;
}

.agents .tighter .photo img {
	width: 100px;
}

.agents .list .agent:last-child {
	margin-bottom: 0;
}

.agents .list .agent .descr {
	margin-bottom: 10px;
}

.agent h6 {
	margin-bottom: 10px;
}

.agents .contact-info a {
	display: inline;
	float: none;
}

.agent .photo,
#main .agents .list.tighter .photo {
	width: 130px;
	height: 130px;
	-webkit-border-radius: 100%;
	border-radius: 100%;
	background: #f7f5f4;
	background: rgba(255, 255, 255, .4);
	padding: 15px;
	overflow: hidden;
	float: left;
	margin-right: 20px;
}

.agent.card .photo {
	height: 70px;
	width: 70px;
	padding: 0;
}

.agents .list .agent .photo {
	width: 150px;
	height: 150px;
	background: #FFF;
}

.agent .photo img {
	width: 100%;
	-webkit-border-radius: 100%;
	border-radius: 100%;
	display: inline-block;
}

.agents h4 {
	text-transform: uppercase;
	font-weight: normal;
	padding: 0 0 20px;
}

.agents .list .agent.last {
	padding-bottom: 0;
	border: none;
	background: none;
}

.agent.card .descr {
	margin: 0;
	padding: 0 0 20px;
	clear: both;
}

.agents .button.th-brown {
	margin: 5px 0;
	width: 110px;
	text-transform: uppercase;
	float: right;
	font-size: 11px;
}

.agents .list .contact-info {
	margin-bottom: 10px;
}

.agents .contact-media {
	overflow: hidden;
	margin-bottom: 10px;
}

.agents .contact-media .media {
	display: block;
	width: 38px;
	height: 38px;
	background: url("../img/social-set2-sprite.png") no-repeat left top;
	float: left;
	margin-right: 5px;
}

.agents .contact-media .facebook {
	background-position: 0 0;
}

.agents .contact-media .gplus {
	background-position: -47px 0;
}

.agents .contact-media .twitter {
	background-position: -94px 0;
}

.agents .col.alpha {
	border-right: 1px #cbcbcb solid;
	padding-right: 25px;
}
/*
 * Footer
 */
#footer {
	height: 125px;
	padding: 25px 0 80px;
	color: #cdcdcd;
	margin: 50px 0 0;
	-webkit-box-shadow: 0 0 3px rgba(0, 0, 0, .3);
	box-shadow: 0 0 3px rgba(0, 0, 0, .3);
}

#footer img {
	position: absolute;
	width: 110px;
	margin-left: -20px;
	margin-top: -4px;
}

#footer .col {
	/*height: 256px;*/
	/*padding: 10px 15px;*/
}

#footer ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

#footer h6 {
	font-weight: bold;
	color: #e0b971;
	text-align: right;
	padding: 0 0 10px;
	margin-left: 85px;

}

#footer a {
	color: #cdcdcd;
	text-decoration: none;
	display: block;
	float: left;
}

#footer .links {
	float: left;
}

#footer .links:first-child {
	padding-right: 60px;
}

#footer .links li {
	clear: both;
	/*margin: 0 0 10px;*/
	overflow: hidden;
}

#footer p {
	color: #e0b971;
	line-height: 22px;
	margin-left: 85px;
	/*padding-bottom: 20px;*/
}

#footer .newsletter-subscribe {
	/*padding: 0 0 20px;*/
	float: right;
	overflow: hidden;
}

#footer .social {
	clear: both;
	overflow: hidden;
}

#footer .social li {
	margin-left: 26px;
	float: left;
}

#footer .social li:first-child {
	margin-left: 0;
}

#footer .social a {
	display: block;
	width: 24px;
	height: 26px;
	border: none;
	position: relative;
}

#footer .social a:after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	background: url("../img/icons.png") no-repeat left top;
}

.svg #footer .social a:after {
	background-image: url("../img/icons.svg");
}

#footer .social .facebook:after {
	background-position: -26px -1252px;
	height: 24px;
	width: 13px;
	margin: -12px 0 0 -6px;
}

#footer .social .linkedin:after {
	background-position: -18px -1304px;
	height: 26px;
	width: 26px;
	margin: -12px 0 0 -12px;
}

#footer .social .gplus:after {
	background-position: -20px -1357px;
	width: 24px;
	height: 21px;
	margin: -10px 0 0 -12px;
}

#footer .social .youtube:after {
	background-position: -20px -1458px;
	width: 24px;
	height: 24px;
	margin: -12px 0 0 -12px;
}

#footer .social .pinterest:after {
	background-position: -20px -1149px;
	width: 24px;
	height: 24px;
	margin: -12px 0 0 -12px;
}

#footer .social .twitter:after {
	background-position: -20px -1049px;
	width: 24px;
	height: 18px;
	margin: -9px 0 0 -12px;
}

#footer .social .rss:after {
	background-position: -20px -1097px;
	width: 24px;
	height: 24px;
	margin: -12px 0 0 -12px;
}

#footer form .text.dark {
	-webkit-border-radius: 3px;
	border-radius: 3px;
	border: none;
	height: 32px;
	line-height: 32px;
	font-style: italic;
	width: 220px;
	float: left;
	-webkit-box-shadow: inset 0 0 10px rgba(0, 0, 0, .3),
				1px 0 1px rgba(255, 255, 255, .4);
	box-shadow: inset 0 0 10px rgba(0, 0, 0, .3),
				1px 0 1px rgba(255, 255, 255, .4);
}

#footer form .submit {
	float: left;
	margin: 1px 0 0 -4px;
	font-weight: bold;
	width: 50px;
	height: auto;
	line-height: normal;
	padding: 7px 15px;
}

/*
 * Blog
 */
.post {
	margin-bottom: 50px;
}

.post .entry-header {
	margin-bottom: 10px;
}

.entry-title {
	font-size: 16px;
	margin-bottom: 10px;
}

.entry-title a:hover,
.entry-title a:visited {
	text-decoration: none;
	color: inherit;
}

.entry-image {
	position: relative;
}

.entry-image img {
	display: inline-block;
	width: 100%;
	max-width: 100%;
}

.entry-image .the-date {
	display: block;
	position: absolute;
	top: 0;
	left: 0;
	background: #f5bc32;
	width: 50px;
	height: 50px;
	text-align: center;
	line-height: 16px;
}

.entry-image .the-date .date {
	font-size: 18px;
	display: block;
	margin-top: 9px;
}

.entry-content {
	line-height: 20px;
	color: #171717;
	clear: both;
}

.entry-content p {
	margin: 15px 0;
}

.entry-meta {
	padding-top: 10px;
	color: #171717;
	font-size: 12px;
}

.entry-meta .meta {
	display: inline-block;
	padding-left: 30px;
	margin-right: 25px;
	line-height: 24px;
	height: 24px;
	position: relative;
}

.entry-meta .meta:after {
	content: "";
	width: 24px;
	height: 24px;
	position: absolute;
	top: 0;
	left: 0;
	background: #e1ddd7 url("../img/icons.png") no-repeat;
}

.svg .entry-meta .meta:after {
	background-image: url("../img/icons.svg");
}

.entry-meta .meta a {
	line-height: 18px;
}

.entry-meta .meta.author:after {
	background-position: -20px -166px;
}

.entry-meta .meta.posted-in:after {
	background-position: -20px -85px;
}

.entry-meta .meta.comments:after {
	background-position: -20px -125px;
}

.entry-meta a:hover {
	border-bottom-color: transparent;
	text-decoration: none;
}

/*
 * Shortcode - Accordeon
 */
#main .ui-accordion .ui-accordion-content {
	padding: 10px;
	background: #FFF;
	-webkit-border-radius: 0;
	border-radius: 0;
	margin-bottom: 10px;
	height: 100%;
}

#main .ui-accordion .ui-accordion-header {
	padding: 10px;
	color: #FFF;
	-webkit-border-radius: 0;
	border-radius: 0;
	font-weight: normal;
	border: none;
	margin-bottom: 10px;
}

#main .ui-accordion .ui-accordion-icons {
	padding-left: .5em;
}

#main .ui-accordion .ui-accordion-icons:hover {
	border: none;
}

#main .ui-accordion .ui-state-active {
	margin-bottom: 0;
}

#main .ui-accordion .ui-accordion-header-icon {
	display: none;
}

/*
 * Shortcode - tabs
 */
#main .ui-tabs {
	background: none;
	-webkit-border-radius: 0;
	border-radius: 0;
	padding: 0;
}

#main .ui-tabs .ui-tabs-panel {
	background: #FFF;
}

#main .ui-tabs .ui-tabs-nav {
	background: none;
	border: none;
	-webkit-border-radius: 0;
	border-radius: 0;
	padding: 0;
}

#main .ui-tabs .ui-corner-top {
	border-radius: 0;
	border: none;
	font-weight: normal;
	margin-right: 10px;
}

#main .ui-tabs .ui-corner-top a {
	color: #FFF;
	padding-left: 20px;
	padding-right: 20px;
	display: inline-block;
}

#main .ui-tabs .ui-tabs-active {
	background: #FFF;
}

/*
 * Cloud tags
 */
.cloud-tags .tag {
	color: #353535;
	font-size: 12px;
	display: inline-block;
	padding: 6px 10px;
	background: #eee;
	background: -webkit-linear-gradient(top, #eeeeee, #dedede);
	background: -moz-linear-gradient(top, #eeeeee, #dedede);
	background: -ms-linear-gradient(top, #eeeeee, #dedede);
	background: linear-gradient(top, #eeeeee, #dedede);
	filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#eeeeee', endColorstr='#dedede',GradientType=0 );
	-webkit-border-radius: 0;
	border-radius: 0;
	border: 1px #cecece solid;
	margin: 0 10px 10px 0;
	box-shadow: inset 1px 1px 1px #f3f3f3, 0 2px 1px #f3f3f3;
	text-shadow: 0 1px 1px #FFF;
}

.cloud-tags a.tag:hover {
	text-decoration: none;
	background-color: #f1f1f1;
}

/*
 * Listings filter bar
 */
.filterbar {
	padding: 10px;
	margin-bottom: 30px;
	overflow: hidden;
}

.filterbar .listing-view-change {
	float: left;
	margin-top: 3px;
}

.filterbar .listing-view-change a {
	display: inline-block;
	color: #858585;
	margin-right: 15px;
	padding-left: 20px;
	position: relative;
}

.filterbar .listing-view-change a:hover {
	text-decoration: none;
}

.filterbar .listing-view-change .grid,
.filterbar .listing-view-change .list {
	float: left;
}

.filterbar .listing-view-change .grid:after,
.filterbar .listing-view-change .list:after {
	content: "";
	width: 14px;
	height: 10px;
	position: absolute;
	top: 50%;
	left: 0;
	margin-top: -5px;
	background: url("../img/icons.png") no-repeat -25px -11px;
}

.filterbar .listing-view-change .list:after {
	width: 15px;
	height: 11px;
	background-position: -25px -51px;
}

.svg .filterbar .listing-view-change .grid:after,
.svg .filterbar .listing-view-change .list:after {
	background-image: url("../img/icons.svg");
}

.filterbar .sortby {
	float: right;
}

.filterbar .sortby select {
	color: #171717;
	font-size: 13px;
}

/*
 * Paging
 */
.paging li {
	display: inline-block;
	margin-right: 5px;
}

.paging a {
	display: block;
	width: 30px;
	height: 30px;
	line-height: 28px;
	text-align: center;
	font-weight: bold;
	color: #353535;
	-webkit-border-radius: 3px;
	border-radius: 3px;
	background: #dedede;
	overflow: hidden;
	background: -webkit-linear-gradient(top, #eee, #dedede);
	background: -moz-linear-gradient(top, #eee, #dedede);
	background: -ms-linear-gradient(top, #eee, #dedede);
	background: linear-gradient(top, #eee, #dedede);
	filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#eeeeee', endColorstr='#dedede',GradientType=0 );
	-webkit-box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.paging a:hover {
	text-decoration: none;
}

.paging .active {
	color: #FFF;
	background: #787878;
	background: -webkit-linear-gradient(top, #777, #555);
	background: -moz-linear-gradient(top, #777, #555);
	background: -ms-linear-gradient(top, #777, #555);
	background: linear-gradient(top, #777, #555);
	filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#777777', endColorstr='#555555',GradientType=0 );
	border-color: #777777;
}

/*
 * Properties map
 */
#properties-map {
	width: 100%;
	height: 400px;
}

.infowindow {
	font-size: 12px;
}

.infowindow .address {
	color: #512813;
	margin: 10px 0;
}

.infowindow a {
	color: #cd7e02;
}

.infowindow .details-url {
	text-align: center;
	margin: 10px 0;
}

/*
 * Custom styling on jQuery UI components
 */

#main .ui-widget-content {
	border: 0 none;
}

#main .ui-tabs .ui-corner-top a {
	padding: 10px 20px;
}

#main .ui-corner-bottom {
	-webkit-border-radius: 0;
	border-radius: 0;
}

#main .ui-tabs-panel,
#main .ui-tabs-active,
#main .ui-state-default,
#main .ui-accordion-content {
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

#main .ui-tabs-panel {
	position: relative;
	overflow: hidden;
	padding: 10px;
}

#main .ui-accordion-content {
	position: relative;
}

#main .ui-accordion .ui-accordion-icons {
	padding-left: 16px;
}

#main .ui-tabs-panel img {
	display: block;
	margin: 0 10px 10px 0;
	float: left;
}

/*
 * Custom styling on jQuery BXSlider components
 */

.bx-wrapper .bx-caption {
	background: none repeat scroll 0 0 rgba(80, 80, 80, 0.85);
	top: 0;
	bottom: auto;
}

.bx-wrapper .bx-caption span {
	font-size: 1em;
}

.offers .bx-viewport ul.items.grid {
	padding-bottom: 5px;
}

.bx-wrapper .bx-prev:after,
.bx-wrapper .bx-next:after {
	content: "";
	width: 16px;
	height: 24px;
	position: absolute;
	top: 50%;
	left: 50%;
	margin: -12px 0 0 -8px;
	background: url("../img/icons.png") no-repeat left top;
}

.svg .bx-wrapper .bx-prev:after,
.svg .bx-wrapper .bx-next:after {
	background-image: url("../img/icons.svg");
}

.bx-wrapper .bx-prev:after {
	background-position: -25px -697px;
}

.bx-wrapper .bx-next:after {
	background-position: -25px -761px;
}

.bx-wrapper .bx-prev {
	left: 0;
	background: none;
}

.bx-wrapper .bx-next {
	right: 0;
	background: none;
}

.bx-wrapper .bx-controls-direction a {
	top: -22px;
}

/*
 * Icons
 */
.icon {
	display: inline-block;
}

.icon:after {
	background: url("../img/icons.png") no-repeat;
}

.svg .icon:after {
	background: url("../img/icons.svg");
}

.icon.rounded {
	-webkit-border-radius: 100%;
	border-radius: 100%;
}

.icon:after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
}

.icon.icon-house {
	width: 70px;
	height: 70px;
}

.icon.icon-house:after {
	width: 42px;
	height: 35px;
	background-position: -11px -1710px;
	margin: -17px 0 0 -21px;
}

.icon.icon-location {
	width: 70px;
	height: 70px;
}

.icon.icon-location:after {
	width: 41px;
	height: 34px;
	background-position: -11px -1780px;
	margin: -17px 0 0 -21px;
}

.icon.icon-phone {
	width: 50px;
	height: 50px;
}

.icon.icon-phone:after {
	width: 31px;
	height: 21px;
	background-position: -16px -1856px;
	margin: -10px 0 0 -15px;
}

.icon.icon-email {
	width: 50px;
	height: 50px;
}

.icon.icon-email:after {
	width: 28px;
	height: 18px;
	background-position: -18px -1927px;
	margin: -9px 0 0 -14px;
}

.icon.icon-address {
	width: 50px;
	height: 50px;
}

.icon.icon-address:after {
	width: 20px;
	height: 26px;
	background-position: -22px -1993px;
	margin: -13px 0 0 -10px;
}

/*
 * A little support for IE7 so that the site would not look absolutely broken.
 * If you don't want to support IE7 at all, please remove next lines
 */

.lt-ie8 #footer .col {
	width: 29%;
	padding-left: 2%;
	padding-right: 2%;
}

.lt-ie8 #footer form .text.dark {
	width: 200px;
}

.lt-ie8 .train-railing {
	position: relative;
}

.lt-ie8 .train-railing .railing {
	display: block;
	position: absolute;
	top: 0;
	right: 0;
}

.lt-ie8 .train-railing .railing:first-child {
	left: 0;
	right: auto;
}

.lt-ie8 .train-railing .train {
	position: relative;
	left: 50%;
	top: 0;
	margin: 0 0 0 0;
}

/* ==========================================================================
   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: 980px) {
	
	.safari .styled-select {
		line-height: normal;
		padding-top: 6px;
	}

	.safari .styled-select select {
		background: transparent url("../img/select-arrow.svg") no-repeat right center;
		padding-right: 20px;
		height: 18px;
		line-height: 16px;
		-webkit-appearance: none;
		appearance: none;
	}
}

@media only screen and (max-width: 979px) {
    
	body, html {
		overflow-x: hidden;
		min-width: auto;
	}

	.container {
		width: auto;
		padding: 10px;
		overflow: hidden;
	}

	.container .sidebar {
		float: none;
		clear: both;
		width: 100%;
	}

	.container .main-content {
		float: none;
		clear: both;
		width: 100%;
	}

	#main {
		margin-top: 20px;
	}

	.home #main {
		margin-top: 20px;
	}

	#header, .home #header {
		background-image: none;
		height: auto;
	}

	#header nav {
		right: 10px;
	}

	#header nav .desktop {
		display: none;
	}

	#header nav .mobile {
		display: block;
	}

	#header nav .mobile select {
		width: 200px;
	}

	#header .slider {
		height: auto;
		margin-bottom: 20px;
	}

	.home #header .slider {
		height: auto;
	}

	.quick-search {
		margin: 0;
		width: auto;
		left: auto;
		height: auto;
		-webkit-border-radius: 0;
		border-radius: 0;
	}

	.quick-search .button.submit {
		width: 100%;
	}

	.quick-search-shadow {
		bottom: 9px;
	}

	.quick-search .train {
		font-size: 24px;
	}

	.quick-search .railing {
		background: none;
	}

	.quick-search .filters li,
	.quick-search .filters > li:first-child {
		width: 50%;
		padding: 5px;
		margin: 0;
	}

	.quick-search .filters > li:last-child {
		background: none;
		margin-top: 0;
	}

	.quick-search .filters select {
		font-size: 13px;
	}

	.quick-search .advanced-search {
		display: none;
	}

	#footer {
		height: auto;
		margin: 0;
	}

	#footer .col {
		border: none !important;
		padding: 0;
	}

	#footer .col:first-child {
		border-left: none;
	}

	#footer .links {
/*		width: 50%;
*/	}

	.agents .col,
	.agents .col.alpha,
	.promises .col,
	.promises .col.alpha,
	.promises .col.omega {
		float: none;
		width: 100%;
		clear: both;
		margin-bottom: 20px;
		overflow: hidden;
		border: none;
		padding-right: 0;
	}

	.agents .agent.col.omega,
	.agents .agent.col.alpha {
		padding-left: 0;
	}

	.agents .list .agent.last {
		margin-bottom: 20px;
	}

	.offers .items > li {
		width: auto;
		float: none;
	}

	.list .offer .left {
		float: none;
	}

	.list .offer img {
		display: block;
		width: 100%;
	}

	.list .offer .right {
		padding: 10px;
		margin: 0;
	}

	.train-railing.tmobile .railing {
		display: none;
	}

	.train-railing.tmobile {
		white-space: normal;
	}
	
	.offers.slide .bx-controls-direction {
		opacity: 1;
	}

	#header .slider:hover .controls .arrow,
	#header .slider:hover .bx-caption,
	#header .controls .prev,
	#header .controls .next,
	#header .slider .bx-caption {
		opacity: 1;
		-webkit-transition: none;
		-moz-transition: none;
		-ms-transition: none;
		-o-transition: none;
		transition: none;
	}
}

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

	#header nav {
		position: static;
		margin-top: 10px;
	}

	#header nav .mobile select {
		width: 100%;
	}

	.bx-wrapper .bx-pager.bx-default-pager a {
		margin-left: 2px;
		margin-right: 2px;
	}
}

@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;
    }
}