/*
 Theme Name:   Patronage Kadence Child
 Theme URI:    https://example.com/kadence-child/
 Description:  Kadence Child Theme for Patronage
 Author:       V. Karpov
 Author URI:   https://vkweb.ru/
 Template:     kadence
 Version:      1.0.2
 Tags:         customizable, modern, responsive-layout, gutenberg, header builder, footer builder
 Text Domain:  kadencechild
*/

/* Theme customization starts here
-------------------------------------------------------------- */

.font-weight-bold {
	font-weight: bold;
}

.strong-form-inner .form-field label {
	margin-bottom: .6em;
}

.archive.category.category-blog .entry-header {
	margin-bottom: 2em;
}

/* Стили для страницы анкеты сиделки */
.ankets-header {
    margin-bottom: 30px;
}

.ankets-header .entry-title {
    color: var(--global-palette2);
    margin-bottom: 10px;
}

.ankets-subtitle {
    font-size: 1.1em;
    color: #666;
}

.ankets-main-wrapper {
    display: flex;
    gap: 40px;
    margin-bottom: 30px;
    align-items: flex-start;
}

.ankets-photo-section {
    flex: 0 0 350px;
}

.ankets-photo-img {
    border-radius: 8px;
    width: 100%;
    height: auto;
    max-width: 100%;
}

.ankets-info-section {
    flex: 1;
    /*min-width: 0;*/
    width: 100%;
}

.ankets-details {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 25px;
}

.ankets-info-grid {
    display: grid;
    /*grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));*/
    gap: 15px;
    margin-bottom: 25px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #e9ecef;
}

.info-item strong {
    color: #333;
}

.has-med-education {
    font-weight: bold;
    color: var(--global-palette2) ;
}

.no-med-education {
    color: #6c757d;
}

.ankets-prices {
    margin-bottom: 25px;
}

.ankets-prices h3 {
    margin-bottom: 15px;
    color: var(--global-palette2);
}

.prices-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.price-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 15px;
    background: white;
    border-radius: 6px;
    border-left: 4px solid var(--global-palette2);
}

.price-label {
    color: #666;
}

.price-value {
    font-weight: bold;
    color: var(--global-palette2);
}

.ankets-categories {
    margin-top: 20px;
}

.categories-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.category-tag {
    background: var(--global-palette2);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.9em;
}

.ankets-contacts {
    background: white;
    border: 2px solid var(--global-palette2);
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 25px;
}

.contacts-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.phone-section {
    font-size: 1.2em;
}

.phone-link {
    color: var(--global-palette2);
    text-decoration: none;
    font-weight: bold;
    font-size: 1.3em;
}

.phone-link:hover {
    text-decoration: underline;
}

.add-to-favorites {
    background: var(--global-palette2);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s;
}

.add-to-favorites:hover {
    background: var(--global-palette1);
    opacity: 0.9;
}

.ankets-reviews {
    margin-bottom: 30px;
}

.reviews-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.reviews-header h3 {
    color: var(--global-palette2);
}

.ratings-container {
    display: inline-block;
}

/* Стили для горизонтального отображения рейтинга */
.ratings-container .post-ratings {
    display: inline-block;
}

.ratings-container .post-ratings img {
    display: inline-block;
    margin-right: 2px;
}

.ankets-description {
    margin-bottom: 40px;
}

.ankets-description h3 {
    color: var(--global-palette2);
    margin-bottom: 15px;
}

.description-content {
    line-height: 1.6;
}

.similar-ankets {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid #dee2e6;
}

.similar-ankets h3 {
    color: var(--global-palette2);
    margin-bottom: 20px;
}

.similar-ankets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.similar-anket {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.similar-anket:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border-color: var(--global-palette2);
}

.similar-photo {
    margin-bottom: 15px;
}

.similar-photo img {
    border-radius: 6px;
    width: 100%;
    object-fit: cover;
}

.similar-anket h4 {
    margin-bottom: 10px;
}

.similar-anket h4 a {
    color: var(--global-palette2);
    text-decoration: none;
}

.similar-anket h4 a:hover {
    color: var(--global-palette1);
}

.similar-info div {
    margin-bottom: 5px;
    color: #666;
}

/* Адаптивность */
@media (max-width: 768px) {
    .ankets-main-wrapper {
        flex-direction: column;
        gap: 20px;
    }
    
    .ankets-photo-section {
        flex: none;
        text-align: center;
        margin: 0 auto;
    }
    
    .ankets-photo-img {
        /*max-width: 250px;*/
    }
    
    .contacts-wrapper {
        flex-direction: column;
        text-align: center;
    }
    
    .info-item {
        flex-direction: column;
        text-align: center;
        gap: 5px;
    }
    
    .price-item {
        flex-direction: column;
        text-align: center;
        gap: 5px;
    }
    
    .reviews-header {
        flex-direction: column;
        text-align: center;
    }
    
    .prices-grid {
        grid-template-columns: 1fr;
    }
    
    .ankets-info-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .ankets-details {
        padding: 15px;
    }
    
    .ankets-contacts {
        padding: 15px;
    }
    
    .similar-ankets-grid {
        grid-template-columns: 1fr;
    }
    
    .phone-link {
        font-size: 1.1em;
    }
    
    .ankets-photo-img {
        max-width: 100%;
    }
    
    .ankets-header {
        text-align: left;
    }
    
    .ankets-header .entry-title {
        font-size: 1.5em;
    }
}
/* Стили для хлебных крошек */
.ankets-breadcrumbs {
    margin: 15px 0 25px 0;
    font-size: 0.9em;
}

.breadcrumbs.custom-breadcrumbs,
.yoast-breadcrumbs,
.rank-math-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
}

.breadcrumbs.custom-breadcrumbs a,
.yoast-breadcrumbs a,
.rank-math-breadcrumb a {
    color: var(--global-palette2);
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumbs.custom-breadcrumbs a:hover,
.yoast-breadcrumbs a:hover,
.rank-math-breadcrumb a:hover {
    color: var(--global-palette1);
    text-decoration: underline;
}

.breadcrumbs-separator {
    color: #666;
    margin: 0 5px;
}

.breadcrumbs.custom-breadcrumbs .current,
.yoast-breadcrumbs span[aria-current="page"],
.rank-math-breadcrumb .last {
    color: #666;
}

/* Адаптивность для хлебных крошек */
@media (max-width: 768px) {
    .ankets-breadcrumbs {
        margin: 10px 0 20px 0;
    }
    
    .breadcrumbs.custom-breadcrumbs,
    .yoast-breadcrumbs,
    .rank-math-breadcrumb {
        font-size: 0.85em;
    }
}

@media (max-width: 480px) {
    .ankets-breadcrumbs {
        margin: 8px 0 15px 0;
    }
}

.site-reviews-section {
	margin-bottom: 2em;
	padding-bottom: 2em;
	border-bottom: solid 1px #eee;
}

.glsr-review-author {
	font-weight: bold;
}

.similar-anket-link {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.similar-anket-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.similar-anket-link:hover .similar-anket {
    background-color: #f8f9fa;
}


.user-favorites-item p {
    margin: 0!important;
    padding: 0!important;
    line-height: 0!important;
}

.user-favorites-item button {
    margin: 0 auto;
}


.user-favorites-item  .simplefavorite-button {
    width: 260px;
}

.user-favorites-item {
margin-bottom: 1.5em;
    padding-bottom: 1.5em;
    border-bottom: solid 1px var(--global-palette7);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-content: center;
    flex-wrap: wrap;
}

.single-content .user-favorites-item img {
    border-radius: 8px;
    display: inline-block;
    margin: 0 auto;
}

.user-favorites-item  a {
    text-decoration: none;
    font-size: 1.3em;
    font-weight: bold;
    line-height: 3;
}

.favorites-counter.heart-with-number {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    padding: 5px;
    transition: all 0.3s ease;
}

.heart-container {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.heart-container .fas.fa-heart {
    font-size: 24px;
}

.heart-container .count {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 11px;
    font-weight: bold;
    color: white;
    text-shadow: 0 0 2px rgba(0,0,0,0.5);
}

.favorites-counter:hover .fas.fa-heart {
    transform: scale(1.1);
}

.inner-link-style-normal a:not(.button){
    text-decoration: none;
}

.city-taxonomy-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
}

.city-search-container {
    margin-bottom: 30px;
}

.city-search-input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--global-palette2);
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.city-search-input:focus {
    border-color: var(--global-palette2);
    outline: none;
}

.city-region-group {
    margin-bottom: 30px;
}

.city-region-title {
    margin-bottom: 15px;
    padding: 10px 0;
    border-bottom: 2px solid #eee;
}

.region-link {
    font-size: 24px;
    text-decoration: none;
    color: #333;
    transition: color 0.3s ease;
}

.region-link:hover {
    color: var(--global-palette2);
}

.city-region-title .city-count {
    font-size: 18px;
    color: #666;
    font-weight: normal;
}

.city-cities-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-left: -7.5px;
    margin-right: -7.5px;
}

.city-item {
    flex: 1 0 calc(33.333% - 30px);
    min-width: 200px;
    margin: 0 7.5px 15px;
}

.city-link {
    display: block;
    padding: 12px 15px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
    text-align: center;
}

.city-link:hover {
    background: var(--global-palette2);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.city-link .city-count {
    color: #666;
    font-size: 14px;
}

.city-link:hover .city-count {
    color: rgba(255,255,255,0.8);
}

/* Адаптивность */
@media (max-width: 768px) {
    .city-item {
        flex: 1 0 calc(50% - 30px);
    }

    .region-link {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .city-item {
        flex: 1 0 100%;
    }

    .city-cities-grid {
        gap: 10px;
    }

    .city-taxonomy-container {
        padding: 10px;
    }
}

/* Анкета в архиве города */


/* Размещение информации на фотографии */
article.loop-entry.ankets {
    position: relative;
}

/* Опыт и образование - внизу фото */
article.loop-entry.ankets .sitter-field-group {
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    display: flex;
    gap: 15px;
    background: rgba(255, 255, 255, 0.8);
    padding: 2px;
    border-radius: 6px;
    z-index: 2;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(5px);
    justify-content: center;
}

/* Стили для полей внутри */
article.loop-entry.ankets .sitter-field {
    display: flex;
    align-items: center;
    gap: 5px;
}

article.loop-entry.ankets .field-label {
    font-weight: 500;
    color: var(--global-palette6);
    font-size: 12px;
}

article.loop-entry.ankets .field-value {
    color: var(--global-palette3);
    font-weight: 600;
    font-size: .9em;
}

article.loop-entry.ankets .medical-education {
    color: var(--global-palette1);
}

/* Цены под фото */
article.loop-entry.ankets .sitter-prices {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-top: 12px;
    padding: 0 5px;
}

article.loop-entry.ankets .sitter-price-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 4px;
    background: var(--global-palette8);
    border-radius: 6px;
    text-align: center;
    border: 1px solid var(--global-palette7);
}

article.loop-entry.ankets .price-label {
    font-size: .9em;
    color: var(--global-palette6);
    margin-bottom: 3px;
    line-height: 1.1;
    font-weight: 500;
}

article.loop-entry.ankets .price-value {
    font-weight: 700;
    color: var(--global-palette1);
    font-size: .95em;
    line-height: 1.1;
}

/* Адаптивность */
@media (max-width: 768px) {
    article.loop-entry.ankets .sitter-field-group {
        padding: 6px 8px;
        gap: 12px;
    }
    
    article.loop-entry.ankets .sitter-prices {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }
    
    article.loop-entry.ankets .field-label,
    article.loop-entry.ankets .field-value {
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    article.loop-entry.ankets .sitter-field-group {
        top: 5px;
        left: 5px;
        right: 5px;
        padding: 2px;
        gap: 8px;
    }
    
    article.loop-entry.ankets .sitter-prices {
        grid-template-columns: 1fr;
    }
    
    article.loop-entry.ankets .sitter-price-item {
        flex-direction: row;
        justify-content: space-between;
        padding: 6px 10px;
    }
}
article.loop-entry.ankets .entry-summary {
    color: var(--global-palette6);
}

.eael-grid-post-holder {
    border: none!important;
}

/* Фильтры архива города --- */
/* Стили для фильтров анкет --- */
.ankets-filters-container {
    background: var(--global-palette9);
    padding: 0;
    margin: 30px auto 30px;
    border-radius: 12px;
    border: 1px solid var(--global-palette6);
    overflow: hidden;
    max-width: 1290px;
}

/* Отступ от hero блока */
.site-main .content-container, 
.site-main .entry-content, 
.site-main .page-content,
.archive .content-area {
    margin-top: 3em;
}

.ankets-filters-wrapper {
    padding: 24px;
}

.ankets-filter-form {
    width: 100%;
}

.filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin-bottom: 20px;
    align-items: flex-start;
}

.filter-row:last-child {
    margin-bottom: 0;
}

.filter-group {
    flex: 1;
    min-width: 180px;
    display: flex;
    flex-direction: column;
    min-height: 72px;
}

.filter-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--global-palette4);
    font-size: 14px;
    line-height: 1.3;
}

.filter-select,
.price-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--global-palette6);
    border-radius: 6px;
    background: white;
    color: var(--global-palette3);
    font-size: 14px;
    line-height: 1.4;
    transition: all 0.2s ease;
    height: 42px;
    box-sizing: border-box;
}

.price-input {
    border-radius: 6px;
}

.filter-select:focus,
.price-input:focus {
    outline: none;
    border-color: var(--global-palette1);
    box-shadow: 0 0 0 3px rgba(4, 159, 130, 0.1);
}

/* Стили для чекбокса */
.checkbox-group {
    justify-content: flex-end;
    min-height: 72px;
}

.filter-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 8px 0;
    height: 100%;
}

.checkbox-label {
    margin: 0;
    font-weight: 500;
    color: var(--global-palette4);
    cursor: pointer;
    font-size: 14px;
    line-height: 1.3;
}

.filter-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--global-palette1);
    flex-shrink: 0;
    margin: 0;
}

/* Стили для цены */
.price-filter {
    min-width: 260px;
}

.price-slider-container {
    margin-top: 0;
}

.price-inputs {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.price-input {
    text-align: center;
    padding: 8px 10px;
}

.price-separator {
    color: var(--global-palette6);
    font-weight: 500;
    flex-shrink: 0;
}

.price-slider {
    padding: 0 5px;
}

.ui-slider {
    position: relative;
    background: var(--global-palette7);
    height: 4px;
    border-radius: 2px;
    margin: 12px 0;
}

.ui-slider-range {
    background: var(--global-palette1);
    height: 100%;
    border-radius: 2px;
}

.ui-slider-handle {
    position: absolute;
    width: 18px;
    height: 18px;
    background: var(--global-palette1);
    border-radius: 50%;
    border: 2px solid white;
    cursor: pointer;
    top: -7px;
    margin-left: -9px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    transition: all 0.2s ease;
}

.ui-slider-handle:hover {
    transform: scale(1.1);
    box-shadow: 0 3px 8px rgba(0,0,0,0.2);
}

.ui-slider-handle:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(4, 159, 130, 0.3);
}

/* Кнопки - ИСПРАВЛЕННЫЕ */
.filter-buttons {
    display: flex;
    gap: 12px;
    min-width: auto;
    justify-content: flex-end;
    align-items: flex-end;
    min-height: 72px;
}

.filter-submit {
    padding: 12px 32px;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    height: 51px;
    background: var(--global-palette1);
    color: white;
    white-space: nowrap;
    min-width: 140px;
}

.filter-submit:hover {
    background: var(--global-palette2);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(4, 159, 130, 0.3);
}

.filter-reset {
    padding: 8px 20px;
    border: 1px solid var(--global-palette6);
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    height: 51px;
    background: transparent;
    color: var(--global-palette6);
    white-space: nowrap;
    text-decoration: none;
    min-width: 90px;
}

.filter-reset:hover {
    background: var(--global-palette7);
    color: var(--global-palette4);
    border-color: var(--global-palette5);
    transform: translateY(-1px);
}

/* Кнопка загрузки */
.load-more-btn {
    background: var(--global-palette1);
    color: white;
    display: block;
    margin: 30px auto;
    padding: 12px 30px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.load-more-btn:hover:not(:disabled) {
    background: var(--global-palette2);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(4, 159, 130, 0.3);
}

.load-more-btn:disabled {
    background: var(--global-palette6);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.load-more-container {
    text-align: center;
    margin: 30px 0;
}

.loading-spinner {
    color: var(--global-palette1);
    font-weight: 600;
}

.no-results,
.error {
    text-align: center;
    padding: 40px 20px;
    color: var(--global-palette6);
    font-size: 16px;
}

/* Адаптивность */
@media (max-width: 1200px) {
    .ankets-filters-container {
        margin: 30px 20px 30px;
    }
}

/* НАСТРОЙКИ ДЛЯ МОБИЛЬНЫХ (до 768px) */
@media (max-width: 768px) {
    .ankets-filters-wrapper {
        padding: 20px;
    }
    
    .filter-row {
        flex-direction: column;
        gap: 20px;
    }
    
    .filter-group {
        min-width: 100%;
        min-height: auto;
    }
    
    /* Кнопки в столбик на мобильных */
    .filter-buttons {
        flex-direction: column;
        gap: 10px;
        align-items: stretch;
        min-height: auto;
        margin-top: 10px;
    }
    
    .filter-submit,
    .filter-reset {
        width: 100%;
        min-width: auto;
        height: 44px;
    }
    
    .filter-submit {
        font-size: 16px;
    }
    
    .filter-reset {
        font-size: 14px;
        height: 42px;
    }
    
    .checkbox-group {
        justify-content: flex-start;
        min-height: auto;
    }
    
    .price-filter {
        min-width: 100%;
    }
}

/* НАСТРОЙКИ ДЛЯ БОЛЬШИХ ЭКРАНОВ (выше 768px) */
@media (min-width: 769px) {
    .filter-buttons {
        justify-content: flex-start;
        align-items: flex-end;
        display: flex;
        flex-direction: row;
    }
}

@media (max-width: 480px) {
    .ankets-filters-wrapper {
        padding: 16px;
    }
    
    .price-inputs {
        flex-direction: column;
        gap: 8px;
    }
    
    .price-separator {
        display: none;
    }
}

/* Анимации */
.ankets-filters-container,
.filter-select,
.filter-submit,
.filter-reset,
.load-more-btn {
    transition: all 0.3s ease;
}

/* Состояние загрузки */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

/* Улучшенная визуальная иерархия */
.filter-group:focus-within .filter-label {
    color: var(--global-palette1);
}

/* Плавное появление/скрытие фильтра районов */
.district-filter {
    transition: all 0.3s ease;
}

.entry-list-item__ajax {
    display: flex;
}

.entry.loop-entry, .entry {
    box-shadow: none!important;
}

/* --- Фильтры архива города */
/* --- Стили для фильтров анкет */


@media (max-width: 768px) {
    .footer-navigation .menu {
        display: grid!important;
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        /*flex-direction: column;*/
    }
}