/*Requirejs Blink Hack*/
body {
    display: none;
}
body.require-display {
    display: block;
}


.center-text{ text-align:center;}
.center-element{ margin-right:auto;margin-left:auto;}
.wrap{white-space:normal;}
.loading .loader{ display:inline-block;background:url('https://d1mlo4htassgww.cloudfront.net/i/spinner.gif');width:16px;height:16px;margin-left:1em;}
.map{height:300px;width:100%;}
.ui-content{padding-bottom:75px;}
#usm-badge{position:absolute;bottom:0;left:0;width:100%;}
#usm-badge a{background:transparent url("/i/usmtag/2012logo.png") center top no-repeat;width:100%;height:43px;display:block;text-indent:-9999px;}
#office-info {text-align: center; font-size: 12px;}

/*user*/
#contact-info-box h2{font-size:1.1em;}
#contact-info-box ul{list-style:none;padding:0;}
#contact-info-box ul li{margin:0 0 0.5em 0;font-size:.9em;}

/*listview*/
p.listview-detail span { border-left:1px solid #bbb;display:inline-block;padding-left:.4em;}
p.listview-detail span:first-child { border:0px;padding-left:0;}
.listview-previous{ margin-top:30px;}
.ui-li-has-alt .ui-btn-inner a.ui-link-inherit, .ui-li-static.ui-li-has-alt{ padding-right:40px;}
#listview-sort .ui-select{float:right;}
#listview-list{margin-bottom:0;}
#listview-list.ui-listview-inset{margin:1em 0;}
#listview-list .ui-li-thumb{margin:10px 5px; max-height: 63px;}
#listview-criteria{margin-bottom:40px;font-size:0.8em;padding:0 0 0 1em;}
#listview-criteria ul {padding:0;}
.ui-mobile .ui-btn-left.js-save-search, .ui-mobile .ui-btn-left.js-favorite {left:100px;}
.ui-header .ui-title {margin:.6em 0% .8em 190px;}
a.view-availability-toggle {display: block; margin: 5px; padding: 5px;}
/* Listview Badges */
#listview-list li.bdg:after{ display: block; font-size: 13px; width: 80px; position: absolute; left: 6px; bottom: 10px; z-index: 1; color: #fff; padding: 1px 2px; box-sizing: border-box; text-align: center; font-weight: 500; }
#listview-list li.rnt:after{ content: "rented"; background: red; }

.badge {display:block !important;z-index: 2;position: relative;border: none !important;text-indent:-999999px;display:none;}
.badge.sold {height:75px;width:75px;margin-bottom:-75px;top: -20px;left: -112px;background:url('https://d1mlo4htassgww.cloudfront.net/i/bomber/bdg-sold.png') no-repeat;}
.badge.openhouse{height:90px;width:90px;margin-bottom:-90px;top: -6px;left: -104px;background:url('https://d1mlo4htassgww.cloudfront.net/i/bomber/bdg-openhouse.png') no-repeat;}
.badge.uag{height:85px;width:83px;margin-bottom:-85px;top: -6px;left: -100px;background:url('https://d1mlo4htassgww.cloudfront.net/i/bomber/bdg-uag.png') no-repeat;}
.badge.rnt{height:85px;width:83px;margin-bottom:-85px;top: -6px;left: -100px;background:url('https://d1mlo4htassgww.cloudfront.net/i/bomber/bdg-rnt.png') no-repeat;}
.badge.pen{height:85px;width:83px;margin-bottom:-85px;top: -6px;left: -100px;background:url('https://d1mlo4htassgww.cloudfront.net/i/bomber/bdg-pen.png') no-repeat;}
.badge.pcg{height:85px;width:83px;margin-bottom:-85px;top: -6px;left: -100px;background:url('https://d1mlo4htassgww.cloudfront.net/i/bomber/bdg-pcg.png') no-repeat;}
.maine-disclaimer {font-size: 12px;}
.maine-disclaimer img[alt="MREIS logo"] {float: left; margin-right: 5px; margin-right: 1%;}
.maine-disclaimer span {display: block; line-height: 25px;}
/*detailview*/
#dv-gallery{ height:220px;width:100%;display:block;overflow:hidden;padding:10px 0;position:relative;}

/* Detailview Badges */
#dv-gallery.bdg:after { display: block; position: absolute; bottom: 0; width: 100%; color: #fff; z-index: 1; padding: 1px 2px; box-sizing: border-box; }
#dv-gallery.rnt:after { content: "rented"; background: red; }

#dv-gallery.landscape{position:absolute;top:0;left:0;z-index:50000;}
#dv-gallery img{position:absolute;left:-9999px;}
#dv-gallery img:first-child{left:0;}
#dv-gallery, #dv-gallery img{
-webkit-touch-callout: none;
-webkit-user-select: none;
-khtml-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;}
.ui-collapsible-inset .ui-collapsible-content {font-size: .8em};

/*share buttons*/
#share-facebook{
    background: #3b5998;
    color: #fff;
    text-shadow: 0 1px 0 #3b5998;
    background-image: -webkit-gradient(linear,left top,left bottom,from(#8b9dc3),to(#3b5998));
    background-image: -webkit-linear-gradient(#8b9dc3,#3b5998);
    background-image: -moz-linear-gradient(#8b9dc3,#3b5998);
    background-image: -ms-linear-gradient(#8b9dc3,#3b5998);
    background-image: -o-linear-gradient(#8b9dc3,#3b5998);
    background-image: linear-gradient(#8b9dc3,#3b5998);
    border-color:#3b5998;
}
#share-google{
    background: #333;
    color: #fff;
    text-shadow: 0 1px 0 #333;
    background-image: -webkit-gradient(linear,left top,left bottom,from(#666),to(#333));
    background-image: -webkit-linear-gradient(#666,#333);
    background-image: -moz-linear-gradient(#666,#333);
    background-image: -ms-linear-gradient(#666,#333);
    background-image: -o-linear-gradient(#666,#333);
    background-image: linear-gradient(#666,#333);
    border-color:#333;
}
#share-pinterest{
    background: #BD1C2C;
    color: #fff;
    text-shadow: 0 1px 0 #BD1C2C;
    background-image: -webkit-gradient(linear,left top,left bottom,from(#BA615D),to(#BD1C2C));
    background-image: -webkit-linear-gradient(#BA615D,#BD1C2C);
    background-image: -moz-linear-gradient(#BA615D,#BD1C2C);
    background-image: -ms-linear-gradient(#BA615D,#BD1C2C);
    background-image: -o-linear-gradient(#BA615D,#BD1C2C);
    background-image: linear-gradient(#BA615D,#BD1C2C);
    border-color:#BD1C2C;
}
#share-twitter{
    background: #90D1ED;
    color: #fff;
    text-shadow: 0 1px 0 #90D1ED;
    background-image: -webkit-gradient(linear,left top,left bottom,from(#A1E5F4),to(#90D1ED));
    background-image: -webkit-linear-gradient(#A1E5F4,#90D1ED);
    background-image: -moz-linear-gradient(#A1E5F4,#90D1ED);
    background-image: -ms-linear-gradient(#A1E5F4,#90D1ED);
    background-image: -o-linear-gradient(#A1E5F4,#90D1ED);
    background-image: linear-gradient(#A1E5F4,#90D1ED);
    border-color:#90D1ED;
}
#share-linkedin{
    background: #0077B5;
    color: #fff;
    text-shadow: 0 1px 0 #0077B5;
    background-image: -webkit-gradient(linear,left top,left bottom,from(#3B9BBE),to(#0077B5));
    background-image: -webkit-linear-gradient(#3B9BBE,#0077B5);
    background-image: -moz-linear-gradient(#3B9BBE,#0077B5);
    background-image: -ms-linear-gradient(#3B9BBE,#0077B5);
    background-image: -o-linear-gradient(#3B9BBE,#0077B5);
    background-image: linear-gradient(#3B9BBE,#0077B5);
    border-color:#0077B5;
}

/*homepage*/
#page-home .ui-btn-inner{ white-space:normal!important;}
#page-home #logo{width:100%;margin:1em 0;}
#page-home .ui-grid-b div a {
    height:5em;
    white-space: normal;
}

/*Search*/
.select-min-max label{display:block;width:100%;}
.select-min-max .ui-select{width:49%;display:inline-block;}

/*Icons*/
.ui-icon-usm-mail{
    background-image:url('https://d1mlo4htassgww.cloudfront.net/glyphish/icons/icons-white/18-envelope.png');
    background-repeat:no-repeat !important;
    background-position:center 5em !important;
}
.ui-icon-usm-phone{
    background-image:url('https://d1mlo4htassgww.cloudfront.net/glyphish/icons/icons-white/75-phone.png');
    background-repeat:no-repeat !important;
    background-position:center 5em !important;
}

.ui-icon-usm-mail,
.ui-icon-usm-phone{background-size:12px!important;}
.ui-icon-usm-big-key{
    background-image:url('https://d1mlo4htassgww.cloudfront.net/glyphish/icons/icons-gray/30-key.png');
    background-repeat:no-repeat !important;
    background-position:center 5em !important;
}
.ui-icon-usm-big-index-cards{
    background-image:url('https://d1mlo4htassgww.cloudfront.net/glyphish/icons/icons-gray/104-index-cards.png');
    background-repeat:no-repeat !important;
    background-position:center 5em !important;
}
.ui-icon-usm-big-mail{
    background-image:url('https://d1mlo4htassgww.cloudfront.net/glyphish/icons/icons-gray/18-envelope.png');
    background-repeat:no-repeat !important;
    background-position:center !important;
}
.ui-icon-usm-big-facebook{
    background-image:url('https://d1mlo4htassgww.cloudfront.net/i/bookmark-glyphs/facebook.png');
    background-repeat:no-repeat !important;
    background-position:center !important;
}
.ui-icon-usm-big-twitter{
    background-image:url('https://d1mlo4htassgww.cloudfront.net/i/bookmark-glyphs/twitter.png');
    background-repeat:no-repeat !important;
    background-position:center !important;
}
.ui-icon-usm-big-linkedin{
    background-image:url('https://d1mlo4htassgww.cloudfront.net/i/bookmark-glyphs/linkedin.png');
    background-repeat:no-repeat !important;
    background-position:center !important;
}
.ui-icon-usm-big-pinterest{
    background-image:url('https://d1mlo4htassgww.cloudfront.net/i/bookmark-glyphs/pinterest.png');
    background-repeat:no-repeat !important;
    background-position:center !important;
}
.ui-icon-usm-big-gplus{
    background-image:url('https://d1mlo4htassgww.cloudfront.net/i/bookmark-glyphs/gplus.png');
    background-repeat:no-repeat !important;
    background-position:center !important;
}
.ui-icon-usm-big-list{
    background-image:url('https://d1mlo4htassgww.cloudfront.net/glyphish/icons/icons-gray/259-list.png');
    background-repeat:no-repeat !important;
    background-position:center 5em !important;
}
.ui-icon-usm-big-house{
    background-image:url('https://d1mlo4htassgww.cloudfront.net/glyphish/icons/icons-gray/53-house.png');
    background-repeat:no-repeat !important;
    background-position:center 5em !important;
}
.ui-icon-usm-big-book{
    background-image:url('https://d1mlo4htassgww.cloudfront.net/glyphish/icons/icons-gray/96-book.png');
    background-repeat:no-repeat !important;
    background-position:center 0.5em !important;
}
.ui-icon-usm-big-phone{
    background-image:url('https://d1mlo4htassgww.cloudfront.net/glyphish/icons/icons-gray/75-phone.png');
    background-repeat:no-repeat !important;
    background-position:center 0.5em !important;
}
.ui-icon-usm-big-target{
    background-image:url('https://d1mlo4htassgww.cloudfront.net/glyphish/icons/icons-gray/13-target.png');
    background-repeat:no-repeat !important;
    background-position:center 5em !important;
}
.ui-icon-usm-big-map{
    background-image:url('https://d1mlo4htassgww.cloudfront.net/glyphish/icons/icons-gray/103-map.png');
    background-repeat:no-repeat !important;
    background-position:center 5em !important;
}
.ui-icon-usm-big-building{
    background-image:url('https://d1mlo4htassgww.cloudfront.net/glyphish/icons/icons-gray/177-building.png');
    background-repeat:no-repeat !important;
    background-position:center 5em !important;
}
.ui-icon-usm-big-city{
    background-image:url('https://d1mlo4htassgww.cloudfront.net/glyphish/icons/icons-gray/178-city.png');
    background-repeat:no-repeat !important;
    background-position:center 5em !important;
}
.ui-icon-usm-big-user{
    background-image:url('https://d1mlo4htassgww.cloudfront.net/glyphish/icons/icons-gray/111-user.png');
    background-repeat:no-repeat !important;
    background-position:center 5em !important;
}
.ui-icon-usm-big-star{
    background-image:url('https://d1mlo4htassgww.cloudfront.net/glyphish/icons/icons-gray/28-star.png');
    background-repeat:no-repeat !important;
    background-position:center 5em !important;
}
.ui-icon-usm-big-magnify{
    background-image:url('https://d1mlo4htassgww.cloudfront.net/glyphish/icons/icons-gray/06-magnify.png');
    background-repeat:no-repeat !important;
    background-position:center 5em !important;
}
.ui-icon-usm-big-page{
    background-image:url('https://d1mlo4htassgww.cloudfront.net/glyphish/icons/icons-gray/166-newspaper.png');
    background-repeat:no-repeat !important;
    background-position:center 5em !important;
}

.ui-btn .ui-icon.ui-icon-usm-big-key,
.ui-btn .ui-icon.ui-icon-usm-big-index-cards,
.ui-btn .ui-icon.ui-icon-usm-big-mail,
.ui-btn .ui-icon.ui-icon-usm-big-facebook,
.ui-btn .ui-icon.ui-icon-usm-big-twitter,
.ui-btn .ui-icon.ui-icon-usm-big-pinterest,
.ui-btn .ui-icon.ui-icon-usm-big-gplus,
.ui-btn .ui-icon.ui-icon-usm-big-list,
.ui-btn .ui-icon.ui-icon-usm-big-house,
.ui-btn .ui-icon.ui-icon-usm-big-book,
.ui-btn .ui-icon.ui-icon-usm-big-phone,
.ui-btn .ui-icon.ui-icon-usm-big-target,
.ui-btn .ui-icon.ui-icon-usm-big-map,
.ui-btn .ui-icon.ui-icon-usm-big-building,
.ui-btn .ui-icon.ui-icon-usm-big-city,
.ui-btn .ui-icon.ui-icon-usm-big-user,
.ui-btn .ui-icon.ui-icon-usm-big-star,
.ui-btn .ui-icon.ui-icon-usm-big-magnify { width: 30px!important; height: 30px!important; margin-left: -15px !important; box-shadow: none!important; -moz-box-shadow: none!important; -webkit-box-shadow: none!important; -webkit-border-radius: 0 !important; border-radius: 0 !important; }

html head+body .ui-btn.ui-btn-b { background-color:#5f9cc5; }
html head+body .ui-btn.ui-btn-b:active { background-color:#396b9e; }

/*Map markers*/
.re-marker {
    width: auto!important;
}
.re-marker figure,
.re-marker small {
    position: relative;
    left: -50%;
}
.re-marker figure {
    background: url('https://d1mlo4htassgww.cloudfront.net/i/map-search/icon-sprite.png');
    width: 16px;
    height: 15px;
    margin: 0 auto;
    padding: 0;
}
.re-marker small {
    color: #fff;
    background-color:#79A0E9;
    border: 1px solid #79A0E9;
    border-radius: 20%;
    white-space: nowrap;
    width:auto;
    padding:1px 2px;
    font-family: verdana, sans-serf;
    font-size: 10px;
}
.re-marker.active,
.re-marker:hover small {border-color: #000;}

/*Sprite positions and width*/
.re-marker.residential figure {background-position: 0 -1px;}
.re-marker.residential:hover figure{background-position: -17px -1px;}
.re-marker.commercial figure{background-position: 0 -73px;}
.re-marker.commercial:hover figure{background-position: -20px -73px;}
.re-marker.land figure{background-position: 0 -18px; width: 12px;}
.re-marker.land:hover figure{background-position: -12px -18px;}
.re-marker.town figure {background-position: 0 -55px;}
.re-marker.town:hover figure{background-position: -17px -55px; width: 14px;}
.re-marker.region figure {display: none;}

/*Label bubble colors*/
.re-marker.residential small{border-color:#DC7C4B;background-color:#DC7C4B;}
.re-marker.residential:hover small{border-color:#000;background-color:#DC7C4B;}
.re-marker.land small{border-color:#908F02;background-color:#908F02;}
.re-marker.land:hover small{border-color:#000;background-color:#908F02;}
.re-marker.commercial small{border-color:#739AE0;background-color:#739AE0;}
.re-marker.commercial:hover small{border-color:#000;background-color:#739AE0;}

/*Custom leaflet styles*/
.leaflet-control-container{
    -webkit-user-select: none;  /* Chrome all / Safari all */
    -moz-user-select: none;     /* Firefox all */
    -ms-user-select: none;      /* IE 10+ */

    /* No support for these yet, use at own risk */
    -o-user-select: none;
    user-select: none;
}

/*Blog*/
#blog-listview article {
    border-bottom: 1px solid #ccc;
    padding: 2em 0;
    clear:both;
}
#blog-listview footer {
    clear:both;
}
#blog-listview article img {
    max-width:100%;
    height:auto !important;
}
.blog-attribution {
    padding-left:0;
}
.blog-attribution li {
    list-style:none;
    display:inline-block;
    margin-right:2em;
}
#blog-popup {
    padding:1em;
}
#blog-popup label,
#blog-popup input,
#blog-popup textarea {
    display:block;
    width:100%;
}
#blog-popup textarea {
    height:8em;
}
.blog-pagination {
    margin:2em 0;
}
.testimonial-sig {
    font-weight: bold;
    text-decoration: underline;
    padding-top: 15px;
    padding-bottom: 5px;
}

/*Landing Pages*/
ul#landingPage {
    list-style-type: none;
}
.landingpage-description {
    margin-top: 30px;
}
.landing-page-main .slideshow div#landingPage-container {
        width: inherit!important;
        height: inherit!important;
}
.landing-page-main .slideshow div#landingPage-container #landingPage{
        width: inherit!important;
        height: inherit!important;
}
.landing-page-main .slideshow div#landingPage-container #landingPage img{
    margin-left: -37px;
    width: 100%;
}
.landing-page-subcategory .landing-page {
    border: 1px solid #ccc;
    padding: 18px;
    margin-bottom: 15px;
}
ul#listview-list {
    margin-top: 10px;
    width: 99.7%;
    border: 1px solid #ccc;
    margin-left: 0%;
}
