@charset "utf-8";

#wrapper{width:100%;position:relative;margin-top:-160px;}
#wrapper:after { /* clearfix */
    height: 0;
    content: ".";
    display: block;
    clear: both;
    visibility: hidden;
}
/* LOGO */
#top-box{
	width:100%;
	max-width:1100px;
	height:160px;
	margin:0 auto;
}
#top-box .logo {
	position:absolute;
	z-index:9999;
	width: 108px;
	height: 72px;
	top:0px;
	display:block;
}
#top-box .logo embed{width:100%;height:auto;}

#home-container{
	background: #660033;
	width:100%;
	margin:0 auto;
	position:relative;
}

.home-container {padding:10px;}
.detail{overflow:hidden;margin-bottom:10px;}
.left-home{background:#333;margin-bottom:10px;}
.right-home{background:#fff;margin-bottom:10px;color:#000;}
.right-home h3{color:#000;}

/* HEADER */
.home-header {
    margin: 0;
	background: #333333;
	padding:0;
}
	/* Brand */
	header .home, header .home:hover {
	    float: left;
	    color: #fff;
	    display: inline-block;
		padding: 20px 0;
	}
		.home h1 {
		    margin-left: 10px;
		    padding: 0;
		    font-size: 24px;
		    font-family: 'ThaiSansNeue-Bold';
		    color: #fff;
		    font-weight: 600;
		    font-stretch: normal; /* default value. No font stretching */
		    line-height: 1em;
		}
		.home h2 {
		    margin-left: 10px;
		    padding: 0;
		    font-size: 10px;
		    font-family: 'ThaiSansNeue-Regular';
		    color: #fff;
		}
#home-header a{position:relative;margin:0;z-index:99999;}
#home-header .brand{display:inline-block;}

#HomePlanList {margin:0;z-index:1;}
#HomePlanList ul{list-style:none;margin: 0;}
#HomePlanList ul li{
	list-style:none;
	width:100%;
	margin-bottom:13px;
	float:left;
	-moz-box-sizing:border-box;
	-webkit-box-sizing:border-box;
	box-sizing:border-box;
	border:solid 1px #999;
}
#HomePlanList img {border:none;width:100%;margin-bottom:2px;}

.square{position:relative;width:100%;overflow:hidden;background:#666;}
.square:before{content: "";display: block;padding-top: 100%;}
.square-content{position:absolute;top: 0;left: 0;bottom: 0;right: 0;color: white;}
.square-content h6{margin-left:14px;font-family:'ThaiSansNeue-Bold';font-size:13px;line-height:16px;margin-bottom:3px;}
.square-content div {
   display: table;
   width: 100%;
   height: 100%;
}
.square-content span {
    display: table-cell;
    text-align: center;
    vertical-align: middle;
    color: white;
}
.caption{padding:0 10px;}
.bathroom,.bedroom,.carpark{width:33%;float:left;margin:0;}
.bedroom:before{content:url(../images/bedroom.png);vertical-align:middle;margin-right:3px;}
.bathroom:before{content:url(../images/bathroom.png);vertical-align:middle;margin-right:3px;}
.carpark:before{content:url(../images/carpark.png);vertical-align:middle;margin-right:3px;}
.promotion{position:absolute;top:10px;left:0;z-index:3;background:#4be500;padding:2px 8px 2px 4px;color:#660033;box-shadow:2px 2px 5px rgba(0,0,0,0.3);}
.new{position:absolute;top:10px;right:0;z-index:2;background:#ff9900;padding:2px 4px 2px 12px;color:#660033;box-shadow:-2px 2px 5px rgba(0,0,0,0.3);}

@media all and (min-width: 360px) {
#top-box .logo {width: 132px;height: 88px;}
#HomePlanList ul li{width:48.5%;margin-right:3%;}
#HomePlanList ul li:nth-child(2n+0) {margin-right:0;}
.square-content h6{margin-left:0;font-family:'ThaiSansNeue-Regular';font-size:11px;line-height:13px;margin-bottom:1px;}
}

@media all and (min-width: 480px) {
.home h1{font-size:36px;}
.home h2{font-size:15px;}
#top-box .logo {width: 165px;height: 110px;}
.square-content h6{margin-left:14px;font-family:'ThaiSansNeue-Bold';font-size:13px;line-height:16px;margin-bottom:3px;}
}

@media all and (min-width: 640px) {
#top-box .logo {width: 198px;height: 132px;}
#HomePlanList ul li{width:32%;margin-right:2%;}
#HomePlanList ul li:nth-child(2n+0) {margin-right:2%;}
#HomePlanList ul li:nth-child(3n+0) {margin-right:0;}

}

@media all and (min-width: 768px) {
.home h1, .home h2 {margin:0;}
.home h1{font-size:48px;}
.home h2{font-size:20px;}
.left-home{padding-bottom:500em;margin-bottom:-500em;border-right:10px solid #333;}
.right-home{padding-bottom:500em;margin-bottom:-500em;}
#HomePlanList ul li{width:24%;margin-right:1.25%;}
#HomePlanList ul li:nth-child(2n+0) {margin-right:1.25%;}
#HomePlanList ul li:nth-child(3n+0) {margin-right:1.25%;}
#HomePlanList ul li:nth-child(4n+0) {margin-right:0;}
}

@media only screen and (min-width: 1080px) {
#top-box .logo {width: 240px;height: 160px;}
#home-container{
	background: #660033;
	width: 100%;
	margin:0 auto;
}
#home-header .inner {max-width:1100px;}
#cssmenu{background:#000;display:inline-block;float:left;}
#border-left{border-bottom:108px solid #000;border-left:60px solid #660033;display:inline-block;float:left;}
#border-right{border-top:108px solid #000;border-right:60px solid #660033;display:inline-block;float:left;}
}