/* ===================================
   MILFORD HUNT - COMPLETE STYLESHEET
   Combines common.css, menu.css, and menu-mobile.css
   Using modern responsive design with @media queries
   =================================== */

/* ===================================
   BASE STYLES (All Devices)
   =================================== */

* {
	box-sizing: border-box;
}

html {
	height: auto;
    overflow-x: hidden;
}

body {
	background: #00390e center top;
	padding: 0;
	margin: 0;
	font-family: Arial, Helvetica, sans-serif;
	font-size: 12px;
	width: 100%;
	overflow-x: hidden;
	min-height: 100vh;
	overflow-y: hidden;
}

a > img {
	border: none;
}

#mainbg {
	margin: 0;
	padding: 45px 0 0 0;
	min-width: 970px;
	width: 100%;
	box-sizing: border-box;
}

#main-topborder {
	position: relative;
	margin: 0 auto;
	width: 970px;
	height: 41px;
	background: transparent url(../images/frame_top.png) no-repeat left top;
}

#headerlogo {
	position: absolute;
	top: 40px;
	left: 30px;
	background-image: url(../images/MilfordHuntLogo.png);
	background-repeat: no-repeat;
	width: 250px;
	margin-bottom: 0px;
	padding-top: 0px;
	height: auto !important;
	height: 120px;
	min-height: 120px;
	z-index: 100;
}

#main-header {
	position: relative;
	margin: 0 auto;
	width: 970px;
	height: 363px;
	min-height: 363px;
	padding: 0;
	text-align: center; /* IE-Win hack */
	background: transparent url(../images/frame_mid.png) repeat-y left top;
}

#main-container {
	position: relative;
	margin: 0 auto;
	padding: 0;
	width: 970px;
	background: transparent url(../images/frame_mid.png) repeat-y left top;
}

#main-content {
	width: 900px;
	margin: 0 auto;
}

#main-footer {
	margin: 0 auto;
	padding: 0;
	width: 970px;
	height: 41px;
	text-align: center;
	vertical-align: top;
	background: transparent url(../images/frame_bottom.png) no-repeat left top;
}

#mainbuttonbar {
	width: 920px;
	margin: 0;
	padding: 25px 20px 0px 25px;
}

#mod-top > .mod-search {
	float: right;
}

#main_menu {
	position: absolute;
	top: 60px;
	left: 255px;
	width: 680px;
	margin-bottom: 0px;
	padding-top: 1px;
	height: auto !important;
}

#banner_image {
	position: absolute;
	top: 60px;
	background-image: url(../images/Header.jpg);
	background-repeat: no-repeat;
	background-size: contain;
	width: 920px;
	margin-bottom: 0px;
	padding-top: 1px;
	height: auto !important;
	height: 303px;
	min-height: 303px;
	z-index: 1;
}

#topbarfacebook-wrap {
	z-index: 2;
	opacity: 0.8;
	display: inline-block;
	position: absolute;
	text-align: right;
	width: 200px;
	top: 44px;
	right: 37px;
	vertical-align: middle;
}

.imageright {
	margin-top: 10px;
	float: right;
	margin-left: 10px;
	margin-bottom: 10px;
}

.imageleft {
	margin-top: 10px;
	float: left;
	margin-right: 10px;
	margin-bottom: 10px;
}

#tooltip {
	position: absolute;
	z-index: 3000;
	border: 1px solid #111;
	background-color: #333;
	font-size: 8px;
	font-weight: normal;
	padding: 5px;
	color: #fff;
	opacity: 0.85;
	width: 200px;
}

#tooltip h3,
#tooltip div {
	margin: 0;
}

#dialog label {
	font-size: 10px;
	display: block;
}

#dialog input {
	display: block;
}

#dialog input.text {
	margin-bottom: 0px;
	width: 95%;
	padding: 0.4em;
}

#dialog fieldset {
	padding: 0;
	border: 0;
	margin-top: 10px;
}

.ui-dialog .ui-state-error {
	padding: 0.3em;
}

/* jQuery UI widget header - match site color scheme */
.ui-widget-header {
	background: #00390e !important;
	border-color: #002a00 !important;
	color: #ffffff !important;
}

.ui-widget.ui-widget-content {
	border: 2px solid #00390e !important;
}

.ui-state-active {
	background: #005015 !important;
	border-color: #00390e !important;
	color: #ffffff !important;
}

.validateTips {
	color: #ff0000;
	border: 1px solid transparent;
	padding: 0.3em;
	font-size: 12px;
	font-weight: bold;
}

#customform label {
	font-size: 10px;
	display: block;
}

#customform input {
	display: block;
}

#customform input.text {
	margin-bottom: 0px;
	width: 95%;
	padding: 0.4em;
}

#customform textarea {
	margin-bottom: 0px;
	width: 95%;
	padding: 0.4em;
}

/* buyer_quotes.php specific styles */
blockquote {
	font-family: Georgia, Times, serif;
	width: 450px;
	margin: 0px auto;
	height: auto !important;
	min-height: 0 !important;
}

blockquote p {
	margin-bottom: 10px;
	font-style: italic;
	font-size: 18px;
	font-weight: bold;
}

blockquote cite {
	font-style: normal;
	display: block;
	text-align: right;
	text-transform: uppercase;
	font-size: 14px;
	font-weight: normal;
	font-family: Arial, Helvetica, sans-serif;
}

#quote_wrap {
	background: #d6e1d6 url(../images/quote-mark.png) no-repeat 20px 20px;
	margin: 40px 100px 40px 40px;
	padding: 20px 20px 20px 20px;
	border: 1px solid #004000;
	height: auto !important;
	min-height: 0 !important;
	overflow: visible !important;
}

#customform fieldset {
	padding: 0;
	border: 0;
	margin-top: 10px;
}

/* Easy Float Clearing */
.clearfix:after {
	content: ".";
	display: block;
	height: 0;
	clear: both;
	visibility: hidden;
}

/* Fix for login tab text wrapping */
.tab a.open,
.tab a.close {
	white-space: nowrap !important;
	width: auto !important;
	min-width: 130px !important;
}

/* ===================================
   TOP SLIDE PANEL / LOGIN STYLES
   =================================== */

/* Panel Tab/button */
.tab {
	background: url(../images/tab_b.png) repeat-x 0 0;
	height: 42px;
	position: relative;
	top: 0;
	z-index: 999;
}

.tab ul.login {
	display: block;
	position: relative;
	float: right;
	clear: right;
	height: 42px;
	width: auto;
	font-weight: bold;
	line-height: 42px;
	margin: 0;
	right: 150px;
	color: white;
	font-size: 80%;
	text-align: center;
}

.tab ul.login li.left {
	background: url(../images/tab_l.png) no-repeat left 0;
	height: 42px;
	width: 30px;
	padding: 0;
	margin: 0;
	display: block;
	float: left;
}

.tab ul.login li.right {
	background: url(../images/tab_r.png) no-repeat left 0;
	height: 42px;
	width: 30px;
	padding: 0;
	margin: 0;
	display: block;
	float: left;
}

.tab ul.login li {
	text-align: left;
	padding: 0 6px;
	display: block;
	float: left;
	height: 42px;
	background: url(../images/tab_m.png) repeat-x 0 0;
}

.tab ul.login li a {
	color: #15ADFF;
}

.tab ul.login li a:hover {
	color: white;
}

.tab .sep {
	color: #414141;
}

.tab a.open, .tab a.close {
	height: 20px;
	line-height: 20px !important;
	padding-left: 30px !important;
	cursor: pointer;
	display: block;
	width: 100px;
	position: relative;
	top: 11px;
}

.tab a.open {
	background: url(../images/tab_bt_open.png) no-repeat left 0;
}

.tab a.close {
	background: url(../images/tab_bt_close.png) no-repeat left 0;
}

.tab a:hover.open {
	background: url(../images/tab_bt_open.png) no-repeat left -19px;
}

.tab a:hover.close {
	background: url(../images/tab_bt_close.png) no-repeat left -19px;
}

/* sliding panel */
#toppanel {
	position: absolute;
	top: 0;
	width: 100%;
	z-index: 999;
	text-align: center;
	margin-left: auto;
	margin-right: auto;
}

#panel {
	width: 100%;
	height: 210px;
	color: #999999;
	background: #004000;
	overflow: hidden;
	position: relative;
	z-index: 3;
	display: none;
}

#panel h1 {
	font-size: 1.6em;
	padding: 5px 0 10px;
	margin: 0;
	color: white;
}

#panel h2 {
	font-size: 1.2em;
	padding: 10px 0 5px;
	margin: 0;
	color: white;
}

#panel p {
	margin: 5px 0;
	padding: 0;
}

#panel a {
	text-decoration: none;
	color: #15ADFF;
}

#panel a:hover {
	color: white;
}

#panel a-lost-pwd {
	display: block;
	float: left;
}

#panel .content {
	width: 960px;
	margin: 0 auto;
	padding-top: 15px;
	text-align: left;
	font-size: 0.85em;
}

#panel .content .left {
	width: 280px;
	float: left;
	padding: 0 15px;
	border-left: 1px solid #333;
}

#panel .content .right {
	border-right: 1px solid #333;
}

#panel .content form {
	margin: 0 0 10px 0;
}

#panel .content label {
	float: left;
	padding-top: 8px;
	clear: both;
	width: 280px;
	display: block;
}

#panel .content input.field {
	border: 1px #1A1A1A solid;
	background: #d0e0c0;
	margin-right: 5px;
	margin-top: 4px;
	width: 200px;
	color: #002a00;
	height: 16px;
}

#panel .content input:focus.field {
	background: #cefaa2;
}

/* BUTTONS */
/* Login and Register buttons */
#panel .content input.bt_login,
#panel .content input.bt_register {
	display: block;
	float: left;
	clear: left;
	height: 24px;
	text-align: center;
	cursor: pointer;
	border: none;
	font-weight: bold;
	margin: 10px 0;
}

#panel .content input.bt_login {
	width: 74px;
	background: transparent url(../images/tab_bt_login.png) no-repeat 0 0;
}

#panel .content input.bt_register {
	width: 94px;
	color: white;
	background: transparent url(../images/tab_bt_register.png) no-repeat 0 0;
}

#panel .lost-pwd {
	display: block;
	clear: right;
	margin: 0;
	padding: 0;
	font-size: 0.95em;
	text-decoration: underline;
}

/* ===================================
   DESKTOP MENU STYLES
   =================================== */

ul.sdt_menu {
	margin: 0;
	padding: 0;
	list-style: none;
	font-family: "Myriad Pro", "Trebuchet MS", sans-serif;
	font-size: 14px;
	width: 680px;
}

ul.sdt_menu a {
	text-decoration: none;
	outline: none;
}

ul.sdt_menu li {
	float: left;
	width: 170px;
	height: 85px;
	position: relative;
	cursor: pointer;
}

ul.sdt_menu li > a {
	position: absolute;
	top: 0px;
	left: 0px;
	width: 170px;
	height: 85px;
	z-index: 12;
	background: transparent url(../images/overlay.png) no-repeat bottom right;
	-moz-box-shadow: 0px 0px 2px #000 inset;
	-webkit-box-shadow: 0px 0px 2px #000 inset;
	box-shadow: 0px 0px 2px #000 inset;
}

ul.sdt_menu li a img {
	border: none;
	position: absolute;
	width: 0px;
	height: 0px;
	bottom: 0px;
	left: 85px;
	z-index: 100;
	-moz-box-shadow: 0px 0px 4px #000;
	-webkit-box-shadow: 0px 0px 4px #000;
	box-shadow: 0px 0px 4px #000;
}

ul.sdt_menu li span.sdt_wrap {
	position: absolute;
	top: 25px;
	left: 0px;
	width: 170px;
	height: 60px;
	z-index: 15;
}

ul.sdt_menu li span.sdt_active {
	position: absolute;
	background: #111;
	top: 85px;
	width: 170px;
	height: 0px;
	left: 0px;
	z-index: 14;
	-moz-box-shadow: 0px 0px 4px #000 inset;
	-webkit-box-shadow: 0px 0px 4px #000 inset;
	box-shadow: 0px 0px 4px #000 inset;
}

ul.sdt_menu li span span.sdt_link,
ul.sdt_menu li span span.sdt_descr,
ul.sdt_menu li div.sdt_box a {
	margin-left: 0px;
	text-transform: uppercase;
	text-shadow: 1px 1px 1px #000;
}

ul.sdt_menu li span span.sdt_link {
	color: #d4af37;
	font-size: 24px;
	float: center;
	clear: both;
}

ul.sdt_menu li span span.sdt_descr {
	clear: both;
	color: #ffffff;
	float: center;
	width: 155px; /* For dumbass IE7 */
	font-size: 10px;
	letter-spacing: 1px;
}

ul.sdt_menu li div.sdt_box {
	display: block;
	position: absolute;
	width: 170px;
	overflow: hidden;
	height: 170px;
	top: 85px;
	left: 0px;
	display: none;
	background: #000;
	z-index: 10;
}

ul.sdt_menu li div.sdt_box a {
	float: left;
	clear: both;
	line-height: 20px;
	margin-left: 10px;
	color: #d4af37;
}

ul.sdt_menu li div.sdt_box a:first-child {
	margin-top: 15px;
}

ul.sdt_menu li div.sdt_box a:hover {
	color: #fff;
}

/* ===================================
   MOBILE MENU STYLES
   =================================== */

/* Mobile Menu Container */
#menu-container {
	display: none; /* Hidden by default, shown on mobile */
	margin: 0;
	padding: 0;
	list-style: none;
	background: #4c4c4c;
}

/* Mobile user menu styling */
.mobile-user-info,
.mobile-login-section,
.mobile-admin-section,
.mobile-account-section,
.mobile-logout-section,
.mobile-divider {
	display: none; /* Hidden by default */
}

/* Only show user menu items below 700px */
@media (max-width: 700px) {
	.mobile-user-info,
	.mobile-login-section,
	.mobile-admin-section,
	.mobile-account-section,
	.mobile-logout-section,
	.mobile-divider {
		display: block;
	}
	
	.mobile-user-info {
		background: #3a3a3a;
		padding: 15px 20px;
		border-bottom: 2px solid #d4af37;
		color: #d4af37;
		font-weight: bold;
		font-size: 14px;
	}
}

.mobile-user-info span {
	display: block;
	color: #d4af37;
}

.mobile-login-section a,
.mobile-admin-section a,
.mobile-account-section a,
.mobile-logout-section a {
	display: block;
	padding: 12px 20px;
	color: #d4af37 !important;
	text-decoration: none;
	font-size: 14px;
	font-weight: 500;
	background: #3a3a3a;
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-login-section a:hover,
.mobile-admin-section a:hover,
.mobile-account-section a:hover,
.mobile-logout-section a:hover {
	background-color: #5a5a5a;
}

.mobile-divider {
	height: 2px;
	background: #d4af37;
	margin: 5px 0;
}

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
	display: none;
	position: fixed;
	top: 10px;
	right: 10px;
	z-index: 1000;
	background-color: #222222;
	border: none;
	padding: 10px 15px;
	cursor: pointer;
	border-radius: 4px;
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.mobile-menu-toggle span {
	display: block;
	width: 25px;
	height: 3px;
	background-color: #f5f5f5;
	margin: 5px 0;
	border-radius: 2px;
	transition: all 0.3s ease;
}

/* Hamburger animation when active */
.mobile-menu-toggle.active span:nth-child(1) {
	transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.active span:nth-child(2) {
	opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
	transform: rotate(-45deg) translate(6px, -6px);
}

/* ===================================
   RESPONSIVE BREAKPOINTS
   =================================== */

@media (max-width: 1000px) {
	/* Common Mobile Styles */
	html {
		width: 100%;
	}
	
	body {
		margin: 0;
		padding: 0;
		width: 100%;
		background-size: 100% auto;
	}
	
	#mainbg {
		padding: 55px 0 0 0 !important;
		min-width: 0 !important;
		width: 100% !important;
		min-height: 0;
	}

	#main-topborder {
		width: 95%;
		min-width: 0;
		background: #ffffff;
		padding-top: 10px;
	}

	#headerlogo {
		position: relative;
		top: auto;
		left: auto;
		margin: 20px auto;
		display: block;
	}

	#main-header {
		width: 95%;
		background: #ffffff;
		height: auto;
		min-height: 0;
		padding: 0;
	}

	#main-container {
		width: 95%;
		background: #ffffff;
	}

	#main-content {
		width: 90%;
	}

	#main-footer {
		width: 95%;
		background: #ffffff;
		height: auto;
		padding: 10px 0;
	}

	#mainbuttonbar {
		width: 90%;
	}

	#banner_image {
		width: 100% !important;
		max-width: 100% !important;
		height: auto !important;
		min-height: 0 !important;
		position: relative !important;
		top: auto !important;
		left: 0 !important;
		background-size: cover !important;
		background-position: center !important;
		padding-top: 0 !important;
		padding-bottom: 33%;
	}

	#topbarfacebook-wrap {
		position: static;
		text-align: center;
		width: 100%;
		margin: 10px 0;
	}

	/* Hide Desktop Menu */
	ul.sdt_menu {
		display: none;
	}
	
	/* Make forms responsive */
	#customform {
		width: 95% !important;
		max-width: 600px;
		margin-left: auto !important;
		margin-right: auto !important;
		padding: 0 10px;
		box-sizing: border-box;
	}
	
	/* Make content divs responsive */
	center > div[style*="width"],
	div[style*="width:750px"] {
		width: 95% !important;
		max-width: 750px;
		padding: 0 10px;
		box-sizing: border-box;
	}
	
	/* Make floated images responsive */
	.imageright,
	.imageleft {
		float: none !important;
		display: block;
		margin: 15px auto !important;
		max-width: 100% !important;
		height: auto !important;
		width: 100% !important;
	}
	
	/* Make maps responsive */
	#mapid {
		width: 95% !important;
		max-width: 900px;
		height: 350px !important;
		margin: 0 auto;
	}
	
	/* Make blockquotes responsive (buyer_quotes.php) */
	blockquote {
		width: 95% !important;
		max-width: 450px;
	}

	/* Show Mobile Menu Toggle */
	.mobile-menu-toggle {
		display: block;
	}

	#menu-container {
		display: none;
		position: fixed;
		top: 50px;
		right: 0;
		width: 280px;
		max-height: calc(100vh - 60px);
		overflow-y: auto;
		background: #4c4c4c;
		box-shadow: -2px 2px 10px rgba(0, 0, 0, 0.3);
		z-index: 999;
		padding: 10px 0;
		border-radius: 0 0 0 8px;
	}

	#menu-container.active {
		display: block;
		animation: slideIn 0.3s ease;
	}

	@keyframes slideIn {
		from {
			transform: translateX(100%);
		}
		to {
			transform: translateX(0);
		}
	}

	/* Top level menu items */
	#menu-container > li {
		position: relative;
	}

	#menu-container > li > a {
		display: block;
		padding: 12px 20px;
		color: #fff;
		text-decoration: none;
		font-size: 16px;
		font-weight: 500;
		transition: background-color 0.3s ease;
		border-bottom: 1px solid rgba(255, 255, 255, 0.1);
	}

	#menu-container > li > a:hover {
		background-color: #5a5a5a;
	}

	/* Submenu styles */
	#menu-container ul {
		list-style: none;
		margin: 0;
		padding: 0;
		max-height: 0;
		overflow: hidden;
		background: #3a3a3a;
		transition: max-height 0.4s ease;
	}

	#menu-container li:hover > ul,
	#menu-container li.active > ul {
		max-height: 500px; /* Large enough for all menu items */
	}

	#menu-container ul li {
		border-bottom: 1px solid rgba(255, 255, 255, 0.05);
	}

	#menu-container ul li:last-child {
		border-bottom: none;
	}

	#menu-container ul a {
		display: block;
		padding: 10px 20px 10px 35px;
		color: #d0d0d0;
		text-decoration: none;
		font-size: 14px;
		transition: all 0.3s ease;
	}

	#menu-container ul a:hover {
		background-color: #ccc;
		color: #222;
		padding-left: 40px;
	}

	/* Dropdown indicator for parent items */
	#menu-container > li:not(.mobile-home):not(.mobile-divider)::after {
		content: '▼';
		position: absolute;
		right: 20px;
		top: 12px;
		color: #d4af37;
		font-size: 12px;
		transition: transform 0.3s ease;
	}

	#menu-container > li:hover::after,
	#menu-container > li.active::after {
		transform: rotate(180deg);
	}

	/* HOME and divider have no dropdown indicator */
	#menu-container > li.mobile-home::after,
	#menu-container > li.mobile-divider::after {
		display: none;
	}

	/* Hide user/login groups between 700-1000px */
	.mobile-login-group,
	.mobile-user-group {
		display: none;
	}
	
	/* Adjust panel for medium screens (700-1000px) */
	#panel .content {
		width: 95% !important;
	}
	
	#panel .content .left {
		padding: 0 0 !important;
		width: 210px !important;
	}
	
	#panel .content label {
		width: 180px !important;
	}

    #panel .content input.field {
        width: 180px !important;
    }

	/* Mobile menu overlay */
	.mobile-menu-overlay {
		display: none;
		position: fixed;
		top: 0;
		left: 0;
		width: 100%;
		height: 100%;
		background: rgba(0, 0, 0, 0.5);
		z-index: 998;
	}

	.mobile-menu-overlay.active {
		display: block;
	}
}

/* Desktop - hide mobile menu completely */
@media (min-width: 1001px) {
	.mobile-menu-toggle,
	#menu-container,
	.mobile-menu-overlay {
		display: none !important;
	}
}

/* Hide top tab menu on small screens */
@media (max-width: 700px) {
	.tab {
		display: none !important;
		height: 0 !important;
		overflow: hidden !important;
	}
	
	/* Keep toppanel functional but hidden by default */
	#toppanel {
		top: -600px !important;
	}
	
	/* When panel is visible, show it properly */
	#toppanel.open {
		top: 0 !important;
	}
	
	#mainbg {
		padding-top: 20px !important;
	}
	
	/* Show user/login groups only below 700px */
	.mobile-login-group,
	.mobile-user-group {
		display: list-item !important;
	}
	
	/* Make forms responsive on small screens */
	#customform {
		width: 95% !important;
		max-width: 600px;
		margin-left: auto !important;
		margin-right: auto !important;
		padding: 0 10px;
		box-sizing: border-box;
	}
	
	#customform table {
		display: block !important;
		width: 100% !important;
	}
	
	#customform tbody,
	#customform tr {
		display: block !important;
		width: 100% !important;
	}
	
	#customform td {
		display: block !important;
		width: 100% !important;
		box-sizing: border-box;
		margin-bottom: 10px;
	}
	
	#customform input[type="text"],
	#customform input[type="password"] {
		width: 100% !important;
		max-width: 100% !important;
		box-sizing: border-box;
	}
	
	#customform label {
		display: block !important;
		margin-bottom: 5px;
	}
}
