div.styles1 p {
background: #00718f;
position: relative;
float: left;
margin: -42px 0 0 5px;
padding: 5px; 
}

div.styles1 p a {
color: #fff;
text-decoration: none;
}
div.styles2 {
    padding: 15px;
    font-size: 1.1em; 
    background: #F0F0F0; 
    box-sizing: border-box; 
}

div.styles2 h3 {
    margin-bottom: 15px; 
    font-size: 1.6em; 
}
div.styles6 {
margin-bottom: 0;
}
div.styles3 {
    padding: 15px;
    font-size: 1.1em; 
    background: #FF0000; 
    box-sizing: border-box; 
}

div.styles3 h3 {
    margin-bottom: 15px; 
    font-size: 1.6em; 
}
/* Responsive map */
div.styles5 #in_my_area_gmap {
    position: relative;
    padding-bottom: 75%; // This is the aspect ratio
    height: 0 !important;
    overflow: hidden;
}
div.styles5 #in_my_area_gmap[style] {
    height: 0 !important;
}

div.styles5 #in_my_area_gmap .gm-style {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
}

div.styles5 #mapDisplay img {
    max-width: none;
}

div.styles5 .mapLayerSelection {
    margin: .2em 0;
}

div.styles5 #mapLayerSelect {
    margin: 1em 0;
}

div.styles5 .mapLayerSelection label {
    background-size: contain;
    margin-left: .5em;
    padding-left: 2.5em;
}

div.styles5 .nearestitem .itemlink {
    margin: 0 0 5px 0;
}

div.styles5 #changepostcode {
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    background: #006595;
    color: #fff;
    clear: both;
    display: block;
    overflow: auto;
    padding: 15px;
}

div.styles5 #changepostcode h2 {
    margin-top: 0;
}

div.styles5 #changepostcode #postcode {
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    margin-bottom: 10px;
    width: 100%;
}

div.styles5 #changepostcode form input[type="submit"] {
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    border: none;
    background: #00c2d7;
    color: #fff;
    display: inline-block;
    text-decoration: none;
    text-transform: capitalize;
    padding: 5px 0;
    margin-bottom: 10px;
    width: 100%;
}

div.styles5 #changepostcode form input[type="submit"]:hover {
    background: #00A9BE;
    border: 2px solid #00A9BE;
}

div.styles5 #changepostcode #postcodeOrAddress {
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    margin: 10px 0;
    width: 100%;
}

div.styles5 #nearestlisting {
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

div.styles5 .nearestlayer h3 {
    font-size: 1.5em;
}

div.styles5 #councillors {
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    margin: 20px 0;
    overflow: auto;
    padding: 15px;
    background: #f0f0f0;
}

div.styles5 #councillors h2 {
    margin-top: 0;
}

div.styles5 .inMyAreaMarkerInfo {
   line-height: 1.35;
    overflow: hidden;
    white-space: nowrap;
}

/* Media Queries */ 
@media only screen and (min-width: 450px) {
    div.styles5 .nearestlayer h3 {
        font-size: 1.5em;
    }
}

@media only screen and (min-width: 767px) {
    
    div.styles5 #mapDisplay {
        display: inline-block;
        float: left;
        width: 58%;
        margin-right: 2%;
        margin-bottom: 20px;
    }

    div.styles5 #nearestlisting {
        border-left: 1px solid #e3e3e3;
        float: left;
        padding-left: 1em;
        margin-bottom: 20px;
        width: 38%;
    }

    div.styles5 #nearestlisting h2 {
        margin-top: 0;
    }

    div.styles5 .nearestlayer h3 {
        font-size: 1.5em;
    }

    div.styles5 #councillors {
        clear: both;
    }

    div.styles5 #changepostcode label {
        display: block;
        width: 100%;
    }

    div.styles5 #changepostcode #postcode {
        width: 40%;
    }

    div.styles5 #changepostcode form input[type="submit"] {
        float: none;
        width: 10%;
        border: 2px solid #00c2d7;
    }

    div.styles5 #changepostcode #postcodeOrAddress {
        width: 70%;
    }
}

@media only screen and (min-width: 970px) {
    div.styles5 #mapDisplay {
        width: 70%;
    }

    div.styles5 #nearestlisting {
        width: 28%;
    }

    /* Widget padding fixes */
    div.styles5 {margin-left: -1%; margin-right: -1%;}
    .widget-width__100 div.styles5 {margin-right: 0;}
}

/* IE8 fixes */
.ie8 div.styles5 #mapDisplay {
    display: inline-block;
    float: left;
    margin-right: 2%;
    margin-bottom: 20px;
    width: 790px;
}

.ie8 div.styles5 #nearestlisting {
    border-left: 1px solid #e3e3e3;
    float: left;
    padding-left: 1em;
    margin-bottom: 20px;
    width: 316px;
}

.ie8 div.styles5 #changepostcode form input[type="submit"] {
    float: none;
    width: 10%;
    border: 2px solid #00c2d7;
}

.ie8 div.styles5 #changepostcode #postcodeOrAddress {
    width: 70%;
}

.ie8 div.styles5 #changepostcode label {
    display: block;
    width: 100%;
}

.ie8 div.styles5 .mapLayerSelection label {
    line-height: 2em;
    padding: 2em 0 2em 2.5em;
}

/* Widget scroll fix */
@media only screen and (max-width: 450px) {
    .widget-row {
        overflow: initial !important;
        margin-bottom: 0px !important;
    }
}

@media only screen and (max-width: 969px) {
    .widget-row {
        margin-bottom: 0px !important;
    }
}

@media only screen and (min-width: 970px) {
    .widget-row {
        margin-bottom: 20px !important;
    }
}
div.styles4 .inmyarea {
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    background: #006595;
    color: #fff;
    display: block;
    overflow: auto;
    padding: 15px;
}

div.styles4 .inmyarea h2 {
    margin-top: 0;
}

div.styles4 .inmyarea form input[type="submit"] {
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    border: none;
    background: #00c2d7;
    color: #fff;
    display: inline-block;
    text-decoration: none;
    text-transform: capitalize;
    padding: 5px 0;
    margin-bottom: 10px;
    width: 100%;
}

div.styles4 .inmyarea form .field {
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    margin: 10px 0;
    width: 100%;
}


@media only screen and (min-width: 767px) {
    div.styles4 .inmyarea form input[type="submit"] {
        border: 1px solid #00c2d7;
        float: none;
        margin: 10px 0;
        width: 10%;
    }

    div.styles4 .inmyarea form .field {
        width: 70%;
    }
}

/* IE8 fixes */
.ie8 div.styles4 inmyarea form .field {
    width: 575px;
}

.ie8 div.styles4 .inmyarea form input[type="submit"] {
    border: 1px solid #00c2d7;
    float: none;
    margin: 10px 0;
    width: 85px;
}
