/* ================================
   BUSCADOR COMPLETO (Página dedicada)
   ================================ */

.inmotek-search-full-page {
    max-width: 1400px;
    margin: 0 auto;
}

/* Filtros superiores con checkboxes */
.inmotek-search-top-filters {
    display: flex;
    gap: 20px;
    padding: 20px;
    background: #f3f4f6;
    border-radius: 8px 8px 0 0;
    border-bottom: 1px solid #e5e7eb;
    overflow-x: auto;
}

.inmotek-top-filter-group {
    flex: 1;
    min-width: 150px;
}

.inmotek-top-filter-group h4 {
    font-size: 13px;
    font-weight: 600;
    color: #6b7280;
    margin: 0 0 12px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.inmotek-checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.inmotek-checkbox-filter {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 6px 0;
}

.inmotek-checkbox-filter input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0 10px 0 0;
    cursor: pointer;
    accent-color: #10b981;
}

.inmotek-checkbox-filter span {
    font-size: 14px;
    color: #1f2937;
}

.inmotek-checkbox-filter input[type="checkbox"]:checked + span {
    font-weight: 600;
    color: #10b981;
}

/* Layout principal: Sidebar + Resultados */
.inmotek-search-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 30px;
    padding: 30px 20px;
    background: white;
}

/* Sidebar izquierda */
.inmotek-search-sidebar {
    background: #f9fafb;
    padding: 20px;
    border-radius: 8px;
    height: fit-content;
    position: sticky;
    top: 20px;
}

.inmotek-sidebar-group {
    margin-bottom: 24px;
}

.inmotek-sidebar-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
}

.inmotek-sidebar-input,
.inmotek-sidebar-select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    background: white;
}

.inmotek-sidebar-input:focus,
.inmotek-sidebar-select:focus {
    outline: none;
    border-color: #5b7890;
}

.inmotek-sidebar-row {
    display: grid;
    grid-template-columns: 1fr 80px;
    gap: 8px;
}

.inmotek-sidebar-input-small {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    text-align: center;
    background: white;
}

.inmotek-sidebar-checks {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.inmotek-sidebar-check {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.inmotek-sidebar-check input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin: 0 8px 0 0;
    cursor: pointer;
}

.inmotek-sidebar-check span {
    font-size: 14px;
    color: #1f2937;
}

.inmotek-sidebar-btn-search {
    width: 100%;
    padding: 14px 24px;
    background: #dc2626;
    border: none;
    border-radius: 6px;
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    margin-top: 12px;
}

.inmotek-sidebar-btn-search:hover {
    background: #b91c1c;
}

/* Área de resultados */
.inmotek-search-results-area {
    min-height: 600px;
}

.inmotek-results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    margin-bottom: 24px;
    border-bottom: 1px solid #e5e7eb;
}

.inmotek-results-count {
    font-size: 15px;
    color: #6b7280;
}

.inmotek-results-sort {
    display: flex;
    align-items: center;
    gap: 12px;
}

.inmotek-results-sort label {
    font-size: 14px;
    color: #6b7280;
}

.inmotek-results-sort select {
    padding: 8px 32px 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    background: white;
    cursor: pointer;
}

/* Grid de resultados */
.inmotek-properties-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

/* Paginación */
.inmotek-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid #e5e7eb;
}

.inmotek-pagination button,
.inmotek-pagination a {
    min-width: 40px;
    height: 40px;
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: white;
    color: #374151;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.inmotek-pagination button:hover,
.inmotek-pagination a:hover {
    background: #f3f4f6;
    border-color: #9ca3af;
}

.inmotek-pagination button.active,
.inmotek-pagination a.active {
    background: #5b7890;
    border-color: #5b7890;
    color: white;
    font-weight: 600;
}

.inmotek-pagination button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Responsive */
@media (max-width: 1024px) {
    .inmotek-search-layout {
        grid-template-columns: 1fr;
    }
    
    .inmotek-search-sidebar {
        position: static;
    }
    
    .inmotek-properties-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .inmotek-search-top-filters {
        flex-direction: column;
    }
    
    .inmotek-top-filter-group {
        min-width: 100%;
    }
    
    .inmotek-results-header {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }
}
