/*
Theme Name: Flatsome Child
Description: This is a child theme for Flatsome Theme
Author: UX Themes
Template: flatsome
Version: 3.0
Text Domain: flatsome-child
*/

/*************** ADD CUSTOM CSS HERE.   ***************/
:root {
    --primary-color: #e95727;
}

/* Lightbox styles for pdf iframe */
.lightbox-content.pdf-lightbox {
    height: 100%;
}

.pdf-lightbox {
    height: 100% !important;
}

.pdf-lightbox iframe {
    height: 100%;
}

.mfp-content:has(.pdf-lightbox) {
    height: 90%;
}

.dark .widget .highlight-on-hover:hover, .dark .highlight-on-hover:hover {
    color: var(--primary-color);
}

@media only screen and (max-width: 48em) {
    /*************** ADD MOBILE ONLY CSS HERE  ***************/


}

.single-salon .header.transparent .header-bg-image,
.page-template-salons-map .header.transparent .header-bg-image {
    background-image: url(https://hai.dev.komanda.dev/wp-content/uploads/2022/09/1.jpeg) !important;
    background-position: center 43%;
    background-size: cover;
}
.header.transparent .header-bg-color {
    background-color: rgba(0, 0, 0, 0.494);
}
.single-salon .stuck #masthead,
.page-template-salons-map .stuck #masthead {
    background: none;
}

/*.single-salon .header-main,
.page-template-salons-map .header-main {
    height: 165px;
}
.single-salon .header .flex-row,
.page-template-salons-map .header .flex-row {
    align-items: flex-start;
}*/
/*.nav-dark .nav > li > a {
    color: hsla(0, 0%, 100%, .8);
}
.nav-dark .nav > li.active > a {
    color: #fff;
}*/

.single-salon #content h1 {
    font-size: 33px;
    line-height: 50px;
    font-weight: 700;
    text-decoration: underline;
}
.single-salon #content h2 {
    font-size: 24px;
    line-height: 36px;
    font-weight: 700;
}
.single-salon #content h3 {
    font-size: 18px;
    line-height: 28px;
    font-weight: 700;
}
.single-salon #content .container {
    max-width: 1700px;
    width: auto;
    margin: 0 auto 60px;
    padding-top: calc(90px + 60px);

    display: grid;
    grid-template-columns: 1fr 1fr;
    /*grid-template-rows: auto auto;*/
    grid-template-areas:
        "block1 block2"
        "block3 block2";
    gap: 10px;
}

#block1 {
    grid-area: block1;
    grid-column: 1 / 2; /* блок 1 в первом столбце */
}

#block2 {
    grid-area: block2;
    grid-column: 2 / 3; /* блок 2 во втором столбце */
}

#block3 {
    grid-area: block3;
    grid-column: 1 / 2; /* блок 3 находится под блоком 1, занимает первый столбец */
}

#content .container.wide {
    max-width: none;
    width: auto;
    margin: 0 120px 60px;
    padding-top: calc(90px + 60px);
}

.single-salon #main {
    /*background: url("assets/images/background.jpg");*/
}

#content .container.wide h1 {
    font-size: 33px;
    line-height: 50px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 50px;
}

.single-salon #content .block {
    padding: 10px;
    box-sizing: border-box;
    max-width: 100%;
    overflow: hidden;
}

#block1 .flex-row {
    align-items: flex-start;
    padding-top: 15px;
}

#block1 .rating-wrapper {
    display: none;
}

.working-schedule {
    display: grid;
    grid-template-columns: 60% 40%;
    border: 1px solid #ECECEC;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 30px;
}
.working-schedule .working-schedule-title {
    background-color: #e95727;
    color: #fff;
    font-weight: 700;
}
.working-schedule .cell {
    padding: 5px 15px;
    border-top: 1px solid #ECECEC;
}
.specialist {
    font-size: 16px;
    line-height: 16px;
    font-weight: 600;
    color: #e95727;
    padding-bottom: 7px;
    padding-top: 7px;
}
.specialist img {
    width: 16px;
    height: 16px;
    top: -1px;
    position: relative;
    margin-right: 7px;
}

.salon-description {
    padding-right: 30px;
}

.tabs-wrapper {
}
.tabs-nav {
    display: flex;
    background: #fff;
}
.tabs-nav button {
    padding: 10px 20px 5px 20px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    font-weight: 400;
    transition: background 0.3s;
    margin: 0;
    display: block;
    border-bottom: 1px solid #ECECEC;
    line-height: 1.2em;
}
.tabs-nav button:hover,
.tabs-nav button.active {
    border-bottom: 1px solid #e95727;
}
.tabs-content > .tab-panel {
    display: none;
    padding: 20px 0;
    background: #fff;
}
.tabs-content > .tab-panel.active {
    display: block;
}

.salons .tabs-nav {
    justify-content: center;
    margin-bottom: 30px;
    gap: 5px;
}
.salons .tabs-nav button {
    padding: 0 15px;
    background: none;
    border: 2px solid transparent;
    cursor: pointer;
    font-size: 20px;
    font-weight: 600;
    margin: 0;
    display: block;
    line-height: 42px;
    color: rgba(102, 102, 102, 0.85);
}
.salons .tabs-nav button:hover,
.salons .tabs-nav button.active {
    border: 2px solid var(--primary-color);
    border-radius: 99px;
    color: var(--primary-color);
}
.tabs-content.salon > .tab-panel {
    display: none;
}

.toggle-label {
    cursor: pointer;
    user-select: none;
    text-decoration: none;
}
.toggle-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.1s ease-in-out, padding 0.1s;
    padding: 0 10px;
}
.toggle-label:focus + .toggle-content,
.toggle-label:hover + .toggle-content {
    max-height: 300px; /* Задай нужную высоту */
    padding: 10px;
    border: 1px solid #ddd;
    background: #f9f9f9;
}

.rating-wrapper {
    display: flex
;
    justify-content: flex-end;
    align-items: center;
    gap: 5px;
    margin-bottom: 20px;
}
.rating-wrapper p {
    font-size: 15px;
    line-height: 26px;
    font-weight: 400;
    margin: 0;
}
.rating-wrapper a {
    background: #E95727;
    border-radius: 30px;
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    padding: 9px 35px;
    margin-left: 15px;
}
.rating-wrapper a:hover {
    color: #fff;
    background: #ba461f;
}
.rating-wrapper a i {
    margin-right: 15px;
    top: 2px;
}
.text-underline {
    text-decoration: underline;
}

#map {
    height: 550px;
    width: 100%;
}
.search-wrapper {
    position: relative;
    max-width: 840px;
    width: 100%;
    margin: 50px auto;
}
.search-wrapper i {
    position: absolute;
    right: 15px;
    bottom: 26px;
}
.page-template-salons-map .search-wrapper i {
    bottom: 11px;
}
#search-box {
    padding: 15px;
    font-size: 16px;
    color: rgba(118, 118, 118, 1);
    border: 1px solid rgba(0, 0, 0, 0.09);
    border-radius: 99px;
    background: rgba(0, 0, 0, 0.03);
    display: block;
    position: relative;
}

.review-pagination-list {
    text-align: center;
}
.review-pagination-item {
    display: inline;
    padding: 5px 10px;
    margin: 0 5px;
    border-radius: 5px;
    border: 1px solid #ECECEC;
    cursor: pointer;
}
.review-pagination-item--active {
    border: 1px solid #e95727;
    background: #FFF;
    color: #e95727;
    cursor: auto;
}
.review-pagination-item--prev {
    transform: rotate(180deg);
}

.services {
    padding: 15px;
    border: 1px solid #ECECEC;
    border-radius: 12px;
}
.services-tab-nav {
    display: flex;
}
.services-filters {
    display: flex;
    align-items: center;
    padding-top: 5px;
}
.services-filters fieldset {
    margin-bottom: 0;
}
.services-filters .radio-button {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    margin-right: 15px;
    font-size: 14px;
    font-weight: 400;
    color: #000;
    gap: 10px;
}
.services-filters .radio-button input[type="radio"] {
    display: none;
}
.services-filters .custom-radio {
    width: 16px;
    height: 16px;
    border: 1px solid #000;
    border-radius: 50%;
    position: relative;
}
.services-filters .custom-radio::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 4px;
    height: 4px;
    background-color: #fff;
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.2s ease-in-out;
}
.services-filters .radio-button input[type="radio"]:checked + .custom-radio {
    border: 8px solid var(--primary-color);
}
.services-filters .radio-button input[type="radio"]:checked + .custom-radio::after {
    transform: translate(-50%, -50%) scale(1);
}
.services-filters .promo-checkbox {
    display: inline-flex;
    align-items: center;
    border: 2px solid #e84a27; /* оранжевая рамка */
    padding: 8px 14px;
    border-radius: 8px;
    cursor: pointer;
    font-family: sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: #000;
    gap: 8px;
    transition: border-color 0.2s ease;
}
.services-filters .promo-checkbox input[type="checkbox"] {
    display: none;
}
.services-filters .custom-check {
    width: 16px;
    height: 16px;
    border: 1px solid #000;
    border-radius: 50%;
    position: relative;
    box-sizing: border-box;
    transition: all 0.2s ease;
}
.services-filters .custom-check::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 4px;
    height: 4px;
    background: white;
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.2s ease;
}
.services-filters .promo-checkbox input[type="checkbox"]:checked + .custom-check {
    border: 8px solid var(--primary-color);
}
.services-filters .promo-checkbox input[type="checkbox"]:checked + .custom-check::after {
    transform: translate(-50%, -50%) scale(1);
}

.services-title {
    margin-top: 20px;
    margin-bottom: 5px;
}
.services-description {
    margin-top: 13px;
    margin-bottom: 13px;
    color: #9A9A9A;
}
.services-description:after {
    display: block;
    content: "";
    clear: both;
}
.services .tabs-nav {
    justify-content: space-between;
}
.services-panel .service-wrapper {
    border: 1px solid #ECECEC;
    border-radius: 12px;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
}

.service-content {
    width: 75%;
}
.service-price {
    display: flex;
    width: 25%;
    text-transform: uppercase;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.service-price .regular-price {
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 0.35px;
}
.service-price.sale .regular-price {
    font-size: 11px;
    font-weight: 400;
    text-decoration: line-through;
}
.service-price .sale-price {
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 0.35px;
    color: #e95727;
}
.services-panel .service-wrapper h3 {
    margin-top: 15px;
    margin-bottom: 15px;
}

.salon-slider-wrap {
    display: flex;
    /*justify-content: space-between;*/
    gap: 15px;
    margin-bottom: 15px;
    max-height: 540px;
}
.salon-slider-main {
    width: 80%;
}
.salon-slider-nav {
    margin-bottom: -15px;
}
.salon-slider-nav .slick-slide:not(:last-child) {
    margin-bottom: 15px;
}
.salon-slider {
    width: 100%;
    height: 100%;
}
.salon-slider-thumb {
    width: 160px;
    overflow: hidden;
}
.salon-slider-thumb .slick-vertical .slick-slide {
    height: 170px;
}
/*
.salon-slider-thumb .slick-track {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
*/
.salon-slider-thumb .slick-track:before, .salon-slider-thumb .slick-track:after {
    display: none;
}

.slick-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.slick-list {
    height: 100%;
    padding: 0 !important;
}
.slick-track {
    height: 100%;
}

.district-title {
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.35px;
    color: rgba(102, 102, 102, 0.85);
    border-bottom: 1px solid #DDDDDD;
    padding-bottom: 10px;
    margin-bottom: 30px;
}
.district-wrapper {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2%;
    padding: 0;
    justify-items: stretch;
}
.salon-item {
    background: #fff;
    box-shadow: 0 15px 83px 0 rgba(0, 0, 0, 0.11);
    text-align: center;
    margin-bottom: 3%;
}
.salon-item img {
    width: 100%;
    height: 160px;
    object-fit: cover;
}
.salon-links {
    padding: 15px 30px 20px;
    text-align: center;
}
.salon-link {
    font-size: 16px;
    font-weight: 700;
    line-height: 26px;
    display: block;
}
.salon-link i {
    color: var(--primary-color);
    top: 2px;
    left: -2px;
}
.salon-route {
    border: 1px solid rgba(0, 0, 0, 0.05);
    background: rgba(221, 221, 221, 1);
    border-radius: 99px;
    font-size: 16px;
    font-weight: 700;
    color: #222222;
    display: block;
    line-height: 36px;
    text-transform: uppercase;
    letter-spacing: 0.47px;
    margin-top: 10px;
}
.gm-style .salon-item-img {
    max-width: 375px;
    width: 100%;
    max-height: 160px;
    object-fit: cover;
    display: block;
    margin: 0 auto;
}
.salon-description {
    margin-top: 50px;
}

@media (max-width: 1200px) {
    .single-salon #content .container,
    .page-template-salons-map #content .container.wide {
        margin: 0 0 30px;
    }

    .single-salon #content .container {
        display: flex;
        flex-direction: column;
    }

    .single-salon #content .block {
        padding: 0;
    }

    #block1 .rating-wrapper {
        display: flex;
        justify-content: center;
        align-items: center;
        margin-bottom: 70px;
        position: relative;
    }

    #block1 .rating-wrapper a {
        margin-left: 0;
        position: absolute;
        top: 50px;
        left: 15%;
        right: 15%;
        text-align: center;
    }

    #block2 .rating-wrapper {
        display: none;
    }
    .salon-slider-main {
        width: 100%;
    }

    .salon-slider-thumb {
        display: none;
    }

    .search-wrapper {
        margin: 30px auto;
    }

    .district-wrapper {
        grid-template-columns: repeat(2, 1fr);
    }

    .salons .tabs-nav {
        flex-direction: column;
    }
}

@media (max-width: 849px) {
    #content .container.wide h1 {
        margin-bottom: 30px;
    }

    #block1, #block2, #block3 {
        grid-column: 1 / 2; /* все блоки занимают один столбец */
    }
    .tabs-nav {
        flex-direction: column;
    }
    .salon-description {
        padding-right: 0;
    }

    /*
    .small-5, .small-7 {
        width: 100%;
    }
    */
    /*
    .service-price {
        width: 100%;
    }
    */
    .service-price .regular-price,
    .service-price .sale-price {
        font-size: 14px;
    }


    .single-salon #content h1 {
        font-size: 25px;
        line-height: 35px;
    }

    .single-salon #content h2 {
        font-size: 20px;
        line-height: 29px;
    }

    .single-salon #content h3 {
        font-size: 14px;
        line-height: 23px;
    }

    .services-description {
        font-size: 14px;
    }

    .toggle-label {
        font-size: 14px;
    }

    #map {
        height: 340px;
    }

    .district-wrapper {
        grid-template-columns: 1fr;
    }

    .salons .tabs-nav {
        justify-content: flex-start;
        flex-wrap: wrap;
    }
    .district-title {
        margin-bottom: 15px;
    }
    .salon-link {
        text-align: left;
    }
}
