/* **************************
 *                         *
 *   CUSTOM  STYLE SHEET   *
 *   MADE BY MEYERDEV.CH   *
 *                         *
 ************************** */


/*
    ========== GENERAL THINGS & STUFF ==========
*/

html, body {
    font-size: 16px;
}

b, strong {
    font-weight: 700;
    color: #000;
}


/* Fonts */
body {
    font-family: Hind, sans-serif;
    font-weight: 400;
    color: #444;
    overflow-x: hidden;
}

h1, h2, h3,
h4, h5, h6 {
    font-family: Poppins, sans-serif;
    color: #000;
    font-weight: 700;
}

h1 {
    font-size: 3rem;
    margin-bottom: 30px;
}

h2 {
    font-size: 1.5rem;
    margin-top: 25px;
    margin-bottom: 15px;
}

h3 {
    margin-top: 20px;
    margin-bottom: 10px;
}

h4, h5, h6 {
    font-family: Hind, sans-serif;
}

@media (max-width: 767px) {
    h1, h2, h3,
    h4, h5, h6 {
        line-height: 1.25;
    }

    h1 {
        font-size: 1.5rem;
    }

    h2 {
        font-size: 1.25rem;
    }
}


/* Colors */
.white,
.white-ext,
.white-ext h1,
.white-ext h2,
.white-ext h3,
.white-ext h4 {
    color: #fff
}


/* Selection */
::selection {
    color: #fff;
    background: #4296d2;
}


/* Alignments */
.text-left {
    text-align: left !important;
}

.text-right {
    text-align: right !important;
}

.text-center {
    text-align: center !important;
}

.text-justify {
    text-align: justify !important;
}

@media (min-width: 576px) {
    .text-sm-left {
        text-align: left !important;
    }

    .text-sm-right {
        text-align: right !important;
    }

    .text-sm-center {
        text-align: center !important;
    }

    .text-sm-justify {
        text-align: justify !important;
    }
}

@media (min-width: 768px) {
    .text-md-left {
        text-align: left !important;
    }

    .text-md-right {
        text-align: right !important;
    }

    .text-md-center {
        text-align: center !important;
    }

    .text-md-justify {
        text-align: justify !important;
    }
}

@media (min-width: 992px) {
    .text-lg-left {
        text-align: left !important;
    }

    .text-lg-right {
        text-align: right !important;
    }

    .text-lg-center {
        text-align: center !important;
    }

    .text-lg-justify {
        text-align: justify !important;
    }
}

@media (min-width: 1200px) {
    .text-xl-left {
        text-align: left !important;
    }

    .text-xl-right {
        text-align: right !important;
    }

    .text-xl-center {
        text-align: center !important;
    }

    .text-xl-justify {
        text-align: justify !important;
    }
}

.text-content {
    text-align: justify;
}

.text-content h1,
.text-content h2,
.text-content h3,
.text-content h4,
.text-content h5,
.text-content h6 {
    text-align: left;
}

@media (max-width: 767px) {
    .text-content {
        text-align: left;
    }
}

.one-col-text {
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
}


/* Accent colors */
.md-accent-color {
    color: #4296d2;
}

.md-accent-bg {
    background-color: #4296d2;
}

.md-accent-color2 {
    color: #1266a2;
}

.md-accent-bg2 {
    background-color: #1266a2;
}


/* Links */
a,
a:visited {
    color: #000;
    text-decoration: underline;
    transition: color .2s ease;
}

a:hover,
a:active,
a:focus {
    color: #444;
    text-decoration: none;
}

/* Buttons */
a.btn,
input[type="submit"].btn {
    display: inline-block;
    border: none;
    background-color: #000;
    color: #ddd;
    padding: 10px 20px;
    text-decoration: none;
    text-shadow: none;
    transition: background-color .2s ease;
}

a.btn:hover,
a.btn:active,
a.btn:focus,
input[type="submit"].btn:hover,
input[type="submit"].btn:active,
input[type="submit"].btn:focus {
    background-color: #333;
}


/* iframes */
iframe {
    border: none;
    width: 100%;
}


/* Forms */
.form-control {
    display: block;
    width: 100%;
    height: calc(2.25rem + 2px);
    padding: .375rem .75rem;
    font-size: 1rem;
    line-height: 1.5;
    color: #444;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #ced4da;
    transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}

/* copied from bootstrap */

textarea.form-control {
    min-height: 100px;
}


/*
    ========== HEADER & NAVIGATION ==========
*/

/* Main Header */
#site-header {
    border-bottom: 1px solid #eee;
}

#header {
    background-color: transparent;
    color: #333;
    line-height: 80px;
    font-family: Poppins, sans-serif;
    text-transform: uppercase;
}

#header a {
    color: #333;
}

#site-logo {
    float: left;
    max-width: 80%;
}

#site-logo img {
    max-width: 100%;
    height: auto;
}

/* Main Navigation */
#header ul.menu {
    list-style: none;
    margin: 0;
    padding: 0;
    line-height: 80px;
 background-color: transparent;
    padding-left: 10px;
    padding-right: 30px;
}

#header-menu {
    /* float: right; */
    text-align: center;
}

#header #header-menu ul.menu {
    display: inline-block;
    text-align: left;
}

#header #header-menu ul.menu > li {
    position: relative;
    display: inline-block;
}

#header #header-menu ul.menu > li:last-of-type {
    margin-right: -20px;
}

#header #header-menu ul.menu > li > a,
#header #header-menu ul.menu > li > a:visited,
#header #mobile-menu ul.menu > li > a > span {
    display: block;
    text-decoration: none;
    line-height: 1;
    padding: 10px 20px;
    transition: all .2s ease;
    background-color: transparent;
    color: #333;
}

#header #header-menu ul.menu > li > a:hover,
#header #header-menu ul.menu > li > a:active,
#header #header-menu ul.menu > li > a:focus {
    background-color: #000;
    color: #fff;
}

#header #header-menu ul.menu > li > a.active,
#header #header-menu ul.menu > li.current-menu-item > a,
#header #header-menu ul.menu > li.current-menu-ancestor > a {
    background-color: #000;
    color: #fff;
}

/* Mobile Menu */
#mobile-toggle {
    float: right;
    font-size: 30px;
}

#header #mobile-menu {
    /* background-color: #fff; */
    background-color: transparent;
}

#header #mobile-menu ul.menu {
    line-height: 50px;
    text-align: center;
    color: #333;
}

#header #mobile-menu ul.menu > li {
    position: relative;
    display: block;
}

#header #mobile-menu ul.menu > li:first-of-type {
    border-top: 1px solid #eee;
}

#header #mobile-menu ul.menu > li > a {
    display: block;
    text-decoration: none;
    line-height: 1;
    padding: 10px;
}

#header #mobile-menu ul.menu > li > a > span {
    display: inline-block;
    width: 200px;
    padding: 10px;
    transition: background-color .2s ease, color .2s ease, border-color .2s ease;
    background-color: transparent;
    color: #333;
}

#header #mobile-menu ul.menu > li > a.active > span,
#header #mobile-menu ul.menu > li.current-menu-item > a > span,
#header #mobile-menu ul.menu > li.current-menu-ancestor > a > span {
    background-color: #000;
    color: #fff;
}

#header #mobile-menu ul.menu > li > a:hover > span,
#header #mobile-menu ul.menu > li > a:active > span,
#header #mobile-menu ul.menu > li > a:focus > span {
    background-color: #000;
    color: #fff;
}


/*
    ========== PAGE CONTENT ==========
*/

html,
body,
#wrapper {
 background-color: transparent;
}

#page-content {
    padding-top: 60px;
    padding-bottom: 60px;
}

@media (max-width: 767px) {
    #page-content {
        padding-top: 35px;
        padding-bottom: 35px;
    }
}

#page-content p:last-of-type {
    margin-bottom: 0;
}

#page-content p:last-of-type + ul,
#page-content p:last-of-type + ol {
    margin-top: 1rem;
}

#page-content h2:first-of-type,
#page-content h3:first-of-type {
    margin-top: 0;
}

#page-content img {
    display: block;
    max-width: 100%;
    height: auto;
}

#page-content img.aligncenter {
    margin-left: auto;
    margin-right: auto;
}

/* WordPress Built-in Galleries */
#page-content [id^="gallery-"] {
    line-height: 1;
}

#page-content [id^="gallery-"] .gallery-item {
    width: calc(33% - 5px);
    margin: 0 5px 5px 0;
}

#page-content [id^="gallery-"].gallery-columns-2 .gallery-item {
    width: calc(50% - 5px);
    margin: 0 5px 5px 0;
}

#page-content [id^="gallery-"] img {
    border: none;
}

#page-content [id^="gallery-"] .gallery-caption {
    font-size: 80%;
    margin-top: 5px;
}

@media (max-width: 575px) {
    #page-content [id^="gallery-"] .gallery-item {
        display: inline-block;
        float: none;
        width: calc(50% - 5px);
    }
}


/*
    ========== ADDITIONAL LIBRARIES ==========
*/

/*
    ----- Contact Form 7 -----
*/
.wpcf7 label {
    display: block;
}


.wpcf7 input,
.wpcf7 select,
.wpcf7 textarea {
    margin-bottom: 20px;
}

.wpcf7 input[type="checkbox"] {
    margin-bottom: 0;
}

.wpcf7 span.wpcf7-list-item {
    display: block;
}

.wpcf7 span.wpcf7-list-item.last {
    margin-bottom: 20px;
}

.wpcf7 input.wpcf7-not-valid,
.wpcf7 select.wpcf7-not-valid,
.wpcf7 textarea.wpcf7-not-valid {
    border-color: #f00;
    margin-bottom: 0;
}

.wpcf7 .wpcf7-not-valid span.wpcf7-list-item.last {
    margin-bottom: 0;
}

.wpcf7 span.wpcf7-not-valid-tip {
    margin-bottom: 20px;
}

/* WPCF7: Response/Validation */
body .wpcf7 form div.wpcf7-response-output,
body .wpcf7 form div.wpcf7-mail-sent-ok,
body .wpcf7 form div.wpcf7-validation-errors,
body .wpcf7 form div.wpcf7-acceptance-missing {
    margin: 15px 0;
    border-width: 1px;
    border-radius: 0;
    padding: 1em 2em;
    text-align: center;
}

body .wpcf7 form.sent div.wpcf7-response-output,
body .wpcf7 form.sent div.wpcf7-mail-sent-ok {
    background-color: #edfdd3;
    border-color: #c4dba0;
    color: #657e3c;
}

body .wpcf7 form.invalid div.wpcf7-response-output,
body .wpcf7 form.invalid div.wpcf7-validation-errors,
body .wpcf7 form.invalid div.wpcf7-acceptance-missing {
    background-color: #ffc;
    color: #c4690e;
    border-color: #f7e700;
}

/* Hide reCAPTCHA */
.grecaptcha-badge {
    display: none;
}


/*
    ========== SIDEBAR / WIDGETS AREAS ==========
*/
#widgets-area {
    padding: 30px 0 10px;
    background-color: #222;
    color: #eee;
    font-family: Poppins, sans-serif;
    font-size: 14px;
}

#widgets-area h1,
#widgets-area h2,
#widgets-area h3,
#widgets-area h4,
#widgets-area h5,
#widgets-area h6 {
    color: #eee;
    font-family: Poppins, sans-serif;
}

#widgets-area strong {
    color: #eee;
}

#widgets-area a,
#widgets-area a:visited {
    color: #eee;
}

#widgets-area a:hover,
#widgets-area a:active,
#widgets-area a:focus {
    color: #fff;
}

#widgets-area #footer-0 h1,
#widgets-area #footer-0 h2,
#widgets-area #footer-0 h3,
#widgets-area #footer-0 h4,
#widgets-area #footer-0 h5,
#widgets-area #footer-0 h6 {
    margin-top: 0;
}


/*
    ========== FOOTER ==========
*/
#footer {
    padding: 30px 0 10px;
    background-color: #222;
    color: #fff;
    font-family: Poppins, sans-serif;
    font-size: 14px;
}

#footer a,
#footer a:visited {
    color: #fff;
}

#footer a:hover,
#footer a:active,
#footer a:focus {
    color: #ddd;
}

@media (min-width: 576px) {
    #footer .webmaster-credits {
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
    }
}

body.home #footer {
    max-width: none;
    padding-left: 45px;
    padding-right: 45px;
}


/*
    ========== PROPERTIES LISTING ==========
*/

/* Filters */
.properties-listing-filters {
    margin-bottom: 15px;
}

.properties-listing-filters label,
.wpb_text_column .properties-listing-filters label:last-child {
    display: block;
    cursor: pointer;
    margin-bottom: 15px;
}

.properties-listing-filters input,
.properties-listing-filters select {
    width: 100%;
    height: 44px;
    padding: 10px 20px;
}

.properties-listing-filters .no-label-spacer {
    width: 100%;
    height: 1.5rem;
}

/* Property Block */
.property-block {
    background-color: #fff;
    box-shadow: 0 0  8px rgba(0, 0, 0, .2);
    /* border: 30px solid #000; */
    overflow: hidden;
}

/* Bugfix for Visual Composer */
.property-block,
.wpb_text_column .property-block:last-child {
    margin-bottom: 30px;
}

.property-picture {
    display: block;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 */
    background-image: linear-gradient(to top right, #333, #666); /* TODO: MAKE A DEFAULT IMAGE AND REPLACE THIS STUPID GRADIENT */
    background-size: cover;
}

/* .property-button {
    position: relative;
    margin-top: calc((1rem * -1.5 - 20px) / 2);
    z-index: 200;
} */

.property-summary {
    padding: 15px;
    /* font-size: 14px; */
}

.property-type,
.property-price,
.property-size,
.property-address {
    margin: 15px 0;
}

.property-price {
    font-size: 25px;
    font-weight: bold;
    color: #333;
    text-align: center;
}

.price-strikethrough {
    text-decoration: line-through;
    color: #666;
    font-weight: normal;
    font-size: 20px;
}

.property-address a {
    color: inherit;
    text-decoration: none;
}



/* Property Single Page */
.property-content,
.property-illustration {
    margin-bottom: 30px;
}

.property-illustration {
    box-shadow: 0 0 8px rgba(0, 0, 0, .4);
}

.property-meta {
    background-color: #fff;
    margin-bottom: 30px;
    /* border-top: 10px solid rgba(0, 51, 0, .8); */
    /* border-radius: 5px; */
    border: 30px solid #000;
    /* box-shadow: 0 0 8px rgba(0, 0, 0, .4); */
    overflow: hidden;
}

@media (max-width: 576px) {
    .property-meta {
        margin: 0 -15px;
    }
    
    .property-meta:first-of-type {
        border-bottom: none;
    }
}

.property-meta h2 {
    font-size: 1.15rem;
    margin: 0;
    padding: 15px;
    text-align: center;
}

.property-meta .row {
    border-top: 1px solid #ddd;
    margin-left: 0;
    margin-right: 0;
    padding: 15px 0;
}

.property-meta .meta-title {
    font-weight: bold;
}

.property-meta .meta-title,
.property-meta .meta-value {
    width: 100%;
    padding: 0 15px;
}


/*
    ========== CUSTOM ITEMS ==========
*/

.home-blocks {
    background-color: #000;
    padding: 30px;
    color: #ddd;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, .3);
}

.home-blocks h1 {
    font-size: 3rem;
    margin-top: 1rem;
    color: #fff;
    text-align: center;
}

.home-blocks h2,
.home-blocks h3 {
    color: #ddd;
}

.home-block {
    position: relative;
    background-color: #fff;
    background-position: center center, center center;
    background-size: cover, cover;
    padding: 15px;
    margin-right: 30px;
    margin-bottom: 30px;
    width: calc(50% - 15px);
    /* min-height: 100%; */
    float: left;
}

.home-block:nth-child(2n) {
    margin-right: 0;
}

.home-block:nth-last-child(2),
/* second-to-last block; 3 because there's a div.clear-both after the last two .home-block’s */
.home-block:nth-last-child(3) {
    margin-bottom: 0;
}

@media (min-width: 768px) and (max-width: 992px) {
    .home-block {
        width: calc(50% - 15px);
    }

    .home-block:nth-child(2) {
        margin-right: 30px;
    }

    .home-block:nth-last-child(3) { 
        margin-right: 0;
    }
    
    .home-block:first-of-type,
    /* last block; 2 because there's a div.clear-both after the last .home-block */
    .home-block:nth-last-child(2) {
        width: 100%;
        min-height: 50%;
        margin: 0 0 30px;
    }
}

@media (max-width: 767px) {
    .home-block {
        width: 100%;
        margin: 0 0 30px;
    }

    /* second-to-last block; 3 because there's a div.clear-both after the last two .home-block’s */
    .home-block:nth-last-child(3) { 
        margin-bottom: 30px;
    }
    
    .home-block:last-of-type {
        margin-bottom: 0;
    }
}

.home-block .section-logo {
    text-align: center;
}

.home-block .section-logo img {
    max-width: 100%;
    height: auto;
}

.home-block a {
    color: #fff;
    text-decoration: none;
}

#mac17 {
    background-image: linear-gradient(0deg, rgba(54, 51, 0, .8), rgba(54, 51, 0, .8)),
        url(https://mac17.ch/wp-content/themes/mac17/img/mac17-construction-metallique.jpg);
}

#fermat {
    background-image: linear-gradient(0deg, rgba(0, 54, 114, .8), rgba(0, 54, 114, .8)),
        url(https://mac17.ch/wp-content/themes/mac17/img/fermat-portes-automatiques.jpg);
}

#mac17-immo {
    background-image: linear-gradient(0deg, rgba(0, 51, 0, .8), rgba(0, 51, 0, .8)),
        url(https://mac17.ch/wp-content/themes/mac17/img/mac17-immo.jpg);
}

#mac17-sport {
    background-image: linear-gradient(0deg, rgba(51, 0, 0, .8), rgba(51, 0, 0, .8)),
        url(https://mac17.ch/wp-content/themes/mac17/img/Art-Car-Art-BG.jpg);
}

/* .home-block:first-of-type {
    margin-left: 30px;
}

.home-block:last-of-type {
    margin-right: 30px;
}

@media (max-width: 991px) {
    .home-block {
        width: calc(50% - 0);
        margin: 0 15px;
    }

    .home-block:first-of-type {
        width: calc(100% - 60px);
        margin: 0 30px 30px;
    }

    .home-block:last-of-type {
    }
} */


/*
    ----- Page Header -----
*/

#page-header {
    text-align: center;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, .3);
    background-size: cover, cover;
    background-position: center center, center center;
    padding: 60px 20px;
}

#page-header h1,
#page-header h2 {
    color: #fff;
}

#page-header h1 {
    font-size: 3rem;
    margin: 0 0 1rem;
}

#page-header h2 {
    font-size: 1.5rem;
    margin: 0;
}


/*
    ----- Portfolio | Masonry -----
*/

/*






.md-gallery {
    margin: 0 10px;
}

.container .md-gallery {
    margin: 0 -10px;
}







.gallery-item,
.grid-sizer {
    width: calc(20% - 20px);
    margin: 10px;
    overflow: hidden;
}

.md-gallery.mdg-fixed-size .gallery-item a {
    display: block;
    height: 0;
}

.md-gallery.mdg-2-cols .gallery-item,
.md-gallery.mdg-2-cols .grid-sizer {
    width: calc(50% - 20px);
    margin: 10px;
}

.md-gallery.mdg-3-cols .gallery-item,
.md-gallery.mdg-3-cols .grid-sizer {
    width: calc(33.33333% - 20px);
    margin: 10px;
}

.md-gallery.mdg-4-cols .gallery-item,
.md-gallery.mdg-4-cols .grid-sizer {
    width: calc(25% - 20px);
    margin: 10px;
}







@media (max-width: 1199px) {
    .gallery-item,
    .grid-sizer {
        width: calc(25% - 20px);
        margin: 10px;
    }
}







@media (max-width: 991px) {
    .gallery-item,
    .grid-sizer,
    .md-gallery.mdg-5-cols .gallery-item,
    .md-gallery.mdg-5-cols .grid-sizer {
        width: calc(33.33333% - 20px);
        margin: 10px;
    }

    .md-gallery.mdg-4-cols .gallery-item,
    .md-gallery.mdg-4-cols .grid-sizer {
        width: calc(50% - 20px);
        margin: 10px;
    }
}







@media (max-width: 479px) {
    .md-gallery {
        margin: 0 5px;
    }

    .gallery-item,
    .grid-sizer,
    .md-gallery.mdg-2-cols .gallery-item,
    .md-gallery.mdg-2-cols .grid-sizer,
    .md-gallery.mdg-3-cols .gallery-item,
    .md-gallery.mdg-3-cols .grid-sizer,
    .md-gallery.mdg-4-cols .gallery-item,
    .md-gallery.mdg-4-cols .grid-sizer,
    .md-gallery.mdg-5-cols .gallery-item,
    .md-gallery.mdg-5-cols .grid-sizer {
        width: calc(50% - 10px);
        margin: 5px;
    }
}

.gallery-item {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.gallery-item a,
.gallery-item a img {
    width: 100%;
    transition: transform 1s ease, opacity 1s ease;
}

.gallery-item a:hover img,
.gallery-item a:active img,
.gallery-item a:focus img {
    opacity: .8;
    transform: scale(1.05);
}

.md-gallery.mdg-fixed-size.mdg-1_1 .grid-sizer,
.md-gallery.mdg-fixed-size.mdg-1_1 .gallery-item a {
    padding-bottom: 100%;
}

.md-gallery.mdg-fixed-size.mdg-3_2 .grid-sizer,
.md-gallery.mdg-fixed-size.mdg-3_2 .gallery-item a {
    padding-bottom: 66.66666%;
}

.md-gallery.mdg-fixed-size.mdg-16_9 .grid-sizer,
.md-gallery.mdg-fixed-size.mdg-16_9 .gallery-item a {
    padding-bottom: 56.25%;
}

.md-gallery.mdg-fixed-size .gallery-item a {
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
}

.md-gallery.mdg-fixed-size .gallery-item a:hover,
.md-gallery.mdg-fixed-size .gallery-item a:active,
.md-gallery.mdg-fixed-size .gallery-item a:focus {
    opacity: .8;
    transform: scale(1.05);
}
*/
