/* For Grid View */ 

@media ( max-width: 40em ) {
.page-grid .ui-listview .ui-li-has-thumb > img:first-child,
.page-grid .ui-listview .ui-li-has-thumb > .ui-btn > img:first-child,
.page-grid .ui-listview .ui-li-has-thumb .ui-li-thumb {
	border: 1px solid #000000;
	margin-left: 4px;
	margin-top: 4px; 
	border-radius: 5px; 
	-moz-border-radius: 5px; 
	-webkit-border-radius: 5px; 
	background-image:url('//www.mauirealestate.net/NoPhotoSmall.jpg'); 
	max-height: 83px;
	max-width: 107px;
	min-height: 83px;
	min-width: 107px;
}


.page-grid .ui-listview li .ui-btn p {
    color: #000000;
height: 70px;
}


.page-grid .ui-listview p {
        font-size: 1em;
	font-weight: normal;
        margin: 0;
        padding: 0 0 0 1.2em;
        min-height: 40%;
        bottom: 0;
    }



   


} /* End max-width: 40em */



/* First breakpoint is 40em (768px). 3 column layout. Tiles 250x250 pixels incl. margin at the breakpoint. */



@media ( min-width: 40em ) {

.page-grid .ui-listview li .ui-btn p {
    color: #FFFFFF; /* Font Color */
	text-shadow: 2px 2px #000000;
}

.page-grid .ui-listview li .ui-btn p .LandArea {
	display:none;
}


    .page-grid .ui-content {
        padding: .5625em; /* 9px */
    }
    .page-grid .ui-listview li {
        float: left;
        width: 30.9333%; /* 33.3333% incl. 2 x 1.2% margin */
        height: 175px; /* Daryl mod */
        margin: .5625em 1.2%;
    }

    .page-grid .ui-listview li > .ui-btn {
        -webkit-box-sizing: border-box; /* include padding and border in height so we can set it to 100% */
        -moz-box-sizing: border-box;
        -ms-box-sizing: border-box;
        box-sizing: border-box;
        height: 100%;
    }

	

    .page-grid .ui-listview li.ui-li-has-thumb .ui-li-thumb {
        height: 175px; /* To keep aspect ratio. */
        width: 100%; /* Daryl Added. */
        max-width: 100%;
        max-height: none;
	background-image:url('//www.mauirealestate.net/NoPhotoSmall.jpg'); 
	background-size: 100% 100%;
    }


    /* Make all list items and anchors inherit the border-radius from the UL. */
    .page-grid .ui-listview li,
    .page-grid .ui-listview li .ui-btn,
    .page-grid .ui-listview .ui-li-thumb {
        -webkit-border-radius: .7em;
        border-radius: .7em;
    }
    /* Hide the arrow icon */
    .page-grid .ui-listview .ui-btn-icon-right:after {
        display: none;
    }
    /* Make text wrap. */
    .page-grid .ui-listview h2,
    .page-grid .ui-listview p {
        white-space: normal;
        overflow: visible;
        position: absolute;
        left: 0;
        right: 0;
    }
    /* Text position */
    .page-grid .ui-listview p {
        font-size: .8em;
        margin: 0;
        padding: .5em 0 0 1em;
        min-height: 50%;
        bottom: 0;
    }
    /* Semi transparent background and different position if there is a thumb. The button has overflow hidden so we don't need to set border-radius. */
    .page-grid .ui-listview .ui-li-has-thumb h2,
    .ui-listview .ui-li-has-thumb p {
        background: #000000;
        background: rgba(0,0,0,.5); /* Main Transparent Color */
    }
    .page-grid .ui-listview .ui-li-has-thumb h2 {
        bottom: 35%;
    }
    .ui-listview .ui-li-has-thumb p {
        min-height: 35%;

    }
    /* ui-li-aside has class .ui-li-desc as well so we have to override some things. */
    .page-grid .ui-listview .ui-li-aside {
        padding: .125em .625em;
        width: auto;
        min-height: 0;
        top: 0;
        left: auto;
        bottom: auto;
        /* Custom styling. */
	background: #000000; 
        background: rgba(255,0,0,.6); /* Pending Transparent Color */
        -webkit-border-top-right-radius: inherit;
        border-top-right-radius: inherit;
        -webkit-border-bottom-left-radius: inherit;
        border-bottom-left-radius: inherit;
        -webkit-border-bottom-right-radius: 0;
        border-bottom-right-radius: 0;
    }
    /* If you want to add shadow, don't kill the focus style. */
    .page-grid .ui-listview li {
        -moz-box-shadow: 0px 0px 9px #111;
        -webkit-box-shadow: 0px 0px 9px #111;
        box-shadow: 0px 0px 9px #111;
    }
    /* Images mask the hover bg color so we give desktop users feedback by applying the focus style on hover as well. */
    .page-grid .ui-listview li > .ui-btn:hover {
        -moz-box-shadow: 0px 0px 12px #33ccff;
        -webkit-box-shadow: 0px 0px 12px #33ccff;
        box-shadow: 0px 0px 12px #33ccff;
    }
    /* Animate focus and hover style, and resizing. */
    .page-grid .ui-listview li,
    .page-grid .ui-listview .ui-btn {

/*
        -webkit-transition: all 500ms ease;
        -moz-transition: all 500ms ease;
        -o-transition: all 500ms ease;
        -ms-transition: all 500ms ease;
        transition: all 500ms ease;
*/
 -webkit-transition: none !important; 
  -moz-transition: none !important; 
  -o-transition: none !important; 
  -ms-transition: none !important; 
  transition: none !important; 


    }
}
/* Second breakpoint is 63.75em (1020px). 4 column layout. Tiles will be 250x250 pixels incl. margin again at the breakpoint. */
@media ( min-width: 63.75em ) {

.page-grid .ui-listview li .ui-btn p {
    color: #FFFFFF;
}

    .page-grid .ui-content {
        padding: .625em; /* 10px */
    }
    /* Set a max-width for the last breakpoint to prevent too much stretching on large screens.
    By setting the max-width equal to the breakpoint width minus padding we keep square tiles. */
    .page-grid .ui-listview {
        max-width: 62.5em; /* 1000px */
        margin: 0 auto;
    }
    /* Because of the 1000px max-width the width will always be 230px (and margin left/right 10px),
    but we stick to percentage values for demo purposes. */
    .page-grid .ui-listview li {
        width: 23%;
        height: 175px;
        margin: .625em 1%;
    }
}
/* For this  we used images with a size of 310x310 pixels. Just before the second breakpoint the images reach their max width: 1019px - 2 x 9px padding = 1001px x 30.9333% = ~310px */





/* For List View  */

.page-list .ui-listview .ui-li-has-thumb > img:first-child,
.page-list .ui-listview .ui-li-has-thumb > .ui-btn > img:first-child,
.page-list .ui-listview .ui-li-has-thumb .ui-li-thumb {
	border: 1px solid #000000;
	margin-left: 4px;
	margin-top: 4px; 
	border-radius: 5px; 
	-moz-border-radius: 5px; 
	-webkit-border-radius: 5px; 
	background-image:url('//www.mauirealestate.net/NoPhotoSmall.jpg'); 
	max-height: 83px;
	max-width: 107px;
	min-height: 83px;
	min-width: 107px;
}



.page-list .ui-listview p {
        font-size: .9em;
	font-weight: normal;
        margin: 0;
        padding: 0 0 0 1.3em;
        min-height: 40%;
        bottom: 0;
    }


    .page-list .ui-listview .ui-li-has-thumb h2,
    .page-list .ui-listview .ui-li-has-thumb p {
        background: #000000;
        background: rgba(0,0,0,0);
    }


.page-list .ui-listview li .ui-btn {
min-height: 71px;

}



/* For Map View Page */


.mapthumb {
	border: 1px solid #000000 !important;
	margin-left: .3em;
	margin-top: .3em; 
	margin-bottom: .3em; 
	border-radius: .3125em; 
	-moz-border-radius: .3125em; 
	-webkit-border-radius: .3125em; 
	background-image:url('//www.mauirealestate.net/NoPhotoSmall.jpg'); 
	max-height: 5.7em !important;
	max-width: 7em !important;
	min-height: 5.7em;
	min-width: 7em;
}


/* For Details Pages */


#employeePic {
	padding: 0px;
	margin-bottom: -5px;
	border: 0px;
	width: 100%;
}

.details {
	margin: 2px;
	font-family: Verdana;
	font-size: 14px;
	text-align: left !important;
}

#fullName {
	text-align: center;
	font-family: Verdana;
	font-weight: normal;
	font-size: 14px;
}

#ramfooter {
	font-size: 9px;
	text-align:justify;
}

.copyright {
	font-size: 9px;
	text-align: center;
}


#ListingCourtesy {
	font-size: 12px;
	text-align: center;
}


#ramfooter {
	font-size: 9px;
	text-align:justify;
}




.map{
    width: 100%;
    height: 100%;
    border: 1px solid #000;
    margin-bottom: 20px;
}

.map p{
	margin: 10px;
	color: #333;
}
