body { font-family: 'Inter', Arial, sans-serif; background: #fff; color: #000; margin: 0; padding: 20px; }

.main-container { max-width: 1200px; margin: 0 auto; padding: 25px;}

/* Фильтры */
.filter-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 40px; }

.f-item select, .f-item input { 
    width: 100%; height: 52px; background: #f2f2f4; border: 2px solid transparent; 
    border-radius: 10px; padding: 0 15px; font-size: 18px; font-weight: 600; outline: none;
}

.f-item.split { display: flex; background: #f2f2f4; border-radius: 10px; overflow: hidden; }
.f-item.split input { border-radius: 0; border-right: 1px solid #ddd; }
.f-item.split input:last-child { border-right: none; }

.show-btn { 
    background: #000; color: #fff; border: none; border-radius: 10px; 
    font-size: 18px; font-weight: 700; cursor: pointer; transition: 0.2s;
	height: 52px;
}

/* Сетка карточек */
.section-title { font-size: 28px; font-weight: 800; margin: 40px 0 20px; color: #075e54 !important;}
.catalog-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

.car-card { cursor: pointer; }
.img-placeholder img { width: 100%; border-radius: 12px; object-fit: cover; }
.car-info h3 { font-size: 18px; margin: 10px 0 5px; color: #002366; }
.car-info .count { color: #888; font-size: 14px; margin: 0; }
.car-info .price { font-weight: 700; font-size: 16px; margin: 5px 0; }

/* Пагинация */
.pagination-container {
    display: flex;
    justify-content: center;
    margin: 40px 0;
}

.pagination-wrapper {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #f2f2f4; /* Светло-серая подложка как на скриншоте */
    padding: 6px;
    border-radius: 12px;
	width: fit-content;
}

.p-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    height: 48px;
    background: transparent;
    color: #000;
    text-decoration: none;
    font-size: 18px;
    font-weight: 700;
    border-radius: 8px;
    transition: all 0.2s ease;
}

/* Эффект при наведении */
.p-link:hover {
    background: #e0e0e2;
}

/* Активная страница (белая "выпуклая" кнопка) */
.p-link.active {
    background: #ffffff;
    color: #002366;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.p-dots {
    color: #888;
    padding: 0 5px;
    font-weight: 700;
}

/* Стрелочки */
.arrow-prev, .arrow-next {
    color: #002366;
}

/* Мобильная адаптация */
@media (max-width: 600px) {
    .p-link {
        min-width: 40px;
        height: 40px;
        font-size: 16px;
    }
}

/* Основная сетка */
.filter-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.custom-select-container { position: relative; width: 100%; }

.select-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 52px;
    padding: 0 15px;
    background: #f2f2f4;
    border-radius: 10px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    border: 2px solid transparent;
    transition: 0.2s;
}

/* Эффект единого блока при открытии */
.custom-select-container.open .select-trigger {
    background: #fff;
    border-color: #002366;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.custom-options {
    display: none;
    position: absolute;
    top: 50px; /* Стык в стык */
    left: 0;
    right: 0;
    background: #fff;
    border: 2px solid #002366;
    border-top: none;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    z-index: 999;
    max-height: 250px;
    overflow-y: auto;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.open .custom-options { display: block; }

.option {
    padding: 12px 15px;
    font-size: 17px;
    font-weight: 500;
    cursor: pointer;
}

.option:hover { background: #f2f2f4; color: #002366; }
.option.selected { background: #eef2ff; color: #002366; font-weight: 700; }

/* Стрелочка */
.arrow {
    width: 8px; height: 8px;
    border-right: 2px solid #000; border-bottom: 2px solid #000;
    transform: rotate(45deg); transition: 0.3s;
}
.open .arrow { transform: rotate(-135deg); }

/* Инпуты (Год, Цена) */
.f-item.split input {
    border: none; background: transparent; font-size: 18px; font-weight: 600;
    height: 52px; padding: 0 15px; width: 50%; outline: none;
}
/* ПРИМЕРЫ ЧЕРЕЗ СЕЛЕКТ */
/* Специальная тема для селекта "Примеры" */
.custom-select-container.theme-green .select-trigger {
    background-color: #075e54 !important;
    color: #ffffff !important;
}

.custom-select-container.theme-green .arrow {
    border-color: #ffffff !important; /* Белая стрелочка */
}

.custom-select-container.theme-green.open .select-trigger {
    border-color: #075e54;
}

.custom-select-container.theme-green .custom-options {
    border-color: #075e54;
}

.custom-select-container.theme-green .option:hover {
    background-color: #e8f5e9; /* Светло-зеленый при наведении */
    color: #075e54;
}
#query {
    width: 100%;
    height: 52px;
    background: #f2f2f4;
    border: 2px solid #002366; /* Синяя рамка для акцента */
    border-radius: 10px;
    padding: 0 15px;
    font-size: 18px;
    font-weight: 600; /* Жирный текст */
    color: #000;
    box-sizing: border-box;
	/* Убираем системные стили */
    -webkit-appearance: none; /* Для Safari/iOS */
    -moz-appearance: none;    /* Для Firefox */
    appearance: none;
    outline: none !important;  /* Жестко убираем системную рамку */
}
#query:active, #query:focus, #query:focus-visible{
	outline: none !important;   /* Убираем черные острые углы */
    outline-offset: 0;         /* На всякий случай для некоторых браузеров */   
    background: #fff;           /* Белый фон для четкости на солнце */
    box-shadow: none;           /* Убираем тени, если они создают грязь */
}

#query::placeholder {
    color: #666; /* Четкий серый для подсказки */
}
.car-image-container {
    width: 100%;
    height: 150px;
    border-radius: 6px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #f0f0f0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin: 0;
}
.filter-hint {
    background: #e8f5e9;
    border-left: 4px solid #4caf50;
    padding: 12px 16px;
    font-size: 14px;
    line-height: 1.5;
    color: #333;
    border-radius: 8px;
    margin-bottom: 12px;
}

.filter-hint strong {
    font-weight: 600;
    color: #075e54;
}
.hide {
    display: none !important; 
}
.show {
    display: block !important; 
}
/* Контейнер должен занимать всю ширину сетки catalog-grid */
.not-found-container {
    grid-column: 1 / -1; /* Растягиваем на все колонки grid-сетки */
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 60px 20px;
    background: #f9f9fb;
    border-radius: 16px;
    border: 2px dashed #e0e0e0;
    text-align: center;
}

.not-found-content {
    max-width: 450px;
}

.not-found-img {
    width: 150px;
    height: auto;
    margin-bottom: 24px;
    opacity: 0.6;
}

.not-found-content h2 {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 12px;
    color: #333;
}

.not-found-content p {
    font-size: 16px;
    color: #666;
    line-height: 1.5;
    margin-bottom: 30px;
}

/* Кнопка сброса (в стиле вашей черной кнопки) */
.reset-search-btn {
    display: inline-block;
    background: #000;
    color: #fff;
    text-decoration: none;
    padding: 14px 28px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 700;
    transition: background 0.2s;
}

.reset-search-btn:hover {
    background: #333;
}
/* Мобильная версия */
@media (max-width: 992px) {
    .filter-grid { grid-template-columns: 1fr; }
    .catalog-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
	.catalog-grid { grid-template-columns: repeat(1, 1fr); }
}
.badges {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
	margin-top: 9px;
}
.a_badge {
    background: #f0f0f0;
    border-radius: 4px;
    padding: 4px 4px;
    font-size: 13px;
    color: #555;
    text-decoration: none;
}
.badge {
    background: #f0f0f0;
    border-radius: 4px;
    padding: 4px 8px;
    font-size: 13px;
    color: #555;
}
.add_but{
	width: 100%;
    max-width: 375px;
    text-decoration: none;
	background-color: #075e54;
	border-radius: 10px;
}
.add_but:hover{
	background-color: #003b34;
}
.links {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
}
.link {
    color: #888;
    font-size: 14px;
    text-decoration: none;
    border-bottom: 1px dashed #888;
    padding-bottom: 1px;
	display: inline-block;
}
@media (max-width: 768px) {
    /*.links {
        flex-direction: column;
        gap: 8px;
    }*/
	.links {
        flex-direction: row;
        gap: 12px;
    }
}
@media (max-width: 480px) {
	.links {
        flex-direction: row;
        gap: 12px;
    }
}
.img-placeholder {
    position: relative;
}
.img-placeholder .badge-2 {
    position: absolute;
    top: 8px;
    left: 8px;
    background-color: #ff4d4f;
    color: white;
    padding: 4px 8px;
    font-size: 12px;
    font-weight: bold;
    border-radius: 4px;
    text-transform: uppercase;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}