/* static/css/home.css */
.mr5px {
    margin-right: 5px;
}

.filters {
    display: flex;
    justify-content: space-around;
}

.open-filters{
    transition: all 0.3s ease;
}

.open-filters:hover{
    color: white;
    font-size: 20px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.form-control {
    display: flex;
    flex-direction: column;
}

.form-control label,
.form-control input {
    margin-bottom: 10px;
}

.form-control select {
    appearance: none;
    padding: 5px;
    background-color: #323232;
    border: solid 1px #c6c6c6;
    color: #c6c6c6;
    border-radius: 5px;
}

.form-control input {
    border: solid 1px #c6c6c6;
    border-radius: 5px;
    padding: 5px;
    background-color: #323232;
    color: #c6c6c6;
}

.buttons {
    text-align: center;
}

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

/* Герой-секция */
.hero-section {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    padding: 60px 20px;
    text-align: center;
    border-radius: 15px;
    margin-bottom: 30px;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-section h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.hero-subtitle {
    font-size: 1.3rem;
    opacity: 0.9;
    margin-bottom: 40px;
}

.search-form-hero {
    max-width: 600px;
    margin: 0 auto 40px;
}

.search-input-group {
    display: flex;
    gap: 10px;
}

.search-input {
    flex: 1;
    padding: 15px 20px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
}

.search-button {
    padding: 15px 30px;
    background-color: #28a745;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
}

.search-button:hover {
    background-color: #218838;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.hero-stats .stat {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 12px 20px;
    border-radius: 50px;
}

.hero-stats .stat i {
    font-size: 1.5rem;
}

.header-icons {
    display: flex;
    flex-direction: row;
}

.header-icons i {
    margin-right: 10px;
}

/* Фильтры */
.filters-section {
    margin-bottom: 40px;
}

.filters-card {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.filters-card h3 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #333;
    display: flex;
    align-items: center;
    gap: 10px;
}

.city-filter {
    display: flex;
    gap: 15px;
    align-items: flex-end;
}

.city-filter .filter-group {
    flex: 1;
}

.city-filter .filter-group label {
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-actions {
    display: flex;
    gap: 10px;
}

/* Результаты */
.results-section {
    margin-bottom: 50px;
}

.results-header {
    background: white;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.results-header h2 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 1.8rem;
}

.results-header .count {
    color: #007bff;
    font-weight: bold;
}

.city-result {
    color: #666;
    font-size: 1.1rem;
    margin: 0;
}

/* Карточки сантехников */
.plumbers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(420px, 1fr));
    gap: 30px;
}

.plumber-card {
    /*width: 48%;*/
    background: #383838;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.plumber-card-header {
    color: #c9aa00;
    padding: 10px 20px;
    background: linear-gradient(to bottom right, #141414, #272727);
    display: flex;
    gap: 20px;
    position: relative;
}

.online{
    margin-left: 10px;
    font-size: 9px;
    border: solid 2px green;
    padding: 4px;
    border-radius: 10px;
    color: black;
    background-color: #00ef00;
}

.plumber-avatar {
    position: relative;
    flex-shrink: 0;
}

.plumber-avatar img {
    width: 200px;
    max-height: 280px;
    /*border-radius: 50%;*/
    object-fit: cover;
    border: 1px solid gold;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.avatar-placeholder {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #adb5bd;
    border: 4px solid #dee2e6;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.verified-badge {
    position: absolute;
    bottom: 5px;
    right: 5px;
    width: 30px;
    height: 30px;
    background: #28a745;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    border: 3px solid white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.plumber-card .right-side {
    padding: 10px;
}

.plumber-card .right-side .age,
.plumber-card .right-side .experience,
.plumber-card .right-side .height,
.plumber-card .right-side .weight {
    display: inline-block;
    padding: 5px;
    background-color: #ffd800;
    border-radius: 5px;
    margin: 0 3px 6px 0;
    color: #373b40;
}

.plumber-card .right-side span {
    font-size: 10px;
}

.plumber-card .right-side .adress {
    margin-bottom: 10px;
}

.plumber-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
}

.plumber-info h3 {
    color: #c9aa00;
    font-size: 1rem;
}

.plumber-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 12px;
}

.plumber-meta span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #666;
    font-size: 0.9rem;
    background: rgba(255, 255, 255, 0.8);
    padding: 4px 10px;
    border-radius: 15px;
}

.card-comment {
    color: #555;
    font-style: italic;
    font-size: 0.95rem;
    line-height: 1.5;
    padding: 10px;
    background: white;
    border-radius: 8px;
    border-left: 3px solid #007bff;
    margin-top: 10px;
}

.plumber-card-body {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.rating-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f8f9fa;
}

.rating {
    display: flex;
    align-items: center;
}

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

.rating-value {
    font-size: 10px;
    font-weight: bold;
}

.reviews-count {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666;
    font-size: 0.95rem;
}

.reviews-count i {
    color: #007bff;
}

.characteristics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 25px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
}

.char-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

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

.char-value {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
}

.char-value.price {
    color: #28a745;
    font-size: 1.3rem;
}

.services-preview {
    margin-top: 20px;
    font-size: 10px;
    font-weight: 900;
}

.services-title {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #333;
    font-weight: 600;
    margin-bottom: 12px;
    font-size: 1.1rem;
}

.work_time {
    margin-bottom: 10px;
    padding: 5px;
}

.services-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.services-tag {
    display: flex;
    flex-direction: row;
}

.services-tag .service-tag {
    padding: 0 !important;
}

.service-tag {
    background: #007bff;
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    white-space: nowrap;
}

.plumber-card-footer {
    padding: 20px 25px;
    /*background: #1b1b1b;*/
    position: relative; /* Добавить для позиционирования псевдоэлемента */
    background-image: url(/static/images/black_fon.jpg);
    z-index: 1;
}

.plumber-card-footer:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(27, 27, 27, 0.9); /* Регулируйте прозрачность */
    z-index: -1;
}

.card-actions {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.phone-display {
    padding: 20px;
    background: white;
    border-radius: 10px;
    border: 2px solid #28a745;
    text-align: center;
    animation: fadeIn 0.5s;
}

.services-tag_onlist {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.services-tag_onlist:nth-child(2n) {
    background-color: #191919;
}

.little_text{
    font-size: 12px;
    margin-top: 10px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.phone-number {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 10px;
    font-size: 1.4rem;
}

/* Нет результатов */
.no-results {
    background: #343434;
    padding: 80px 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.no-result-text{
    color: #a98f00;
    font-size: 24px;
}

.no-results-content i {
    color: #adb5bd;
    margin-bottom: 25px;
}

.no-results-content h3 {
    color: #333;
    margin-bottom: 20px;
    font-size: 2rem;
}

.no-results-content p {
    color: #666;
    margin-bottom: 15px;
    font-size: 1.1rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.no-results-content a {
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
}

.no-results-content a:hover {
    text-decoration: underline;
}

/* CTA секция */
.cta-section {
    margin-top: 60px;
}

.cta-card {
    background: linear-gradient(135deg, #28a745 0%, #1e7e34 100%);
    color: white;
    padding: 50px 40px;
    border-radius: 15px;
    text-align: center;
}

.cta-content h2 {
    font-size: 2.2rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.cta-content p {
    font-size: 1.3rem;
    opacity: 0.9;
    margin-bottom: 35px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.load-more-section {
    text-align: center;
    margin-top: 20px;
}

/* Адаптивность главной страницы */
@media (max-width: 1200px) {
    .plumbers-grid {
        grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    }
}

@media (max-width: 768px) {

    .filters {
        flex-direction: column;
    }

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

    .filters .form-control {
        flex-direction: row;
        margin-bottom: 10px;
    }

    .form-control label,
    .form-control input {
        margin-bottom: 0;
        margin-right: 20px;
    }


    .home-container {
        padding: 0 0;
    }

    .plumber-card {
        border-radius: 0;
        width: 100%;
    }

    .hero-section h1 {
        font-size: 2rem;
        flex-direction: column;
        gap: 10px;
    }

    .search-input-group {
        flex-direction: column;
    }

    .search-button {
        justify-content: center;
    }

    .hero-stats {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .plumbers-grid {
        grid-template-columns: 1fr;
    }

    .city-filter {
        flex-direction: column;
        align-items: stretch;
    }

    .characteristics {
        grid-template-columns: repeat(2, 1fr);
    }

    .cta-content h2 {
        flex-direction: column;
        gap: 10px;
        font-size: 1.8rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn-lg {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 630px) {
    .btn-group{
        display: flex;
        flex-direction: column;
    }

    .btn-group .btn-primary {
        margin-top: 20px;
    }

    .btn-group .btn{
        margin-bottom: 10px;
    }
}

@media (max-width: 480px) {
    .card-actions{
        justify-content: space-between;
    }
    .plumber-card-body {
        padding: 10px;
    }

    .card-actions{
        gap: 5px;
        margin-bottom: 0;
    }

    .plumber-avatar img {
        width: 160px;
    }

    .plumber-card-footer{
        padding: 5px 10px;
    }

    .characteristics {
        grid-template-columns: 1fr;
    }

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

    .plumber-info h3 {
        font-size: 16px;
        text-align: center;
    }
}