/*
 Theme Name:   Sun-Nap
 Template:     news-portal
 Description:  News Portal Child theme
 Text Domain:  sun-nap
 Author:       Levente Sajo
 Version:      1.0.0
 License:      GNU General Public License v2 or later
 License URI:  http://www.gnu.org/licenses/gpl-2.0.html
 Tags:
*/

/* =header
----------------------------------------------- */

@import url('https://fonts.googleapis.com/css?family=Averia+Serif+Libre:700i');
@import url('https://fonts.googleapis.com/css?family=Rambla:700i');

.np-logo-section-wrapper {
    padding: 5px 0;
}
.site-header .google-auto-placed {
    display: none;
}
.site-branding {
    margin: 5px 0;
}
.site-logo {
    display: inline-block;
    height: 5vw;
}
.site-logo img {
    height: 100%;
}
.site-title {
    /*font-family: 'Averia Serif Libre', cursive;*/
    font-family: 'Rambla', sans-serif;
    display: inline-block;
    font-size: 3vw;
    height: 3vw;
    line-height: 100%;
    vertical-align: middle;
    margin: 0 0.5em;
}
@media (max-width: 980px) {
    .site-logo {
        height: 40px;
    }
    .site-title {
        font-size: 28px;
        height: 28px;
        margin: 0 6px;
    }
}
.site-description {
    display: none;
}
#site-navigation ul li a {
    padding: 0 5px;
    text-transform: none;
}
#site-navigation ul li.current-cat>a {
    background: #cd5b00;
}
#site-navigation ul li.topic-item>a {
    background: #f1d2b4;
    color: #cd5b00;
    border-top: solid 1px #FF8D1B;
    border-bottom: solid 1px #FF8D1B;
}
#site-navigation ul li.topic-item.current-cat>a,
#site-navigation ul li.topic-item>a:hover {
    color: #FFFFFF;
    background: #cd5b00;
}

@media (max-width: 1200px) {
    #site-navigation ul li a {
        font-size: 12px;
        padding: 0 2px;
    }
}

@media (max-width: 980px) {
    #site-navigation ul li a {
        font-size: 11px;
        padding: 0 1px;
    }
}

.np-top-header-wrap {
    padding: 2px;
}

#top-weather,
#top-languages,
#top-sites,
#top-pages {
    display: inline-block;
}

.top-navigation ul li,
#top-languages,
.weather {
    border-left: 1px solid #fff;
    line-height: 12px;
    padding: 0 5px;
}

#top-languages img {
    margin: 0 2px;
}

.weather img{
    margin: -0.5em 0 -0.5em 0;
    height: 2em;
    vertical-align: middle;
}
.weather .temp_max{
    font-weight: bold;
}
.weather .temp_min{
    /*color: #999999;*/
}

.site-info {
    float: left;
    font-size: 12px;
}
.site-info ul {
    list-style: outside none none;
    margin: 0;
}
.site-info ul li {
    border-left: 1px solid #fff;
    line-height: 12px;
    padding: 0 5px;
    display: inline-block;
}
.site-info ul li:first-child {
    border: none;
}
.site-info ul li a {
    color: #fff;
}

#masthead .np-logo-section-wrapper .np-header-ads-area {
    height: 60px;
    width: 480px;
    margin: 1.8vw 0 0 0;
}
#masthead .np-logo-section-wrapper .np-header-ads-area .widget {
    margin: 0;
}
@media (max-width: 1280px) {
    #masthead .np-logo-section-wrapper .np-header-ads-area {
        margin: 1.5vw 0 0 0;
    }
}
@media (max-width: 980px) {
    #masthead .np-logo-section-wrapper .site-branding {
        margin: 0;
    }
    #masthead .np-logo-section-wrapper .np-header-ads-area {
        display: none;
    }
}

/* content
----------------------------------------------- */

ins {
    background: transparent !important;
}

#content img {
    height: auto;
    width: 100%;
    vertical-align: middle;
}

.navigation {
    height: 50px;
}

.attachment .post-navigation .nav-links .nav-previous {
    width: 50%;
}

@media (max-width: 600px) {
    .ticker-content-wrapper .news-ticker-title {
        line-height: 35px;
        height: 35px;
    }
    .ticker-content-wrapper .news-ticker-title .post-cats-list {
        display: inline-block;
        margin-left: 5px;
        margin-right: -100px;
        line-height: 25px;
        vertical-align: middle;
    }
    .ticker-content-wrapper .news-ticker-title>a {
        display: inline-block;
        margin: 0;
        margin-left: 100px;
        line-height: 15px;
        font-size: 13px;
        vertical-align: middle;
    }

    .middle-primary .news_portal_featured_posts .featured-posts .np-single-post-wrap {
        width: 98%;
    }
    .middle-primary .news_portal_featured_posts .featured-posts .np-single-post-wrap .np-post-thumb {
        width: 32%;
    }
    .middle-primary .news_portal_featured_posts .featured-posts .np-single-post-wrap .np-post-content {
        width: 64%;
    }
}

.np-post-title.large-size,
.np-post-title.small-size,
.np-post-title a,
h1.entry-title {
    text-transform: none !important;
}

#content .np-post-meta .byline,
.post .byline,
.group-blog .byline {
    display: none;
}

#content .np-post-meta span a {
    font-size: 11px;
}

.news_portal_featured_slider .featured-posts .featured-posts-wrapper :nth-child(3) {
    clear: both;
}

.np-home-middle-section .middle-primary {
    float: right;
}

.np-home-middle-section .middle-aside {
    float: left;
}

@media (max-width: 600px) {
    .news_portal_block_posts .layout3 .np-secondary-block-wrap .np-single-post {
        position:  relative;
        margin-bottom: 20px
    }
    .news_portal_block_posts .layout3 .np-secondary-block-wrap .np-single-post .np-post-content {
        bottom: 0;
        left: 0;
        padding: 20px;
        position: absolute;
        width: 100%;
        background: rgba(0, 0, 0, 0) linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.8)) repeat scroll 0 0;
    }
    .news_portal_block_posts .layout3 .np-secondary-block-wrap .np-single-post .np-post-content .np-post-title a {
        color: #fff;
        font-size: 18px;
    }
}

.post-cats-list,
.post-topic-list {
    float: left;
    display: inline;
    margin: 0 5px 0 0 !important;
}

.post-topic-list span {
    display: inline-block;
    vertical-align: top;
}
.post-topic-list a {
    background-color: white;
    display: block;
    font-size: 12px;
    font-weight: 500;
    margin-right: 5px;
    padding: 0px 11px;
    text-transform: capitalize;
    border: solid 1px #FF8D1B;
}

/* wp-polls
----------------------------------------------- */

.wp-polls .Buttons {
    background: #fafafa none repeat scroll 0 0;
    border: 1px solid #eeeeee;
    border-radius: 3px;
    color: #666666;
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    padding: 4px 20px;
    text-decoration: none;
}

.widget_polls-widget>ul {
    display: none;
}


/* property
----------------------------------------------- */

.property .entry-title a {
    color: #333;
}

.property-list .property .entry-meta span:before {
    font-family: FontAwesome;
    font-style: normal;
    margin-right: 5px;
}
.property-list .property .entry-meta .property_type:before {
    content: "\f1ad";
}
.property-list .property .entry-meta .offer_type:before {
    content: "\f2b5";
}
.property-list .property .entry-meta .size:before {
    content: "\f047";
}
.property-list .property .entry-meta .site_area:before {
    content: "\f079";
}
.property-list .property .entry-meta .bedrooms:before {
    content: "\f236";
}
.property-list .property .entry-meta .bathrooms:before {
    content: "\f2cc";
}
.property-list .property .entry-meta .number_of_floors:before {
    content: "\f0c9";
}
.property-list .property .entry-meta .price:before {
     content: "\f0d6";
 }

/* property list
----------------------------------------------- */

#main .property-list .property {
    margin-bottom: 20px;
    padding-bottom: 20px;
}
.page .nav-links .nav-previous,
.page .nav-links .nav-next {
    width: 8em;
}
/* =property search
----------------------------------------------- */

#property-search  {
    background: #EEEEEE;
    padding: 10px 10px;
    position: relative;
    -moz-border-radius: 3px;
    border-radius: 3px;
    border: 1px solid #d3d3d3;
    margin-bottom: 40px;
    line-height: 1.15em;
}
#property-search .search_fieldset {
    margin-bottom: 1.1em;
}
#property-search .property-attribute {
    display: inline-block;
    margin-right: 2%;
    width: 47%;
}

@media (max-width: 950px) {
    #property-search .property-attribute {
        display: inline-block;
        width: 91%;
    }
}
#property-search #location {
    display: inline-block;
    width: 91%;
}
#property-search .attribute-name{
    width: 160px;
    display: block;
    float: left;
    margin-top: 8px;
}
#property-search .attribute-value{
    display: block;
    padding-left: 160px;
    width: 100%;
    height: 56px;
}
#property-search .attribute-value span{
    white-space:nowrap;
}
#property-search .text-input{
    height: 36px;
    border: 1px solid black;
}
#property-search .number{
    height: 36px;
}
#property-search select {
    width: 80%;
    height: 36px;
}
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    /* display: none; <- Crashes Chrome on hover */
    -webkit-appearance: none;
    margin: 0; /* <-- Apparently some margin are still there even though it's hidden */
}
#property-search .separator {
    display: inline-block;
    text-align: center;
    width: 10%;
}
#property-search .attribute-unit{
    display: inline-block;
    text-align: center;
    width: 20%;
}
#property-search .range-min,
#property-search .range-max{
    width: 35%;
}
#property-search .search-type {
    display: inline-block;
    font-weight: bold;
    cursor: pointer;
    margin: 5px 0;
    width: 160px;
}
#property-search .submit {
    display: inline-block;
}
#property-search .submit #submit_button {
    background: #FF8D1B;
    border: none;
    color: #ffffff;
    cursor: pointer;
    font-size: 14px;
    padding: 5px 22px 5px 22px;
}
.display-options {
    margin-top: 1em;
    margin-bottom: 2em;
    background: #EEE;
    -moz-border-radius: 3px;
    border-radius: 3px;
    border: 1px solid lightGrey;
    padding: 4px;
    text-align: center;
}
.display-options .property-results {
    float: left;
}
.display-options .sorter-options {
    float: right;
}

.ui-autocomplete > li {
    padding: 3px 20px;
}
.ui-autocomplete > li.ui-state-focus {
    background-color: #DDD;
}
.ui-helper-hidden-accessible {
    display: none;
}
.ui-autocomplete {
    position: absolute;
    z-index: 1000;
    cursor: default;
    padding: 0;
    margin-top: 2px;
    list-style: none;
    background-color: #ffffff;
    border: 1px solid #ccc;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    border-radius: 5px;
    -webkit-box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
    -moz-box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
}

/* =property single
----------------------------------------------- */
.property .property-attributes .location{
}
.property .property-attributes .offer{
    padding-top: 10px;
    float: left;
    width: 50%;
}
.property .property-attributes .details{
    padding-top: 10px;
    float: left;
    width: 50%;
}
.property .property-attributes .contactinfo{
    padding-top: 10px;
    float: left;
    width: 50%;
}
.property dt {
    float: left;
    width: 110px;
    text-align: left;
}
.property dd {
    padding-left: 110px;
    margin: 0;
}
.property .description{
    clear: both;
    padding-top: 2em;
}
.property .notes{
    clear: both;
}

.property-gallery{
    margin-bottom: 1.625em;
}
.property-gallery .gallery-item {
    display: inline-block;
    margin: 0 1px 4px 0;
}
.property-gallery .attachment-thumbnail {
    width: auto;
    height: auto;
}
.property-gallery-3 .gallery-item{
    width: 32%;
}
.property-gallery-4 .gallery-item{
    width: 24%;
}
.property-gallery-5 .gallery-item{
    width: 18%;
}
.property-gallery-8 .gallery-item{
    width: 12%;
}

/* =property map
----------------------------------------------- */
.property-map-full{
    border: 1px solid black;
    height: 340px;
    margin: 2.5em 0;
}
.property-map .entry-thumbnail,
.property-map .entry-thumbnail img {
    max-width: 100%;
    border: 1px solid black;
    width: 75px;
    height: 75px;
}
.property-map .entry-details {
    padding-left: 85px;
}

.property-map .property{
    width: 225px;
    height: 95px;
}

/* =property widget
----------------------------------------------- */
#primary .widget {
    margin: 30px 0;
}
#primary .widget .property {
    float: left;
    width: 31.33%;
    border-right: 1px solid #e1e1e1;
    margin-right: 2%;
    padding-right: 2%;
    padding-bottom: 0;
}
@media (min-width: 1281px) {
    #primary .widget .property:nth-child(3n+0) {
        border-right: none;
    }

    #primary .widget .property:nth-child(3n+1) {
        clear: both;
    }
}
@media (min-width: 601px) and (max-width: 1280px) {
    #primary .widget .property {
        width: 47.99%;
    }
    #primary .widget .property:nth-child(2n+0){
        border-right: none;
    }
    #primary .widget .property:nth-child(2n+1) {
        clear: both;
    }
}
@media (max-width: 600px) {
    #primary .widget .property {
        width: 98%;
        border-right: none;
        border-bottom: 1px solid #e1e1e1;
        margin-bottom: 5px;
        padding-bottom: 5px;
    }
    #primary .widget .property:last-child {
        border-bottom: none;
    }
}
#secondary .widget .property,
.middle-aside .widget .property {
    border-bottom: 1px solid #e1e1e1;
    margin-bottom: 5px;
    padding-bottom: 5px;
}
#secondary .widget .property:last-child,
.middle-aside .widget .property:last-child {
    border-bottom: none;
}

.widget .property .entry-title {
    font-size: 13px;
    clear: none;
    margin-bottom: 12px;
}
.widget .entry-thumbnail {
    width: 105px;
    height: 85px;
    position: relative;
    overflow: hidden;
}
.widget .entry-thumbnail img{
    min-height: 100%;
    width: 100%;
    border: 0;
    position: absolute;
    top: 50%;
    left: 50%;
    -ms-transform: translate(-50%, -50%);
    -webkit-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
}
.widget .pad {
    padding-left: 120px;
}
.widget .property .attributes {
    font-size: 12px;
    line-height: 1.5em;
}
.widget .property .price {
    font-size: 13px;
    font-family: "Verdana";
    font-weight: 400;
    line-height: 1.5em;
}

/*
----------------------------------------------- */
.sn-ads-widget .tiles-layout {
    margin: 0 -1%;
}
.sn-ads-widget .tiles-layout .hirdetes {
    display: inline-block;
    width: 48%;
    margin: 0 1%;
    padding-top: 30%;
    position: relative;
    border: 1px solid #e1e1e1;
}
.sn-ads-widget .tiles-layout .hirdetes span {
    position: absolute;
    top: 10%;
    left: 5%;
    width: 90%;
    height: 80%;
}
.sn-ads-widget .tiles-layout .hirdetes span img {
    max-width: 100%;
    max-height: 100%;
    object-fit: scale-down;
    position: relative;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}
.sn-ads-widget .responsive-layout .hirdetes {
    width: 100%;
}