/* =============================================
   ДЕСКТОП - СКРЫВАЕМ МОБИЛЬНЫЕ ЭЛЕМЕНТЫ
   ============================================= */

/* Скрываем мобильный поиск на десктопе */
.search-mobile {
    display: none;
}

/* Скрываем крестики в десктопном поиске по умолчанию */
.search-desktop .clear-btn {
    display: none !important;
}

.search-desktop .clear-btn.visible {
    display: inline-block !important;
}

/* =============================================
   МОБИЛЬНЫЕ УСТРОЙСТВА (до 768px)
   ============================================= */
@media (max-width: 1024px) {
    /* --- ОБЩИЕ СТИЛИ --- */
    .container {
        padding: 0 20px;
    }
    
    h2 {
        font-size: 28px;
        line-height: 34px;
    }
    
    h3 {
        font-size: 18px;
        line-height: 24px;
    }
    
    /* --- НАВБАР (ШАПКА) --- */
    .navbar {
        /* Увеличил отступ по бокам с 20px до 25px (или больше), 
           чтобы отодвинуть бургер и язык от краев, но визуально 
           расстояние до центрального лого тоже изменится */
        padding: 0 25px; 
        height: 40px;
        top: 22px;
        display: flex;
        justify-content: space-between; /* Максимально разносит боковые элементы */
        align-items: center;
        position: fixed;
        width: 100%; /* Гарантируем ширину */
    }

    .navbar.scrolled {
        height: 50px;
        padding: 0 20px;
        width: 94.8%;
    }

    .navbar.scrolled .logo {
        top: 13%;
    }

    .nav-left {
        display: none !important; 
    }
    
    /* Логотип: Абсолютное центрование */
    .logo {
        position: absolute;
        top: 2%;  /* Ставим центр лого на 50% высоты хедера */
        left: 50%; /* Ставим центр лого на 50% ширины хедера */
        /* Сдвигаем логотип назад на половину его собственной высоты и ширины */
        transform: translate(-50%, -50%); 
        margin: 0 !important;
        padding: 0 !important;
        z-index: 20;
        transition: all 0.3s ease; /* Чтобы плавно менял размер если надо */
    }
    
    .logo img {
        height: 28px; 
        display: block;
    }
    
    /* Бургер (слева) */
    .burger-menu {
        z-index: 20;
        position: relative;
    }

    /* Язык (справа) */
    .nav-right {
        z-index: 20;
    }
    
    /* Бургер-меню */
    .burger-menu {
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 6px; 
        width: 30px;
        height: 30px;
        background: transparent;
        border: none;
        padding: 0;
        cursor: pointer;
        z-index: 30;
        /* Можно добавить margin-right, если хочется отодвинуть его от края еще сильнее, 
           но лучше управлять через padding .navbar */
    }

    .burger-menu span {
        display: block;
        justify-content: center;
        align-self: center;
        width: 80%;
        height: 2px;
        background-color: var(--white);
        border-radius: 4px;
        transition: all 0.3s ease;
    }
    
    .burger-menu.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 6px);
    }
    .burger-menu.active span:nth-child(2) {
        opacity: 0;
    }
    .burger-menu.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -6px);
    }
    
    /* Логотип по центру */
    .logo {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        order: 2;
    }
    
    .logo img {
        height: 36px;
    }
    
    /* Переключатель языка справа */
    .nav-right {
        order: 3;
    }
    
    .lang-switch {
        padding: 0;
        margin: 0;
    }
    
    .selected-lang {
        font-size: 14px;
        font-weight: 600;
        display: flex;      /* Убедимся, что это флекс */
        align-items: center;
        gap: 6px;           /* <--- ВОТ ЭТО уменьшает расстояние (было 10px) */
    }
    
    /* Мобильное выпадающее меню */
    .mobile-menu {
        display: none;
        
        /* Позиционирование: вешаем под шапку слева */
        position: absolute; 
        top: 50px;         /* Отступ сверху (высота шапки - 10px для красоты) */
        left: 10px;        /* Выравниваем по левому краю контейнера */
        
        /* Размеры: больше не на весь экран */
        width: auto;       
        min-width: 170px;  /* Минимальная ширина */
        height: auto;      /* Высота по содержимому */
        
        /* Визуальный стиль (Стекло) */
        background: transparent; /* Темный полупрозрачный фон (как у языков) */
        backdrop-filter: blur(12px);        /* Эффект размытия фона */
        -webkit-backdrop-filter: blur(12px); /* Для Safari */
        border-radius: 16px;                /* Скругленные углы */
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3); /* Тень */
        border: 1px solid rgba(255, 255, 255, 0.2); /* Тонкая рамка */
        
        /* Внутренние отступы */
        padding: 10px;
        
        flex-direction: column;
        align-items: flex-start; /* Выравнивание текста влево */
        gap: 5px;                /* Расстояние между ссылками */
        z-index: 1000;

        transition: all 0.3s ease-in-out;;
    }
    
    .mobile-menu.active {
        display: flex;
        animation: fadeIn 0.2s ease;
    }

    .navbar.scrolled .mobile-menu{
        left: 0px;
        transition: all ease 0.2s;
        background-color: #5E4A3C !important;
        border: none;
    }
    
    .mobile-nav-link {
        color: #fff;
        font-size: 16px;      /* Уменьшили шрифт (было 24px) */
        font-weight: 500;
        text-decoration: none;
        font-family: var(--font-heading);
        
        padding: 10px 15px;   /* Отступы для кликабельности */
        width: 100%;          /* Ссылка во всю ширину блока */
        border-bottom: none;  /* Убрали линии разделители */
        border-radius: 10px;  /* Скругление при наведении */
        transition: background 0.2s;
        text-align: left;
    }
    
    .mobile-nav-link:last-child {
        border-bottom: none;
    }
    
    .mobile-nav-link:hover {
        background-color: rgba(255, 255, 255, 0.1); /* Легкая подсветка при нажатии */
        opacity: 1;
    }

    @keyframes fadeIn {
        from { opacity: 0; transform: translateY(10px); }
        to { opacity: 1; transform: translateY(0); }
    }
    
    /* --- HERO СЕКЦИЯ (ФОТО И ТЕКСТ) --- */
    .hero {
        /* Делаем фото на 85% от высоты экрана телефона */
        height: 62vh; 
        min-height: 500px; /* Чтобы на совсем маленьких не сплющилось */
        margin-top: 15px;
        margin-bottom: 15px;
        margin-left: 10px;
        margin-right: 10px;
        padding-bottom: 0;
        position: relative;
        border-radius: 30px;
        background-image: linear-gradient(rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.25)), url('../images/mainback.jpg');
    }
    
    .hero-container {
        height: 100%; /* Контейнер на всю высоту секции */
        display: flex;
        flex-direction: column;
        justify-content: flex-end; /* Прижимаем всё содержимое к низу */
        padding-top: 15px;         /* Отступ сверху (под шапку) */
        padding-bottom: 32px;     /* Отступ снизу (чтобы текст не прилип к краю) */
    }
    
    .hero-content {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
        margin-bottom: 0;
        gap: 15px;
        position: relative;
        z-index: 2;
    }
    
    .hero-title {
        font-size: 26px;
        line-height: 1.1;
        margin-bottom: 0;
    }
    
    .hero-subtitle {
        text-align: left;
        max-width: 90%;
        font-size: 14px;
        line-height: 1.3;
        opacity: 1;
    }
    
    /* --- СКРЫВАЕМ ДЕСКТОПНЫЙ ПОИСК, ПОКАЗЫВАЕМ МОБИЛЬНЫЙ --- */
    .search-desktop {
        display: none !important;
    }
    
    .search-mobile {
        display: block;
    }
    
    /* --- НОВЫЙ ДИЗАЙН МОБИЛЬНОГО ПОИСКА --- */
    
    .mobile-search-section {
        background-color: transparent;
        margin-top: 20px;
        margin-bottom: 0;
        position: relative;
        z-index: 100;
        width: 100%;
    }

    .mobile-search-section .container {
        padding: 0 10px; /* Блок станет намного шире (отступ всего 8px от края) */
    }

    /* Оранжевая карточка */
    .mobile-search-section .search-block {
        background-color: var(--orange);
        border-radius: 30px;
        padding: 16px;
        box-shadow: 0 10px 30px rgba(255, 147, 28, 0.3);
        width: 100%;
        position: relative;
        left: auto;
        right: auto;
        bottom: auto;
    }

    /* Табы (Купить / Арендовать) */
    .mobile-search-section .search-tabs {
        display: flex;
        justify-content: space-between;
        gap: 0;
        margin-bottom: 20px;
        background: rgba(255, 255, 255, 0.25);
        padding: 4px;
        border-radius: 30px;
    }

    .mobile-search-section .tab {
        flex: 1;
        padding: 8px 0;
        font-size: 16px;
        font-weight: 600;
        text-align: center;
        background-color: transparent;
        color: var(--white);
        border: none;
        border-radius: 25px;
        transition: all 0.3s ease;
        margin: 0;
    }

    .mobile-search-section .tab.active {
        background-color: var(--white) !important;
        color: var(--orange) !important;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1) !important;
        text-decoration: none !important;
        border: none !important;
    }

    .mobile-search-section .tab:not(.active) {
        background-color: transparent !important;
        color: var(--white) !important;
        text-decoration: none !important;
        border: none !important;
    }
    
    .mobile-search-section .tab:not(.active):hover {
        background-color: rgba(255, 255, 255, 0.1);
    }

    /* --- ПОЛЯ ВВОДА --- */
    .mobile-search-section .search-bar {
        display: flex;
        flex-direction: column;
        gap: 10px;
        background: transparent;
        box-shadow: none;
        padding: 0;
        height: auto !important; /* Разрешаем растягиваться */
    }

    /* Общий стиль для каждого поля */
    .mobile-search-section .search-field {
        width: 100%;
        height: 52px !important;
        min-height: 52px;
        background-color: rgba(255, 255, 255, 0.25);
        border: 1px solid transparent;
        border-radius: 12px !important;
        padding: 0 15px;
        margin: 0;
        
        /* Flexbox */
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        
        /* --- ВОТ ЭТО ИСПРАВИТ ПРОБЛЕМУ --- */
        overflow: hidden; /* Обрезает всё, что вылезает за радиус */
        /* -------------------------------- */
        
        cursor: pointer;
    }

    /* Исправляем радиусы для первого и последнего поля (чтобы они были отдельными карточками) */
    .mobile-search-section .search-field:first-of-type,
    .mobile-search-section .search-field:nth-last-child(2) {
        border-radius: 12px !important;
        margin: 0;
    }
    
    .mobile-search-section .search-field .fa-chevron-down {
        margin-left: auto;
        opacity: 1;
        font-size: 16px;
        color: var(--white) !important;
    }
    
    /* SVG шеврон для мобильного поиска */
    .mobile-search-section .chevron-icon {
        margin-left: auto;
        flex-shrink: 0;
        transition: transform 0.3s ease;
    }
    
    .mobile-search-section .search-field.active .chevron-icon {
        transform: rotate(180deg);
    }

    /* Текст и иконки - белые (только в label, не в dropdown) */
    .mobile-search-section .search-field > .field-label .field-text,
    .mobile-search-section .search-field > .field-label span,
    .mobile-search-section .search-field > .field-label i {
        color: var(--white);
        font-weight: 500;
        font-size: 13px;
    }
    
    /* Эффект нажатия */
    .mobile-search-section .search-field:active,
    .mobile-search-section .search-field.active {
        background-color: rgba(255, 255, 255, 0.35);
    }

    /* --- КРЕСТИКИ (CLEAR BTN) --- */
    /* Скрываем по умолчанию! */
    .mobile-search-section .clear-btn {
        display: none !important;
        margin-right: 10px;
        cursor: pointer;
        opacity: 0.8;
        font-size: 14px;
    }

    /* Кнопка "Искать" */
    .mobile-search-section .search-btn {
        width: 100%;
        margin-top: 12px;
        height: 52px;
        background-color: #F9F9F9;
        color: var(--orange);
        font-size: 17px;
        font-weight: 700;
        border-radius: 10px;
        border: none;
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    }

    .mobile-search-section .search-btn:hover {
        background-color: #f0f0f0;
    }

    .mobile-search-section .dropdown-item .item-text { color: #333; }
    .mobile-search-section .dropdown-search { border: 1px solid #ddd; background: #f5f5f5; }
    .mobile-search-section .dropdown-search:focus { border-color: var(--orange); background: #fff; }
    .mobile-search-section .dropdown-search-wrapper i { color: #999; }

    /* Выпадающий список (внутри поля, под ним) */
    .mobile-search-section .search-field .search-dropdown {
        display: none !important;
        position: relative !important;
        top: auto !important;
        bottom: auto !important;
        left: auto !important;
        right: auto !important;
        width: 100% !important;
        max-height: 280px !important;
        overflow-y: auto !important;
        background-color: #fff !important;
        border-radius: 12px !important;
        margin-top: 8px !important;
        margin-left: 0 !important;
        padding: 8px !important;
        box-shadow: 0 6px 20px rgba(0,0,0,0.15) !important;
        z-index: 100 !important;
    }

    .mobile-search-section .search-field.active .search-dropdown {
        display: flex !important;
        flex-direction: column !important;
        gap: 2px !important;
    }

    .mobile-search-section .search-field {
        flex-direction: column !important;
        height: auto !important;
        min-height: 52px;
        overflow: visible !important;
    }

    .mobile-search-section .search-field .field-label {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        width: 100%;
        height: 52px;
        min-height: 52px;
    }

    .mobile-search-section .search-field.active {
        padding-bottom: 10px !important;
        z-index: 1000 !important;
    }

    .mobile-search-section .dropdown-item .checkmark { background-color: #E8E4E1; }
    .mobile-search-section .dropdown-item input:checked ~ .checkmark { background-color: var(--orange); }

    .mobile-search-section .dynamic-items-container {
        display: flex;
        flex-direction: column;
        gap: 2px;
    }

    .mobile-search-section .dropdown-item.static-item {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 10px 12px;
    }

    .mobile-search-section .search-dropdown::-webkit-scrollbar { width: 5px; }
    .mobile-search-section .search-dropdown::-webkit-scrollbar-track { background: transparent; }
    .mobile-search-section .search-dropdown::-webkit-scrollbar-thumb { background-color: rgba(0,0,0,0.15); border-radius: 10px; }
    
    /* --- ОСТАЛЬНЫЕ СЕКЦИИ --- */

    /* --- FEATURES (РАЗНАЯ ШИРИНА + 2 РЯДА) --- */
    .features {
        padding: 20px 0;
        margin-bottom: 0;
        margin-left: 10px;
        margin-right: 10px;
    }
    
    .features .container {
        padding: 0;
    }
    
    .features-grid {
        display: grid;
        grid-template-rows: repeat(2, auto); 
        grid-auto-flow: column; 
        
        /* Ширина колонок: первые две стандартные, третья (только "Персональный подход") — узкая */
        grid-template-columns: 290px 290px 170px;
        grid-auto-columns: 290px;
        
        gap: 14px; /* Общий отступ между карточками */
        padding: 0 0 20px 20px;
        
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    
    .features-grid::-webkit-scrollbar {
        display: none;
    }
    
    /* Сброс стилей для всех карточек */
    .features-grid > div {
        width: 100% !important; /* По умолчанию тянутся на всю ширину колонки (270px) */
        height: 100%;
        min-height: 190px;
        scroll-snap-align: start;
        margin: 0;
        border-radius: 20px; /* Скругление как на макете */
    }
    
    /* --- НАСТРОЙКА РАЗМЕРОВ И ПОРЯДКА --- */

    /* 1. Карточка "Почему выбирают нас?" (Заголовок) */
    .features-grid > :nth-child(1) { 
        order: 1; 
        grid-row: auto; 
        
        /* 2. Подгоняем ширину верхней карточки (было 215px -> стало 255px)
           Она стала шире, поэтому "дырка" справа уменьшилась (Красная зона).
           Но она все равно меньше, чем 290px, поэтому ступенька осталась. */
        width: 240px !important; 
        margin-right: auto; 
        justify-content: center;
    }

    /* 2. Карточка "Иммиграционные услуги" (Нижняя левая) */
    .features-grid > :nth-child(5) {
        order: 2;
        width: 375px !important;
    }

    /* 3. Карточка "Прозрачность" (Верхняя средняя) */
    .features-grid > :nth-child(2) {
        order: 3;
        margin-left: -49px;
        width: 250px !important;
    }

    /* 4. Карточка "Сопровождение после продажи" (Нижняя правая — шире, перетекает вправо) */
    .features-grid > :nth-child(4) { order: 4; width: 375px !important; margin-left: 84px; }

    /* 5. Карточка "Персональный подход" (Последняя, одна в колонке — узкая) */
    .features-grid > :nth-child(3) { order: 5; margin-left: -89px; width: 250px !important; }

    /* Внутренности карточек */
    .feature-card {
        padding: 12px;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
    }
    
    .title-card h2 {
        font-size: 22px;
        line-height: 28px;
    }
    
    .icon-wrap {
        font-size: 22px;
        margin-bottom: 10px;
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: rgba(0,0,0,0.05);
        border-radius: 50%;
    }
    
    .feature-card p {
        font-size: 13px;
        line-height: 18px;
        margin: 0;
        opacity: 0.8;
    }
    
    /* LISTINGS (КАРУСЕЛЬ) */
    .listings {
        padding-bottom: 20px;
        margin-bottom: 0;
        margin-left: 10px;
        margin-right: 10px;
    }

    .listings .container.listings-wrapper {
        padding: 0 10px;
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        gap: 12px;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .listings .container.listings-wrapper::-webkit-scrollbar {
        display: none;
    }

    .listing-card {
        flex: 0 0 calc(100% - 20px);
        width: calc(100% - 20px);
        scroll-snap-align: start;
    }

    .listing-image {
        height: 400px;
        border-radius: 20px;
    }

    .tags-top {
        top: 16px;
        right: 16px;
    }

    .listing-bottom {
        padding: 16px;
    }

    .tags-bottom {
    }

    .left-tags {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .left-tags .tag {
        width: auto;
    }

    .tag {
        padding: 6px 12px;
        font-size: 12px;
    }

    .price {
        font-size: 20px;
    }

    .listing-info {
    }

    .listing-info h3 {
        font-size: 15px;
        line-height: 20px;
    }

    .slider-arrow {
        display: none;
    }

    a.listing-card:hover {
        transform: none;
    }

    /* ABOUT */
    .about {
        padding-top: 20px;
        padding-bottom: 40px;
    }

    .about .container {
        padding: 0 10px;
    }
    
    .about-block {
        flex-direction: column;
        min-height: auto;
        border-radius: 30px;
        width: 100%;
    }
    
    .about-text {
        padding: 40px 25px;
        order: 1;
    }
    
    .about-text h2 {
        font-size: 24px;
        line-height: 30px;
        margin-bottom: 20px;
    }
    
    .about-text p {
        font-size: 14px;
        line-height: 22px;
        margin-bottom: 30px;
        max-width: 100%;
    }
    
    .about-image {
        order: 2;
        height: 250px;
    }
    
    .about-image img {
        display: none;
        height: 100%;
    }
    
    .cta-btn {
        width: 100%;
        height: 50px;
        font-size: 16px;
    }
    
    /* FOOTER */
    footer {
        width: 95%;
        height: auto;
        margin-top: 15px;
        margin-bottom: 15px;
        margin-left: 10px;
        margin-right: 10px;
        border-radius: 20px;
        padding: 10px 0;
    }
    
    .footer-content {
        /* ГЛАВНОЕ: Разрешаем блоку расти вниз */
        height: auto !important; 
        min-height: auto !important;
        
        padding: 20px 20px 25px 20px; /* Отступ снизу побольше, чтобы ссылки влезли */
        
        display: flex;
        flex-wrap: wrap; /* Разрешаем элементам переноситься */
        justify-content: space-between;
        align-items: center;
        gap: 10px;
    }

    .footer-links {
        order: 3;
        width: 100%; /* Занимает всю ширину */
        
        display: flex;
        flex-wrap: wrap;       /* РАЗРЕШАЕМ ПЕРЕНОС ССЫЛОК */
        justify-content: center; /* Центрируем их */
        gap: 8px 15px;         /* Отступы: 8px вертикально, 15px горизонтально */
        
        margin-top: 3px;
        padding-top: 8px;
        border-top: 1px solid rgba(255,255,255,0.15); /* Линия разделитель */
    }

    .footer-links a {
        font-size: 11px; /* Мелкий шрифт */
        color: rgba(255, 255, 255, 0.5); /* Тусклый цвет */
    }
    
    .footer-logo {
        order: 1; /* Первый */
        flex: 0 0 auto;
    }
    
    .socials {
        order: 2; /* Второй (в той же строке) */
        flex: 0 0 auto;
        display: flex;
        gap: 10px;
    }
    
    .footer-logo img {
        height: 36px; /* Чуть компактнее */
        display: block;
    }
    
    .socials a {
        width: 36px;
        height: 36px;
        background: rgb(255, 255, 255); /* Легкий фон для кнопок */
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #fff;
        text-decoration: none;
    }
    
    .socials a i {
        font-size: 16px;
    }


    
}


.navbar.scrolled .lang-dropdown {
    right: -20px;
    top: 37px;
}


.lang-dropdown{
    top: 42px;
    width: 170px;
}



@media (max-width: 1024px) {

    /* 1. РОДИТЕЛЬСКОЕ ПОЛЕ (Сбрасываем overflow) */
    /* Когда поле активно, мы разрешаем элементам выходить за его границы */
    body .mobile-search-section .search-field.active {
        overflow: visible !important; 
        
        /* Фиксируем высоту самого поля, чтобы оно не прыгало */
        height: 52px !important; 
        min-height: 52px !important;
        
        /* Делаем углы квадратными снизу, чтобы состыковать с меню */
        border-radius: 12px 12px 12px 12px !important;
        
        background-color: rgba(255, 255, 255, 0.35) !important;
        z-index: 1000 !important; /* Поднимаем выше всех остальных полей */
    }

    /* 2. САМО ВЫПАДАЮЩЕЕ МЕНЮ */
    body .mobile-search-section .search-field.active .search-dropdown {
        /* Делаем видимым */
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;

        /* АБСОЛЮТНОЕ ПОЗИЦИОНИРОВАНИЕ */
        position: absolute !important;
        top: 100% !important;
        
        /* ИЗМЕНЕНИЕ: Делаем ширину на 2px больше (по 1px с каждой стороны) */
        width: calc(100% + 2px) !important; 
        
        /* ИЗМЕНЕНИЕ: Сдвигаем влево на 1px, чтобы выровнять по центру */
        left: -1px !important;
        right: auto !important;
        
        margin-top: 8px !important;
        border-radius: 12px 12px 12px 12px !important;
        
        /* Визуальный стиль */
        background-color: #ffffff !important;
        box-shadow: 0 10px 40px rgba(0,0,0,0.3) !important;
        padding: 10px !important;
        
        /* Скролл внутри меню */
        height: auto !important;
        max-height: 300px !important;
        overflow-y: auto !important;
        pointer-events: auto !important;
        z-index: 1001 !important;
    }

    /* 3. Исправление цвета текста внутри (на всякий случай) */
    .mobile-search-section .dropdown-item .item-text {
        color: #333333 !important;
        font-size: 14px !important;
    }

    .mobile-search-section .search-field .field-label {
        height: 52px !important;        /* Высота как у всего поля */
        min-height: 52px !important;
        display: flex !important;       /* Включаем флекс */
        align-items: center !important; /* Центрируем строго по вертикали */
        width: 100%;
        margin: 0 !important;           /* Убираем любые внешние отступы */
    }

    /* 2. У активного поля убираем вертикальные отступы, которые могут толкать текст */
    body .mobile-search-section .search-field.active {
        padding-top: 0 !important;
        padding-bottom: 0 !important;
        /* Оставляем только боковые отступы */
        padding-left: 15px !important;
        padding-right: 15px !important;
        
        /* Гарантируем, что флекс выравнивание родителя не ломает верстку */
        justify-content: flex-start !important; 
    }
}

/* ============================================================
   МОБИЛЬНЫЕ ТАБЫ - ПЕРЕОПРЕДЕЛЯЕМ home.css (вне медиа-запроса)
   ============================================================ */
body .mobile-search-section .search-tabs .tab.active {
    background-color: #FFFFFF !important;
    color: #FF931C !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1) !important;
    text-decoration: none !important;
    border: none !important;
    border-bottom: none !important;
    text-decoration-line: none !important;
}

body .mobile-search-section .search-tabs .tab:not(.active) {
    background-color: transparent !important;
    color: #FFFFFF !important;
    text-decoration: none !important;
    border: none !important;
    border-bottom: none !important;
    text-decoration-line: none !important;
}

/* ============================================================
   ОТКЛЮЧЕНИЕ HOVER-ЭФФЕКТОВ НА ТАЧ-УСТРОЙСТВАХ
   ============================================================ */
@media (hover: none) {
    /* Навигация */
    .nav-link:hover { opacity: 1; }
    .mobile-nav-link:hover { background-color: transparent; }
    .selected-lang:hover { opacity: 1; }
    .lang-option:hover { background-color: transparent; }
    .navbar.scrolled .lang-option:hover { background-color: transparent; }

    /* Поиск */
    .tab:not(.active):hover { background: transparent; color: inherit; }
    .search-btn:hover { background-color: var(--orange); }
    .mobile-search-section .tab:not(.active):hover { background-color: transparent; }
    .mobile-search-section .search-btn:hover { background-color: #fff; }
    .dropdown-item:hover { background-color: transparent; }
    .clear-btn:hover { color: #999; }

    /* Карточки объектов */
    .property-card:hover { transform: none; box-shadow: none; }
    .listing-card:hover { transform: none; }

    /* Кнопки */
    .cta-btn:hover { background-color: var(--orange); }
    .submit-btn:hover { background-color: var(--orange); }
    .apply-btn:hover { background-color: var(--orange); }
    .reset-btn:hover { border-color: #ccc; color: #666; }

    /* Футер */
    .footer-links a:hover { color: inherit; opacity: 1; }
    .socials a:hover { transform: none; color: inherit; opacity: 1; background-color: var(--white); }
    .socials a:active { transform: none; opacity: 1; background-color: var(--white); }
    .socials a:focus { transform: none; opacity: 1; outline: none; background-color: var(--white); }
    .socials a { -webkit-tap-highlight-color: transparent; transition: none; }
    .contact-link:hover { color: inherit; }

    /* Галерея / слайдер */
    .slider-arrow:hover { background: rgba(255,255,255,0.2); }
    .v-thumb:hover { opacity: 1; }
    .more-photos-btn:hover { background-color: rgba(0,0,0,0.7); }
    .nav-arrow:hover { background-color: rgba(255,255,255,0.6); }
    .video-thumb:hover .video-overlay { opacity: 1; }

    /* Cookies */
    .cookie-btn.accept:hover { background-color: var(--orange); }
    .cookie-btn.decline:hover { background-color: transparent; }

    /* Панели фильтров */
    .close-filters-btn:hover { background-color: transparent; }
    .close-panel-btn:hover { background-color: transparent; }
}