/*******************************************************************
	CONTENT
*******************************************************************/

header {
	background: #000000;
}

footer {
	padding: 10px 10px 50px 10px;
	background: #000000;
	text-align: center;
}

#backstretch {
	position: relative;
	z-index: 10;
}

/*******************************************************************
	OUR TEAM
*******************************************************************/

.innerBoxStaff {
	border-bottom: 1px solid #616161;
	padding-bottom: 15px;
	min-height: 300px;
}

.innerBoxStaff:last-of-type {
	border-bottom: none;
}

.innerBoxStaff img {
	border: 1px solid #c6093b;
	box-shadow: 1px 1px 5px rgba(0, 0, 0, 0.5);
	float: right;
	margin: 0 0 20px 20px;
	padding: 1px;
}

@media handheld, only screen and (max-width: 770px) {
	.innerBoxStaff img {
		max-width: 150px;
	}
}

@media handheld, only screen and (max-width: 500px) {
	.innerBoxStaff img {
		max-width: 125px;
	}
}

/*******************************************************************
	SPECIALS
*******************************************************************/

#specials .special {
	overflow: hidden;
	clear: both;
	padding-bottom: 30px;
	border-bottom:  1px solid rgba(255,255,255,0.5);
	margin: 30px 0;
}

#specials .special:first-child {
	margin-top: 50px;
}

#specials .special:last-child {
	border-bottom: none;
}

#specials h2 {
	font-size: 20px;
	font-weight: bold;
	margin-top: 0;
}

#specials .photoborder {
	max-width: 40%;
}

#masthead {
	height: 450px;
}

#masthead.short {
	height: 225px;
}

/*******************************************************************
	TESTIMONIALS
*******************************************************************/

.testimonials .quotes {
	display: none;
}

.testimonial-sender {
	text-align: right;
	font: 600 18px Open Sans, Verdana, Arial, sans-serif;
	color: #c6093b;
	margin: 0 0 10px 0;
}

/*******************************************************************
  GALLERY
*******************************************************************/

.gallery {
	text-align: justify;
}

.magnific.gallery:after {
	content: ' ';
	display: inline-block;
	width: 100%;
}

#accordion .slick.gallery {
	max-width: none;
}

#accordion .gallery a.visible {
	max-width: 100%;
	display: block;
	padding: 10px 10px 5px 10px;
	margin: 12px 0 0 12px;
	box-shadow: 0 2px 5px #666;
}

.gallery a.visible {
	max-width: 23%;
	box-shadow: none;
	margin-left:0;
	margin-right:0;
	display: inline-block;
}

/*******************************************************************
  CONTACT FORM
*******************************************************************/

.form {
	margin: 0 0 20px 0;
}

/* Contact form inputs and text areas*/
.form input[type='text'], .form textarea {
	max-width: 50%;
	border: 1px solid #cccccc;
	padding: 0.25em 0.5em;
	background-color: white;
	font-family: inherit;
	color: rgba(0, 0, 0, 0.75);
	-webkit-transition: -webkit-box-shadow 0.45s, border-color 0.45s ease-in-out;
	-moz-transition: -moz-box-shadow 0.45s, border-color 0.45s ease-in-out;
	transition: box-shadow 0.45s, border-color 0.45s ease-in-out; 
	box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Resizes the text area*/
.form textarea {
	width: 90%;
	max-width: 95%;
	height: 150px;
}

/* Removes the Chrome outline on focus, and produces an animation*/
.form input[type='text']:focus, .form textarea:focus {
	-webkit-box-shadow: 0 0 5px #999999;
    -moz-box-shadow: 0 0 5px #999999;
    box-shadow: 0 0 5px #999999;
    border-color: #999999; 
    border-color: #999999;
    outline: none;
}

.form input[type="radio"]:last-of-type {
	margin-left: 25px;
}

/* Submit button for the form*/
.form .submit {
	display: inline-block;
	width: 180px;
	border-style: none;
	padding: 10px 35px 10px 35px;

	background: #c6093b; 
	font: 16px 'Open Sans', Myriad Pro, sans-serif;
	line-height: 14px;
	text-decoration: none;
	text-align: center;
	text-transform: uppercase;
	color: #fff;
	vertical-align: middle;
	cursor: pointer;

	border-radius: 2px;
}

/* Submit hover state*/
.form .submit:hover {
	background: #fff; 
	color: #c6093b;
	box-shadow:  inset 0px 1px 1px 0px rgba(255,255, 255, 0.2), inset 0px -1px 1px 0px rgba(0,0, 0, 0.2);
	text-decoration: none;
}

/* Contact form error messages*/
.form strong.required, .form div.error {color: #ff0000}

/* Displays a GIF loading animation once the form is submitted*/
.form .throbber {
	display: none;
	padding-left: 10px;
}

/* Surrounds the inputs witha  red border if an error is found on submit*/
.form input.error,.form textarea.error {border: 1px solid #ff0000}

/* Hides error messages above individual inputs*/
.form p.error {display: none !important} 

/* The contact form success container. Displays a thank-you messgae*/
.form_success {
	display: none;
}

/*******************************************************************
  MAIN PAGE INCLUDE
*******************************************************************/

#mainPageLists {
	margin: 20px 0;
}


/*******************************************************************
  Portfolio
*******************************************************************/

#content .portfolioList {
	margin: 40px 0 0 0;
}

#content .portfolio form {
	overflow: hidden;
}

#content .portfolio form#property-search {
	padding: 0 0 10px 0;
}

#content .portfolio form#property-search-keyword {
	padding: 30px 0 20px 0;
}

#content .portfolio form > div {
	float: left;
	height: 50px;
	margin-right: 20px;
}

#content .portfolio form > div:last-of-type {
	float: right;
	margin-right: 0;
}

#content .portfolio form label {
	display: block;
}

#content .portfolio form input[type="text"] {
	width: 240px;
}

#content .portfolio form label,
#content .portfolio form select,
#content .portfolio form input[type="text"] {
	font-size: 12px;
}

#content .portfolio form input[type="submit"] {
	background: #c6093b;
	border: none;
	color: #FFFFFF;
	margin: 7px 3px 7px 0;
	padding: 7px 20px;
	text-decoration: none;
}

#content .portfolio form input[type="submit"]:hover {
	color: #c6093b;
	background-color: #FFFFFF;
	box-shadow: 2px 2px 2px rgba(0,0,0,0.3);
}

#searchDivider {
	border-bottom: 1px solid #c6093b;
	text-align: center;
}

#searchDivider span {
	background: #FFFFFF;
	font-weight: bold;
	position: relative;
	padding: 0 10px;
	top: 9px;
}

#resultsNotice {
	border-top: 1px solid #c6093b;
	display: block;
	margin: 10px 0 25px 0;
	padding: 15px 0 0 0;
}

#content .portfolio h2 {
	background: #616161;
	border-bottom: 1px solid #717171;
	color: #FFFFFF;
	font-size: 16px;
	margin: 0 0 5px 0;
	padding: 10px 0 10px 40px;
	background-image: url(images/plus.png);
	background-repeat: no-repeat;
	background-position: 10px 10px;
}

#content .portfolio h2:hover {
	background-color: #c6093b;
	cursor: pointer;
}

#content h2#portfolioMap,
#content .portfolio h2#searchTitle {
	background: #c6093b;
	border: none;
	color: #FFFFFF;
	font-size: 20px;
	margin: 25px 0;
	padding: 10px 0 10px 10px;
}

.location {
	border-bottom: 1px solid #616161;
	display: none;
	overflow: hidden;
	padding: 30px 0 20px 0;
	width: 100%;
}

.locImage {
	float: right;
	max-width: 35%;
}

.locImage img {
	border: 1px solid #616161;
	box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
	margin-right: 2px;
	width: 100%;
}

.locInfo {
	float: left;
	width: 65%;
}

.locInfo h3 {
	color: #424242;
	font-size: 16px;
	margin: 0;
}

.portfolio .contact {
	float: right;
	width: 35%;
	text-align: right;
}

#map-canvas, #map_canvas {
	height: 100%;
	margin-bottom: 20px;
	min-height: 350px;
}

#map-canvas img {
	max-width: none;
}

#panel {
	position: absolute;
	top: 5px;
	left: 50%;
	margin-left: -180px;
	z-index: 5;
	background-color: #fff;
	padding: 5px;
	border: 1px solid #999;
}

@media handheld, only screen and (max-width: 875px) {
	.mapWrap {
		padding: 0 75px;
	}
}

@media handheld, only screen and (max-width: 520px) {
	.mapWrap {
		padding: 0 35px;
	}
}

/*******************************************************************
  MEDIA QUERIES
*******************************************************************/

@media handheld, only screen and (max-width: 1024px) {
	footer {
		padding: 10px;
	}
}

@media handheld, only screen and (max-height: 700px) {
	#masthead {
		height: 300px;
	}
}

@media handheld, only screen and (max-width: 875px) {
	#content {
		padding-top: 10px;
	}
}

@media handheld, only screen and (max-width: 600px) {

	.form a.reload {
		display: block;
	}

	.form .submit {
		margin: 0 auto;
	}
}	

@media handheld, only screen and (max-width: 540px) {
	.locImage,
	.locInfo {
		float: none;
		text-align: center;
		width: 100%;
	}

	.locImage {
		margin: 0 auto 10px auto;
		max-width: 210px;
	}
}

@media handheld, only screen and (max-width: 420px) {
	#masthead {
		height: 250px;
	}
}