/* static/css/detail.css */

.dfb{
    display: flex;
}

.jcsb{
    justify-content: space-between;
}

.service-item{
    display: flex;
    justify-content: space-between;
}

.plumber-main-info .fas,
.plumber-main-info .fa {
    color: gold;
}

.plumber-detail-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

/* Хлебные крошки */
.breadcrumb {
    margin-bottom: 30px;
    padding: 15px 20px;
    background: linear-gradient(to bottom right, #141414, #272727);
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.breadcrumb a {
    color: #007bff;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb .separator {
    margin: 0 10px;
    color: #adb5bd;
}

/* Основная информация */
.plumber-main-info {
    /*background: white;*/
    /*border-radius: 15px;*/
    /*padding: 40px;*/
    margin-bottom: 30px;
    display: flex;
    flex-direction: row;
    gap: 40px;
    /*box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);*/
}

.plumber-main-info .left-side {
    padding: 20px;
    background: linear-gradient(to bottom right, #141414, #272727);
    border-radius: 15px;
}

.plumber-avatar-large {
    position: relative;
    display: flex;
    justify-content: center;
}

.gallery {
    display: flex;
    flex-direction: row;
}

.gallery img {
    width: 50px;
    height: 75px;
}

.gallery .photo-landscape img{
    width: 100px;
    height: 75px;
}

.header-detail {
    background: linear-gradient(to bottom right, #141414, #272727);
    border-radius: 15px;
    padding: 15px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    margin-bottom: 25px;
}

.header-detail__left {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.plumber-avatar-large img {
    width: 400px;
    object-fit: cover;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.avatar-placeholder-large {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #adb5bd;
    border: 6px solid white;
    font-size: 80px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.verified-badge-large {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: #28a745;
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.plumber-info-detail {
    flex: 1;
    min-width: 0;
}

.plumber-info-detail h1 {
    margin: 0 0 20px 0;
    color: gold;
    font-size: 2.5rem;
}

.plumber-meta-detail {
    display: flex;
    flex-direction: row;
}

.plumber-meta-detail .data,
.plumber-meta-detail .cash {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 25px;
    background: linear-gradient(to bottom right, #141414, #272727);
    border-radius: 15px;
    padding: 15px;
    width: 50%;
}

.plumber-meta-detail .data {
    margin-right: 30px;
}

.plumber-meta-detail .mini-data span {
    margin-right: 10px;
    margin-bottom: 10px;
    padding: 5px;
    border-radius: 10px;
    border: solid 1px gold;
}

.plumber-meta-detail span .no-border {
    border: none;!important;
}

table tr {
    text-align: left;
    border-bottom: solid 1px gold;
}

table tr:last-child {
    border-bottom: none;
}

table th {
    padding-right: 10px;
}

table th:last-child {
    padding-right: 0;
}

table td {
    font-weight: 500;
}

.mini-data {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    font-size: 12px;
    font-weight: 700;
}

.home-text {
    font-weight: 700;
}

.second-data {
    display: flex;
    flex-direction: column;
}

.footer-detail {
    padding: 15px;
    background: linear-gradient(to bottom right, #141414, #272727);
    border-radius: 15px;
}

.footer-detail h4 {
    margin-bottom: 15px;
}

.plumber-meta-detail .second-data span {
    padding: 0 10px;
}

.second-data span {
    background: none;
    position: relative;
}

.second-data span:before {
    content: '';
    display: block;
    position: absolute;
    height: 5px;
    width: 5px;
    background: #ad0000;
    left: 0;
    top: 50%;
    transform: translate(0, -50%) rotate(45deg);
}

.home-count {

}

.home-text-icon {

}

.left-column .category-section .service-item{
    border-bottom: solid 1px #dbdbdb;
}

.left-column .category-section .service-item h5{
    margin-bottom: 0;
    font-weight: 500;
}

.left-column .category-section .service-item .service-price{
    font-size: 12px;
    font-weight: 500;
}

.plumber-meta-detail i {
    color: #007bff;
}

.plumber-rating-detail {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
    padding: 25px;
    background: #f8f9fa;
    border-radius: 15px;
}

.rating-main {
    display: flex;
    align-items: center;
    gap: 15px;
}

.stars-large {
    color: #ffc107;
    font-size: 2rem;
}

.rating-value-large {
    font-size: 3rem;
    font-weight: bold;
    color: #333;
}

.reviews-count-detail {
    color: #666;
    font-size: 1.2rem;
}

.price-large {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.price-label {
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.price-value {
    font-size: 3rem;
    font-weight: bold;
    color: #28a745;
}

.plumber-contact-detail {
    text-align: center;
}

.btn-xlarge {
    padding: 20px 40px;
    font-size: 1.3rem;
    border-radius: 12px;
    width: 100%;
    margin-bottom: 20px;
}

.phone-display-detail {
    padding: 30px;
    background: white;
    border: 3px solid #28a745;
    border-radius: 15px;
    text-align: center;
    animation: fadeIn 0.5s;
}

.phone-number-large {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 15px;
}

.phone-number-large h3 {
    margin: 0;
    color: #333;
    font-size: 2.5rem;
}

.phone-note {
    color: #666;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 1.1rem;
}

/* Комментарий из карточки */
.card-comment-detail {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    padding: 30px 40px;
    border-radius: 15px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 30px;
    box-shadow: 0 8px 30px rgba(0, 123, 255, 0.3);
}

.comment-icon {
    flex-shrink: 0;
}

.comment-icon i {
    font-size: 3rem;
    opacity: 0.8;
}

.comment-text {
    flex: 1;
    font-size: 1.5rem;
    font-style: italic;
    line-height: 1.6;
    text-align: center;
}

/* Сетка деталей */
.detail-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

/* Левая колонка */
.bio-content-detail {
    line-height: 1.8;
    color: #444;
    font-size: 1.1rem;
}

.services-list-detail {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.service-item-detail {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    transition: transform 0.3s;
}

.service-item-detail:hover {
    transform: translateX(10px);
    background: #e9ecef;
}

.service-icon-detail {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.8rem;
}

.service-info-detail {
    flex: 1;
}

.service-info-detail h4 {
    margin: 0 0 8px 0;
    color: #333;
    font-size: 1.2rem;
}

.service-description {
    margin: 0;
    color: #666;
    font-size: 0.95rem;
    line-height: 1.5;
}

.service-price-detail .price {
    font-size: 1.5rem;
    font-weight: bold;
    color: #28a745;
}

/* Правая колонка */

.right-column h3:after{
    content: none;
}

.reviews-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.reviews-total {
    background: #000;
    color: #ffd700;
    padding: 8px 16px;
    border-radius: 15px;
    font-size: 1.1rem;
    font-weight: 500;
}

.add-review-form {
    background: linear-gradient(to bottom right, #141414, #272727);
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 30px;
}

.add-review-form h3 {
    margin-top: 0;
    margin-bottom: 20px;
    color: gold;
}

/* Стили для звездного рейтинга */
.star-rating {
    display: flex;
    align-items: center;
    gap: 5px;
    margin: 10px 0;
}

.star-rating .star {
    cursor: pointer;
    font-size: 28px;
    color: #ddd;
    transition: color 0.2s, transform 0.2s;
}

.star-rating .star:hover,
.star-rating .star.selected {
    color: #ffc107;
}

.star-rating .star:hover {
    transform: scale(1.2);
}

.star-rating .star i {
    display: block;
}

.rating-text {
    margin-left: 15px;
    color: #666;
    font-size: 1rem;
}

.add-review-prompt {
    text-align: center;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    margin-bottom: 30px;
}

.add-review-prompt a {
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
}

.add-review-prompt a:hover {
    text-decoration: underline;
}

.reviews-list-detail {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.review-item-detail {
    padding: 25px;
    background: linear-gradient(to bottom right, #141414, #272727);
    border-radius: 10px;
}

.review-header-detail {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.reviewer-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.reviewer-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #adb5bd;
    font-size: 24px;
    overflow: hidden;
}

.reviewer-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.review-date {
    color: gold;
    font-size: 0.9rem;
    margin-top: 3px;
}

.review-rating-detail {
    color: #ffc107;
    font-size: 1.2rem;
}

.review-comment-detail {
    line-height: 1.6;
    color: gold;
}

.no-reviews {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

.no-reviews i {
    margin-bottom: 20px;
    color: #adb5bd;
}

.no-reviews h3 {
    color: #333;
    margin-bottom: 10px;
}

/* Кнопка возврата */
.back-section {
    text-align: center;
    padding-top: 30px;
}

/* Общие стили для форм в детальной странице */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.form-control:focus {
    border-color: #007bff;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

/* Стили для недоступных услуг */
.service-unavailable {
    opacity: 0.6;
    background: #f8f9fa !important;
}

.service-unavailable:hover {
    transform: none !important;
    background: #f8f9fa !important;
}

.icon-unavailable {
    background: #adb5bd !important;
    opacity: 0.7;
}

.price-unavailable {
    color: #adb5bd;
    font-style: italic;
    font-size: 1rem;
}

/* Улучшенные стили для доступных услуг */
.service-available {
    background: #f8f9fa;
    border-left: 4px solid #28a745;
}

.price-available {
    color: #28a745;
    font-weight: bold;
    font-size: 1.3rem;
}

/* Адаптивность детальной страницы */
@media (max-width: 1200px) {
    .detail-grid {
        grid-template-columns: 1fr;
    }
}

/* Адаптивность детальной страницы */
@media (max-width: 1080px) {
    .plumber-meta-detail .data,
    .plumber-meta-detail .cash {
        width: 100%;
    }

    .plumber-meta-detail .data {
        margin-right: 0;
    }

    .plumber-meta-detail {
        flex-direction: column;
    }
}

@media (max-width: 992px) {

    .plumber-meta-detail .data {
        margin-right: 30px;
    }

    .plumber-meta-detail {
        flex-direction: row;
    }

    .plumber-meta-detail .data,
    .plumber-meta-detail .cash {
        width: 50%;
        text-align: left;
    }

    .plumber-main-info {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    .plumber-meta-detail {
        justify-content: center;
    }

    .plumber-rating-detail {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .price-large {
        align-items: center;
    }

    .card-comment-detail {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
}

@media (max-width: 768px) {

    .review-item-detail{
        padding: 10px;
    }

    .reviews-section-detail{
        background-color: inherit;
    }

    .media-fdc{
        flex-direction: column;
    }

    .left-column{
        margin-bottom: 20px;
    }

    .plumber-main-info {
        padding: 30px 20px;
    }

    .plumber-info-detail h1 {
        font-size: 2rem;
    }

    .rating-value-large,
    .price-value {
        font-size: 2.5rem;
    }

    .phone-number-large h3 {
        font-size: 2rem;
    }

    .service-item-detail {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .service-info-detail h4 {
        text-align: center;
    }

    .review-header-detail {
        flex-direction: column;
        gap: 0;
    }

    .review-rating-detail {
        align-self: flex-start;
    }
}

@media (max-width: 600px) {
    .plumber-meta-detail .data,
    .plumber-meta-detail .cash {
        width: 100%;
        text-align: left;
    }
    .plumber-meta-detail {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .breadcrumb{
        margin-bottom: 0;
        border-radius: 0;
    }
    .plumber-meta-detail{

        border-radius: 0;
    }
    .plumber-detail-container{
        padding: 0;
    }
    .plumber-meta-detail .data,
    .plumber-meta-detail .cash{
        font-size: 14px;
        border-radius: 0;
        margin-bottom: 0;
        margin-right: 0;
    }
    .header-detail{
        font-size: 14px;
        border-radius: 0;
        margin-bottom: 0;
    }
    .footer-detail{
        border-radius: 0;
        font-size: 14px;
        text-align: left;
    }
    .plumber-main-info {
        padding: 0;
    }
    .plumber-main-info .left-side{
        padding: 0;
        border-radius: 0;
        background: inherit;
    }
    .plumber-avatar-large img{
        width: 100%;
    }
    .data{
        border-radius: 0;
    }
    .services-section{
        padding: 10px;
    }

    .services-section .category-section{
        margin-bottom: 15px;
    }
    .right-column{
        padding: 10px;
    }
    .right-column h2,
    .right-column h3{
        font-size: 16px;
    }
    .right-column .reviews-total{
        font-size: 14px;
    }
    .right-column .rating-text{
        font-size: 14px;
    }
}

