/**
* ---------------------------
* DEFAULT CSS FOR ALL ELEMENTS
* ----------------------------
* NOTE: This is by no means a standard for writing css:
*       It is just what author has seen to be the most convenient from experience.
*/

@font-face {
    font-family: Nunito-Black;
    src: url('fonts/nunito/Nunito-Black.ttf');
}

@font-face {
    font-family: Nunito-BlackItalic;
    src: url('fonts/nunito/Nunito-BlackItalic.ttf');
}

@font-face {
    font-family: Nunito-Bold;
    src: url('fonts/nunito/Nunito-Bold.ttf');
}

@font-face {
    font-family: Nunito-BoldItalic;
    src: url('fonts/nunito/Nunito-BoldItalic.ttf');
}

@font-face {
    font-family: Nunito-ExtraBold;
    src: url('fonts/nunito/Nunito-ExtraBold.ttf');
}

@font-face {
    font-family: Nunito-ExtraBoldItalic;
    src: url('fonts/nunito/Nunito-ExtraBoldItalic.ttf');
}

@font-face {
    font-family: Nunito-ExtraLight;
    src: url('fonts/nunito/Nunito-ExtraLight.ttf');
}

@font-face {
    font-family: Nunito-ExtraLightItalic;
    src: url('fonts/nunito/Nunito-ExtraLightItalic.ttf');
}

@font-face {
    font-family: Nunito-Italic;
    src: url('fonts/nunito/Nunito-Italic.ttf');
}

@font-face {
    font-family: Nunito-Light;
    src: url('fonts/nunito/Nunito-Light.ttf');
}

@font-face {
    font-family: Nunito-LightItalic;
    src: url('fonts/nunito/Nunito-LightItalic.ttf');
}

@font-face {
    font-family: Nunito-Regular;
    src: url('fonts/nunito/Nunito-Regular.ttf');
}

@font-face {
    font-family: Nunito-SemiBold;
    src: url('fonts/nunito/Nunito-SemiBold.ttf');
}

@font-face {
    font-family: Nunito-SemiBoldItalic;
    src: url('fonts/nunito/Nunito-SemiBoldItalic.ttf');
}

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    position: relative;
    font-family: helvetica, sans-serif;
}


/*
* ----------------------------------------------------
* Rules below apply when the slider has slid into view
* ----------------------------------------------------
*/
#btn-toggle-sidebar.toggle-on i {
    transform: rotateY(-180deg);
}


/*
* ---------------------------------------------------------------------
* main: Style rules for main part of page and it's children starts here
* ----------------------------------------------------------------------
*/
main {
    width: 80%;
    margin: auto;
    display: flex;
    align-items: flex-start;
}

#top-header {
    position: static;
    padding: 0 0px;
    justify-content: center;
}

.full-header-hight {
    width: 80%;
}

#places {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.5s;
    background-color: #f6f8fb;
    transition: margin 0.6s;
}

#places .filters-section{
    max-width: 500px;
    padding: 0 !important;
}

#places-objects {
	grid-template-columns: repeat(var(--repeat, auto-fill), minmax(calc(25% - 28px), 2fr));
	height: auto;
    display: grid;
	grid-column-gap: 30px;
	grid-row-gap: 10px;
}

#places.toggle-on {
    margin-left: -600px;
}

#places.toggle-on .obj-filter {
    display: flex;
}

.filters-section {
    display: flex;
    z-index: 5;
    position: sticky;
    width: 100%;
    background-color: #ffffff;
    top: 0px;
    margin: auto;
}

.filters-section-inner {
    left: 10%;
}

.filters-section {
    height: 85px;
}

.filters-section-scroll {
    box-shadow: 0 8px 6px -6px #e9e9e9;
    height: 65px;
}

#places > #places-objects-wrapper {
    height: calc(100% - 50px);
    /**CUSTOM STYLE RULE FOR SCROLL BAR:::GECKO BROWSERS(FIREFOX, TOR...) */
    scrollbar-width: thin;
    scrollbar-color: #c1272d rgba(255, 255, 255, 0.4);
}

/**CUSTOM SCROLL BAR FOR WEBKIT BASED ENGINE:::::CHROME, MODERN EDGE, IOS BROWSERS(SAFARI ET ALL) */
#places-objects-wrapper::-webkit-scrollbar {
    width: 5px;
    background-color: rgba(255, 255, 255, 0.4)
}

#places-objects-wrapper::-webkit-scrollbar-track {
    width: 5px;
}

#places-objects-wrapper::-webkit-scrollbar-thumb {
    background-color: #aaa5;
}

#places > #pagination {
    height: 50px;
    border-top: 1px solid #aaa;
}

.add-to-maps-holder {
    position: fixed;
}

.mobile-wrap {
    width: 100%;
}

figure {
    background-color: #ffffff;
    border: 1px solid #e1e7f0;
}


figure  {
    display: flex;
    flex-wrap: wrap;
}

/*when object is selected*/
figure[object-selected]{
    background-color: #eee;
}

figure .obj-img-wrapper {
    overflow: hidden;
    width: 100%;
}

.btn-pp-object {
    font-size: 30px;
    color: #7d3939;
    border-radius: 100%;
    position: absolute;
    top: 15%;
    left: 10%;
    transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    border: none;
    cursor: pointer;
}

.btn-temporary-object {
    font-size: 30px;
    color: #7d3939;
    border-radius: 100%;
    position: absolute;
    top: 15%;
    right: -2%;
    transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    border: none;
    cursor: pointer;
}

.pt-obj-modal-c {
    position: absolute;
    background: rgb(77 77 77);
    color: white;
    z-index: 3;
    padding: 10px 15px 10px 15px;
    pointer-events: auto;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
	visibility: hidden;
}

h1.pt-obj-modal-head {
    font-family: 'Nunito-Regular';
}

p.pt-obj-modal-body {
    font-family: 'Nunito-Regular';
}

a.pt-obj-modal__close {
    text-decoration: none;
    color: #fdbaa4;
    position: absolute;
    top: 0px;
    right: 0px;
}

.pt-obj-modal-c:target {
  visibility: visible;
  opacity: 1;
}

span.temporary-tooltip-text {
background-color: #555;
    visibility: hidden;
    font-size: 14px;
    width: 90px;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 5px 0;
    position: absolute;
    z-index: 1;
    right: 130%;
}

span.temporary-tooltip-text::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 100%;
  margin-top: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: transparent transparent transparent #555;
}

.btn-temporary-object:hover .temporary-tooltip-text {
	visibility: visible;
	opacity: 1;
}

span.pp-tooltip-text {
    background-color: #555;
    visibility: hidden;
    width: 120px;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 5px 0;
    position: absolute;
    z-index: 1;
    top: -0px;
    left: 130%;
    font-size: 14px;
}

span.pp-tooltip-text::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 100%;
    margin-top: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: transparent #555 transparent transparent;
}

.btn-pp-object:hover .pp-tooltip-text {
	visibility: visible;
	opacity: 1;
}

figure img {
    width: 100%;
	height: 100%;
    object-fit: cover;
}

figure figcaption {
    width: 100%;
    padding: 15px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
	background-color: #ffffff;
}

figure figcaption .obj-name, figure figcaption p:nth-child(3), figure figcaption .map-action-summary > * {
    margin-top: 10px;
}

.btn-edit-object:hover .edit-tooltip-text {
	visibility: visible;
	opacity: 1;
}

span.visited-tooltip-text {
    visibility: hidden;
    width: 65px;
    background-color: #555;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 5px 0;
    position: absolute;
    bottom: 125%;
    margin-left: -35px;
    opacity: 0;
    transition: opacity 0.3s;
}

span.visited-tooltip-text::after {
    content: "";
    position: absolute;
    top: 100%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #555 transparent transparent transparent;
}

.btn-add-to-map:hover .visited-tooltip-text {
	visibility: visible;
	opacity: 1;
}

.btn-remove-from-map:hover .visited-tooltip-text {
	visibility: visible;
	opacity: 1;
}

span.rate-tooltip-text {
    visibility: hidden;
    width: 65px;
    background-color: #555;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 5px 0;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    margin-left: -120px;
    opacity: 0;
    transition: opacity 0.3s;
}

span.rate-tooltip-text::after {
    content: "";
    position: absolute;
    top: 100%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #555 transparent transparent transparent;
}

.user-rating:hover .rate-tooltip-text {
	visibility: visible;
	opacity: 1;
}

figure figcaption .object-category {
	font-family: Nunito-Regular;
	color: #464646;
	display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
    overflow: hidden;
    margin-bottom: 10px;
    font-family: 'Nunito-Regular';
    font-size: 17px;
}

figure figcaption .country-name {
	font-family: Nunito-Light;
	font-size: 17px;
	color: #182B3E;
	display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
    overflow: hidden;
	overflow-wrap: break-word;
}

figure figcaption a.object-name-link {
    line-height: 1.8rem;
    height: 3.6rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    text-overflow:ellipsis;
    overflow: hidden;
	font-family: Nunito-SemiBold;
	font-size: 1.2em;	
	color: #182B3E;
	overflow-wrap: break-word;
	text-decoration: none;
}

figure figcaption .obj-name .text-overflow {
    position: absolute;
    bottom: 0;
    right: 0;
    line-height: 1.2rem;
    background-color: #fff;
    display:none;
}

figure figcaption .map-action-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
	margin-top: 5px;
}

figure .map-action-summary .map-action button:first-child {
    margin-left: 0;
    margin-right: 10px;
}

/* big loader start */

.loader-items-holder {
    width: 100%;
    height: 100%;
    position: absolute;
    justify-content: center;
    align-items: center;
    display: none;
}

.loader-items-holder-flex {
    width: 60px;
    height: 60px;
    border-radius: 50%; 
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.loader-item {
    width: 10px;
    height: 10px;
    background-color: #0e8fc1;
    border-radius: 50%;
    position: absolute;
    animation: resizeitems 0.8s infinite cubic-bezier(0, 0, 0.2, 1);;
}

.loader-item:nth-child(1) {
    transform: rotate(0deg) translate(25px);
    animation-delay: 0s;
    transform: rotate(0deg);
    bottom: 50px;
}

.loader-item:nth-child(2) {
    transform: rotate(calc(360deg / 8 * 1)) translate(25px);
    animation-delay: 0.1s;
    transform: rotate(calc(360deg / 8 * 1));
    bottom: calc(61px * 0.7071067812);
    left: calc(61px * 0.7071067812);
}

.loader-item:nth-child(3) {
    transform: rotate(calc(360deg / 8 * 2)) translate(25px);
    animation-delay: 0.2s;
    transform: rotate(calc(360deg / 8 * 2));
    left: 50px;
}

.loader-item:nth-child(4) {
    transform: rotate(calc(360deg / 8 * 3)) translate(25px);
    animation-delay: 0.3s;
    transform: rotate(calc(360deg / 8 * 3));
    left: calc(61px * 0.7071067812);
    top: calc(61px * 0.7071067812);
}

.loader-item:nth-child(5) {
    transform: rotate(calc(360deg / 8 * 4)) translate(25px);
    animation-delay: 0.4s;
    transform: rotate(calc(360deg / 8 * 4));
    top: 50px;
}

.loader-item:nth-child(6) {
    transform: rotate(calc(360deg / 8 * 5)) translate(25px);
    animation-delay: 0.5s;
    transform: rotate(calc(360deg / 8 * 5));
    right: calc(61px * 0.7071067812);
    top: calc(61px * 0.7071067812);
}

.loader-item:nth-child(7) {
    transform: rotate(calc(360deg / 8 * 6)) translate(25px);
    animation-delay: 0.6s;
    transform: rotate(calc(360deg / 8 * 6));
    right: 50px
}

.loader-item:nth-child(8) {
    transform: rotate(calc(360deg / 8 * 7)) translate(25px);
    animation-delay: 0.7s;
    transform: rotate(calc(360deg / 8 * 7));
    right: calc(61px * 0.7071067812);
    bottom: calc(61px * 0.7071067812);
}

@keyframes resizeitems {
    from {
        scale: 0;
    }

    to {
        scale: 1;
    }
}

/* big loader end */


/*small loader start*/
.loader-items-holder-small {
    width: 100%;
    height: 100%;
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: center;
    display: none;
    background-color: #78787845;
}

.loader-items-holder-small-flex {
    width: 40px;
    height: 40px;
    border-radius: 50%; 
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.loader-item-small {
    width: 7px;
    height: 7px;
    background-color: #0e8fc1;
    border-radius: 50%;
    position: absolute;
    animation: resizeitemssmall 0.8s infinite cubic-bezier(0, 0, 0.2, 1);;
}

.loader-item-small:nth-child(1) {
    transform: rotate(0deg) translate(25px);
    animation-delay: 0s;
    transform: rotate(0deg);
    bottom: 33px;
}

.loader-item-small:nth-child(2) {
    transform: rotate(calc(360deg / 8 * 1)) translate(25px);
    animation-delay: 0.1s;
    transform: rotate(calc(360deg / 8 * 1));
    bottom: calc(41px * 0.7071067812);
    left: calc(41px * 0.7071067812);
}

.loader-item-small:nth-child(3) {
    transform: rotate(calc(360deg / 8 * 2)) translate(25px);
    animation-delay: 0.2s;
    transform: rotate(calc(360deg / 8 * 2));
    left: 33px;
}

.loader-item-small:nth-child(4) {
    transform: rotate(calc(360deg / 8 * 3)) translate(25px);
    animation-delay: 0.3s;
    transform: rotate(calc(360deg / 8 * 3));
    left: calc(41px * 0.7071067812);
    top: calc(41px * 0.7071067812);
}

.loader-item-small:nth-child(5) {
    transform: rotate(calc(360deg / 8 * 4)) translate(25px);
    animation-delay: 0.4s;
    transform: rotate(calc(360deg / 8 * 4));
    top: 33px;
}

.loader-item-small:nth-child(6) {
    transform: rotate(calc(360deg / 8 * 5)) translate(25px);
    animation-delay: 0.5s;
    transform: rotate(calc(360deg / 8 * 5));
    right: calc(41px * 0.7071067812);
    top: calc(41px * 0.7071067812);
}

.loader-item-small:nth-child(7) {
    transform: rotate(calc(360deg / 8 * 6)) translate(25px);
    animation-delay: 0.6s;
    transform: rotate(calc(360deg / 8 * 6));
    right: 33px
}

.loader-item-small:nth-child(8) {
    transform: rotate(calc(360deg / 8 * 7)) translate(25px);
    animation-delay: 0.7s;
    transform: rotate(calc(360deg / 8 * 7));
    right: calc(41px * 0.7071067812);
    bottom: calc(41px * 0.7071067812);
}

@keyframes resizeitemssmall {
    from {
        scale: 0;
    }

    to {
        scale: 1;
    }
}
/*small loader end*/


/*
#################
MAX-WIDTH: 960PX
#################
*/
  
@media screen and (max-width: 1920px) {
    div#places-objects {
        grid-template-columns: repeat(auto-fill, minmax(min(290px, 100%), 1fr));
        row-gap: 30px;
    }
}

@media screen and (max-width: 1366px) {

    .filters-section {
        height: 65px;
    }
}

@media (max-width:1099px){
  
    .full-header-hight {
      width: 90%;
    }
    
  }

@media  screen and (max-width: 960px) {
    #top-header {
        position: fixed;
        width: 100%;
        top: 0;
        left: 0;
        background-color: #fff;
    }

    #top-header > div {
        width: 90%;
    }

    .filters-section-inner {
        left: 5%;
    }

    main {
        width: 90%;
        margin-top: 125px;
    }

    #places-objects {
        grid-column-gap: 20px;
        grid-row-gap: 0px;
    }


    .filters-section {
        position: fixed;
        top: 60px;
        left: 0;
        background-color: #fff;
        width: 100%;
        max-width: 100%;
        align-items: center;
        z-index: 4;
    }

    .popup-wrapper .popup {
        left: 5%;
    }

}


@media  screen and (max-width: 680px) {
    figure {
        width: 100%;
        margin: 0px auto;
    }

    div#places-objects {
        row-gap: 20px;
    }

}

@media  screen and (max-width: 480px) {

    #places .filters-section {
        padding: 0 5px !important;
        box-shadow: 0 4px 4px #d0d0d0;
        height: 65px;
        border-radius: 0px 0px 10px 10px;
    }

    #places .obj-filter {
        font-size: 14px;
        height: 40px;
        border-radius: 20px;
    }

    #places .obj-filter i{
        height: 30px;
        width: 30px;
        border-radius: 15px;
    }

    .popup-wrapper .popup {
        left: 0px;
    }

    #places > #places-objects-wrapper {
        padding: 0 5px;
    }

    .filters-section-inner {
        left: 0;
    }


    figure figcaption{
        font-size: 14px;
    }

    #btn-toggle-sidebar {
        width: 30px;
        height: 30px;
        background-color: #fff5;
        font-size: 18px;
    }

    .modal__container {
        width: 90%;
        padding: 10px;
    }

    #places .ctp-countries_2:before {
        padding: 0px 0px 0px 10px;
    }

    #places .ctp-maps_2:before {
        padding: 0px 0px 0px 10px;
    }

    #places .ctp-categories_2:before {
        padding: 0px 0px 0px 10px;
    }

    #places .obj-filter-text {
        font-size: 14px;
        padding: 0 10px 0 10px;		
    }

    body.preload {
        padding: 10px 0px 0px 0px;
    }

}

@media  screen and (max-width: 320px) {

    #places .ctp-countries_2:before {
        display: none;
        padding: 0 0px 0 0px;
    }

    #places .ctp-maps_2:before {
        display: none;
        padding: 0 0px 0 0px;
    }

    #places .ctp-categories_2:before {
        display: none;
        padding: 0 0px 0 0px;
    }

    #places .obj-filter {
        font-size: 14px;
        height: 30px;
        border-radius: 15px;
    }

    #places .obj-filter-text {
        font-size: 14px;
        padding: 0 15px 0 15px;		
    }

    main {
        width: 95%;
    }
    
    .filters-section-inner {
        width: 95%;
    }

}